:root {
  color-scheme: light;
  --green: #087b43;
  --green-deep: #075d37;
  --green-wash: #e8f1e9;
  --gold: #f4d51c;
  --ink: #203129;
  --muted: #748079;
  --line: #e1e8df;
  --paper: #f3f5ef;
  --white: #fffefa;
  --red: #a33b35;
  --shadow: 0 18px 54px rgba(27, 55, 37, .13);
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { width: 100%; min-width: 320px; height: 100%; margin: 0; }
body { background: var(--paper); color: var(--ink); }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
[hidden] { display: none !important; }

.app-shell { min-height: 100dvh; height: 100dvh; }
.workspace { display: flex; width: 100%; height: 100%; overflow: hidden; }
.thread-sidebar {
  z-index: 5; display: flex; flex: 0 0 286px; flex-direction: column; height: 100%;
  padding: 27px 17px 17px; background: #edf2eb; border-right: 1px solid #dce5da;
}
.sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 1px 8px 28px; }
.brand-link { display: inline-flex; text-decoration: none; }
.brand-mark { display: block; width: 144px; height: 50px; object-fit: contain; }
.new-thread-button {
  display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; width: 100%;
  border: 1px solid #b7cbb9; border-radius: 5px; color: var(--green-deep); background: #f9fbf6;
  font-size: 13px; font-weight: 700; cursor: pointer; transition: background .18s, border-color .18s;
}
.new-thread-button:hover { background: white; border-color: var(--green); }
.new-thread-button span { font-size: 20px; font-weight: 400; line-height: 1; }
.thread-heading { display: flex; align-items: center; justify-content: space-between; margin: 31px 9px 12px; color: #78847a; font-size: 9px; font-weight: 800; letter-spacing: .15em; }
.thread-count { color: #a1aaa1; font-size: 10px; letter-spacing: 0; }
.thread-list { flex: 1; min-height: 0; overflow-y: auto; margin: 0 -5px; padding: 0 5px 15px; scrollbar-width: thin; scrollbar-color: #c8d4c8 transparent; }
.thread-item {
  display: flex; align-items: center; gap: 11px; width: 100%; min-height: 46px; margin: 3px 0; padding: 0 11px;
  border: 0; border-radius: 4px; background: transparent; color: #536258; text-align: left; cursor: pointer;
}
.thread-item:hover { background: rgba(255,255,255,.65); }
.thread-item.active { color: var(--green-deep); background: #fffefa; box-shadow: inset 2px 0 var(--green), 0 2px 8px rgba(35,71,45,.045); }
.thread-icon { flex: none; width: 15px; height: 15px; border: 1.4px solid currentColor; border-radius: 50% 50% 45% 45%; opacity: .72; }
.thread-title { min-width: 0; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.thread-empty { padding: 14px 12px; color: #8a958c; font-size: 12px; line-height: 1.6; }
.sidebar-bottom { padding: 16px 8px 0; border-top: 1px solid #dbe4d9; }
.private-note { display: flex; align-items: center; gap: 10px; color: #7d887e; font-size: 10px; line-height: 1.55; }
.private-note strong { color: #47594c; font-size: 11px; font-weight: 650; }
.lock-mark { position: relative; width: 15px; height: 12px; margin-left: 2px; border: 1.4px solid var(--green); border-radius: 2px; }
.lock-mark:before { position: absolute; content: ""; width: 7px; height: 7px; left: 2.7px; top: -7px; border: 1.4px solid var(--green); border-bottom: 0; border-radius: 7px 7px 0 0; }
.sidebar-links { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 18px; }
.sidebar-links a, .sidebar-links button { padding: 5px 0; border: 0; background: transparent; color: #65746a; font-size: 10px; text-decoration: none; cursor: pointer; }
.sidebar-links a:hover, .sidebar-links button:hover { color: var(--green); }
.sidebar-links span { margin-left: 2px; color: var(--green); }

.chat-panel { position: relative; display: flex; flex: 1; flex-direction: column; min-width: 0; height: 100%; background: var(--white); }
.topbar { z-index: 1; display: flex; align-items: center; justify-content: space-between; flex: none; height: 69px; padding: 0 39px; border-bottom: 1px solid #e9ede6; background: rgba(255,254,250,.96); }
.topbar-context { display: flex; align-items: center; gap: 10px; color: #33443a; font-size: 13px; font-weight: 650; }
.online-dot, .notice-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.private-label { margin-left: 3px; padding: 4px 6px; border: 1px solid #dce7dc; border-radius: 2px; color: #6f8172; font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.topbar-right a { color: #718078; font-size: 11px; text-decoration: none; }
.topbar-right a:hover { color: var(--green); }
.topbar-right span { color: var(--green); }
.icon-button { display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; cursor: pointer; }
.menu-button, .sidebar-close { display: none; }
.chat-content { display: flex; flex: 1; flex-direction: column; min-height: 0; overflow: hidden; }
.transcript { display: flex; flex: 1; flex-direction: column; gap: 22px; min-height: 0; overflow-y: auto; padding: 45px max(8%, calc((100% - 810px) / 2)) 36px; scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: #d3ded3 transparent; }
.welcome { width: min(100%, 680px); margin: auto; padding: 26px 0 35px; animation: rise-in .4s ease both; }
.welcome-kicker { display: flex; align-items: center; gap: 9px; color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.welcome-kicker:before { content: ""; width: 22px; height: 1px; background: var(--green); }
.welcome h1 { max-width: 590px; margin: 18px 0 14px; color: #24382c; font-size: clamp(31px, 4vw, 47px); font-weight: 550; letter-spacing: -.055em; line-height: 1.09; }
.welcome-copy { max-width: 510px; margin: 0; color: #728077; font-size: 14px; line-height: 1.75; }
.suggestion-label { margin: 38px 0 12px; color: #839087; font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.suggestions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.suggestion {
  display: flex; align-items: flex-start; gap: 12px; min-height: 64px; padding: 14px;
  border: 1px solid #e2e9df; border-radius: 4px; background: #fcfdf9; color: #526358;
  font-size: 12px; line-height: 1.45; text-align: left; cursor: pointer; transition: border-color .16s, background .16s, transform .16s;
}
.suggestion:hover { transform: translateY(-1px); border-color: #a9c3ac; background: #f5f9f3; }
.suggestion-mark { flex: none; color: var(--green); font-size: 15px; line-height: 1.1; }
.message-row { display: flex; gap: 12px; width: min(100%, 740px); animation: rise-in .25s ease both; }
.message-row.user { align-self: flex-end; justify-content: flex-end; }
.message-avatar { display: flex; flex: none; align-items: center; justify-content: center; width: 27px; height: 27px; border-radius: 50%; background: var(--green-wash); color: var(--green-deep); font-size: 10px; font-weight: 800; }
.message-row.user .message-avatar { order: 2; background: #edf0e9; color: #69746a; }
.message-bubble { max-width: min(78%, 610px); padding: 13px 16px; border: 1px solid #e8ece5; border-radius: 3px 12px 12px 12px; background: #fbfcf8; color: #425148; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; white-space: pre-wrap; }
.message-row.user .message-bubble { border-color: #e6eee5; border-radius: 12px 3px 12px 12px; background: #edf4ec; color: #33483a; }
.message-time { display: block; margin-top: 7px; color: #9aa39b; font-size: 9px; }
.typing-indicator { display: flex; align-items: center; gap: 5px; padding: 15px; color: #819085; font-size: 12px; }
.typing-indicator span { width: 4px; height: 4px; border-radius: 50%; background: #6e9a77; animation: dot-pulse 1s infinite alternate; }
.typing-indicator span:nth-child(2) { animation-delay: .2s; }.typing-indicator span:nth-child(3) { animation-delay: .4s; }
.action-card { width: min(100%, 700px); margin-left: 39px; border: 1px solid #d9e4d8; border-radius: 4px; background: #fffefa; box-shadow: 0 5px 16px rgba(34,69,44,.045); animation: rise-in .28s ease both; }
.action-card-head { display: flex; align-items: center; gap: 10px; padding: 15px 17px 12px; border-bottom: 1px solid #edf0e9; }
.review-icon { display: grid; flex: none; place-items: center; width: 25px; height: 25px; border: 1px solid #d7e6d8; border-radius: 50%; color: var(--green); font-size: 12px; }
.action-card-title { flex: 1; min-width: 0; color: #304538; font-size: 13px; font-weight: 700; }
.status-pill { padding: 5px 8px; border-radius: 2px; background: #f1f2ed; color: #667268; font-size: 9px; font-weight: 750; letter-spacing: .035em; white-space: nowrap; }
.status-pill.pending { background: #fff5d7; color: #795a15; }.status-pill.completed { background: #e7f2e8; color: #24653a; }
.status-pill.rejected, .status-pill.failed { background: #f9eae6; color: #923a32; }.status-pill.executing { background: #eaf0f7; color: #405d7a; }.status-pill.unknown { background: #f5eadc; color: #75502d; }
.action-summary { padding: 3px 17px 10px; }
.summary-title { margin: 10px 0 9px; color: #33473a; font-size: 12px; font-weight: 700; }
.summary-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin: 0; }
.summary-field { min-width: 0; padding: 8px 0; border-bottom: 1px solid #f0f1ec; }
.summary-field dt { margin-bottom: 4px; color: #89938b; font-size: 9px; font-weight: 750; letter-spacing: .075em; text-transform: uppercase; }
.summary-field dd { margin: 0; color: #4b5b50; font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-wrap; }
.review-warning { margin: 10px 0 2px; padding: 10px 11px; border-left: 2px solid #d1a83b; background: #fbf6e8; color: #775f28; font-size: 11px; line-height: 1.55; }
.action-card-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 12px 17px; border-top: 1px solid #edf0e9; }
.action-card-foot .expired-note { flex: 1; color: #8b7760; font-size: 10px; }
.action-button { min-height: 34px; padding: 0 12px; border-radius: 3px; font-size: 11px; font-weight: 700; cursor: pointer; }
.action-button.confirm { border: 1px solid var(--green); background: var(--green); color: white; }
.action-button.confirm:hover { background: var(--green-deep); }.action-button.reject { border: 1px solid #d8e0d7; background: transparent; color: #65746a; }
.action-button:disabled { opacity: .52; cursor: not-allowed; }
.result-note { width: 100%; color: #738078; font-size: 10px; line-height: 1.5; }
.thread-error { align-self: center; width: min(calc(100% - 40px), 760px); margin: 12px auto 0; padding: 10px 13px; border-left: 3px solid #bd7168; background: #fbf0ed; color: #793a34; font-size: 12px; line-height: 1.5; }
.retry-button { margin-left: 12px; padding: 4px 8px; border: 1px solid #d9b6af; border-radius: 3px; background: #fffaf8; color: #783c35; font-size: 10px; font-weight: 700; cursor: pointer; }
.loading-state { display: flex; flex-direction: column; gap: 12px; width: min(80%, 480px); margin: 72px auto; }
.skeleton-line { display: block; width: 72%; height: 13px; border-radius: 8px; background: linear-gradient(90deg,#edf1e9,#f7f8f4,#edf1e9); background-size: 200% 100%; animation: shimmer 1.5s linear infinite; }
.skeleton-line.wide { width: 100%; height: 74px; border-radius: 5px; }.skeleton-line.short { width: 45%; }

.composer-area { flex: none; padding: 0 max(8%, calc((100% - 810px) / 2)) 17px; background: linear-gradient(0deg, #fffefa 84%, rgba(255,254,250,.9)); }
.ai-notice { display: flex; align-items: center; gap: 9px; width: min(100%, 810px); margin: 0 auto 10px; padding: 9px 11px; border: 1px solid #e8d9b6; background: #fbf6e8; color: #755e2c; font-size: 11px; line-height: 1.5; }
.ai-notice .notice-dot { flex: none; background: #b48a35; }
.composer { width: min(100%, 810px); margin: 0 auto; padding: 12px 14px 9px; border: 1px solid #dbe4da; border-radius: 5px; background: #fff; box-shadow: 0 5px 20px rgba(40,72,48,.04); transition: border-color .18s, box-shadow .18s; }
.composer:focus-within { border-color: #9bb9a0; box-shadow: 0 0 0 3px rgba(8,123,67,.07); }
.composer textarea { display: block; width: 100%; min-height: 30px; max-height: 150px; padding: 3px 1px 7px; resize: none; border: 0; outline: 0; background: transparent; color: #34463a; font-size: 13px; line-height: 1.55; }
.composer textarea::placeholder { color: #a2aaa1; }.composer textarea:disabled { cursor: not-allowed; }
.composer-tools { display: flex; align-items: center; gap: 11px; min-height: 31px; border-top: 1px solid #f0f2ed; padding-top: 8px; }
.composer-hint { flex: 1; color: #929c93; font-size: 9px; }.composer-hint span { padding: 0 3px; color: #c0c7bf; }
.char-count { color: #a1aaa1; font-size: 9px; font-variant-numeric: tabular-nums; }
.send-button { display: flex; align-items: center; gap: 10px; min-height: 31px; padding: 0 10px; border: 0; border-radius: 3px; background: var(--green); color: white; font-size: 10px; font-weight: 750; cursor: pointer; }
.send-button b { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 2px; background: rgba(255,255,255,.18); font-size: 15px; font-weight: 500; }
.send-button:hover:not(:disabled) { background: var(--green-deep); }.send-button:disabled { background: #a6b5a8; cursor: not-allowed; }
.safety-note { width: min(100%, 810px); margin: 10px auto 0; color: #929b92; font-size: 9px; line-height: 1.5; text-align: center; }.safety-note span { margin-right: 4px; color: #879588; }
.sidebar-scrim { display: none; }

.login-screen { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100dvh; padding: 26px 18px; background: linear-gradient(145deg,#eff5f0 0%,#e8f0e9 52%,#f7f8f5 100%); }
.login-card { width: min(450px,100%); padding: 38px 40px 32px; border: 1px solid #dce6dd; border-radius: 7px; background: #fffefa; box-shadow: 0 22px 56px rgba(26,61,39,.12); animation: rise-in .35s ease both; }
.login-brand { margin-bottom: 26px; }.login-brand .brand-mark { width: 164px; height: 57px; }
.eyebrow { margin: 0; color: var(--green); font-size: 9px; font-weight: 800; letter-spacing: .17em; }
.login-card h1 { margin: 10px 0 8px; color: #1c2b22; font-size: 27px; letter-spacing: -.035em; }
.login-copy { margin: 0 0 24px; color: #65736a; font-size: 12px; line-height: 1.65; }
.field { display: block; margin: 0 0 16px; }.field span { display: block; margin-bottom: 6px; color: #34433a; font-size: 11px; font-weight: 700; }
.field input { width: 100%; min-height: 45px; padding: 10px 12px; border: 1px solid #cbd8ce; border-radius: 3px; background: #fbfdfb; color: #1c2b22; font-size: 13px; }
.field input:focus { outline: 0; border-color: #078044; box-shadow: 0 0 0 3px rgba(0,128,63,.12); }
.primary-button { min-height: 43px; border: 1px solid #00743c; border-radius: 3px; background: #00803f; color: white; font-size: 12px; font-weight: 750; cursor: pointer; transition: background .15s, transform .15s; }
.primary-button:hover:not(:disabled) { transform: translateY(-1px); background: #006b35; }.primary-button:disabled { opacity: .58; cursor: wait; }
.login-submit { width: 100%; margin-top: 4px; }
.inline-error { margin: 12px 0 0; padding: 9px 11px; border-left: 3px solid #b83b37; background: #fff3f2; color: #96312d; font-size: 11px; line-height: 1.5; }
.back-home { display: inline-block; margin-top: 22px; color: #087541; font-size: 11px; font-weight: 650; text-decoration: none; }.back-home:hover { text-decoration: underline; }
.login-footnote { margin: 18px 0 0; color: #829087; font-size: 10px; }

.confirm-dialog { position: fixed; inset: 50% auto auto 50%; transform: translate(-50%,-50%); width: min(550px,calc(100vw - 32px)); max-height: min(86dvh,760px); overflow-y: auto; padding: 30px; border: 1px solid #dbe5d9; border-radius: 6px; background: #fffefa; color: var(--ink); box-shadow: var(--shadow); }
.confirm-dialog::backdrop { background: rgba(24,40,29,.48); backdrop-filter: blur(2px); }
.dialog-dismiss { position: absolute; top: 10px; right: 10px; }.dialog-close { width: 31px; height: 31px; color: #69766d; font-size: 22px; }
.dialog-symbol { display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 17px; border: 1px solid #e7d9ad; border-radius: 50%; background: #fcf6e4; color: #96782c; font-family: Georgia,serif; font-size: 18px; }
.confirm-dialog h2 { margin: 8px 0 8px; color: #27392d; font-size: 23px; letter-spacing: -.035em; }
.dialog-intro { margin: 0 0 17px; color: #748078; font-size: 12px; line-height: 1.6; }
.dialog-summary { padding: 13px 15px; border: 1px solid #e5ebe2; background: #fbfcf8; }
.dialog-summary .summary-title { margin-top: 0; }.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; }
.secondary-button { min-height: 41px; padding: 0 14px; border: 1px solid #d7e0d6; border-radius: 3px; background: transparent; color: #56645a; font-size: 11px; font-weight: 700; cursor: pointer; }
.dialog-actions .primary-button { padding: 0 15px; }
.dialog-warning { margin-top: 12px; }

button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid rgba(8,123,67,.23); outline-offset: 2px; }
@keyframes rise-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes dot-pulse { to { opacity: .35; transform: translateY(-2px); } }

@media (max-width: 760px) {
  .thread-sidebar { position: fixed; inset: 0 auto 0 0; width: min(300px,86vw); transform: translateX(-102%); transition: transform .22s ease; box-shadow: 8px 0 30px rgba(25,48,31,.12); }
  .workspace.sidebar-open .thread-sidebar { transform: translateX(0); }
  .sidebar-close { display: inline-flex; width: 34px; height: 34px; color: #506056; font-size: 23px; }
  .sidebar-scrim { position: fixed; z-index: 4; inset: 0; background: rgba(25,43,31,.25); }
  .workspace.sidebar-open .sidebar-scrim { display: block; }
  .chat-panel { width: 100%; }
  .topbar { height: 58px; padding: 0 17px; }
  .menu-button { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; width: 32px; height: 34px; margin-right: 5px; }
  .menu-button span { display: block; width: 17px; height: 1.5px; background: #506056; }
  .topbar { justify-content: flex-start; }.topbar-context { gap: 7px; font-size: 11px; }.private-label { font-size: 7px; padding: 3px 5px; }.topbar-right { margin-left: auto; }.topbar-right a { font-size: 10px; }
  .transcript { padding: 26px 18px 25px; gap: 17px; }
  .welcome { padding: 14px 0 20px; }.welcome h1 { font-size: clamp(31px,9vw,42px); }.welcome-copy { font-size: 13px; }
  .suggestion-label { margin-top: 27px; }.suggestions { grid-template-columns: 1fr; gap: 7px; }.suggestion { min-height: 53px; padding: 12px; }
  .message-bubble { max-width: 85%; }.action-card { width: 100%; margin-left: 0; }.summary-fields { grid-template-columns: 1fr; }
  .composer-area { padding: 0 14px 10px; }.composer-hint { font-size: 8px; }.safety-note { font-size: 8px; }
}
@media (max-width: 430px) {
  .topbar-right { display: none; }.topbar-context { font-size: 11px; }
  .composer { padding: 10px 11px 8px; }.composer-hint { max-width: 175px; line-height: 1.35; }
  .char-count { font-size: 8px; }.send-button { gap: 6px; padding: 0 8px; }
  .login-card { padding: 29px 22px 25px; }.login-brand .brand-mark { width: 150px; height: 53px; }
  .confirm-dialog { padding: 25px 20px 21px; }.dialog-actions { flex-direction: column-reverse; }.dialog-actions button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Quiet, familiar conversation workspace */
:root {
  --green: #565653;
  --green-deep: #30302e;
  --green-wash: #eeedea;
  --gold: #77766f;
  --ink: #282826;
  --muted: #777671;
  --line: #e5e4e0;
  --paper: #f7f7f5;
  --white: #fdfdfc;
  --red: #9a4d45;
  --shadow: 0 18px 56px rgba(34, 34, 31, .15);
  font-family: "Segoe UI", "Avenir Next", sans-serif;
}

html, body { background: var(--paper); color: var(--ink); }
.workspace { background: var(--white); }
.thread-sidebar {
  flex-basis: 252px;
  padding: 20px 12px 13px;
  background: #f4f4f2;
  border-right: 1px solid #e9e8e4;
}
.sidebar-head { min-height: 34px; padding: 0 10px 18px; }
.sidebar-title { color: #343431; font-size: 13px; font-weight: 650; letter-spacing: -.01em; }
.new-thread-button {
  justify-content: flex-start;
  min-height: 40px;
  padding: 0 11px;
  border-color: #e0dfdb;
  border-radius: 7px;
  color: #3b3b38;
  background: #fafaf9;
  font-size: 12px;
  font-weight: 550;
}
.new-thread-button:hover { border-color: #c9c8c3; background: #fff; }
.new-thread-button span { font-size: 17px; }
.thread-heading {
  margin: 23px 10px 7px;
  color: #85847e;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: none;
}
.thread-count { color: #969590; font-size: 10px; }
.thread-list { margin: 0; padding: 0 2px 12px; scrollbar-color: #d8d7d2 transparent; }
.thread-item {
  min-height: 37px;
  margin: 2px 0;
  padding: 0 10px;
  gap: 9px;
  border-radius: 6px;
  color: #5e5d58;
}
.thread-item:hover { background: #eae9e6; }
.thread-item.active { color: #333330; background: #e9e8e5; box-shadow: none; }
.thread-icon { width: 13px; height: 13px; border-radius: 4px; opacity: .55; }
.thread-title { font-size: 11px; }
.thread-empty { padding: 10px; color: #85847f; font-size: 11px; }
.sidebar-bottom { padding: 12px 9px 0; border-color: #e5e4e0; }
.private-note { color: #898883; font-size: 10px; }
.private-note strong { color: #585752; }
.lock-mark, .lock-mark:before { border-color: #85847f; }
.sidebar-links { margin-top: 12px; }
.sidebar-links a, .sidebar-links button { color: #73726d; font-size: 10px; }
.sidebar-links a:hover, .sidebar-links button:hover { color: #292927; }
.sidebar-links span { color: #8b8a85; }

.chat-panel { background: #fdfdfc; }
.topbar {
  height: 56px;
  padding: 0 30px;
  border-bottom: 1px solid #efeeeb;
  background: rgba(253,253,252,.96);
}
.topbar-context { gap: 0; color: #44433f; font-size: 12px; font-weight: 550; }
.topbar-right a { color: #85847e; font-size: 10px; }
.topbar-right a:hover { color: #333330; }
.chat-content { background: #fdfdfc; }
.transcript {
  gap: 24px;
  padding: 38px 24px 35px;
  scrollbar-color: #d8d7d2 transparent;
}
.welcome { width: min(100%, 680px); padding: 20px 0 28px; }
.welcome-kicker {
  gap: 0;
  color: #888781;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
}
.welcome-kicker:before { display: none; }
.welcome h1 {
  max-width: none;
  margin: 13px 0 10px;
  color: #30302d;
  font-size: clamp(28px, 3.6vw, 39px);
  font-weight: 550;
  letter-spacing: -.045em;
  line-height: 1.16;
}
.welcome-copy { max-width: 510px; color: #777671; font-size: 13px; line-height: 1.65; }
.suggestion-label { margin: 30px 0 10px; color: #8c8b85; font-size: 9px; font-weight: 650; letter-spacing: .06em; }
.suggestions { gap: 8px; }
.suggestion {
  min-height: 54px;
  padding: 12px 13px;
  gap: 9px;
  border-color: #e8e7e3;
  border-radius: 8px;
  background: #fbfbfa;
  color: #55544f;
  font-size: 11px;
}
.suggestion:hover { border-color: #cecdc7; background: #f6f6f4; }
.suggestion-mark { color: #8a8983; font-size: 13px; }
.message-row { gap: 10px; width: min(100%, 760px); }
.message-avatar { width: 25px; height: 25px; background: #e9e8e4; color: #565550; font-size: 9px; }
.message-row.user .message-avatar { background: #e9e8e4; color: #5d5c57; }
.message-bubble {
  max-width: min(84%, 650px);
  padding: 10px 13px;
  border: 0;
  border-radius: 12px;
  background: #f1f1ef;
  color: #393936;
  font-size: 13px;
  line-height: 1.65;
}
.message-row.user .message-bubble { border: 0; border-radius: 12px; background: #f1f1ef; color: #393936; }
.message-time { color: #92918b; }
.typing-indicator { color: #777671; }
.typing-indicator span { background: #777671; }
.action-card {
  width: min(100%, 720px);
  margin-left: 35px;
  border-color: #e5e4e0;
  border-radius: 9px;
  background: #fdfdfc;
  box-shadow: 0 2px 8px rgba(38,38,34,.035);
}
.action-card-head, .action-card-foot { border-color: #eeede9; }
.review-icon { border-color: #dddcd7; border-radius: 7px; color: #66655f; }
.action-card-title { color: #363633; }
.status-pill { border-radius: 4px; background: #f0efec; color: #5d5c57; }
.status-pill.pending, .status-pill.executing, .status-pill.unknown { background: #f0efec; color: #5d5c57; }
.status-pill.completed { background: #e9eee9; color: #46584a; }
.status-pill.rejected, .status-pill.failed { background: #f5eae8; color: #8b4842; }
.summary-title { color: #3d3c38; }
.summary-field { border-color: #eeede9; }
.summary-field dt { color: #898882; }
.summary-field dd { color: #55544f; }
.review-warning { border-left-color: #aaa89e; background: #f4f3ef; color: #57564f; }
.action-button { border-radius: 6px; }
.action-button.confirm { border-color: #454440; background: #454440; color: #fff; }
.action-button.confirm:hover { background: #2f2f2c; }
.action-button.reject { border-color: #deddd8; color: #5d5c57; }
.result-note { color: #777671; }
.thread-error { border-left-color: #a45c54; border-radius: 5px; background: #f7eeec; color: #713b36; }
.retry-button { border-color: #dfc5c0; border-radius: 5px; background: #fffaf9; color: #713b36; }
.skeleton-line { background: linear-gradient(90deg,#eeedea,#f7f7f5,#eeedea); background-size: 200% 100%; }

.composer-area { padding: 0 24px 14px; background: #fdfdfc; }
.ai-notice {
  border-color: #e5e3dc;
  border-radius: 8px;
  background: #f5f4f0;
  color: #615f58;
}
.ai-notice .notice-dot { background: #8a8880; }
.composer {
  padding: 12px 13px 9px;
  border-color: #deddd8;
  border-radius: 14px;
  background: #fdfdfc;
  box-shadow: 0 2px 9px rgba(35,35,31,.045);
}
.composer:focus-within { border-color: #aaa9a3; box-shadow: 0 0 0 2px rgba(70,70,65,.08); }
.composer textarea { color: #343431; font-size: 13px; }
.composer textarea::placeholder { color: #999892; }
.composer-tools { border-color: #eeede9; }
.composer-hint, .char-count { color: #92918b; }
.send-button { border-radius: 7px; background: #454440; color: #fff; }
.send-button:hover:not(:disabled) { background: #2f2f2c; }
.send-button:disabled { background: #c8c7c2; color: #f9f9f8; }
.send-button b { border-radius: 4px; background: rgba(255,255,255,.14); }
.safety-note { color: #92918b; }
.safety-note span { color: #92918b; }

.login-screen { background: #f7f7f5; }
.login-card {
  width: min(390px,100%);
  padding: 34px 32px 30px;
  border: 1px solid #e6e5e1;
  border-radius: 11px;
  background: #fdfdfc;
  box-shadow: 0 10px 35px rgba(35,35,31,.055);
}
.login-card h1 { margin: 0 0 25px; color: #30302d; font-size: 24px; font-weight: 600; letter-spacing: -.035em; }
.field { margin-bottom: 17px; }
.field span { color: #52514d; font-size: 11px; font-weight: 550; }
.field input {
  min-height: 43px;
  border-color: #deddd8;
  border-radius: 7px;
  background: #fdfdfc;
  color: #30302d;
}
.field input:focus { border-color: #96958e; box-shadow: 0 0 0 3px rgba(80,80,74,.09); }
.primary-button {
  border-color: #454440;
  border-radius: 7px;
  background: #454440;
  color: #fff;
}
.primary-button:hover:not(:disabled) { background: #2f2f2c; }
.inline-error { border-left-color: #a45c54; border-radius: 4px; background: #f7eeec; color: #713b36; }

.confirm-dialog {
  border-color: #e3e2dd;
  border-radius: 12px;
  background: #fdfdfc;
}
.confirm-dialog::backdrop { background: rgba(35,35,32,.38); backdrop-filter: blur(2px); }
.dialog-close { color: #6d6c66; }
.dialog-symbol { border-color: #deddd8; border-radius: 8px; background: #f1f0ec; color: #5e5d57; }
.confirm-dialog h2 { color: #30302d; }
.dialog-intro { color: #777671; }
.dialog-summary { border-color: #e7e6e1; border-radius: 7px; background: #fafaf9; }
.secondary-button { border-color: #deddd8; border-radius: 7px; color: #55544f; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(82,81,75,.2);
  outline-offset: 2px;
}

@media (max-width: 760px) {
  .thread-sidebar { background: #f4f4f2; box-shadow: 8px 0 30px rgba(35,35,31,.10); }
  .sidebar-close { color: #55544f; }
  .sidebar-scrim { background: rgba(35,35,32,.24); }
  .topbar { height: 55px; padding: 0 15px; }
  .topbar-context { font-size: 12px; }
  .menu-button span { background: #55544f; }
  .transcript { padding: 24px 17px 22px; gap: 17px; }
  .welcome { padding: 13px 0 18px; }
  .welcome h1 { font-size: clamp(29px,8vw,38px); }
  .suggestion-label { margin-top: 24px; }
  .suggestions { grid-template-columns: 1fr; gap: 7px; }
  .suggestion { min-height: 48px; }
  .message-bubble { max-width: 88%; }
  .action-card { margin-left: 0; }
  .composer-area { padding: 0 13px 9px; }
  .safety-note { font-size: 8px; }
}
@media (max-width: 430px) {
  .login-card { padding: 30px 22px 25px; }
  .confirm-dialog { padding: 25px 20px 21px; }
}

/* The same closed-by-default drawer on desktop, tablet and mobile. */
.workspace .thread-sidebar { display: none; }
.workspace.sidebar-open .thread-sidebar {
  display: flex;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: min(286px, calc(100vw - 48px));
  transform: translateX(0);
  background: #f4f4f2;
  box-shadow: 8px 0 30px rgba(35,35,31,.14);
}
.workspace .menu-button, .workspace .sidebar-close { display: inline-flex; }
.workspace .menu-button { flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.workspace .menu-button span { display: block; width: 17px; height: 2px; border-radius: 1px; background: #55544f; }
.workspace.sidebar-open .sidebar-scrim {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(35,35,32,.28);
}
