:root {
  --paper: #f5f5f2;
  --white: #fff;
  --ink: #20221f;
  --muted: #777b74;
  --soft: #a1a49d;
  --line: #e8e9e4;
  --green: #d8e974;
  --green-deep: #b9d342;
  --blue: #cce0ed;
  --lavender: #e5ddf2;
  --peach: #f6dfd2;
  --navy: #242923;
  --radius: 18px;
  --shadow: 0 12px 36px rgba(33, 38, 29, .045);
  font-family: "DM Sans", "Noto Sans SC", sans-serif;
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); min-height: 100vh; font-family: "DM Sans", "Noto Sans SC", sans-serif; font-size: 14px; }
button, input, textarea { font: inherit; }
button { color: inherit; }
.grain { position: fixed; inset: 0; pointer-events: none; z-index: 10; opacity: .1; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.09'/%3E%3C/svg%3E"); }
.hidden { display: none !important; }
.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: 242px; min-width: 242px; padding: 28px 17px 18px; background: #fbfbf9; border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 100vh; position: fixed; inset: 0 auto 0 0; z-index: 5; }
.brand { display: flex; gap: 11px; align-items: center; text-decoration: none; color: inherit; padding: 0 8px 37px; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; background: var(--green); border-radius: 12px; color: #313622; font-family: "Noto Sans SC", sans-serif; font-size: 19px; font-weight: 700; box-shadow: 0 5px 14px rgba(175, 201, 56, .18); }
.brand-copy { display: grid; gap: 2px; }.brand-copy strong { font-size: 17px; letter-spacing: .04em; }.brand-copy small { font-family: "DM Mono", monospace; font-size: 8px; color: var(--soft); letter-spacing: .105em; }
.nav-caption, .eyebrow { font-family: "DM Mono", monospace; font-size: 9px; letter-spacing: .13em; text-transform: uppercase; color: #9a9e95; }
.nav-caption { padding: 0 12px 11px; }
.main-nav { display: grid; gap: 5px; }
.nav-item { border: 0; width: 100%; padding: 11px 12px; text-align: left; display: flex; align-items: center; gap: 12px; border-radius: 10px; background: transparent; color: #72766f; cursor: pointer; transition: .2s ease; }
.nav-item:hover { background: #f2f3ed; color: var(--ink); }.nav-item.active { color: #252a1e; background: #eff2e2; font-weight: 600; }
.nav-icon { width: 18px; color: #858a80; font-size: 17px; text-align: center; }.nav-item.active .nav-icon { color: #536028; }
.nav-count { margin-left: auto; font-family: "DM Mono", monospace; font-size: 10px; color: #a2a69e; }.accent-count { background: #e7edc8; color: #637232; padding: 2px 7px; border-radius: 20px; }
.sidebar-spacer { flex: 1; min-height: 25px; }
.sidebar-note { margin: 0 4px 22px; padding: 15px 13px; display: flex; gap: 11px; border-radius: 13px; background: #f3f3ec; }
.note-orb { width: 9px; height: 9px; background: var(--green-deep); border-radius: 50%; margin-top: 4px; box-shadow: 0 0 0 4px rgba(185, 211, 66, .17); flex: 0 0 auto; }.sidebar-note strong { font-size: 11px; }.sidebar-note p { color: #82867d; font-size: 10px; line-height: 1.65; margin: 5px 0 0; }
.sidebar-bottom { border-top: 1px solid var(--line); padding: 14px 9px 0; display: flex; align-items: center; color: #92978e; font-size: 10px; gap: 7px; }.secure-dot { width: 6px; height: 6px; border-radius: 50%; background: #9eb659; }.logout-button { margin-left: auto; border: 0; background: none; color: #959a91; font-size: 17px; cursor: pointer; transform: rotate(45deg); }
.main-area { margin-left: 242px; width: calc(100% - 242px); min-height: 100vh; padding: 0 44px 48px; max-width: 1700px; }
.topbar { height: 69px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; color: #999d95; font-size: 11px; }.breadcrumb { display: flex; align-items: center; gap: 10px; }.breadcrumb strong { color: #4a4e47; font-weight: 500; }.crumb-sep { color: #c3c6bd; }.topbar-right { display: flex; align-items: center; gap: 16px; }.date-label { color: #888d83; font-size: 11px; }.avatar { width: 31px; height: 31px; border: 1px solid #e5e8d6; border-radius: 50%; background: var(--green); color: #596528; font-weight: 700; }
.view { display: none; animation: reveal .32s ease both; }.view.active-view { display: block; }@keyframes reveal { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.welcome-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding: 40px 0 26px; }.welcome-row .eyebrow, .page-intro .eyebrow { margin: 0 0 9px; }.welcome-row h1, .page-intro h1 { margin: 0; font-family: "Noto Sans SC", sans-serif; font-size: clamp(25px, 3vw, 35px); letter-spacing: -.055em; line-height: 1.32; font-weight: 600; }.title-period { color: #a6c134; }.welcome-sub { color: #868a82; margin: 11px 0 0; font-size: 13px; }.button { display: inline-flex; justify-content: center; align-items: center; gap: 16px; border: 0; border-radius: 9px; min-height: 42px; padding: 0 17px; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; font-weight: 600; }.button:hover { transform: translateY(-1px); }.button.primary { color: #30351f; background: var(--green); box-shadow: 0 6px 15px rgba(178, 205, 58, .17); }.button.primary:hover { background: #d0e35e; box-shadow: 0 8px 19px rgba(178, 205, 58, .25); }.button.dark { color: white; background: #2a3028; }.button.dark:hover { background: #414a3e; }.button.full { width: 100%; }.button span { font-size: 17px; font-weight: 400; }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }.stat-card { border: 1px solid rgba(28, 32, 23, .04); border-radius: var(--radius); min-height: 144px; padding: 19px 20px 15px; position: relative; overflow: hidden; }.stat-docs { background: var(--blue); }.stat-tags { background: var(--lavender); }.stat-review { background: var(--peach); }.stat-card::after { content: ""; position: absolute; width: 92px; height: 92px; right: -22px; top: 43px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; box-shadow: 0 0 0 12px rgba(255,255,255,.13), 0 0 0 24px rgba(255,255,255,.11); }.stat-label { color: #626b6b; font-size: 11px; display: flex; justify-content: space-between; align-items: center; }.stat-icon { color: rgba(49,58,49,.56); font-size: 18px; }.stat-number { font-size: 35px; letter-spacing: -.06em; line-height: 1; font-weight: 600; margin-top: 16px; font-variant-numeric: tabular-nums; }.stat-foot { margin-top: 11px; font-size: 10px; color: rgba(54,61,51,.62); position: relative; z-index: 1; }.stat-pulse { display: inline-block; width: 6px; height: 6px; margin-right: 5px; background: #68763a; border-radius: 50%; }
.overview-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 15px; margin-top: 17px; }.panel { border: 1px solid var(--line); background: rgba(255,255,255,.72); border-radius: var(--radius); }.recent-panel { padding: 20px 20px 13px; min-height: 252px; }.panel-heading { display: flex; align-items: center; justify-content: space-between; }.panel-heading .eyebrow { margin: 0 0 5px; }.panel-heading h2 { font-size: 17px; margin: 0; font-weight: 600; letter-spacing: -.03em; }.text-button { border: 0; background: transparent; color: #7e8478; font-size: 11px; cursor: pointer; }.text-button span { color: #a1aa73; margin-left: 5px; }.recent-list { margin-top: 10px; }.recent-item { display: flex; align-items: center; gap: 12px; min-height: 54px; border-bottom: 1px solid #eff0eb; }.recent-item:last-child { border-bottom: 0; }.file-type { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 9px; background: #eef0e7; display: grid; place-items: center; color: #677044; font-family: "DM Mono", monospace; font-size: 8px; text-transform: uppercase; }.recent-info { min-width: 0; flex: 1; }.recent-info strong { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 600; }.recent-info small { display: block; margin-top: 4px; color: #9a9e96; font-size: 9px; }.recent-status { color: #93a44b; font-family: "DM Mono", monospace; font-size: 9px; }.empty-state { color: #969a91; text-align: center; padding: 35px 15px; font-size: 12px; line-height: 1.8; }
.prompt-panel { background: var(--green); border: 0; min-height: 252px; padding: 20px 22px; position: relative; overflow: hidden; }.prompt-top { display: flex; align-items: center; gap: 9px; color: #637133; }.prompt-top .eyebrow { color: #74833c; margin: 0; font-size: 8px; }.sparkle { font-size: 16px; }.prompt-panel h2 { position: relative; z-index: 1; margin: 22px 0 8px; font-size: 21px; line-height: 1.55; letter-spacing: -.05em; font-weight: 600; }.prompt-panel p { position: relative; z-index: 1; color: #66723a; font-size: 11px; margin: 0 0 17px; }.prompt-panel .button { position: relative; z-index: 1; min-height: 36px; font-size: 10px; }.prompt-lines { position: absolute; width: 168px; height: 168px; right: -42px; bottom: -70px; border: 1px solid rgba(77,94,25,.16); border-radius: 50%; box-shadow: 0 0 0 13px rgba(77,94,25,.045), 0 0 0 26px rgba(77,94,25,.04), 0 0 0 39px rgba(77,94,25,.035); }
.quote-strip { display: flex; align-items: center; gap: 14px; margin-top: 21px; border-top: 1px solid var(--line); padding: 17px 3px 0; }.quote-mark { font-family: Georgia, serif; color: #c5d46c; font-size: 36px; line-height: .6; }.quote-strip p { color: #83877e; font-size: 10px; margin: 0; }.quote-rule { width: 28px; height: 1px; background: #d9dcd2; margin-left: auto; }.quote-credit { font-family: "DM Mono", monospace; font-size: 8px; color: #a4a89f; letter-spacing: .08em; }
.page-intro { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding: 39px 0 22px; }.page-intro p:not(.eyebrow) { color: #888c84; margin: 8px 0 0; font-size: 12px; line-height: 1.6; }.count-badge { border: 1px solid #e7e9e2; border-radius: 24px; padding: 8px 12px; color: #858a81; font-size: 10px; white-space: nowrap; }.count-badge b { color: var(--ink); font-size: 13px; margin-right: 3px; }
.drop-zone { border: 1px dashed #cdd3b6; background: #f1f3e7; min-height: 142px; border-radius: 15px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 9px; cursor: pointer; transition: .2s; }.drop-zone:hover, .drop-zone.dragover { border-color: #aabb4d; background: #edf1db; }.drop-zone input { display: none; }.upload-icon { width: 30px; height: 30px; border-radius: 9px; background: #e4ebc7; color: #65752c; display: grid; place-items: center; font-size: 17px; }.drop-zone strong { font-size: 12px; font-weight: 600; }.drop-zone u { color: #69793a; text-underline-offset: 3px; }.drop-zone small { font-size: 9px; color: #969b87; }.drop-zone small i { color: #c2c7b1; font-style: normal; padding: 0 4px; }
.inline-message { padding: 10px 13px; border-radius: 9px; margin-top: 12px; color: #5f6c32; background: #eef2da; font-size: 11px; }.inline-message.error { color: #9b4e46; background: #fbebe8; }
.library-toolbar { display: flex; align-items: center; justify-content: space-between; margin: 28px 0 12px; }.section-label { font-weight: 600; font-size: 13px; }.section-label span { color: #969a91; margin-left: 5px; font-size: 10px; font-weight: 400; }.search-box { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.75); color: #9da197; }.search-box input { width: 165px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 10px; }.search-box input::placeholder { color: #a9ada5; }
.document-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }.document-card { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.8); min-width: 0; }.doc-card-top { display: flex; align-items: flex-start; gap: 10px; }.doc-card-top .file-type { width: 38px; height: 38px; }.doc-main { min-width: 0; flex: 1; }.doc-main h3 { font-size: 12px; line-height: 1.5; margin: 0; overflow-wrap: anywhere; }.doc-meta { color: #a0a49c; font-size: 9px; margin-top: 4px; }.status-pill { white-space: nowrap; padding: 4px 7px; border-radius: 20px; background: #edf1dd; color: #73833b; font-size: 8px; }.status-pill.processing, .status-pill.queued { background: #edf0f2; color: #747d80; }.status-pill.failed { background: #fae9e7; color: #ac655c; }.doc-summary { font-size: 10px; color: #777d73; line-height: 1.75; margin: 13px 0 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-wrap; }.tag-list { display: flex; flex-wrap: wrap; gap: 5px; min-height: 20px; }.tag { padding: 4px 7px; border-radius: 5px; background: #f1f2ed; color: #81867c; font-size: 8px; }.doc-warning { font-size: 9px; line-height: 1.55; margin: 9px 0 0; color: #9c714a; }.doc-error { font-size: 9px; line-height: 1.55; margin: 9px 0 0; color: #ac655c; }.doc-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; border-top: 1px solid #f0f1ec; margin-top: 12px; padding-top: 10px; }.small-button { border: 1px solid #e9ebe5; border-radius: 6px; background: #fff; color: #686e63; min-height: 27px; padding: 0 8px; font-size: 9px; cursor: pointer; }.small-button:hover { background: #f5f6f0; border-color: #dce2c8; }.small-button.danger { color: #a46a61; margin-left: auto; }.small-button:disabled { opacity: .42; cursor: not-allowed; }
.key-points { margin: 4px 0 10px; color: #73796e; font-size: 9px; }.key-points summary { width: fit-content; color: #6e7e39; cursor: pointer; list-style: none; }.key-points summary::-webkit-details-marker { display: none; }.key-points summary::before { content: "+"; margin-right: 5px; color: #a2b64a; }.key-points[open] summary::before { content: "−"; }.key-points ul { margin: 7px 0 0; padding-left: 17px; line-height: 1.7; }.key-points li { padding: 1px 0; }
.ask-intro { align-items: center; }.ai-status { display: flex; align-items: center; gap: 7px; color: #7c8474; font-size: 9px; white-space: nowrap; }.ai-status span { width: 6px; height: 6px; background: #abc84a; box-shadow: 0 0 0 3px rgba(171,200,74,.14); border-radius: 50%; }.chat-layout { max-width: 850px; margin: 10px auto 0; display: flex; flex-direction: column; min-height: calc(100vh - 235px); }.chat-messages { flex: 1; padding: 12px 9px 25px; }.assistant-welcome { text-align: center; padding: 37px 10px 20px; }.assistant-sigil { width: 45px; height: 45px; display: grid; place-items: center; margin: 0 auto 16px; background: var(--green); border-radius: 14px 14px 14px 4px; font-weight: 700; font-size: 18px; color: #5b6829; }.assistant-welcome .eyebrow { margin: 0 0 10px; }.assistant-welcome h2 { margin: 0; font-size: 24px; line-height: 1.5; letter-spacing: -.05em; }.assistant-welcome > p:not(.eyebrow) { font-size: 11px; color: #91958d; margin: 9px 0 18px; }.suggestions { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }.suggestions button { border: 1px solid #e5e8dc; background: rgba(255,255,255,.68); color: #7a8074; border-radius: 18px; padding: 7px 11px; font-size: 9px; cursor: pointer; }.suggestions button:hover { border-color: #c6d38e; color: #536128; }.question-composer { border: 1px solid #e2e5dc; border-radius: 13px; background: white; padding: 12px 13px 9px; box-shadow: 0 8px 24px rgba(34,37,30,.035); }.question-composer textarea { width: 100%; resize: vertical; min-height: 26px; max-height: 130px; outline: 0; border: 0; color: #373b35; font-size: 12px; line-height: 1.65; }.question-composer textarea::placeholder { color: #a5aaa1; }.composer-bottom { display: flex; justify-content: space-between; align-items: center; color: #a0a49c; font-size: 9px; }.send-button { border: 0; background: var(--green); color: #465120; width: 30px; height: 30px; border-radius: 8px; font-size: 18px; line-height: 1; cursor: pointer; }.send-button:disabled { opacity: .5; cursor: wait; }.chat-disclaimer { text-align: center; color: #a8aca4; font-size: 9px; margin: 9px 0 0; }
.message-row { display: flex; gap: 10px; margin: 16px auto; max-width: 740px; animation: reveal .25s ease both; }.message-row.user-message { justify-content: flex-end; }.message-avatar { width: 28px; height: 28px; flex: 0 0 auto; border-radius: 9px; display: grid; place-items: center; color: #5d6b2d; background: var(--green); font-size: 12px; font-weight: 700; }.message-body { max-width: min(82%, 600px); }.message-bubble { border: 1px solid #e8eae4; border-radius: 3px 12px 12px; padding: 11px 13px; color: #484d45; background: rgba(255,255,255,.8); font-size: 11px; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; }.user-message .message-bubble { color: #3f472b; background: #eaf0cc; border-color: #e0e9b7; border-radius: 12px 3px 12px 12px; }.message-tools { display: flex; align-items: center; gap: 8px; margin: 7px 2px 0; }.message-tools button { border: 0; background: none; color: #858b7e; font-size: 9px; cursor: pointer; padding: 2px; }.message-tools button:hover { color: #58682a; }.source-list { display: grid; gap: 5px; margin-top: 9px; }.source-item { border: 1px solid #e9ebe5; border-radius: 7px; background: rgba(255,255,255,.75); padding: 7px 9px; font-size: 9px; color: #73796e; line-height: 1.55; }.source-item strong { color: #464c41; font-weight: 600; }.source-item p { margin: 4px 0 0; color: #969b91; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }.typing-indicator { display: inline-flex; gap: 4px; padding: 4px 0; }.typing-indicator i { width: 5px; height: 5px; border-radius: 50%; background: #aab97a; animation: bounce 1s infinite alternate; }.typing-indicator i:nth-child(2) { animation-delay: .15s; }.typing-indicator i:nth-child(3) { animation-delay: .3s; }@keyframes bounce { to { transform: translateY(-4px); opacity: .5; } }
.review-view { padding-bottom: 20px; }.review-count { width: 80px; height: 80px; flex: 0 0 auto; display: grid; align-content: center; justify-items: center; border-radius: 50%; background: #e9efcd; color: #667338; }.review-count strong { font-size: 21px; line-height: 1; }.review-count span { margin-top: 5px; font-size: 9px; }.review-area { max-width: 760px; margin: 20px auto 0; }.review-card { position: relative; min-height: 340px; padding: 27px 30px 23px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }.review-card::before { content: ""; position: absolute; width: 220px; height: 220px; top: -148px; right: -52px; border-radius: 50%; border: 1px solid #eef0e5; box-shadow: 0 0 0 15px #fafbf6, 0 0 0 30px #fdfdfb; }.review-card-top { position: relative; display: flex; justify-content: space-between; align-items: center; color: #9a9f94; font-family: "DM Mono", monospace; font-size: 9px; }.review-label { color: #75853a; letter-spacing: .08em; }.review-question { position: relative; margin: 65px auto 40px; max-width: 570px; text-align: center; font-size: clamp(19px, 3vw, 26px); line-height: 1.65; letter-spacing: -.04em; white-space: pre-wrap; }.review-reveal { text-align: center; position: relative; }.reveal-button { border: 1px solid #dce4bd; color: #58672a; background: #f4f6e9; padding: 10px 17px; border-radius: 8px; cursor: pointer; font-size: 11px; }.review-answer { border-top: 1px solid #edf0e5; padding: 19px 10px 0; margin: 0 auto; max-width: 580px; color: #545b4d; font-size: 12px; line-height: 1.8; white-space: pre-wrap; }.review-choices { max-width: 540px; margin: -12px auto 22px; display: grid; gap: 7px; }.review-choice { text-align: left; width: 100%; border: 1px solid #e7e9e2; border-radius: 8px; padding: 10px 12px; background: #fff; color: #73796e; font-size: 10px; cursor: pointer; }.review-choice:hover { border-color: #c9d594; }.review-choice.correct { border-color: #b9cd6d; color: #56652a; background: #f5f8e9; }.review-choice.incorrect { border-color: #ecc1b7; color: #a45d51; background: #fff5f2; }.review-ratings { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 21px; }.rating-button { border: 1px solid #e7e9e2; background: white; border-radius: 8px; padding: 9px 13px; min-width: 75px; cursor: pointer; font-size: 10px; color: #7b8077; }.rating-button:hover { background: #f4f5ef; }.rating-button.again { color: #ad6a5e; }.rating-button.good { border-color: #d7e5a3; color: #62732b; background: #f7f9ee; }.review-next { text-align: center; color: #a1a59d; font-size: 10px; margin-top: 14px; }
.toast-region { position: fixed; right: 20px; bottom: 20px; display: grid; gap: 8px; z-index: 30; }.toast { max-width: 340px; padding: 11px 14px; border-radius: 9px; background: #2e352c; color: white; box-shadow: 0 10px 30px rgba(0,0,0,.16); font-size: 11px; animation: reveal .2s ease both; }.toast.error { background: #85574f; }
.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 25px; background: radial-gradient(circle at 18% 12%, #eff2d9, transparent 32%), var(--paper); }.login-card { width: min(100%, 380px); border: 1px solid #e7e9e2; border-radius: 20px; background: rgba(255,255,255,.86); padding: 34px; box-shadow: 0 24px 70px rgba(43,48,35,.08); }.brand-mark.large { width: 46px; height: 46px; font-size: 22px; border-radius: 14px; }.login-card .eyebrow { margin: 23px 0 8px; }.login-card h1 { margin: 0; font-size: 24px; letter-spacing: -.05em; }.login-card > .muted { margin: 9px 0 25px; color: #8b9087; font-size: 11px; }.login-card label { display: block; margin: 0 0 8px; color: #6c7168; font-size: 10px; }.password-wrap { display: flex; border: 1px solid #e4e7de; border-radius: 8px; background: #fff; }.password-wrap:focus-within { border-color: #bfce76; }.password-wrap input { border: 0; outline: 0; background: transparent; padding: 11px 12px; width: 100%; font-size: 12px; }.icon-button { border: 0; background: none; color: #9ea397; padding: 0 11px; cursor: pointer; }.form-error { min-height: 16px; margin: 6px 0 12px; color: #a45e54; font-size: 10px; }.login-foot { text-align: center; color: #a0a49c; font-size: 9px; margin: 16px 0 0; }
@media (max-width: 980px) { .main-area { padding-left: 28px; padding-right: 28px; }.sidebar { width: 215px; min-width: 215px; }.main-area { margin-left: 215px; width: calc(100% - 215px); }.overview-grid { grid-template-columns: 1fr; }.prompt-panel { min-height: 225px; } }
@media (max-width: 680px) { .sidebar { position: fixed; inset: auto 0 0; width: 100%; min-width: 0; min-height: 0; height: 66px; flex-direction: row; padding: 5px 10px max(6px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); border-right: 0; background: rgba(251,251,249,.97); backdrop-filter: blur(16px); }.brand, .nav-caption, .sidebar-spacer, .sidebar-note, .sidebar-bottom { display: none; }.main-nav { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; }.nav-item { padding: 5px 2px; display: flex; flex-direction: column; justify-content: center; gap: 1px; text-align: center; font-size: 9px; border-radius: 8px; }.nav-icon { width: auto; line-height: 21px; font-size: 17px; }.nav-count { position: absolute; margin: -28px 0 0 24px; font-size: 8px; }.main-area { margin-left: 0; width: 100%; padding: 0 17px calc(83px + env(safe-area-inset-bottom)); }.topbar { height: 58px; }.date-label { display: none; }.welcome-row { padding-top: 28px; align-items: flex-start; flex-direction: column; gap: 17px; }.welcome-row h1, .page-intro h1 { font-size: 27px; }.welcome-sub { max-width: 300px; font-size: 11px; line-height: 1.7; }.stats-grid { gap: 8px; }.stat-card { min-height: 118px; padding: 13px 11px 11px; border-radius: 13px; }.stat-label { font-size: 9px; }.stat-icon { font-size: 14px; }.stat-number { font-size: 28px; margin-top: 14px; }.stat-foot { font-size: 8px; margin-top: 8px; }.stat-card::after { width: 62px; height: 62px; right: -21px; }.overview-grid { margin-top: 10px; gap: 10px; }.recent-panel { padding: 16px 14px 10px; min-height: 205px; }.panel-heading h2 { font-size: 15px; }.prompt-panel { padding: 18px; min-height: 220px; }.quote-strip { gap: 8px; }.quote-strip p { font-size: 9px; line-height: 1.6; }.quote-credit { display: none; }.quote-rule { width: 16px; }.page-intro { padding: 28px 0 18px; align-items: flex-start; }.page-intro p:not(.eyebrow) { max-width: 280px; font-size: 10px; }.count-badge { font-size: 9px; padding: 7px 9px; }.drop-zone { min-height: 130px; padding: 12px; text-align: center; }.drop-zone strong { font-size: 10px; }.drop-zone small { font-size: 8px; }.library-toolbar { margin: 22px 0 10px; }.search-box input { width: 105px; }.document-list { grid-template-columns: 1fr; }.document-card { padding: 14px; }.ask-intro { align-items: flex-start; }.ai-status { display: none; }.chat-layout { min-height: calc(100dvh - 255px); margin-top: 0; }.assistant-welcome { padding-top: 35px; }.assistant-welcome h2 { font-size: 21px; }.chat-messages { padding-left: 0; padding-right: 0; }.message-body { max-width: 88%; }.review-count { width: 62px; height: 62px; }.review-count strong { font-size: 17px; }.review-card { padding: 20px 16px; min-height: 320px; }.review-question { margin-top: 52px; margin-bottom: 31px; }.review-ratings { gap: 5px; }.rating-button { min-width: 64px; padding: 9px 8px; }.toast-region { left: 14px; right: 14px; bottom: calc(78px + env(safe-area-inset-bottom)); }.toast { max-width: none; } }

/* Night-sky interface: high contrast, soft glass panels and restrained neon accents. */
:root {
  color-scheme: dark;
  --paper: #070b18;
  --white: #10172a;
  --ink: #edf4ff;
  --muted: #a2b1cf;
  --soft: #8191b1;
  --line: rgba(151, 177, 239, .16);
  --green: #72efff;
  --green-deep: #3ed9ee;
  --blue: #10243c;
  --lavender: #201b40;
  --peach: #35203b;
  --navy: #080f20;
  --radius: 18px;
  --shadow: 0 20px 60px rgba(0, 0, 0, .3);
  font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif;
}
html, body { background: var(--paper); color: var(--ink); }
body { position: relative; background: radial-gradient(ellipse at 66% -8%, rgba(35, 77, 145, .3), transparent 39%), radial-gradient(ellipse at 6% 72%, rgba(92, 31, 131, .17), transparent 34%), #070b18; }
body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .27; background-image: linear-gradient(rgba(110, 145, 216, .065) 1px, transparent 1px), linear-gradient(90deg, rgba(110, 145, 216, .065) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(to bottom, black, transparent 88%); }
body::after { content: ""; position: fixed; z-index: 0; pointer-events: none; width: 540px; height: 540px; right: -300px; top: 12%; border-radius: 50%; border: 1px solid rgba(95, 164, 242, .09); box-shadow: 0 0 0 34px rgba(95, 164, 242, .025), 0 0 0 72px rgba(95, 164, 242, .02), 0 0 100px rgba(53, 122, 235, .09); }
.grain { opacity: .035; }
.login-screen, .app-shell, .toast-region { position: relative; z-index: 1; }
.login-screen { background: radial-gradient(ellipse at 50% 20%, rgba(51, 94, 163, .19), transparent 48%), transparent; }
.login-card { position: relative; overflow: hidden; width: min(100%, 430px); padding: 42px; border: 1px solid rgba(127, 173, 255, .25); border-radius: 24px; background: linear-gradient(145deg, rgba(20, 31, 56, .95), rgba(10, 15, 29, .93)); box-shadow: 0 30px 110px rgba(0, 0, 0, .48), inset 0 1px rgba(255, 255, 255, .045); }
.login-card::before { content: ""; position: absolute; width: 220px; height: 220px; right: -120px; top: -130px; border: 1px solid rgba(91, 231, 255, .32); border-radius: 50%; box-shadow: 0 0 0 17px rgba(91, 231, 255, .04), 0 0 0 35px rgba(91, 231, 255, .035), 0 0 70px rgba(79, 157, 255, .16); }
.brand-mark { color: #071321; background: linear-gradient(135deg, #87fbff, #62b9ff); box-shadow: 0 0 24px rgba(82, 221, 255, .32); }
.brand-mark.large { position: relative; z-index: 1; width: 52px; height: 52px; border-radius: 16px; }
.login-card .eyebrow { color: #62dff6; margin-top: 25px; }
.login-card h1 { color: #f2f7ff; font-size: 29px; }
.login-card > .muted { color: #a2b1cd; font-size: 13px; }
.login-card label { color: #c0cde3; font-size: 12px; }
.password-wrap { background: rgba(7, 12, 25, .78); border: 1px solid rgba(131, 164, 222, .27); border-radius: 10px; }
.password-wrap:focus-within { border-color: #51daf6; box-shadow: 0 0 0 3px rgba(74, 221, 255, .12), 0 0 22px rgba(45, 172, 244, .1); }
.password-wrap input { color: #f1f6ff; font-size: 14px; }
.icon-button { color: #a5b8d8; }
.form-error { color: #ff9fac; font-size: 11px; }
.login-foot { color: #8697b6; font-size: 10px; }
.button.primary { color: #061520; background: linear-gradient(105deg, #87fbff, #72c8ff 60%, #bba6ff); box-shadow: 0 6px 28px rgba(83, 208, 255, .2); }
.button.primary:hover { background: linear-gradient(105deg, #a2fdff, #83d2ff 60%, #ccbaff); box-shadow: 0 8px 32px rgba(83, 208, 255, .31); }
.button.dark { color: #eaf5ff; background: rgba(24, 38, 66, .88); border: 1px solid rgba(128, 176, 246, .28); }
.button.dark:hover { background: rgba(39, 61, 101, .9); }
.sidebar { background: rgba(8, 13, 28, .88); border-right: 1px solid var(--line); backdrop-filter: blur(22px); box-shadow: 12px 0 50px rgba(0, 0, 0, .13); }
.brand { color: #f0f6ff; }
.brand-copy strong { letter-spacing: .06em; }
.brand-copy small { color: #7e90b1; }
.nav-caption, .eyebrow { color: #7e92b8; }
.nav-item { color: #9aaccb; }
.nav-item:hover { background: rgba(101, 159, 251, .09); color: #e7f2ff; }
.nav-item.active { color: #e9fbff; background: linear-gradient(100deg, rgba(63, 187, 234, .17), rgba(118, 113, 239, .1)); box-shadow: inset 2px 0 #66eaff, inset 0 0 24px rgba(82, 221, 255, .04); }
.nav-item.active .nav-icon { color: #73edff; }
.nav-icon { color: #7e94b9; }
.nav-count { color: #9cb0d2; }
.accent-count { color: #081323; background: linear-gradient(135deg, #88f8ff, #aaa2ff); }
.sidebar-note { background: rgba(67, 106, 175, .12); border: 1px solid rgba(112, 163, 246, .13); }
.sidebar-note strong { color: #e7f1ff; }
.sidebar-note p { color: #91a4c7; }
.note-orb { background: #66edff; box-shadow: 0 0 0 4px rgba(102, 237, 255, .12), 0 0 18px rgba(102, 237, 255, .48); }
.sidebar-bottom { border-color: var(--line); color: #8fa1c1; }
.secure-dot { background: #6affc7; box-shadow: 0 0 10px rgba(106, 255, 199, .65); }
.logout-button { color: #8fa1c1; }
.main-area { position: relative; z-index: 1; }
.topbar { border-color: var(--line); color: #8fa2c4; }
.breadcrumb strong { color: #dbe8fd; }
.crumb-sep { color: #536587; }
.date-label { color: #8fa2c4; }
.avatar { border: 1px solid rgba(108, 224, 255, .4); background: linear-gradient(135deg, #7eeaff, #9e9bff); color: #081523; box-shadow: 0 0 20px rgba(75, 198, 255, .18); }
.welcome-row h1, .page-intro h1 { color: #f2f7ff; letter-spacing: -.04em; text-shadow: 0 0 28px rgba(100, 187, 255, .11); }
.welcome-row .eyebrow, .page-intro .eyebrow { color: #61dff6; }
.title-period { color: #9c8dff; text-shadow: 0 0 16px rgba(155, 141, 255, .75); }
.welcome-sub, .page-intro p:not(.eyebrow) { color: #9aacca; }
.stat-card { border: 1px solid rgba(132, 175, 250, .18); background: linear-gradient(145deg, rgba(17, 35, 59, .94), rgba(13, 20, 39, .92)); box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, .035); }
.stat-docs { background: linear-gradient(145deg, rgba(16, 50, 70, .93), rgba(13, 21, 41, .95)); }
.stat-tags { background: linear-gradient(145deg, rgba(43, 33, 75, .92), rgba(15, 20, 42, .95)); }
.stat-review { background: linear-gradient(145deg, rgba(61, 35, 68, .86), rgba(19, 21, 42, .95)); }
.stat-card::after { border-color: rgba(116, 218, 255, .26); box-shadow: 0 0 0 12px rgba(116, 218, 255, .035), 0 0 0 24px rgba(116, 218, 255, .025), 0 0 36px rgba(103, 152, 255, .1); }
.stat-label { color: #a8bad8; }
.stat-icon { color: #76cde9; }
.stat-number { color: #f1f7ff; text-shadow: 0 0 24px rgba(88, 210, 255, .16); }
.stat-foot { color: #8fa4c5; }
.stat-pulse { background: #75f2ff; box-shadow: 0 0 10px #75f2ff; }
.panel, .document-card, .review-card { border-color: rgba(135, 169, 229, .16); background: linear-gradient(145deg, rgba(16, 24, 44, .88), rgba(11, 17, 33, .9)); box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.035); }
.panel-heading h2 { color: #eaf2ff; }
.text-button, .section-label { color: #bac9e2; }
.text-button span { color: #76e9ff; }
.recent-item { border-color: rgba(137, 165, 213, .12); }
.recent-info strong { color: #e4edfc; }
.recent-info small, .empty-state { color: #8fa2c3; }
.recent-status { color: #7becc8; }
.file-type { color: #7feafa; background: rgba(76, 192, 226, .12); border: 1px solid rgba(92, 209, 239, .19); }
.prompt-panel { border: 1px solid rgba(100, 219, 255, .26); background: radial-gradient(circle at 88% 15%, rgba(92, 152, 255, .19), transparent 35%), linear-gradient(130deg, #11294a, #181d3d 75%); }
.prompt-top, .prompt-top .eyebrow { color: #75eaff; }
.prompt-panel h2 { color: #f1f7ff; }
.prompt-panel p { color: #a9bfdf; }
.prompt-lines { border-color: rgba(103, 223, 255, .28); box-shadow: 0 0 0 13px rgba(103, 223, 255, .035), 0 0 0 26px rgba(134, 124, 255, .035), 0 0 0 39px rgba(103, 223, 255, .025); }
.quote-strip { border-color: var(--line); }
.quote-mark { color: #76e9ff; }
.quote-strip p { color: #a2b2d0; }
.quote-rule { background: rgba(136, 165, 218, .3); }
.quote-credit { color: #7285a8; }
.count-badge { border-color: rgba(139, 171, 227, .22); color: #a1b2d0; }
.count-badge b { color: #eff6ff; }
.drop-zone { border-color: rgba(105, 208, 244, .43); background: linear-gradient(140deg, rgba(21, 45, 73, .66), rgba(20, 23, 50, .57)); box-shadow: inset 0 0 40px rgba(75, 186, 255, .035); }
.drop-zone:hover, .drop-zone.dragover { border-color: #7df1ff; background: linear-gradient(140deg, rgba(28, 69, 101, .78), rgba(42, 37, 83, .69)); box-shadow: inset 0 0 48px rgba(75, 186, 255, .09), 0 0 28px rgba(75, 186, 255, .1); }
.upload-icon { color: #061624; background: linear-gradient(135deg, #7cf5ff, #a7a0ff); box-shadow: 0 0 24px rgba(105, 226, 255, .25); }
.drop-zone strong { color: #e7f2ff; }
.drop-zone u { color: #7eeaff; }
.drop-zone small { color: #91a5c8; }
.drop-zone small i { color: #596f96; }
.inline-message { color: #a8f5dc; background: rgba(33, 137, 114, .16); border: 1px solid rgba(104, 238, 196, .19); }
.inline-message.error { color: #ffb5c2; background: rgba(151, 47, 83, .18); }
.search-box { border-color: rgba(135, 168, 225, .2); background: rgba(11, 18, 35, .78); color: #8ea3c6; }
.search-box input { color: #e8f1ff; }
.search-box input::placeholder { color: #788bac; }
.document-card { transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.document-card:hover { transform: translateY(-2px); border-color: rgba(100, 221, 255, .34); box-shadow: 0 18px 54px rgba(0,0,0,.35), 0 0 30px rgba(68, 175, 255, .055); }
.doc-main h3 { color: #edf4ff; }
.doc-meta, .doc-summary { color: #98aaca; }
.status-pill.ready { color: #78f1c6; background: rgba(47, 158, 119, .13); border-color: rgba(91, 235, 178, .2); }
.status-pill.queued, .status-pill.processing { color: #ffe08d; background: rgba(183, 134, 37, .14); border-color: rgba(242, 198, 94, .2); }
.status-pill.failed { color: #ff9eae; background: rgba(177, 54, 81, .15); border-color: rgba(255, 127, 152, .22); }
.small-button, .review-choice, .rating-button, .reveal-button, .suggestions button { color: #b7c8e3; border: 1px solid rgba(139, 170, 223, .19); background: rgba(22, 32, 56, .72); }
.small-button:hover, .review-choice:hover, .rating-button:hover, .suggestions button:hover { color: #e9fcff; border-color: rgba(104, 226, 255, .48); background: rgba(44, 71, 110, .6); }
.small-button.danger { color: #f6a8b5; }
.tag { color: #a6b4d4; border: 1px solid rgba(153, 163, 246, .18); background: rgba(106, 99, 192, .11); }
.key-points { color: #aab9d4; }
.key-points summary { color: #82eaff; }
.doc-warning { color: #f1d287; }
.doc-error { color: #ff9eae; }
.image-preview { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 12px; width: fit-content; max-width: 100%; margin: 12px 0; color: #82eaff; text-decoration: none; font-size: 10px; }
.image-preview img { display: block; width: 120px; height: 84px; object-fit: cover; border: 1px solid rgba(111, 215, 247, .24); border-radius: 10px; background: #080e1c; }
.image-preview:hover img { border-color: #70eaff; box-shadow: 0 0 22px rgba(81, 212, 255, .18); }
.ai-status { color: #9fb2d2; }
.ai-status span { background: #6ff5cd; box-shadow: 0 0 0 3px rgba(111,245,205,.12), 0 0 14px rgba(111,245,205,.48); }
.assistant-sigil, .message-avatar { color: #071625; background: linear-gradient(135deg, #78efff, #aaa0ff); box-shadow: 0 0 25px rgba(87, 205, 255, .15); }
.assistant-welcome h2 { color: #f0f5ff; }
.assistant-welcome > p:not(.eyebrow), .chat-disclaimer { color: #8fa3c6; }
.suggestions button { color: #a9b9d5; }
.question-composer { border-color: rgba(131, 169, 232, .24); background: rgba(12, 20, 39, .9); box-shadow: 0 14px 42px rgba(0,0,0,.2), inset 0 1px rgba(255,255,255,.035); }
.question-composer textarea { color: #edf5ff; background: transparent; }
.question-composer textarea::placeholder { color: #8193b4; }
.composer-bottom { color: #8093b5; }
.send-button { color: #061523; background: linear-gradient(135deg, #7ef4ff, #9d9dff); box-shadow: 0 0 18px rgba(94, 220, 255, .16); }
.message-bubble { color: #d5e2f7; border-color: rgba(138, 168, 222, .16); background: rgba(16, 26, 48, .88); }
.user-message .message-bubble { color: #e8edff; border-color: rgba(160, 148, 255, .22); background: rgba(79, 65, 151, .3); }
.message-tools button { color: #8eeaff; }
.source-item { color: #aabbd9; border-color: rgba(138, 168, 222, .16); background: rgba(9, 16, 32, .68); }
.source-item strong { color: #dce9ff; }
.source-item p { color: #8ea1c3; }
.typing-indicator i { background: #75eaff; }
.review-count { color: #8cf2ff; border: 1px solid rgba(103, 226, 255, .23); background: rgba(45, 124, 169, .13); box-shadow: 0 0 32px rgba(70, 187, 241, .1); }
.review-card::before { border-color: rgba(103, 218, 255, .21); box-shadow: 0 0 0 15px rgba(96, 145, 216, .035), 0 0 0 30px rgba(116, 104, 216, .025); }
.review-card-top { color: #8ea2c4; }
.review-label { color: #7ceaff; }
.review-question { color: #eef4ff; }
.review-answer { color: #bdcce4; border-color: rgba(139, 169, 222, .17); }
.review-choice.correct { color: #a5ffdb; border-color: rgba(102, 241, 185, .43); background: rgba(31, 128, 97, .18); }
.review-choice.incorrect { color: #ffb3bf; border-color: rgba(255, 128, 151, .4); background: rgba(145, 42, 73, .18); }
.rating-button.again { color: #ffacb9; }
.rating-button.good { color: #9dffda; border-color: rgba(102, 241, 185, .28); background: rgba(31, 128, 97, .15); }
.review-next { color: #8295b6; }
.toast { color: #eaf4ff; background: #172642; border: 1px solid rgba(128, 186, 247, .22); box-shadow: 0 15px 45px rgba(0,0,0,.42); }
.toast.error { color: #ffd4dc; background: #51283b; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid #74eaff; outline-offset: 3px; }
@media (max-width: 680px) {
  .sidebar { background: rgba(7, 12, 25, .96); border-color: rgba(132, 170, 235, .2); }
  .main-area { padding-left: 17px; padding-right: 17px; }
  .welcome-row { padding-top: 29px; }
  .stat-card { min-height: 122px; }
  .document-card { min-width: 0; }
  .doc-card-top { gap: 9px; }
  .doc-meta { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---- auth tabs ---- */
.auth-tabs { display: flex; gap: 6px; margin: 22px 0 18px; background: rgba(127, 173, 255, .08); border-radius: 10px; padding: 4px; }
.auth-tab { flex: 1; border: 0; background: transparent; color: #8fa2c4; padding: 9px; border-radius: 7px; cursor: pointer; font-size: 12px; }
.auth-tab.active { color: #eaf6ff; background: rgba(63, 187, 234, .18); box-shadow: inset 0 0 0 1px rgba(103, 226, 255, .28); }

/* ---- library toolbar + selection ---- */
.library-toolbar-right { display: flex; align-items: center; gap: 10px; }
.doc-check { width: 22px; height: 22px; flex: 0 0 auto; border: 1px solid rgba(139, 170, 223, .35); border-radius: 7px; background: rgba(22, 32, 56, .7); color: #061624; font-size: 12px; cursor: pointer; display: grid; place-items: center; }
.document-card.selected { border-color: rgba(100, 221, 255, .5); box-shadow: 0 0 0 1px rgba(100, 221, 255, .25), 0 18px 54px rgba(0,0,0,.35); }
.document-card.selected .doc-check { background: linear-gradient(135deg, #7ef4ff, #9d9dff); border-color: transparent; color: #061523; }

/* ---- account ---- */
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 1000px; }
.account-panel { padding: 22px; }
.account-form { display: flex; flex-direction: column; }
.account-form label { color: #c0cde3; font-size: 11px; margin: 0 0 8px; }
.account-form .password-wrap { margin-bottom: 6px; }
.account-form .button { margin-top: 18px; align-self: flex-start; }
.account-hint { color: #8fa3c6; font-size: 11px; margin: 12px 0 16px; line-height: 1.7; }
.invite-list { display: grid; gap: 8px; }
.invite-item { border: 1px solid rgba(139, 170, 223, .16); border-radius: 9px; padding: 11px 13px; background: rgba(9, 16, 32, .6); }
.invite-item code { color: #8eeaff; font-size: 12px; word-break: break-all; }
.invite-meta { color: #8ea1c3; font-size: 10px; margin-top: 7px; display: flex; gap: 8px; align-items: center; }
.invite-used { color: #ff9eae; }
.invite-open { color: #78f1c6; }

/* ---- clickable source items ---- */
.source-item { display: block; width: 100%; text-align: left; cursor: pointer; }
.source-item:hover { border-color: rgba(104, 226, 255, .5); }
.source-open { display: block; margin-top: 6px; color: #76e9ff; font-size: 9px; }

/* ---- reader ---- */
.reader-view { padding-bottom: 40px; }
.reader-topbar { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; gap: 16px; padding: 14px 44px; margin: 0 -44px; background: rgba(7, 11, 24, .82); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.back-button { border: 1px solid rgba(139, 170, 223, .22); background: rgba(22, 32, 56, .72); color: #b7c8e3; border-radius: 8px; padding: 8px 13px; cursor: pointer; font-size: 12px; }
.back-button:hover { color: #e9fcff; border-color: rgba(104, 226, 255, .48); }
.reader-title { display: grid; gap: 2px; min-width: 0; flex: 1; }
.reader-title strong { color: #edf4ff; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reader-layout { display: grid; grid-template-columns: 280px 1fr; gap: 20px; margin-top: 20px; align-items: start; }
.reader-toc { position: sticky; top: 90px; max-height: calc(100vh - 120px); overflow-y: auto; display: grid; gap: 3px; padding-right: 4px; }
.reader-toc-item { display: flex; gap: 9px; align-items: center; text-align: left; border: 0; background: transparent; color: #9aacca; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 11px; line-height: 1.5; }
.reader-toc-item:hover { background: rgba(101, 159, 251, .09); color: #e7f2ff; }
.reader-toc-item.active { background: rgba(63, 187, 234, .14); color: #e9fbff; box-shadow: inset 2px 0 #66eaff; }
.toc-seq { color: #7e92b8; font-family: "DM Mono", monospace; font-size: 10px; min-width: 18px; }
.reader-content { min-width: 0; }
.reader-section { margin-bottom: 28px; }
.reader-section h2 { color: #f2f7ff; font-size: 19px; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.reader-prose { color: #c4d2ea; font-size: 14px; line-height: 2; }
.reader-prose p { margin: 0 0 14px; }
.reader-prose h2, .reader-prose h3, .reader-prose h4 { color: #eaf4ff; margin: 18px 0 10px; }
.reader-prose ul { margin: 0 0 14px; padding-left: 20px; }
.reader-prose li { margin: 4px 0; }
.speech-answer.speaking, .small-button.speaking { color: #ffd4dc; border-color: rgba(255, 127, 152, .4); }

@media (max-width: 680px) {
  .reader-topbar { margin: 0 -17px; padding-left: 17px; padding-right: 17px; }
  .reader-layout { grid-template-columns: 1fr; }
  .reader-toc { position: static; max-height: none; }
  .account-grid { grid-template-columns: 1fr; }
  .library-toolbar { flex-wrap: wrap; gap: 10px; }
}

/* ==== 公开首页（学无止境）==== */
.landing { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; }
.landing-card { width: min(100%, 640px); text-align: left; }
.landing-card h2 { margin: 26px 0 8px; font-size: 15px; font-weight: 600; letter-spacing: -.02em; color: #e8f0ff; }
.landing-card p { margin: 0; color: #a2b1cd; font-size: 12.5px; line-height: 1.95; }
.landing-card ul { margin: 0; padding-left: 18px; color: #a2b1cd; font-size: 12.5px; line-height: 1.95; }
.landing-card ul li { margin: 3px 0; }
.landing-card .button.full { margin-top: 26px; }
.landing-foot { color: #8697b6; font-size: 10px; text-align: center; line-height: 2; }
.landing-foot a { color: #8697b6; text-decoration: none; border-bottom: 1px solid rgba(134, 151, 182, .4); }
.landing-foot a:hover { color: #62dff6; border-color: rgba(98, 223, 246, .6); }
@media (max-width: 680px) { .landing-card { padding: 30px 22px; } .landing-card h2 { margin-top: 20px; } }
