:root {
  --navy: #101c33;
  --navy-2: #182744;
  --ink: #172033;
  --muted: #697386;
  --line: #e4e8ef;
  --surface: #ffffff;
  --canvas: #f6f7f9;
  --primary: #5b55d6;
  --primary-dark: #4841bd;
  --accent: #ff785f;
  --mint: #41b99a;
  --danger: #c93f4f;
  --shadow-sm: 0 1px 2px rgb(16 28 51 / 5%), 0 7px 22px rgb(16 28 51 / 5%);
  --shadow-lg: 0 24px 70px rgb(16 28 51 / 16%);
  --radius: 14px;
  --sidebar: 238px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--canvas); }
body, button, input, textarea, select { font: inherit; }
button, input, textarea, select { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, summary, select { cursor: pointer; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; left: 16px; top: -60px; padding: 10px 16px; color: white; background: var(--primary); border-radius: 8px; transition: top .2s; }
.skip-link:focus { top: 16px; }
:focus-visible { outline: 3px solid rgb(91 85 214 / 30%); outline-offset: 2px; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; width: var(--sidebar); display: flex; flex-direction: column; padding: 30px 18px 20px; color: #d7deea; background: var(--navy); }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 10px; color: white; font-size: 20px; font-weight: 760; letter-spacing: -.4px; }
.brand svg { width: 25px; height: 25px; color: #a8a3ff; stroke-width: 1.9; }
.side-nav { margin-top: 48px; }
.nav-label { margin: 0 12px 10px; color: #77849b; font-size: 10px; font-weight: 760; letter-spacing: 1.5px; text-transform: uppercase; }
.nav-label-spaced { margin-top: 32px; }
.side-nav a, .settings-link { display: flex; align-items: center; gap: 13px; min-height: 45px; margin: 4px 0; padding: 0 12px; color: #9da9bb; border-radius: 9px; font-size: 14px; font-weight: 570; transition: color .18s, background .18s; }
.side-nav a:hover, .settings-link:hover { color: white; background: rgb(255 255 255 / 5%); }
.side-nav a.active, .settings-link.active { color: white; background: #263654; box-shadow: inset 3px 0 #8b86ff; }
.side-nav svg, .settings-link svg { width: 19px; height: 19px; }
.side-nav b { min-width: 25px; margin-left: auto; padding: 3px 7px; color: #b9c2d1; background: rgb(255 255 255 / 8%); border-radius: 20px; font-size: 10px; text-align: center; }
.sidebar-bottom { margin-top: auto; border-top: 1px solid rgb(255 255 255 / 9%); padding-top: 15px; }
.profile { display: flex; align-items: center; gap: 10px; padding: 10px 8px 14px; }
.profile > svg { width: 14px; margin-left: auto; color: #6f7c91; }
.avatar { display: inline-grid; flex: 0 0 auto; width: 34px; height: 34px; place-items: center; color: white; background: linear-gradient(145deg, #817bec, #4e48bc); border-radius: 50%; font-size: 11px; font-weight: 750; letter-spacing: .3px; }
.profile-copy { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.profile-copy strong { color: #f4f6fb; font-size: 12px; font-weight: 650; }
.profile-copy small { max-width: 125px; overflow: hidden; color: #7e8ba0; font-size: 9px; text-overflow: ellipsis; }
.settings-link { margin-top: 2px; }
.mobile-header, .bottom-nav { display: none; }
.main { min-height: 100vh; margin-left: var(--sidebar); padding: 56px clamp(32px, 4vw, 68px) 72px; }
.main > * { max-width: 1360px; margin-left: auto; margin-right: auto; }

.eyebrow { margin: 0 0 8px !important; color: var(--primary) !important; font-size: 10px !important; font-weight: 780 !important; letter-spacing: 1.6px; text-transform: uppercase; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 31px; }
.page-heading h1 { margin: 0; color: #151e30; font-family: Georgia, "Times New Roman", serif; font-size: clamp(32px, 3vw, 43px); font-weight: 600; line-height: 1.08; letter-spacing: -1.2px; }
.page-heading p { margin: 11px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.heading-count { display: flex; align-items: center; gap: 8px; padding: 9px 14px; color: #a34754; background: #fff0ed; border-radius: 30px; font-size: 13px; font-weight: 700; }
.heading-count svg { width: 16px; fill: currentColor; stroke-width: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 16px; border: 1px solid transparent; border-radius: 9px; font-size: 12px; font-weight: 690; line-height: 1; transition: transform .15s, border-color .15s, background .15s; }
.button:hover { transform: translateY(-1px); }
.button svg { width: 16px; height: 16px; }
.button-primary { color: white; background: var(--primary); box-shadow: 0 6px 15px rgb(91 85 214 / 18%); }
.button-primary:hover { background: var(--primary-dark); }
.button-secondary { color: #39445a; background: white; border-color: #dfe3ea; box-shadow: 0 1px 2px rgb(0 0 0 / 3%); }
.button-danger { color: #a83445; background: #fff7f8; border-color: #e9b9c0; box-shadow: 0 1px 2px rgb(0 0 0 / 3%); }
.button-danger:hover { color: white; background: var(--danger); border-color: var(--danger); }
.button-accent { color: white; background: var(--accent); }
.button-accent:hover { background: #ef654e; }
.button.disabled { pointer-events: none; opacity: .45; }

.flash { display: flex; align-items: center; gap: 11px; margin-top: -28px !important; margin-bottom: 24px !important; padding: 12px 15px; color: #1c6d59; background: #e9f8f3; border: 1px solid #caede2; border-radius: 10px; font-size: 13px; }
.flash-error { color: #9e3542; background: #fff0f1; border-color: #f4cdd2; }
.flash svg { width: 18px; }
.flash button { margin-left: auto; padding: 0 4px; color: currentColor; background: none; border: 0; font-size: 20px; }

.search-toolbar { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 11px; margin-bottom: 23px; }
.search-box { display: flex; align-items: center; min-height: 50px; padding: 0 16px; background: white; border: 1px solid var(--line); border-radius: 11px; box-shadow: var(--shadow-sm); }
.search-box svg { flex: 0 0 auto; width: 19px; color: #8791a2; }
.search-box input { min-width: 0; flex: 1; height: 48px; padding: 0 13px; background: transparent; border: 0; outline: 0; font-size: 13px; }
.search-box input::placeholder { color: #9ba3af; }
kbd { padding: 4px 7px; color: #8c94a1; background: #f5f6f8; border: 1px solid #e3e6eb; border-radius: 5px; font-family: inherit; font-size: 9px; box-shadow: 0 1px 0 #d7dae0; }
.filter-toggle { min-height: 50px; }
.filter-toggle b { display: grid; width: 18px; height: 18px; place-items: center; color: white; background: var(--primary); border-radius: 50%; font-size: 9px; }
.filter-panel { position: absolute; z-index: 12; top: 58px; right: 0; width: min(540px, 100%); padding: 18px; background: white; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); }
.filter-panel:not([hidden]) { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 12px; }
.filter-panel label, .form-stack > label, dialog label { display: flex; flex-direction: column; gap: 7px; color: #4d586b; font-size: 11px; font-weight: 680; }
input, textarea, select { width: 100%; color: var(--ink); caret-color: var(--ink); border: 1px solid #dce1e8; border-radius: 8px; background: white; outline: 0; }
input, select { height: 43px; padding: 0 12px; }
textarea { resize: vertical; padding: 11px 12px; line-height: 1.5; }
input:focus, textarea:focus, select:focus { border-color: #918ce6; box-shadow: 0 0 0 3px rgb(91 85 214 / 10%); }

.summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin-bottom: 16px; }
.summary-grid article { display: flex; align-items: center; gap: 13px; min-height: 76px; padding: 13px 16px; background: white; border: 1px solid var(--line); border-radius: 11px; box-shadow: 0 2px 10px rgb(16 28 51 / 3%); }
.summary-icon { display: grid; flex: 0 0 auto; width: 42px; height: 42px; place-items: center; border-radius: 10px; }
.summary-icon svg { width: 19px; }
.summary-icon.blue { color: #5b55d6; background: #eeedff; }
.summary-icon.coral { color: #d85f53; background: #fff0ed; }
.summary-icon.mint { color: #278c75; background: #e8f7f2; }
.summary-grid article div { display: flex; flex-direction: column; }
.summary-grid strong { color: #1f2a3c; font-size: 20px; line-height: 1; }
.summary-grid article span { margin-top: 5px; color: #7a8495; font-size: 10px; }
.summary-grid small { margin-left: auto; color: #a0a8b4; font-size: 9px; }

.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 15px; }
.section-heading > div { display: flex; align-items: baseline; gap: 12px; }
.section-heading h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 18px; font-weight: 600; }
.section-heading p { margin: 0; color: #929aa8; font-size: 10px; }
.compact-sort { display: flex; align-items: center; gap: 8px; color: #8a93a1; font-size: 9px; }
.compact-sort select { width: auto; height: 31px; padding-right: 30px; font-size: 10px; }

.bookmark-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.bookmark-grid.content-start { margin-top: 30px; }
.bookmark-card { position: relative; min-width: 0; overflow: visible; background: white; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); transition: box-shadow .18s; }
.bookmark-card:hover { box-shadow: 0 9px 24px rgb(16 28 51 / 9%); }
.bookmark-card:focus-within, .bookmark-card:has(.action-menu[open]) { z-index: 20; }
.composer-card { min-height: 0; align-self: start; overflow: visible; background: white; }
.composer-card form { display: grid; min-height: 290px; grid-template-rows: auto 1fr auto; }
.composer-header { display: flex; min-height: 45px; align-items: center; justify-content: space-between; padding: 0 16px; border-bottom: 1px solid var(--line); }
.composer-header > span { color: #30394a; font-size: 11px; font-weight: 700; letter-spacing: .035em; }
.composer-header kbd { padding: 3px 6px; font-size: 8px; }
.composer-body { display: flex; min-height: 0; flex-direction: column; align-items: stretch; padding: 13px 16px 12px; }
.composer-body > textarea { min-height: 105px; flex: 1; resize: none; padding: 0; border: 0; border-radius: 0; font-size: 15px; line-height: 1.55; }
.composer-body > textarea:focus { box-shadow: none; }
.composer-body > textarea::placeholder { color: #929aa8; }
.composer-tools { display: flex; align-items: center; margin: 5px 0 8px; }
.attachment-picker { display: inline-flex; align-items: center; cursor: pointer; }
.attachment-picker input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.attachment-picker span { padding: 6px 9px; color: #6963bd; background: #f3f2ff; border-radius: 7px; font-size: 10px; font-weight: 650; }
.attachment-picker:hover span { background: #e9e7ff; }
.attachment-staging { display: grid; gap: 6px; margin: 7px 0 5px; }
.attachment-staging[hidden] { display: none; }
.staged-attachment { display: flex; min-width: 0; align-items: center; gap: 8px; padding: 7px 8px; color: #566174; background: #f7f8fa; border: 1px solid #e7e9ee; border-radius: 8px; font-size: 10px; }
.staged-attachment img { width: 34px; height: 34px; flex: 0 0 auto; object-fit: cover; border-radius: 6px; }
.staged-attachment span { overflow: hidden; flex: 1; text-overflow: ellipsis; white-space: nowrap; }
.staged-attachment button { width: 24px; height: 24px; flex: 0 0 auto; padding: 0; color: #9a4550; background: #fff0f1; border: 0; border-radius: 50%; }
.composer-body.is-dragging { background: #f7f6ff; outline: 2px dashed #8f88e8; outline-offset: -7px; }
.composer-error { display: flex; align-items: flex-start; gap: 7px; margin-top: 10px; color: var(--danger); font-size: 12px; line-height: 1.4; }
.composer-error svg { width: 14px; flex: 0 0 auto; }
.composer-card footer { border-top: 1px solid var(--line); }
.composer-save { position: relative; display: flex; width: 100%; min-height: 48px; align-items: center; justify-content: center; padding: 0 16px; color: #4f4aaf; background: #f1f0ff; border: 0; border-radius: 0 0 11px 11px; font-size: 12px; font-weight: 700; transition: background .18s, color .18s; }
.composer-save:hover { color: white; background: var(--primary); }
.composer-save small { position: absolute; right: 16px; opacity: .65; font-size: 8px; }
.composer-card .htmx-request button, .composer-card input:disabled, .composer-card textarea:disabled { opacity: .55; }
.tag-picker { position: relative; }
.tag-picker-edit { padding: 11px; border: 1px solid #dce1e8; border-radius: 9px; }
.tag-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-chips:not(:empty) { margin: 5px 0 9px; }
.tag-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 5px 7px 5px 9px; color: #5751b4; background: #efeeff; border-radius: 6px; font-size: 10px; font-weight: 650; }
.tag-chip button { display: grid; width: 16px; height: 16px; padding: 0; place-items: center; color: #7771c8; background: rgb(255 255 255 / 55%); border: 0; border-radius: 50%; font-size: 13px; line-height: 1; }
.tag-chip button:hover { color: white; background: var(--danger); }
.tag-search { display: flex !important; min-height: 36px; align-items: center; flex-direction: row !important; gap: 7px !important; color: #8b94a4 !important; }
.tag-search > span { display: grid; width: 24px; height: 24px; flex: 0 0 auto; place-items: center; background: #f5f6f8; border: 1px solid #e5e8ed; border-radius: 50%; font-size: 11px; }
.tag-search input { min-width: 0; height: 34px; padding: 0; border: 0; font-size: 11px; }
.tag-search input:focus { box-shadow: none; }
.tag-search input::placeholder { color: #98a1b0; }
.tag-search small { flex: 0 0 auto; color: #9da5b2; font-size: 10px; font-weight: 500; }
.tag-suggestions { position: absolute; z-index: 30; right: 0; left: 0; top: calc(100% + 5px); max-height: 165px; overflow-y: auto; padding: 5px; background: white; border: 1px solid var(--line); border-radius: 9px; box-shadow: var(--shadow-lg); }
.tag-suggestions button { display: block; width: 100%; padding: 8px 9px; color: #4d586a; text-align: left; background: transparent; border: 0; border-radius: 6px; font-size: 11px; }
.tag-suggestions button:hover { color: var(--primary); background: #f2f1ff; }
.card-image { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; background: #e9edf2; border-radius: 11px 11px 0 0; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.fetch-indicator { position: absolute; right: 10px; bottom: 10px; display: flex; align-items: center; gap: 6px; padding: 6px 9px; color: #596274; background: rgb(255 255 255 / 94%); border-radius: 7px; box-shadow: 0 3px 10px rgb(0 0 0 / 10%); font-size: 10px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; }
.fetch-indicator i { width: 7px; height: 7px; background: var(--primary); border-radius: 50%; animation: fetch-pulse 1s ease-in-out infinite alternate; }
.is-fetching .card-image img { opacity: .72; }
.fetch-failed { border-color: #f0c9cd; }
.favorite-badge { position: absolute; top: 10px; right: 10px; display: grid; width: 29px; height: 29px; place-items: center; color: #e45863; background: rgb(255 255 255 / 92%); border-radius: 50%; box-shadow: 0 3px 10px rgb(0 0 0 / 12%); }
.favorite-badge svg { width: 14px; fill: currentColor; stroke-width: 0; }
.card-body { padding: 15px 15px 12px; }
.card-domain { display: flex; align-items: center; gap: 6px; overflow: hidden; color: #8992a0; font-size: 12px; font-weight: 550; text-overflow: ellipsis; white-space: nowrap; }
.domain-dot { display: inline-block; width: 6px; height: 6px; background: #6d67df; border-radius: 50%; }
.card-body h2 { min-height: 40px; margin: 8px 0 7px; display: -webkit-box; overflow: hidden; color: #1e283a; font-size: 14px; font-weight: 600; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.card-body h2 a:hover { color: var(--primary); }
.card-body > p { min-height: 52px; margin: 0; display: -webkit-box; overflow: hidden; color: #788292; font-size: 12px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.card-meta { min-height: 23px; margin-top: 13px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tag-list { display: flex; min-width: 0; flex-wrap: wrap; gap: 5px; }
.tag { padding: 4px 7px; color: #6560ba; background: #f0efff; border-radius: 5px; font-size: 10px; font-weight: 600; }
.card-meta time { flex: 0 0 auto; color: #a0a7b2; font-size: 12px; }
.card-actions { display: flex; align-items: center; padding: 7px 10px; border-top: 1px solid #edf0f4; }
.card-actions > a, .card-actions button, .action-menu summary { display: grid; width: 31px; height: 31px; padding: 0; place-items: center; color: #7c8798; background: transparent; border: 0; border-radius: 7px; }
.card-actions > a:hover, .card-actions button:hover, .action-menu summary:hover { color: var(--primary); background: #f1f0ff; }
.card-actions svg, .action-menu svg { width: 15px; }
.card-actions form { display: contents; }
.card-actions .action-menu { margin-left: auto; }
.card-actions .is-favorite { color: #df5663; }
.card-actions .is-favorite svg { fill: currentColor; stroke-width: 0; }
.action-menu { position: relative; }
.action-menu summary { list-style: none; }
.action-menu summary::-webkit-details-marker { display: none; }
.action-menu[open] > summary { color: var(--primary); background: #f1f0ff; }
.action-menu > div { position: absolute; z-index: 15; top: 36px; right: 0; min-width: 150px; padding: 5px; background: white; border: 1px solid var(--line); border-radius: 9px; box-shadow: var(--shadow-lg); }
.action-menu > div a, .action-menu > div button { display: flex; width: 100%; height: 36px; align-items: center; justify-content: flex-start; gap: 8px; padding: 0 9px; color: #4d586a; background: none; border: 0; border-radius: 6px; font-size: 12px; white-space: nowrap; }
.action-menu > div a:hover, .action-menu > div button:hover { background: #f4f5f8; }
.action-menu > div .danger { color: var(--danger); }

@keyframes fetch-pulse { to { opacity: .35; transform: scale(.75); } }

.state-card { margin-top: 28px; padding: 65px 24px; text-align: center; background: white; border: 1px dashed #d5dae3; border-radius: var(--radius); }
.state-icon { display: grid; width: 58px; height: 58px; margin: 0 auto 18px; place-items: center; color: var(--primary); background: #efeeff; border-radius: 16px; transform: rotate(-3deg); }
.state-icon svg { width: 27px; height: 27px; }
.state-card h2 { margin: 0 0 8px; font-family: Georgia, serif; font-size: 22px; }
.state-card p { max-width: 430px; margin: 0 auto 20px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.error-state .state-icon { color: var(--danger); background: #fff0f1; }
.skeleton-card { overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 12px; }
.skeleton-card span, .skeleton-card i { display: block; background: linear-gradient(90deg, #eef0f3, #f8f9fa, #eef0f3); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.skeleton-card span { aspect-ratio: 16 / 9; }
.skeleton-card i { width: calc(100% - 30px); height: 10px; margin: 15px; border-radius: 8px; }
.skeleton-card i:nth-child(3) { width: 65%; }
.skeleton-card i:nth-child(4) { width: 42%; margin-bottom: 20px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 30px; color: #7e8795; font-size: 11px; }

.tag-search { max-width: 430px; margin: -5px 0 24px; }
.tag-search label, .table-toolbar label { display: flex; align-items: center; background: white; border: 1px solid var(--line); border-radius: 9px; }
.tag-search svg, .table-toolbar label svg { margin-left: 13px; color: #8791a1; }
.tag-search input, .table-toolbar input { border: 0; box-shadow: none; }
.tag-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tag-grid article { position: relative; display: flex; align-items: center; min-width: 0; background: white; border: 1px solid var(--line); border-radius: 11px; box-shadow: var(--shadow-sm); }
.tag-grid article > a { display: flex; min-width: 0; flex: 1; align-items: center; gap: 13px; padding: 17px; }
.tag-mark { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; color: var(--tag-color, var(--primary)); background: color-mix(in srgb, var(--tag-color, var(--primary)) 12%, white); border-radius: 10px; }
.tag-grid h2 { margin: 0 0 4px; overflow: hidden; font-family: Georgia, serif; font-size: 15px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.tag-grid p { margin: 0; color: #9199a6; font-size: 9px; }
.tag-grid .chevron { width: 14px; margin-left: auto; color: #adb4be; }
.tag-grid .action-menu { margin-right: 8px; }

dialog { width: min(450px, calc(100% - 32px)); padding: 0; background: white; border: 0; border-radius: 15px; box-shadow: var(--shadow-lg); }
dialog::backdrop { background: rgb(11 21 38 / 58%); backdrop-filter: blur(3px); }
dialog > form { display: flex; flex-direction: column; gap: 17px; padding: 24px; }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; }
.dialog-head h2 { margin: 0; font-family: Georgia, serif; font-size: 23px; }
.dialog-head > button { width: 32px; height: 32px; color: #737d8c; background: #f3f4f6; border: 0; border-radius: 8px; font-size: 20px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 5px; }

.reader-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.reader-topbar > div { display: flex; gap: 8px; }
.back-link { display: inline-flex; align-items: center; gap: 7px; color: #667184; font-size: 11px; font-weight: 650; }
.back-link:hover { color: var(--primary); }
.back-link svg { width: 16px; }
.reader { max-width: 940px !important; overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); }
.reader-hero { position: relative; aspect-ratio: 16 / 7.2; overflow: hidden; background: #dfe4ea; }
.reader-hero img { width: 100%; height: 100%; object-fit: cover; }
.reader-hero-shade { position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, rgb(12 24 43 / 48%)); }
.reader-hero > span { position: absolute; bottom: 17px; left: 22px; padding: 6px 9px; color: white; background: rgb(12 24 43 / 65%); border: 1px solid rgb(255 255 255 / 18%); border-radius: 6px; font-size: 9px; backdrop-filter: blur(7px); }
.reader-header { max-width: 730px; margin: 0 auto; padding: 45px 30px 32px; }
.reader-domain { display: flex; align-items: center; gap: 8px; color: #727d8e; font-size: 10px; font-weight: 650; }
.reader-header h1 { margin: 14px 0 15px; font-family: Georgia, serif; font-size: clamp(30px, 4vw, 44px); font-weight: 600; line-height: 1.1; letter-spacing: -.8px; }
.reader-lead { margin: 0; color: #687385; font-family: Georgia, serif; font-size: 17px; line-height: 1.55; }
.reader-meta { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 23px; padding-top: 18px; border-top: 1px solid var(--line); color: #9199a5; font-size: 9px; }
.reader-content { max-width: 730px; margin: 0 auto; padding: 0 30px 50px; color: #303a4a; font-family: Georgia, serif; font-size: 17px; line-height: 1.8; }
.reader-note { max-width: 730px; margin: 0 auto 28px; padding: 16px 18px; color: #4f496f; background: linear-gradient(135deg, #f2efff, #fff4ec); border: 1px solid #e3dcff; border-radius: 12px; }
.reader-note strong { font-size: 11px; letter-spacing: .7px; text-transform: uppercase; }
.reader-note p { margin: 7px 0 0; white-space: pre-wrap; font-size: 13px; line-height: 1.55; }
.reader-note a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.reader-attachments { max-width: 730px; margin: 0 auto 32px; padding: 0 30px; }
.reader-attachments h2 { margin: 0 0 12px; color: #283348; font-size: 14px; }
.reader-attachments > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.attachment-image { overflow: hidden; color: #626c7d; background: #f7f8fa; border: 1px solid var(--line); border-radius: 10px; font-size: 10px; }
.attachment-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.attachment-image span { display: block; overflow: hidden; padding: 8px 10px; text-overflow: ellipsis; white-space: nowrap; }
.attachment-file { display: flex; align-items: center; gap: 10px; padding: 12px; color: #49546a; background: #f7f8fa; border: 1px solid var(--line); border-radius: 10px; }
.attachment-file > svg { width: 22px; flex: 0 0 auto; color: var(--primary); }
.attachment-file span { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.attachment-file strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.attachment-file small { color: #8a93a2; font-size: 9px; }
.reader-content h2, .reader-content h3 { margin: 1.8em 0 .6em; color: #192337; line-height: 1.25; }
.reader-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.reader-content img { margin: 28px 0; border-radius: 10px; }
.reader-empty { display: flex; max-width: 730px; margin: 0 auto 45px; gap: 16px; padding: 20px; color: #778193; background: #f6f7f9; border-radius: 10px; }
.reader-empty svg { flex: 0 0 auto; color: var(--primary); }
.reader-empty h2 { margin: 0 0 5px; color: #344054; font-size: 14px; }
.reader-empty p { margin: 0; font-size: 11px; line-height: 1.5; }
.reader-footer { display: flex; align-items: center; justify-content: space-between; padding: 18px 28px; background: #fafbfc; border-top: 1px solid var(--line); }
.reader-footer p { margin: 0 0 4px; color: #9aa2ad; font-size: 8px; text-transform: uppercase; }
.reader-footer a { display: flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 650; }
.reader-footer a svg { width: 12px; }
.reader-footer .is-favorite { color: #d94f5d; }
.reader-footer .is-favorite svg { fill: currentColor; stroke-width: 0; }
.narrow-page { max-width: 760px !important; }
.narrow-page > .back-link { margin-bottom: 28px; }
.panel { background: white; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); }
.form-stack { display: flex; flex-direction: column; gap: 19px; padding: 25px; }
.form-stack fieldset { padding: 0; border: 0; }
.form-stack legend { margin-bottom: 9px; color: #4d586b; font-size: 11px; font-weight: 680; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 5px; }

.settings-layout { display: grid; grid-template-columns: 190px minmax(0, 720px); gap: clamp(35px, 6vw, 80px); justify-content: center; }
.settings-nav { position: sticky; top: 40px; align-self: start; }
.settings-nav h1 { margin: 0 0 28px; font-family: Georgia, serif; font-size: 30px; }
.settings-nav nav { display: flex; flex-direction: column; gap: 4px; }
.settings-nav nav a { display: flex; align-items: center; gap: 10px; padding: 10px; color: #778193; border-radius: 8px; font-size: 11px; font-weight: 650; }
.settings-nav nav a:hover, .settings-nav nav a.active { color: var(--primary); background: #eeedff; }
.settings-nav nav svg { width: 16px; }
.settings-content { min-width: 0; }
.settings-section { margin-bottom: 42px; scroll-margin-top: 25px; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-title h2 { margin: 0 0 5px; font-family: Georgia, serif; font-size: 21px; }
.section-title p { margin: 0; color: #818b99; font-size: 10px; }
.profile-edit { display: flex; align-items: center; gap: 13px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.avatar-large { width: 48px; height: 48px; font-size: 14px; }
.profile-edit div { display: flex; flex-direction: column; gap: 4px; }
.profile-edit strong { font-size: 13px; }
.profile-edit span { color: #8d95a2; font-size: 9px; }
.preference-form { gap: 18px; }
.preference-toggle { display: flex; align-items: center; justify-content: space-between; gap: 24px; cursor: pointer; }
.preference-toggle span { display: grid; gap: 5px; }
.preference-toggle strong { color: #354052; font-size: 13px; }
.preference-toggle small { color: #818b99; font-size: 11px; line-height: 1.4; }
.preference-toggle input { width: 20px; height: 20px; flex: 0 0 auto; accent-color: var(--primary); }
.status-pill { display: flex; align-items: center; gap: 6px; padding: 6px 9px; color: #24816b; background: #e8f7f2; border-radius: 20px; font-size: 9px; font-weight: 700; }
.status-pill i, .user-status i { width: 6px; height: 6px; background: #32a587; border-radius: 50%; }
.api-panel { padding: 24px; }
.api-panel > label { display: block; margin-bottom: 7px; color: #4d586b; font-size: 11px; font-weight: 680; }
.secret-field { display: flex; align-items: center; min-height: 46px; padding: 5px 5px 5px 13px; background: #f6f7f9; border: 1px solid #e1e5eb; border-radius: 8px; }
.secret-field code { min-width: 0; flex: 1; overflow: hidden; color: #4a5567; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.secret-field button { padding: 8px 11px; color: var(--primary); background: white; border: 1px solid #dddff0; border-radius: 6px; font-size: 9px; font-weight: 700; }
.api-note { display: flex; gap: 10px; margin: 16px 0; padding: 12px; color: #786b4e; background: #fff9e8; border-radius: 8px; }
.api-note svg { flex: 0 0 auto; width: 17px; color: #be8a25; }
.api-note p { margin: 0; font-size: 9px; line-height: 1.5; }
.session-panel { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; }
.session-panel > div { display: flex; align-items: center; gap: 12px; }
.session-panel p { margin: 0; font-size: 11px; line-height: 1.6; }
.session-panel p span { color: #8992a0; font-size: 9px; }
.data-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.data-grid .panel { align-content: start; }
.data-grid .panel > div p { margin: 7px 0 0; color: #778192; font-size: 10px; line-height: 1.5; }
.data-grid input[type="file"] { height: auto; padding: 10px; font-size: 10px; }
.data-grid .button { justify-content: center; }
.crawl-status { margin-top: 14px; padding: 16px 20px; }
.crawl-status > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; }
.crawl-status p { margin: 0; color: #778192; font-size: 10px; }
.crawl-progress { height: 6px; overflow: hidden; margin-top: 12px; background: #e8eaf1; border-radius: 10px; }
.crawl-progress i { display: block; height: 100%; background: linear-gradient(90deg, #6657e8, #38c7d9); border-radius: inherit; transition: width .3s ease; }

.statistics-heading { align-items: flex-end; }
.period-select select { width: 190px; height: 43px; padding: 0 38px 0 13px; color: #4a5466; background: white; border-color: var(--line); box-shadow: var(--shadow-sm); font-size: 11px; }
.statistics-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 17px; }
.statistics-summary article { position: relative; display: flex; min-height: 105px; overflow: hidden; align-items: center; gap: 15px; padding: 18px; background: white; border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow-sm); }
.statistics-summary article::after { position: absolute; width: 85px; height: 85px; right: -25px; bottom: -42px; content: ""; border-radius: 50%; opacity: .18; }
.statistics-summary article > span { display: grid; width: 50px; height: 50px; flex: 0 0 auto; place-items: center; border-radius: 15px; }
.statistics-summary svg { width: 23px; }
.statistics-summary div { display: flex; flex-direction: column; }
.statistics-summary strong { color: #172033; font-size: 26px; line-height: 1; }
.statistics-summary small { margin-top: 7px; color: #707a8b; font-size: 10px; }
.stat-total > span { color: #166c88; background: linear-gradient(135deg, #cff6ff, #a8e5f1); }
.stat-total::after { background: #32bad6; }
.stat-favorites > span { color: #a45f00; background: linear-gradient(135deg, #fff0b8, #ffd782); }
.stat-favorites::after { background: #ffb828; }
.stat-tags > span { color: #5f3cb4; background: linear-gradient(135deg, #e6dcff, #c6b0ff); }
.stat-tags::after { background: #8b5cf6; }
.stat-domains > span { color: #a44367; background: linear-gradient(135deg, #ffd9e8, #ffb3cb); }
.stat-domains::after { background: #f75b91; }
.statistics-grid { display: grid; gap: 17px; margin-bottom: 17px; }
.statistics-primary { grid-template-columns: minmax(0, 1.55fr) minmax(310px, .9fr); }
.statistics-secondary { grid-template-columns: 1fr 1fr; }
.statistics-panel { min-width: 0; padding: 20px; background: white; border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow-sm); }
.statistics-panel > header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.statistics-panel h2 { margin: 0; color: #182338; font-family: Georgia, serif; font-size: 18px; }
.statistics-panel header p { margin: 5px 0 0; color: #929aa7; font-size: 9px; }
.activity-panel header > div:last-child { text-align: right; }
.activity-panel header small { display: block; color: #929aa7; font-size: 8px; }
.activity-panel header strong { display: block; margin-top: 3px; color: #5b55d6; font-size: 18px; }
.activity-chart { display: flex; height: 215px; align-items: stretch; gap: clamp(4px, 1vw, 11px); padding-top: 10px; border-bottom: 1px solid #dce1e8; background: repeating-linear-gradient(to bottom, transparent 0, transparent 49px, #eef1f5 50px); }
.activity-column { display: grid; min-width: 0; flex: 1; grid-template-rows: 18px 1fr 28px; align-items: end; text-align: center; }
.activity-value { min-height: 18px; color: #7b8492; font-size: 8px; }
.activity-track { display: flex; height: 100%; align-items: flex-end; justify-content: center; }
.activity-track i { width: min(25px, 72%); height: var(--bar-height); min-height: 2px; background: linear-gradient(180deg, #38d6e8, #6657e8 62%, #8e4ed4); border-radius: 6px 6px 2px 2px; box-shadow: 0 6px 14px rgb(99 87 232 / 20%); }
.activity-column:nth-child(3n+2) .activity-track i { background: linear-gradient(180deg, #ffbc4d, #f87568); }
.activity-column span { overflow: hidden; padding-top: 9px; color: #757f8f; font-size: 8px; text-overflow: clip; }
.mix-content { display: flex; min-height: 215px; align-items: center; justify-content: space-around; gap: 24px; }
.mix-donut { display: grid; width: 170px; height: 170px; flex: 0 0 auto; place-items: center; background: conic-gradient(#2ecfe0 0 var(--articles), #7058e8 var(--articles) var(--links-end), #f56f9b var(--links-end) 100%); border-radius: 50%; box-shadow: 0 14px 30px rgb(77 75 170 / 18%); }
.mix-donut::before { width: 96px; height: 96px; content: ""; background: white; border-radius: 50%; box-shadow: inset 0 0 0 1px #edf0f4; }
.mix-donut > span { position: absolute; display: flex; align-items: center; flex-direction: column; }
.mix-donut strong { color: #1d2840; font-size: 23px; }
.mix-donut small { color: #929aa7; font-size: 8px; }
.mix-legend { display: grid; gap: 13px; min-width: 130px; }
.mix-legend > div { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 8px; color: #4d586a; font-size: 10px; }
.mix-legend i { width: 9px; height: 9px; border-radius: 50%; }
.mix-legend i.cyan { background: #2ecfe0; }
.mix-legend i.purple { background: #7058e8; }
.mix-legend i.coral { background: #f56f9b; }
.mix-legend strong { color: #1f2a3c; font-size: 11px; }
.mix-legend small { grid-column: 2 / 4; margin-top: -7px; color: #9aa2ae; font-size: 8px; }
.ranking-list { display: grid; gap: 14px; }
.ranking-list > div { display: grid; grid-template-columns: minmax(100px, 160px) 1fr 30px; align-items: center; gap: 12px; }
.rank-name { overflow: hidden; color: #4e5869; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.rank-track { height: 8px; overflow: hidden; background: #edf0f4; border-radius: 99px; }
.rank-track i { display: block; width: var(--rank-width); height: 100%; background: linear-gradient(90deg, #24cadb, #6756e7, #ec66a0); border-radius: inherit; }
.ranking-list strong { color: #273247; font-size: 10px; text-align: right; }
.popular-tags { display: flex; flex-wrap: wrap; gap: 9px; }
.popular-tags a { display: flex; min-width: 130px; flex: 1 1 calc(50% - 9px); align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; color: #4c3f93; background: linear-gradient(135deg, #f0ecff, #e8f5ff); border: 1px solid #e2ddff; border-radius: 10px; font-size: 10px; }
.popular-tags a:nth-child(3n+2) { color: #9b4d62; background: linear-gradient(135deg, #fff0f5, #fff4df); border-color: #ffe0e8; }
.popular-tags strong { font-size: 11px; }
.statistics-empty { color: #929aa7; font-size: 10px; }

.admin-summary { display: flex; margin-bottom: 18px; background: white; border: 1px solid var(--line); border-radius: 11px; }
.admin-summary div { min-width: 150px; padding: 16px 20px; border-right: 1px solid var(--line); }
.admin-summary strong, .admin-summary span { display: block; }
.admin-summary strong { font-size: 20px; }
.admin-summary span { margin-top: 4px; color: #8a93a1; font-size: 9px; }
.table-toolbar { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.table-toolbar label { width: 340px; }
.table-toolbar select { width: 150px; }
.table-wrap { overflow: visible; background: white; border: 1px solid var(--line); border-radius: 11px; box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; }
th { padding: 11px 16px; color: #8c95a3; background: #fafbfc; border-bottom: 1px solid var(--line); font-size: 8px; font-weight: 720; letter-spacing: .7px; text-align: left; text-transform: uppercase; }
td { padding: 13px 16px; border-bottom: 1px solid #edf0f3; color: #5e6878; font-size: 10px; }
tr:last-child td { border-bottom: 0; }
td:last-child { width: 48px; }
.table-user { display: flex; align-items: center; gap: 10px; }
.table-user div { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.table-user strong { color: #2c3648; font-size: 11px; }
.table-user small { color: #8d95a1; font-size: 9px; }
.role-pill { padding: 5px 8px; color: #697386; background: #f1f3f6; border-radius: 5px; font-size: 8px; font-weight: 700; }
.role-pill.admin { color: #5c55bc; background: #eeedff; }
.user-status { display: flex; align-items: center; gap: 6px; color: #3c7e6d; font-size: 9px; }
.user-status.inactive { color: #8e96a2; }
.user-status.inactive i { background: #aeb4bd; }
td .action-menu > summary { width: 30px; height: 30px; }

.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(460px, 1.08fr) minmax(440px, .92fr); background: white; }
.login-art { position: relative; min-height: 650px; overflow: hidden; padding: 44px 54px; color: white; background: radial-gradient(circle at 74% 18%, rgb(116 108 218 / 32%), transparent 29%), radial-gradient(circle at 17% 82%, rgb(48 164 143 / 20%), transparent 31%), var(--navy); }
.login-art::after { content: ""; position: absolute; width: 490px; height: 490px; right: -190px; bottom: -230px; border: 1px solid rgb(255 255 255 / 7%); border-radius: 50%; box-shadow: 0 0 0 70px rgb(255 255 255 / 2%), 0 0 0 140px rgb(255 255 255 / 2%); }
.login-art .brand { padding: 0; }
.login-message { position: relative; z-index: 2; max-width: 580px; margin-top: clamp(90px, 14vh, 150px); }
.login-message .eyebrow { color: #a9a4ff !important; }
.login-message h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(38px, 4.5vw, 60px); font-weight: 500; line-height: 1.06; letter-spacing: -1.5px; }
.login-message > p:last-child { max-width: 470px; margin: 22px 0 0; color: #9eacc0; font-size: 14px; line-height: 1.65; }
.floating-card { position: absolute; z-index: 3; background: white; border: 1px solid rgb(255 255 255 / 25%); border-radius: 11px; box-shadow: 0 20px 55px rgb(0 0 0 / 25%); }
.card-one { right: -55px; bottom: 55px; width: 250px; padding: 9px 9px 15px; color: var(--ink); transform: rotate(-4deg); }
.card-one img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 7px; }
.card-one span { display: block; margin: 10px 5px 3px; color: var(--primary); font-size: 8px; font-weight: 700; text-transform: uppercase; }
.card-one strong { display: block; margin: 0 5px; font-family: Georgia, serif; font-size: 14px; }
.card-two { right: 155px; bottom: 77px; width: 220px; padding: 20px; color: white; background: #263a59; transform: rotate(3deg); }
.card-two .quote-mark { color: #a39df5; font-family: Georgia, serif; font-size: 42px; line-height: .6; }
.card-two p { margin: 10px 0; font-family: Georgia, serif; font-size: 13px; line-height: 1.45; }
.card-two small { color: #9dacbf; font-size: 8px; }
.login-foot { position: absolute; bottom: 34px; left: 54px; margin: 0; color: #708099; font-size: 9px; }
.login-form-wrap { display: grid; align-content: center; justify-items: center; padding: 50px; }
.login-mobile-brand { display: none; }
.login-form { width: min(100%, 390px); }
.login-form h2 { margin: 0; font-family: Georgia, serif; font-size: 30px; font-weight: 600; }
.form-intro { margin: 9px 0 28px; color: #85909f; font-size: 12px; }
.login-form > label:not(.checkbox) { display: flex; flex-direction: column; gap: 8px; margin-top: 17px; color: #414c60; font-size: 10px; font-weight: 700; }
.login-form label > span { display: flex; justify-content: space-between; }
.login-form label a { color: var(--primary); }
.login-form input { height: 47px; font-size: 12px; }
.password-field { position: relative; }
.password-field input { padding-right: 72px; }
.password-field button { position: absolute; top: 7px; right: 7px; height: 33px; padding: 0 8px; color: var(--primary); background: #f1f0ff; border: 0; border-radius: 6px; font-size: 8px; font-weight: 700; }
.checkbox { display: flex; align-items: center; gap: 8px; margin: 16px 0 21px; color: #717b8b; font-size: 9px; }
.checkbox input { width: 15px; height: 15px; accent-color: var(--primary); }
.login-submit { width: 100%; min-height: 48px; margin-top: 8px; justify-content: space-between; padding: 0 18px; }
.inline-error { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; padding: 11px; color: #a33948; background: #fff0f1; border-radius: 8px; font-size: 10px; }
.inline-error svg { flex: 0 0 auto; width: 16px; }
.privacy-note { display: flex; align-items: center; gap: 7px; margin: 35px 0 0; color: #9ba3af; font-size: 9px; }
.privacy-note svg { width: 13px; }

@media (max-width: 1120px) {
  :root { --sidebar: 80px; }
  .sidebar { align-items: center; padding: 28px 12px 18px; }
  .sidebar .brand { padding: 0; }
  .sidebar .brand span, .nav-label, .side-nav a span, .side-nav a b, .profile-copy, .profile > svg, .settings-link span { display: none; }
  .side-nav { width: 100%; margin-top: 45px; }
  .side-nav a, .settings-link { justify-content: center; padding: 0; }
  .sidebar-bottom { width: 100%; }
  .profile { justify-content: center; padding: 10px 0; }
  .main { padding-left: 34px; padding-right: 34px; }
  .tag-grid { grid-template-columns: repeat(2, 1fr); }
  .statistics-primary { grid-template-columns: 1fr; }
  .login-page { grid-template-columns: minmax(400px, .9fr) 1fr; }
  .floating-card { display: none; }
}

@media (max-width: 860px) {
  .bookmark-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-layout { grid-template-columns: 150px minmax(0, 1fr); gap: 30px; }
  .login-page { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .login-form-wrap { min-height: 100vh; }
  .login-mobile-brand { display: flex; align-items: center; gap: 9px; width: min(100%, 390px); margin-bottom: 62px; color: var(--navy); font-size: 18px; font-weight: 760; }
  .login-mobile-brand svg { width: 24px; color: var(--primary); }
}

@media (max-width: 680px) {
  body.app-body { padding-bottom: 67px; }
  .sidebar { display: none; }
  .mobile-header { position: sticky; z-index: 18; top: 0; display: flex; height: 60px; align-items: center; justify-content: space-between; padding: 0 17px; background: var(--navy); }
  .mobile-header .brand { padding: 0; font-size: 17px; }
  .mobile-header .brand svg { width: 22px; }
  .mobile-header .avatar { width: 31px; height: 31px; border: 1px solid rgb(255 255 255 / 15%); }
  .main { min-height: calc(100vh - 60px); margin: 0; padding: 29px 16px 45px; }
  .bottom-nav { position: fixed; z-index: 30; inset: auto 0 0; display: grid; height: 67px; grid-template-columns: repeat(5, 1fr); padding: 6px max(6px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left)); background: rgb(255 255 255 / 96%); border-top: 1px solid var(--line); box-shadow: 0 -5px 20px rgb(16 28 51 / 7%); backdrop-filter: blur(12px); }
  .bottom-nav a { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 3px; color: #8b94a2; font-size: 8px; font-weight: 650; }
  .bottom-nav svg { width: 19px; height: 19px; }
  .bottom-nav a.active { color: var(--primary); }
  .page-heading { align-items: flex-start; margin-bottom: 22px; }
  .page-heading h1 { font-size: 32px; }
  .page-heading p { font-size: 12px; }
  .page-heading .button span { display: none; }
  .search-toolbar { grid-template-columns: 1fr auto; }
  .search-box { min-height: 46px; }
  .search-box input { height: 44px; }
  .search-box kbd, .filter-toggle span { display: none; }
  .filter-toggle { width: 46px; min-height: 46px; padding: 0; }
  .filter-panel:not([hidden]) { grid-template-columns: 1fr; }
  .summary-grid { grid-template-columns: repeat(3, 1fr); gap: 7px; }
  .statistics-heading { align-items: stretch; flex-direction: column; }
  .period-select select { width: 100%; }
  .statistics-summary { grid-template-columns: repeat(2, 1fr); }
  .statistics-secondary { grid-template-columns: 1fr; }
  .activity-chart { overflow-x: auto; }
  .activity-column { min-width: 22px; }
  .mix-content { flex-wrap: wrap; }
  .summary-grid article { min-width: 0; min-height: auto; flex-direction: column; align-items: flex-start; gap: 8px; padding: 11px; }
  .summary-icon { width: 34px; height: 34px; }
  .summary-grid small { display: none; }
  .summary-grid strong { font-size: 17px; }
  .compact-sort { display: none; }
  .bookmark-grid { grid-template-columns: 1fr; gap: 14px; }
  .composer-card form { min-height: 280px; }
  .card-body h2 { min-height: auto; font-size: 18px; }
  .card-body > p { min-height: auto; font-size: 11px; }
  .tag-grid { grid-template-columns: 1fr; }
  .reader-topbar .button-secondary { display: none; }
  .reader-topbar .button-primary { padding: 0 12px; }
  .reader { margin-left: -16px !important; margin-right: -16px !important; border-right: 0; border-left: 0; border-radius: 0; }
  .reader-hero { aspect-ratio: 16 / 9; }
  .reader-header { padding: 30px 20px 25px; }
  .reader-header h1 { font-size: 30px; }
  .reader-lead { font-size: 15px; }
  .reader-meta { align-items: flex-start; flex-direction: column; gap: 11px; }
  .reader-content { padding: 0 20px 35px; font-size: 16px; }
  .reader-attachments { padding: 0 20px; }
  .reader-attachments > div { grid-template-columns: 1fr; }
  .reader-empty { margin: 0 20px 30px; }
  .reader-footer { padding: 16px 20px; }
  .settings-layout { display: block; }
  .data-grid { grid-template-columns: 1fr; }
  .settings-nav { position: static; margin-bottom: 30px; }
  .settings-nav h1 { margin-bottom: 15px; }
  .settings-nav nav { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .settings-nav nav a { white-space: nowrap; }
  .settings-section { margin-bottom: 34px; }
  .form-stack, .api-panel { padding: 18px; }
  .session-panel { align-items: flex-start; flex-direction: column; gap: 14px; }
  .table-toolbar { align-items: stretch; flex-direction: column; }
  .table-toolbar label, .table-toolbar select { width: 100%; }
  .admin-summary div { min-width: 0; flex: 1; padding: 13px 10px; }
  .admin-summary strong { font-size: 17px; }
  .table-wrap { overflow-x: auto; }
  table { min-width: 660px; }
  .login-form-wrap { padding: 35px 22px; align-content: start; }
  .login-mobile-brand { margin-bottom: 70px; }
  .login-form h2 { font-size: 28px; }
  .privacy-note { margin-top: 28px; }
  .flash { margin-top: -13px !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (prefers-contrast: more) {
  :root { --line: #b8bec9; --muted: #4c5668; }
  .button-primary { border-color: #312a9d; }
}

/* Public product pages, adapted from the Bookmarks Cloudflare prototype. */
.landing-page { min-height: 100vh; overflow: hidden; background: radial-gradient(circle at 82% 10%, #eae6ff 0, transparent 29%), linear-gradient(#fbfbf8, #f6f5f1); }
.landing-width { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.landing-nav { display: flex; height: 84px; align-items: center; justify-content: space-between; }
.landing-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); font-size: 19px; font-weight: 760; }
.landing-brand-mark { display: grid; width: 34px; height: 34px; place-items: center; color: white; background: var(--primary); border-radius: 9px; }
.landing-brand-mark svg { width: 20px; height: 20px; }
.landing-nav-menu { display: flex; align-items: center; gap: 28px; color: #404963; font-size: 14px; font-weight: 650; }
.landing-nav-menu > a:not(.button) { position: relative; }
.landing-nav-menu > a[aria-current="page"] { color: var(--primary); }
.landing-nav-menu > a[aria-current="page"]::after { position: absolute; right: 0; bottom: -8px; left: 0; height: 2px; content: ""; background: var(--primary); border-radius: 2px; }
.landing-nav-menu .button { color: white; }
.landing-hero { display: grid; min-height: 650px; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); align-items: center; gap: 52px; padding-block: 48px 80px; }
.landing-hero-copy { position: relative; z-index: 2; }
.landing-eyebrow { margin: 0 0 14px; color: var(--primary); font-size: 11px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.landing-hero h1 { margin: 0; color: var(--navy); font-family: Georgia, serif; font-size: clamp(54px, 5.6vw, 76px); font-weight: 600; letter-spacing: -.045em; line-height: .98; }
.landing-lede { max-width: 570px; margin: 25px 0 30px; color: #596177; font-size: 17px; line-height: 1.72; }
.landing-actions { display: flex; align-items: center; gap: 18px; }
.landing-cta { min-height: 50px; padding-inline: 22px; }
.landing-actions > span { display: inline-flex; align-items: center; gap: 7px; color: #7d8292; font-size: 12px; }
.landing-actions > span svg { width: 15px; }
.landing-preview { position: relative; width: min(760px, 100%); }
.landing-preview::before { content: ""; position: absolute; inset: 10% -8% -10% 12%; background: #dcd7ff; filter: blur(70px); opacity: .7; border-radius: 50%; }
.landing-window { position: relative; overflow: hidden; width: 100%; background: white; border: 1px solid rgb(32 41 65 / 11%); border-radius: 18px; box-shadow: 0 34px 90px rgb(35 41 69 / 18%); transform: rotate(1.2deg); }
.landing-chrome { display: flex; height: 35px; align-items: center; gap: 6px; padding: 0 13px; color: #858b99; background: #f4f4f1; border-bottom: 1px solid #e4e4df; font-size: 9px; }
.landing-chrome i { width: 7px; height: 7px; background: #d3d3cf; border-radius: 50%; }
.landing-chrome span { margin-left: 8px; }
.landing-screenshot { width: 100%; height: auto; }
.landing-promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; padding-block: 80px 95px; border-top: 1px solid #e2e2dd; }
.landing-promises article { max-width: 315px; }
.landing-promises article > span { display: grid; width: 45px; height: 45px; margin-bottom: 21px; place-items: center; color: var(--primary); background: #efedff; border-radius: 13px; }
.landing-promises h2 { margin: 0 0 10px; font-family: Georgia, serif; font-size: 24px; }
.landing-promises p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.landing-assurance { padding: 58px 0 62px; background: #fff; border-block: 1px solid #dfdfda; }
.landing-assurance > div > .landing-eyebrow { margin-bottom: 30px; text-align: center; }
.trust-seals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; }
.trust-seal { display: flex; align-items: center; gap: 15px; }
.trust-seal-mark { position: relative; display: grid; width: 58px; height: 58px; flex: 0 0 58px; place-items: center; color: var(--primary); border: 1px solid #c9c5e5; border-radius: 50%; box-shadow: inset 0 0 0 5px #f2f0ff; font-size: 14px; font-weight: 800; letter-spacing: .05em; }
.trust-seal-mark::after { position: absolute; inset: -5px; content: ""; border: 1px dashed #d7d4e4; border-radius: 50%; }
.trust-seal-mark svg { width: 23px; }
.trust-seal-de { color: #171b27; background: linear-gradient(#171b27 0 33%, #c73442 33% 66%, #e7b945 66%); background-clip: text; -webkit-background-clip: text; }
.trust-seal p { margin: 0; }
.trust-seal strong, .trust-seal small { display: block; }
.trust-seal strong { color: var(--navy); font-family: Georgia, serif; font-size: 16px; line-height: 1.25; }
.trust-seal small { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.public-footer { color: white; background: var(--navy); border-top: 1px solid rgb(255 255 255 / 9%); }
.public-footer > div { display: flex; min-height: 112px; align-items: center; justify-content: space-between; gap: 30px; }
.public-footer p { margin: 0; color: #aeb7c8; font-size: 13px; }
.public-footer a { color: white; font-weight: 700; }
.public-footer > div > div { display: flex; align-items: center; gap: 22px; color: #9ca7bc; font-size: 11px; }
.public-footer > div > div span { display: inline-flex; align-items: center; gap: 7px; }
.public-footer > div > div span::before { width: 5px; height: 5px; content: ""; background: #8e83f3; border-radius: 50%; }
.public-footer-links { flex-wrap: wrap; justify-content: flex-end; }
.public-footer-links a { color: #c9d0dc; font-size: 11px; text-decoration: none; }
.public-footer-links a:hover { color: white; }
.public-footer-links button { padding: 0; color: #c9d0dc; background: none; border: 0; font: inherit; cursor: pointer; }
.public-footer-links button:hover { color: white; }
.analytics-consent { position: fixed; right: 16px; bottom: 16px; z-index: 100; display: flex; width: auto; max-width: calc(100% - 32px); align-items: center; gap: 10px; padding: 8px 9px 8px 13px; color: #536174; background: rgb(255 255 255 / 96%); border: 1px solid #dce2e9; border-radius: 999px; box-shadow: 0 8px 24px rgb(16 28 51 / 12%); backdrop-filter: blur(8px); }
.analytics-consent[hidden] { display: none; }
.analytics-consent p { margin: 0; font-size: 12px; line-height: 1.4; }
.analytics-consent p a { color: inherit; text-underline-offset: 2px; }
.analytics-consent-actions { display: flex; align-items: center; gap: 4px; }
.analytics-consent-actions .button { min-height: 30px; padding: 4px 10px; border-radius: 999px; font-size: 11px; white-space: nowrap; }
.product-page { background: radial-gradient(circle at 50% 0, #eae6ff 0, transparent 25%), linear-gradient(#fbfbf8, #f6f5f1); }
.product-hero { max-width: 850px; padding: 105px 0 100px; text-align: center; }
.product-hero h1 { margin: 0; color: var(--navy); font-family: Georgia, serif; font-size: clamp(52px, 6vw, 78px); font-weight: 600; letter-spacing: -.045em; line-height: 1; }
.product-hero > p:last-of-type { max-width: 650px; margin: 26px auto 0; color: #596177; font-size: 17px; line-height: 1.75; }
.landing-feature-intro { max-width: 850px; padding: 105px 0 70px; text-align: center; }
.landing-feature-intro h2 { margin: 0; color: var(--navy); font-family: Georgia, serif; font-size: clamp(44px, 5vw, 64px); font-weight: 600; letter-spacing: -.04em; line-height: 1.02; }
.landing-feature-intro > p:last-child { max-width: 650px; margin: 25px auto 0; color: #596177; font-size: 17px; line-height: 1.75; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding-bottom: 100px; }
.feature-card { position: relative; overflow: hidden; min-height: 360px; background: rgb(255 255 255 / 72%); border: 1px solid #deddd8; border-radius: 22px; box-shadow: 0 16px 45px rgb(38 43 64 / 6%); }
.feature-card-featured { grid-column: span 2; color: white; background: var(--navy); border-color: var(--navy); }
.feature-band-inner { height: 100%; padding: 30px 30px 118px; }
.feature-card-featured .feature-band-inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 40px; padding: 34px; }
.feature-band-copy { position: relative; padding-top: 28px; }
.feature-band-number { position: absolute; top: -10px; left: -2px; color: #dedbe9; font-family: Georgia, serif; font-size: 58px; line-height: 1; opacity: .72; }
.feature-band-copy .landing-eyebrow { position: relative; }
.feature-band-copy h2, .product-cta h2, .pricing-card h2, .pricing-included h2 { position: relative; margin: 0 0 14px; color: var(--navy); font-family: Georgia, serif; font-size: 30px; font-weight: 600; letter-spacing: -.025em; line-height: 1.08; }
.feature-band-copy > p:last-child, .feature-band-copy > p:nth-last-child(2) { position: relative; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.feature-card-featured .feature-band-number { color: #514b82; }
.feature-card-featured .feature-band-copy h2 { color: white; font-size: 38px; }
.feature-card-featured .feature-band-copy > p { color: #b9c2d2; }
.feature-card-featured .landing-eyebrow { color: #a89eff; }
.feature-checks, .pricing-features { display: grid; gap: 12px; margin: 26px 0 0; padding: 0; list-style: none; }
.feature-checks li { padding-left: 22px; color: #e8eaf0; font-size: 13px; }
.feature-checks li::before { margin-left: -22px; padding-right: 10px; color: #a89eff; content: "✓"; }
.feature-visual { position: relative; min-height: 300px; background: linear-gradient(145deg, #f7f6f1, #e7e3ff); border-radius: 18px; }
.feature-note { position: absolute; top: 62px; right: 52px; left: 52px; padding: 28px; background: white; border: 1px solid rgb(32 41 65 / 9%); border-radius: 16px; box-shadow: 0 25px 55px rgb(31 37 65 / 18%); transform: rotate(-1.5deg); }
.feature-note span { color: var(--primary); font-size: 10px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.feature-note strong { display: block; margin: 18px 0 32px; color: var(--navy); font-family: Georgia, serif; font-size: 27px; line-height: 1.2; }
.feature-note p { margin: 0; color: var(--muted); font-size: 11px; }
.feature-file { position: absolute; right: 25px; bottom: 35px; display: flex; align-items: center; gap: 10px; padding: 13px 16px; color: #4d566d; background: white; border-radius: 11px; box-shadow: 0 14px 30px rgb(31 37 65 / 14%); font-size: 11px; }
.feature-file svg { width: 16px; color: var(--primary); }
.feature-file svg:last-child { color: #278068; }
.feature-band-art { position: absolute; right: 0; bottom: 0; width: 55%; height: 108px; min-height: 0; overflow: hidden; opacity: .72; }
.search-art { display: grid; place-items: center; }
.search-art span { position: relative; z-index: 2; display: grid; width: 112px; height: 112px; place-items: center; color: white; background: var(--primary); border-radius: 50%; box-shadow: 0 22px 60px rgb(87 76 216 / 30%); }
.search-art span svg { width: 44px; }
.search-art i { position: absolute; border: 1px solid #cbc7e3; border-radius: 50%; }
.search-art i:nth-of-type(1) { width: 190px; height: 190px; }.search-art i:nth-of-type(2) { width: 275px; height: 275px; }.search-art i:nth-of-type(3) { width: 360px; height: 360px; border-style: dashed; }
.reader-art { display: grid; place-items: center; }
.reader-art > div { width: min(380px, 75%); padding: 45px; background: white; border-left: 5px solid var(--primary); box-shadow: 0 28px 65px rgb(31 37 65 / 12%); transform: rotate(1.5deg); }
.reader-art b { display: block; width: 64%; height: 18px; margin-bottom: 30px; background: var(--navy); }
.reader-art span { display: block; height: 7px; margin-top: 13px; background: #d7d9df; }.reader-art span:nth-of-type(2) { width: 92%; }.reader-art span:nth-of-type(3) { width: 84%; }.reader-art span:nth-of-type(4) { width: 96%; }.reader-art span:nth-of-type(5) { width: 61%; }
.tags-art { display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 14px; padding: 55px; }
.tags-art span { padding: 14px 20px; color: #50479d; background: white; border: 1px solid #d8d4ef; border-radius: 99px; box-shadow: 0 10px 25px rgb(31 37 65 / 8%); font-size: 13px; font-weight: 700; transform: rotate(-2deg); }.tags-art span:nth-child(even) { transform: rotate(2deg); }.tags-art svg { width: 15px; margin-right: 7px; }
.hosting-art { display: grid; place-items: center; }
.hosting-art > span { display: grid; width: 168px; height: 168px; place-items: center; color: var(--navy); background: white; border: 1px solid #cbc7e3; border-radius: 50%; box-shadow: inset 0 0 0 12px #efedff, 0 25px 60px rgb(31 37 65 / 13%); font-family: Georgia, serif; font-size: 47px; font-weight: 700; }
.hosting-art > svg { position: absolute; right: calc(50% - 104px); bottom: 70px; width: 36px; height: 36px; padding: 9px; color: white; background: var(--primary); border-radius: 50%; box-sizing: content-box; }
.hosting-art i { position: absolute; width: 7px; height: 7px; background: var(--primary); border-radius: 50%; }.hosting-art i:nth-of-type(1) { transform: translate(-120px, -80px); }.hosting-art i:nth-of-type(2) { transform: translate(135px, -15px); }.hosting-art i:nth-of-type(3) { transform: translate(-105px, 105px); }
.stats-art { display: flex; height: 300px; align-items: flex-end; justify-content: center; gap: 18px; padding: 45px 70px; border-bottom: 1px solid #c9c8c2; }
.stats-art span { width: 42px; height: var(--bar); background: linear-gradient(#7a6eea, var(--primary)); border-radius: 7px 7px 0 0; }.stats-art svg { position: absolute; top: 25px; right: 35px; width: 25px; color: var(--primary); }
.export-art { display: grid; place-items: center; }
.export-art > div { width: 260px; padding: 42px; background: white; border: 1px solid #d7d5ce; box-shadow: 22px 22px 0 #dfdcf6; }
.export-art strong, .export-art span { display: block; }.export-art strong { color: var(--primary); font-family: Georgia, serif; font-size: 40px; }.export-art span { margin-top: 12px; color: var(--muted); font-size: 12px; }.export-art > svg { position: absolute; width: 35px; color: var(--primary); transform: translate(165px, 90px); }
.feature-card-capture { --feature-stamp: url("/static/images/features/capture-stamp.webp?v=3"); }
.feature-card-search { --feature-stamp: url("/static/images/features/search-stamp.webp"); }
.feature-card-reading { --feature-stamp: url("/static/images/features/reading-stamp.webp"); }
.feature-card-organize { --feature-stamp: url("/static/images/features/organize-stamp.webp"); }
.feature-card-hosting { --feature-stamp: url("/static/images/features/hosting-stamp.webp"); }
.feature-card-statistics { --feature-stamp: url("/static/images/features/statistics-stamp.webp"); }
.feature-card-export { --feature-stamp: url("/static/images/features/export-stamp.webp"); }
.feature-card .feature-band-copy { z-index: 1; }
.feature-card:not(.feature-card-featured) .feature-band-art { right: -12px; bottom: -24px; display: block; width: 185px; height: 185px; background: var(--feature-stamp) center / contain no-repeat; opacity: .42; transform: rotate(-4deg); }
.feature-card:nth-child(2n):not(.feature-card-featured) .feature-band-art { transform: rotate(4deg); }
.feature-card:not(.feature-card-featured) .feature-band-art > * { display: none; }
.feature-card-capture .feature-visual { min-height: 300px; overflow: hidden; background: transparent; border-color: transparent; }
.feature-card-capture .feature-visual::before { position: absolute; inset: 12px; content: ""; background: var(--feature-stamp) center / 275px no-repeat; filter: grayscale(1) invert(1) brightness(1.15); opacity: .82; }
.feature-card-capture .feature-note, .feature-card-capture .feature-file { display: none; }
.product-cta { padding: 90px 0; color: white; background: var(--navy); text-align: center; }
.product-cta .landing-eyebrow { color: #a89eff; }
.product-cta h2 { max-width: 620px; margin: 0 auto 18px; font-size: 42px; }
.pricing-hero { padding-bottom: 65px; }
.pricing-no-free { display: inline-flex; align-items: center; gap: 8px; margin-top: 30px; padding: 10px 16px; color: #535d73; background: rgb(255 255 255 / 68%); border: 1px solid #dedde3; border-radius: 99px; font-size: 12px; }
.pricing-no-free svg { width: 15px; color: var(--primary); }
.pricing-grid { display: grid; max-width: 900px; grid-template-columns: repeat(2, 1fr); gap: 22px; padding-bottom: 110px; }
.pricing-card { position: relative; display: flex; min-height: 520px; flex-direction: column; padding: 45px; background: #fff; border: 1px solid #deddd8; border-radius: 23px; box-shadow: 0 18px 50px rgb(38 43 64 / 8%); }
.pricing-card-featured { color: white; background: var(--navy); border-color: var(--navy); transform: translateY(-14px); box-shadow: 0 28px 65px rgb(24 31 51 / 22%); }
.pricing-card h2 { margin: 0 0 10px; color: var(--navy); font-size: 29px; }
.pricing-card-featured h2 { color: white; }
.pricing-card > div:first-of-type > p:last-child { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.pricing-card-featured > div:first-of-type > p:last-child { color: #aeb8ca; }
.pricing-card-featured .landing-eyebrow { color: #a89eff; }
.pricing-badge { position: absolute; top: 18px; right: 18px; padding: 7px 10px; color: #ddd9ff; background: #302c57; border-radius: 99px; font-size: 9px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.pricing-amount { display: flex; align-items: baseline; gap: 10px; margin: 52px 0 32px; }
.pricing-amount strong { color: var(--navy); font-family: Georgia, serif; font-size: 64px; font-weight: 600; letter-spacing: -.05em; }
.pricing-card-featured .pricing-amount strong { color: white; }
.pricing-amount span { color: var(--muted); font-size: 12px; }
.pricing-card-featured .pricing-amount span { color: #9ca7bc; }
.pricing-tax-note { display: block; margin: -22px 0 25px; color: #737c8d; font-size: 10px; }
.pricing-card-featured .pricing-tax-note { color: #9ca7bc; }
.pricing-button { justify-content: center; min-height: 50px; color: var(--primary); border: 1px solid #cbc8dc; }
.pricing-button-large { font-size: 15px; font-weight: 750; }
.pricing-card-featured .pricing-button { color: white; border-color: var(--primary); }
.pricing-features { margin-top: 30px; }
.pricing-features li { display: flex; align-items: center; gap: 10px; color: #596177; font-size: 12px; }
.pricing-card-featured .pricing-features li { color: #c3cad6; }
.pricing-features svg { width: 15px; color: var(--primary); }
.pricing-included { padding: 90px 0 110px; border-top: 1px solid #deddd8; text-align: center; }
.pricing-included h2 { margin: 0 0 38px; color: var(--navy); font-size: 38px; }
.pricing-feature-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; text-align: left; }
.pricing-feature-group { padding: 27px 25px; background: rgb(255 255 255 / 64%); border: 1px solid #dfddd7; border-radius: 17px; box-shadow: 0 14px 35px rgb(38 43 64 / 5%); }
.pricing-feature-group h3 { margin: 0 0 20px; color: var(--navy); font-family: Georgia, serif; font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.pricing-feature-group ul { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; }
.pricing-feature-group li { position: relative; padding-left: 22px; color: #596177; font-size: 12px; line-height: 1.55; }
.pricing-feature-group li::before { position: absolute; top: 0; left: 0; color: var(--primary); content: "✓"; font-weight: 800; }
.contact-hero { padding-bottom: 65px; }
.contact-form-section { max-width: 820px; padding-bottom: 110px; }
.contact-form { padding: 42px; background: rgb(255 255 255 / 78%); border: 1px solid #deddd8; border-radius: 22px; box-shadow: 0 18px 50px rgb(38 43 64 / 7%); }
.contact-email-card { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.contact-email-card .landing-eyebrow { margin-bottom: 10px; }
.contact-email-address { color: var(--ink); font-family: var(--serif); font-size: clamp(22px, 4vw, 34px); font-weight: 700; overflow-wrap: anywhere; }
.contact-email-card > div > p:last-child { max-width: 520px; margin: 14px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.contact-email-card .button { flex: 0 0 auto; }
.contact-provider-card { display: grid; grid-template-columns: 1.1fr 1fr .8fr; gap: 32px; margin-top: 16px; padding: 28px 34px; color: #596177; background: rgb(255 255 255 / 48%); border: 1px solid #e3e1dc; border-radius: 16px; font-size: 12px; line-height: 1.7; }
.contact-provider-card .landing-eyebrow { margin: 0 0 7px; }
.contact-provider-card strong { color: var(--ink); font-size: 15px; }
.contact-provider-card address { font-style: normal; }
.contact-provider-card address span, .contact-provider-card > div:last-child span { display: block; margin-bottom: 5px; color: #818898; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.contact-provider-card a { color: var(--ink); font-weight: 700; }
.contact-form label { display: flex; flex-direction: column; gap: 9px; color: #4d586b; font-size: 11px; font-weight: 700; }
.contact-form input { height: 48px; }.contact-form textarea { min-height: 190px; }
.contact-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.contact-subject { margin-bottom: 30px; }
.contact-form-actions { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 24px; }
.contact-form-actions p { display: flex; max-width: 470px; align-items: flex-start; gap: 9px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.contact-form-actions p svg { width: 16px; flex: 0 0 auto; color: var(--primary); }
.contact-form-actions .button { flex: 0 0 auto; }
.contact-error, .contact-success { margin: 0 0 18px; padding: 14px 17px; border-radius: 10px; font-size: 12px; }
.contact-error { color: #9a3340; background: #fff0f2; border: 1px solid #efc9cf; }
.contact-success { display: flex; align-items: center; gap: 10px; color: #236955; background: #edf9f4; border: 1px solid #c7eadc; }.contact-success svg { width: 18px; }.contact-success p { margin: 0; }
.auth-switch { margin: 18px 0 0; color: #788194; font-size: 12px; text-align: center; }
.auth-switch a { color: var(--primary); font-weight: 700; }
.field-help { color: #818898; font-size: 10px; font-weight: 500; line-height: 1.5; }
.inline-success { display: flex; align-items: center; gap: 9px; margin: 18px 0; padding: 12px 14px; color: #236955; background: #edf9f4; border: 1px solid #c7eadc; border-radius: 10px; font-size: 12px; }
.inline-success svg { flex: 0 0 auto; width: 17px; height: 17px; }
.privacy-note a { color: inherit; font-weight: 700; }
.legal-hero { padding-bottom: 55px; }
.legal-document { max-width: 850px; padding: 0 0 110px; }
.legal-document section { padding: 30px 34px; background: rgb(255 255 255 / 72%); border: 1px solid #dfddd7; border-radius: 16px; }
.legal-document section + section { margin-top: 14px; }
.legal-document h2 { margin: 0 0 14px; color: var(--navy); font-family: Georgia, serif; font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.legal-document p, .legal-document li { color: #596177; font-size: 13px; line-height: 1.75; }
.legal-document p { margin: 0; }
.legal-document p + p { margin-top: 13px; }
.legal-document a { color: #5148c5; font-weight: 700; }
.legal-updated { margin: 0 0 18px; color: #737c8d; font-size: 11px; }
.legal-notice { margin: 0 0 18px; padding: 18px 20px; color: #4d566d; background: #efedff; border: 1px solid #d8d4ef; border-radius: 12px; font-size: 12px; line-height: 1.65; }
.legal-form { margin-top: 18px; padding: 22px; background: #f7f6f1; border: 1px dashed #c9c6bc; border-radius: 10px; }
.legal-settings-button { min-height: 42px; margin-top: 18px; color: #5148c5; border: 1px solid #cbc8dc; }

@media (max-width: 1180px) { .landing-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }.landing-preview { width: min(680px, 100%); } }
@media (max-width: 960px) { .landing-hero { display: block; padding-top: 70px; text-align: center; }.landing-hero-copy { max-width: 690px; margin-inline: auto; }.landing-lede { margin-inline: auto; }.landing-actions { justify-content: center; }.landing-preview { width: min(760px, 100%); margin: 70px auto 0; }.trust-seals { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }.feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.feature-card-featured .feature-band-inner { grid-template-columns: 1fr 1fr; gap: 32px; }.pricing-grid { max-width: 760px; } }
@media (max-width: 680px) {
  .landing-width { width: calc(100% - 32px); }.landing-nav { height: 70px; }.landing-brand > span:last-child { display: none; }.landing-nav-menu { gap: 16px; font-size: 12px; }.landing-sign-in { display: none; }.landing-nav-menu .button { min-height: 38px; padding: 0 11px; font-size: 0; }.landing-nav-menu .button::before { content: attr(data-short-label); font-size: 11px; }.landing-nav-menu .button svg { width: 14px; }
  .landing-hero { min-height: auto; padding: 55px 0 65px; }.landing-hero h1 { font-size: clamp(44px, 13vw, 60px); }.landing-lede { font-size: 15px; }.landing-actions { flex-direction: column; }
  .landing-preview { margin-top: 55px; }.landing-window { transform: none; }
  .landing-promises { grid-template-columns: 1fr; gap: 42px; padding-block: 60px; }.landing-promises article { max-width: none; }.trust-seals { grid-template-columns: 1fr; gap: 25px; }.landing-assurance > div > .landing-eyebrow { text-align: left; }.landing-feature-intro { padding-block: 80px; }.landing-feature-intro h2 { font-size: clamp(36px, 10vw, 48px); }.landing-feature-intro > p:last-child { font-size: 15px; }
  .product-hero { padding: 70px 0 65px; }.product-hero h1 { font-size: clamp(43px, 12vw, 58px); }.product-hero > p:last-of-type { font-size: 15px; }.feature-grid { grid-template-columns: 1fr; gap: 14px; padding-bottom: 70px; }.feature-card, .feature-card-featured { min-height: 0; grid-column: auto; }.feature-card:not(.feature-card-featured) .feature-band-inner { min-height: 245px; padding: 26px 112px 26px 26px; }.feature-card:not(.feature-card-featured) .feature-band-art { right: -20px; bottom: -18px; display: block; width: 145px; height: 145px; opacity: .27; }.feature-card-featured { min-height: 570px; }.feature-card-featured .feature-band-inner { grid-template-columns: 1fr; gap: 24px; padding: 30px; }.feature-band-copy h2, .feature-card-featured .feature-band-copy h2 { font-size: 30px; }.feature-card-featured .feature-band-copy { padding-top: 28px; }.feature-visual { min-height: 255px; }.feature-note { top: 30px; right: 20px; left: 20px; padding: 20px; }.feature-note strong { margin-block: 14px 24px; font-size: 21px; }.product-cta { padding: 70px 0; }.product-cta h2 { font-size: 34px; }
  .pricing-hero { padding-bottom: 50px; }.pricing-no-free { align-items: flex-start; border-radius: 14px; line-height: 1.5; text-align: left; }.pricing-grid { width: calc(100% - 32px); grid-template-columns: 1fr; padding-bottom: 75px; }.pricing-card { min-height: 0; padding: 35px 28px; }.pricing-card-featured { transform: none; }.pricing-badge { position: static; width: max-content; margin-bottom: 25px; }.pricing-amount { margin-block: 38px 25px; }.pricing-included { padding-block: 70px; }.pricing-feature-groups { grid-template-columns: 1fr; }
  .contact-form-section { padding-bottom: 75px; }.contact-form { padding: 28px 22px; }.contact-email-card { flex-direction: column; align-items: stretch; gap: 26px; }.contact-email-card .button { justify-content: center; }.contact-provider-card { grid-template-columns: 1fr; gap: 22px; padding: 25px 22px; }.contact-form-row { grid-template-columns: 1fr; }.contact-form-actions { flex-direction: column; align-items: stretch; }.contact-form-actions .button { justify-content: center; }.public-footer > div { min-height: 220px; flex-direction: column; align-items: flex-start; justify-content: center; }.public-footer > div > div { flex-wrap: wrap; justify-content: flex-start; gap: 12px 18px; }.analytics-consent { right: 10px; bottom: 10px; left: 10px; max-width: none; justify-content: space-between; }.analytics-consent-actions { justify-content: flex-end; }.legal-document { padding-bottom: 75px; }.legal-document section { padding: 24px 21px; }
}

.legal-hero h1 { font-size: clamp(27px, 7.5vw, 36px); overflow-wrap: normal; }

@media (min-width: 681px) {
  .legal-hero h1 { font-size: clamp(52px, 6vw, 78px); overflow-wrap: normal; }
}
