:root {
  color-scheme: dark;
  --background: #101012;
  --surface: #19191c;
  --card: #212124;
  --line: #29292d;
  --text: #f5f5f5;
  --muted: #a3a3a3;
  --green: #78d892;
  --gold: #dfbb69;
  font: 13px/1.48 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--text); }
[hidden] { display: none !important; }
button, input { font: inherit; color: inherit; }
button, summary { cursor: pointer; }
a { color: inherit; text-underline-offset: 2px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid #d8d8e0; outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 550; font-size: 15px; }
h3 { font-size: 13px; }
p, .muted, small { color: var(--muted); }
small { display: block; font-size: 13px; }
small.inline { display: inline; }
em { color: var(--gold); font-style: normal; }
kbd { font: inherit; }
.topbar { display: flex; align-items: center; min-height: 42px; padding: 0 17px; gap: 10px; color: var(--muted); }
.top-divider { height: 16px; border-left: 1px solid var(--line); margin: 0 3px; }
.brand, .workspace-marker, .avatar { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; background: #363636; color: var(--text); font-size: 11px; font-weight: 650; text-decoration: none; flex: none; }
.avatar { border-radius: 50%; }
.top-actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.top-actions a { text-decoration: none; }
.top-actions button { padding: 0; color: inherit; border: 0; background: transparent; }
.window { position: relative; min-height: calc(100dvh - 50px); margin: 0 8px 8px; background: var(--surface); border: 1px solid #222; border-radius: 16px; overflow: clip; }
.tabs { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 49px; padding: 0 13px 0 19px; border-bottom: 1px solid var(--line); }
.tabs nav { display: flex; align-items: stretch; gap: 13px; align-self: stretch; overflow: auto; }
.tabs a { display: flex; align-items: center; padding: 0 5px; color: var(--muted); text-decoration: none; border-bottom: 1px solid transparent; white-space: nowrap; }
.tabs a[aria-current="page"], .tabs a:hover { color: var(--text); }
.tabs a[aria-current="page"] { border-bottom-color: var(--text); }
.connect-agents { border-radius: 18px !important; white-space: nowrap; }
.mode { position: absolute; right: 20px; top: 61px; color: var(--muted); font-size: 11px; }
main { padding: 63px 24px 48px; }
.layout { margin: 0 auto; }
.wide { max-width: 1304px; }
.edge { max-width: 1376px; padding-inline: 7px; }
.narrow { max-width: 960px; }
.split { display: grid; grid-template-columns: minmax(0, 2.52fr) minmax(0, 1fr); gap: clamp(26px, 4.35vw, 64px); align-items: start; }
.edge.split { grid-template-columns: minmax(0, 2.74fr) minmax(0, 1fr); gap: clamp(25px, 3.8vw, 56px); }
.heading { display: flex; align-items: start; justify-content: space-between; gap: 13px; margin-bottom: 22px; }
.heading p { margin-top: 3px; }
.stack > * + * { margin-top: 48px; }
.card { border: 1px solid var(--line); background: var(--card); border-radius: 6px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 4px 10px; min-height: 27px; border: 1px solid #383838; border-radius: 6px; background: #2a2a2a; text-decoration: none; white-space: nowrap; color: var(--text); }
.button:hover { background: #363636; }
.button:disabled { opacity: .48; cursor: default; }
.button.primary { background: #e7e7e7; color: #141414; }
.button.icon { min-width: 30px; }
.tools { display: flex; align-items: center; gap: 8px; }
.empty { display: grid; place-items: center; min-height: 196px; text-align: center; padding: 24px; }
.empty strong { font-weight: 500; }
.empty p { margin: 5px 0; }
.empty .button { margin-top: 10px; }
.tile-list { display: grid; gap: 7px; }
.tile, .tile-content { display: flex; gap: 13px; align-items: center; text-align: left; }
.tile { padding: 12px 14px; width: 100%; min-height: 56px; }
button.tile:hover { background: #303030; }
.tile-icon { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; font-size: 12px; font-weight: 650; background: #444; }
.peach { background: #c99175; }.blue { background: #4770b0; }.cyan { background: #148fc6; }.orange { background: #be701c; }.neutral { background: #393939; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 12px 15px; text-decoration: none; }
.row + .row, .meter + .meter { border-top: 1px solid var(--line); }
.row .large, .usage-value { font-size: 22px; letter-spacing: -.035em; }
.models { overflow: hidden; }
.models .row { padding: 3px 12px; background: var(--surface); }
.models .model-header { background: var(--card); color: var(--muted); padding: 6px 12px; }
.models small { color: #878787; }
.search { display: flex; align-items: center; gap: 6px; background: #252525; color: #a0a0a0; border: 1px solid #303030; border-radius: 6px; padding: 4px 8px; }
input[type="search"], input[type="text"] { border: 0; background: transparent; width: min(130px, 100%); outline-offset: 1px; }
input[type="text"] { background: #181818; border: 1px solid var(--line); border-radius: 5px; min-height: 29px; padding: 3px 9px; }
.switch { appearance: none; position: relative; margin: 0; width: 23px; height: 14px; background: #565656; border: 1px solid #707070; border-radius: 4px; flex: none; cursor: pointer; }
.switch::after { content: ""; position: absolute; inset: 1px auto 1px 1px; width: 10px; border-radius: 2px; background: #f5f5f5; }
.switch:checked { background: #5364fe; border-color: #665ef5; }
.switch:checked::after { transform: translateX(9px); }
.segmented { display: flex; width: fit-content; margin-bottom: 12px; border-radius: 6px; padding: 2px; background: #303030; }
.segmented button { padding: 3px 12px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); }
.segmented button[aria-pressed="true"] { background: #484848; color: var(--text); }
.no-models { margin-top: 12px; }
.limit-aside { margin-top: 66px; }
.meter { padding: 10px 15px; }
.meter > div { display: flex; justify-content: space-between; gap: 8px; }
.meter b { padding: 2px 5px; color: var(--green); background: #20372a; border-radius: 4px; margin-left: 4px; font-size: 11px; font-weight: 500; }
progress { display: block; width: 100%; height: 8px; margin-top: 10px; border: 0; border-radius: 3px; overflow: hidden; }
progress::-webkit-progress-bar { background: #5b5b5b; }
progress::-webkit-progress-value { background: var(--green); }
progress::-moz-progress-bar { background: var(--green); }
.template-aside h3 { margin: 22px 0 9px; }
.connect { padding: 12px 15px; }
.connect summary { list-style: none; position: relative; padding-inline-end: 20px; }
.connect summary::after { content: "+"; position: absolute; right: 6px; top: 8px; color: var(--muted); }
.connect[open] summary::after { content: "−"; }
.connect b, .chart-key b { color: var(--green); font-weight: 500; }
.connect p { margin-top: 10px; }
.primary-summary .heading { margin-bottom: 0; }
.usage-value { margin: 8px 0 12px; }
.chart svg { width: calc(100% - 28px); height: 230px; margin-left: 20px; overflow: visible; }
.chart-times, .chart-key { display: flex; justify-content: space-between; color: var(--muted); margin-top: 9px; gap: 9px; font-size: 11px; }
.chart-times { padding: 3px 14px; background: var(--card); border-radius: 4px; }
.chart-key i { color: var(--gold); }
.cards-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.tile-panel { padding: 13px 15px; }
.tile-panel .row, .tile-panel .meter { padding-inline: 0; }
.tile-panel .heading { margin-bottom: 16px; }
.log-bars { display: flex; justify-content: space-between; gap: 2px; margin: 22px 0 15px; }
.log-bars i { display: block; flex: 1; background: #303030; height: 32px; border-radius: 2px; }
.log-bars .bright { background: #777; }
.log { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); margin-bottom: 8px; }
.log b { font-weight: 500; font-size: 11px; padding: 1px 7px; margin-right: 5px; background: #383838; }
.audit { border-top: 1px solid var(--line); padding-top: 25px; }
.audit-lines { display: grid; gap: 6px; margin-top: 12px; }
.audit-lines i { height: 13px; background: #2d2d2d; border-radius: 9px; }
.audit-lines i:nth-child(even) { width: 46%; }
.slack { max-width: 705px; text-align: center; }
.slack .heading { display: block; }
.slack h1 { font-size: 20px; }
.slack-mark { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 14px; border-radius: 9px; border: 1px solid #484848; background: linear-gradient(#393939,#262626); color: #b0b0b0; font-size: 24px; }
.chat { display: flex; flex-direction: column; align-items: start; text-align: start; padding: 60px clamp(22px, 6vw, 72px); min-height: 395px; margin-top: 38px; }
.bubble { color: var(--text); padding: 7px 10px; border-radius: 15px; margin-bottom: 5px; max-width: 75%; background: #101010; }
.bubble.outgoing { align-self: end; }
.bubble strong { color: #adc4f0; }
.chat-author { margin: 20px 0 5px; color: var(--muted); }
.chat-author span { font-size: 10px; color: #777; }
.settings { max-width: 1120px; display: grid; grid-template-columns: 185px minmax(0, 640px); gap: 62px; }
.settings h2 { margin: 35px 0 13px; }
.settings-nav { display: grid; gap: 4px; align-content: start; }
.settings-nav p { margin: 14px 0 3px; }
.settings-nav button { padding: 5px 8px; text-align: left; border: 0; border-radius: 5px; background: transparent; color: var(--muted); }
.settings-nav button[aria-pressed="true"] { color: var(--text); background: #3a3a3a; }
dialog { position: relative; width: min(92vw,470px); border: 1px solid #424242; border-radius: 10px; background: #242424; color: var(--text); padding: 22px; }
dialog::backdrop { background: #0009; }
dialog .close { position: absolute; top: 14px; right: 14px; }
dialog h2 { margin-bottom: 14px; padding-right: 42px; }
dialog input[type="search"] { width: 100%; }
#dialog-body p { margin-bottom: 12px; }
.dialog-links { display: grid; gap: 6px; margin-top: 12px; }
.dialog-links a { border: 1px solid var(--line); border-radius: 4px; padding: 5px 8px; text-decoration: none; }
.connection-status { margin: 60px auto; max-width: 600px; text-align: center; padding: 0 18px; }
.connection-status .button { margin-top: 14px; }
.live-rows:empty { display: none; }
.login-page { display: grid; place-items: center; min-height: 100dvh; padding: 24px; }
.login-card { display: grid; justify-items: start; gap: 16px; width: min(100%, 420px); padding: 32px; }
.login-card h1 { font-size: 22px; }
.login-social { display: grid; gap: 10px; width: 100%; }
.login-social .button { width: 100%; min-height: 38px; font-size: 14px; }
.login-divider { display: flex; align-items: center; gap: 12px; width: 100%; color: var(--muted); font-size: 12px; }
.login-divider::before, .login-divider::after { content: ""; flex: 1; border-top: 1px solid #383838; }
@media (max-width: 840px) {
  .split, .edge.split, .settings { grid-template-columns: 1fr; gap: 28px; }
  .settings-nav { grid-template-columns: repeat(auto-fit,minmax(125px,1fr)); }
  .settings-nav p { display: none; }
  .limit-aside { margin-top: 0; }
}
@media (max-width: 540px) {
  .topbar { padding-inline: 11px; }
  .top-actions { gap: 10px; }
  .window { margin-inline: 4px; }
  .tabs { padding-inline: 9px; }
  .tabs nav { gap: 7px; }
  .tabs .connect-agents { display: none; }
  main { padding: 48px 12px 34px; }
  .edge { padding-inline: 0; }
  .cards-three { grid-template-columns: 1fr; }
  .heading { flex-wrap: wrap; }
  .chat { padding-block: 28px; min-height: 0; }
}

/* Marketing palette alignment (en-style, 2026-12-06) */
.login-card { border-radius: 14px; }
.login-social .button { min-height: 44px; border-radius: 999px; font-size: 14px; }
.login-card .button.primary { min-height: 44px; border-radius: 999px; }
