@charset "UTF-8";

:root {
  color-scheme: dark;
  --bg: #101a18;
  --bg-raised: #172320;
  --bg-soft: #1d2a26;
  --line: rgba(210, 222, 207, .12);
  --line-bright: rgba(219, 231, 213, .2);
  --text: #e9e9df;
  --text-soft: #b9c1b4;
  --muted: #859188;
  --faint: #637168;
  --copper: #d69970;
  --copper-bright: #f0b98e;
  --green: #a6c4a7;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --font-sans: "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); scroll-behavior: smooth; }
body { position: relative; display: flex; min-width: 320px; min-height: 100dvh; flex-direction: column; margin: 0; overflow-x: hidden; color: var(--text); background: var(--bg); font-family: var(--font-sans); font-size: 13px; line-height: 1.6; }
button, textarea { color: inherit; font: inherit; }
button { cursor: pointer; }
button:focus-visible, textarea:focus-visible, a:focus-visible { outline: 2px solid rgba(240, 185, 142, .82); outline-offset: 3px; }
button:disabled { cursor: not-allowed; opacity: .55; }
[hidden] { display: none !important; }
.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; }

/* Quiet technical atmosphere: a fine drafting grid, warm light and one moving beacon. */
.page-grain { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .23; background-image: linear-gradient(rgba(199, 216, 201, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(199, 216, 201, .035) 1px, transparent 1px); background-size: 68px 68px; mask-image: linear-gradient(to bottom, black, transparent 82%); }
.page-grain::after { position: absolute; inset: 0; background-image: radial-gradient(rgba(218, 223, 205, .14) .45px, transparent .55px); background-size: 5px 5px; content: ""; opacity: .11; }
.ambient { position: fixed; z-index: -1; width: 410px; height: 410px; border-radius: 50%; filter: blur(92px); opacity: .1; pointer-events: none; }
.ambient-one { top: 7%; left: 19%; background: #4c8b6c; animation: ambient-drift 19s ease-in-out infinite alternate; }
.ambient-two { right: 8%; bottom: 5%; width: 330px; height: 330px; background: #b86e4b; opacity: .075; animation: ambient-drift 23s ease-in-out -7s infinite alternate-reverse; }
@keyframes ambient-drift { from { transform: translate3d(-16px, -11px, 0) scale(.93); } to { transform: translate3d(32px, 22px, 0) scale(1.12); } }

.topbar { position: relative; z-index: 3; display: flex; width: 100%; height: 68px; flex: 0 0 auto; align-items: center; justify-content: space-between; padding: 0 clamp(20px, 4.2vw, 68px); border-bottom: 1px solid var(--line); background: rgba(16, 26, 24, .68); backdrop-filter: blur(15px); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand-mark { position: relative; display: flex; width: 25px; height: 27px; align-items: end; justify-content: center; gap: 3px; padding: 3px 4px 4px; border: 1px solid rgba(210, 222, 207, .32); transform: skewY(-8deg); }
.brand-mark::before { position: absolute; top: 2px; right: -5px; width: 5px; height: 1px; background: var(--copper); content: ""; }
.brand-mark i { display: block; width: 3px; background: #829d83; }
.brand-mark i:nth-child(1) { height: 8px; opacity: .55; }.brand-mark i:nth-child(2) { height: 13px; }.brand-mark i:nth-child(3) { height: 17px; background: var(--copper); }
.brand-mark b { position: absolute; top: -3px; left: 4px; width: 13px; height: 3px; background: #d68a64; animation: mark-glint 5s ease-in-out infinite; }
@keyframes mark-glint { 0%, 75%, 100% { transform: translateX(0); opacity: .65; } 83% { transform: translateX(5px); opacity: 1; } }
.brand-name { font-family: var(--font-serif); font-size: 14px; font-weight: 700; letter-spacing: .13em; }
.brand-rule { width: 1px; height: 18px; margin: 0 4px; background: rgba(208, 219, 205, .2); }
.brand-description { color: #95a096; font-size: 10px; letter-spacing: .02em; }
.topbar-tools { display: flex; align-items: center; gap: 15px; }
.context-button { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 4px; color: #b9c6b8; background: rgba(255, 255, 255, .025); font-size: 9px; transition: border-color .2s ease, background .2s ease; }
.context-button:hover { border-color: var(--line-bright); background: rgba(255, 255, 255, .055); }
.context-button svg { width: 12px; fill: none; stroke: #809286; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.4; }
.context-pulse, .prototype-status i { position: relative; width: 5px; height: 5px; border-radius: 50%; background: #88ad8b; }
.context-pulse::after { position: absolute; inset: -4px; border: 1px solid rgba(136, 173, 139, .5); border-radius: 50%; content: ""; animation: sonar 2.5s ease-out infinite; }
@keyframes sonar { from { transform: scale(.45); opacity: .85; } to { transform: scale(1.55); opacity: 0; } }
.topbar-divider { width: 1px; height: 20px; background: var(--line); }
.prototype-status { display: inline-flex; align-items: center; gap: 7px; color: #89968d; font-size: 9px; }
.prototype-status i { width: 4px; height: 4px; background: var(--copper); }
.new-chat-button { display: inline-flex; height: 30px; align-items: center; gap: 6px; padding: 0 9px; border: 1px solid var(--line-bright); border-radius: 3px; color: #d8ddd2; background: transparent; font-size: 9px; transition: background .2s ease, border-color .2s ease; }
.new-chat-button:hover { border-color: rgba(240, 185, 142, .52); background: rgba(214, 147, 109, .09); }
.new-chat-button svg { width: 12px; fill: none; stroke: var(--copper); stroke-linecap: round; stroke-width: 1.5; }

.main-shell { position: relative; display: flex; width: 100%; flex: 1 0 auto; align-items: center; justify-content: center; padding: 50px 24px 30px; }
.welcome-screen { position: relative; isolation: isolate; width: min(100%, 1060px); margin: auto; animation: welcome-in .78s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes welcome-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.hero-art { position: absolute; z-index: -1; top: -170px; right: -230px; width: min(1120px, 108vw); height: 665px; overflow: hidden; pointer-events: none; background-image: linear-gradient(90deg, rgba(16, 26, 24, .97) 0%, rgba(16, 26, 24, .88) 26%, rgba(16, 26, 24, .35) 49%, rgba(16, 26, 24, .02) 76%), linear-gradient(0deg, var(--bg) 0%, rgba(16, 26, 24, .8) 8%, rgba(16, 26, 24, .08) 38%, rgba(16, 26, 24, .04) 78%, var(--bg) 100%), url("./hero-project.png"); background-position: center, center, right center; background-size: 100% 100%, 100% 100%, cover; background-repeat: no-repeat; opacity: .93; animation: hero-drift 26s ease-in-out infinite alternate; }
.hero-art::before { position: absolute; top: 16%; right: 8%; width: 42%; aspect-ratio: 1; border: 1px solid rgba(246, 205, 158, .18); border-radius: 50%; box-shadow: 0 0 30px rgba(212, 151, 104, .08), inset 0 0 24px rgba(200, 220, 207, .035); content: ""; animation: lens-breathe 8s ease-in-out infinite; }
.hero-art::after { position: absolute; top: 20%; right: 11%; width: 36%; aspect-ratio: 1; border-radius: 50%; background: linear-gradient(118deg, transparent 38%, rgba(243, 220, 184, .105) 49%, transparent 56%); content: ""; opacity: .55; animation: lens-sweep 11s ease-in-out infinite; }
.lens-orbit { position: absolute; top: 11%; right: 4%; width: 48%; aspect-ratio: 1; border: 1px solid rgba(224, 235, 213, .055); border-radius: 50%; transform: rotate(-14deg) scaleY(.95); }
.lens-sheen { position: absolute; right: 23%; bottom: 22%; width: 4px; height: 4px; border-radius: 50%; background: #efbd89; box-shadow: 0 0 16px 5px rgba(230, 162, 99, .31); animation: beacon 4.5s ease-in-out infinite; }
@keyframes hero-drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-9px, 5px, 0) scale(1.018); } }
@keyframes lens-breathe { 0%, 100% { transform: scale(.99); opacity: .62; } 50% { transform: scale(1.015); opacity: .95; } }
@keyframes lens-sweep { 0%, 14% { transform: translateX(-8%) rotate(-8deg); opacity: 0; } 42% { opacity: .58; } 73%, 100% { transform: translateX(8%) rotate(8deg); opacity: 0; } }
@keyframes beacon { 0%, 100% { opacity: .48; box-shadow: 0 0 12px 3px rgba(230, 162, 99, .2); } 50% { opacity: 1; box-shadow: 0 0 22px 7px rgba(230, 162, 99, .42); } }
.welcome-screen h1 { max-width: 845px; margin: 8px 0 14px; color: #e6e8dc; font-family: var(--font-serif); font-size: clamp(38px, 5vw, 60px); font-weight: 500; letter-spacing: -.055em; line-height: 1.26; }
.welcome-screen h1 em { color: var(--copper-bright); font-style: normal; text-shadow: 0 0 36px rgba(221, 151, 109, .13); }
.hero-copy { max-width: 570px; margin: 0; color: #9ba69a; font-size: 12px; letter-spacing: .015em; }

.composer { position: relative; border: 1px solid rgba(200, 218, 201, .19); border-radius: 7px; background: linear-gradient(145deg, rgba(30, 45, 40, .97), rgba(23, 35, 32, .98)); box-shadow: 0 13px 40px rgba(0, 0, 0, .2), inset 0 1px rgba(255, 255, 255, .035); transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease; }
.composer::before { position: absolute; top: -1px; left: 19px; width: 68px; height: 1px; background: linear-gradient(90deg, transparent, var(--copper), transparent); content: ""; opacity: .75; }
.composer:focus-within { border-color: rgba(197, 216, 195, .38); box-shadow: 0 16px 45px rgba(0, 0, 0, .24), 0 0 0 3px rgba(103, 145, 112, .06); transform: translateY(-1px); }
.composer-home { width: min(100%, 760px); margin-top: 28px; padding: 15px 16px 11px; }
.composer textarea { display: block; width: 100%; min-height: 60px; resize: vertical; padding: 1px 1px 8px; border: 0; outline: 0; color: #e3e7dc; background: transparent; font-size: 12px; line-height: 1.7; }
.composer textarea::placeholder { color: #728177; opacity: 1; }
.composer textarea:focus-visible { outline: 0; }
.composer-bottom { display: flex; min-height: 31px; align-items: center; justify-content: space-between; gap: 10px; padding-top: 8px; border-top: 1px solid rgba(211, 224, 207, .09); }
.composer-tools { display: flex; min-width: 0; align-items: center; gap: 10px; }
.attach-button { display: inline-flex; align-items: center; gap: 6px; padding: 4px 5px; border: 0; border-radius: 3px; color: #9aa99a; background: transparent; font-size: 9px; transition: color .18s ease, background .18s ease; }
.attach-button:hover { color: #d5d9cd; background: rgba(255, 255, 255, .05); }
.attach-button svg { width: 13px; fill: none; stroke: #d19a76; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.4; }
.composer-hint { overflow: hidden; color: #64746a; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.composer-send-wrap { display: flex; flex: 0 0 auto; align-items: center; gap: 9px; }
.send-shortcut { color: #637168; font-size: 8px; }
.send-button { position: relative; display: grid; width: 31px; height: 31px; flex: 0 0 auto; place-items: center; overflow: hidden; border: 1px solid rgba(242, 194, 154, .56); border-radius: 50%; color: #241d18; background: var(--copper); box-shadow: 0 0 0 4px rgba(214, 153, 112, .065); transition: background .18s ease, transform .18s ease, box-shadow .18s ease; }
.send-button::before { position: absolute; inset: 0; border-radius: inherit; background: rgba(255, 245, 229, .25); content: ""; transform: scale(0); transition: transform .25s ease; }
.send-button:hover { box-shadow: 0 0 0 6px rgba(214, 153, 112, .1); transform: translateY(-1px); }
.send-button:hover::before { transform: scale(1); }
.send-button:active { transform: scale(.94); }
.send-button svg { z-index: 1; width: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; transition: transform .18s ease; }
.send-button:hover svg { transform: translateX(2px); }
.attachment-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.attachment-chip { display: inline-flex; max-width: 230px; align-items: center; gap: 6px; padding: 3px 7px; border: 1px solid rgba(205, 221, 202, .16); border-radius: 3px; color: #b6c4b4; background: rgba(255, 255, 255, .035); font-size: 8px; animation: chip-in .25s ease both; }
.attachment-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment-chip button { padding: 0 1px; border: 0; color: #8d9a8c; background: transparent; font-size: 12px; }
@keyframes chip-in { from { opacity: 0; transform: translateY(5px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

.starter-section { width: min(100%, 820px); margin-top: 31px; }
.starter-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; color: #abb5a9; font-size: 9px; }
.starter-note { color: #67776c; font-size: 8px; }
.starter-note i { margin-left: 3px; color: var(--copper); font-style: normal; }
.starter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.starter-card { position: relative; display: grid; min-height: 109px; grid-template-columns: 27px 1fr 16px; grid-template-rows: 27px 1fr auto; align-items: center; gap: 4px 8px; overflow: hidden; padding: 12px 12px 10px; border: 1px solid var(--line); border-radius: 5px; color: var(--text); background: linear-gradient(145deg, rgba(28, 43, 38, .83), rgba(21, 32, 29, .89)); text-align: left; transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease; }
.starter-card::after { position: absolute; inset: 0; background: linear-gradient(110deg, transparent 25%, rgba(222, 232, 211, .04) 45%, transparent 65%); content: ""; transform: translateX(-110%); transition: transform .55s ease; }
.starter-card:hover { border-color: rgba(197, 216, 195, .3); background: linear-gradient(145deg, rgba(34, 53, 45, .94), rgba(24, 38, 33, .97)); box-shadow: 0 10px 25px rgba(0, 0, 0, .15); transform: translateY(-3px); }
.starter-card:hover::after { transform: translateX(110%); }
.starter-number { align-self: start; color: #718276; font-family: var(--font-serif); font-size: 9px; }
.starter-icon { display: grid; width: 25px; height: 25px; grid-column: 2; place-items: center; border: 1px solid rgba(194, 213, 190, .17); border-radius: 50%; color: #a8c2a5; background: rgba(112, 151, 115, .075); }
.starter-icon svg { width: 13px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.35; }
.icon-clock { color: #ddb08b; border-color: rgba(220, 163, 121, .19); background: rgba(194, 124, 83, .075); }
.icon-route { color: #b7c6a6; }
.starter-card strong { z-index: 1; grid-column: 1 / 3; align-self: end; color: #dce0d5; font-size: 9px; font-weight: 600; }
.starter-card small { z-index: 1; grid-column: 1 / 3; color: #79877c; font-size: 8px; }
.starter-arrow { z-index: 1; grid-column: 3; grid-row: 2 / 4; align-self: center; color: #738176; font-size: 13px; transition: color .2s ease, transform .2s ease; }
.starter-card:hover .starter-arrow { color: var(--copper-bright); transform: translate(2px, -2px); }
.response-promise { display: flex; align-items: center; gap: 11px; width: min(100%, 820px); margin-top: 23px; padding-top: 12px; border-top: 1px solid var(--line); color: #879389; font-size: 8px; }
.promise-label { color: #69786d; }
.response-promise b { color: #b8c7b4; font-weight: 500; }
.response-promise i { margin: 0 5px; color: #59685e; font-style: normal; }
.demo-note { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; color: #68766d; font-size: 8px; }
.tiny-lock { color: #8fa18e; font-size: 9px; }

/* Conversation state keeps the same quiet frame and gives the answer the visual weight. */
.conversation-screen { width: min(100%, 760px); margin: auto; animation: welcome-in .48s cubic-bezier(.2, .8, .2, 1) both; }
.conversation-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 5px 1px 19px; border-bottom: 1px solid var(--line); }
.conversation-kicker { display: inline-flex; align-items: center; gap: 7px; color: #8b9a8c; font-size: 8px; font-weight: 700; letter-spacing: .13em; }
.conversation-kicker i { width: 5px; height: 5px; border-radius: 50%; background: var(--copper); box-shadow: 0 0 10px rgba(214, 153, 112, .5); }
.conversation-heading p { max-width: 560px; margin: 6px 0 0; color: #e1e2d7; font-family: var(--font-serif); font-size: 15px; line-height: 1.55; }
.reset-link { flex: 0 0 auto; margin-top: 3px; padding: 5px 0; border: 0; color: #89968b; background: transparent; font-size: 8px; }
.reset-link:hover { color: var(--copper-bright); }
.message-list { display: grid; gap: 18px; padding: 21px 0 19px; }
.chat-turn { display: grid; gap: 12px; animation: turn-in .42s ease both; }
@keyframes turn-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.user-question { justify-self: end; max-width: 82%; padding: 9px 12px; border: 1px solid rgba(211, 220, 203, .13); border-radius: 6px 6px 0 6px; color: #e1e5da; background: rgba(61, 82, 68, .4); font-size: 10px; line-height: 1.65; }
.answer-card { position: relative; padding: 17px 18px 15px; border: 1px solid rgba(193, 213, 190, .16); border-radius: 0 7px 7px 7px; background: linear-gradient(140deg, rgba(27, 42, 37, .95), rgba(21, 33, 30, .98)); box-shadow: 0 12px 34px rgba(0, 0, 0, .12); }
.answer-card::before { position: absolute; top: -1px; left: 16px; width: 46px; height: 1px; background: var(--copper); content: ""; opacity: .75; }
.answer-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.answer-label { display: inline-flex; align-items: center; gap: 7px; color: #9ab098; font-size: 8px; font-weight: 700; letter-spacing: .09em; }
.answer-label .mini-mark { display: grid; width: 19px; height: 19px; place-items: center; border: 1px solid rgba(165, 196, 165, .34); border-radius: 50%; color: #c2d5b6; font-family: var(--font-serif); font-size: 8px; letter-spacing: 0; }
.demo-badge { padding: 3px 5px; border: 1px solid rgba(216, 160, 120, .24); border-radius: 2px; color: #d4a17c; font-size: 7px; letter-spacing: .05em; }
.answer-title { margin: 0 0 7px; color: #e9e9df; font-family: var(--font-serif); font-size: 17px; font-weight: 500; line-height: 1.5; }
.answer-lede { margin: 0 0 14px; color: #aab5a8; font-size: 9px; line-height: 1.8; }
.answer-section { margin-top: 12px; padding-top: 11px; border-top: 1px solid rgba(208, 221, 204, .1); }
.answer-section-heading { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; color: #c0cabc; font-size: 9px; font-weight: 600; }
.section-index { color: var(--copper); font-family: var(--font-serif); font-size: 9px; }
.answer-section p { margin: 0; color: #99a69a; font-size: 9px; line-height: 1.8; }
.answer-section strong { color: #d0d9cb; font-weight: 600; }
.answer-bullets { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.answer-bullets li { display: grid; grid-template-columns: 17px 1fr; gap: 7px; color: #a5b1a3; font-size: 9px; line-height: 1.7; }
.answer-bullets li i { display: grid; width: 15px; height: 15px; place-items: center; border: 1px solid rgba(201, 151, 111, .23); border-radius: 50%; color: #d19a74; font-size: 7px; font-style: normal; }
.evidence-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 13px; padding: 9px 10px; border: 1px solid rgba(198, 157, 114, .18); border-radius: 4px; color: #b09a7e; background: rgba(157, 112, 72, .055); font-size: 8px; line-height: 1.7; }
.evidence-note > i { display: grid; width: 14px; height: 14px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(212, 165, 120, .43); border-radius: 50%; color: var(--copper-bright); font-size: 8px; font-style: normal; }
.evidence-note strong { color: #d6b38f; font-weight: 600; }
.answer-actions { display: grid; gap: 7px; margin-top: 8px; }
.answer-action { display: grid; grid-template-columns: 16px 1fr auto; gap: 7px; align-items: baseline; color: #a7b1a5; font-size: 8px; line-height: 1.65; }
.answer-action > i { color: #80a481; font-size: 10px; font-style: normal; }
.answer-action b { color: #d0d5c8; font-weight: 500; }
.answer-action small { color: #78867b; font-size: 7px; white-space: nowrap; }
.answer-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 13px; padding-top: 9px; border-top: 1px solid rgba(208, 221, 204, .09); color: #68776d; font-size: 7px; }
.answer-foot button { padding: 0; border: 0; color: #8ea68d; background: transparent; font-size: 7px; }
.answer-foot button:hover { color: #e2b28c; }
.plain-reply { padding: 13px 15px; border: 1px solid rgba(198, 157, 114, .2); border-radius: 5px; color: #aeb7aa; background: rgba(167, 121, 77, .055); font-size: 9px; line-height: 1.8; }
.followup-scope { display: inline-flex; align-items: center; gap: 6px; color: #718176; font-size: 8px; }
.followup-scope i { width: 4px; height: 4px; border-radius: 50%; background: #d69a73; }
.composer-followup { margin-top: 1px; padding: 12px 14px 9px; }
.composer-followup textarea { min-height: 43px; font-size: 10px; }
.conversation-disclaimer { margin: 8px 0 0; color: #647168; font-size: 7px; text-align: center; }

.site-footer { display: flex; min-height: 43px; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 12px; padding: 0 clamp(20px, 4.2vw, 68px); border-top: 1px solid rgba(210, 222, 207, .085); color: #69776e; font-size: 7px; letter-spacing: .07em; }
.site-footer i { margin: 0 4px; color: #c68b64; font-style: normal; }
.toast { position: fixed; right: 20px; bottom: 18px; z-index: 8; max-width: min(390px, calc(100vw - 35px)); padding: 9px 12px; border: 1px solid rgba(199, 218, 198, .24); border-radius: 4px; color: #e2e8dc; background: #263b32; box-shadow: 0 12px 26px rgba(0, 0, 0, .27); font-size: 8px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .22s ease, transform .22s ease; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (min-width: 1450px) {
  .hero-art { right: -280px; width: 1280px; }
  .main-shell { padding-top: 58px; padding-bottom: 44px; }
}
@media (max-width: 720px) {
  .topbar { height: 58px; padding: 0 16px; }
  .brand { gap: 7px; }
  .brand-name { font-size: 12px; }
  .brand-description, .brand-rule { display: none; }
  .topbar-tools { gap: 9px; }
  .context-button { gap: 6px; padding: 6px 7px; font-size: 8px; }
  .topbar-divider, .prototype-status { display: none; }
  .new-chat-button { width: 29px; height: 29px; justify-content: center; padding: 0; }
  .new-chat-button span { display: none; }
  .main-shell { align-items: flex-start; padding: 48px 18px 27px; }
  .welcome-screen { margin-top: 10px; }
  .hero-art { top: -70px; right: -265px; width: 760px; height: 490px; opacity: .64; background-image: linear-gradient(90deg, rgba(16, 26, 24, .99) 0%, rgba(16, 26, 24, .84) 35%, rgba(16, 26, 24, .25) 67%, rgba(16, 26, 24, .06) 100%), linear-gradient(0deg, var(--bg) 0%, rgba(16, 26, 24, .53) 15%, transparent 53%, rgba(16, 26, 24, .12) 82%, var(--bg) 100%), url("./hero-project.png"); }
  .hero-art::before { top: 17%; right: 8%; width: 42%; }
  .hero-art::after { top: 20%; right: 11%; width: 36%; }
  .welcome-screen h1 { max-width: 620px; margin-top: 12px; font-size: clamp(32px, 8vw, 46px); }
  .hero-copy { max-width: 420px; font-size: 10px; line-height: 1.8; }
  .composer-home { margin-top: 24px; padding: 12px 12px 9px; }
  .composer textarea { min-height: 68px; font-size: 10px; }
  .starter-section { margin-top: 26px; }
  .starter-grid { grid-template-columns: 1fr; gap: 7px; }
  .starter-card { min-height: 73px; grid-template-columns: 23px 29px 1fr 16px; grid-template-rows: 1fr 1fr; gap: 1px 8px; padding: 10px; }
  .starter-number { grid-column: 1; grid-row: 1 / 3; align-self: center; }
  .starter-icon { grid-column: 2; grid-row: 1 / 3; }
  .starter-card strong { grid-column: 3; grid-row: 1; align-self: end; }
  .starter-card small { grid-column: 3; grid-row: 2; align-self: start; }
  .starter-arrow { grid-column: 4; grid-row: 1 / 3; }
  .response-promise { flex-wrap: wrap; gap: 5px 9px; margin-top: 20px; }
  .demo-note { align-items: flex-start; line-height: 1.65; }
  .tiny-lock { margin-top: 1px; }
  .site-footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 2px; min-height: 48px; padding: 7px 17px; }
  .conversation-screen { margin-top: 0; }
  .conversation-heading { gap: 8px; }
  .conversation-heading p { font-size: 13px; }
  .answer-card { padding: 14px 12px 11px; }
  .answer-title { font-size: 15px; }
  .answer-action { grid-template-columns: 15px 1fr; }
  .answer-action small { grid-column: 2; white-space: normal; }
  .composer-followup { padding-right: 10px; padding-left: 10px; }
}
@media (max-width: 390px) {
  .context-button { max-width: 132px; overflow: hidden; white-space: nowrap; }
  .context-button span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; }
  .send-shortcut { display: none; }
  .composer-hint { max-width: 139px; }
  .starter-heading { align-items: flex-start; flex-direction: column; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Live answers and traceable sources share the existing copper and forest palette. */
.brand-name { letter-spacing: .07em; }
.attach-button:disabled { opacity: .55; }
.attach-button:disabled:hover { color: #9aa99a; background: transparent; }
.composer-hint { white-space: normal; }
.send-button:disabled { box-shadow: none; transform: none; }
.service-notice { display: flex; max-width: 820px; align-items: baseline; gap: 12px; margin-top: 10px; color: #98a699; font-size: 10px; line-height: 1.8; }
.service-notice p { margin: 0; text-wrap: pretty; }
.status-retry, .cancel-request, .retry-question { flex: 0 0 auto; padding: 4px 7px; border: 1px solid rgba(214, 153, 112, .3); border-radius: 3px; color: var(--copper-bright); background: rgba(214, 153, 112, .04); font-size: 11px; transition: background .2s ease, border-color .2s ease; }
.status-retry:hover, .cancel-request:hover, .retry-question:hover { background: rgba(214, 153, 112, .1); border-color: rgba(214, 153, 112, .58); }
.prototype-status[data-state="error"] { color: #d3a28a; }
.prototype-status[data-state="ready"] i { background: var(--green); }
.prototype-status[data-state="loading"] i { animation: waiting-pulse 1.6s ease-in-out infinite; }
.conversation-screen { width: min(100%, 860px); }
.conversation-heading p { overflow-wrap: anywhere; }
.user-question { font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.answer-card { padding: 23px 25px 21px; }
.answer-top { flex-wrap: wrap; margin-bottom: 9px; }
.answer-label { font-size: 10px; }
.answer-label .mini-mark { font-style: normal; }
.answer-mode { padding: 3px 7px; border: 1px solid rgba(214, 153, 112, .25); border-radius: 3px; color: #dbad8b; background: rgba(214, 153, 112, .045); font-size: 10px; }
.answer-context { margin: 0 0 17px; color: #8f9e90; font-size: 10px; line-height: 1.7; }
.answer-content { color: #d9dfd2; font-size: 14px; line-height: 1.95; white-space: pre-wrap; overflow-wrap: anywhere; }
.answer-notice { margin: 17px 0 0; padding: 10px 12px; border-left: 2px solid rgba(214, 153, 112, .55); color: #bea890; background: rgba(214, 153, 112, .045); font-size: 11px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.sources-section { margin-top: 24px; border-top: 1px solid var(--line-bright); }
.sources-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 16px 0 10px; }
.sources-heading h2 { margin: 0; color: #cad5c2; font-size: 12px; font-weight: 500; }
.sources-heading > span { color: #8d9d90; font-size: 10px; }
.source-detail { border-bottom: 1px solid var(--line); }
.source-summary { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: baseline; gap: 10px; padding: 14px 24px 14px 0; list-style: none; cursor: pointer; transition: background .2s ease; }
.source-summary::-webkit-details-marker { display: none; }
.source-summary::after { position: absolute; top: 16px; right: 2px; width: 6px; height: 6px; border-right: 1px solid #b69476; border-bottom: 1px solid #b69476; content: ""; transform: rotate(45deg); transition: transform .2s ease; }
.source-detail[open] > .source-summary::after { transform: translateY(3px) rotate(225deg); }
.source-summary:hover { background: rgba(205, 221, 202, .025); }
.source-summary:focus-visible { outline: 2px solid rgba(240, 185, 142, .82); outline-offset: 3px; }
.source-index { color: #b98d6a; font-family: var(--font-serif); font-size: 11px; font-variant-numeric: tabular-nums; }
.source-summary-main { display: grid; min-width: 0; gap: 5px; }
.source-title { color: #c9d5c1; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.source-excerpt { display: -webkit-box; overflow: hidden; color: #8d9c8f; font-size: 11px; line-height: 1.8; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.source-review { max-width: 130px; color: #c4a587; font-size: 9px; line-height: 1.6; overflow-wrap: anywhere; }
.source-body { padding: 0 0 18px 34px; }
.source-metadata { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 7px 10px; margin: 2px 0 18px; padding: 13px 15px; border: 1px solid rgba(203, 221, 198, .08); border-radius: 3px; background: rgba(9, 18, 15, .17); font-size: 11px; line-height: 1.8; }
.source-metadata dt { color: #8b9b8d; }
.source-metadata dd { margin: 0; color: #b7c5b2; white-space: pre-wrap; overflow-wrap: anywhere; }
.source-subheading { margin: 14px 0 7px; color: #b9c9b1; font-size: 11px; font-weight: 500; }
.source-text { color: #aab9a6; font-size: 12px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
.source-citations { display: grid; gap: 11px; margin: 0; padding-left: 16px; color: #9baa98; font-size: 11px; }
.source-link { color: #d8b18f; text-decoration-color: rgba(216, 177, 143, .4); text-underline-offset: 4px; overflow-wrap: anywhere; }
.source-link:hover { color: var(--copper-bright); text-decoration-color: currentColor; }
.source-locator { display: block; margin: 4px 0 0; color: #91a08f; font-size: 10px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.source-empty { margin: 18px 0 0; padding-top: 13px; border-top: 1px solid var(--line); color: #baa58f; font-size: 11px; line-height: 1.8; }
.answer-followups { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.followup-question { padding: 8px 11px; border: 1px solid rgba(193, 213, 190, .17); border-radius: 4px; color: #b8cbb1; background: rgba(193, 213, 190, .035); font-size: 11px; line-height: 1.7; text-align: left; transition: border-color .2s ease, background .2s ease; }
.followup-question:hover { border-color: rgba(214, 153, 112, .38); background: rgba(214, 153, 112, .045); }
.answer-loading { padding-bottom: 26px; }
.loading-row { display: flex; align-items: center; gap: 9px; color: #b0c0aa; font-size: 12px; }
.cancel-request { margin-left: auto; }
.loading-pulse { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: var(--copper); animation: waiting-pulse 1.6s ease-in-out infinite; }
.loading-line { display: block; width: 87%; height: 7px; margin-top: 17px; border-radius: 2px; background: rgba(193, 213, 190, .065); animation: waiting-pulse 1.6s ease-in-out -.3s infinite; }
.loading-line-short { width: 54%; margin-top: 10px; animation-delay: -.6s; }
@keyframes waiting-pulse { 0%, 100% { opacity: .38; } 50% { opacity: 1; } }
.request-error { padding: 15px 17px; border: 1px solid rgba(211, 153, 117, .25); border-radius: 0 6px 6px; color: #d0b297; background: rgba(157, 104, 71, .07); font-size: 12px; line-height: 1.8; }
.request-error p { margin: 0 0 9px; white-space: pre-wrap; overflow-wrap: anywhere; }
.request-cancelled { color: #a3b19f; border-color: var(--line); background: rgba(193, 213, 190, .025); }
.conversation-disclaimer { color: #94a18f; font-size: 10px; line-height: 1.8; text-align: left; }
.composer-followup textarea { font-size: 12px; }
.followup-scope { font-size: 10px; }
@media (max-width: 720px) {
  .answer-card { padding: 17px 14px; }
  .answer-content { font-size: 13px; line-height: 1.9; }
  .answer-top { gap: 8px; }
  .answer-mode { font-size: 9px; }
  .source-summary { grid-template-columns: 20px minmax(0, 1fr); gap: 5px 7px; padding-right: 20px; }
  .source-review { grid-column: 2; max-width: none; }
  .source-body { padding-left: 0; }
  .source-metadata { grid-template-columns: 64px minmax(0, 1fr); padding: 10px; gap: 6px 8px; }
  .sources-heading { flex-wrap: wrap; gap: 4px; }
  .service-notice { align-items: flex-start; flex-wrap: wrap; gap: 5px; }
  .composer-hint { max-width: 170px; font-size: 8px; }
  .followup-scope { font-size: 9px; }
}

/* Deep analysis remains one quiet question flow, with only real server stages. */
.analysis-scope { display: inline-flex; align-items: center; gap: 8px; margin: 16px 0 0; color: #b4aa97; font-size: 10px; letter-spacing: .04em; }
.analysis-scope::before { width: 18px; height: 1px; background: var(--copper); content: ""; }
.pending-task-notice { display: flex; align-items: center; gap: 12px; max-width: 820px; margin-top: 12px; padding: 10px 12px; border-left: 1px solid var(--copper); color: #b3bfae; background: rgba(214, 153, 112, .045); font-size: 11px; }
.pending-task-resume, .resume-request { padding: 5px 9px; border: 1px solid rgba(214, 153, 112, .3); border-radius: 3px; color: var(--copper-bright); background: rgba(214, 153, 112, .04); font-size: 11px; transition: background .2s ease, border-color .2s ease; }
.pending-task-resume:hover, .resume-request:hover { border-color: rgba(214, 153, 112, .58); background: rgba(214, 153, 112, .1); }
.loading-row { align-items: flex-start; }
.loading-pulse { margin-top: 7px; }
.loading-title { padding-top: 1px; font-size: 13px; font-weight: 500; }
.loading-message { margin: 13px 0 0; color: #94a38f; font-size: 11px; line-height: 1.9; }
.analysis-stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 22px 0 19px; padding: 0; list-style: none; }
.analysis-stages li { position: relative; min-width: 0; padding: 14px 9px 0 0; border-top: 1px solid rgba(194, 213, 187, .16); color: #7e8e7c; font-size: 11px; line-height: 1.7; }
.analysis-stages li::before { position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border: 1px solid #697d6a; border-radius: 50%; background: #1a2923; content: ""; }
.analysis-stages .is-past { border-top-color: rgba(170, 197, 157, .45); color: #b0c3a8; }
.analysis-stages .is-past::before { border-color: #9ab18d; background: #9ab18d; }
.analysis-stages .is-current { border-top-color: rgba(214, 153, 112, .5); color: #e7bb94; }
.analysis-stages .is-current::before { border-color: var(--copper); background: var(--copper); box-shadow: 0 0 12px rgba(214, 153, 112, .45); animation: waiting-pulse 1.6s ease-in-out infinite; }
.loading-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: #7f907d; font-size: 10px; }
.elapsed-time { flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.recovery-note { display: inline-block; margin-left: 12px; color: #8ea089; font-size: 10px; }
.session-note { margin: 6px 0 0; color: #73866f; font-size: 10px; line-height: 1.8; }
.answer-content { white-space: normal; }
.answer-content > :first-child { margin-top: 0; }
.answer-content > :last-child { margin-bottom: 0; }
.answer-content p { margin: 0 0 16px; }
.answer-content h2 { margin: 27px 0 11px; padding-top: 16px; border-top: 1px solid rgba(201, 217, 194, .12); color: #ede8d9; font-family: var(--font-serif); font-size: 19px; font-weight: 500; line-height: 1.6; }
.answer-content h2:first-child { padding-top: 0; border-top: 0; }
.answer-content h3 { margin: 20px 0 9px; color: #ddc4a9; font-size: 15px; font-weight: 500; line-height: 1.7; }
.answer-content strong { color: #edf0e4; font-weight: 600; }
.answer-content ul, .answer-content ol { display: grid; gap: 7px; margin: 12px 0 18px; padding-left: 23px; }
.answer-content li::marker { color: var(--copper); }
.answer-content hr { margin: 23px 0; border: 0; border-top: 1px solid var(--line); }
.answer-content code { padding: 2px 5px; border: 1px solid rgba(196, 211, 183, .12); border-radius: 3px; color: #c4d5b8; background: rgba(8, 16, 12, .22); font-size: .9em; }
.answer-content blockquote { margin: 16px 0; padding: 9px 15px; border-left: 2px solid rgba(214, 153, 112, .6); color: #bfc8b6; background: rgba(214, 153, 112, .045); }
.inline-source { display: inline; margin: 0 1px; padding: 0 2px; border: 0; border-radius: 2px; color: #e3b084; background: transparent; font: inherit; font-size: .88em; }
.inline-source:hover { color: #f4cba3; background: rgba(214, 153, 112, .1); }
.answer-table-wrap { width: 100%; overflow-x: auto; margin: 18px 0; border: 1px solid var(--line); border-radius: 4px; scrollbar-color: #546b54 transparent; }
.answer-table { width: 100%; border-collapse: collapse; font-size: 12px; line-height: 1.85; }
.answer-table th, .answer-table td { min-width: 125px; padding: 11px 13px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.answer-table th { color: #d7c5ad; background: rgba(214, 153, 112, .05); font-weight: 500; }
.answer-table tr:last-child td { border-bottom: 0; }
.answer-table th:last-child, .answer-table td:last-child { border-right: 0; }
@media (max-width: 720px) {
  .analysis-scope { margin-top: 13px; font-size: 9px; }
  .analysis-stages { margin-top: 19px; }
  .analysis-stages li { padding-right: 5px; font-size: 10px; }
  .loading-title { font-size: 12px; }
  .loading-foot { flex-wrap: wrap; gap: 3px 10px; }
  .pending-task-notice { align-items: flex-start; flex-wrap: wrap; gap: 7px; }
  .recovery-note { display: block; margin: 7px 0 0; }
  .answer-content h2 { font-size: 17px; }
  .answer-content h3 { font-size: 14px; }
  .answer-table th, .answer-table td { min-width: 110px; padding: 9px 11px; }
}
