/* =====================================================================
   ARK AI Gateway — control panel
   ARK Tech Innovations Pvt. Ltd.

   Design intent: an operations console, not a marketing page. Dense tables,
   real typographic hierarchy, one restrained accent, and monospace wherever a
   value is something you compare character by character (keys, ids, hashes).

   Deliberately avoided: gradient hero panels, glass blur, oversized display
   type, decorative icons, emoji. Those read as decoration; this is a tool that
   people stare at while something is broken.

   Palette: warm neutrals against a near-black rail, with a deep pine accent.
   Status colour is reserved exclusively for status — never for emphasis.
   ===================================================================== */

:root {
    /* Surfaces */
    --rail:          #15181c;
    --rail-hover:    #1e2329;
    --rail-active:   #262c34;
    --rail-border:   #2a3038;
    --paper:         #f7f7f5;
    --card:          #ffffff;
    --card-alt:      #fbfbfa;

    /* Ink */
    --ink:           #14171a;
    --ink-2:         #454b52;
    --ink-3:         #6b7280;
    --ink-4:         #9aa1a9;
    --ink-rail:      #e8eaed;
    --ink-rail-2:    #969ca5;

    /* Lines */
    --line:          #e3e3df;
    --line-2:        #d3d3ce;
    --line-3:        #ecece8;

    /* Accent — deep pine */
    --accent:        #1b6b52;
    --accent-hover:  #155741;
    --accent-soft:   #e8f1ed;
    --accent-line:   #bcd7cc;

    /* Status */
    --ok:            #1f7a4d;
    --ok-soft:       #e7f3ec;
    --warn:          #9a6410;
    --warn-soft:     #fbf1de;
    --danger:        #a52a2a;
    --danger-soft:   #fbeaea;
    --info:          #1f5c86;
    --info-soft:     #e8f0f6;
    --neutral:       #5f6670;
    --neutral-soft:  #eeeff0;

    /* Type */
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, "SF Mono", SFMono-Regular, "JetBrains Mono", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;

    --radius:    3px;
    --radius-lg: 5px;
    --rail-w:    232px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --paper:       #14161a;
        --card:        #1a1d22;
        --card-alt:    #1e2228;
        --ink:         #e7e9ec;
        --ink-2:       #b2b8c0;
        --ink-3:       #8b929b;
        --ink-4:       #6c737c;
        --line:        #2b3038;
        --line-2:      #363c45;
        --line-3:      #24282e;
        --accent:      #4fae8b;
        --accent-hover:#63c09d;
        --accent-soft: #16302a;
        --accent-line: #2a5647;
        --ok:          #57b47f;
        --ok-soft:     #162b20;
        --warn:        #d0a04a;
        --warn-soft:   #2e2617;
        --danger:      #e08585;
        --danger-soft: #341d1d;
        --info:        #77aad2;
        --info-soft:   #17252f;
        --neutral:     #9aa1a9;
        --neutral-soft:#24282e;
    }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

code, pre, .mono, kbd {
    font-family: var(--mono);
    font-variant-ligatures: none;
}

/* ---------------------------------------------------------------------
   Layout shell
   --------------------------------------------------------------------- */

.shell { display: flex; min-height: 100vh; }

.rail {
    width: var(--rail-w);
    flex: 0 0 var(--rail-w);
    background: var(--rail);
    color: var(--ink-rail);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.rail-brand {
    padding: 18px 18px 16px;
    border-bottom: 1px solid var(--rail-border);
}
.rail-brand strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #fff;
}
.rail-brand span {
    display: block;
    font-size: 11px;
    color: var(--ink-rail-2);
    margin-top: 2px;
}

.rail-nav { padding: 10px 0; flex: 1; }

.rail-section {
    padding: 14px 18px 6px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6a7280;
}

.rail-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 18px;
    color: var(--ink-rail);
    font-size: 13px;
    border-left: 2px solid transparent;
}
.rail-nav a:hover { background: var(--rail-hover); text-decoration: none; }
.rail-nav a.active {
    background: var(--rail-active);
    border-left-color: var(--accent);
    font-weight: 500;
}

.rail-count {
    font-family: var(--mono);
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 8px;
    background: var(--danger);
    color: #fff;
}

.rail-foot {
    padding: 12px 18px;
    border-top: 1px solid var(--rail-border);
    font-size: 12px;
}
.rail-foot .who { color: var(--ink-rail); font-weight: 500; }
.rail-foot .role {
    color: var(--ink-rail-2);
    font-size: 11px;
    text-transform: capitalize;
}
.rail-foot form { margin-top: 8px; }
.rail-foot button {
    width: 100%;
    background: transparent;
    border: 1px solid var(--rail-border);
    color: var(--ink-rail-2);
    padding: 5px;
    border-radius: var(--radius);
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
}
.rail-foot button:hover { background: var(--rail-hover); color: #fff; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 24px;
    background: var(--card);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 20;
}
.topbar h1 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.015em;
}
.topbar .sub { font-size: 12px; color: var(--ink-3); margin-top: 1px; }
.topbar-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.content { padding: 20px 24px 48px; max-width: 1560px; width: 100%; }

/* ---------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 13px;
    font-family: inherit;
    font-weight: 500;
    border-radius: var(--radius);
    border: 1px solid var(--line-2);
    background: var(--card);
    color: var(--ink);
    cursor: pointer;
    white-space: nowrap;
    line-height: 1.4;
}
.btn:hover { background: var(--card-alt); border-color: var(--ink-4); text-decoration: none; }
.btn:active { transform: translateY(0.5px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }

.btn-danger { color: var(--danger); border-color: var(--line-2); }
.btn-danger:hover { background: var(--danger-soft); border-color: var(--danger); }

.btn-sm { padding: 3px 8px; font-size: 12px; }
.btn-block { width: 100%; justify-content: center; }

/* ---------------------------------------------------------------------
   Cards & panels
   --------------------------------------------------------------------- */

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
}
.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
}
.card-head h2 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
}
.card-head .hint { font-size: 12px; color: var(--ink-3); font-weight: 400; }
.card-body { padding: 16px; }
.card-body.tight { padding: 0; }
.card-foot {
    padding: 10px 16px;
    border-top: 1px solid var(--line);
    background: var(--card-alt);
    font-size: 12px;
    color: var(--ink-3);
}

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-sidebar { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }

@media (max-width: 1100px) {
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-3, .grid-sidebar { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
    .grid-2, .grid-4 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------------------------------------------------------------------
   Stat tiles
   --------------------------------------------------------------------- */

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 12px; margin-bottom: 16px; }

.stat {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 12px 14px;
}
.stat-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink-3);
}
.stat-value {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-top: 4px;
    font-variant-numeric: tabular-nums;
}
.stat-value.mono { font-family: var(--mono); font-size: 19px; }
.stat-meta { font-size: 11px; color: var(--ink-3); margin-top: 3px; }
.stat-meta.up { color: var(--danger); }
.stat-meta.good { color: var(--ok); }

/* ---------------------------------------------------------------------
   Tables
   --------------------------------------------------------------------- */

.table-wrap { overflow-x: auto; }

table.data {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
table.data th {
    text-align: left;
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink-3);
    background: var(--card-alt);
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}
table.data td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--line-3);
    vertical-align: top;
}
table.data tbody tr:hover { background: var(--card-alt); }
table.data tbody tr:last-child td { border-bottom: none; }
table.data td.num, table.data th.num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}
table.data td.mono { font-family: var(--mono); font-size: 12px; }
table.data.compact td, table.data.compact th { padding: 5px 10px; }

.t-primary { font-weight: 500; }
.t-sub { font-size: 11.5px; color: var(--ink-3); margin-top: 1px; }
.t-nowrap { white-space: nowrap; }

.empty { padding: 36px 16px; text-align: center; color: var(--ink-3); }
.empty strong { display: block; color: var(--ink-2); font-weight: 500; margin-bottom: 4px; }

/* ---------------------------------------------------------------------
   Status pills & dots
   --------------------------------------------------------------------- */

.pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 1px 7px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    border: 1px solid transparent;
}
.pill-ok      { background: var(--ok-soft);      color: var(--ok);      border-color: color-mix(in srgb, var(--ok) 22%, transparent); }
.pill-warn    { background: var(--warn-soft);    color: var(--warn);    border-color: color-mix(in srgb, var(--warn) 22%, transparent); }
.pill-danger  { background: var(--danger-soft);  color: var(--danger);  border-color: color-mix(in srgb, var(--danger) 22%, transparent); }
.pill-info    { background: var(--info-soft);    color: var(--info);    border-color: color-mix(in srgb, var(--info) 22%, transparent); }
.pill-neutral { background: var(--neutral-soft); color: var(--neutral); border-color: color-mix(in srgb, var(--neutral) 22%, transparent); }
.pill-accent  { background: var(--accent-soft);  color: var(--accent);  border-color: var(--accent-line); }

.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; flex: 0 0 6px; }
.dot-ok { background: var(--ok); }
.dot-warn { background: var(--warn); }
.dot-danger { background: var(--danger); }
.dot-neutral { background: var(--ink-4); }

/* A quiet live indicator. Animation is subtle on purpose: a pulsing dot on a
   page left open all day should not be a distraction. */
.dot-live { background: var(--ok); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) {
    .dot-live { animation: none; }
}

/* ---------------------------------------------------------------------
   Forms
   --------------------------------------------------------------------- */

.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 760px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

.field { margin-bottom: 2px; }
.field > label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--ink-2);
}
.field .req { color: var(--danger); }

input[type=text], input[type=email], input[type=password], input[type=number],
input[type=date], input[type=search], select, textarea {
    width: 100%;
    padding: 7px 9px;
    font-family: inherit;
    font-size: 13px;
    color: var(--ink);
    background: var(--card);
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
input.mono, textarea.mono { font-family: var(--mono); font-size: 12.5px; }
textarea { resize: vertical; min-height: 68px; }
input[aria-invalid=true], textarea[aria-invalid=true] { border-color: var(--danger); }

.help { font-size: 11.5px; color: var(--ink-3); margin-top: 4px; line-height: 1.45; }
.err { font-size: 11.5px; color: var(--danger); margin-top: 4px; font-weight: 500; }

.check { display: flex; gap: 8px; align-items: flex-start; }
.check input[type=checkbox] { margin-top: 2px; flex: 0 0 auto; }
.check label { font-size: 13px; font-weight: 500; color: var(--ink); }
.check .help { margin-top: 2px; }

.check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 10px;
}

.form-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    padding-top: 16px;
    margin-top: 16px;
    border-top: 1px solid var(--line);
}

fieldset {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px;
    margin: 0 0 16px;
}
fieldset legend {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ink-3);
    padding: 0 6px;
}

/* Filter bar */
.filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: flex-end;
    padding: 12px 16px;
    background: var(--card-alt);
    border-bottom: 1px solid var(--line);
}
.filters .field { margin: 0; min-width: 130px; }
.filters .field > label { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.04em; }
.filters input, .filters select { padding: 5px 8px; font-size: 12.5px; }

/* ---------------------------------------------------------------------
   Alerts & flashes
   --------------------------------------------------------------------- */

.alert {
    display: flex;
    gap: 10px;
    padding: 10px 13px;
    border-radius: var(--radius);
    border: 1px solid;
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.5;
}
.alert-bar { width: 3px; border-radius: 2px; flex: 0 0 3px; }
.alert-body { flex: 1; min-width: 0; }
.alert strong { font-weight: 600; }

.alert-ok      { background: var(--ok-soft);     border-color: color-mix(in srgb, var(--ok) 28%, transparent);     color: var(--ink); }
.alert-ok .alert-bar { background: var(--ok); }
.alert-warn    { background: var(--warn-soft);   border-color: color-mix(in srgb, var(--warn) 28%, transparent);   color: var(--ink); }
.alert-warn .alert-bar { background: var(--warn); }
.alert-danger  { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 28%, transparent); color: var(--ink); }
.alert-danger .alert-bar { background: var(--danger); }
.alert-info    { background: var(--info-soft);   border-color: color-mix(in srgb, var(--info) 28%, transparent);   color: var(--ink); }
.alert-info .alert-bar { background: var(--info); }

/* ---------------------------------------------------------------------
   Secret reveal — shown exactly once
   --------------------------------------------------------------------- */

.secret {
    border: 1px solid var(--accent-line);
    background: var(--accent-soft);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 16px;
}
.secret h3 { margin: 0 0 4px; font-size: 14px; font-weight: 600; }
.secret p { margin: 0 0 12px; font-size: 12.5px; color: var(--ink-2); }
.secret-value {
    display: flex;
    gap: 8px;
    align-items: stretch;
}
.secret-value input {
    font-family: var(--mono);
    font-size: 13px;
    background: var(--card);
    border-color: var(--accent-line);
}

/* ---------------------------------------------------------------------
   Code & payload viewers
   --------------------------------------------------------------------- */

pre.code {
    margin: 0;
    padding: 12px 14px;
    background: var(--card-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 12px;
    line-height: 1.55;
    overflow-x: auto;
    white-space: pre;
    max-height: 520px;
    overflow-y: auto;
    color: var(--ink);
}
pre.code.tall { max-height: none; }

.kv { width: 100%; border-collapse: collapse; font-size: 13px; }
.kv th {
    text-align: left;
    padding: 6px 12px 6px 0;
    font-weight: 500;
    color: var(--ink-3);
    white-space: nowrap;
    vertical-align: top;
    width: 1%;
    font-size: 12px;
}
.kv td { padding: 6px 0; vertical-align: top; word-break: break-word; }
.kv tr + tr th, .kv tr + tr td { border-top: 1px solid var(--line-3); }

/* Request chain — the four stages of a proxied call */
.chain { display: grid; gap: 0; }
.chain-stage { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
.chain-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 13px;
    background: var(--card-alt);
    border-bottom: 1px solid var(--line);
    font-size: 12.5px;
}
.chain-num {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    width: 19px;
    height: 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    flex: 0 0 19px;
}
.chain-title { font-weight: 600; }
.chain-flow { color: var(--ink-3); font-family: var(--mono); font-size: 11.5px; }
.chain-body { padding: 12px 13px; }

/* ---------------------------------------------------------------------
   Live feed
   --------------------------------------------------------------------- */

.feed-row-new { animation: flash 1.1s ease-out; }
@keyframes flash {
    from { background: var(--accent-soft); }
    to   { background: transparent; }
}
@media (prefers-reduced-motion: reduce) {
    .feed-row-new { animation: none; }
}

/* Bar chart built from divs — no chart library, no external request. */
.chart { display: flex; align-items: flex-end; gap: 2px; height: 130px; padding-top: 8px; }
.chart-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; height: 100%; }
.chart-bar { background: var(--accent); border-radius: 1px 1px 0 0; min-height: 1px; }
.chart-bar.err { background: var(--danger); }
.chart-labels { display: flex; gap: 2px; margin-top: 5px; }
.chart-labels span {
    flex: 1;
    font-size: 9.5px;
    color: var(--ink-4);
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.meter { height: 5px; background: var(--line); border-radius: 3px; overflow: hidden; margin-top: 5px; }
.meter > span { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.meter > span.warn { background: var(--warn); }
.meter > span.danger { background: var(--danger); }

/* ---------------------------------------------------------------------
   Tabs & pagination
   --------------------------------------------------------------------- */

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); padding: 0 16px; overflow-x: auto; }
.tabs a {
    padding: 9px 12px;
    font-size: 13px;
    color: var(--ink-3);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    margin-bottom: -1px;
}
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 500; }

.pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    border-top: 1px solid var(--line);
    font-size: 12.5px;
    color: var(--ink-3);
    flex-wrap: wrap;
}
.pager-links { display: flex; gap: 5px; }

/* ---------------------------------------------------------------------
   Auth & install (centred, no rail)
   --------------------------------------------------------------------- */

.centre {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
}
.centre-box { width: 100%; max-width: 400px; }
.centre-box.wide { max-width: 720px; }
.centre-brand { text-align: center; margin-bottom: 22px; }
.centre-brand strong { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.centre-brand span { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; }

.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li {
    display: flex;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line-3);
    font-size: 13px;
}
.check-list li:last-child { border-bottom: none; }
.check-mark { flex: 0 0 16px; font-family: var(--mono); font-weight: 600; }
.check-mark.pass { color: var(--ok); }
.check-mark.fail { color: var(--danger); }
.check-mark.warn { color: var(--warn); }
.check-list .label { font-weight: 500; }
.check-list .detail { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; line-height: 1.45; }

/* ---------------------------------------------------------------------
   Utilities
   --------------------------------------------------------------------- */

.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row-tight { gap: 5px; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.stack > * + * { margin-top: 12px; }
.muted { color: var(--ink-3); }
.small { font-size: 12px; }
.xs { font-size: 11px; }
.strong { font-weight: 600; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.mb0 { margin-bottom: 0; }
.mt16 { margin-top: 16px; }
.hidden { display: none !important; }
.break { word-break: break-all; }

.tag {
    display: inline-block;
    font-family: var(--mono);
    font-size: 11px;
    padding: 1px 5px;
    background: var(--neutral-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink-2);
}

hr.sep { border: none; border-top: 1px solid var(--line); margin: 16px 0; }

.copy-ok { color: var(--ok); font-size: 12px; font-weight: 500; }

/* Print: strip the rail so a log entry can go into an incident report. */
@media print {
    .rail, .topbar-actions, .filters, .form-actions, .pager-links { display: none !important; }
    .shell { display: block; }
    .card { break-inside: avoid; border-color: #ccc; }
    body { background: #fff; }
}
