:root {
  color-scheme: light;
  --canvas: #c0c0c0;
  --desktop: #008080;
  --sidebar: #c0c0c0;
  --surface: #dfdfdf;
  --surface-raised: #c0c0c0;
  --surface-hover: #d0d0d0;
  --ink: #111111;
  --muted: #414141;
  --line: #808080;
  --line-soft: #a0a0a0;
  --blue: #000080;
  --blue-hover: #000060;
  --on-blue: #ffffff;
  --selection: #000080;
  --selection-ink: #ffffff;
  --bubble: #c0c0c0;
  --note: #c0c0c0;
  --amber-surface: #d8d0b8;
  --amber-ink: #503b0b;
  --amber-dot: #7b5700;
  --danger: #932e35;
  --bevel-light: #ffffff;
  --edge-dark: #000000;
  --edge-mid: #808080;
  --focus: #000080;
  --radius: 0px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  font-family: Tahoma, Arial, sans-serif;
  font-size: 16px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #1d2029;
  --desktop: #123e42;
  --sidebar: #242834;
  --surface: #2d3341;
  --surface-raised: #343b4c;
  --surface-hover: #3a4356;
  --ink: #eef0f6;
  --muted: #bcc3d5;
  --line: #596277;
  --line-soft: #424a5c;
  --blue: #a5b4ff;
  --blue-hover: #c4ceff;
  --on-blue: #20294a;
  --selection: #354369;
  --selection-ink: #e0e6ff;
  --bubble: #343c50;
  --note: #2a303e;
  --amber-surface: #3c3425;
  --amber-ink: #e8d4a9;
  --amber-dot: #e5b65c;
  --danger: #ffb3b7;
  --bevel-light: #50596d;
  --edge-dark: #080c13;
  --edge-mid: #111923;
  --focus: #b8c5ff;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--desktop); color: var(--ink); }
button, input, textarea { font: inherit; }
button, a, input, textarea, summary { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; }
button, input, textarea { border-radius: var(--radius); }
button, a, input, textarea, summary { outline-offset: 4px; }
:focus-visible { outline: 2px solid var(--focus); }
[hidden] { display: none !important; }
.icon-library, .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.icon { width: 20px; height: 20px; flex: 0 0 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: square; stroke-linejoin: miter; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 30; padding: 12px; background: var(--surface-raised); color: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.window-workspace { display: grid; grid-template-columns: 270px minmax(0, 1fr); flex: 1; min-height: 0; }
.sidebar { display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 20px 12px 10px; background: var(--sidebar); border-right: 1px solid var(--line); box-shadow: inset -1px 0 var(--bevel-light); }
.brand-row { display: flex; align-items: center; justify-content: space-between; padding: 0 6px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-size: 21px; font-weight: 700; letter-spacing: -.6px; white-space: nowrap; }
.brand-mark { display: block; }
.brand-name { color: var(--blue); }
.brand-period { color: var(--amber-dot); }
.brand-caption { margin: 11px 6px 21px; color: var(--muted); font-size: 12px; }
.primary-button, .secondary-button { display: inline-flex; gap: 9px; align-items: center; justify-content: center; min-height: 43px; padding: 10px 17px; font-size: 14px; font-weight: 600; border: 1px solid transparent; transition: background 180ms var(--ease), box-shadow 180ms var(--ease); }
.primary-button, .secondary-button { color: var(--ink); background: var(--canvas); border-color: var(--bevel-light) var(--edge-dark) var(--edge-dark) var(--bevel-light); box-shadow: inset 1px 1px var(--surface), inset -1px -1px var(--edge-mid); transition: none; }
.primary-button:hover:not(:disabled) { background: var(--surface-hover); }
.primary-button:active:not(:disabled), .secondary-button:active { border-color: var(--edge-dark) var(--bevel-light) var(--bevel-light) var(--edge-dark); box-shadow: inset 1px 1px var(--edge-mid); }
.primary-button:disabled { background: var(--canvas); color: var(--muted); opacity: .7; }
.primary-button:focus-visible, .secondary-button:focus-visible { outline: 1px dotted currentColor; outline-offset: -5px; }
.secondary-button:hover { background: var(--surface-hover); }
.new-conversation { justify-content: flex-start; min-height: 45px; width: 100%; padding-left: 13px; }
.search-field { display: flex; align-items: center; gap: 7px; min-height: 39px; margin: 13px 0 23px; padding: 0 10px; color: var(--muted); background: var(--surface); border: 1px solid; border-color: var(--edge-mid) var(--bevel-light) var(--bevel-light) var(--edge-mid); box-shadow: inset 1px 1px var(--edge-dark); }
.search-field:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.search-field input { width: 100%; min-width: 0; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: 13px; padding: 10px 0; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
.search-field kbd { flex-shrink: 0; padding: 2px 3px; font-family: inherit; font-size: 10px; border: 1px solid var(--line); }
.history-heading { display: flex; align-items: center; justify-content: space-between; padding: 0 8px; }
.history-heading h2 { margin: 0; font-size: 12px; font-weight: 650; }
.count { font-size: 11px; color: var(--muted); }
.filters { display: flex; gap: 5px; padding: 12px 4px 17px; }
.filter { display: flex; align-items: center; gap: 4px; padding: 6px 9px; background: transparent; color: var(--muted); border: 1px solid transparent; font-size: 12px; }
.filter .icon { width: 12px; height: 12px; flex-basis: 12px; }
.filter:hover { background: var(--surface); }
.filter.active { background: var(--surface); border-color: var(--edge-mid) var(--bevel-light) var(--bevel-light) var(--edge-mid); color: var(--ink); box-shadow: inset 1px 1px var(--edge-dark); }
.conversation-list { flex: 1; min-height: 100px; overflow-y: auto; padding: 3px 2px 16px; scrollbar-width: thin; }
.conversation-group-title { margin: 8px 8px 11px; font-size: 12px; font-weight: 600; color: var(--muted); }
.conversation-group-title:not(:first-child) { margin-top: 26px; }
.conversation-row { display: block; width: 100%; padding: 11px 9px; margin-bottom: 6px; text-align: left; border: 1px solid transparent; background: transparent; }
.conversation-row:hover { background: var(--surface); }
.conversation-row.selected { background: var(--selection); border-color: var(--selection); box-shadow: none; }
.conversation-row.selected .conversation-row-title { color: var(--selection-ink); }
.conversation-row.selected .conversation-preview, .conversation-row.selected .conversation-row-meta { color: var(--selection-ink); }
.conversation-row.selected .unread-dot { background: var(--selection-ink); }
.conversation-row-heading { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.conversation-row-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 650; line-height: 1.6; }
.unread-dot { height: 6px; width: 6px; flex-shrink: 0; background: var(--blue); border-radius: 50%; }
.conversation-preview { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.conversation-row-meta { display: flex; align-items: center; gap: 5px; margin-top: 10px; color: var(--muted); font-size: 12px; }
.conversation-row-meta .icon { height: 11px; width: 11px; flex-basis: 11px; }
.list-empty { margin: 10px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.sidebar-bottom { padding: 12px 2px 0; border-top: 1px solid var(--line-soft); }
.preview-note { display: flex; gap: 9px; padding: 5px 7px 17px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.preview-note .icon { width: 16px; height: 16px; flex-basis: 16px; margin-top: 2px; }
.preview-note span span { display: block; }
.account-button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 1px solid transparent; background: transparent; text-align: left; }
.account-button:hover { background: var(--surface); border-color: var(--line-soft); }
.account-button > span:nth-child(2) { flex: 1; min-width: 0; }
.account-button strong, .account-button span span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-button strong { display: block; font-size: 12px; font-weight: 600; }
.account-button span span { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }
.avatar { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 30px; width: 30px; height: 30px; border: 1px solid; border-color: var(--bevel-light) var(--edge-mid) var(--edge-mid) var(--bevel-light); font-size: 13px; font-weight: 600; }
.member-avatar { background: var(--surface); }
.jake-avatar { position: relative; background: var(--blue); color: var(--on-blue); }
.away-dot { position: absolute; right: -2px; bottom: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--amber-dot); border: 2px solid var(--canvas); }
.main-panel { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; background: var(--canvas); }
.conversation-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 76px; padding: 13px 22px; border-bottom: 1px solid var(--line-soft); }
.header-identity { display: flex; min-width: 0; gap: 13px; align-items: center; }
.header-identity > div { min-width: 0; }
h1 { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 17px; font-weight: 700; letter-spacing: -.2px; line-height: 1.5; }
.human-label { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.label-divider { padding: 0 6px; color: var(--muted); }
.header-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.sample-label { color: var(--muted); font-size: 12px; margin-right: 12px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: 0 0 36px; background: transparent; border: 1px solid transparent; border-radius: var(--radius); }
.icon-button:hover { background: var(--surface); border-color: var(--bevel-light) var(--edge-dark) var(--edge-dark) var(--bevel-light); }
.icon-button[aria-pressed="true"] { color: var(--selection-ink); background: var(--selection); border-color: var(--line); }
.icon-button[aria-pressed="true"] .icon { fill: var(--selection); stroke-width: 2; }
.conversation-options { position: relative; }
.conversation-options summary { list-style: none; cursor: pointer; }
.conversation-options summary::-webkit-details-marker { display: none; }
.options-menu { position: absolute; right: 0; top: 38px; z-index: 5; width: 205px; padding: 3px; background: var(--canvas); border: 1px solid; border-color: var(--bevel-light) var(--edge-dark) var(--edge-dark) var(--bevel-light); box-shadow: 1px 1px var(--edge-mid); }
.options-menu button { display: block; width: 100%; padding: 11px; text-align: left; font-size: 12px; background: transparent; border: 0; }
.options-menu button:hover { background: var(--surface-hover); }
.transcript-scroll { flex: 1; min-height: 0; overflow: auto; scroll-padding-bottom: 20px; margin: 0 12px; background: var(--surface); border: 1px solid; border-color: var(--edge-mid) var(--bevel-light) var(--bevel-light) var(--edge-mid); box-shadow: inset 1px 1px var(--edge-dark); }
.transcript { width: calc(100% - 44px); margin: 0 auto; padding: 27px 0 15px; }
.conversation-date { margin: 0 0 27px; text-align: center; font-size: 12px; color: var(--muted); }
.message { margin-bottom: 26px; }
.member-message { display: flex; flex-direction: column; align-items: flex-end; padding-left: 35px; }
.message-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; font-size: 16px; }
.member-message .message-text { padding: 11px 15px; background: var(--bubble); border: 1px solid; border-color: var(--bevel-light) var(--edge-mid) var(--edge-mid) var(--bevel-light); max-width: 68ch; }
.message-meta { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); margin: 9px 3px 0; }
.message-meta .icon { width: 12px; height: 12px; flex-basis: 12px; }
.jake-message { padding-right: 20px; }
.message-author { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; }
.message-author .avatar { height: 27px; width: 27px; flex-basis: 27px; font-size: 11px; }
.message-author strong { font-size: 14px; font-weight: 650; }
.human-tag { font-size: 12px; color: var(--muted); border: 1px solid var(--line); padding: 2px 5px; }
.jake-note { margin-left: 36px; padding: 15px 17px 10px; background: var(--note); border: 1px solid; border-color: var(--bevel-light) var(--edge-dark) var(--edge-dark) var(--bevel-light); box-shadow: inset -1px -1px var(--edge-mid); }
.jake-note .message-text { max-width: 70ch; }
.note-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.signature { font-size: 13px; color: var(--muted); }
.copy-button { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); background: transparent; padding: 5px; border: 1px solid transparent; }
.copy-button .icon { width: 13px; height: 13px; flex-basis: 13px; }
.copy-button:hover { color: var(--ink); border-color: var(--line); }
.reply-example { margin: 7px 3px 0 36px; color: var(--muted); font-size: 12px; }
.composer-area { width: calc(100% - 24px); margin: 0 auto; padding: 11px 0 9px; }
.waiting-strip { display: flex; gap: 10px; align-items: center; min-height: 36px; margin-bottom: 10px; padding: 8px 11px; border: 1px solid; border-color: var(--edge-mid) var(--bevel-light) var(--bevel-light) var(--edge-mid); background: var(--amber-surface); color: var(--amber-ink); }
.clock-mark { display: flex; }
.clock-mark .icon { width: 17px; height: 17px; flex-basis: 17px; }
.waiting-strip strong { font-size: 12px; font-weight: 650; white-space: nowrap; }
.waiting-copy { font-size: 12px; padding-left: 12px; border-left: 1px solid var(--amber-dot); }
.example-tag { margin-left: auto; flex-shrink: 0; font-size: 12px; }
.composer-box { display: flex; align-items: flex-end; gap: 10px; padding: 10px; border: 1px solid; border-color: var(--edge-mid) var(--bevel-light) var(--bevel-light) var(--edge-mid); background: var(--surface); box-shadow: inset 1px 1px var(--edge-dark); }
.composer-box:focus-within { border-color: var(--blue); outline: 1px solid var(--blue); }
textarea { display: block; flex: 1; min-width: 0; width: 100%; min-height: 47px; max-height: 150px; padding: 2px 2px; color: var(--ink); background: transparent; border: 0; border-radius: 0; resize: vertical; font-size: 14px; line-height: 1.6; }
textarea:focus { outline: 0; }
.send-button { min-height: 38px; gap: 8px; padding: 8px 12px; font-size: 12px; }
.send-button .icon { width: 16px; height: 16px; flex-basis: 16px; }
.composer-footnote { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 10px 1px 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.composer-footnote p { margin: 0; }
.preview-hint { display: block; margin-top: 2px; }
.keyboard-hint { white-space: nowrap; }
.keyboard-hint span { padding: 0 5px; }
.composer-error { font-size: 12px; color: var(--danger); margin: 8px 0 0; }
.empty-conversation { max-width: 520px; margin: 7vh auto 40px; text-align: center; }
.empty-mark { display: inline-flex; align-items: center; justify-content: center; height: 44px; width: 44px; margin-bottom: 18px; background: var(--blue); color: var(--on-blue); border: 1px solid var(--edge-dark); }
.empty-mark .icon { width: 25px; height: 25px; }
.empty-conversation h2 { margin: 0 0 12px; font-size: 27px; font-weight: 600; letter-spacing: -.7px; line-height: 1.3; text-wrap: balance; }
.empty-conversation p { margin: 0 auto; max-width: 40ch; color: var(--muted); font-size: 13px; line-height: 1.8; }
.starter-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 24px 0 0; }
.starter-actions button { font-size: 11px; padding: 9px 11px; color: var(--ink); border: 1px solid var(--line); background: var(--surface); }
.starter-actions button:hover { background: var(--selection); color: var(--selection-ink); }
dialog { color: var(--ink); background: var(--canvas); border: 2px solid; border-color: var(--bevel-light) var(--edge-dark) var(--edge-dark) var(--bevel-light); padding: 22px; width: min(480px, calc(100% - 24px)); box-shadow: inset -1px -1px var(--edge-mid); }
dialog::backdrop { background: rgb(14 18 30 / .45); }
.dialog-header { display: flex; align-items: center; gap: 12px; justify-content: space-between; }
dialog h2 { margin: 0; font-size: 20px; font-weight: 650; letter-spacing: -.4px; }
.dialog-intro, .small-dialog > p { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 9px 0 25px; }
.theme-choices { margin: 0; padding: 0; border: 0; }
.theme-choices legend { font-size: 12px; font-weight: 600; margin-bottom: 10px; }
.theme-choices > button { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 13px; margin-bottom: 9px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; }
.theme-choices > button[aria-pressed="true"] { background: var(--surface); border-color: var(--blue); }
.theme-choices > button > span:nth-child(2) { flex: 1; }
.theme-choices small { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; }
.choice-check { visibility: hidden; }
[aria-pressed="true"] > .choice-check { visibility: visible; color: var(--blue); }
.settings-note { border-top: 1px solid var(--line-soft); margin-top: 22px; padding-top: 20px; }
.settings-note h3 { font-size: 12px; margin: 0 0 7px; font-weight: 600; }
.settings-note p { font-size: 12px; line-height: 1.7; color: var(--muted); margin: 0; }
.text-button { border: 1px solid transparent; background: transparent; padding: 8px 0; margin-top: 15px; font-size: 12px; }
.text-button:hover { text-decoration: underline; }
.danger-text { color: var(--danger); }
.destructive-button { color: var(--danger); }
.destructive-button:hover:not(:disabled) { background: var(--surface-hover); }
.dialog-actions { display: flex; gap: 9px; justify-content: flex-end; margin-top: 24px; }
.small-dialog label { display: block; font-size: 13px; margin: 24px 0 8px; }
.small-dialog input { width: 100%; padding: 11px; color: var(--ink); background: var(--surface-raised); border: 1px solid var(--line); }
.toast { position: fixed; left: 50%; bottom: 48px; transform: translateX(-50%); z-index: 40; max-width: calc(100% - 32px); padding: 12px 18px; background: var(--canvas); color: var(--ink); font-size: 12px; border: 2px solid; border-color: var(--bevel-light) var(--edge-dark) var(--edge-dark) var(--bevel-light); }
.mobile-only { display: none; }
.noscript-note { position: fixed; bottom: 0; width: 100%; padding: 18px; background: var(--amber-surface); color: var(--amber-ink); z-index: 50; }
@media (max-width: 1100px) {
  .window-workspace { grid-template-columns: 242px minmax(0, 1fr); }
  .brand { font-size: 22px; }
  .brand-mark { width: 32px; height: 32px; }
  .sample-label { display: none; }
  .conversation-header { padding: 16px 23px; }
  .transcript { width: calc(100% - 48px); }
  .composer-area { width: calc(100% - 40px); }
  .waiting-strip { flex-wrap: wrap; }
  .example-tag { margin-left: auto; }
  .keyboard-hint { display: none; }
}
@media (max-width: 760px) {
  .window-workspace { display: block; min-height: 0; }
  .main-panel { height: 100%; }
  .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; width: min(320px, calc(100% - 48px)); transform: translateX(-102%); visibility: hidden; transition: transform 220ms var(--ease); padding-top: 24px; border: 2px solid; border-color: var(--bevel-light) var(--edge-dark) var(--edge-dark) var(--bevel-light); }
  .sidebar.open { transform: translateX(0); visibility: visible; }
  .drawer-backdrop { position: fixed; inset: 0; z-index: 15; border: 0; border-radius: 0; background: rgb(14 18 30 / .4); }
  .mobile-only { display: inline-flex; }
  .brand { font-size: 24px; }
  .brand-mark { width: 36px; height: 36px; }
  .conversation-header { min-height: 78px; padding: 12px 14px; gap: 9px; }
  .header-identity { flex: 1; gap: 9px; }
  .header-identity > .avatar { display: none; }
  h1 { font-size: 16px; letter-spacing: -.2px; }
  .human-label { font-size: 12px; line-height: 1.5; }
  .header-actions { gap: 1px; }
  .header-actions .icon-button { width: 32px; height: 36px; flex-basis: 32px; }
  .header-actions .icon { height: 18px; width: 18px; }
  .transcript-scroll { margin: 0 7px; }
  .transcript { width: calc(100% - 24px); padding-top: 23px; padding-bottom: 12px; }
  .conversation-date { margin-bottom: 24px; }
  .message { margin-bottom: 28px; }
  .message-text { font-size: 15px; }
  .member-message { padding-left: 22px; }
  .member-message .message-text { padding: 11px 14px; }
  .jake-message { padding-right: 8px; }
  .jake-note { margin-left: 0; padding: 15px 16px 11px; }
  .reply-example { margin-left: 2px; }
  .composer-area { width: calc(100% - 24px); padding: 9px 0 max(12px, env(safe-area-inset-bottom)); }
  .waiting-strip { flex-wrap: wrap; row-gap: 3px; padding: 9px 11px; margin-bottom: 9px; }
  .waiting-copy { order: 4; border: 0; padding: 1px 0 0 28px; flex-basis: 100%; font-size: 12px; }
  .waiting-strip strong { font-size: 12px; }
  .example-tag { font-size: 12px; }
  .clock-mark .icon { width: 16px; height: 16px; flex-basis: 16px; }
  .composer-box { padding: 10px; gap: 7px; }
  textarea { font-size: 16px; min-height: 46px; max-height: 110px; }
  .send-button { min-height: 38px; font-size: 11px; padding: 8px 10px; gap: 5px; }
  .composer-footnote { padding-top: 7px; font-size: 12px; }
  .preview-hint { display: block; }
  .empty-conversation { margin-top: 4vh; }
  .empty-conversation h2 { font-size: 24px; }
  .empty-conversation p { font-size: 12px; }
  .starter-actions { margin-top: 18px; }
  dialog { padding: 22px; }
  .dialog-actions { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
