:root {
  color-scheme: light;
  --paper: #f7f3e8;
  --card: #fffdf9;
  --surface: #efece6;
  --ink: #1a1a18;
  --muted: #5a5852;
  --quiet: #8c8980;
  --blue: #2855d9;
  --blue-hover: #1e44b8;
  --line: #e2ddd3;
  --shadow: 0 2px 5px rgba(50, 42, 25, .045), 0 8px 20px rgba(50, 42, 25, .025);
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 14px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
body:has(dialog[open]) { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, input, select, textarea, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button, input, select, textarea { color: inherit; }
button { background: none; }
button:disabled { cursor: not-allowed; opacity: .55; }
button, a, input, select, textarea { touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { border-radius: 0; }
img, svg { max-width: 100%; vertical-align: middle; }
img { height: auto; }
svg { flex-shrink: 0; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.3; }
p { margin-bottom: 1em; }
ul { padding-left: 1.25em; }
::selection { background: #dce4ff; color: var(--ink); }
:focus-visible { outline: 3px solid rgba(40, 85, 217, .32); outline-offset: 4px; }
[hidden] { display: none !important; }
.container { width: min(100%, 1200px); padding-inline: 24px; margin-inline: auto; }
.skip-link { position: absolute; z-index: 110; left: 24px; top: 12px; transform: translateY(-200%); padding: 8px 14px; border-radius: 6px; background: var(--blue); color: white; font-size: 12px; }
.skip-link:focus { transform: translateY(0); }
noscript { display: block; padding: 24px; color: var(--muted); text-align: center; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Shared navigation and controls. */
.site-header { position: relative; z-index: 20; border-bottom: 1px solid var(--line); background: rgba(247, 243, 232, .94); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; line-height: 1.2; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 38px; }
.brand-mark .icon { width: 32px; height: 32px; }
.brand-name { font-size: 19px; font-weight: 650; letter-spacing: -.55px; }
.brand-name small { display: block; color: var(--quiet); font-size: 9px; font-weight: 500; letter-spacing: 2.1px; margin-top: 4px; }
.main-nav { display: flex; align-items: stretch; align-self: stretch; gap: 30px; }
.nav-link { position: relative; display: inline-flex; align-items: center; white-space: nowrap; color: var(--muted); font-size: 14px; font-weight: 550; transition: color .18s; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--blue); }
.nav-link[aria-current="page"]::after { content: ""; position: absolute; height: 2px; background: var(--blue); left: 0; right: 0; bottom: -1px; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 19px; border: 1px solid transparent; border-radius: 8px; font-size: 14px; font-weight: 550; line-height: 1.4; text-align: center; white-space: nowrap; transition: background .18s, border-color .18s, color .18s, box-shadow .18s; }
.button-primary { background: var(--blue); border-color: var(--blue); color: white; box-shadow: 0 1px 2px rgba(28, 56, 139, .08); }
.button-primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
.button-secondary { background: transparent; border-color: var(--line); color: var(--ink); }
.button-secondary:hover { background: #ede8dd; border-color: #cec7ba; }
.button-ghost { color: var(--muted); padding-inline: 12px; }
.button-ghost:hover { background: var(--surface); color: var(--ink); }
.button-small { min-height: 38px; padding: 8px 15px; font-size: 13px; }
.button-block { width: 100%; }
.button .icon { width: 18px; height: 18px; }
.mobile-menu-toggle { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 8px; }
.mobile-menu-toggle:hover { background: var(--surface); }
.text-link { display: inline-flex; align-items: center; gap: 5px; color: var(--blue); font-size: 13px; font-weight: 550; }
.text-link:hover { color: var(--blue-hover); text-decoration: underline; text-underline-offset: 4px; }
.text-link .icon { width: 16px; height: 16px; }
.eyebrow { color: var(--quiet); font-size: 10px; line-height: 1.5; letter-spacing: 2px; font-weight: 600; text-transform: uppercase; margin-bottom: 15px; }
.eyebrow-dot { display: inline-block; width: 5px; height: 5px; margin: 0 7px 2px 0; border-radius: 50%; background: var(--blue); vertical-align: middle; }

/* The homepage keeps the warm, editorial composition of the selected reference. */
.hero { display: grid; grid-template-columns: 5fr 7fr; align-items: center; gap: 32px; padding-block: 48px; }
.hero-copy { padding-block: 10px; }
.hero-copy h1 { font-family: var(--serif); font-size: clamp(40px, 4.2vw, 48px); font-weight: 700; line-height: 1.35; letter-spacing: -1.6px; margin-bottom: 20px; }
.hero-intro { max-width: 400px; margin-bottom: 0; color: var(--muted); font-size: 14px; line-height: 1.95; }
.hero-link { margin-top: 20px; }
.feature-card { min-width: 0; display: flex; align-items: center; gap: 24px; padding: 26px; border: 1px solid #ded5c4; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.feature-card > div:first-child { flex: 1 1 49%; min-width: 0; }
.chart-preview { flex: 1 1 49%; min-width: 0; align-self: stretch; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid #ddd5c7; border-radius: 7px; background: var(--card); box-shadow: 0 5px 14px rgba(54, 44, 27, .06); }
.chart-preview > svg { display: block; width: 100%; height: auto; }
.chart-preview > img { width: 100%; height: 100%; object-fit: cover; }
.feature-info { flex: 1 1 51%; min-width: 0; }
.feature-kicker { display: block; margin-bottom: 11px; color: #8b806c; font-size: 10px; letter-spacing: 1.7px; font-weight: 600; text-transform: uppercase; }
.feature-kicker .icon { width: 13px; height: 13px; margin: -2px 2px 0 0; }
.feature-info h2 { margin-bottom: 9px; font-size: 23px; font-weight: 650; letter-spacing: -.7px; }
.feature-info h2 .badge { margin-left: 6px; vertical-align: middle; }
.feature-description { margin-bottom: 10px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.feature-caption { margin-bottom: 18px; color: var(--quiet); font-size: 11px; line-height: 1.8; }
.feature-info .button { width: 100%; min-height: 40px; font-size: 13px; }
.badge { display: inline-flex; align-items: center; justify-content: center; min-height: 22px; padding: 2px 7px; border-radius: 5px; background: var(--surface); color: var(--muted); font-family: var(--sans); font-size: 11px; font-weight: 500; line-height: 1.4; letter-spacing: 0; white-space: nowrap; }
.feature-card .badge { background: #e6dece; }
.search-section { margin: 0 auto 36px; max-width: 690px; }
.search-form { position: relative; display: flex; align-items: center; gap: 8px; min-width: 0; padding: 6px; background: var(--card); border: 1px solid #d9d3c8; border-radius: 10px; box-shadow: var(--shadow); }
.search-form:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(40, 85, 217, .08); }
.search-field { min-width: 0; flex: 1; display: flex; align-items: center; padding-left: 11px; gap: 10px; }
.search-field > .icon { width: 20px; height: 20px; color: var(--quiet); }
.search-input { width: 100%; min-width: 0; border: 0; padding: 8px 0; background: transparent; font-size: 13px; line-height: 1.5; outline: none; }
.search-input::placeholder { color: #969186; opacity: 1; }
.search-submit { min-height: 39px; padding-inline: 24px; flex-shrink: 0; }
.category-pills { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 20px; }
.category-pill { min-height: 34px; padding: 6px 15px; border: 1px solid #ddd6ca; border-radius: 100px; color: var(--muted); font-size: 12px; line-height: 1.5; white-space: nowrap; transition: background .18s, color .18s, border-color .18s; }
.category-pill:hover { background: #ede8dc; border-color: #cfc7b8; }
.category-pill[aria-pressed="true"] { color: white; background: var(--blue); border-color: var(--blue); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.section-title { margin: 0; font-size: 19px; font-weight: 650; letter-spacing: -.4px; }
.section-heading .eyebrow { margin-bottom: 6px; font-size: 8px; letter-spacing: 1.6px; }
.section-note { color: var(--quiet); font-size: 12px; margin: 0; }
.tool-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.tool-card { min-width: 0; display: flex; flex-direction: column; padding: 24px 22px 20px; border: 1px solid #dcd5c9; border-radius: 12px; background: var(--card); box-shadow: var(--shadow); transition: border-color .18s, box-shadow .18s; }
.tool-card:hover { border-color: #bdb3a2; box-shadow: 0 4px 14px rgba(50, 42, 25, .065); }
.tool-card-home { min-height: 299px; }
.tool-icon { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; flex-shrink: 0; margin: 0 auto 24px; background: #f1ece2; border-radius: 50%; color: #2d2b26; }
.tool-icon > .icon { width: 39px; height: 39px; stroke-width: 1.5; }
.tool-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 7px; margin-bottom: 10px; }
.tool-title { margin: 0; font-size: 18px; font-weight: 650; letter-spacing: -.55px; }
.tool-title-button { display: inline; margin: 0; padding: 0; border: 0; border-radius: 2px; background: transparent; color: inherit; font: inherit; letter-spacing: inherit; text-align: left; line-height: inherit; }
.tool-title-button:hover { color: var(--blue); }
.tool-title a { display: inline-block; }
.tool-title a:hover { color: var(--blue); }
.tool-description { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: var(--muted); font-size: 13px; line-height: 1.85; margin-bottom: 16px; }
.tool-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: var(--quiet); font-size: 11px; margin-bottom: 15px; }
.tool-card-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.tool-card-home .tool-card-actions { flex-direction: column; align-items: stretch; gap: 10px; }
.tool-card-home .tool-card-actions .button { min-height: 38px; padding: 8px 10px; font-size: 12px; }
.tool-card-home .tool-card-actions .text-link { justify-content: center; font-size: 11px; }
.tool-card-home .tool-description { min-height: 3.7em; }
.status-note { display: block; margin-top: 8px; color: var(--quiet); font-size: 10px; line-height: 1.6; }
.updates-strip { display: flex; align-items: flex-start; gap: 18px; margin-top: 32px; padding-top: 21px; border-top: 1px solid var(--line); font-size: 12px; }
.updates-label { color: var(--quiet); flex-shrink: 0; }
.updates-label .icon { width: 14px; height: 14px; margin: -2px 5px 0 0; }
.updates-content { color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.updates-content p { margin: 0; }
.updates-content time { color: var(--quiet); font-size: 10px; }
.updates-content > .icon { width: 14px; height: 14px; color: var(--quiet); }
.updates-content:hover { color: var(--blue); }

/* Directory page. */
.catalog-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding-block: 46px 34px; }
.catalog-heading h1 { margin-bottom: 8px; font-family: var(--serif); font-size: 40px; font-weight: 700; letter-spacing: -1.3px; }
.catalog-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.catalog-heading .eyebrow { margin-bottom: 12px; }
.catalog-search { width: min(100%, 440px); flex-shrink: 1; margin-bottom: 4px; }
.catalog-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: start; gap: 32px; }
.filters-toggle { display: none; }
.filter-sidebar { padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.filter-group + .filter-group { margin-top: 23px; }
.filter-title { margin: 0 0 10px; color: var(--quiet); font-size: 10px; line-height: 1.6; font-weight: 600; letter-spacing: 1.2px; }
.filter-option { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 37px; padding: 7px 10px; border: 1px solid transparent; border-radius: 6px; color: var(--muted); font-size: 13px; text-align: left; line-height: 1.5; transition: background .18s, color .18s; }
.filter-option:hover { color: var(--ink); background: #f0ebe1; }
.filter-option[aria-pressed="true"] { color: var(--ink); background: #eae4d8; font-weight: 600; }
.filter-count { color: var(--quiet); font-size: 10px; font-weight: 400; }
.author-note { margin-top: 25px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--quiet); font-size: 11px; line-height: 1.9; }
.author-note p { margin-bottom: 0; }
.catalog-content { min-width: 0; }
.results-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; margin-bottom: 15px; }
.results-count { margin: 0; font-size: 17px; font-weight: 600; }
.results-count span { font-weight: 400; color: var(--quiet); font-size: 12px; margin-left: 6px; }
.sort-select { max-width: 160px; border: 1px solid transparent; padding: 6px 24px 6px 7px; background-color: transparent; color: var(--muted); font-size: 12px; cursor: pointer; border-radius: 5px; }
.sort-select:hover { border-color: var(--line); }
.sort-label { display: inline-flex; align-items: center; gap: 5px; color: var(--quiet); font-size: 11px; white-space: nowrap; }
.catalog-content .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tool-card-catalog { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 46px; align-content: start; column-gap: 14px; min-height: 262px; padding: 25px 25px 21px; }
.tool-card-catalog .tool-icon { grid-column: 2; grid-row: 1; width: 42px; height: 42px; justify-self: end; align-self: start; margin: 2px 0 20px; background: transparent; border-radius: 0; }
.tool-card-catalog .tool-icon > .icon { width: 35px; height: 35px; }
.tool-card-catalog .tool-heading { grid-column: 1; grid-row: 1; display: block; min-height: 53px; margin-bottom: 20px; }
.tool-card-catalog .tool-heading .badge { margin-top: 5px; padding: 0; background: transparent; font-size: 12px; }
.tool-card-catalog .tool-title { font-size: 21px; }
.tool-card-catalog .tool-description { grid-column: 1 / -1; grid-row: 3; border-top: 1px solid var(--line); padding-top: 14px; font-size: 13px; margin-bottom: 0; }
.tool-card-catalog .tool-card-actions { grid-column: 1 / -1; grid-row: 2; flex-wrap: nowrap; margin: 0 0 16px; }
.tool-card-catalog .tool-card-actions .button { min-height: 39px; flex: 1; padding-inline: 10px; font-size: 12px; }
.tool-card-catalog .tool-card-actions .text-link { flex-shrink: 0; font-size: 11px; }
.tool-card-catalog .status-note { grid-column: 1 / -1; grid-row: 4; margin-top: 10px; }
.catalog-note { margin-top: 22px; font-size: 11px; line-height: 1.8; }
.active-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.active-filters:empty { display: none; }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #d5dbec; border-radius: 5px; padding: 4px 8px; background: #edf0f8; color: #3a518b; font-size: 10px; line-height: 1.6; }
.filter-chip .icon { width: 12px; height: 12px; }
.filter-chip:hover { border-color: #a8b6de; }
.clear-filters { border: 0; padding: 5px 0; color: var(--blue); font-size: 11px; }
.clear-filters:hover { text-decoration: underline; text-underline-offset: 3px; }
.empty-state { grid-column: 1 / -1; border: 1px dashed #d4ccbd; border-radius: 12px; padding: 58px 24px; text-align: center; background: rgba(255, 253, 249, .45); color: var(--muted); }
.empty-state > .icon { width: 36px; height: 36px; color: #aaa293; margin-bottom: 16px; }
.empty-state h2, .empty-state h3 { margin-bottom: 8px; color: var(--ink); font-size: 19px; font-weight: 600; }
.empty-state p { font-size: 13px; margin-bottom: 20px; }
.changelog { margin-top: 46px; max-width: 850px; }
.changelog > h1 { font-family: var(--serif); font-size: 40px; font-weight: 700; letter-spacing: -1px; margin-bottom: 14px; }
.change-entry { display: grid; grid-template-columns: 115px minmax(0, 1fr); gap: 28px; padding: 27px 0; border-top: 1px solid var(--line); }
.change-entry time { color: var(--quiet); font-size: 12px; }
.change-entry h2 { margin-bottom: 9px; font-size: 19px; font-weight: 600; }
.change-entry .badge { margin-bottom: 10px; }
.change-entry p, .change-entry ul { color: var(--muted); font-size: 13px; margin-bottom: 0; }
.change-entry li + li { margin-top: 5px; }
.change-entry .text-link { margin-top: 17px; }

.site-footer { margin-top: 52px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 94px; padding-block: 24px; border-top: 1px solid var(--line); color: var(--quiet); font-size: 10px; }
.footer-inner p { margin-bottom: 0; }
.footer-note { margin-top: -5px; margin-bottom: 24px; color: var(--quiet); font-size: 10px; line-height: 1.8; }
.footer-year { display: inline-block; margin-left: 12px; padding-left: 12px; border-left: 1px solid var(--line); }
.footer-inner .brand { gap: 7px; }
.footer-inner .brand > .icon { width: 20px; height: 20px; }
.footer-inner .brand > span { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: -.2px; }
.footer-inner .brand > span small { margin-left: 2px; color: var(--quiet); font-size: 9px; font-weight: 400; }
.footer-inner .brand-mark { width: 21px; height: 23px; }
.footer-inner .brand-mark .icon { width: 20px; height: 20px; }
.footer-inner .brand-name { font-size: 12px; letter-spacing: -.2px; }
.footer-inner .brand-name small { display: none; }

/* Native dialogs preserve keyboard and browser semantics. */
.dialog { width: min(500px, calc(100% - 36px)); max-width: none; max-height: min(86dvh, 840px); margin: auto; padding: 0; overflow: hidden; border: 1px solid #d8d1c4; border-radius: 15px; background: var(--card); color: var(--ink); box-shadow: 0 22px 80px rgba(25, 23, 17, .22); }
.dialog::backdrop { background: rgba(29, 28, 23, .40); backdrop-filter: blur(3px); }
.dialog-wide { width: min(880px, calc(100% - 40px)); }
.dialog-shell { display: flex; flex-direction: column; max-height: min(86dvh, 840px); min-height: 0; }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-shrink: 0; padding: 25px 28px 20px; border-bottom: 1px solid var(--line); background: var(--card); }
.dialog-title { margin: 0; font-size: 23px; font-weight: 650; letter-spacing: -.6px; }
.dialog-close { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; padding: 0; margin: -2px -5px 0 0; border: 0; border-radius: 6px; color: var(--quiet); }
.dialog-close:hover { background: var(--surface); color: var(--ink); }
.dialog-close .icon { width: 19px; height: 19px; }
.dialog-body { overflow-y: auto; min-height: 0; padding: 24px 28px 28px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #cfc7ba transparent; }
.dialog-lead { color: var(--muted); font-size: 13px; line-height: 1.9; margin-bottom: 22px; }
.dialog-note { border: 1px solid #dfd8cb; border-radius: 8px; padding: 12px 14px; background: #f5f0e6; color: #786d5c; font-size: 11px; line-height: 1.8; }
.dialog-note p { margin: 0; }
.field { margin-bottom: 17px; }
.field label { display: block; color: var(--muted); font-size: 12px; font-weight: 550; margin-bottom: 7px; }
.field input, .field textarea { display: block; width: 100%; min-width: 0; border: 1px solid #dcd5ca; border-radius: 7px; padding: 10px 12px; background: #fffefa; font-size: 13px; line-height: 1.65; }
.field input::placeholder, .field textarea::placeholder { color: #a29b8e; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(40, 85, 217, .08); }
.field textarea { resize: vertical; min-height: 150px; }
.field-error { margin: 6px 0 0; color: #ac4435; font-size: 11px; }
.auth-tabs { display: flex; border-bottom: 1px solid var(--line); gap: 25px; margin-bottom: 22px; }
.auth-tab { padding: 0 1px 11px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--quiet); font-size: 14px; }
.auth-tab[aria-selected="true"] { color: var(--blue); border-color: var(--blue); font-weight: 600; }
.auth-submit { width: 100%; margin-block: 3px 18px; }
.detail-top { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.detail-top .tool-icon { margin: 0; width: 58px; height: 58px; }
.detail-top h2, .detail-top h3 { margin-bottom: 6px; }
.detail-top .tool-meta { margin-bottom: 0; }
.detail-features { list-style: none; margin: 0 0 24px; padding: 0; color: var(--muted); font-size: 13px; line-height: 1.9; }
.detail-features li { display: flex; align-items: flex-start; gap: 9px; }
.detail-features .icon { width: 15px; height: 15px; margin-top: 5px; color: var(--blue); }
.detail-features li + li { margin-top: 6px; }
.detail-release { display: flex; align-items: flex-start; gap: 11px; margin-block: 22px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #f6f2e9; color: var(--quiet); font-size: 12px; }
.detail-release > .icon { width: 18px; height: 18px; margin-top: 3px; }
.detail-release p { margin-top: 4px; margin-bottom: 5px; font-size: 11px; line-height: 1.8; }
.detail-release p:last-child { margin-bottom: 0; }
.detail-release strong { color: var(--muted); font-weight: 550; }
.detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.demo-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.demo-toolbar .button { min-height: 35px; padding: 7px 12px; font-size: 12px; }
.demo-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.demo-panel { min-width: 0; }
.demo-panel h3, .demo-panel > label, .demo-panel > span { display: block; margin: 0 0 8px; color: var(--muted); font-size: 12px; font-weight: 550; }
.demo-panel > p { color: var(--quiet); font-size: 10px; line-height: 1.8; margin: 8px 0 0; }
.demo-panel textarea { width: 100%; min-width: 0; min-height: 245px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; resize: vertical; background: #fcfaf5; color: var(--ink); font-family: "Cascadia Code", Consolas, monospace; font-size: 12px; line-height: 1.8; tab-size: 2; }
.demo-panel textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(40, 85, 217, .08); }
.demo-output { min-height: 245px; margin: 0; padding: 14px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: #f5f2eb; color: #424b3c; font-family: "Cascadia Code", Consolas, monospace; font-size: 12px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.demo-status { min-height: 20px; margin: 14px 0 0; color: var(--quiet); font-size: 11px; }
.demo-status[data-state="error"], .demo-status.is-error { color: #ac4435; }
.demo-status[data-state="success"], .demo-status.is-success { color: #4b7145; }
.demo-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.demo-stat { padding: 15px 10px; border: 1px solid var(--line); border-radius: 8px; background: #f6f2e9; text-align: center; color: var(--muted); font-size: 11px; }
.demo-stat strong { display: block; margin-bottom: 3px; color: var(--blue); font-size: 25px; line-height: 1.4; font-weight: 600; }
.demo-chart { display: block; min-height: 245px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: #fcfaf5; }
.demo-chart > svg { display: block; max-width: none; }
.markdown-preview { color: var(--muted); font-family: var(--sans); font-size: 13px; line-height: 1.8; }
.markdown-preview h1, .markdown-preview h2, .markdown-preview h3 { color: var(--ink); margin: 1em 0 .6em; }
.markdown-preview h1 { font-family: var(--serif); font-size: 25px; }
.markdown-preview h2 { font-size: 20px; }
.markdown-preview h3 { font-size: 16px; }
.markdown-preview > :first-child { margin-top: 0; }
.markdown-preview p { margin-bottom: 12px; }
.markdown-preview blockquote { margin: 14px 0; padding: 4px 0 4px 13px; border-left: 3px solid #c9c1b2; color: #80786b; }
.markdown-preview code { padding: 2px 4px; border-radius: 3px; background: #e9e4d9; color: #575247; font-family: "Cascadia Code", Consolas, monospace; font-size: .9em; }
.markdown-preview pre { padding: 12px; overflow: auto; border: 1px solid var(--line); border-radius: 5px; background: #ece7dc; }
.markdown-preview pre code { padding: 0; background: transparent; white-space: pre-wrap; }
.markdown-preview hr { margin-block: 20px; border: 0; border-top: 1px solid #d8d0c1; }
.toast { position: fixed; z-index: 100; bottom: 24px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 36px); padding: 12px 18px; border: 1px solid #403f39; border-radius: 9px; background: #292923; color: #fffdf9; box-shadow: 0 8px 24px rgba(25, 23, 17, .15); font-size: 12px; line-height: 1.7; text-align: center; }

@media (min-width: 1440px) {
  .hero { padding-block: 56px; }
}
@media (max-width: 1023px) {
  .header-inner { gap: 20px; }
  .main-nav { gap: 21px; }
  .brand-name { font-size: 17px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero-copy h1 { font-size: 40px; }
  .feature-card { gap: 17px; padding: 21px; }
  .feature-info h2 { font-size: 20px; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-card-home { min-height: 275px; }
  .tool-icon { margin-bottom: 20px; }
  .catalog-layout { grid-template-columns: minmax(0, 1fr); gap: 17px; }
  .filters-toggle { display: inline-flex; justify-content: space-between; width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 13px; background: rgba(255, 253, 249, .6); }
  .filters-toggle { margin-bottom: 16px; }
  .filters-toggle .icon { width: 17px; height: 17px; }
  .filter-sidebar { display: none; padding: 18px; }
  .filter-sidebar[data-open="true"] { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .filter-group + .filter-group { margin-top: 0; }
  .author-note { grid-column: 1 / -1; margin-top: 0; padding-top: 14px; }
  .tool-card-catalog { padding: 21px 18px 18px; }
  .tool-card-catalog .tool-title { font-size: 19px; }
  .tool-card-catalog .tool-card-actions { flex-wrap: wrap; }
  .tool-card-catalog .tool-card-actions .text-link { font-size: 10px; }
}
@media (max-width: 767px) {
  .container { padding-inline: 20px; }
  .header-inner { min-height: 76px; gap: 12px; flex-wrap: wrap; }
  .brand-name { font-size: 16px; letter-spacing: -.5px; }
  .brand-name small { font-size: 8px; letter-spacing: 1.6px; }
  .brand-mark, .brand-mark .icon { width: 28px; height: 30px; }
  .brand { gap: 8px; }
  .header-actions { gap: 6px; margin-left: auto; }
  .header-actions .button { min-height: 36px; padding: 7px 11px; font-size: 12px; }
  .mobile-menu-toggle { display: inline-flex; width: 36px; height: 36px; }
  .mobile-menu-toggle .icon { width: 19px; height: 19px; }
  .main-nav { display: none; order: 4; width: 100%; align-self: auto; gap: 25px; padding: 3px 0 15px; }
  .site-header[data-open="true"] .main-nav { display: flex; }
  .nav-link { min-height: 34px; font-size: 13px; }
  .nav-link[aria-current="page"]::after { bottom: -3px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 35px 32px; }
  .hero-copy { padding-block: 0; }
  .hero-copy h1 { font-size: 40px; margin-bottom: 16px; letter-spacing: -1.2px; }
  .hero-intro { max-width: 520px; font-size: 13px; }
  .feature-card { min-height: 207px; padding: 22px; gap: 24px; }
  .feature-card > div:first-child { flex-basis: 47%; }
  .chart-preview { flex-basis: 47%; align-self: stretch; }
  .feature-info { flex-basis: 53%; }
  .feature-info h2 { font-size: 22px; }
  .feature-description { margin-bottom: 15px; }
  .search-section { margin-bottom: 29px; }
  .category-pills { margin-top: 16px; gap: 7px; }
  .category-pill { min-height: 32px; padding: 6px 12px; font-size: 11px; }
  .section-heading { margin-bottom: 15px; }
  .section-title { font-size: 18px; }
  .tool-grid, .catalog-content .tool-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .tool-card { padding: 22px 20px 18px; }
  .tool-card-home { min-height: 280px; }
  .tool-title { font-size: 18px; }
  .updates-strip { gap: 12px; margin-top: 26px; padding-top: 18px; font-size: 11px; }
  .catalog-heading { align-items: flex-start; flex-direction: column; gap: 22px; padding-block: 33px 24px; }
  .catalog-heading h1 { font-size: 34px; margin-bottom: 8px; }
  .catalog-search { width: 100%; max-width: none; margin: 0; }
  .catalog-layout { grid-template-columns: minmax(0, 1fr); gap: 17px; }
  .filters-toggle { display: inline-flex; justify-content: space-between; width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 13px; background: rgba(255, 253, 249, .6); }
  .filters-toggle .icon { width: 17px; height: 17px; }
  .filter-sidebar { display: none; padding: 18px; }
  .filter-sidebar[data-open="true"] { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .filter-group + .filter-group { margin-top: 0; }
  .filter-title { font-size: 10px; margin-bottom: 7px; }
  .filter-option { padding: 7px 9px; font-size: 12px; }
  .author-note { grid-column: 1 / -1; margin-top: 0; padding-top: 14px; font-size: 10px; }
  .results-toolbar { margin-bottom: 13px; }
  .results-count { font-size: 16px; }
  .tool-card-catalog { min-height: 253px; padding: 22px 20px 18px; }
  .tool-card-catalog .tool-title { font-size: 20px; }
  .site-footer { margin-top: 36px; }
  .footer-inner { min-height: 86px; gap: 14px; font-size: 9px; }
  .footer-note { font-size: 9px; }
  .change-entry { grid-template-columns: 90px minmax(0, 1fr); gap: 18px; padding-block: 23px; }
  .dialog-wide { width: calc(100% - 32px); }
  .dialog-header { padding: 22px 22px 17px; }
  .dialog-body { padding: 20px 22px 23px; }
  .dialog-title { font-size: 21px; }
  .demo-grid { grid-template-columns: minmax(0, 1fr); gap: 17px; }
  .demo-panel textarea, .demo-output { min-height: 180px; }
  .desktop-break { display: none; }
  .changelog { margin-top: 34px; }
  .changelog > h1 { font-size: 34px; }
}
@media (max-width: 480px) {
  .container { padding-inline: 18px; }
  .header-inner { min-height: 72px; column-gap: 8px; }
  .brand-name { font-size: 14px; }
  .brand-name small { font-size: 7px; letter-spacing: 1.4px; }
  .brand-mark, .brand-mark .icon { width: 25px; height: 27px; }
  .brand { gap: 7px; }
  .header-actions .button-ghost { padding-inline: 6px; }
  .header-actions .button-primary { padding-inline: 10px; }
  .header-actions { gap: 4px; }
  .mobile-menu-toggle { width: 32px; height: 34px; }
  .hero { gap: 26px; padding-block: 30px; }
  .hero-copy h1 { font-size: 36px; line-height: 1.35; }
  .eyebrow { font-size: 9px; letter-spacing: 1.5px; margin-bottom: 13px; }
  .hero-intro { font-size: 12px; line-height: 1.9; }
  .feature-card { min-height: 0; padding: 18px; gap: 17px; }
  .feature-card > div:first-child { flex-basis: 43%; }
  .chart-preview { flex-basis: 43%; min-height: 130px; }
  .feature-info { flex-basis: 57%; }
  .feature-kicker { font-size: 8px; letter-spacing: 1px; margin-bottom: 7px; }
  .feature-info h2 { font-size: 19px; margin-bottom: 7px; }
  .feature-info h2 .badge { margin-left: 0; }
  .feature-description { font-size: 11px; line-height: 1.7; margin-bottom: 12px; }
  .feature-caption { font-size: 10px; margin-bottom: 12px; }
  .feature-info .button { min-height: 35px; padding: 7px 10px; font-size: 11px; }
  .search-form { gap: 5px; padding: 5px; border-radius: 9px; }
  .search-field { padding-left: 8px; gap: 7px; }
  .search-field > .icon { width: 17px; height: 17px; }
  .search-input { font-size: 11px; padding-block: 8px; }
  .search-submit { min-height: 36px; padding: 8px 15px; font-size: 12px; }
  .category-pills { justify-content: flex-start; gap: 7px; }
  .category-pill { min-height: 30px; padding: 5px 11px; font-size: 10px; }
  .section-heading { gap: 10px; }
  .section-note { font-size: 10px; }
  .tool-grid, .catalog-content .tool-grid { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .tool-card-home { min-height: 0; padding: 23px; }
  .tool-card-home .tool-icon { width: 58px; height: 58px; margin: 0 0 19px; }
  .tool-card-home .tool-icon > .icon { width: 35px; height: 35px; }
  .tool-card-home .tool-description { font-size: 12px; margin-bottom: 15px; }
  .tool-card-home .tool-card-actions { flex-direction: row; align-items: center; }
  .tool-card-home .tool-card-actions .button { flex: 1; }
  .tool-card-home .tool-card-actions .text-link { font-size: 11px; flex-shrink: 0; }
  .tool-card-catalog { min-height: 0; padding: 23px; }
  .tool-card-catalog .tool-icon { margin-bottom: 15px; }
  .tool-card-catalog .tool-card-actions { flex-wrap: nowrap; }
  .tool-card-catalog .tool-card-actions .text-link { font-size: 11px; }
  .tool-card-catalog .tool-title { font-size: 21px; }
  .updates-strip { flex-direction: column; gap: 5px; }
  .catalog-heading h1 { font-size: 32px; }
  .catalog-heading p { font-size: 12px; }
  .filter-sidebar[data-open="true"] { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 15px; }
  .filter-group:first-child { grid-column: 1 / -1; }
  .filter-group:first-child .filter-option { display: inline-flex; width: auto; min-height: 32px; margin: 0 4px 4px 0; }
  .filter-group:first-child .filter-count { margin-left: 4px; }
  .results-count { font-size: 15px; }
  .sort-select { font-size: 11px; max-width: 135px; }
  .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; gap: 8px; padding-block: 23px; }
  .footer-note { max-width: 100%; }
  .change-entry { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .change-entry h2 { font-size: 18px; }
  .dialog, .dialog-wide { width: calc(100% - 24px); max-height: 90dvh; border-radius: 12px; }
  .dialog-shell { max-height: 90dvh; }
  .dialog-header { padding: 21px 19px 16px; gap: 12px; }
  .dialog-body { padding: 19px; }
  .dialog-title { font-size: 20px; }
  .dialog-lead { font-size: 12px; }
  .detail-actions .button { flex-grow: 1; }
  .demo-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-toolbar { gap: 6px; }
  .demo-toolbar .button { padding-inline: 10px; font-size: 11px; }
  .toast { bottom: 16px; padding: 11px 15px; font-size: 11px; }
}
@media (max-width: 350px) {
  .container { padding-inline: 15px; }
  .header-inner { column-gap: 5px; }
  .brand-name { font-size: 13px; }
  .brand-mark, .brand-mark .icon { width: 23px; }
  .header-actions .button { font-size: 11px; padding-inline: 7px; }
  .header-actions .button-ghost { padding-inline: 4px; }
  .feature-card { flex-direction: column; align-items: stretch; }
  .feature-card > div:first-child { flex-basis: auto; }
  .chart-preview { width: 100%; max-height: 170px; }
  .feature-info h2 { font-size: 21px; }
  .feature-info .button { width: 100%; }
  .hero-copy h1 { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.tool-card-actions button.text-link { border: 0; background: transparent; padding: 8px 0; cursor: pointer; }

/* Independent email accounts use the same quiet, compact dialog language. */
.auth-intro { margin-bottom: 20px; color: var(--muted); font-size: 13px; line-height: 1.85; }
.auth-help { margin: -3px 0 18px; color: var(--quiet); font-size: 11px; line-height: 1.8; }
.auth-back { margin-bottom: 20px; padding: 0; border: 0; }
#auth-dialog .text-link { border: 0; padding: 0; }
.password-field { position: relative; }
.password-field input { padding-right: 63px; }
.password-toggle { position: absolute; top: 1px; right: 1px; bottom: 1px; min-width: 55px; border: 0; border-radius: 0 7px 7px 0; color: var(--blue); font-size: 11px; }
.password-toggle:hover { background: var(--surface); }
.auth-message { margin: 0 0 17px; padding: 11px 13px; border: 1px solid #ead3ca; border-radius: 8px; background: #faf0ea; color: #924b39; font-size: 12px; line-height: 1.75; overflow-wrap: anywhere; }
.auth-message[role="status"], .auth-message.auth-success { border-color: #d5ddcc; background: #f0f4e9; color: #4b6342; }
.account-menu-button { gap: 8px; }
.account-avatar { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: #e0e6f5; color: var(--blue); font-size: 11px; line-height: 1; }
.account-avatar-large { width: 46px; height: 46px; font-size: 21px; }
.account-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; }
.account-heading > div { min-width: 0; }
.account-heading h3 { margin: 0 0 5px; font-size: 20px; overflow-wrap: anywhere; }
.account-heading p { margin: 0; color: var(--quiet); font-size: 12px; overflow-wrap: anywhere; }
.account-facts { margin: 0 0 20px; font-size: 12px; }
.account-facts > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 18px; padding-block: 10px; border-bottom: 1px solid var(--line); }
.account-facts dt { color: var(--quiet); }
.account-facts dd { margin: 0; color: var(--muted); }
.account-actions { display: flex; flex-wrap: wrap; gap: 9px; margin: 20px 0; }
.account-actions .button { padding: 9px 12px; font-size: 12px; }
.account-danger { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 15px; }
.account-danger summary { width: fit-content; cursor: pointer; color: #925245; font-size: 12px; }
.account-danger > p { margin: 13px 0; color: var(--quiet); font-size: 11px; line-height: 1.85; }
.button-danger { background: #934c3e; border-color: #934c3e; color: #fffdf9; }
.button-danger:hover { background: #793e32; border-color: #793e32; }
.auth-check { display: flex; align-items: flex-start; gap: 9px; margin: 18px 0; font-size: 12px; line-height: 1.8; color: var(--muted); cursor: pointer; }
.auth-check input { width: 17px; height: 17px; flex-shrink: 0; margin: 3px 0 0; accent-color: var(--blue); }
.recovery-card { border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin-bottom: 17px; background: #f7f3e8; }
.recovery-card > label { display: block; margin-bottom: 10px; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.recovery-code { display: block; width: 100%; margin: 0 0 12px; padding: 12px; border: 1px solid #dcd5ca; border-radius: 6px; resize: none; background: var(--card); color: var(--ink); font-family: "Cascadia Code", Consolas, monospace; font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.recovery-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 480px) {
  .account-menu-button .account-avatar { display: none; }
  .account-actions { flex-direction: column; }
  .recovery-card { padding: 12px; }
  .recovery-actions .button { flex: 1; font-size: 11px; padding-inline: 8px; }
}
