:root { color-scheme: light; font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #263247; background: #f7f8fb; font-synthesis: none; --accent: #435cd2; --border: #e5e8f0; --muted: #778196; }
* { box-sizing: border-box; } body { margin: 0; font-size: 14px; line-height: 1.5; } button, input, select, textarea { font: inherit; } button, a, input, select, textarea, [contenteditable] { -webkit-tap-highlight-color: transparent; } button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--border); border-radius: 9px; background: #fff; color: inherit; cursor: pointer; font-weight: 550; } button:hover { background: #f1f3f9; } button:disabled { cursor: wait; opacity: .55; } a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; } svg { width: 18px; height: 18px; flex-shrink: 0; } button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #8798ed; outline-offset: 3px; } input:focus, textarea:focus, select:focus, [contenteditable]:focus { outline: 2px solid #8d9de7; outline-offset: 1px; } input, select, textarea { width: 100%; border: 1px solid #dce1eb; border-radius: 8px; padding: 10px 12px; background: #fff; color: inherit; } textarea { resize: vertical; min-height: 65px; } h1, h2, h3, p { margin: 0; } h1 { font-size: 23px; font-weight: 650; letter-spacing: -.6px; line-height: 1.3; } h2 { font-size: 17px; letter-spacing: -.25px; } h3 { font-size: 13px; } p + p { margin-top: 10px; } .primary { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 2px 4px #3449aa15; } .primary:hover { background: #334bbe; } .icon-button { display: inline-flex; align-items: center; justify-content: center; width: 35px; height: 35px; padding: 7px; border: 1px solid transparent; border-radius: 8px; color: #68748c; background: transparent; } .icon-button:hover { background: #eef0f8; } .danger { color: #b54550; } .subtle { border-color: transparent; } .muted { color: var(--muted); } .fine-print { font-size: 11px; } .eyebrow { display: block; color: #828ba0; font-size: 10px; font-weight: 650; text-transform: uppercase; letter-spacing: 1.1px; } .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; } [hidden] { display: none !important; } .skip-link { position: fixed; top: -100px; left: 20px; padding: 12px; background: #fff; z-index: 100; } .skip-link:focus { top: 10px; }
.workspace-body { display: grid; grid-template-columns: 260px minmax(0,1fr); height: 100dvh; overflow: hidden; }
.sidebar { display: flex; flex-direction: column; gap: 16px; padding: 26px 18px 16px; background: #f4f5fa; border-right: 1px solid var(--border); min-height: 0; } .brand { display: flex; gap: 11px; align-items: center; color: #263247; font-size: 15px; font-weight: 650; margin-bottom: 14px; } .brand:hover { text-decoration: none; } .brand small { display: block; font-size: 11px; color: #8991a4; font-weight: 450; letter-spacing: .2px; } .brand-mark { display: grid; place-items: center; height: 34px; width: 34px; background: #435cd2; color: #fff; border-radius: 11px; font-weight: 650; } .new-request { width: 100%; } .search { position: relative; display: block; } .search svg { position: absolute; left: 11px; top: 11px; width: 16px; color: #949db0; } .search input { padding-left: 34px; background: #ffffffb0; border-color: #e4e7ef; font-size: 12px; } .queue-tools { display: flex; gap: 8px; align-items: center; margin-top: -7px; } .queue-tools select { background: transparent; border: none; font-size: 12px; padding: 6px 0; } #result-count { margin: 0 6px -7px; } #requests { flex: 1; overflow: auto; margin: 0 -6px; padding: 0 3px; min-height: 0; } .case-link { display: flex; flex-direction: column; align-items: stretch; width: 100%; text-align: left; padding: 12px; gap: 5px; margin-bottom: 5px; background: transparent; border-color: transparent; font-size: 12px; font-weight: 400; } .case-link strong { font-weight: 550; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.5; } .case-link.selected { background: #fff; border-color: #e1e5f0; box-shadow: 0 3px 8px #1f356505; } .case-link.selected strong { color: #3e57be; } .case-link-meta { display: flex; align-items: center; justify-content: space-between; color: #8b94a5; font-size: 10px; } .status-dot { width: 6px; height: 6px; border-radius: 50%; background: #aab3c6; } .status-dot.reviewing { background: #5a78db; } .status-dot.needs_info { background: #d7a653; } .status-dot.completed { background: #64a88f; } .sidebar-footer { background: transparent; border: none; justify-content: flex-start; font-size: 12px; color: #718097; border-top: 1px solid var(--border); border-radius: 0; padding: 16px 6px 0; } .empty-list { padding: 20px 8px; color: var(--muted); font-size: 12px; }
#workspace { display: flex; flex-direction: column; min-width: 0; min-height: 0; outline: none; background: #fff; } .case-title { display: flex; justify-content: space-between; gap: 18px; padding: 26px 30px 20px; align-items: center; } .case-title .eyebrow { margin-bottom: 7px; } .header-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; } .status { display: inline-flex; white-space: nowrap; padding: 4px 9px; border-radius: 6px; font-size: 10px; font-weight: 600; background: #f0f2f7; color: #718099; } .status.reviewing, .status.submitted, .status.planned { background: #edf1fc; color: #5b73b9; } .status.ready, .status.completed { background: #eaf5ef; color: #47846b; } .status.needs_info { background: #fcf4e6; color: #aa8546; }
.progress-strip { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.2fr); gap: 24px; padding: 15px 30px; border-top: 1px solid #f0f2f6; border-bottom: 1px solid var(--border); background: #fcfcfe; font-size: 12px; } .progress-strip:empty { display: none; } .progress-strip p { margin-top: 5px; overflow-wrap: anywhere; white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } .progress-meta { display: block; margin-top: 5px; color: #8b94a5; font-size: 10px; } .case-layout { display: grid; grid-template-columns: minmax(0,1fr) 310px; flex: 1; min-height: 0; } .conversation-column { display: flex; flex-direction: column; min-width: 0; min-height: 0; position: relative; } #timeline { overflow: auto; flex: 1; padding: 26px 30px; scroll-padding: 24px; outline-offset: -3px; } .conversation { max-width: 820px; margin: auto; display: flex; flex-direction: column; gap: 20px; } .conversation-entry { padding: 17px 20px; border: 1px solid var(--border); border-radius: 13px; overflow-wrap: anywhere; background: #fff; } .conversation-entry.requester { margin-left: 25px; background: #f5f7fe; border-color: #e9edf9; } .conversation-entry.agent { margin-right: 25px; } .conversation-entry.system { border: none; background: transparent; padding: 2px 6px; font-size: 11px; color: #8d96a7; } .conversation-entry.system .history-meta { font-size: 10px; } .history-meta { display: flex; gap: 10px; align-items: baseline; justify-content: space-between; font-size: 11px; margin-bottom: 5px; } .history-meta strong { color: #52617b; font-weight: 600; } .history-meta time { font-size: 10px; color: #969eaf; } .message-kind { font-size: 10px; color: #8791a4; margin-bottom: 9px; } .message-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; font-size: 13px; } .message-image { margin: 14px 0; } .message-image img { display: block; max-width: 100%; max-height: 420px; object-fit: contain; border-radius: 8px; border: 1px solid var(--border); } .message-image figcaption { color: #8b94a5; font-size: 10px; margin-top: 6px; }
#composer { padding: 12px 30px 24px; background: #fff; } #reply-form { max-width: 820px; margin: auto; border: 1px solid #dce2ef; border-radius: 13px; padding: 13px 14px 9px; box-shadow: 0 4px 20px #26365906; } .composer-tools { display: flex; gap: 8px; align-items: center; border-top: 1px solid #f2f3f7; padding-top: 7px; } .composer-tools .primary { margin-left: auto; padding: 7px 11px; } .composer-closed { color: var(--muted); text-align: center; padding: 12px; font-size: 12px; } .description-editor { min-height: 160px; max-height: 380px; overflow-y: auto; white-space: pre-wrap; overflow-wrap: anywhere; border: 1px solid #dce1eb; border-radius: 8px; padding: 12px; background: #fff; } .description-editor:empty:before { content: attr(data-placeholder); color: #a1a9b8; pointer-events: none; } .reply-editor { border: none; min-height: 72px; max-height: 210px; padding: 10px 2px; font-size: 13px; border-radius: 3px; margin: 4px 0; } .description-editor figure { margin: 10px 0; display: inline-block; max-width: 100%; position: relative; white-space: normal; } .description-editor img { max-width: 100%; max-height: 260px; display: block; border-radius: 7px; } .description-editor figure button { position: absolute; right: 5px; top: 5px; background: #fff; box-shadow: 0 2px 7px #0002; } .description-editor figcaption { font-size: 11px; color: var(--muted); } .new-updates { position: absolute; bottom: 185px; left: 50%; transform: translateX(-50%); box-shadow: 0 3px 15px #23386b1a; background: #edf1ff; color: #4059c4; font-size: 12px; z-index: 1; }
#understanding { border-left: 1px solid var(--border); overflow-y: auto; padding: 24px; background: #fdfdfe; font-size: 12px; } .panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 24px; } .panel-heading .eyebrow { font-size: 9px; margin-bottom: 4px; } .understanding-section { margin-bottom: 22px; } .understanding-section h3 { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 9px; color: #68758e; font-size: 11px; } .understanding-section .message-text { font-size: 12px; } .ownership { color: #67867b; font-weight: 400; font-size: 9px; background: #eff6f2; padding: 2px 5px; border-radius: 4px; } .requirements { padding-left: 17px; margin: 0; } .requirements li { margin-bottom: 12px; padding-left: 3px; } .requirements li::marker { color: #9aa6c1; } .requirements strong { font-size: 12px; font-weight: 550; } .requirements p { color: #8892a4; font-size: 11px; margin-top: 4px; } .question { margin-bottom: 12px; } .question strong { font-size: 12px; font-weight: 550; } .question p { margin-top: 5px; font-size: 11px; } .scope-note { margin-top: 25px; padding-top: 15px; border-top: 1px solid var(--border); color: #939caf; font-size: 10px; } .small-banner { padding: 10px 12px; background: #f0f3fb; border: 1px solid #e5eaf7; border-radius: 7px; margin-bottom: 16px; font-size: 11px; color: #6b7ba0; } details { margin-top: 14px; } summary { cursor: pointer; color: #687991; font-size: 12px; } .prior-review { padding: 14px 0; border-bottom: 1px solid var(--border); } .suggestions { padding: 12px; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 16px; } .suggestions h3 { margin: 10px 0 5px; } .ownership-control { display: flex; gap: 8px; align-items: center; margin: 8px 0; font-size: 11px; color: #7f8aa1; } .ownership-control input { width: auto; } #understanding-form section { margin-bottom: 22px; } #understanding-form h3 { margin-bottom: 8px; } #understanding-form textarea { font-size: 12px; padding: 8px; } #understanding-form button { font-size: 11px; padding: 7px 9px; } .understanding-row { min-width: 0; padding: 10px; margin: 8px 0; border: 1px solid var(--border); border-radius: 8px; } .understanding-row legend { max-width: 160px; overflow: hidden; text-overflow: ellipsis; color: #9aa3b4; font-size: 10px; } .answer-panel { border-top: 1px solid var(--border); padding-top: 14px; } .conflict { border: 1px solid #e6c37f; border-radius: 8px; background: #fffbf2; padding: 12px; margin: 12px 0; font-size: 12px; } .conflict details { max-height: 300px; overflow: auto; }
.welcome { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 18px; padding: 30px 10px; } .welcome h1 { font-size: 32px; color: #33415d; } .welcome p { color: #929caf; font-size: 13px; line-height: 1.8; } .welcome .primary { margin-top: 12px; } .notice { padding: 11px 18px; background: #eff5f3; color: #4d7f6c; font-size: 12px; margin: 8px 20px; border-radius: 8px; flex-shrink: 0; } .error { color: #a34c57; background: #fff1f2; } dialog { border: 1px solid var(--border); border-radius: 16px; padding: 26px; width: min(680px, calc(100% - 30px)); max-height: 90dvh; color: inherit; box-shadow: 0 25px 100px #26324730; } dialog::backdrop { background: #25314b55; backdrop-filter: blur(3px); } .editor-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; } .text-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 15px; } .text-field > span, .description-heading label { color: #76829a; font-size: 12px; } .description-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 5px; } .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; } .form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; flex-wrap: wrap; } .form-actions .danger { margin-right: auto; } .release-panel { margin: 0 30px 15px; padding: 10px 14px; border: 1px solid var(--border); background: #fafbff; border-radius: 8px; font-size: 12px; } .release-version { padding: 12px 0; border-bottom: 1px solid var(--border); } .artifact-hash { font-size: 10px; overflow-wrap: anywhere; color: #818da3; } #release-catalog h2 { margin-bottom: 12px; } #release-catalog p { margin-bottom: 10px; font-size: 12px; } .mobile-toolbar { display: none; } body:not(.workspace-body) main { margin: 10vh auto; max-width: 480px; padding: 30px; } #login-form { display: grid; gap: 20px; margin-top: 30px; } #login-form label { display: grid; gap: 8px; }
@media (min-width: 1600px) { .case-layout { grid-template-columns: minmax(0,1fr) 360px; } #understanding { padding: 28px; } }
@media (max-width: 1150px) { .workspace-body { grid-template-columns: 225px minmax(0,1fr); } .case-layout { grid-template-columns: minmax(0,1fr) 270px; } #understanding { padding: 20px 16px; } .case-title, .progress-strip { padding-left: 22px; padding-right: 22px; } #timeline { padding: 22px; } #composer { padding: 10px 22px 20px; } .header-actions { flex-wrap: wrap; justify-content: flex-end; } .case-title h1 { font-size: 20px; } .composer-tools .fine-print { display: none; } }
@media (max-width: 930px) { .case-layout { grid-template-columns: minmax(0,1fr); } #understanding { display: none; } .mobile-toolbar { display: flex; justify-content: flex-end; padding: 10px 18px 0; } .mobile-toolbar button { font-size: 11px; padding: 6px 10px; } #toggle-sidebar { display: none; } .show-understanding #understanding { display: block; } .show-understanding .conversation-column { display: none; } .case-title { padding-top: 16px; } }
@media (max-width: 650px) { .workspace-body { grid-template-columns: minmax(0,1fr); } .sidebar { display: none; position: fixed; inset: 53px 0 0; z-index: 4; } .show-sidebar .sidebar { display: flex; } .mobile-toolbar { display: flex; justify-content: space-between; flex-shrink: 0; height: 53px; padding: 9px 14px; border-bottom: 1px solid var(--border); } #toggle-sidebar { display: inline-flex; } .case-title { padding: 15px 16px; align-items: flex-start; gap: 10px; } .case-title h1 { font-size: 18px; } .case-title .eyebrow { font-size: 9px; } .header-actions { max-width: 110px; gap: 3px; } .header-actions .status { font-size: 9px; } .progress-strip { padding: 10px 16px; gap: 12px; font-size: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); } .progress-strip > div { min-width: 0; } .progress-strip .eyebrow { font-size: 9px; letter-spacing: .6px; } .progress-strip p { -webkit-line-clamp: 2; margin-top: 3px; } .progress-meta { font-size: 9px; } #timeline { padding: 18px 12px; } .conversation { gap: 15px; } .conversation-entry { padding: 13px; border-radius: 11px; } .conversation-entry.requester { margin-left: 12px; } .conversation-entry.agent { margin-right: 12px; } .history-meta { flex-wrap: wrap; gap: 2px 8px; } #composer { padding: 8px 12px max(12px,env(safe-area-inset-bottom)); } #reply-form { padding: 9px 11px 7px; } .reply-editor { min-height: 50px; max-height: 135px; } .welcome h1 { font-size: 27px; } .welcome .eyebrow { font-size: 8px; } .form-grid { grid-template-columns: 1fr; gap: 0; } dialog { padding: 20px; } .release-panel { margin: 0 16px 10px; font-size: 11px; } .notice { margin: 5px 12px; } .new-updates { bottom: 160px; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
/* Approved conversation workspace. Theme names preserve the reviewed inverse palette. */
:root{--chat:#000;--ink:#e1ebf2;--muted:#afc3d1;--surface:#1d2a34;--line:#405665;--user:#202c44;--plate:rgba(0,0,0,.75);--green:#13281d;--green-ink:#ddf5e3;color-scheme:dark}html[data-theme=dark]{--chat:#fff;--ink:#294658;--muted:#526d80;--surface:#f3f6f8;--line:#b9cbd4;--user:#d9e0f4;--plate:rgba(255,255,255,.75);--green:#e5f5e9;--green-ink:#214e38;color-scheme:light}html,body{height:100%;overflow:hidden}.workspace-body{position:fixed;inset:0;display:grid;grid-template-columns:232px minmax(0,1fr);background:var(--chat);color:var(--ink)}button,input,textarea,select{color:inherit}button:focus-visible,a:focus-visible{outline:2px solid #76ae98;outline-offset:2px}.muted,.fine-print{color:var(--muted)}.sidebar{display:grid;grid-template-columns:46px minmax(0,1fr);width:auto;padding:0;gap:0;background:var(--chat);color:var(--ink);border-right:1px solid var(--line);overflow:hidden}.chat-rail{display:flex;flex-direction:column;align-items:center;padding:19px 5px;border-right:1px solid var(--line)}.chat-rail button{width:34px;height:34px;padding:7px;background:var(--surface);border:0}.rail-avatar{margin-top:auto;font-size:9px;border-radius:50%;background:var(--surface);padding:8px}.chat-list{padding:21px 10px;overflow:auto;min-width:0}.chat-list h2{font-size:14px;margin:0 5px 15px}.new-request{background:transparent;border:0;padding:8px 5px;font-size:11px;margin-bottom:18px;justify-content:flex-start;gap:7px}.search{background:var(--surface);margin-bottom:8px}.search input{min-width:0;background:transparent;color:var(--ink)}.queue-tools{gap:4px}.queue-tools select{min-width:0;background:var(--surface);color:var(--ink);font-size:10px}.list-label{font-size:10px;font-weight:400;color:var(--muted);margin:20px 6px 7px}.case-link{display:flex;align-items:center;gap:7px;box-sizing:border-box;width:100%;height:25.5px;min-height:25.5px;padding:0 7px;margin:0;border:0;background:transparent;color:var(--ink);border-radius:7px}.case-link strong{font-size:11px;font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;min-width:0;line-height:18px}.case-link.selected{background:var(--surface);box-shadow:none;border:0}.indicator-slot{display:flex;align-items:center;justify-content:center;flex:0 0 13px;width:13px;height:13px}.waiting-indicator,.unread-indicator{width:7px;height:7px;border-radius:50%;background:#64bc8c}.unread-indicator{background:#8a99a5}.working-indicator{width:13px;height:13px;border-radius:50%;background:conic-gradient(currentColor 0deg var(--working-sweep),transparent var(--working-sweep) 360deg);mask:radial-gradient(farthest-side,transparent calc(100% - 1.5px),#000 0);animation:working-rotate 1.1s linear infinite,working-sweep 2s ease-in-out infinite alternate}@property --working-sweep{syntax:'<angle>';inherits:false;initial-value:60deg}@keyframes working-rotate{to{transform:rotate(360deg)}}@keyframes working-sweep{from{--working-sweep:60deg}to{--working-sweep:320deg}}@media(prefers-reduced-motion:reduce){.working-indicator{animation:working-rotate 3s linear infinite,working-sweep 4s ease-in-out infinite alternate!important}}
#workspace{position:relative;min-width:0;min-height:0;overflow:hidden;background:var(--chat);padding:0;display:block;--top-clearance:150px;--bottom-clearance:180px}#top-overlay{position:absolute;inset:0 0 auto;z-index:3;pointer-events:none;padding:24px 35px 0}#case-header{padding:0;border:0;background:transparent}.case-title{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.case-title>div:first-child{min-width:0}.case-title .breadcrumb,.case-title h1{display:block;width:fit-content;max-width:100%;background:var(--plate);border-radius:8px;padding-right:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0}.case-title .breadcrumb{font-size:10px;line-height:16px}.case-title h1{font-size:23px;line-height:32px;color:var(--ink)}.header-actions{display:flex;gap:7px;flex-wrap:nowrap;align-items:center;position:relative}.header-actions:before{content:'';position:absolute;inset:0 0 0 var(--badge-end,0px);background:var(--plate);border-radius:8px;z-index:-1}.header-actions>*{height:25.5px;box-sizing:border-box}.header-actions .status{font-size:10px;display:flex;align-items:center;white-space:nowrap;background:#183d2b;color:#c7ebd5;padding:0 8px}.header-actions .icon-button{height:25.5px;width:25.5px;min-width:25.5px;padding:4px;border:0;background:transparent;color:var(--ink);pointer-events:auto}.header-actions .icon-button svg{width:17.5px;height:17.5px}.progress-strip{display:flex;gap:12px;align-items:flex-start;padding:0;border:0;background:transparent}.progress-strip>div{padding:0 4px 0 0;background:var(--plate);border-radius:8px;max-width:55%;min-width:0}.progress-strip .eyebrow{display:none}.progress-strip p{font-size:10px;line-height:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0;color:var(--muted)}.progress-meta{font-size:9px;white-space:nowrap;color:var(--muted)}.progress-action{margin-left:auto}.case-layout,.conversation-column{display:block;height:100%;min-height:0;position:relative}.case-layout{grid-template-columns:1fr}#timeline{height:100%;overflow:auto;background:var(--chat);padding:calc(var(--top-clearance) + 30px) 28px var(--bottom-clearance);scroll-padding-top:var(--top-clearance);scroll-padding-bottom:var(--bottom-clearance)}.conversation{max-width:800px;margin:0 auto}.conversation-entry{max-width:none;width:auto;margin:0 40px 26px 0;padding:16px 19px;background:transparent;border:0;box-shadow:none;color:var(--ink);transform:translateX(var(--message-offset,0px))}.conversation-entry.requester{margin-left:100px;margin-right:0;background:var(--user);border-radius:13px 13px 3px 13px;color:var(--ink)}.history-meta{color:var(--muted);font-size:10px}.history-meta strong{color:var(--ink)}.message-text,.agent-detail p{font-size:13px;line-height:1.75;overflow-wrap:anywhere}.agent-detail summary{cursor:pointer;list-style:none}.agent-detail summary p{margin:8px 0}.detail-label{color:var(--muted);font-size:10px}.formal-detail{background:var(--surface);padding:14px;border-radius:8px;margin-top:12px}.formal-detail p{white-space:pre-wrap}.formal-detail pre,pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;font-size:11px}.message-kind{color:var(--muted)}#composer{position:absolute;inset:auto 0 0;z-index:3;background:transparent;border:0;box-shadow:none;padding:12px 28px 22px;pointer-events:none}#reply-form{max-width:750px;margin:0 auto;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:12px;pointer-events:auto}#reply-form .description-editor{background:transparent;color:var(--ink);border:0;min-height:48px}.composer-tools{align-items:center}.composer-tools .fine-print{font-size:9px}.inline-questions{background:var(--green);color:var(--green-ink);border:1px solid #6fac80;border-radius:10px;padding:18px;margin:20px 40px 26px 0}.inline-questions h2{font-size:14px;position:relative;overflow:hidden}.inline-questions h2:after{content:'';position:absolute;inset:0;background:linear-gradient(110deg,transparent 30%,#fff6 50%,transparent 70%);transform:translateX(-130%);animation:waiting-shine 5s ease-in-out infinite;pointer-events:none}@keyframes waiting-shine{0%,55%{transform:translateX(-130%)}85%,100%{transform:translateX(130%)}}.inline-question{margin-bottom:16px}.inline-question p{white-space:pre-wrap;font-size:12px}.inline-question textarea{background:var(--surface);color:var(--ink);border:1px solid var(--line)}.answer-suggestions{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0}.answer-suggestions button{font-size:10px;background:var(--surface);color:var(--ink)}.mobile-toolbar{position:absolute;right:10px;top:4px;z-index:5}.notice{position:absolute;bottom:170px;left:24px;right:24px;z-index:8}.new-updates{z-index:5}
#understanding-dialog{width:min(1000px,calc(100% - 36px));height:min(760px,calc(100dvh - 40px));padding:0;border-radius:14px;background:var(--surface);color:var(--ink);border:1px solid var(--line)}#understanding-dialog::backdrop{background:#0009}#understanding-dialog .editor-heading{padding:20px}#understanding{display:block!important;position:static;width:auto;max-width:none;border:0;padding:0;background:transparent;overflow:auto;height:calc(100% - 80px)}.understanding-tabs{display:flex;gap:5px;padding:10px 20px;position:sticky;top:0;background:var(--surface);z-index:1;overflow:auto}.understanding-tabs button{background:transparent;color:var(--muted);white-space:nowrap}.understanding-tabs [aria-current]{color:var(--ink);border-color:#78a892}.understanding-content{padding:18px 24px}.understanding-card{padding:16px;background:var(--chat);border:1px solid var(--line);border-radius:9px;margin-bottom:12px}.understanding-card header{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.understanding-card button{font-size:10px;padding:5px 8px;background:var(--surface);color:var(--ink)}.completion-label{font-size:10px;color:var(--muted);margin-left:auto}.component-value p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.7}.component-value .eyebrow{font-size:9px}.focused-component{margin-top:15px;border-top:1px solid var(--line);padding-top:14px}.focused-component textarea{background:var(--surface);color:var(--ink);border:1px solid var(--line)}.focused-component p{font-size:11px;color:var(--muted)}.component-conflict{padding:0 20px;color:var(--ink)}.component-conflict:empty{display:none}.ownership-control{margin:14px 0}.sidebar-footer{background:transparent;color:var(--muted);font-size:10px}.status-dot{display:none}
@media(max-width:900px){.workspace-body{grid-template-columns:232px minmax(0,1fr)}.case-title h1{font-size:18px}.header-actions{gap:3px}#top-overlay{padding-left:24px;padding-right:24px}.conversation-entry.requester{margin-left:50px}.conversation-entry{margin-right:20px}}@media(max-width:600px){.workspace-body{grid-template-columns:minmax(0,1fr)}.sidebar{display:none;position:fixed;inset:0;z-index:20}.show-sidebar .sidebar{display:grid}.chat-rail{padding-top:18px}.mobile-toolbar{display:flex}.mobile-toolbar button{font-size:9px;padding:3px;background:var(--surface);color:var(--ink)}#top-overlay{padding:32px 16px 0}.case-title{gap:8px}.case-title h1{font-size:16px}.header-actions .status{display:none}.header-actions{gap:2px}.progress-strip>div{max-width:50%}.progress-meta{display:none}#timeline{padding-left:15px;padding-right:15px}.conversation-entry{padding:12px 13px;margin-right:13px}.conversation-entry.requester{margin-left:42px;margin-right:0}.history-meta{flex-wrap:wrap}.inline-questions{margin-right:13px;padding:13px}#composer{padding:9px 13px max(12px,env(safe-area-inset-bottom))}.composer-tools .fine-print{display:none}#understanding-dialog{width:100%;height:100dvh;max-height:100dvh;margin:0;border-radius:0}.understanding-content{padding:14px}.understanding-tabs{padding:8px}.understanding-tabs button{font-size:11px;padding:7px}.welcome{padding-top:100px}}@media(prefers-reduced-motion:reduce){.inline-questions h2:after{animation:none}}
/* Readable row/control states and the approved light settings surface. */
.sidebar .case-link{flex-direction:row;justify-content:flex-start}.sidebar .case-link strong{display:block;flex:1;min-width:0;height:auto;line-height:18px;color:var(--ink)}.sidebar .case-link.selected strong{color:var(--ink)}.agent-detail summary p{color:var(--ink)}#understanding-dialog button{background:var(--chat);color:var(--ink);border-color:var(--line)}#understanding-dialog input,#understanding-dialog textarea{background:var(--chat);color:var(--ink)}
.case-title{padding:0}.header-actions{max-width:none}
.overview-shortcuts{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.understanding-content details>label{display:block;margin:8px 0}.discard-confirm{position:absolute;bottom:0;left:0;right:0;background:var(--surface);color:var(--ink);border-top:1px solid var(--line);padding:16px;display:flex;align-items:center;gap:10px;flex-wrap:wrap;z-index:5}.discard-confirm p{margin-right:auto}
@media(max-width:600px){.mobile-toolbar{height:auto;min-height:0;padding:0;border:0;background:transparent;top:4px}.mobile-toolbar button{height:20px;padding:2px 4px;font-size:9px}.mobile-toolbar button svg{width:12px;height:12px}.mobile-toolbar #toggle-understanding{display:none}}
@media(max-width:600px){#understanding-dialog{max-width:none}}

/* Case modals inherit the visible conversation palette. */
#editor,#understanding-dialog,#delete-dialog{background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:14px;box-shadow:0 24px 80px #0005;padding:0}#editor{width:min(760px,calc(100% - 36px));max-height:calc(100dvh - 40px);overflow:auto}#delete-dialog{width:min(520px,calc(100% - 36px));max-height:calc(100dvh - 40px)}#editor::backdrop,#understanding-dialog::backdrop,#delete-dialog::backdrop{background:#0009}#editor .editor-heading,#understanding-dialog .editor-heading,#delete-dialog .editor-heading{background:var(--surface);color:var(--ink);padding:20px 24px;border-bottom:1px solid var(--line);gap:16px}#editor h2,#understanding-dialog h2,#delete-dialog h2{color:var(--ink);font-size:20px;letter-spacing:-.4px}#detail,.delete-content{padding:22px 24px}#request-form{display:grid;gap:16px}#request-form>.text-field,#request-form>.form-grid>.text-field{padding:13px 15px;border:1px solid var(--line);border-radius:9px;background:var(--chat);margin:0;min-width:0}#request-form .form-grid{gap:14px;margin:0}#editor label,#understanding-dialog label{color:var(--ink)}#editor input,#editor textarea,#editor select,#editor .description-editor,#understanding-dialog input,#understanding-dialog textarea{background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:7px}#editor input::placeholder,#editor textarea::placeholder{color:var(--muted)}#editor button,#understanding-dialog button,#delete-dialog button{background:var(--chat);color:var(--ink);border:1px solid var(--line);border-radius:7px}#editor .primary,#understanding-dialog .primary{background:#326d58;color:#fff;border-color:#528c74}#delete-dialog .danger,#editor .danger{background:#7a2935;color:#fff;border-color:#a34a59}#delete-error{color:var(--ink);border-left:3px solid #b96a71;padding:10px;background:var(--chat)}#editor #editor-error{position:static;margin:12px 24px 0}#editor .form-actions,#delete-dialog .form-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;padding-top:14px;border-top:1px solid var(--line)}.delete-content p{line-height:1.6;overflow-wrap:anywhere}#understanding-dialog .understanding-tabs{border-bottom:1px solid var(--line)}#understanding-dialog .understanding-card{background:var(--chat);box-shadow:0 2px 8px #00000008}#understanding-dialog .understanding-card header{padding-bottom:10px;border-bottom:1px solid var(--line)}#understanding-dialog .focused-component{background:var(--surface);padding:14px;border:1px solid var(--line);border-radius:8px}#understanding-dialog .text-field>span{color:var(--ink)}#understanding-dialog .component-value .eyebrow{color:var(--muted)}@media(max-width:600px){#editor{width:100%;max-width:none;height:100dvh;max-height:100dvh;margin:0;border-radius:0}#understanding-dialog{border-radius:0}#editor .editor-heading,#understanding-dialog .editor-heading,#delete-dialog .editor-heading{padding:16px}#detail,.delete-content{padding:16px}#request-form .form-grid{grid-template-columns:minmax(0,1fr)}#delete-dialog{max-width:calc(100% - 24px);width:calc(100% - 24px)}}
/* Neutral layered modal surfaces follow the visible conversation palette. */
#editor,#understanding-dialog,#delete-dialog{--surface:var(--modal);--chat:var(--modal-card);background:var(--modal);color:var(--ink)}#editor .editor-heading,#understanding-dialog .editor-heading,#delete-dialog .editor-heading,#understanding-dialog .understanding-tabs{background:var(--modal)}#request-form>.text-field,#request-form>.form-grid>.text-field,#understanding-dialog .understanding-card{background:var(--modal-card)}#editor input,#editor textarea,#editor select,#editor .description-editor,#understanding-dialog input,#understanding-dialog textarea{background:var(--modal-input);color:var(--ink);border-color:var(--line)}#editor .text-field>span,#editor label>span,#understanding-dialog .text-field>span,#understanding-dialog .component-value .eyebrow,#understanding-dialog .field strong{color:var(--muted)}#editor button,#understanding-dialog button,#delete-dialog button{background:var(--modal-card);color:var(--ink);border-color:var(--line)}#editor .primary,#understanding-dialog .primary{background:#326d58;color:#fff;border-color:#528c74}#delete-dialog .danger,#editor .danger{background:#7a2935;color:#fff;border-color:#a34a59}#understanding-dialog .focused-component{background:var(--modal-input)}#editor .muted,#understanding-dialog .muted,#delete-dialog .muted,#understanding-dialog .fine-print{color:var(--muted)}
/* Neutral modal and compact sidebar refinement from the reviewed references. */
#editor,#understanding-dialog,#delete-dialog{--modal:#212121;--modal-card:#292929;--modal-input:#171717;--ink:#ececec;--muted:#bcbcbc;--line:#424242;border-radius:24px;box-shadow:0 24px 80px #0006}html[data-theme=dark] #editor,html[data-theme=dark] #understanding-dialog,html[data-theme=dark] #delete-dialog{--modal:#fafafa;--modal-card:#fff;--modal-input:#f0f0f0;--ink:#292929;--muted:#626262;--line:#dedede}#editor .text-field,#understanding-dialog .understanding-card{box-shadow:none}#editor .editor-heading,#understanding-dialog .editor-heading,#delete-dialog .editor-heading{border-bottom-color:var(--line)}#editor .text-field>span,#understanding-dialog .text-field>span{font-size:12px;font-weight:500}#editor input,#editor select,#editor textarea,#understanding-dialog textarea{font-size:13px}#editor button,#understanding-dialog button,#delete-dialog button{font-size:12px}
.sidebar{--nav-ink:#e4e4e4;--nav-muted:#a3a3a3;--nav-hover:#191919;--nav-selected:#252525;--nav-line:#292929;color:var(--nav-ink);border-color:var(--nav-line)}html[data-theme=dark] .sidebar{--nav-ink:#292929;--nav-muted:#686868;--nav-hover:#f3f3f3;--nav-selected:#eaeaea;--nav-line:#e5e5e5}.chat-rail{border-color:var(--nav-line)}.chat-rail button,.rail-avatar{background:var(--nav-hover);color:var(--nav-ink)}.chat-list{padding-left:12px;padding-right:12px}.chat-list h2{color:var(--nav-ink);font-weight:550;letter-spacing:-.2px}.sidebar .new-request{color:var(--nav-ink);font-size:12px;padding-left:6px;gap:8px}.sidebar .search{background:transparent;border:1px solid var(--nav-line);box-shadow:none;border-radius:8px;padding:5px 7px;margin-bottom:7px;color:var(--nav-muted)}.sidebar .search input{font-size:11px;color:var(--nav-ink);padding:0 0 0 24px;border:0;background:transparent}.sidebar .search input::placeholder{color:var(--nav-muted)}.sidebar .search svg{width:14px;height:14px;top:50%;transform:translateY(-50%)}.sidebar .queue-tools{align-items:center;gap:4px}.sidebar .queue-tools select{appearance:auto;background:transparent;border:0;border-radius:6px;color:var(--nav-muted);font-size:10px;padding:5px 3px;box-shadow:none;min-width:0}.sidebar .queue-tools .icon-button{background:transparent;border:0;color:var(--nav-muted);width:25px;height:25px;padding:5px}.sidebar .list-label,.sidebar #result-count{color:var(--nav-muted);font-size:10px;font-weight:400;letter-spacing:0}.sidebar .list-label{margin-left:6px}.sidebar .case-link{height:25.5px;min-height:25.5px;max-height:25.5px;margin:0;padding:0 6px;border-radius:6px;color:var(--nav-ink)}.sidebar .case-link strong,.sidebar .case-link.selected strong{color:var(--nav-ink);font-size:12px;line-height:18px;font-weight:400;letter-spacing:-.1px}.sidebar .case-link:hover,.sidebar .new-request:hover{background:var(--nav-hover)}.sidebar .case-link.selected{background:var(--nav-selected);border:0;box-shadow:none}.sidebar .sidebar-footer{color:var(--nav-muted);font-size:10px;background:transparent}.sidebar .working-indicator{color:var(--nav-ink)}@media(max-width:600px){#editor,#understanding-dialog{border-radius:0}}
