@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --ink: #14211c;
  --ink-soft: #31423a;
  --muted: #728078;
  --line: #e4e9e6;
  --line-strong: #d5ddd8;
  --canvas: #f6f8f6;
  --surface: #ffffff;
  --forest-950: #092c23;
  --forest-900: #0d382c;
  --forest-800: #17493a;
  --forest-700: #216149;
  --green: #2b7d5d;
  --mint: #e6f4ed;
  --mint-strong: #bfe8d5;
  --violet: #eeeafa;
  --amber: #fbf0d9;
  --danger: #a44949;
  --shadow-sm: 0 1px 2px rgba(13, 42, 32, .04), 0 5px 18px rgba(13, 42, 32, .04);
  --shadow-lg: 0 28px 80px rgba(9, 44, 35, .16);
  font-family: Inter, Pretendard, "Noto Sans KR", ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--canvas); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid rgba(43, 125, 93, .24); outline-offset: 2px; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 264px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; z-index: 5; height: 100vh; padding: 28px 18px 20px; display: flex; flex-direction: column; color: #edf6f2; overflow: hidden; background: radial-gradient(circle at 10% 5%, rgba(104, 184, 148, .15), transparent 26%), linear-gradient(155deg, var(--forest-800), var(--forest-950) 72%); }
.sidebar::after { content: ""; position: absolute; right: -72px; bottom: 86px; width: 190px; height: 190px; border: 1px solid rgba(197, 235, 217, .08); border-radius: 50%; box-shadow: 0 0 0 28px rgba(197,235,217,.025), 0 0 0 56px rgba(197,235,217,.018); pointer-events: none; }
.brand { position: relative; z-index: 1; display: flex; gap: 12px; align-items: center; margin: 0 10px 30px; color: inherit; text-decoration: none; }
.brand-mark { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(215, 246, 231, .28); border-radius: 14px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 4px rgba(255,255,255,.02); }
.brand-mark::before { content: ""; width: 17px; height: 17px; border: 2px solid #b9e987; border-radius: 50%; }
.brand-mark i { position: absolute; top: 9px; right: 8px; width: 6px; height: 6px; border-radius: 50%; background: #e6ffd0; box-shadow: 0 0 10px rgba(230,255,208,.8); }
.brand-copy strong { display: block; font-family: "DM Serif Display", Georgia, serif; font-size: 21px; font-weight: 400; letter-spacing: .02em; }
.brand-copy small { display: block; margin-top: 2px; color: #98b9ac; font-size: 8px; font-weight: 700; letter-spacing: .21em; }
.new-chat { position: relative; z-index: 1; width: 100%; height: 46px; padding: 0 12px; display: grid; grid-template-columns: 22px 1fr auto; align-items: center; border: 1px solid rgba(212, 242, 228, .13); border-radius: 11px; color: #f6fbf9; background: rgba(255,255,255,.085); text-align: left; font-size: 12px; font-weight: 600; transition: .18s ease; }
.new-chat:hover { border-color: rgba(212, 242, 228, .25); background: rgba(255,255,255,.13); transform: translateY(-1px); }
.new-chat > span:first-child { color: #bce78a; font-size: 18px; font-weight: 400; }
.new-chat kbd { padding: 3px 6px; border: 1px solid rgba(255,255,255,.12); border-radius: 5px; color: #86a99a; background: rgba(0,0,0,.08); font: 9px Inter, sans-serif; }
.nav-label { position: relative; z-index: 1; margin: 31px 12px 10px; color: #739b8b; font-size: 8px; font-weight: 700; letter-spacing: .2em; }
nav { position: relative; z-index: 1; display: grid; gap: 5px; }
.nav-item { width: 100%; min-height: 44px; padding: 0 12px; display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 10px; border: 0; border-radius: 10px; color: #aac6bb; background: transparent; text-align: left; font-size: 12px; font-weight: 600; transition: .16s ease; }
.nav-item svg { width: 18px; height: 18px; }
.nav-item:hover { color: #f5fbf8; background: rgba(255,255,255,.055); }
.nav-item.active { color: white; background: rgba(255,255,255,.105); box-shadow: inset 3px 0 #b8e985; }
.nav-item b { min-width: 22px; padding: 3px 6px; border-radius: 8px; color: #b8d2c7; background: rgba(255,255,255,.07); text-align: center; font-size: 9px; }
.sidebar-insight { position: relative; z-index: 1; margin-top: 28px; padding: 14px 12px; display: flex; gap: 10px; border: 1px solid rgba(198,232,216,.11); border-radius: 12px; background: rgba(5,30,23,.2); }
.insight-icon { display: grid; place-items: center; flex: 0 0 28px; height: 28px; border-radius: 8px; color: #c5ef91; background: rgba(185,233,133,.1); font-size: 11px; }
.sidebar-insight strong { font-size: 10px; font-weight: 700; }
.sidebar-insight p { margin: 5px 0 0; color: #81a697; font-size: 9px; line-height: 1.55; }
.sidebar-footer { position: relative; z-index: 1; margin-top: auto; }
.status-card { padding: 14px; border: 1px solid rgba(204, 236, 222, .11); border-radius: 12px; background: rgba(5, 29, 22, .28); }
.status-line { display: flex; gap: 8px; align-items: center; font-size: 9px; font-weight: 700; }
.status-line i, .llm-chip i, .composer-head i, .intro-badge i { flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: #a8df70; box-shadow: 0 0 0 4px rgba(168,223,112,.1); }
.status-line span { flex: 1; }
.status-line b { color: #a8df70; font-size: 7px; letter-spacing: .12em; }
.status-card p { margin: 8px 0 0 14px; color: #789e8f; font-size: 9px; }
.footer-meta { margin: 12px 3px 0; display: flex; justify-content: space-between; color: #638b7b; font-size: 8px; letter-spacing: .08em; }

main { min-width: 0; min-height: 100vh; }
.topbar { position: sticky; top: 0; z-index: 4; height: 70px; padding: 0 clamp(24px, 4vw, 62px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(222,229,225,.85); background: rgba(250, 251, 250, .84); backdrop-filter: blur(16px); }
.breadcrumb { display: flex; align-items: center; gap: 9px; color: #94a099; font-size: 10px; }
.breadcrumb b { color: #c6cdca; font-weight: 400; }.breadcrumb strong { color: #46564e; font-weight: 600; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.icon-button { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 9px; color: #829088; background: rgba(255,255,255,.8); font-size: 11px; font-weight: 700; }
.llm-chip { height: 32px; padding: 0 11px; display: flex; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 9px; color: #53635a; background: rgba(255,255,255,.82); font-size: 9px; font-weight: 600; }
.llm-chip.offline i, .status-line.offline i { background: #d39c55; box-shadow: 0 0 0 4px rgba(211,156,85,.1); }
.status-line.offline b { color: #d9a764; }
.view { display: none; min-height: calc(100vh - 70px); }
.view.active { display: block; animation: viewIn .25s ease both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(4px); } }

.chat-stage { width: min(920px, calc(100% - 56px)); min-height: calc(100vh - 70px); margin: auto; padding: clamp(46px, 8vh, 84px) 0 30px; display: flex; flex-direction: column; }
.intro { text-align: center; }
.intro.hidden { display: none; }
.intro-orbit { position: relative; width: 66px; height: 66px; margin: 0 auto 17px; display: grid; place-items: center; border: 1px solid #d9e8e1; border-radius: 50%; background: linear-gradient(145deg, #fbfdfc, #eef6f2); box-shadow: 0 12px 30px rgba(25,79,57,.08), inset 0 0 0 7px rgba(255,255,255,.55); }
.intro-orbit::after { content: ""; position: absolute; inset: 8px; border: 1px dashed #bbd3c8; border-radius: 50%; animation: orbit 16s linear infinite; }
.intro-orbit i { position: absolute; z-index: 1; width: 6px; height: 6px; border-radius: 50%; background: #69a389; }.intro-orbit i:first-child { top: 7px; left: 29px; }.intro-orbit i:nth-child(2) { right: 11px; bottom: 12px; width: 4px; height: 4px; background: #b4dd82; }
.intro-orbit span { z-index: 2; color: var(--forest-700); font-size: 17px; }
@keyframes orbit { to { transform: rotate(360deg); } }
.intro-badge { width: fit-content; margin: 0 auto 13px; display: flex; align-items: center; gap: 8px; color: var(--green); font-size: 8px; font-weight: 700; letter-spacing: .16em; }
.intro h1, .section-heading h1 { margin: 0; font-family: "DM Serif Display", Georgia, "Noto Serif KR", serif; font-weight: 400; letter-spacing: -.03em; }
.intro h1 { font-size: clamp(38px, 4.4vw, 55px); line-height: 1.06; }
.intro h1 em { color: var(--green); font-weight: 400; }
.intro p { margin: 16px 0 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.mobile-break { display: none; }
.suggestions { margin: clamp(35px, 5.2vh, 54px) 0 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.suggestions[hidden] { display: none; }
.suggestions button { min-width: 0; min-height: 79px; padding: 13px; display: grid; grid-template-columns: 36px minmax(0,1fr) 14px; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: rgba(255,255,255,.76); box-shadow: 0 1px 0 rgba(255,255,255,.8); text-align: left; transition: .18s ease; }
.suggestions button:hover { border-color: #c5d6ce; background: white; box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.suggestions button > span:nth-child(2) { min-width: 0; }.suggestions strong, .suggestions small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.suggestions strong { margin-bottom: 5px; font-size: 11px; }.suggestions small { color: #849088; font-size: 8px; }.suggestions button > b { color: #a7b1ac; font-size: 11px; }
.suggestion-icon, .stat-icon { display: grid; place-items: center; border-radius: 10px; font-size: 14px; }.suggestion-icon { width: 36px; height: 36px; }.mint { color: #397b5f; background: var(--mint); }.violet { color: #71629c; background: var(--violet); }.amber { color: #967034; background: var(--amber); }
.messages { width: min(790px, 100%); margin: 0 auto 24px; display: grid; gap: 20px; }
.messages:not(:empty) { margin-top: -10px; }
.message { min-width: 0; animation: messageIn .25s ease both; }
@keyframes messageIn { from { opacity: 0; transform: translateY(8px); } }
.message.user { max-width: 78%; justify-self: end; padding: 13px 16px; border-radius: 16px 16px 4px 16px; color: white; background: linear-gradient(145deg, var(--forest-800), var(--forest-950)); box-shadow: 0 8px 22px rgba(9,44,35,.13); font-size: 12px; line-height: 1.6; white-space: pre-wrap; }
.message.agent { padding: 0; display: grid; grid-template-columns: 32px minmax(0,1fr); gap: 11px; }
.agent-avatar { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #d5e5dd; border-radius: 10px; color: var(--forest-700); background: var(--mint); font-size: 11px; }
.agent-content { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 4px 16px 16px 16px; background: var(--surface); box-shadow: var(--shadow-sm); }
.agent-label { margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; color: var(--green); font-size: 8px; font-weight: 700; letter-spacing: .11em; }.agent-label b { padding: 3px 6px; border-radius: 6px; color: #74837b; background: #f1f5f3; font-size: 7px; letter-spacing: .06em; }
.message.agent .answer { margin: 0; color: #283831; font-size: 12px; line-height: 1.78; white-space: pre-wrap; }
.typing .agent-content { color: var(--muted); font-size: 11px; }.typing-dots { display: inline-flex; gap: 4px; margin-right: 8px; }.typing-dots i { width: 5px; height: 5px; border-radius: 50%; background: #6c9a86; animation: dot 1s infinite alternate; }.typing-dots i:nth-child(2) { animation-delay: .16s; }.typing-dots i:nth-child(3) { animation-delay: .32s; }
@keyframes dot { to { opacity: .25; transform: translateY(-2px); } }
.citations { margin-top: 14px; display: grid; gap: 7px; }
.citation { padding: 11px 12px; border: 1px solid #e2ece7; border-radius: 10px; background: #f5f9f7; color: #627168; font-size: 9px; line-height: 1.55; }
.citation-head { margin-bottom: 5px; display: flex; align-items: center; gap: 6px; }.citation-index { width: 17px; height: 17px; display: inline-grid; place-items: center; border-radius: 5px; color: white; background: var(--green); font-size: 8px; }.citation strong { color: #345344; font-size: 9px; }.citation em { margin-left: auto; color: #87938d; font-style: normal; }.citation p { margin: 0; display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.message-meta { margin-top: 13px; padding-top: 11px; display: flex; justify-content: space-between; border-top: 1px solid #edf1ef; color: #909a95; font-size: 8px; }.trace { display: flex; align-items: center; gap: 5px; }.trace i { width: 3px; height: 3px; border-radius: 50%; background: #9db1a7; }
.composer-wrap { width: min(790px, 100%); margin: auto auto 0; }
.composer { padding: 11px 13px 9px; border: 1px solid #cedbd5; border-radius: 16px; background: rgba(255,255,255,.94); box-shadow: 0 16px 45px rgba(18,58,43,.1), 0 1px 0 #fff inset; transition: border-color .18s, box-shadow .18s; }
.composer:focus-within { border-color: #82ad99; box-shadow: 0 18px 48px rgba(18,58,43,.13), 0 0 0 3px rgba(43,125,93,.07); }
.composer-head { padding: 0 4px 7px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #edf1ef; color: #65756c; font-size: 8px; font-weight: 600; }.composer-head span { display: flex; gap: 7px; align-items: center; }.composer-head i { width: 5px; height: 5px; box-shadow: none; }.composer-head b { color: var(--green); font-size: 7px; letter-spacing: .08em; }
.composer-row { display: grid; grid-template-columns: minmax(0,1fr) 40px; align-items: end; gap: 8px; }
.composer textarea { min-height: 49px; max-height: 140px; padding: 15px 5px 7px; resize: none; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 12px; line-height: 1.55; }
.composer textarea::placeholder { color: #9da7a2; }
.composer-row > button { width: 39px; height: 39px; display: grid; place-items: center; border: 0; border-radius: 11px; color: white; background: linear-gradient(145deg, var(--forest-700), var(--forest-950)); box-shadow: 0 5px 12px rgba(13,56,44,.18); transition: .16s ease; }.composer-row > button:hover { transform: translateY(-1px); box-shadow: 0 7px 15px rgba(13,56,44,.24); }.composer-row > button:disabled { opacity: .42; transform: none; }.composer-row > button svg { width: 17px; height: 17px; }
.composer-foot { padding: 7px 4px 0; display: flex; justify-content: space-between; color: #9aa49f; font-size: 7px; }.composer-foot kbd { padding: 1px 3px; border: 1px solid #e1e6e3; border-radius: 3px; background: #f7f9f8; font: inherit; }.composer-foot span:last-child { color: #739082; }
.disclaimer { margin: 9px 0 0; color: #9aa39f; text-align: center; font-size: 7px; }

.document-page { width: min(1120px, calc(100% - 72px)); margin: auto; padding: 48px 0 70px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }.eyebrow { margin: 0 0 7px; color: var(--green); font-size: 8px; font-weight: 700; letter-spacing: .18em; }.section-heading h1 { font-size: 36px; }.section-heading > div > p:last-child { margin: 9px 0 0; color: var(--muted); font-size: 11px; }
.primary, .secondary { height: 40px; padding: 0 15px; border-radius: 10px; font-size: 10px; font-weight: 700; transition: .16s ease; }.primary { border: 1px solid var(--forest-900); color: white; background: var(--forest-900); box-shadow: 0 5px 14px rgba(13,56,44,.14); }.primary:hover { background: var(--forest-800); transform: translateY(-1px); }.primary span { margin-right: 4px; color: #c7ef9c; }.secondary { border: 1px solid var(--line-strong); color: var(--ink-soft); background: white; }.secondary:hover { border-color: #adbbb4; }
.stat-grid { margin-bottom: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }.stat-grid article { min-width: 0; height: 82px; padding: 15px; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.82); box-shadow: 0 1px 0 white inset; }.stat-icon { width: 42px; height: 42px; }.stat-grid small, .stat-grid strong { display: block; }.stat-grid small { margin-bottom: 4px; color: var(--muted); font-size: 8px; }.stat-grid strong { font-family: "DM Serif Display", Georgia, serif; font-size: 21px; font-weight: 400; }.stat-grid em { color: #a2aba6; font-size: 7px; font-style: normal; font-weight: 700; letter-spacing: .12em; }
.library-panel { min-height: 330px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.82); box-shadow: var(--shadow-sm); overflow: hidden; }.library-toolbar { min-height: 66px; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }.library-toolbar h2 { display: inline; margin: 0 9px 0 0; font-size: 12px; }.library-toolbar > div span { color: #929d97; font-size: 8px; }.search-box { width: 210px; height: 34px; padding: 0 10px; display: flex; gap: 7px; align-items: center; border: 1px solid var(--line); border-radius: 9px; background: #f9faf9; }.search-box svg { width: 14px; height: 14px; color: #91a099; }.search-box input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; font-size: 9px; }.search-box input::placeholder { color: #a1aaa5; }
.document-grid { padding: 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 11px; }.document-card { min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: white; transition: .18s ease; }.document-card:hover { border-color: #c7d5ce; box-shadow: 0 8px 24px rgba(15,53,39,.07); transform: translateY(-2px); }.document-card-head { display: flex; align-items: start; justify-content: space-between; }.doc-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: var(--green); background: var(--mint); font-size: 13px; }.delete-doc { width: 27px; height: 27px; border: 0; border-radius: 7px; color: #a0aaa5; background: transparent; font-size: 14px; }.delete-doc:hover { color: var(--danger); background: #fbefef; }.document-card h3 { margin: 15px 0 5px; overflow: hidden; color: #2d3c35; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.document-card > p { height: 28px; margin: 0; overflow: hidden; color: var(--muted); font-size: 8px; line-height: 1.65; overflow-wrap: anywhere; }.doc-footer { margin-top: 13px; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #edf1ef; color: #919b96; font-size: 7px; }.doc-footer b { padding: 3px 6px; border-radius: 5px; color: #4b7f67; background: #edf6f1; font-size: 7px; }
.empty-state { display: none; padding: 66px 20px; text-align: center; color: var(--muted); }.empty-state.visible { display: block; }.empty-icon { width: 46px; height: 46px; margin: auto; display: grid; place-items: center; border: 1px solid #dce6e1; border-radius: 14px; color: var(--green); background: var(--mint); font-size: 18px; }.empty-state h3 { margin: 14px 0 6px; color: var(--ink); font-size: 12px; }.empty-state p { margin: 0; font-size: 9px; line-height: 1.65; }.empty-state .secondary { margin-top: 17px; }

dialog { width: min(650px, calc(100vw - 32px)); max-height: calc(100vh - 40px); padding: 0; border: 0; border-radius: 17px; color: var(--ink); background: white; box-shadow: var(--shadow-lg); overflow-y: auto; } dialog::backdrop { background: rgba(6,29,22,.68); backdrop-filter: blur(5px); } #upload-form { padding: 28px; }.dialog-heading { display: flex; align-items: start; justify-content: space-between; margin-bottom: 22px; }.dialog-heading h2 { margin: 0; font: 400 27px "DM Serif Display", Georgia, serif; }.dialog-heading p:last-child { margin: 6px 0 0; color: var(--muted); font-size: 9px; }.dialog-heading > button { width: 30px; height: 30px; border: 0; border-radius: 8px; color: #84908a; background: #f3f6f4; font-size: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } #upload-form label { display: block; color: #495850; font-size: 9px; font-weight: 700; } #upload-form label > span { color: var(--danger); } #upload-form input[type="text"], #upload-form input:not([type]), #document-title, #document-source, #document-content { width: 100%; margin-top: 7px; padding: 10px 11px; border: 1px solid var(--line-strong); border-radius: 9px; outline: 0; color: var(--ink); background: #fbfcfb; font-size: 10px; } #document-title:focus, #document-source:focus, #document-content:focus { border-color: #82ad99; box-shadow: 0 0 0 3px rgba(43,125,93,.07); }
.drop-zone { position: relative; height: 102px; margin: 16px 0; display: flex !important; flex-direction: column; align-items: center; justify-content: center; border: 1px dashed #b9c9c1; border-radius: 11px; background: #f7faf8; transition: .16s ease; }.drop-zone:hover, .drop-zone.dragover { border-color: var(--green); background: #f0f7f3; }.drop-zone input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }.upload-icon { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; color: var(--green) !important; background: var(--mint); font-size: 15px; }.drop-zone strong { margin: 7px 0 3px; color: #46564e; font-size: 9px; }.drop-zone small { color: #929d97; font-size: 7px; font-weight: 400; }.content-label { position: relative; }.content-label > small { position: absolute; right: 10px; bottom: 9px; color: #9aa49f; font-size: 7px; font-weight: 400; }.content-label > small b { font-weight: 500; } #document-content { min-height: 135px; padding-bottom: 26px; resize: vertical; line-height: 1.55; }.dialog-actions { margin-top: 21px; padding-top: 17px; display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--line); }
#toast { position: fixed; right: 22px; bottom: 22px; z-index: 20; min-width: 230px; padding: 12px 14px; display: flex; gap: 10px; align-items: center; border: 1px solid rgba(255,255,255,.1); border-radius: 11px; color: white; background: #133d30; box-shadow: 0 14px 36px rgba(0,0,0,.2); opacity: 0; transform: translateY(12px); pointer-events: none; transition: .22s ease; } #toast.visible { opacity: 1; transform: translateY(0); } #toast > span { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; color: #163d31; background: #b9e986; font-size: 9px; font-weight: 800; } #toast p { margin: 0; font-size: 9px; }
#toast.error { background: #643333; } #toast.error > span { color: #643333; background: #ffd0c9; }

@media (max-width: 920px) {
  .app-shell { grid-template-columns: 78px minmax(0,1fr); }.sidebar { padding: 25px 12px 18px; align-items: center; }.brand { margin: 0 0 27px; }.brand-copy, .new-chat > span:nth-child(2), .new-chat kbd, .nav-label, .nav-item span, .nav-item b, .sidebar-insight, .status-card, .footer-meta { display: none; }.new-chat { width: 44px; grid-template-columns: 1fr; text-align: center; }.new-chat > span:first-child { text-align: center; }.nav-item { width: 44px; grid-template-columns: 1fr; place-items: center; padding: 0; }.stat-grid article { grid-template-columns: 38px 1fr; }.stat-grid em { display: none; }.stat-icon { width: 38px; height: 38px; }
}

@media (max-width: 680px) {
  .app-shell { display: block; }.sidebar { position: fixed; top: auto; right: 0; bottom: 0; left: 0; z-index: 10; width: 100%; height: 68px; padding: 8px 14px calc(8px + env(safe-area-inset-bottom)); display: block; background: rgba(9,44,35,.96); backdrop-filter: blur(14px); }.sidebar::after, .brand, .new-chat, .sidebar-footer { display: none; } nav { grid-template-columns: 1fr 1fr; gap: 8px; }.nav-item { width: 100%; height: 48px; grid-template-columns: 20px auto; justify-content: center; gap: 8px; }.nav-item span { display: block; }.nav-item.active { box-shadow: none; background: rgba(255,255,255,.105); }.topbar { position: static; height: 61px; padding: 0 17px; }.breadcrumb span, .breadcrumb b, .icon-button { display: none; }.llm-chip { height: 29px; }.view { min-height: calc(100vh - 61px); padding-bottom: 76px; }.chat-stage { width: calc(100% - 28px); min-height: calc(100vh - 137px); padding: 39px 0 18px; }.intro-orbit { width: 58px; height: 58px; }.intro h1 { font-size: 36px; }.intro p { font-size: 11px; }.mobile-break { display: block; }.suggestions { margin: 32px 0 16px; grid-template-columns: 1fr; gap: 8px; }.suggestions button { min-height: 64px; }.message.user { max-width: 89%; }.message.agent { grid-template-columns: 27px minmax(0,1fr); gap: 8px; }.agent-avatar { width: 27px; height: 27px; border-radius: 8px; }.agent-content { padding: 15px; }.composer { border-radius: 14px; }.composer-head { display: none; }.composer textarea { min-height: 52px; padding-top: 13px; }.composer-foot span:first-child { display: none; }.composer-foot { justify-content: flex-end; }.disclaimer { line-height: 1.5; }.document-page { width: calc(100% - 28px); padding: 30px 0; }.section-heading { align-items: start; flex-direction: column; gap: 18px; }.section-heading h1 { font-size: 32px; }.section-heading .primary { width: 100%; }.stat-grid { grid-template-columns: 1fr 1fr; }.stat-grid article { height: 72px; }.stat-grid article:last-child { grid-column: 1 / -1; }.library-toolbar { align-items: start; flex-direction: column; gap: 11px; }.search-box { width: 100%; }.document-grid { grid-template-columns: 1fr; }.form-grid { grid-template-columns: 1fr; gap: 12px; } dialog { max-height: calc(100vh - 20px); } #upload-form { padding: 22px 18px; } #toast { right: 14px; bottom: 82px; left: 14px; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
