:root {
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
  font: 16px/1.5 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f0f1f2;
  background: #0a0a0a;
  --surface: #1e1e1e;
  --raised: #222529;
  --line: #2c2f34;
  --muted: #a7adb7;
  --accent: #8ce3d3;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .65; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
button, input, textarea { min-width: 0; }
button { border: 0; background: transparent; }
i[data-icon] { display: inline-flex; flex: 0 0 auto; vertical-align: middle; }
i[data-icon] svg { width: 1.125rem; height: 1.125rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.workspace { display: grid; grid-template-columns: 293px minmax(0, 1fr); height: 100vh; height: 100dvh; overflow: hidden; background: radial-gradient(ellipse at 50% 42%, #0c0c0c 0%, #0a0a0a 64%, #090909 100%); }
.sidebar { display: flex; flex-direction: column; min-height: 0; min-width: 0; padding: 13px 15px 19px 20px; }
.sidebar-top { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.icon-button, .send { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; flex: none; padding: 0; }
.toolbar-button { background: #1b1b1b; border: 1px solid #252525; }
.icon-button:hover, .helm-capsule:hover { background: #303030; }
.toolbar-button i svg { width: 25px; height: 25px; }
.brand { align-self: center; display: grid; justify-items: center; align-content: start; gap: 1px; width: 103px; height: 102px; flex: none; margin: 23px 0 13px -3px; border-radius: 18px; padding: 10px 0 0; background: #1b1b1b; font-size: 16px; line-height: 20px; }
.brand:hover { background: #242424; }
.brand-mark, .capsule-mark { display: grid; place-items: center; overflow: hidden; flex: none; }
.brand-mark { width: 70px; height: 68px; }
.brand-mark img, .capsule-mark img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: screen; transform: scale(1.48); }
.search { display: flex; align-items: center; gap: 8px; background: #1b1b1b; padding: 5px 12px; border: 1px solid #323232; border-radius: 20px; margin-bottom: 7px; }
.search input { width: 100%; min-height: 29px; background: none; border: 0; outline: 0; }
.search:focus-within { border-color: #858585; }
.case-list { margin-right: -24px; display: flex; flex-direction: column; overflow: auto; min-height: 0; scrollbar-width: thin; }
.case-button { display: flex; align-items: center; gap: 15px; width: 100%; text-align: left; border-radius: 12px; padding: 5px 3px 5px 4px; min-height: 64px; flex: none; }
.case-button:hover, .case-button:focus-visible, .profile:hover { background: #1a1a1a; }
.case-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; color: #f4f4f4; }
.case-icon i svg { width: 42px; height: 42px; stroke-width: 1.55; }
.case-label { min-width: 0; flex: 1; }
.case-label strong, .case-label small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.case-label strong { font-size: 17px; font-weight: 500; line-height: 1.28; }
.case-label small { color: #dedede; font-size: 14px; line-height: 1.35; margin-top: 2px; letter-spacing: -.01em; }
.case-list > .muted { padding-inline: 4px; }
.sidebar-footer { margin-top: auto; display: flex; min-height: 39px; align-items: center; gap: 8px; padding-top: 9px; }
.sidebar-footer .toolbar-button, .initials { width: 39px; height: 39px; }
.profile { display: flex; align-items: center; text-align: left; flex: 1; min-width: 0; gap: 8px; padding: 0; border-radius: 20px; }
.profile strong { display: block; min-width: 0; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; font-size: 15px; font-weight: 500; }
.initials { display: grid; place-items: center; background: #1d1d1d; border: 1px solid #282828; border-radius: 50%; font-size: 13px; font-weight: 650; flex: none; }
.main { display: grid; grid-template-rows: 69px minmax(0, 1fr) auto; min-width: 0; min-height: 0; }
.topbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 9px; padding: 12px 10px 0; }
.helm-capsule { grid-column: 2; display: inline-flex; gap: 9px; align-items: center; justify-content: center; height: 44px; padding: 0 12px; background: #1b1b1b; border-radius: 999px; font-size: 19px; }
.capsule-mark { width: 38px; height: 36px; }
.helm-capsule i svg { width: 16px; height: 16px; stroke-width: 2.25; }
.chat-scroll { overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 53px 20px 16px 24px; }
.chat-width { width: min(100%, 1008px); margin-inline: auto; }
.case-detail h1 { font-size: clamp(1.65rem, 3vw, 2.25rem); line-height: 1.15; letter-spacing: -.035em; margin: 0 0 .45rem; overflow-wrap: anywhere; }
.case-detail .actions { margin-bottom: 12px; }
.outline, .primary, .secondary { display: inline-flex; align-items: center; justify-content: center; gap: .48rem; padding: .52rem .8rem; min-height: 2.5rem; border-radius: .55rem; border: 1px solid #3a3e45; font-weight: 600; font-size: .875rem; }
.outline:hover, .secondary:hover { background: var(--raised); }
.primary { background: var(--accent); color: #102421; border-color: transparent; }
.primary:hover { background: #a6f2e2; }
.conversation { display: flex; flex-direction: column; gap: 22px; }
.message { display: flex; flex-direction: column; align-items: flex-start; }
.message.self { align-items: flex-end; }
.bubble { width: fit-content; max-width: min(596px, 88%); background: #1e1e1e; padding: 8px 16px 10px; border-radius: 19px; font-size: 20px; font-weight: 400; line-height: 1.3; overflow-wrap: anywhere; text-align: left; }
.bubble:hover { background: #242424; }
.self .bubble { background: #2c2c2c; padding: 7px 14px; }
.self .bubble:hover { background: #353535; }
.bubble-text { display: block; width: 100%; min-width: 0; padding: 0; text-align: inherit; white-space: pre-wrap; overflow-wrap: inherit; }
.bubble-files { display: flex; flex-wrap: wrap; gap: .4rem; white-space: normal; }
.bubble-text + .bubble-files { margin-top: .55rem; }
.bubble-files .message-chip { max-width: 100%; min-height: 44px; }
.message-chip i { flex: none; }
.message-chip span { overflow-wrap: anywhere; }
.message-time { display: block; width: min(596px, 88%); color: #cfcfcf; text-align: right; padding-right: 46px; font-size: 14px; margin: 3px 0 19px; }
.message-tools { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .65rem; }
.message-chip { color: #eee; border: 1px solid #414141; background: #262626; border-radius: .55rem; display: inline-flex; align-items: center; gap: .36rem; font-size: .875rem; text-align: left; padding: .33rem .55rem; min-width: 0; overflow-wrap: anywhere; }
a.message-chip { text-decoration: none; }
.message-chip:hover { background: #363636; }
.message-chip i svg { width: 1rem; height: 1rem; }
.compose-region { padding: 0 20px max(19px, env(safe-area-inset-bottom)) 24px; }
.composer { background: #202020; border: 1px solid #434343; border-radius: 28px; }
.composer:focus-within { border-color: #606060; }
.compose-row { display: flex; align-items: flex-end; gap: 8px; min-height: 44px; padding: 5px 8px; }
.compose-row textarea { flex: 1; border: 0; background: none; resize: none; outline: 0; font-size: 16px; line-height: 20px; padding: 7px 0; min-height: 34px; max-height: 7rem; }
.compose-row textarea::placeholder { color: #a0a0a0; }
.compose-row .icon-button, .compose-row .send { width: 34px; height: 34px; }
.compose-row .icon-button { background: #292929; color: #bcbcbc; border: 1px solid #373737; }
.compose-row .icon-button:hover { background: #333; color: #f4f4f4; }
.compose-row i svg { width: 21px; height: 21px; stroke-width: 2; }
.compose-row .send { background: #f4f4f4; color: #191919; }
.compose-row .send:not(:disabled):hover { background: #dadada; }
.dictation[aria-pressed="true"] { color: #ffa7a7; }
.attachment-list { display: flex; flex-wrap: wrap; gap: .4rem; padding: .45rem .65rem 0; }
.attachment-list button { padding: 0; display: grid; place-items: center; }
.menu-actions { display: grid; gap: .45rem; }
.menu-actions .secondary { justify-content: flex-start; }
.mobile-only { display: none; }
dialog { width: min(calc(100% - 1.8rem), 33rem); max-height: min(90dvh, 48rem); padding: 0; border: 1px solid #3a3e44; border-radius: .9rem; color: inherit; background: #191b1e; box-shadow: 0 1rem 4rem #0008; overflow: auto; scrollbar-width: thin; }
dialog::backdrop, .scrim { background: #0009; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .7rem 1rem .7rem 1.15rem; border-bottom: 1px solid var(--line); }
.panel-heading h2 { margin: 0; font-size: 1.2rem; line-height: 1.25; }
.panel-body { padding: 1rem 1.15rem 1.2rem; }
.panel-body > :first-child { margin-top: 0; }
.panel-body p { overflow-wrap: anywhere; }
.panel-body h3 { margin: 1rem 0 .35rem; font-size: 1rem; }
.muted, .field small { color: var(--muted); }
.stack { display: grid; gap: .83rem; }
.field { display: grid; gap: .3rem; font-size: .875rem; }
.field input, .field textarea, .field select { border: 1px solid #414650; background: #111214; padding: .6rem; border-radius: .5rem; font-size: 1rem; width: 100%; }
.field textarea { min-height: 5rem; resize: vertical; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin-top: .35rem; }
.row { display: flex; justify-content: space-between; gap: .6rem; align-items: center; padding: .65rem; background: #202226; border: 1px solid var(--line); border-radius: .55rem; }
.row + .row { margin-top: .4rem; }
.row small, .row strong { display: block; }
.row small { color: var(--muted); margin-top: .15rem; }
.row > span { min-width: 0; overflow-wrap: anywhere; }
.amount { text-align: right; flex: none; }
.panel-stat { border: 1px solid #354943; border-radius: .7rem; background: #1c2b27; padding: .78rem; }
.panel-stat strong { display: block; color: #bcf4e5; font-size: 1.55rem; }
.form-error { color: #ffb7ae; margin: 0; }
.notice { position: fixed; z-index: 5; bottom: 6.1rem; right: 1rem; max-width: calc(100% - 2rem); border: 1px solid #586a63; border-radius: .55rem; background: #263630; padding: .5rem .75rem; box-shadow: 0 .4rem 1rem #0006; }
@media (max-width: 760px) {
  .workspace { display: block; }
  .main { height: 100%; grid-template-rows: 60px minmax(0, 1fr) auto; }
  .sidebar { display: none; position: fixed; z-index: 3; inset: 0 auto 0 0; width: min(293px, 89vw); border-right: 1px solid #222; background: #101010; }
  .workspace.cases-open .sidebar { display: flex; }
  .scrim { position: fixed; z-index: 2; inset: 0; width: 100%; }
  .mobile-only { display: inline-grid; }
  .topbar { padding: 9px 11px 0; }
  .helm-capsule { height: 40px; font-size: 17px; }
  .capsule-mark { width: 33px; height: 32px; }
  .chat-scroll { padding: 24px 12px 12px; }
  .compose-region { padding-inline: 10px; }
  .compose-row { min-height: 48px; padding: 5px 7px; }
  .compose-row textarea { padding-block: 9px; min-height: 38px; }
  .compose-row .icon-button, .compose-row .send { width: 38px; height: 38px; }
  .case-list { margin-right: -8px; }
  .bubble { font-size: 16px; padding: 8px 12px; }
  .self .bubble { padding: 7px 11px; }
  .conversation { gap: 17px; }
  .message-time { padding-right: 12px; margin: 2px 0 11px; }
}
@media (max-height: 670px) {
  .brand { margin-block: 12px 6px; }
  .sidebar-footer { padding-top: 5px; }
}
.email-details { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .3rem .8rem; margin: 0 0 .8rem; }
.email-details dt { color: var(--muted); }
.email-details dd { margin: 0; overflow-wrap: anywhere; }
.email-body { padding: .7rem; background: var(--surface); border-radius: .5rem; white-space: pre-wrap; }
.text-button { color: var(--accent); padding: .2rem 0; font-size: .82rem; text-decoration: underline; text-underline-offset: .15em; }
.usage-details { margin-top: .75rem; }
.panel-notice { margin: 0 1.15rem 1rem; padding: .5rem .65rem; border: 1px solid #586a63; border-radius: .5rem; background: #263630; color: #eefbf7; }
.guide-section { margin-top: 1rem; border-top: 1px solid var(--line); }
.guide-row { margin-top: .5rem; }
.guide-row button { flex: none; }
.guide-text { white-space: pre-wrap; }
.guide-state { color: var(--accent); }
.balance-alert { border: 1px solid #6c5436; border-radius: .55rem; padding: .55rem .7rem; background: #31281a; color: #f3cd90; }
.guide-row small { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
@media (max-width: 760px) {
  dialog { max-height: calc(100dvh - 1.25rem); }
  .panel-body input, .panel-body textarea, .panel-body select { font-size: 1rem; }
  .panel-body .primary, .panel-body .secondary, .panel-heading .icon-button { min-height: 2.75rem; }
  .panel-body form[data-form="authRequest"] .primary,
  .panel-body form[data-form="authVerify"] .primary,
  .panel-body form[data-form="saveOnboarding"] .primary { width: 100%; }
  .panel-body [data-form="saveOnboarding"] textarea { max-height: 35dvh; }
}
.prompt-bubble { margin: 0; cursor: default; }
.prompt-bubble:hover { background: #1e1e1e; }
.interview-actions { display: flex; align-items: baseline; gap: 8px 18px; flex-wrap: wrap; margin-top: 15px; }
.interview-actions .text-button { color: #bfbfbf; min-height: 35px; }
.interview-actions .muted { margin: 0; }
.entry[data-stage="activation"],
.entry[data-stage="offline"] { width: min(100%, 540px); }
.entry[data-stage="activation"] .entry-brand,
.entry[data-stage="offline"] .entry-brand { margin-bottom: 20px; }
.entry[data-stage="activation"] h1,
.entry[data-stage="offline"] h1 { font-size: clamp(1.65rem, 3vw, 2.25rem); line-height: 1.15; font-weight: 550; margin: 0 0 12px; }
.entry[data-stage="activation"] .entry-fields,
.entry[data-stage="offline"] .entry-fields { width: min(100%, 460px); display: grid; gap: 18px; margin-top: 23px; }
.entry[data-stage="activation"] input { border-color: #414141; background: #181818; }
.entry[data-stage="activation"] .primary { background: #f1f1f1; color: #101010; border-color: transparent; min-height: 44px; }
.entry[data-stage="activation"] .primary:hover { background: #ddd; }
.entry[data-stage="activation"] .checkout-price { margin: 0; color: #eee; }
.is-entry:not(.has-workspace) .sidebar-top,
.is-entry:not(.has-workspace) #cases,
.is-entry:not(.has-workspace) .sidebar-footer,
.is-entry:not(.has-workspace) .topbar [data-action="open-cases"] { visibility: hidden; }
@media (max-width: 760px) {
  .entry[data-stage="activation"], .entry[data-stage="offline"] { padding: 0 6px 18px; }
  .entry[data-stage="activation"] .primary { width: 100%; }
  .entry[data-stage="activation"] .entry-brand,
  .entry[data-stage="offline"] .entry-brand { margin-bottom: 16px; }
  .interview-actions .text-button { min-height: 44px; }
}
