:root {
  color-scheme: light;
  --canvas: #f3f5ef;
  --paper: #fcfdf8;
  --ink: #182f2b;
  --muted: #4e655b;
  --line: #d6dfd3;
  --hero: #132f2d;
  --lime: #d6efa9;
  --focus: #246353;
  --radius: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  background: var(--canvas);
  color: var(--ink);
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input { color: inherit; font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
:where(h1, h2, h3, p, ul, blockquote) { margin: 0; }
:where(h1, h2, h3) { overflow-wrap: anywhere; }
.icon { position: relative; display: inline-grid; place-items: center; width: 20px; height: 20px; flex: 0 0 auto; font-size: 19px; line-height: 1; }
.icon-book::before, .icon-book::after { content: ""; position: absolute; top: 21%; width: 43%; height: 62%; border: 1.5px solid; border-radius: 2px 3px 1px 1px; }
.icon-book::before { right: 50%; transform: skewY(9deg); }
.icon-book::after { left: 50%; transform: skewY(-9deg); }
.icon-search::before { content: ""; position: absolute; width: 61%; height: 61%; left: 11%; top: 11%; border: 1.6px solid; border-radius: 50%; }
.icon-search::after { content: ""; position: absolute; width: 32%; top: 72%; left: 60%; border-top: 1.6px solid; transform: rotate(45deg); }
.icon-doc::before, .icon-receipt::before { content: ""; position: absolute; inset: 2px 4px; border: 1.5px solid; border-radius: 2px; }
.icon-doc::after, .icon-receipt::after { content: ""; width: 6px; height: 6px; border-block: 1.5px solid; }
.icon-faq { font-size: 13px; font-weight: 750; }
.icon-faq::before { content: ""; position: absolute; inset: 1px; border: 1.5px solid; border-radius: 50% 50% 50% 23%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: 12px; z-index: 1; transform: translateY(-160%); background: var(--paper); padding: 12px; border-radius: 6px; }
.skip-link:focus { transform: none; }
.shell { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
.masthead { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 700; font-size: 17px; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; background: var(--hero); color: var(--lime); }
.masthead-end { display: flex; gap: 26px; align-items: center; }
.nav-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--muted); text-decoration: none; }
.nav-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.demo-label { display: inline-flex; gap: 8px; align-items: center; padding: 6px 11px; border: 1px solid #cddbd0; border-radius: 999px; font-size: 12px; color: #38584b; white-space: nowrap; background: #edf3e8; }
.demo-label span { width: 7px; height: 7px; border-radius: 50%; background: #527d54; }
.hero { min-height: 442px; border-radius: 22px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; position: relative; isolation: isolate; overflow: hidden; background: var(--hero); color: #f4f9ef; padding: 43px 48px 40px; gap: 40px; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 88% 36%, #285047 0%, transparent 54%); pointer-events: none; }
.hero :focus-visible { outline-color: var(--lime); }
.hero-content { min-width: 0; }
.hero-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; color: #d8efbc; font-size: 13px; font-weight: 650; line-height: 1.5; letter-spacing: .04em; }
.hero-kicker > span:first-child { width: 19px; height: 2px; background: var(--lime); }
.hero h1 { margin-block: 15px 12px; font-size: clamp(39px, 4.9vw, 72px); font-weight: 750; line-height: 1.11; letter-spacing: -.055em; }
.hero h1 span { display: block; }
.hero h1 span:last-child { color: var(--lime); }
.hero-description { max-width: 39em; color: #d0ddd5; font-size: 15px; line-height: 1.65; }
.mode { display: inline-flex; gap: 4px; margin-top: 25px; padding: 3px; border-radius: 8px; background: #24423e; }
.mode button { border: 0; border-radius: 6px; padding-inline: 13px; min-height: 34px; background: transparent; color: #d9e5dc; font-size: 13px; font-weight: 650; }
.mode button:hover { background: #31534b; }
.mode button[aria-pressed="true"] { background: #f3f7ee; color: #1b3b33; }
.query-form { display: flex; align-items: center; gap: 7px; margin-top: 9px; max-width: 555px; padding: 6px; border-radius: 11px; color: var(--ink); background: #f8faf4; }
.query-form:focus-within { box-shadow: 0 0 0 2px #99b68b; }
.query-form .query-icon { margin-left: 9px; color: #4c6d60; }
.query-form input { min-width: 0; flex: 1 1 0; height: 42px; padding-inline: 3px; border: 0; outline: none; background: transparent; font-size: 16px; }
.query-form input::placeholder { color: #54695f; opacity: 1; }
.submit { display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 14px; border: 0; border-radius: 7px; background: var(--lime); color: #233a27; font-size: 14px; font-weight: 750; white-space: nowrap; }
.submit:hover { background: #c3e28c; }
.query-form .submit:focus-visible { outline-color: var(--focus); outline-offset: 2px; }
.submit .icon { width: 16px; height: 16px; }
.suggestions { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; margin-top: 12px; color: #b8cfc2; font-size: 12px; min-height: 31px; }
.suggestion { border: 1px solid #58736a; border-radius: 6px; background: transparent; color: #e1ebe2; min-height: 29px; padding: 3px 9px; font-size: inherit; }
.suggestion:hover { background: #2c5046; border-color: #9ac0aa; }
.hero-art { position: relative; justify-self: end; width: 100%; max-width: 450px; aspect-ratio: 1.22; border: 1px solid #527568; border-radius: 5px; background-image: linear-gradient(#a4cbb619 1px, transparent 1px), linear-gradient(90deg, #a4cbb619 1px, transparent 1px); background-size: 24px 24px; }
.folio { position: absolute; width: 41%; height: 71%; top: 13%; left: 32%; border: 1px solid; border-radius: 8px; box-shadow: 0 7px 18px #071d1c3d; }
.folio-back { transform: translateX(23%) rotate(17deg); background: #1b3c38; border-color: #648b7b; }
.folio-middle { transform: translate(-21%, 3%) rotate(-17deg); background: #285248; border-color: #8ab29c; }
.folio-front { display: grid; place-items: center; background: linear-gradient(90deg, #b5ce95 0 7%, #d1e9ad 7%); border-color: #e1efc9; color: #2a4d3e; }
.folio-emblem { display: grid; place-items: center; width: 53%; aspect-ratio: 1; border: 1px solid #8aa876; border-radius: 50%; }
.folio-emblem .icon { width: 54%; height: auto; aspect-ratio: 1; }
.folio-lines { position: absolute; left: 20%; right: 15%; bottom: 16%; height: 8%; border-block: 1px solid #8aa876; }
.folio-lines::after { content: ""; position: absolute; top: 205%; left: 0; right: 60%; border-top: 1px solid #8aa876; }
.categories, .library { scroll-margin-top: 24px; }
.categories { margin-block: 37px 34px; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 700; font-size: 12px; letter-spacing: .11em; line-height: 1.45; }
.eyebrow::before { content: ""; flex: 0 0 13px; height: 2px; background: #6b925c; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px 20px; margin-top: 6px; }
.section-heading h2 { font-size: clamp(25px, 3vw, 34px); line-height: 1.25; letter-spacing: -.04em; }
.all-button { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 10px 4px 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); color: #345749; font-size: 13px; font-weight: 650; white-space: nowrap; }
.all-button .icon { width: 15px; height: 15px; }
.all-button:hover, .all-button[aria-pressed="true"] { border-color: #a5b9a5; background: #e8efe2; }
.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-top: 15px; }
.category-card { --icon-bg: #e5efde; --icon-fg: #395c43; text-align: left; display: flex; flex-direction: column; min-width: 0; min-height: 133px; padding: 13px 15px 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.category-card[data-category="finance"] { --icon-bg: #f1ecd8; --icon-fg: #67542a; }
.category-card[data-category="workflow"] { --icon-bg: #e0edeb; --icon-fg: #305c54; }
.category-card[data-category="faq"] { --icon-bg: #e9eae1; --icon-fg: #4f5846; }
.category-card:hover { border-color: #91a994; background: #f7faf3; }
.category-card[aria-pressed="true"] { border-color: #638569; background: #edf3e7; box-shadow: inset 0 0 0 1px #638569; }
.category-top { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.category-icon { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; background: var(--icon-bg); color: var(--icon-fg); }
.category-count { color: var(--muted); font-size: 12px; white-space: nowrap; }
.category-title { margin-top: 13px; font-size: 17px; font-weight: 750; line-height: 1.3; }
.category-description { margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.library { min-width: 0; border-top: 1px solid var(--line); padding-block: 23px 37px; }
.library-heading { margin-bottom: 16px; }
.result-count { flex-shrink: 0; color: var(--muted); font-size: 13px; }
.document-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 30px; padding: 0; list-style: none; }
.document-list li { display: flex; border-top: 1px solid var(--line); }
.document-link { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; flex: 1 1 auto; min-width: 0; padding: 15px 4px; text-decoration: none; border-radius: 3px; }
.document-link:hover { background: #eaf0e5; }
.document-link:hover .document-title { text-decoration: underline; text-underline-offset: 4px; }
.document-icon { display: grid; place-items: center; width: 32px; height: 36px; border-radius: 7px; background: #e4ede2; color: #42624f; }
.document-link > .icon { width: 17px; margin-top: 2px; color: #496959; }
.document-title { display: block; line-height: 1.35; font-size: 16px; font-weight: 750; }
.document-excerpt { display: block; margin-top: 5px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.document-meta { display: block; margin-top: 5px; color: #4d6a5a; font-size: 12px; line-height: 1.5; }
.response-card, .reader-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: clamp(18px, 4vw, 35px); }
.response-card { max-width: 820px; }
.response-card h3 { margin-bottom: 8px; font-size: 20px; }
.response-card p { color: var(--muted); line-height: 1.7; }
.response-card .answer-question { margin-bottom: 10px; font-size: 14px; }
.answer-quote { margin-bottom: 15px; padding: 11px 14px; border-inline-start: 3px solid #6b925c; background: #edf3e7; font-size: 16px; line-height: 1.8; }
.source-link, .back-link { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; color: #315e4b; font-size: 14px; font-weight: 650; text-decoration: underline; text-underline-offset: 4px; }
.source-link .icon, .back-link .icon { width: 16px; }
.response-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 11px; }
.response-actions button { min-height: 42px; border: 1px solid #a5b9a5; border-radius: 7px; background: #edf3e7; color: #345749; padding: 6px 12px; font-size: 14px; font-weight: 650; }
.response-actions button:hover { background: #e1ecd9; }
.back-link { margin-bottom: 8px; }
.reader-card h2 { margin-block: 7px 9px; font-size: clamp(26px, 4vw, 40px); letter-spacing: -.04em; }
.reader-summary { color: var(--muted); font-size: 15px; line-height: 1.6; }
.reader-section { border-top: 1px solid var(--line); padding: 16px 10px; margin-top: 14px; scroll-margin-top: 22px; }
.reader-section h3 { font-size: 19px; margin-bottom: 6px; }
.reader-section p { max-width: 66ch; font-size: 15px; line-height: 1.85; }
.reader-section.is-cited { background: #edf3e7; border-top-color: #a9c09c; border-radius: 0 0 8px 8px; }
.no-script { margin: 12px 0; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 7px 20px; border-top: 1px solid var(--line); padding-block: 18px 23px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.footer p:first-child { font-weight: 650; }
@media (max-width: 1050px) {
  .shell { width: calc(100% - 56px); }
  .hero { padding: 36px; gap: 18px; }
}
@media (max-width: 760px) {
  .shell { width: calc(100% - 36px); }
  .masthead { min-height: 63px; }
  .masthead-end { gap: 14px; }
  .hero { grid-template-columns: 1fr; min-height: 0; border-radius: 17px; padding: 29px 25px 25px; }
  .hero h1 { font-size: clamp(39px, 8.7vw, 60px); }
  .hero-art { display: none; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .document-list { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .shell { width: calc(100% - 24px); }
  .nav-link { display: none; }
  .hero { padding: 24px 16px 22px; }
  .hero-kicker { font-size: 12px; }
  .hero-description { font-size: 14px; }
  .query-form { gap: 3px; }
  .query-form .query-icon { width: 16px; margin-left: 5px; }
  .query-form input { font-size: 16px; }
  .submit { padding-inline: 10px; gap: 4px; }
  .submit .icon { width: 13px; }
  .mode button { min-height: 40px; }
  .suggestion { min-height: 36px; }
  .categories { margin-block: 28px; }
  .category-grid { gap: 8px; }
  .category-card { padding-inline: 10px; }
  .category-title { font-size: 16px; }
  .category-description { font-size: 12px; }
}
.active-query { margin: -5px 0 12px; color: var(--muted); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.reader-card { scroll-margin-top: 22px; }
