:root {
  --accent: #d71914;
  --brand-red: #d71914;
  --brand-strong: #b9120e;
  --brand-tint: #fff0ed;
  --line: #e8e6e4;
  --muted: #7a7d80;
  color: #303438;
  background: #fff;
}
button.primary,.send-button { background:var(--brand-red);border-color:var(--brand-red);color:#fff }
button.primary:hover,.send-button:hover { background:var(--brand-strong);border-color:var(--brand-strong) }
button:hover { background:#fff6f3;border-color:#edc6bd }
button:focus-visible,a:focus-visible { outline-color:#df6a57 }
input:focus,select:focus,textarea:focus { outline-color:#e89a8c }
a,.text-action { color:var(--brand-red) }
.form-error,button.danger { color:var(--brand-strong) }
tbody tr:hover { background:#fff9f6 }
tr.selected { background:var(--brand-tint) }

.platform-mark { display:block;width:100%;height:100%;object-fit:contain;flex:none }
.brand-mark,.sidebar .brand-mark { background:none;border-radius:0;width:32px;height:36px }
.sidebar { background:#faf8f7;border-right-color:#e9e6e3 }
.sidebar .brand { height:43px;align-items:center;gap:9px }
.sidebar .brand-mark { width:31px;height:36px }
.brand-name { font-size:15px;line-height:1.55;font-weight:650;color:var(--brand-red) }
.brand-name>span { display:block;font-size:12px;font-weight:500;color:#64676a }
.sidebar .brand .version { display:none }
.new-analysis { margin-top:22px }
.new-analysis>svg:first-child,.case-select-wrap>svg { color:var(--brand-red) }
.nav-link { color:#72777b }
.nav-link.active,.session-link.active { background:var(--brand-tint);color:var(--brand-red) }
.nav-link.active>svg { color:var(--brand-red) }
.nav-count { color:#9c7770 }
.nav-label { color:#929393 }
.nav-link:hover,.session-link:hover { background:#fff4ef }
.case-picker select { color:#63676b }
.workspace-tabs button { color:#858a8d }
.workspace-tabs button[aria-selected=true] { color:var(--brand-red) }
.workspace-tabs button[aria-selected=true]:after { background:var(--brand-red) }
.workspace-tabs button:hover { background:transparent }
.agent-thread-header>div>svg { color:#9b8e88 }
.avatar,.request-avatar { background:#ffede7;color:#c74732 }
.sidebar-user strong { color:#575e63 }
.sidebar-user>div,.local-environment { color:#929493 }
.status-dot { background:#d71914 }
.local-environment svg,.sidebar .brand>.icon-btn { color:#9c9893 }
.agent-emblem { background:none;border:0;width:42px;height:48px;border-radius:0;margin-bottom:10px }
.assistant-mark { background:none;width:25px;height:28px;border-radius:0 }
.agent-intro h2 { color:#303438 }
.intro-kicker { color:#b57e70 }
.agent-intro p { color:#81878a }
.quick-tasks button { border-color:#ece5e0;background:#fffdfb;color:#63676b }
.quick-tasks button>svg:first-child { color:var(--brand-red) }
.quick-tasks button:hover { border-color:#e7a18c;background:#fff5ef }
.quick-tasks button>svg:last-child { color:#b3aaa4 }
.agent-result { border-color:#e8e5e2 }
.result-footer { background:#fdfbf9;border-top-color:#efebe7;color:#909394 }
.text-action:hover { color:var(--brand-strong) }
.agent-right,.agent-context,.agent-right .source-head { background:#fdfdfc }
.context-heading,.context-section { border-bottom-color:#eeebe8 }
.context-case,.context-stats b { color:#58616a }
.context-case svg { color:#c46d55 }
.context-boundary,.context-title h3,.context-status { color:#92999c }
.context-status b { color:#697579 }
.context-file>svg:first-child { color:#6b91ad }
.context-file>span { color:#737d84 }
.context-file small { color:#9fa6aa }
.agent-right .source-title { color:#60686b }
.source-head { background:#fcfaf7 }
.source-line.highlight { background:#fff1d3;border-left-color:#c39743 }
.source-footer { border-top-color:#e8e2da }
.agent-composer { border-color:#ddd9d4;box-shadow:0 3px 16px #4a322005 }
.agent-composer:focus-within { border-color:#e5816d;box-shadow:0 0 0 2px #d719140b }
.agent-composer textarea { color:#596167 }
.agent-composer textarea::placeholder { color:#9ea4a5 }
.composer-context,.composer-actions select { color:#899295 }
.composer-disclaimer { color:#9b9f9f }
.composer-dock { border-top-color:#efebe5 }
.view-search:focus-within { border-color:#e59d86 }
.toolbar select { border-color:#e2ddd6 }
.selected-case-name,.session-link { color:#979792 }
.session-empty { color:#adb0ac }
.evidence-quote { color:#646d75;border-left-color:#dce5ee }
.evidence-quote:hover { background:#f7fafc;border-color:#93afc4 }
.segmented label:has(input:checked) { background:var(--brand-tint);color:var(--brand-red) }
.segmented input,.check-label input { accent-color:var(--brand-red) }
.dialog-quote { border-left-color:#e6ad95;background:#fff7f0 }
.dialog-footer { background:#fdfaf6 }
.history-item { border-bottom-color:#e9e1d6 }
.report-snapshot blockquote { border-left-color:#cfb59d }
.mint { background:#edf3f8;color:#6a8aa7 }
.scope-note { background:#fff2d7;color:#97733e }
.badge.green { background:#edf4ef;color:#46765a }
#toast { background:#353b40 }
#toast.error { background:var(--brand-strong) }

.login-page {
  min-height:100dvh;
  display:grid;
  grid-template-rows:auto minmax(0,1fr) auto;
  position:relative;
  overflow:hidden;
  background:#fff5f0;
}
.login-page:before { content:'';height:4px;position:absolute;left:0;top:0;right:0;background:var(--brand-red);z-index:2 }
.login-scenery {
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.55;
}
.login-scenery img { display:block;width:100%;height:100%;object-fit:cover;object-position:center }
.login-scenery:after { content:'';position:absolute;inset:0;background:linear-gradient(180deg,#fff9f5b3 0%,#fff9f533 45%,#fff9f514 100%) }
.login-masthead { padding:37px 5.5% 24px;display:flex;align-items:center;gap:16px;position:relative;z-index:1 }
.login-masthead .platform-mark { width:47px;height:53px }
.login-masthead h1 { font-size:25px;font-weight:650;color:var(--brand-red);line-height:1.5;margin:0 }
.login-body { display:grid;grid-template-columns:minmax(0,1.1fr) minmax(400px,.9fr);align-items:center;gap:70px;width:min(1190px,89%);margin:10px auto 35px;padding:25px 0;position:relative;z-index:1 }
.login-visual { min-width:0;align-self:stretch;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;min-height:510px;padding:0 0 190px 16px }
.login-visual-title { font-family:"Songti SC",SimSun,serif;color:var(--brand-red);font-size:36px;font-weight:600;line-height:1.6;margin:0 }
.login-visual-rule { height:2px;width:52px;background:#e98a6e;margin:21px 0 }
.login-visual-caption { display:flex;align-items:center;gap:25px;color:#ab776b;font-size:13px }
.login-visual-caption span+span:before { content:'';display:inline-block;width:3px;height:3px;background:#d6a094;margin-right:25px;vertical-align:middle }
.login-form-panel { background:#fff;padding:44px 40px 40px;min-width:0;border:1px solid #eadfd8;border-top:3px solid var(--brand-red);border-radius:6px;box-shadow:0 16px 45px #9e39230a;position:relative }
.login-form-panel h2 { font-size:22px;font-weight:600;color:#bf251c;line-height:1.7;display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:31px }
.login-form-panel h2 i { font-style:normal;font-weight:400;color:#dfa394;font-size:18px }
.login-form-panel h2 span { white-space:nowrap }
.login-form-panel .field { margin-bottom:24px;gap:9px }
.login-form-panel .field>label { font-size:13px;font-weight:500;color:#686561 }
.login-input { display:flex;align-items:center;gap:11px;border:1px solid #e0ddd9;border-radius:5px;height:48px;padding:0 13px;background:#fff }
.login-input:focus-within { border-color:#e67c62;box-shadow:0 0 0 3px #d7191409 }
.login-input>svg { color:#aaa49d;width:17px;height:17px }
.login-input input { background:transparent;border:0;padding:10px 0;outline:none!important;box-shadow:none;flex:1;width:100%;min-width:0;height:46px;font-size:14px;color:#5f6263 }
.login-input input::placeholder { color:#b9b5ae;font-size:12px }
.login-input .icon-btn { color:#a59d95;width:28px;height:28px;min-height:28px;padding:5px }
.login-form-panel .form-error { margin:2px 0 15px;min-height:22px;font-size:12px }
.login-submit { width:100%;height:48px;font-size:15px;font-weight:500;justify-content:center;gap:12px;box-shadow:0 5px 12px #d7191410 }
.login-form-note { display:flex;align-items:center;justify-content:center;gap:6px;margin-top:23px;padding-top:21px;border-top:1px solid #f0ebe5;color:#a8a199;font-size:10px }
.login-form-note svg { width:12px;height:12px }
.login-page-footer { position:relative;z-index:1;border-top:1px solid #eadfd866;padding:20px 5.5%;display:flex;justify-content:space-between;gap:20px;color:#a89a8f;font-size:10px }
.login-page-footer>span { display:flex;gap:7px;align-items:center }
.login-page-footer svg { width:12px;height:12px }

@media(min-width:1650px) {
  .login-body { gap:100px;width:min(1320px,86%) }
  .login-form-panel { padding:53px 48px 46px }
  .login-form-panel h2 { font-size:24px }
  .login-masthead h1 { font-size:28px }
  .login-visual-title { font-size:40px }
}
@media(max-width:1180px) {
  .login-body { gap:38px;width:91%;grid-template-columns:minmax(0,1fr) minmax(375px,1fr) }
  .login-form-panel { padding:34px 28px }
  .login-form-panel h2 { font-size:20px;gap:6px }
  .login-visual-title { font-size:30px }
  .login-visual { min-height:480px;padding-left:0 }
  .agent-right.mobile-open { border-color:#dfd6cc;box-shadow:0 8px 35px #5c34281a }
}
@media(max-width:760px) {
  .sidebar .brand { height:43px }
  .sidebar .brand>.icon-btn { margin-left:auto }
  .brand-name { font-size:14px }
  .brand-name>span { font-size:11px }
  .agent-emblem { width:34px;height:38px }
  .login-masthead { padding:27px 22px 18px;gap:12px }
  .login-masthead .platform-mark { width:34px;height:39px }
  .login-masthead h1 { font-size:19px }
  .login-body { display:flex;flex-direction:column;gap:20px;width:min(450px,calc(100% - 36px));margin:0 auto 30px;padding:0 }
  .login-visual { min-height:0;align-self:center;width:100%;align-items:center;padding:19px 0 36px }
  .login-visual-title { font-size:24px }
  .login-visual-caption,.login-visual-rule { display:none }
  .login-form-panel { width:100%;padding:28px 23px 27px;border-radius:6px }
  .login-form-panel h2 { font-size:18px;gap:5px;margin-bottom:25px;justify-content:flex-start }
  .login-form-panel h2 i { font-size:14px }
  .login-form-panel .field { margin-bottom:21px }
  .login-form-panel .field>label { font-size:12px }
  .login-form-note { margin-top:20px;padding-top:18px;font-size:9px }
  .login-page-footer { font-size:9px;padding:18px 22px;justify-content:center;flex-wrap:wrap;gap:7px 15px }
  .login-page-footer>span:last-child { display:none }
  .login-input { height:46px }
  .login-submit { height:46px;font-size:14px }
}
@media(max-width:360px) {
  .login-masthead { padding-left:17px;padding-right:17px;gap:9px }
  .login-masthead h1 { font-size:17px }
  .login-form-panel { padding:25px 19px }
  .login-form-panel h2 { font-size:16px }
  .login-body { width:calc(100% - 28px) }
  .login-visual-title { font-size:22px }
}
@media(max-height:820px) and (min-width:761px) {
  .login-masthead { padding-top:24px;padding-bottom:14px }
  .login-body { padding:10px 0;margin-top:0;margin-bottom:18px }
  .login-visual { min-height:430px;padding-bottom:170px }
  .login-visual-title { font-size:32px }
  .login-form-panel { padding-top:28px;padding-bottom:27px }
  .login-form-panel h2 { margin-bottom:24px }
  .login-page-footer { padding-top:14px;padding-bottom:14px }
}
