/* ClutchClicks Admin: the Workbench look (Docs/Systems/ControlPanel.md, D10) in the brand's palette, sampled from
   the logo: navy for text and selection, blue for links and focus, red for the primary action only. A failure is told
   apart from brand red by its own tone, an icon and words. */
@font-face { font-family: "Geist"; src: url(vendor/geist.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(vendor/geist-mono.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Poppins"; src: url(vendor/poppins-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url(vendor/poppins-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --navy: #0b1d4f; --navy2: #1a3277; --ink: #0d1733; --blue: #0c74b0; --red: #e01f2b; --red2: #c4151f;
  --side: #f4f6fb; --main: #ffffff; --hover: #eaeef7; --sel: #e1e7f4; --bubble: #eef2f9; --chip: #f2f5fa;
  --line: #e4e8f1; --line2: #d3d9e6;
  --text: #0f1a35; --text2: #46526e; --text3: #5f6a86;
  --ok: #12804a; --ok-bg: #e5f4ec; --wait: #1a5fa0; --wait-bg: #e6f0fa;
  --warn: #9a5800; --warn-bg: #fdf0d8; --bad: #b42318; --bad-bg: #fdeceb;
  --term: #0a1433;
  --sans: "Geist", -apple-system, "Segoe UI", system-ui, sans-serif;
  --head: "Poppins", "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 14px/1.5 var(--sans); color: var(--text); background: var(--main); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
::selection { background: #cfe0f7; color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
a { color: var(--blue); text-underline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: default; opacity: .55; }
input, textarea { font: inherit; color: inherit; caret-color: var(--navy); }
[hidden] { display: none !important; }
* { scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
svg.i { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
h1, h2, .brand b { font-family: var(--head); }
.mono, code, pre { font-family: var(--mono); }
.muted { color: var(--text3); }

/* Buttons: one vocabulary everywhere */
.primary { height: 38px; padding: 0 18px; border-radius: 999px; background: var(--red); color: #fff; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 1px 2px rgba(196,21,31,.25), 0 4px 12px -6px rgba(196,21,31,.5); transition: background .15s; }
.primary:hover:not(:disabled) { background: var(--red2); }
.btn { height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line2); background: #fff; font-weight: 500; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover:not(:disabled) { background: var(--hover); border-color: #c4cbdc; }
.btn.danger { color: var(--bad); }
.icon { width: 28px; height: 28px; border-radius: 8px; display: inline-grid; place-items: center; color: var(--text3); }
.icon:hover { background: var(--hover); color: var(--text); }

/* Status: colour, a dot and words, never colour alone */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 0 10px; line-height: 22px; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.ok { color: var(--ok); background: var(--ok-bg); } .pill.wait { color: var(--wait); background: var(--wait-bg); }
.pill.warn { color: var(--warn); background: var(--warn-bg); } .pill.bad { color: var(--bad); background: var(--bad-bg); }
.pill.off { color: var(--text3); background: var(--chip); }
.lost { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 40; max-width: calc(100vw - 24px); background: var(--warn-bg); color: var(--warn); border: 1px solid #f0dcb4; border-radius: 12px; padding: 8px 14px; font-size: 13px; font-weight: 600; box-shadow: 0 8px 24px -12px rgba(11,29,79,.35); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; }
.dot.wait { background: var(--wait); } .dot.warn { background: #d08a12; } .dot.bad { background: var(--bad); } .dot.off { background: var(--line2); }

/* Sign-in */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: linear-gradient(180deg, var(--side), #fff 60%); }
.login-card { width: min(380px, 100%); display: grid; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px 28px 28px; box-shadow: 0 2px 4px rgba(11,29,79,.04), 0 18px 40px -24px rgba(11,29,79,.35); }
.login-card img { width: 56px; height: auto; }
.login-card h1 { margin: 4px 0 0; font-size: 22px; font-weight: 700; color: var(--navy); letter-spacing: -0.01em; }
.login-card > p { margin: -8px 0 6px; color: var(--text2); }
.login-card label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--text2); }
.login-card input { height: 42px; border: 1px solid var(--line2); border-radius: 10px; padding: 0 12px; background: #fff; font-size: 15px; color: var(--text); }
.login-card input:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: transparent; }
.login-error { margin: 0; min-height: 20px; color: var(--bad); font-size: 13px; }
.login-card .primary { height: 44px; font-size: 15px; }

/* The frame */
.app { display: grid; grid-template-columns: 272px minmax(0, 1fr); height: 100vh; height: 100dvh; }
.side { background: var(--side); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.brand { display: flex; align-items: center; gap: 10px; padding: 16px 16px 12px; }
.brand img { width: 28px; height: 28px; }
.brand b { font-weight: 700; font-size: 15.5px; color: var(--navy); letter-spacing: -0.01em; }
.brand span { margin-left: auto; font-size: 11.5px; font-weight: 600; color: var(--navy); background: #dfe6f5; border-radius: 999px; padding: 0 8px; line-height: 20px; }
.nav { padding: 4px 8px 8px; display: grid; gap: 1px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 9px; color: var(--text2); text-decoration: none; }
.nav a:hover { background: var(--hover); color: var(--text); }
.nav a[aria-current] { background: var(--sel); color: var(--navy); font-weight: 600; }
.nav .n { margin-left: auto; font-size: 12px; color: var(--text3); font-weight: 500; }
.nav .n.warn { color: var(--warn); font-weight: 600; } .nav .n.bad { color: var(--bad); font-weight: 600; }
.newbtn { margin: 4px 12px 10px; height: 38px; border-radius: 999px; background: var(--red); color: #fff; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; box-shadow: 0 1px 2px rgba(196,21,31,.25), 0 4px 12px -6px rgba(196,21,31,.5); transition: background .15s; }
.newbtn:hover { background: var(--red2); }
.list { overflow: auto; flex: 1; padding: 0 8px 8px; }
.sec { font-size: 12px; font-weight: 500; color: var(--text3); padding: 14px 10px 6px; }
.row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 9px; width: 100%; text-align: left; color: var(--text); text-decoration: none; }
.row:hover { background: var(--hover); }
.row[aria-current] { background: var(--sel); }
.row .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row.live .t { font-weight: 600; }
.row.past { color: var(--text2); grid-template-columns: minmax(0, 1fr) auto; }
.row .when { font-size: 12px; color: var(--text3); }
.row .badge { font-size: 11px; font-weight: 600; color: var(--warn); background: var(--warn-bg); border-radius: 999px; padding: 0 7px; line-height: 18px; }
.viewall { font-size: 13px; color: var(--text3); padding: 6px 10px; display: inline-flex; gap: 4px; align-items: center; }
.viewall:hover { color: var(--text); }
.empty-list { padding: 8px 10px; color: var(--text3); font-size: 13px; }
.foot { border-top: 1px solid var(--line); padding: 12px 16px 14px; display: grid; gap: 10px; }
.minis { display: grid; gap: 10px; }
.meter { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; font-size: 12px; color: var(--text2); }
.meter b { font-weight: 600; color: var(--text); }
.bar { grid-column: 1 / -1; height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 3px; background: var(--navy); }
.bar i.warn { background: #d08a12; } .bar i.bad { background: var(--bad); }
.who { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text2); min-width: 0; }
.who span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who .icon { margin-left: auto; }
.who .av { width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 600; flex: none; }
.main { min-width: 0; min-height: 0; display: grid; }

/* Sessions */
.sessions { display: grid; grid-template-columns: minmax(0, 1fr) 300px; min-height: 0; }
/* one column held to the pane's width: the terminal fits itself to it, never the other way round */
.pane { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); min-width: 0; min-height: 0; }
.top { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); min-height: 58px; }
.top h1 { font-size: 15.5px; font-weight: 600; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.top .back { display: none; }
.seg { margin-left: auto; display: inline-flex; background: var(--bubble); border-radius: 999px; padding: 3px; flex: none; }
.seg button { height: 28px; padding: 0 13px; border-radius: 999px; color: var(--text2); font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--navy); font-weight: 600; box-shadow: 0 1px 2px rgba(11,29,79,.1), 0 0 0 1px rgba(11,29,79,.04); }
.callouts { display: grid; gap: 8px; padding: 0 24px; }
.callouts:not(:empty) { padding-top: 14px; }
.callout { max-width: 720px; width: 100%; margin: 0 auto; border: 1px solid #f0dcb4; background: #fffaf0; border-radius: 14px; padding: 12px 14px; display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: center; }
.callout > svg { color: var(--warn); }
.callout.info { border-color: #cfdcf1; background: #f5f8fd; } .callout.info > svg { color: var(--wait); }
.callout p { margin: 0; } .callout p small { display: block; color: var(--text2); font-size: 13px; }
.callout ol { margin: 6px 0 0; padding-left: 18px; color: var(--text2); font-size: 13.5px; display: grid; gap: 4px; }
.callout .codeform { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.callout .codeform input { flex: 1 1 180px; height: 32px; border: 1px solid var(--line2); border-radius: 999px; padding: 0 12px; font-family: var(--mono); font-size: 13px; background: #fff; }
.chat { overflow: auto; padding: 26px 24px 12px; overscroll-behavior: contain; }
.chat .col { max-width: 720px; margin: 0 auto; display: grid; gap: 16px; }
.u { justify-self: end; max-width: 85%; background: var(--bubble); border-radius: 16px 16px 4px 16px; padding: 10px 14px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.u .time { display: block; font-size: 11.5px; color: var(--text3); margin-top: 2px; text-align: right; white-space: normal; }
.cmd { justify-self: end; font: 12.5px var(--mono); color: var(--navy); background: var(--sel); border-radius: 999px; padding: 3px 10px; }
.note { justify-self: center; font-size: 12.5px; color: var(--text3); max-width: 90%; text-align: center; white-space: pre-wrap; }
.a { font-size: 15px; line-height: 1.65; overflow-wrap: anywhere; }
.a p { margin: 0 0 10px; } .a > :last-child { margin-bottom: 0; }
.a h4 { font: 600 15px/1.4 var(--sans); margin: 14px 0 6px; }
.a ul, .a ol { margin: 0 0 10px; padding-left: 22px; } .a li { margin: 2px 0; }
.a code { font-size: 12.5px; background: var(--chip); border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; }
.a pre { background: var(--chip); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; overflow: auto; font-size: 12.5px; line-height: 1.5; margin: 0 0 10px; }
.a pre code { background: none; border: 0; padding: 0; }
.tablewrap { overflow: auto; margin: 0 0 10px; border: 1px solid var(--line); border-radius: 10px; }
.a table { border-collapse: collapse; font-size: 13.5px; line-height: 1.45; min-width: 100%; }
.a th, .a td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.a th { font-weight: 600; background: var(--side); } .a tr:last-child td { border-bottom: 0; }
.tools { color: var(--text3); font-size: 13px; }
.tools > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; border-radius: 6px; }
.tools summary::-webkit-details-marker { display: none; }
.tools > summary svg, .tool > summary svg { transition: transform .15s; }
.tools[open] > summary svg { transform: rotate(90deg); }
.tools ol { margin: 6px 0 0; padding: 0 0 0 14px; list-style: none; display: grid; gap: 3px; border-left: 1px solid var(--line2); }
.tool > summary { list-style: none; cursor: pointer; font: 12.5px/1.55 var(--mono); color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tool > summary b { font-family: var(--sans); font-weight: 600; color: var(--text); margin-right: 6px; }
.tool > summary span { color: var(--text3); }
.tool > summary span.err { color: var(--bad); }
.tool pre { margin: 4px 0 8px; max-height: 320px; overflow: auto; background: var(--chip); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 12px; line-height: 1.5; color: var(--text2); white-space: pre-wrap; overflow-wrap: anywhere; }
.working { display: inline-flex; align-items: center; gap: 8px; color: var(--text2); font-size: 13.5px; }
.composer { padding: 10px 24px 20px; }
.box { max-width: 720px; margin: 0 auto; border: 1px solid var(--line2); border-radius: 18px; background: #fff; box-shadow: 0 1px 2px rgba(11,29,79,.05), 0 8px 24px -14px rgba(11,29,79,.3); padding: 12px 12px 8px 16px; }
.box:focus-within { border-color: #9fb6dc; }
.box textarea { width: 100%; border: 0; outline: none; resize: none; font: 15px/1.5 var(--sans); min-height: 46px; max-height: 40vh; background: transparent; display: block; }
.box textarea::placeholder { color: var(--text3); }
.box .bar2 { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text3); }
.ghost { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 999px; color: var(--text2); }
.ghost:hover { background: var(--hover); color: var(--text); }
.send { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; flex: none; transition: background .15s; }
.send:hover:not(:disabled) { background: var(--red2); }
.send svg.i { stroke-width: 2.2; }
.ended { max-width: 720px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px dashed var(--line2); border-radius: 14px; color: var(--text2); }
.ended .btn { margin-left: auto; }
.term-wrap { background: var(--term); min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.term { min-height: 0; overflow: hidden; padding: 14px 6px 6px 16px; }
.termbar { display: flex; gap: 14px; align-items: center; color: #93a0c2; font-size: 12px; padding: 6px 16px 10px; }
.termbar .btn { height: 26px; background: transparent; color: #dfe6f7; border-color: #2c3b66; }
.termbar .btn:hover { background: #17244b; }
.xterm .xterm-viewport { scrollbar-color: #2c3b66 transparent; }
.newpane { overflow: auto; padding: 8vh 24px 40px; }
.newpane .col { max-width: 680px; margin: 0 auto; display: grid; gap: 18px; }
.newpane h1 { margin: 0; font-size: 26px; font-weight: 700; color: var(--navy); letter-spacing: -0.02em; }
.newpane .lede { margin: -8px 0 4px; color: var(--text2); font-size: 15px; }
.newpane .box textarea { min-height: 96px; }
.newpane .primary { margin-left: auto; }

/* Inspector */
.insp { border-left: 1px solid var(--line); overflow: auto; padding: 18px 18px 40px; display: grid; gap: 24px; align-content: start; background: #fbfcfe; }
.insp h3 { margin: 0 0 9px; font-size: 12px; font-weight: 600; color: var(--text3); }
dl.kv { margin: 0; display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 7px 10px; font-size: 13px; }
dl.kv dt { color: var(--text3); } dl.kv dd { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
dl.kv .mono { font-size: 12px; }
.svc { display: grid; gap: 7px; font-size: 13px; }
.svc div { display: flex; align-items: center; gap: 8px; min-width: 0; }
.svc div span:last-child { margin-left: auto; color: var(--text3); font-size: 12px; white-space: nowrap; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.link { color: var(--blue); font-weight: 500; font-size: 13px; display: inline-flex; align-items: center; gap: 4px; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* Pages: Automations, Issues, Server */
.scroll { overflow: auto; min-height: 0; }
.page { max-width: 1060px; margin: 0 auto; padding: 28px 32px 80px; width: 100%; }
.ph { display: flex; align-items: center; gap: 14px; }
.ph h1 { margin: 0; font-size: 23px; font-weight: 700; letter-spacing: -0.02em; color: var(--navy); }
.ph p { margin: 2px 0 0; color: var(--text3); font-size: 13px; }
.ph .mark { width: 42px; height: 42px; border-radius: 13px; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; flex: none; }
.ph .mark.warn { background: var(--warn-bg); color: var(--warn); } .ph .mark.bad { background: var(--bad-bg); color: var(--bad); }
.ph .mark svg { width: 22px; height: 22px; stroke-width: 2.2; }
h2 { font-size: 15px; font-weight: 600; color: var(--ink); margin: 36px 0 12px; display: flex; align-items: baseline; gap: 10px; }
h2 small { font: 400 13px var(--sans); color: var(--text3); }
.attn { border: 1px solid #f0dcb4; background: #fffaf0; border-radius: 14px; }
.attn .r { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; padding: 12px 16px; align-items: center; }
.attn .r + .r { border-top: 1px solid #f3e6cb; }
.attn .r > svg { color: var(--warn); } .attn .r.bad > svg { color: var(--bad); }
.attn .r p { margin: 0; } .attn .r p small { display: block; color: var(--text2); font-size: 13px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 14px; }
.stat { padding: 14px 16px; display: grid; gap: 4px; align-content: start; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat .k { font-size: 12.5px; color: var(--text3); }
.stat .v { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.stat .v small { font-size: 13px; font-weight: 400; color: var(--text3); letter-spacing: 0; }
.stat .bar { margin-top: 6px; }
.table { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.tr { display: grid; grid-template-columns: 220px minmax(0, 1fr) 170px; gap: 16px; padding: 13px 16px; align-items: center; }
.tr + .tr, .logs + .tr { border-top: 1px solid var(--line); }
.tr .name { display: grid; min-width: 0; } .tr .name b { font-weight: 600; } .tr .name small { color: var(--text3); font-size: 12px; overflow-wrap: anywhere; }
.tr .r { text-align: right; font-size: 12.5px; color: var(--text2); display: grid; gap: 6px; justify-items: end; }
.tr .r .acts { display: flex; gap: 6px; }
.ticks { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(2px, 1fr); gap: 2px; height: 26px; }
.ticks i { border-radius: 2px; background: #3fae72; }
.ticks i.bad { background: var(--bad); } .ticks i.none { background: var(--line); }
.tickfoot { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--text3); margin-top: 5px; }
.logs { margin: 0; background: var(--term); color: #d7deef; font: 12px/1.6 var(--mono); padding: 12px 16px; max-height: 360px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.logs .lt { color: #7f8db3; } .logs .le { color: #ff9b8f; } .logs .lw { color: #f2c46d; }
.svcs .tr { grid-template-columns: 220px minmax(0, 1fr) 170px; }
.acc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.card { border: 1px solid var(--line); border-radius: 14px; padding: 15px 16px; display: grid; gap: 9px; align-content: start; }
.card .k { font-size: 12.5px; color: var(--text3); display: flex; justify-content: space-between; gap: 8px; }
.card .v { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.card .v small { font-size: 13px; font-weight: 400; color: var(--text3); letter-spacing: 0; }
.card .err { color: var(--text2); font-size: 13px; }
.cal .tr { grid-template-columns: minmax(0, 1fr) 170px 110px; }
.days { font-weight: 600; } .days.warn { color: var(--warn); } .days.bad { color: var(--bad); }
.issues { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.issue { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; padding: 12px 16px; align-items: start; }
.issue + .issue { border-top: 1px solid var(--line); }
.issue > svg { margin-top: 2px; color: var(--warn); } .issue.bad > svg { color: var(--bad); } .issue.info > svg { color: var(--text3); }
.issue p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.issue small { color: var(--text3); font-size: 12px; white-space: nowrap; }
.issue.new { background: #fffaf0; } .issue small b { color: var(--warn); font-weight: 600; }
.day { font-size: 12px; font-weight: 600; color: var(--text3); padding: 10px 16px 6px; background: var(--side); border-top: 1px solid var(--line); }
.day:first-child { border-top: 0; }
.empty { border: 1px dashed var(--line2); border-radius: 14px; padding: 28px; text-align: center; color: var(--text2); }
.empty b { display: block; color: var(--text); margin-bottom: 4px; }
.skeleton { height: 14px; border-radius: 7px; background: var(--chip); }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 9px 16px; border-radius: 999px; font-size: 13px; box-shadow: 0 8px 24px -8px rgba(11,29,79,.5); z-index: 30; max-width: calc(100vw - 32px); }
.toast.bad { background: var(--bad); }

.phone-tabs { display: none; }

@media (max-width: 1180px) { .sessions { grid-template-columns: minmax(0, 1fr); } .insp { display: none; } }
@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .side { display: none; border-right: 0; }
  .app.list-open .side { display: flex; }
  .app.list-open .main, .app.list-open .nav { display: none; }
  .top { padding: 10px 12px; gap: 8px; }
  .top .back { display: inline-grid; }
  .seg button span { display: none; }
  .chat { padding: 18px 14px; }
  .callouts { padding: 0 12px; }
  .composer { padding: 8px 10px 12px; }
  .box .bar2 > span { display: none; }
  .page { padding: 20px 16px 40px; }
  .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .tr, .cal .tr, .svcs .tr { grid-template-columns: 1fr; gap: 8px; } .tr .r { text-align: left; justify-items: start; }
  .acc { grid-template-columns: 1fr; }
  .phone-tabs { display: flex; justify-content: space-around; background: rgba(255,255,255,.97); border-top: 1px solid var(--line); padding: 6px 0 calc(8px + env(safe-area-inset-bottom)); }
  .phone-tabs a { display: grid; justify-items: center; gap: 2px; font-size: 11px; color: var(--text3); text-decoration: none; min-width: 64px; }
  .phone-tabs a[aria-current] { color: var(--navy); font-weight: 600; }
  .phone-tabs svg.i { width: 21px; height: 21px; }
  .newpane { padding: 28px 16px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
