:root {
  font-family: Inter, "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  color: #182b25;
  background: #f6f8f4;
  --ink: #162c25;
  --muted: #52675e;
  --line: #dce5dd;
  --pine: #153a30;
  --mint: #e0ebe1;
  --paper: #fff;
  --sand: #eadaaa;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
button:disabled { cursor: default; opacity: .48; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #a27c29; outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.layout { min-height: 100vh; display: grid; grid-template-columns: 224px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; display: flex; flex-direction: column; min-height: 100vh; height: 100dvh; background: #14342c; color: #f2f5ed; padding: 33px 18px 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 20px; font-weight: 760; letter-spacing: .045em; padding: 0 7px 31px; border-bottom: 1px solid #36534a; }
.brand small { display: block; font-size: 11px; font-weight: 500; letter-spacing: .09em; color: #abc4b6; margin-top: 4px; }
.brand-icon { width: 39px; height: 39px; display: grid; place-items: center; background: var(--sand); color: var(--pine); border-radius: 9px; position: relative; flex: none; }
.brand-icon i { width: 17px; height: 19px; border: 1.7px solid currentColor; border-radius: 2px; box-shadow: 3px -3px 0 -1.5px var(--sand), 4px -4px 0 -1.5px currentColor; }
.brand-icon i::after { content: ""; position: absolute; left: 15px; top: 17px; width: 8px; height: 2px; background: currentColor; box-shadow: 0 4px currentColor; }
.side-label { color: #9db9aa; padding: 26px 12px 12px; font-size: 11px; letter-spacing: .12em; }
.navigation { display: grid; gap: 5px; }
.navigation button { display: flex; align-items: center; gap: 12px; width: 100%; background: none; border: 1px solid transparent; border-radius: 8px; padding: 12px; color: #d3e1d7; text-align: left; font-size: 14px; }
.navigation button:hover { background: #224438; }
.navigation button.selected { background: #dce9db; color: #15352c; font-weight: 740; }
.sidebar-foot { margin-top: auto; }
.sidebar-foot p { color: #9ab3a5; margin: 13px 8px 0; font-size: 11px; }
.library-card { display: grid; gap: 8px; padding: 14px 12px; border: 1px solid #426056; border-radius: 9px; overflow-wrap: anywhere; }
.library-card strong { font-size: 13px; font-weight: 560; }
.library-card > span:last-child { color: #a7c0b1; font-size: 11px; }
.connection { font-size: 11px; color: #cce1d1; }
.connection i, .status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #90ca9b; margin-right: 5px; vertical-align: .03em; }
.topbar { min-height: 67px; padding: 11px 30px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); background: #fcfdfa; }
.crumb { color: var(--muted); font-size: 13px; }
.crumb span { padding: 0 7px; color: #6f8178; }
.crumb strong { color: var(--ink); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; white-space: nowrap; padding: 10px 14px; border-radius: 7px; border: 1px solid transparent; font-size: 13px; font-weight: 680; text-decoration: none; min-height: 39px; }
.secondary { background: #fff; color: #24483b; border-color: #ccdacf; }
.secondary:hover:not(:disabled) { background: #ecf2eb; }
.primary { background: #194438; color: #fff; }
.primary:hover { background: #245748; }
.content { width: min(1158px, 100%); margin-inline: auto; padding: 30px 32px 48px; }
.hero { position: relative; isolation: isolate; overflow: hidden; background: #dce9df; border: 1px solid #cdded2; border-radius: 16px; padding: 29px 34px 25px; }
.hero-copy { position: relative; z-index: 1; }
.hero-marker { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: #315b4a; font-weight: 700; }
h1 { margin: 13px 0 10px; color: #15372c; letter-spacing: .005em; line-height: 1.23; font-size: clamp(30px, 3.3vw, 49px); font-weight: 790; }
.hero p { font-size: 14px; line-height: 1.8; color: #415e51; margin: 0 0 19px; }
.search-box { display: flex; align-items: stretch; gap: 8px; background: white; border: 1px solid #becfc2; padding: 6px; border-radius: 11px; position: relative; z-index: 2; }
.search-input { display: flex; align-items: center; gap: 13px; padding-left: 13px; color: #527364; min-width: 0; flex: 1; }
.search-input input { width: 100%; min-width: 0; background: transparent; border: 0; outline: none; color: var(--ink); font-size: 15px; padding: 12px 3px; }
.search-input input::placeholder { color: #5b7066; }
.search-box:focus-within { outline: 2px solid #517c67; outline-offset: 2px; }
.search-button { font-size: 14px; min-width: 119px; }
.examples { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin-top: 12px; position: relative; z-index: 1; font-size: 12px; color: #4b6558; }
.examples button { border: 1px solid #acccba; border-radius: 5px; background: #ecf4eb; color: #2b5544; font-size: 12px; padding: 5px 9px; }
.examples button:hover { background: white; }
.illustration { position: absolute; right: 43px; top: 8px; width: 286px; height: 226px; z-index: 0; color: #285945; transform-origin: top right; }
.outline { position: absolute; border: 1px solid #adccbb; width: 211px; height: 211px; border-radius: 50%; left: 39px; top: 1px; }
.outline-two { width: 181px; height: 181px; left: 54px; top: 16px; border-style: dashed; }
.graphic-file { position: absolute; border: 1px solid #5c8a72; border-radius: 8px; width: 95px; height: 113px; left: 95px; top: 43px; background: #f3f7ee; transform: rotate(-11deg); }
.back-file { background: #a7c6b1; transform: rotate(14deg); left: 122px; top: 34px; }
.front-file { display: grid; align-content: start; gap: 9px; padding: 21px 15px; }
.front-file i { display: block; width: 55px; height: 3px; border-radius: 4px; background: #a7c6b1; }
.front-file i:nth-child(2) { width: 38px; }
.front-file i:nth-child(3) { width: 46px; }
.graphic-folder { width: 148px; height: 83px; background: #d6bc79; border: 1px solid #977e43; border-radius: 9px; position: absolute; top: 107px; left: 70px; transform: skewX(-9deg) rotate(-4deg); box-shadow: 0 6px 0 #90ae99; }
.graphic-folder::before { content: ""; position: absolute; width: 48px; height: 9px; left: 9px; top: -9px; background: #d6bc79; border: 1px solid #977e43; border-bottom: 0; border-radius: 5px 7px 0 0; }
.graphic-folder i { position: absolute; width: 53px; height: 2px; background: #9f8648; left: 17px; bottom: 18px; }
.graphic-folder i:last-child { width: 38px; bottom: 11px; }
.graphic-search { position: absolute; left: 178px; top: 117px; width: 61px; height: 61px; border: 7px solid #305d4b; background: #dce9df99; border-radius: 50%; transform: rotate(-32deg); }
.graphic-search::before { content: ""; position: absolute; left: 19px; top: 49px; width: 10px; height: 36px; background: #305d4b; border-radius: 7px; }
.graphic-star { position: absolute; left: 219px; top: 28px; color: #846627; font-size: 25px; }
.graphic-plus { position: absolute; left: 35px; top: 86px; color: #527e66; font-weight: 500; font-size: 22px; }
.overview { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); padding: 19px 0; margin-bottom: 24px; }
.overview > div { display: grid; gap: 4px; padding-left: 18px; border-left: 1px solid var(--line); align-content: center; }
.overview > div:first-child { padding-left: 3px; border-left: 0; }
.overview span { color: var(--muted); font-size: 12px; }
.overview strong { color: var(--pine); font-size: 24px; font-weight: 720; letter-spacing: .005em; font-variant-numeric: tabular-nums; }
.overview .overview-model strong { font-size: 14px; }
.status-dot { background: #a68a4f; }
.status-dot.ready { background: #42815d; }
.index-notice { margin: -9px 0 23px; padding: 10px 13px; border-left: 3px solid #a08243; background: #f5edda; font-size: 13px; color: #5e502f; line-height: 1.6; overflow-wrap: anywhere; }
.result-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
h2 { margin: 0; font-size: 23px; line-height: 1.4; letter-spacing: .01em; }
.result-header p { font-size: 12px; color: var(--muted); margin: 3px 0 0; min-height: 18px; overflow-wrap: anywhere; }
.keyword-toggle { display: flex; align-items: center; gap: 6px; color: var(--muted); white-space: nowrap; font-size: 12px; }
.keyword-toggle input { margin: 0; accent-color: #194438; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 13px 0; }
.filters label { display: flex; align-items: center; gap: 8px; border: 1px solid #d5dfd7; padding: 7px 9px; background: white; border-radius: 6px; max-width: 100%; min-width: 0; }
.filters label span { color: var(--muted); font-size: 12px; white-space: nowrap; padding-right: 8px; border-right: 1px solid var(--line); }
.filters select { border: 0; max-width: 248px; min-width: 0; color: #24483b; background: white; font-size: 12px; }
.plain { padding: 6px 8px; background: transparent; border: 0; color: #3a6752; font-size: 12px; text-decoration: underline; }
.result-list { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.result-row { display: grid; grid-template-columns: 41px minmax(0, 1fr) auto; gap: 13px; align-items: start; padding: 15px 15px; border-bottom: 1px solid var(--line); }
.result-row:last-child { border-bottom: 0; }
.format { display: grid; align-content: center; justify-items: center; gap: 3px; width: 39px; min-height: 47px; border-radius: 6px; background: #eaf1e9; color: #3d6050; font-size: 9px; font-weight: 770; }
.format.pdf { background: #f4ebe1; color: #80562d; }
.format.ppt { background: #f5ebdf; color: #814b2c; }
.format.word { background: #e7edf2; color: #3e5f7a; }
.result-title { display: block; padding: 0; text-align: left; color: #18392e; font-size: 15px; font-weight: 740; line-height: 1.52; border: 0; background: none; overflow-wrap: anywhere; }
.result-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.result-info { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 9px; margin-top: 4px; color: #566c60; font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.tag { display: inline-block; border-radius: 4px; padding: 2px 5px; background: #e6f0e6; color: #355d49; white-space: nowrap; }
.tag.reference { background: #f6eedb; color: #725c2f; }
.snippet { margin: 7px 0 0; color: #40564a; font-size: 12px; line-height: 1.68; overflow-wrap: anywhere; }
.snippet b { color: #325c49; font-weight: 700; }
.snippet mark { background: #f7edc9; color: #203c2e; border-radius: 2px; }
.row-action { align-self: center; }
.empty { text-align: center; color: var(--muted); padding: 37px 18px; font-size: 14px; }
.pagination { display: flex; gap: 13px; justify-content: center; align-items: center; margin-top: 18px; color: var(--muted); font-size: 13px; }
.icon { width: 16px; height: 16px; display: inline-block; flex: none; position: relative; color: inherit; }
.icon.spark::before { content: "✦"; position: absolute; top: -4px; left: 0; font-size: 20px; line-height: 1.2; }
.icon.sheet::before { content: ""; position: absolute; inset: 0 2px; border: 1.5px solid currentColor; border-radius: 2px; }
.icon.sheet::after { content: ""; position: absolute; left: 5px; top: 5px; width: 6px; height: 1px; background: currentColor; box-shadow: 0 3px currentColor, 0 6px currentColor; }
.icon.folder::before { content: ""; position: absolute; inset: 4px 0 1px; border: 1.5px solid currentColor; border-radius: 2px; }
.icon.folder::after { content: ""; position: absolute; top: 2px; left: 1px; width: 6px; height: 3px; border: 1.5px solid currentColor; border-bottom: 0; border-radius: 2px 2px 0 0; }
.icon.magnifier::before { content: ""; position: absolute; inset: 0 3px 3px 0; border: 1.7px solid currentColor; border-radius: 50%; }
.icon.magnifier::after { content: ""; position: absolute; width: 6px; height: 1.5px; background: currentColor; top: 12px; left: 10px; transform: rotate(45deg); transform-origin: left center; }
.icon.refresh::before { content: "↻"; position: absolute; font-size: 20px; top: -6px; left: 0; }
dialog { width: min(730px, calc(100% - 24px)); max-height: 83vh; padding: 0; background: #fafcf8; border: 1px solid #a9bdb0; border-radius: 12px; color: var(--ink); box-shadow: 0 20px 80px #0a281f44; }
dialog::backdrop { background: #0b251aaa; }
.dialog-top { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; background: #e6eee6; padding: 9px 17px; border-bottom: 1px solid var(--line); z-index: 1; }
.dialog-label { display: flex; gap: 7px; align-items: center; font-size: 13px; font-weight: 700; color: #325b49; }
.close { min-height: 30px; font-size: 25px; line-height: 1; padding: 0 9px 2px; background: transparent; color: #284d3e; }
#detail-body { padding: 18px; }
#detail-title { font-size: 19px; overflow-wrap: anywhere; }
.location { font-size: 12px; line-height: 1.65; color: var(--muted); overflow-wrap: anywhere; margin: 6px 0 12px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0; }
.detail-hits { background: #eaf0e9; border-left: 3px solid #71927e; padding: 11px; margin-bottom: 13px; }
.detail-hits .snippet { margin: 0; }
.detail-subtitle { font-size: 14px; margin: 20px 0 7px; }
.related { display: grid; gap: 0; background: white; border: 1px solid var(--line); border-radius: 8px; }
.related-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.related-item:last-child { border: 0; }
.related-item button { text-align: left; min-width: 0; overflow-wrap: anywhere; background: none; border: 0; color: #255541; font-size: 13px; padding: 2px 0; }
.related-item button:hover { text-decoration: underline; }
.related-item span { font-size: 11px; color: var(--muted); }
.toast { position: fixed; z-index: 4; bottom: 20px; right: 20px; max-width: calc(100% - 40px); border-radius: 7px; padding: 11px 15px; background: #194438; color: white; font-size: 13px; box-shadow: 0 3px 16px #031c2440; }
.login-body { display: grid; min-height: 100vh; place-items: center; padding: 24px; }
.login-shell { display: grid; width: min(760px, 100%); grid-template-columns: .9fr 1.1fr; border-radius: 16px; overflow: hidden; border: 1px solid #cdded2; background: white; }
.login-banner { min-height: 315px; background: #153a30; padding: 31px; display: grid; align-content: center; }
.login-banner h1 { color: #f2f5ed; font-size: clamp(28px, 4vw, 41px); }
.login-banner p { color: #c4dbcd; font-size: 13px; line-height: 1.6; margin: 2px 0; }
.login-form { padding: 31px; display: grid; align-content: center; }
.login-form > p { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 7px 0 15px; }
.login-form form { display: grid; gap: 9px; }
.login-form label { font-size: 13px; color: #254d3c; font-weight: 690; }
.login-form input { min-width: 0; width: 100%; border: 1px solid #bfd2c3; border-radius: 7px; padding: 10px; }
.login-form form button { margin-top: 5px; }
.login-error { margin: 2px 0; font-size: 13px; color: #903e32; }
.login-note { margin: 2px 0; font-size: 13px; color: #2c6a50; }
.login-switch { margin-top: 12px; font-size: 13px; color: #254d3c; }
@media (max-width: 630px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-banner { min-height: 0; padding: 22px; }
  .login-form { padding: 22px; }
}
@media (max-width: 975px) {
  .layout { grid-template-columns: 190px minmax(0, 1fr); }
  .sidebar { padding-inline: 13px; }
  .content { padding-inline: 22px; }
  .hero { padding-inline: 25px; }
  .illustration { transform: scale(.8); right: 22px; top: 20px; }
}
@media (max-width: 730px) {
  .layout { display: block; }
  .sidebar { position: static; min-height: 0; height: auto; padding: 10px 14px; display: block; }
  .brand { border: 0; padding: 0 0 8px; gap: 9px; font-size: 16px; }
  .brand-icon { width: 32px; height: 32px; }
  .brand-icon i::after { left: 12px; top: 13px; }
  .brand small, .side-label, .sidebar-foot { display: none; }
  .navigation { display: flex; gap: 5px; }
  .navigation button { width: auto; padding: 7px; gap: 5px; font-size: 12px; }
  .topbar { min-height: 49px; padding: 6px 14px; }
  .update { padding: 6px 8px; min-height: 31px; font-size: 12px; }
  .content { padding: 14px; }
  .hero { padding: 19px 15px; }
  .illustration { transform: scale(.61); opacity: .66; right: 0; top: 17px; }
  .search-button { min-width: auto; padding: 6px 10px; }
  .search-button .spark { display: none; }
  .search-input { padding-left: 4px; gap: 6px; }
  .search-input input { font-size: 13px; }
  .overview { padding: 12px 0; margin-bottom: 17px; }
  .overview > div { padding-left: 8px; }
  .overview strong { font-size: 20px; }
  .overview span { font-size: 11px; }
  .overview .overview-model strong { font-size: 12px; }
  .result-row { gap: 9px; grid-template-columns: 35px minmax(0, 1fr); padding: 11px; }
  .format { width: 32px; min-height: 42px; }
  .row-action { grid-column: 2; justify-self: start; min-height: 31px; padding: 5px 8px; }
  .filters select { max-width: min(220px, 62vw); }
}
@media (max-width: 450px) {
  .illustration { display: none; }
  h1 { font-size: 30px; }
  .hero p { font-size: 12px; }
  .examples { gap: 4px; }
}
/* Evidence from the AI reader is always accompanied by source text. */
.ai-summary { padding: 1.25rem; border: 1px solid #b9cfc3; background: #f1f7f3; border-radius: 12px; margin: 1rem 0; }
.ai-summary p { margin: .65rem 0 0; line-height: 1.7; }
.ai-evidence { margin-top: .9rem; padding-top: .9rem; border-top: 1px solid #dce5df; font-size: .9rem; line-height: 1.7; }
.ai-check { margin: .6rem 0; }
.ai-quote { display: block; margin-top: .3rem; color: #425c50; }
.ai-citation { display: inline-block; margin: .25rem 0; text-decoration: underline; }
