/* Copied from the canvas (designs/admin-panel/.../Canvas.dc.html), never edited there. */
html, body { margin: 0; padding: 0; background: #f7f6f1; }
body, input, textarea, button { font-family: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace; }
* { box-sizing: border-box; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #dcd9cf; border-radius: 100px; border: 2px solid #f7f6f1; }
::-webkit-scrollbar-track { background: transparent; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 oklch(0.55 0.075 150 / 0.5); } 70% { box-shadow: 0 0 0 6px oklch(0.55 0.075 150 / 0); } 100% { box-shadow: 0 0 0 0 oklch(0.55 0.075 150 / 0); } }
@keyframes viewin { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.viewin { animation: viewin .18s cubic-bezier(.3,.9,.2,1) both; }

.shell { height: 100vh; display: flex; flex-direction: column; color: #1c1b18; font-size: 13px; overflow: hidden; }
.top { flex-shrink: 0; display: flex; align-items: center; gap: 14px; padding: 13px 26px; border-bottom: 1px solid #e6e3da; background: #fdfcf9; }
.brand { display: flex; align-items: center; gap: 10px; }
.mark { position: relative; display: inline-grid; place-items: center; width: 24px; height: 24px; }
.mark b { font-weight: 700; font-size: 17px; letter-spacing: -0.04em; }
.mark i { position: absolute; top: -1px; right: -4px; width: 5px; height: 5px; border-radius: 50%; background: oklch(0.55 0.075 150); animation: ping 2.4s cubic-bezier(.4,0,.2,1) infinite; }
.brand-name { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: #97948a; }
.spacer { flex: 1; }
.who { font-size: 10.5px; color: #54524b; border: 1px solid #e6e3da; background: #f1efe8; padding: 3px 10px; border-radius: 100px; cursor: pointer; }
.who:hover { color: #1c1b18; }

.body { flex: 1; min-height: 0; display: grid; grid-template-columns: 172px 1fr; }
.nav { border-right: 1px solid #e6e3da; padding: 18px 0; display: flex; flex-direction: column; gap: 2px; }
.nav-item { display: flex; align-items: center; gap: 9px; padding: 8px 20px; cursor: pointer; font-size: 12px; color: #97948a; border-left: 2px solid transparent; }
.nav-item.on { color: #1c1b18; border-left-color: #1c1b18; }
.nav-item:hover { color: #1c1b18; }
.main { min-width: 0; min-height: 0; overflow-y: auto; }
.view { padding: 34px 40px 56px; max-width: 1060px; }

.head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 24px; }
.head h1 { margin: 0; font-weight: 500; font-size: 21px; letter-spacing: -0.02em; }
.back { font-size: 15px; color: #97948a; cursor: pointer; padding: 2px 6px 2px 0; }
.back:hover { color: #1c1b18; }
.search { width: 220px; background: #fdfcf9; border: 1px solid #e6e3da; border-radius: 6px; padding: 6px 11px; font-size: 11.5px; color: #1c1b18; outline: none; }
.search:focus { border-color: oklch(0.55 0.075 150 / 0.35); }
.soft { font-size: 10.5px; color: #97948a; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 26px; }
.kpi { border: 1px solid #e6e3da; background: #fdfcf9; border-radius: 8px; padding: 15px 16px 13px; }
.kpi-label { display: block; font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; color: #97948a; margin-bottom: 7px; }
.kpi-value { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.unrecorded-note { font-size: 10.5px; margin-left: 6px; letter-spacing: 0; font-weight: 400; }
.unpriced { font-size: 10.5px; color: oklch(0.58 0.10 28); margin-left: 6px; letter-spacing: 0; font-weight: 400; }

.table { border: 1px solid #e6e3da; background: #fdfcf9; border-radius: 9px; overflow: hidden; }
.thead, .trow { display: grid; gap: 10px; padding: 10px 18px; }
.thead { border-bottom: 1px solid #efece4; font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: #97948a; }
.thead span { cursor: pointer; }
.thead span:hover, .thead span.on { color: #1c1b18; }
.trow { padding: 11px 18px; border-bottom: 1px solid #f1efe8; font-variant-numeric: tabular-nums; align-items: baseline; color: #54524b; }
.trow.click { cursor: pointer; }
.trow.click:hover { background: #f1efe8; }
.num { text-align: right; }
.ink { color: #1c1b18; }
.cell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.orgs .thead, .orgs .trow { grid-template-columns: minmax(0,1.8fr) minmax(0,.8fr) minmax(0,.85fr) minmax(0,.7fr) minmax(0,.75fr) minmax(0,.75fr) minmax(0,.75fr) minmax(0,.7fr); }
.margin-table { margin-bottom: 22px; }
.margin-table .thead, .margin-table .trow { grid-template-columns: 1.6fr 1.5fr .7fr .75fr .6fr .7fr .75fr .6fr .6fr; }
.model-cost { white-space: nowrap; }
.margin-table .trow.total { font-weight: 600; }
.margin-table .op-chip { background: oklch(0.62 0.05 250); }
/* buddy-core frontend/styles.css:1327-1336 (.usage-cycle, .step), the app's light values in place of its variables. */
.usage-cycle { display: inline-flex; align-items: center; gap: 7px; }
.usage-cycle .step {
  width: 20px; height: 20px; border: 1px solid #e6e3da; border-radius: 5px;
  display: inline-grid; place-items: center; font-size: 10px;
  color: #54524b; cursor: pointer; background: #fdfcf9;
}
.usage-cycle .step:hover { border-color: #c4c1b6; }
.usage-cycle .label {
  font-size: 11px; min-width: 96px; text-align: center; font-variant-numeric: tabular-nums;
}
.table-pager { display: flex; justify-content: center; padding: 10px 0 6px; }
.disputes .thead, .disputes .trow { grid-template-columns: .8fr 1fr .5fr 2fr .6fr; }
.runs .thead, .runs .trow { grid-template-columns: minmax(0,.85fr) minmax(0,1.05fr) minmax(0,.55fr) minmax(0,.55fr) minmax(0,.9fr) minmax(0,.6fr) minmax(0,.55fr); }
.errs .thead, .errs .trow { grid-template-columns: 1.6fr .6fr .8fr 1fr; }
.empty { padding: 22px 18px; color: #97948a; font-size: 11.5px; }
.badge { font-size: 9.5px; color: #fdfcf9; background: oklch(0.58 0.10 28); border-radius: 100px; padding: 1px 6px; }
.flag { flex-shrink: 0; font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: oklch(0.58 0.10 28); border: 1px solid oklch(0.58 0.10 28 / 0.3); padding: 1px 6px; border-radius: 100px; margin-left: 9px; }
.red { color: oklch(0.58 0.10 28); }
.green { color: oklch(0.55 0.075 150); }
.amber { color: oklch(0.66 0.085 75); }
.chip { flex-shrink: 0; font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: #fdfcf9; background: oklch(0.66 0.085 75); padding: 1px 7px; border-radius: 100px; margin-left: 9px; }

/* Sign-in: the canvas draws none, so it is the console's cards and inputs, nothing new. */
.signin { min-height: 100vh; display: grid; place-items: center; background: #f7f6f1; color: #1c1b18; }
.signin form { width: 320px; border: 1px solid #e6e3da; background: #fdfcf9; border-radius: 9px; padding: 22px 22px 18px; display: flex; flex-direction: column; gap: 10px; }
.signin .search { width: 100%; }
.signin button { font-size: 11.5px; border: 1px solid #1c1b18; background: #1c1b18; color: #f7f6f1; padding: 7px 13px; border-radius: 6px; cursor: pointer; }
.signin button:disabled { opacity: .5; cursor: default; }
/* The Google door: the console's secondary button, as the canvas's "hand back". */
.signin button.google { border-color: #e6e3da; background: #fdfcf9; color: #54524b; }
.signin button.google:hover { border-color: #c4c1b6; color: #1c1b18; }
.signin .or { text-align: center; font-size: 10.5px; color: #97948a; }
.problem { font-size: 11px; color: oklch(0.58 0.10 28); }

/* A run's expanded row: when it ran, where its time went, and the way into its log. */
.expand { border-bottom: 1px solid #f1efe8; background: #f7f6f1; padding: 14px 18px 16px; }
.expand-head { display: flex; align-items: baseline; gap: 18px; font-size: 11px; color: #54524b; font-variant-numeric: tabular-nums; margin-bottom: 12px; }
.link { color: oklch(0.55 0.075 150); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

/* Errors: the terminal reasons as bars, the canvas's chart. */
.chart { border: 1px solid #e6e3da; background: #fdfcf9; border-radius: 9px; padding: 18px; margin-bottom: 22px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 90px; }
.bars > div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bars .n { font-size: 10px; color: #54524b; font-variant-numeric: tabular-nums; }
.bars .col { width: 100%; border-radius: 3px 3px 0 0; }
.bar-names { display: flex; gap: 6px; margin-top: 8px; }
.bar-names span { flex: 1; text-align: center; font-size: 8.5px; color: #97948a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Replay: the canvas's timeline. */
.replay-note { margin: 0 0 22px 27px; font-size: 11px; color: #97948a; }
.term { font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; padding: 2px 8px; border-radius: 100px; border: 1px solid #e6e3da; color: #54524b; }
.term.bad { color: oklch(0.58 0.10 28); border-color: oklch(0.58 0.10 28 / 0.3); }
.timeline { border-left: 1px solid #e6e3da; margin-left: 8px; padding-left: 24px; }
.ev { position: relative; padding: 10px 0; }
.ev .dot { position: absolute; left: -28px; top: 15px; width: 7px; height: 7px; border-radius: 50%; background: #c4c1b6; }
.ev-line { display: flex; align-items: baseline; gap: 10px; }
.ev .seq { font-size: 10px; color: #97948a; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.ev .kind { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: #97948a; flex-shrink: 0; }
.ev .ev-body { flex: 1; font-size: 12px; color: #54524b; line-height: 1.6; overflow-wrap: anywhere; white-space: pre-wrap; min-width: 0; }
.ev .usage { font-size: 10px; color: #97948a; font-variant-numeric: tabular-nums; flex-shrink: 0; padding-left: 10px; }
.ev .note { display: block; white-space: normal; font-size: 10px; color: #97948a; margin-top: 2px; }
.ev.failed .ev-body { color: oklch(0.58 0.10 28); }

/* Account: the user detail's cards (the canvas's four), disputes and feedback. */
.kpi-note { display: block; font-size: 9.5px; color: #97948a; margin-top: 5px; line-height: 1.5; }
.meter { display: block; margin-top: 7px; height: 3px; border-radius: 100px; background: #f1efe8; overflow: hidden; }
.meter span { display: block; height: 100%; background: oklch(0.55 0.075 150); }
.meter.split { display: flex; }
.meter.split span.backup { background: oklch(0.62 0.09 60); }
.open-chip { flex-shrink: 0; font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: oklch(0.66 0.085 75); border: 1px solid oklch(0.66 0.085 75 / 0.4); padding: 1px 6px; border-radius: 100px; margin-left: 9px; }
.section { font-weight: 500; font-size: 13px; letter-spacing: -0.01em; margin: 30px 0 12px; display: flex; gap: 12px; align-items: baseline; }
.fbs { display: flex; flex-direction: column; gap: 10px; }
.fb { border: 1px solid #e6e3da; background: #fdfcf9; border-radius: 8px; padding: 14px 16px 12px; }
.fb.read { background: #f7f6f1; }
.fb-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; font-size: 11px; }
.fb-kind { font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: #97948a; }
.fb-text { font-size: 12px; color: #54524b; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.fb .link { font-size: 10px; }
.fb .busy { opacity: .5; cursor: default; }
.fb-problem { display: block; margin-top: 6px; }
/* In a table cell a cost's note sits on its own line, not broken mid-phrase. */
.trow .unpriced, .trow .unrecorded-note { display: block; margin-left: 0; }
.fb .link, .fb .fb-read { white-space: nowrap; flex-shrink: 0; }

/* Estimates (CONSOLE-4): always marked, never mistaken for a recorded figure. */

/* The nav's link out to PostHog (AP6), from the canvas. */
a.nav-item.out { text-decoration: none; }
.out-arrow { font-size: 10px; }

/* COPIED from buddy-core frontend/styles.css:1607-1629 (the app's run control), its
   light-theme tokens resolved (--accent, --surface, --line, --ink-soft, --ink-faint,
   --ink, --stop): ruling 4, the app's own pause and resume control. */
.run-btn {
  display: inline-flex; align-items: center; gap: 9px; font-size: 12px; letter-spacing: .04em;
  border: 1px solid oklch(0.55 0.075 150); background: oklch(0.55 0.075 150); color: #fdfcf9;
  padding: 8px 18px; border-radius: 100px; cursor: pointer; font-family: inherit;
  box-shadow: 0 1px 2px rgba(28,27,24,.06), 0 8px 22px -12px oklch(0.55 0.075 150 / 0.35);
  transition: all .18s cubic-bezier(.4,0,.2,1);
}
.run-btn:hover { background: #1c1b18; border-color: #1c1b18; }
.run-btn .glyph { font-size: 9px; }
.stop-btn {
  display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-family: inherit;
  padding: 5px 13px; border-radius: 100px; cursor: pointer; transition: all .18s cubic-bezier(.4,0,.2,1);
  border: 1px solid #e6e3da; background: #fdfcf9; color: #54524b;
}
.stop-btn:hover { border-color: #c4c1b6; color: #1c1b18; }
.square { width: 8px; height: 8px; border-radius: 1.5px; background: currentColor; flex-shrink: 0; }
.run-btn:disabled, .stop-btn:disabled { opacity: .5; cursor: default; }

/* The computer panel, from the canvas (user detail: computer). */
.comp { border: 1px solid #e6e3da; background: #fdfcf9; border-radius: 10px; overflow: hidden; margin: 0 0 22px; transition: border-color .25s; }
.comp.holding { border-color: oklch(0.55 0.075 150 / 0.5); }
.comp-head { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid #efece4; }
.comp-label { font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; color: #97948a; }
.comp-mode { font-size: 10.5px; color: #97948a; }
.comp-mode.holding { display: flex; align-items: center; gap: 6px; color: oklch(0.55 0.075 150); }
.comp-mode.holding i { width: 6px; height: 6px; border-radius: 50%; background: oklch(0.55 0.075 150); }
.btn-dark { font-size: 11px; border: 1px solid #1c1b18; background: #1c1b18; color: #f7f6f1; padding: 5px 13px; border-radius: 6px; cursor: pointer; font-family: inherit; }
.btn-dark:disabled { opacity: .45; cursor: default; }
.btn-light { font-size: 11px; border: 1px solid #e6e3da; background: #fdfcf9; color: #54524b; padding: 5px 13px; border-radius: 6px; cursor: pointer; font-family: inherit; }
.btn-light:hover { border-color: #c4c1b6; color: #1c1b18; }
.comp-screen { position: relative; aspect-ratio: 16 / 9; max-height: 380px; width: 100%; background: repeating-linear-gradient(135deg, #f1efe8 0 10px, #ebe8df 10px 20px); display: flex; align-items: center; justify-content: center; outline: none; }
.comp-screen img { width: 100%; height: 100%; object-fit: contain; display: block; user-select: none; -webkit-user-drag: none; }
.comp-screen.watch { cursor: zoom-in; }
.comp-screen.drive { cursor: default; }
.comp-pill { font-size: 10.5px; color: #97948a; background: #fdfcf9; border: 1px solid #e6e3da; padding: 4px 10px; border-radius: 100px; }
.comp-hint { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); font-size: 10px; color: #97948a; background: rgba(253,252,249,.85); padding: 2px 8px; border-radius: 100px; }
.comp-problem { padding: 8px 16px; font-size: 11px; color: oklch(0.58 0.10 28); }

/* The one control the canvas lacks (reset), on the canvas's confirm pattern. */
.confirm-row { margin: 0 0 18px 27px; border: 1px solid oklch(0.66 0.085 75 / 0.35); background: oklch(0.66 0.085 75 / 0.08); border-radius: 8px; padding: 12px 16px; display: flex; align-items: center; gap: 12px; }
.confirm-row .line { min-width: 0; flex: 1; font-size: 11.5px; color: #54524b; line-height: 1.6; }
.confirm-row .go { flex-shrink: 0; font-size: 11px; border: 1px solid oklch(0.66 0.085 75); background: oklch(0.66 0.085 75); color: #fdfcf9; padding: 5px 13px; border-radius: 6px; cursor: pointer; font-family: inherit; }
.confirm-row .go.red { border-color: oklch(0.58 0.10 28); background: oklch(0.58 0.10 28); }
.confirm-row .keep { flex-shrink: 0; font-size: 11px; color: #54524b; cursor: pointer; padding: 5px 6px; background: none; border: none; font-family: inherit; }
.confirm-row.red { border-color: oklch(0.58 0.10 28 / 0.35); background: oklch(0.58 0.10 28 / 0.07); }
.head-ctrls { display: flex; gap: 8px; align-items: center; }

/* The runs panel pages calendar months, as the ledger does. */
.month-pager { display: flex; align-items: center; gap: 14px; margin: 0 0 12px; font-size: 11.5px; }

/* The replay's "show outputs": a full result, scrollable; a screenshot, capped, click for full size. */
.output { margin: 6px 0 4px 64px; }
.output pre { max-height: 50vh; overflow: auto; font-size: 11px; background: #f7f6f1; border: 1px solid #e6e3da; border-radius: 6px; padding: 8px 10px; white-space: pre-wrap; }
.output img { display: block; max-width: 100%; max-height: 60vh; border: 1px solid #e6e3da; border-radius: 6px; margin-bottom: 6px; }
.outputs-toggle { cursor: pointer; }

/* The egress proxy chip in the header: the pill when ok, the red chip when down. */
.top .proxy { margin-right: 10px; cursor: default; }
.chip.down { background: oklch(0.58 0.10 28); text-transform: none; letter-spacing: 0; font-size: 10.5px; padding: 3px 10px; }

/* A1: the admin design (Admin Console.dc.html). */
.kpis.three { grid-template-columns: repeat(3, 1fr); }
.cell-stack { min-width: 0; display: flex; flex-direction: column; }
.cell-line { display: flex; align-items: center; min-width: 0; }
.cell-stack .sub { display: block; font-size: 10.5px; margin-top: 2px; }
.mail { white-space: nowrap; }
.mail.big { font-size: 11px; margin-left: 12px; }
.org-head { align-items: center; flex-wrap: wrap; gap: 12px 16px; }
.org-head .back { align-self: flex-start; }
.org-title { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.org-name { display: flex; align-items: center; }
.org-name h1 { white-space: nowrap; }
.org-addr { font-size: 11px; color: #54524b; white-space: nowrap; }
.team .thead, .team .trow { grid-template-columns: minmax(0,1.1fr) minmax(0,.6fr) minmax(0,2.2fr) minmax(0,.6fr) minmax(0,.55fr); }
.team .thead.invites, .team .trow.invites { grid-template-columns: minmax(0,2.4fr) minmax(0,.7fr) minmax(0,.7fr) minmax(0,.6fr); background: #f7f6f1; }
.team .thead.invites { border-top: 1px solid #efece4; }
.team .handles { font-size: 11.5px; overflow-wrap: anywhere; min-width: 0; }
.role-chip { font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; padding: 1px 7px; border-radius: 100px; border: 1px solid #e6e3da; color: #54524b; }
.role-chip.ink { color: #1c1b18; }
.strip { display: flex; align-items: center; gap: 12px; border: 1px solid #e6e3da; background: #fdfcf9; border-radius: 8px; padding: 10px 16px; margin-bottom: 26px; font-size: 11.5px; color: #54524b; }
.strip .dot { width: 7px; height: 7px; border-radius: 50%; background: #c4c1b6; flex-shrink: 0; }
.strip .dot.green { background: oklch(0.55 0.075 150); }
.strip .dot.red { background: oklch(0.58 0.10 28); }
.strip .soft { font-size: 10.5px; }
.section.first { margin-top: 0; }
.health .thead, .health .trow { grid-template-columns: minmax(0,1.6fr) minmax(0,1.4fr) minmax(0,1fr); }

/* An update's run (A17): its phases as core writes them, under the buttons. */
.update-run { flex-basis: 100%; }
.update-run ol { list-style: none; margin: 4px 0 0; padding: 0; }

/* C1: an org on an old image, by its name; muted, and no layout shift. */
.stale-mark { margin-left: 6px; font-size: 11px; cursor: default; }

/* Email blasts: the canvas's hovers. */
.blast-recip:hover { border-color: #c4c1b6 !important; }
.blast-row:hover { background: #f1efe8; }
