/* Customer console + sign-in pages. Loaded after style.css, whose tokens,
   buttons and Geist faces it builds on.

   The marketing site's dark frame becomes the console's sidebar; the working
   area is a quiet grey ground with white hairline panels. Orange is spent on
   the primary action, the active nav icon and workspace marks, nothing else.
   Status colour is a fixed vocabulary: green live, amber needs attention, red
   error, grey inactive. Class prefix: c- (console), a- (auth). */

:root {
  --c-ground: #f5f6f8;
  --c-panel: #ffffff;
  --c-side-w: 15.5rem;
  --c-top-h: 3.5rem;
  --ok: #15803d;
  --ok-fg: #0f6b3f;
  --ok-bg: #effaf4;
  --ok-line: #cdebd9;
  --warn: #b45309;
  --warn-fg: #955006;
  --warn-bg: #fff7e8;
  --warn-line: #f2d9a8;
  --err: #b91c1c;
  --err-bg: #fef3f2;
  --err-line: #f6cfcb;
  --avatar-bg: #e8ebf0;
  --avatar-fg: #3d4250;
  accent-color: var(--orange);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --c-ground: #0b0e13;
    --c-panel: #12161d;
    --ok: #4ade80;
    --ok-fg: #7fe0a8;
    --ok-bg: rgb(34 197 94 / 0.1);
    --ok-line: rgb(34 197 94 / 0.26);
    --warn: #f5b544;
    --warn-fg: #f5c46b;
    --warn-bg: rgb(245 158 11 / 0.1);
    --warn-line: rgb(245 158 11 / 0.28);
    --err: #ff8a80;
    --err-bg: rgb(239 68 68 / 0.1);
    --err-line: rgb(239 68 68 / 0.3);
    --avatar-bg: #242a35;
    --avatar-fg: #e5e7eb;
  }
}

::selection { background: rgb(240 118 43 / 0.24); }

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic {
  width: 1rem; height: 1rem; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.btn .ic { margin-inline: -0.1rem; }
.btn-sm .ic { width: 0.875rem; height: 0.875rem; }
.btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }
.c-block { width: 100%; }
.c-dim { color: var(--muted); }
.c-role { text-transform: capitalize; }
.num { font-variant-numeric: tabular-nums; }
th.num, td.num { text-align: right; }

/* ---------------------------------------------------------------------------
   Shell
   --------------------------------------------------------------------------- */
body.console {
  display: grid; grid-template-columns: var(--c-side-w) minmax(0, 1fr);
  min-height: 100vh; font-size: 15px;
  background: linear-gradient(to right, var(--dark) var(--c-side-w), var(--c-ground) var(--c-side-w));
}

.c-side {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; padding: 1rem 0.75rem 0.75rem;
  background: var(--dark); color: var(--dark-fg-2); border-right: 1px solid var(--dark-border);
  scrollbar-width: thin; scrollbar-color: rgb(255 255 255 / 0.14) transparent;
}
.c-brand {
  display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.25rem 0.5rem;
  color: #fff; font-weight: 600; letter-spacing: -0.01em; text-decoration: none;
}
.c-brand:hover { color: #fff; }
.c-brand img { border-radius: 6px; }

.c-org {
  display: flex; align-items: center; gap: 0.65rem; margin: 1rem 0 1.1rem; padding: 0.55rem 0.6rem;
  border: 1px solid var(--dark-border); border-radius: var(--radius); background: rgb(255 255 255 / 0.025);
}
.c-org-mark {
  display: grid; place-items: center; width: 2rem; height: 2rem; flex: none; border-radius: 0.5rem;
  background: rgb(240 118 43 / 0.14); color: #ffae78; font-weight: 600; font-size: 0.875rem;
  box-shadow: inset 0 0 0 1px rgb(240 118 43 / 0.28);
}
.c-org-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.c-org-text b, .c-me-text b { color: #fff; font-weight: 500; font-size: 0.875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-org-text small, .c-me-text small { color: var(--dark-muted); font-size: 0.75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.c-nav { display: flex; flex-direction: column; gap: 1px; }
.c-nav a {
  display: flex; align-items: center; gap: 0.65rem; padding: 0.45rem 0.6rem; border-radius: 0.5rem;
  color: var(--dark-fg-2); font-size: 0.875rem; font-weight: 500; text-decoration: none; line-height: 1.35;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}
.c-nav a .ic { width: 1.05rem; height: 1.05rem; color: var(--dark-muted); transition: color 0.15s var(--ease); }
.c-nav a:hover { background: rgb(255 255 255 / 0.05); color: #fff; }
.c-nav a:hover .ic { color: var(--dark-fg-2); }
.c-nav a.is-active { background: rgb(255 255 255 / 0.08); color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.05); }
.c-nav a.is-active .ic { color: var(--orange); }
.c-nav a > * + .ic { width: 0.8rem; height: 0.8rem; margin-left: auto; opacity: 0.6; }
.c-nav a:focus-visible { outline-offset: -2px; }
.c-nav-group { margin-top: 1.4rem; }
.c-nav-label { margin: 0 0 0.35rem; padding: 0 0.6rem; font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.02em; color: var(--dark-muted); }
.c-dot { width: 0.45rem; height: 0.45rem; margin: 0 0.3rem; border-radius: 50%; flex: none; background: var(--dark-muted); }
.c-dot-live { background: #3ecf8e; box-shadow: 0 0 0 3px rgb(62 207 142 / 0.16); }
.c-dot-warn { background: #f5b544; box-shadow: 0 0 0 3px rgb(245 181 68 / 0.16); }

.c-side-foot { margin-top: auto; padding-top: 1rem; }
.c-me {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.25rem 0.1rem 0.35rem;
  border-top: 1px solid var(--dark-border);
}
.c-me-text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.c-me form { margin: 0; }
.c-side .c-avatar { background: #262b36; color: #e5e7eb; }

.c-icon-btn {
  display: inline-grid; place-items: center; width: 2rem; height: 2rem; padding: 0; flex: none;
  border: 1px solid transparent; border-radius: 0.5rem; background: transparent; color: var(--muted); cursor: pointer;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.c-icon-btn:hover { background: var(--surface); color: var(--fg); border-color: var(--border); }
.c-side .c-icon-btn { color: var(--dark-muted); }
.c-side .c-icon-btn:hover { background: rgb(255 255 255 / 0.07); color: #fff; border-color: var(--dark-border); }

.c-avatar {
  display: grid; place-items: center; width: 2rem; height: 2rem; flex: none; border-radius: 50%;
  background: var(--avatar-bg); color: var(--avatar-fg); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.01em;
}
.c-avatar.is-self { background: var(--orange-soft); color: var(--orange-deep); }
.c-avatar.is-team { background: var(--orange); color: #fff; }
.c-avatar.is-pending { background: transparent; color: var(--muted); border: 1px dashed var(--border-strong); }
.c-avatar .ic { width: 0.9rem; height: 0.9rem; }

.c-body { display: flex; flex-direction: column; min-width: 0; min-height: 100vh; }
.c-top {
  position: sticky; top: 0; z-index: 20; height: var(--c-top-h);
  display: flex; align-items: center; gap: 0.75rem; padding: 0 clamp(1rem, 3vw, 2.5rem);
  background: color-mix(in srgb, var(--c-ground) 82%, transparent);
  -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
.c-top-brand, .c-menu { display: none; }
.c-crumbs { display: flex; align-items: center; min-width: 0; font-size: 0.875rem; color: var(--muted); white-space: nowrap; }
.c-crumbs > * { overflow: hidden; text-overflow: ellipsis; }
.c-crumbs > * + *::before { content: "/"; margin: 0 0.55rem; color: var(--border-strong); }
.c-crumbs a { color: var(--muted); text-decoration: none; }
.c-crumbs a:hover { color: var(--fg); }
.c-crumbs [aria-current] { color: var(--fg); font-weight: 500; }
.c-top-links { margin-left: auto; display: flex; align-items: center; gap: 0.25rem; }
.c-top-links a {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.6rem; border-radius: 0.5rem;
  font-size: 0.8125rem; font-weight: 500; color: var(--muted); text-decoration: none;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}
.c-top-links a:hover { background: var(--c-panel); color: var(--fg); box-shadow: inset 0 0 0 1px var(--border); }

.c-main { flex: 1; width: 100%; max-width: 78rem; margin: 0 auto; padding: 2rem clamp(1rem, 3vw, 2.5rem) 3.5rem; }
.c-main > .c-panel, .c-main > .c-rows, .c-main > .c-current, .c-main > .c-plans, .c-main > .c-compose, .c-main > .c-ticket { margin-bottom: 1.25rem; }
.c-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1.25rem;
  width: 100%; max-width: 78rem; margin: 0 auto; padding: 1.25rem clamp(1rem, 3vw, 2.5rem) 1.5rem;
  border-top: 1px solid var(--border); font-size: 0.75rem; color: var(--muted);
}
.c-foot a { color: var(--muted); text-decoration: none; }
.c-foot a:hover { color: var(--fg); }
.c-foot .mono { margin-left: auto; }

/* ---------------------------------------------------------------------------
   Page head, alerts, panels
   --------------------------------------------------------------------------- */
.c-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; margin: 0 0 1.5rem; }
.c-head-text { min-width: 0; max-width: 48rem; }
.c-head h1 { margin: 0; font-size: 1.75rem; letter-spacing: -0.03em; line-height: 1.15; overflow-wrap: anywhere; }
.c-head-sub { margin: 0.45rem 0 0; font-size: 0.9375rem; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.c-head-meta { display: flex; flex-wrap: wrap; align-items: center; row-gap: 0.35rem; margin: 0.55rem 0 0; font-size: 0.875rem; color: var(--muted); }
.c-head-meta > * + *::before {
  content: ""; display: inline-block; width: 3px; height: 3px; margin: 0 0.7rem; border-radius: 50%;
  background: var(--border-strong); vertical-align: middle;
}
.c-head-meta b { color: var(--fg); font-weight: 600; }
.c-head-actions { display: flex; align-items: center; gap: 0.5rem; margin: 0; }
.c-back {
  display: inline-flex; align-items: center; gap: 0.35rem; margin: 0 0 0.65rem;
  font-size: 0.8125rem; font-weight: 500; color: var(--muted); text-decoration: none;
}
.c-back:hover { color: var(--fg); }

.c-alert {
  display: flex; align-items: flex-start; gap: 0.7rem; margin: 0 0 1rem; padding: 0.75rem 1rem;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--c-panel);
  font-size: 0.875rem; line-height: 1.5; color: var(--fg);
}
.c-alert > .ic { width: 1.05rem; height: 1.05rem; margin-top: 0.12rem; }
.c-alert p { flex: 1; margin: 0; }
.c-alert b { font-weight: 600; margin-right: 0.2rem; }
.c-alert .btn { align-self: center; flex: none; }
.c-alert-ok { border-color: var(--ok-line); background: var(--ok-bg); }
.c-alert-ok > .ic { color: var(--ok); }
.c-alert-warn { border-color: var(--warn-line); background: var(--warn-bg); }
.c-alert-warn > .ic { color: var(--warn); }
.c-alert-error { border-color: var(--err-line); background: var(--err-bg); }
.c-alert-error > .ic { color: var(--err); }

.c-panel {
  min-width: 0; padding: 1.1rem 1.25rem; background: var(--c-panel);
  border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs);
}
.c-panel:has(> .c-table-wrap:last-child) { padding-bottom: 0; overflow: clip; }
.c-panel-flush { padding: 0; overflow: clip; }
.c-panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem 1rem; flex-wrap: wrap; margin: 0 0 0.85rem; }
.c-panel-head h2 { margin: 0; font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.c-panel-head p { margin: 0; font-size: 0.8125rem; color: var(--muted); }
.c-panel-link {
  display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.8125rem; font-weight: 500;
  color: var(--muted); text-decoration: none; white-space: nowrap;
}
.c-panel-link .ic { width: 0.85rem; height: 0.85rem; transition: transform 0.18s var(--ease); }
.c-panel-link:hover { color: var(--fg); }
.c-panel-link:hover .ic { transform: translateX(2px); }
.c-count {
  display: inline-block; margin-left: 0.4rem; padding: 0 0.45rem; vertical-align: 0.1em;
  font-size: 0.75rem; font-weight: 500; color: var(--muted); line-height: 1.5;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
}
.c-empty { margin: 0; font-size: 0.875rem; line-height: 1.55; color: var(--muted); }
.c-note { display: flex; align-items: flex-start; gap: 0.55rem; margin: 0.8rem 0 0; font-size: 0.8125rem; line-height: 1.5; color: var(--muted); }
.c-note .ic { width: 0.95rem; height: 0.95rem; margin-top: 0.18rem; }
.c-panel.c-note { margin: 0; padding: 0.85rem 1rem; color: var(--fg-2); }
.c-fine { margin: 0; font-size: 0.75rem; line-height: 1.5; color: var(--muted); }

.c-blank { display: flex; flex-direction: column; align-items: center; gap: 0.8rem; padding: 2.5rem 1.5rem; text-align: center; }
.c-blank > .ic {
  box-sizing: border-box; width: 2.75rem; height: 2.75rem; padding: 0.65rem; border-radius: 0.75rem;
  border: 1px solid var(--border); background: var(--surface); color: var(--fg-2);
}
.c-blank p { max-width: 27rem; margin: 0; font-size: 0.875rem; line-height: 1.55; color: var(--muted); }
.c-blank p b { display: block; margin-bottom: 0.2rem; font-size: 0.9375rem; font-weight: 600; color: var(--fg); }
.c-panel.c-blank { padding: 2.5rem 1.5rem; }

/* Chips + support pills: one status vocabulary. */
.c-chip, body.console .pill {
  display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.08rem 0.5rem;
  font-size: 0.75rem; font-weight: 500; line-height: 1.45; letter-spacing: 0; text-transform: none; white-space: nowrap;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--fg-2);
}
.c-chip { text-transform: capitalize; }
.c-chip::before, body.console .pill::before { content: ""; width: 0.375rem; height: 0.375rem; border-radius: 50%; background: currentColor; }
.c-chip-live, body.console .pill-resolved { color: var(--ok-fg); background: var(--ok-bg); border-color: var(--ok-line); }
.c-chip-warn, body.console .pill-you { color: var(--warn-fg); background: var(--warn-bg); border-color: var(--warn-line); }
.c-chip-muted { color: var(--muted); }
.c-chip-accent { color: var(--orange-deep); background: var(--orange-soft); border-color: rgb(240 118 43 / 0.3); }
.c-chip-accent::before { display: none; }
body.console .pill-open { color: #1d63a3; background: #eef5fc; border-color: #cfe2f5; }
body.console .pill-progress { color: #6d4aa8; background: #f5f0fc; border-color: #e1d4f4; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body.console .pill-open { color: #8cc4f5; background: rgb(59 130 246 / 0.12); border-color: rgb(59 130 246 / 0.3); }
  :root:not([data-theme="light"]) body.console .pill-progress { color: #c4a8f5; background: rgb(139 92 246 / 0.12); border-color: rgb(139 92 246 / 0.3); }
  :root:not([data-theme="light"]) body.console .pill-you { color: var(--warn-fg); background: var(--warn-bg); }
  :root:not([data-theme="light"]) body.console .pill-resolved { color: var(--ok-fg); background: var(--ok-bg); }
}

/* Tables run edge to edge inside their panel. */
.c-table-wrap { margin: 0 -1.25rem; overflow-x: auto; }
.c-panel-flush .c-table-wrap { margin: 0; }
.c-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.c-table th {
  padding: 0.5rem 0.75rem; text-align: left; white-space: nowrap;
  font-size: 0.75rem; font-weight: 500; color: var(--muted);
  background: var(--surface); border-block: 1px solid var(--border);
}
.c-panel-flush .c-table th { border-top: 0; }
.c-table td { padding: 0.7rem 0.75rem; color: var(--fg-2); vertical-align: middle; border-bottom: 1px solid var(--border); }
.c-table tbody tr:last-child td { border-bottom: 0; }
.c-table tr > :first-child { padding-left: 1.25rem; }
.c-table tr > :last-child { padding-right: 1.25rem; }
.c-table tbody tr { transition: background-color 0.12s var(--ease); }
.c-table tbody tr:hover { background: color-mix(in srgb, var(--surface) 55%, transparent); }
.c-table td b { display: block; font-weight: 500; color: var(--fg); }
.c-table td small { display: block; margin-top: 0.1rem; font-size: 0.75rem; color: var(--muted); }
.c-table .mono { font-size: 0.8125rem; color: var(--fg); }
.c-table td.num { color: var(--fg); font-weight: 500; }
.c-rowlink { display: block; text-decoration: none; }
.c-rowlink b { transition: color 0.15s var(--ease); }
.c-rowlink:hover b { color: var(--orange-deep); }
.c-rowlink small.mono { font-size: 0.75rem; color: var(--muted); }
.c-when { white-space: nowrap; color: var(--muted); }
.c-prio-high { color: var(--err); font-weight: 500; }
.c-prio-low { color: var(--muted); }
.c-key { display: inline-flex; align-items: center; gap: 0.2rem; max-width: 100%; }
.c-key code {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 16rem;
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--fg-2);
  padding: 0.12rem 0.4rem; border-radius: 0.35rem; background: var(--surface); border: 1px solid var(--border);
}
.c-copy { width: 1.75rem; height: 1.75rem; }
.c-copy .ic { width: 0.85rem; height: 0.85rem; }
.c-copy.is-copied { color: var(--ok); }

/* Definition rows */
.c-dl { display: grid; margin: 0; }
.c-dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-top: 1px solid var(--border); font-size: 0.875rem; }
.c-dl > div:first-child { padding-top: 0; border-top: 0; }
.c-dl dt { color: var(--muted); white-space: nowrap; }
.c-dl dd { margin: 0; text-align: right; font-weight: 500; color: var(--fg); }
.c-dl dd small { display: block; font-size: 0.75rem; font-weight: 400; color: var(--muted); }
.c-dl-wide > div { justify-content: flex-start; }
.c-dl-wide dt { width: 8.5rem; flex: none; }
.c-dl-wide dd { text-align: left; font-weight: 400; color: var(--fg-2); }
.c-panel > .c-block, .c-panel > .c-dl + .c-block { margin-top: 1rem; }

/* ---------------------------------------------------------------------------
   Overview
   --------------------------------------------------------------------------- */
.c-dash { display: grid; grid-template-columns: minmax(0, 1fr) 20.5rem; gap: 1.25rem; align-items: start; }
.c-dash-main, .c-dash-side { display: grid; gap: 1.25rem; min-width: 0; }

.c-ws { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.c-ws li { display: flex; align-items: center; gap: 0.9rem; padding: 0.75rem 0.85rem; border: 1px solid var(--border); border-radius: var(--radius); }
.c-ws-mark {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem; flex: none; border-radius: 0.65rem;
  background: var(--dark); color: var(--orange); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08);
}
.c-ws-mark .ic { width: 1.25rem; height: 1.25rem; stroke-width: 1.8; }
.c-ws-text { display: flex; flex: 1; flex-direction: column; min-width: 0; line-height: 1.35; }
.c-ws-text b { font-size: 0.9375rem; font-weight: 600; color: var(--fg); }
.c-ws-text .mono { font-size: 0.75rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }

.c-setup-lede { margin: 0 0 0.85rem; font-size: 0.875rem; color: var(--fg-2); }
.c-steps { margin: 0; padding: 0; list-style: none; border: 1px solid var(--border); border-radius: var(--radius); }
.c-steps li { display: flex; align-items: center; gap: 0.9rem; padding: 0.85rem 1rem; }
.c-steps li + li { border-top: 1px solid var(--border); }
.c-steps li > span:nth-child(2) { flex: 1; min-width: 0; font-size: 0.8125rem; line-height: 1.45; color: var(--muted); }
.c-steps li > span:nth-child(2) b { display: block; font-size: 0.875rem; font-weight: 600; color: var(--fg); }
.c-step-mark {
  display: grid; place-items: center; width: 1.75rem; height: 1.75rem; flex: none; border-radius: 50%;
  border: 1px solid var(--border-strong); font-family: var(--font-mono); font-size: 0.75rem; color: var(--fg-2); background: var(--c-panel);
}
.c-step-mark .ic { width: 0.85rem; height: 0.85rem; stroke-width: 2.2; }
.c-steps .is-done .c-step-mark { background: var(--ok); border-color: var(--ok); color: #fff; }
.c-steps .is-done > span:nth-child(2) b { color: var(--muted); }

.c-tally { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin: 0 0 0.75rem; font-size: 0.8125rem; color: var(--muted); }
.c-tally b { margin-right: 0.3rem; font-size: 1.375rem; font-weight: 600; letter-spacing: -0.02em; color: var(--fg); }
.c-tally .is-warn b { color: var(--warn); }
.c-reqs { margin: 0 -0.5rem 0.75rem; padding: 0; list-style: none; }
.c-reqs a { display: block; padding: 0.5rem; border-radius: 0.5rem; text-decoration: none; transition: background-color 0.15s var(--ease); }
.c-reqs a:hover { background: var(--surface); }
.c-reqs b { display: block; overflow: hidden; font-size: 0.875rem; font-weight: 500; color: var(--fg); white-space: nowrap; text-overflow: ellipsis; }
.c-reqs a > span { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.25rem; font-size: 0.75rem; color: var(--muted); }

/* ---------------------------------------------------------------------------
   Settings rows + forms
   --------------------------------------------------------------------------- */
.c-rows { background: var(--c-panel); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); }
.c-row { display: grid; grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); gap: 1rem 3rem; margin: 0; padding: 1.5rem; }
.c-row + .c-row { border-top: 1px solid var(--border); }
.c-row-intro h2 { margin: 0 0 0.3rem; font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.01em; }
.c-row-intro p { margin: 0; font-size: 0.8125rem; line-height: 1.55; color: var(--muted); }
.c-row-body { min-width: 0; max-width: 42rem; }
.c-row-body > form { margin: 0; }

.c-form { display: grid; gap: 1rem; margin: 0; }
.c-field { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; margin: 0; }
.c-label { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; font-size: 0.8125rem; font-weight: 500; color: var(--fg); }
.c-label-link { font-size: 0.8125rem; font-weight: 400; color: var(--muted); }
.c-opt { font-size: 0.75rem; font-weight: 400; color: var(--muted); }
.c-hint { font-size: 0.75rem; line-height: 1.45; color: var(--muted); }
.c-field input:not([type="checkbox"]):not([type="file"]), .c-field select, .c-field textarea, .c-select-sm {
  width: 100%; padding: 0.55rem 0.7rem; font: inherit; font-size: 0.875rem; color: var(--fg);
  background: var(--c-panel); border: 1px solid var(--border-strong); border-radius: 0.5rem; box-shadow: var(--shadow-xs);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.c-field input::placeholder, .c-field textarea::placeholder { color: var(--muted); opacity: 1; }
.c-field input:hover:not(:disabled), .c-field select:hover, .c-field textarea:hover, .c-select-sm:hover { border-color: color-mix(in srgb, var(--border-strong) 50%, var(--fg) 25%); }
.c-field input:focus, .c-field select:focus, .c-field textarea:focus, .c-select-sm:focus { outline: none; border-color: var(--orange); box-shadow: var(--ring); }
.c-field input:not([type="checkbox"]):not([type="file"]):disabled { background: var(--surface); color: var(--muted); box-shadow: none; cursor: not-allowed; }
.c-field [aria-invalid="true"] { border-color: var(--err); }
.c-field [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgb(220 38 38 / 0.18); }
.c-field textarea { min-height: 7rem; line-height: 1.55; resize: vertical; }
.c-field .field-error, .c-form > .field-error { margin: 0; font-size: 0.8125rem; color: var(--err); }
.c-field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.c-invite { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.c-check { display: flex; align-items: flex-start; gap: 0.65rem; font-size: 0.875rem; color: var(--fg); cursor: pointer; }
.c-check input { width: 1rem; height: 1rem; margin: 0.2rem 0 0; flex: none; }
.c-check small { display: block; font-size: 0.8125rem; color: var(--muted); }
.c-fieldset { display: grid; gap: 0.5rem; margin: 0; padding: 0; border: 0; }
.c-fieldset legend { margin-bottom: 0.5rem; padding: 0; }
.c-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; padding-top: 0.25rem; }
.c-row-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.4rem; }
.c-inline { display: inline-flex; align-items: center; gap: 0.4rem; margin: 0; }
.c-inline.is-busy { opacity: 0.6; }
.c-select-sm { width: auto; padding: 0.3rem 0.5rem; font-size: 0.8125rem; }
.c-danger:hover { color: var(--err); border-color: var(--err-line); background: var(--err-bg); }

.c-file { position: relative; display: block; }
.c-file input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.c-file-face {
  display: flex; align-items: center; gap: 0.7rem; padding: 0.75rem 0.9rem;
  border: 1px dashed var(--border-strong); border-radius: 0.5rem; font-size: 0.8125rem; color: var(--muted);
  transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.c-file-face > .ic { width: 1.1rem; height: 1.1rem; }
.c-file-face b { display: block; font-weight: 500; color: var(--fg); overflow-wrap: anywhere; }
.c-file-face small { display: block; font-size: 0.75rem; }
.c-file:hover .c-file-face { border-color: var(--fg-2); background: var(--surface); }
.c-file input:focus-visible + .c-file-face { outline: 2px solid var(--orange); outline-offset: 2px; }
.c-file.has-file .c-file-face { border-style: solid; border-color: var(--ok-line); background: var(--ok-bg); }
.c-file.has-file .c-file-face > .ic { color: var(--ok); }
.c-file-inline .c-file-face { padding: 0.45rem 0.75rem; }

/* ---------------------------------------------------------------------------
   Billing, plans, team
   --------------------------------------------------------------------------- */
.c-current {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 3rem;
  overflow: hidden; padding: 1.35rem 1.5rem; border-radius: var(--radius-lg);
  background: var(--dark); color: var(--dark-fg-2); border: 1px solid var(--dark-border);
}
.c-current::after {
  content: ""; position: absolute; top: -9rem; right: -6rem; width: 26rem; height: 18rem; pointer-events: none;
  background: radial-gradient(closest-side, rgb(240 118 43 / 0.22), transparent 75%);
}
.c-current > * { position: relative; z-index: 1; }
.c-current-id { display: flex; align-items: flex-start; gap: 1rem; max-width: 42rem; }
.c-current-id h2 { margin: 0 0 0.3rem; font-size: 1.0625rem; color: #fff; }
.c-current-id p { margin: 0; font-size: 0.8125rem; line-height: 1.55; }
.c-current .c-ws-mark { background: rgb(255 255 255 / 0.05); }
.c-current-stats { display: flex; gap: 2.5rem; margin: 0; }
.c-current-stats dt { font-size: 0.75rem; color: var(--dark-muted); }
.c-current-stats dd { margin: 0.1rem 0 0; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; color: #fff; }

.c-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr)); gap: 1rem; }
.c-plan {
  display: flex; flex-direction: column; gap: 0.75rem; padding: 1.35rem;
  background: var(--c-panel); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs);
}
.c-plan.is-featured { border-color: rgb(240 118 43 / 0.5); box-shadow: 0 0 0 1px rgb(240 118 43 / 0.18), var(--shadow-sm); }
.c-plan-head { display: flex; flex-wrap: wrap-reverse; align-items: flex-start; justify-content: space-between; gap: 0.5rem 0.75rem; }
.c-plan-head h2 { flex: 1 1 11rem; margin: 0; font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }
.c-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.3rem; margin: 0; }
.c-price .num { font-size: 1.875rem; font-weight: 600; letter-spacing: -0.03em; color: var(--fg); line-height: 1.1; }
.c-price small { font-size: 0.8125rem; color: var(--muted); }
.c-plan-desc { margin: 0; font-size: 0.8125rem; line-height: 1.55; color: var(--muted); }
.c-features { display: grid; gap: 0.45rem; margin: 0; padding: 0.8rem 0 0; list-style: none; border-top: 1px solid var(--border); }
.c-features li { display: flex; gap: 0.5rem; font-size: 0.8125rem; line-height: 1.45; color: var(--fg-2); }
.c-features .ic { width: 0.95rem; height: 0.95rem; margin-top: 0.15rem; color: var(--ok); stroke-width: 2; }
.c-plan-buy { display: grid; gap: 0.6rem; margin-top: auto; padding-top: 0.5rem; }
.c-units input { max-width: 8rem; }
.c-plans-fine { display: flex; align-items: center; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
.c-plans-fine .ic { width: 0.85rem; height: 0.85rem; }

.c-person { display: flex; align-items: center; gap: 0.7rem; min-width: 0; }
.c-person > span:last-child { min-width: 0; }
.c-person b { display: block; font-weight: 500; color: var(--fg); overflow-wrap: anywhere; }
.c-person small { display: block; font-size: 0.75rem; color: var(--muted); overflow-wrap: anywhere; }
.c-you, .c-staff {
  display: inline-block; margin-left: 0.3rem; padding: 0 0.4rem; vertical-align: 0.1em;
  font-size: 0.6875rem; font-weight: 500; line-height: 1.5; color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px; background: var(--c-panel);
}
.c-staff { color: var(--orange-deep); border-color: rgb(240 118 43 / 0.3); }
.c-legend { display: flex; flex-wrap: wrap; gap: 0.35rem 1.5rem; margin: 0; padding: 0.85rem 0 0; font-size: 0.75rem; color: var(--muted); }
.c-panel:has(.c-legend) { overflow: clip; }
.c-panel:has(.c-legend) .c-table-wrap { border-bottom: 1px solid var(--border); }
.c-legend b { font-weight: 600; color: var(--fg-2); }
.c-list { margin: 0; padding: 0; list-style: none; border: 1px solid var(--border); border-radius: var(--radius); }
.c-list li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.65rem 0.85rem; }
.c-list li + li { border-top: 1px solid var(--border); }

/* ---------------------------------------------------------------------------
   Support
   --------------------------------------------------------------------------- */
.c-seg {
  display: flex; flex-wrap: wrap; gap: 0.2rem; width: fit-content; max-width: 100%; margin: 0 0 0.85rem; padding: 0.2rem;
  background: var(--c-panel); border: 1px solid var(--border); border-radius: 0.65rem; box-shadow: var(--shadow-xs);
}
.c-seg a {
  display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.35rem 0.7rem; border-radius: 0.45rem;
  font-size: 0.8125rem; font-weight: 500; color: var(--muted); text-decoration: none;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}
.c-seg a:hover { background: var(--surface); color: var(--fg); }
.c-seg a[aria-current] { background: var(--fg); color: var(--bg); }
.c-seg .num { padding: 0 0.4rem; font-size: 0.75rem; line-height: 1.5; border-radius: 999px; background: var(--surface); color: var(--fg-2); }
.c-seg a[aria-current] .num { background: color-mix(in srgb, var(--bg) 18%, transparent); color: inherit; }
.c-seg .num.is-warn { background: var(--warn-bg); color: var(--warn-fg); }

.c-compose { display: grid; grid-template-columns: minmax(0, 1fr) 18rem; gap: 1.25rem 2rem; align-items: start; }
.c-compose > .c-panel { padding: 1.5rem; }
.c-aside { padding: 0.25rem 0; }
.c-aside h2 { margin: 0 0 0.65rem; font-size: 0.8125rem; font-weight: 600; }
.c-tips { display: grid; gap: 0.55rem; margin: 0 0 1.75rem; padding: 0; list-style: none; }
.c-tips li { display: flex; gap: 0.55rem; font-size: 0.8125rem; line-height: 1.45; color: var(--fg-2); }
.c-tips .ic { width: 0.95rem; height: 0.95rem; margin-top: 0.12rem; color: var(--ok); }
.c-tips li:last-child .ic { color: var(--warn); }
.c-aside .c-dl > div { display: block; }
.c-aside .c-dl dt { font-weight: 500; color: var(--fg); }
.c-aside .c-dl dd { margin-top: 0.1rem; text-align: left; font-size: 0.8125rem; font-weight: 400; color: var(--muted); }

.c-ticket { display: grid; grid-template-columns: minmax(0, 1fr) 17rem; gap: 1.25rem; align-items: start; }
.c-ticket-side { position: sticky; top: calc(var(--c-top-h) + 1rem); display: grid; gap: 1rem; }
.c-side-action { margin: 1rem 0 0; }
.c-thread { position: relative; display: grid; margin: 0 0 1rem; padding: 0; list-style: none; }
.c-thread::before { content: ""; position: absolute; top: 1rem; bottom: 1.5rem; left: 1rem; width: 1px; background: var(--border-strong); }
.c-msg { position: relative; display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 0.85rem; padding-bottom: 1rem; }
.c-msg > .c-avatar { position: relative; z-index: 1; box-shadow: 0 0 0 4px var(--c-ground); }
.c-msg article { overflow: hidden; background: var(--c-panel); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); }
.c-msg article > header {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.2rem 0.4rem; padding: 0.55rem 1rem;
  font-size: 0.8125rem; background: var(--surface); border-bottom: 1px solid var(--border);
}
.c-msg article > header b { font-weight: 600; color: var(--fg); }
.c-msg time { margin-left: auto; font-size: 0.75rem; color: var(--muted); white-space: nowrap; }
.c-msg.is-team article { border-color: rgb(240 118 43 / 0.3); }
.c-msg.is-team article > header { background: color-mix(in srgb, var(--orange-soft) 55%, var(--c-panel)); border-bottom-color: rgb(240 118 43 / 0.2); }
.c-msg-body { padding: 0.85rem 1rem; font-size: 0.875rem; line-height: 1.65; color: var(--fg); overflow-wrap: anywhere; }
.c-msg-body > :first-child { margin-top: 0; }
.c-msg-body > :last-child { margin-bottom: 0; }
.c-msg-body p { margin: 0.55rem 0; }
.c-thread > .c-empty { padding: 1rem 0 1rem 2.85rem; }
.c-reply { display: grid; gap: 0.75rem; }
.c-reply-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; }
.c-files { display: grid; gap: 0.25rem; margin: 0; padding: 0; list-style: none; }
.c-files li { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; font-size: 0.8125rem; }
.c-files a { display: inline-flex; align-items: center; gap: 0.4rem; min-width: 0; padding: 0.25rem 0; text-decoration: none; color: var(--fg); }
.c-files a span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.c-files a:hover { color: var(--orange-deep); }
.c-files small { color: var(--muted); white-space: nowrap; }

/* ---------------------------------------------------------------------------
   Sign in, sign up, reset, verify, invite
   --------------------------------------------------------------------------- */
body.auth { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); min-height: 100vh; background: var(--bg); }
.a-brand {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  padding: 2rem clamp(1.5rem, 4vw, 3.5rem); background: var(--dark); color: var(--dark-fg-2);
  border-right: 1px solid var(--dark-border);
}
.a-brand::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.04) 1px, transparent 1px);
  background-size: 3rem 3rem;
  -webkit-mask-image: radial-gradient(70% 60% at 30% 45%, #000 20%, transparent 100%);
  mask-image: radial-gradient(70% 60% at 30% 45%, #000 20%, transparent 100%);
}
.a-brand::after {
  content: ""; position: absolute; left: -12rem; bottom: -14rem; width: 44rem; height: 30rem; pointer-events: none;
  background: radial-gradient(closest-side, rgb(240 118 43 / 0.3), rgb(240 118 43 / 0.06) 55%, transparent 75%);
}
.a-brand > * { position: relative; z-index: 1; }
.a-logo { display: inline-flex; align-self: flex-start; align-items: center; gap: 0.6rem; color: #fff; font-weight: 600; text-decoration: none; }
.a-logo:hover { color: #fff; }
.a-logo img { border-radius: 6px; }
.a-pitch { max-width: 29rem; margin: auto 0; padding: 3rem 0; }
.a-pitch h2 { margin: 0 0 2rem; font-size: clamp(1.6rem, 1.1rem + 1.4vw, 2.3rem); line-height: 1.1; letter-spacing: -0.035em; color: #fff; }
.a-list { display: grid; gap: 1.15rem; margin: 0; padding: 0; list-style: none; }
.a-list li { display: flex; align-items: flex-start; gap: 0.9rem; }
.a-list .ic {
  box-sizing: border-box; width: 2.25rem; height: 2.25rem; padding: 0.5rem; border-radius: 0.6rem;
  border: 1px solid var(--dark-border-strong); background: rgb(255 255 255 / 0.03); color: var(--orange);
}
.a-list span { font-size: 0.875rem; line-height: 1.5; }
.a-list b { display: block; margin-bottom: 0.1rem; font-weight: 500; color: #fff; }
.a-legal { margin: 0; font-size: 0.75rem; color: var(--dark-muted); }
.a-legal a { color: inherit; }
.a-legal a:hover { color: #fff; }

.a-main { display: flex; flex-direction: column; min-width: 0; padding: 1.5rem clamp(1.25rem, 5vw, 4rem); background: var(--bg); }
.a-back { display: inline-flex; align-self: flex-end; align-items: center; gap: 0.4rem; font-size: 0.8125rem; font-weight: 500; color: var(--muted); text-decoration: none; }
.a-back:hover { color: var(--fg); }
.a-panel { width: 100%; max-width: 24rem; margin: auto; padding: 2.5rem 0; }
.a-panel:has(.c-field-pair) { max-width: 28rem; }
.a-head { margin: 0 0 1.5rem; }
.a-head h1 { margin: 0 0 0.5rem; font-size: 1.625rem; line-height: 1.15; letter-spacing: -0.03em; }
.a-head p { margin: 0; font-size: 0.9375rem; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.a-glyph {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; margin: 0 0 1.25rem;
  border: 1px solid var(--border); border-radius: 0.75rem; background: var(--surface); color: var(--fg);
}
.a-glyph .ic { width: 1.25rem; height: 1.25rem; }
.a-glyph-ok { color: var(--ok); background: var(--ok-bg); border-color: var(--ok-line); }
.a-glyph-warn { color: var(--warn); background: var(--warn-bg); border-color: var(--warn-line); }
.a-panel .btn { padding-block: 0.65rem; }
.a-panel .c-form { gap: 1.1rem; }
.a-panel > .c-note { margin: 0 0 1.25rem; padding: 0.75rem 0.9rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.a-panel > .c-form + .c-fine, .a-panel .c-form .c-fine { text-align: center; }
.a-alt { margin: 1.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--border); text-align: center; font-size: 0.875rem; color: var(--muted); }
.a-panel a:not(.btn) { color: var(--fg); text-decoration-color: var(--border-strong); }
.a-panel a:not(.btn):hover { color: var(--orange-deep); text-decoration-color: currentColor; }
.a-panel .c-label-link { color: var(--muted); text-decoration: none; }

/* ---------------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------------- */
@media (max-width: 72rem) {
  .c-dash { grid-template-columns: minmax(0, 1fr); }
  .c-dash-side { grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); align-items: start; }
}
@media (max-width: 60rem) {
  .c-ticket, .c-compose { grid-template-columns: minmax(0, 1fr); }
  .c-ticket-side { position: static; }
  .c-row { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
}
@media (max-width: 56rem) {
  body.console { grid-template-columns: minmax(0, 1fr); background: var(--c-ground); }
  .c-side { display: none; }
  .c-top { gap: 0.5rem; }
  .c-top-brand { display: inline-flex; flex: none; }
  .c-top-brand img { border-radius: 5px; }
  .c-top-links span { display: none; }
  .c-top-links a { padding: 0.5rem; }
  .c-top-links .ic { width: 1.1rem; height: 1.1rem; }
  .c-menu { display: block; }
  .c-menu > summary {
    display: grid; place-items: center; width: 2.5rem; height: 2.5rem; margin-left: -0.5rem;
    list-style: none; cursor: pointer; border-radius: 0.5rem; color: var(--fg);
  }
  .c-menu > summary::-webkit-details-marker { display: none; }
  .c-menu > summary .ic { width: 1.25rem; height: 1.25rem; }
  .c-menu[open] > summary { background: var(--c-panel); box-shadow: inset 0 0 0 1px var(--border); }
  .c-menu-panel {
    position: fixed; inset: var(--c-top-h) 0 0; z-index: 30; overflow-y: auto;
    padding: 1rem 1rem 2rem; background: var(--dark); color: var(--dark-fg-2);
  }
  .c-menu-org { display: flex; flex-direction: column; margin: 0 0 1rem; padding: 0 0.6rem 1rem; border-bottom: 1px solid var(--dark-border); }
  .c-menu-org b { color: #fff; font-weight: 500; }
  .c-menu-org small { color: var(--dark-muted); font-size: 0.8125rem; }
  .c-menu-panel .c-nav a { padding: 0.7rem 0.6rem; font-size: 0.9375rem; }
  .c-menu-signout { margin: 1.5rem 0.6rem 0; }
  .c-menu-signout .btn { border-color: var(--dark-border-strong); background: transparent; color: var(--dark-fg); }
  .c-main { padding-top: 1.5rem; }
  .c-foot .mono { margin-left: 0; }
}
@media (max-width: 52rem) {
  body.auth { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .a-brand { flex-direction: row; align-items: center; padding: 0.85rem 1.25rem; border-right: 0; border-bottom: 1px solid var(--dark-border); }
  .a-brand::before, .a-pitch, .a-legal { display: none; }
  .a-brand::after { left: auto; right: -20rem; bottom: -26rem; }
  .a-back { display: none; }
  .a-panel { margin: 0 auto; padding: 1.75rem 0 2.5rem; }
}
@media (max-width: 40rem) {
  .c-head { align-items: stretch; flex-direction: column; }
  .c-head h1 { font-size: 1.5rem; }
  .c-head-actions > .btn, .c-head-actions > button { flex: 1; }
  .c-field-pair, .c-invite { grid-template-columns: minmax(0, 1fr); }
  .c-row { padding: 1.25rem 1rem; }
  .c-panel { padding: 1rem; }
  .c-panel:has(> .c-table-wrap:last-child) { padding-bottom: 1rem; }
  .c-ws li { flex-wrap: wrap; }
  .c-ws li .btn { width: 100%; }
  .c-current-stats { gap: 2rem; }
  .c-alert { flex-wrap: wrap; }
  .c-alert .btn { margin-left: 1.75rem; }
  .c-seg { width: 100%; }
  .c-seg a { flex: 1 1 auto; justify-content: center; }
  .c-msg { grid-template-columns: minmax(0, 1fr); }
  .c-msg > .c-avatar, .c-thread::before { display: none; }
  .c-thread > .c-empty { padding-left: 0; }

  /* Tables become labeled cards (style.css .rtable); undo the edge-to-edge
     inset and the per-cell side padding the desktop table uses. */
  .c-table-wrap, .c-panel-flush .c-table-wrap { margin: 0; overflow: visible; }
  .c-panel-flush { padding: 0.75rem; overflow: visible; background: transparent; border: 0; box-shadow: none; }
  .c-table.rtable tr { background: var(--c-panel); box-shadow: var(--shadow-xs); border-color: var(--border); border-radius: var(--radius); }
  .c-table.rtable tr > * { padding-left: 0; padding-right: 0; }
  .c-table.rtable td { border-bottom-color: var(--border); }
  .c-table.rtable td::before { font-size: 0.75rem; font-weight: 500; text-transform: none; letter-spacing: 0; }
  .c-table.rtable tbody tr:hover { background: var(--c-panel); }
  .c-key code { max-width: 11rem; }
  .c-row-actions { justify-content: flex-start; }
  .c-panel:has(.c-legend) .c-table-wrap { border-bottom: 0; }
}
