@font-face { font-family: Geist; src: url('assets/Geist-Variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
:root { --paper: #fff; --ink: #171717; --body: #404040; --muted: #737373; --line: #e5e5e5; --soft: #f5f5f5; --blue: #0d75ff; --success: #00a171; --ease: cubic-bezier(.22,1,.36,1); color: var(--ink); background: #fafafa; font-family: Geist,Arial,sans-serif; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; }
h1,h2,h3,p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
button:focus-visible,.stage:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
[hidden] { display: none !important; }
svg { width: 100%; height: 100%; display: block; }
.stage { width: 100%; aspect-ratio: 16 / 9; container-type: inline-size; background: var(--paper); border: 1px solid #dedede; border-radius: 8px; overflow: hidden; outline: none; }
.app-header { height: 4.0625cqw; display: flex; align-items: center; gap: 1.25cqw; padding: 0 1.09375cqw; background: var(--soft); border-bottom: 1px solid var(--line); font-size: 1.015625cqw; }
.workspace { display: flex; align-items: center; gap: .78125cqw; width: 17.1cqw; flex-shrink: 0; font-weight: 500; }
.symbol { width: 1.5625cqw; height: 1.5625cqw; object-fit: cover; object-position: left; flex-shrink: 0; }
.workspace-slash,.breadcrumb-slash { color: #a3a3a3; }
.workspace-chevron { color: var(--muted); margin-left: auto; }
.breadcrumb { display: flex; align-items: center; gap: .875cqw; color: var(--muted); }
.breadcrumb strong { font-weight: 500; color: var(--ink); }
.header-status { display: flex; align-items: center; gap: .546875cqw; margin-left: auto; font-size: 1.015625cqw; color: var(--muted); }
.status-dot { width: .46875cqw; height: .46875cqw; border-radius: 50%; background: var(--blue); }
.stage[data-step='5'] .status-dot { background: var(--success); }
.workspace-body { height: calc(100% - 4.0625cqw); display: grid; grid-template-columns: 4.0625cqw 15.15625cqw minmax(0,1fr) 35cqw; }
.nav-rail { display: flex; align-items: center; flex-direction: column; gap: .546875cqw; padding: .9375cqw .46875cqw; background: var(--soft); border-right: 1px solid var(--line); }
.rail-icon { display: grid; place-items: center; padding: .78125cqw; width: 2.8125cqw; height: 2.8125cqw; color: #626262; border-radius: 6px; }
.rail-icon.selected { color: var(--ink); background: #e0e0e0; }
.rail-bottom { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: .78125cqw; }
.account { display: grid; place-items: center; height: 2.1875cqw; width: 2.1875cqw; background: #e0e0e0; border-radius: 50%; font-size: .9375cqw; color: #525252; }
.investigations { border-right: 1px solid var(--line); padding: 1.09375cqw .78125cqw; background: #fbfbfb; }
.list-heading { display: flex; align-items: center; justify-content: space-between; font-size: 1.015625cqw; font-weight: 500; padding: 0 .3125cqw; }
.list-heading>span:last-child { width: 1.09375cqw; height: 1.09375cqw; color: var(--muted); }
.search-field { display: flex; align-items: center; gap: .546875cqw; color: var(--muted); font-size: .9375cqw; border: 1px solid var(--line); border-radius: 6px; margin-top: 1.25cqw; padding: .546875cqw .625cqw; background: var(--paper); }
.search-field>span:first-child { width: 1.09375cqw; height: 1.09375cqw; }
.list-label { color: var(--muted); font-size: .859375cqw; margin: 1.5625cqw .46875cqw .625cqw; }
.selected-ticket { display: block; width: 100%; text-align: left; border: 1px solid #dedede; background: #ededed; border-radius: 6px; padding: .9375cqw .78125cqw; }
.list-ticket-id { display: flex; align-items: center; gap: .46875cqw; font-size: .859375cqw; color: #525252; }
.list-dot { width: .390625cqw; height: .390625cqw; background: var(--blue); border-radius: 50%; }
.selected-ticket strong { display: block; font-size: 1.09375cqw; font-weight: 500; line-height: 1.35; margin-top: .625cqw; }
.list-ticket-status { display: block; font-size: .859375cqw; margin-top: .9375cqw; color: var(--muted); }
.list-empty { font-size: .9375cqw; color: var(--muted); padding: 1.25cqw .46875cqw; }
.older-label { margin-top: 2.1875cqw; }
.older-ticket { padding: .78125cqw .46875cqw; }
.older-ticket>span { display: block; font-size: 1.015625cqw; color: #525252; }
.older-ticket small { display: block; font-size: .859375cqw; color: var(--muted); margin-top: .46875cqw; }
.conversation { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--paper); }
.conversation-content { flex: 1; min-height: 0; overflow: auto; padding: 1.875cqw 2.1875cqw 1.25cqw; scrollbar-width: thin; }
.linked-ticket { border-bottom: 1px solid var(--line); padding-bottom: 1.5625cqw; }
.text-link { border: 0; padding: 0; background: none; font-size: 1.015625cqw; color: var(--muted); }
.text-link>span { margin-left: .3125cqw; font-size: .9375cqw; }
.text-link:hover { color: var(--blue); }
.linked-ticket h2 { font-size: 1.875cqw; line-height: 1.25; font-weight: 550; letter-spacing: -.035em; margin-top: .78125cqw; max-width: 35cqw; }
.agent-byline { display: flex; gap: .625cqw; align-items: center; margin: 1.71875cqw 0 1.09375cqw; font-size: 1.09375cqw; }
.agent-byline strong { font-weight: 550; }
.agent-byline>span { margin-left: auto; font-size: .9375cqw; color: var(--muted); }
.check { display: flex; gap: .78125cqw; padding: .859375cqw 0; border-bottom: 1px solid #f0f0f0; }
.check-mark { width: 1.5625cqw; height: 1.5625cqw; margin-top: .15625cqw; flex-shrink: 0; color: var(--success); }
.check h3 { font-size: 1.40625cqw; font-weight: 450; line-height: 1.3; }
.check p { font-size: 1.015625cqw; color: var(--muted); margin-top: .46875cqw; line-height: 1.35; }
.working { display: flex; align-items: center; gap: .78125cqw; margin-top: 1.5625cqw; color: var(--muted); font-size: 1.25cqw; line-height: 1.4; }
.working-indicator { width: .546875cqw; height: .546875cqw; border-radius: 50%; background: var(--blue); flex-shrink: 0; }
.stage.playing .working-indicator { animation: pulse 1.2s ease-in-out infinite; }
.answer { margin-top: 1.5625cqw; }
.answer p { font-size: 1.484375cqw; line-height: 1.45; margin-top: .78125cqw; color: var(--body); }
.answer .finding { font-size: 1.640625cqw; color: var(--ink); font-weight: 500; line-height: 1.35; margin-top: 0; }
.answer .reply-prepared { font-size: 1.09375cqw; line-height: 1.4; color: var(--muted); margin-top: .9375cqw; }
.composer { margin: .46875cqw 2.1875cqw 1.5625cqw; border: 1px solid #dedede; border-radius: 10px; padding: .9375cqw 1.09375cqw .625cqw; color: #8c8c8c; font-size: 1.09375cqw; flex-shrink: 0; }
.composer>div { display: flex; align-items: center; justify-content: space-between; margin-top: .78125cqw; }
.composer [data-icon] { width: 1.171875cqw; height: 1.171875cqw; }
.send-placeholder { display: grid; place-items: center; width: 1.875cqw; height: 1.875cqw; border-radius: 6px; color: #fff; background: #b5b5b5; font-size: 1.40625cqw; }
.empty-workspace { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.empty-symbol { width: 2.5cqw; height: 2.5cqw; object-fit: cover; object-position: left; margin-bottom: 1.5625cqw; }
.empty-workspace h2 { font-size: 2.1875cqw; line-height: 1.3; letter-spacing: -.04em; font-weight: 500; }
.empty-workspace p { font-size: 1.25cqw; color: var(--muted); margin-top: 1.09375cqw; }
.evidence-pane { border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.evidence-header { height: 4.375cqw; padding: 0 1.5625cqw; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); flex-shrink: 0; font-size: 1.25cqw; }
.evidence-header strong { font-weight: 550; }
.evidence-header>span { color: var(--muted); font-size: 1.015625cqw; }
.evidence-scroll { flex: 1; min-height: 0; overflow: auto; padding: 0 1.5625cqw 1.5625cqw; scrollbar-width: thin; }
.evidence-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 32cqw; color: #8c8c8c; text-align: center; gap: 1.25cqw; font-size: 1.25cqw; line-height: 1.55; }
.evidence-empty [data-icon] { width: 2.1875cqw; height: 2.1875cqw; color: #a3a3a3; }
.source { padding: 1.09375cqw 0; border-bottom: 1px solid var(--line); }
.source-title { display: flex; align-items: flex-start; gap: .78125cqw; width: 100%; text-align: left; border: 0; background: none; padding: 0; }
.source-number { width: 1.5625cqw; height: 1.5625cqw; border-radius: 4px; background: var(--soft); color: #626262; display: grid; place-items: center; font-size: .9375cqw; flex-shrink: 0; line-height: 1; }
.source-title strong { font-size: 1.25cqw; line-height: 1.3; font-weight: 500; }
.source-reference { display: block; font-size: .9375cqw; line-height: 1.5; color: var(--muted); margin-top: .3125cqw; }
.source-description { font-size: 1.25cqw; line-height: 1.45; margin-top: .9375cqw; color: var(--body); }
.error-quote { display: inline-block; font-size: 1.171875cqw; color: var(--ink); background: var(--soft); padding: .546875cqw .78125cqw; border-radius: 4px; margin-top: .9375cqw; }
.source-code { background: #f8f8f8; border: 1px solid var(--line); border-radius: 6px; font: 1.015625cqw/1.7 Monaco,Consolas,monospace; letter-spacing: -.035em; padding: .78125cqw .625cqw; margin: .9375cqw 0 0; overflow: auto; }
.code-line { display: flex; white-space: pre; }
.line-number { flex-shrink: 0; width: 2.03125cqw; color: #a3a3a3; user-select: none; }
.code-line:nth-child(4)>span:last-child { color: var(--ink); font-weight: 600; }
.stage[data-step='5'] .source { padding: .9375cqw 0; }
.stage[data-step='5'] .source-body { display: none; }
.stage[data-step='5'] .source-title strong { font-size: 1.09375cqw; }
.stage[data-step='5'] .source-reference { font-size: .859375cqw; margin-top: .15625cqw; }
.reply-draft { padding-top: 1.5625cqw; }
.draft-heading { display: flex; align-items: center; justify-content: space-between; }
.draft-heading h3 { font-size: 1.40625cqw; font-weight: 550; }
.draft-heading>span { font-size: .9375cqw; color: var(--muted); }
.draft-ticket { margin-top: .625cqw; color: var(--muted); font-size: 1.015625cqw; }
.draft-ticket strong { font-weight: 450; color: var(--body); }
.draft-copy { font-size: 1.40625cqw; line-height: 1.5; margin-top: 1.09375cqw; padding: 1.25cqw; border: 1px solid #dedede; border-radius: 8px; }
.draft-actions { margin-top: 1.09375cqw; }
.post-comment { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); border-radius: 6px; font-size: 1.09375cqw; font-weight: 500; padding: .78125cqw 1.09375cqw; width: 100%; }
.post-comment:hover { background: #333; }
.post-comment:disabled { background: var(--soft); border-color: var(--line); color: #525252; }
#post-result { display: block; font-size: .9375cqw; margin-top: .78125cqw; color: var(--muted); }
dialog { width: min(650px,calc(100vw - 60px)); max-height: calc(100dvh - 80px); padding: 32px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--paper); font: 16px/1.55 Geist,Arial,sans-serif; }
dialog::backdrop { background: rgb(0 0 0 / .2); }
#detail-close { position: absolute; top: 12px; right: 15px; background: none; border: 0; font-size: 25px; color: var(--muted); }
dialog h2 { font-size: 24px; line-height: 1.25; font-weight: 500; letter-spacing: -.03em; padding-right: 20px; }
dialog .detail-reference { font-size: 13px; color: var(--muted); margin: 12px 0 20px; }
dialog p { margin-top: 16px; }
dialog pre { font: 13px/1.8 Monaco,monospace; white-space: pre-wrap; border: 1px solid var(--line); background: var(--soft); padding: 16px; border-radius: 6px; margin-top: 20px; }
.sr-only { position: absolute; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.reveal { animation: reveal 380ms var(--ease) both; }
.motion-suspended .reveal { animation-play-state: paused; }
@keyframes reveal { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%,100% { opacity: .4; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation: none !important; transition: none !important; } }

/* Website framing retains the full app at every inline width. */
html, body, .demo-shell { width: 100%; height: 100%; margin: 0; overflow: hidden; }
.stage { height: 100%; aspect-ratio: auto; border: 0; border-radius: 0; }
.investigation-scope { font-size: 1.25cqw; line-height: 1.4; color: var(--body); margin-top: .9375cqw; }
body.reduced-motion *, body.reduced-motion *::before, body.reduced-motion *::after { animation: none !important; transition: none !important; }
