/* Change what a report runs. Self-contained: published by the site build through
 * its existing css project, so there is no import to wire.
 *
 * The design tokens are the application's own, copied from
 * projects/ores.web/packages/web/src/styles.css, so the screen reads in the
 * colours the real one uses. The prototype's own chrome -- the banner and the
 * foot bar -- is deliberately unlike the design on trial.
 *
 * The wizard stepper is this prototype's own. It is not the standard steps UI,
 * because this journey is three panels over the definition rather than a rail
 * of steps: the standard rail, its marks and its step foot belong to
 * Manage the analytics, which owns the analytic interaction now. */

:root {
    --bg: #121214;
    --panel: #1a1a1e;
    --panel-2: #26262b;
    --line: #30363d;
    --line-soft: #21262d;
    --line-strong: #4a5568;
    --ink: #e3e3e6;
    --ink-dim: #a1a1aa;
    --ink-faint: #71717a;
    --accent: #58a6ff;
    --accent-bright: #8ab4f8;
    --accent-dim: #21262d;
    --ok: #3fb950;
    --warn: #d29922;
    --bad: #f85149;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    --radius: 0.5rem;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 14px/1.5 var(--sans);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-bright); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { margin: 0; text-wrap: balance; letter-spacing: -0.01em; font-weight: 600; }
p { margin: 0; }

.mono { font-family: var(--mono); }
.dim { color: var(--ink-dim); }
.faint { color: var(--ink-faint); }
.hint { color: var(--ink-faint); font-size: 12px; }

/* -------------------------------------------------------------- chrome */
/* The prototype's own chrome, deliberately unlike the design on trial. */

.proto-note {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    padding: 6px 14px;
    background: repeating-linear-gradient(45deg, #2a2113, #2a2113 10px, #241d11 10px, #241d11 20px);
    border-bottom: 1px solid #4a3a17;
    color: var(--warn);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.proto-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: #0b0e13;
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.55);
    font-size: 12px;
    max-height: 75vh;
    display: flex;
    flex-direction: column;
}

.proto-bar .bar-line {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.proto-bar button {
    background: none;
    border: 1px solid transparent;
    color: var(--ink-dim);
    font-size: 12px;
    line-height: 1;
    padding: 6px 10px;
    cursor: pointer;
    border-radius: 999px;
}

.proto-bar button:hover { background: var(--panel-2); color: var(--ink); }
.proto-bar button.on { background: var(--accent-dim); color: var(--ink); border-color: var(--line); }
.proto-bar .label { padding: 0 6px; color: var(--ink-dim); white-space: nowrap; }
.proto-bar .label b { color: var(--accent); }
.proto-bar .sep { color: var(--line); padding: 0 2px; }
.proto-bar .tag-prototype {
    border: 1px solid #4a3a17;
    color: var(--warn);
    background: #2a2113;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.proto-bar .state-panel {
    border-top: 1px solid var(--line-soft);
    overflow-y: auto;
    max-height: 45vh;
    padding: 10px 14px 14px;
}
.proto-bar .state-panel .state-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 2px 24px;
    font-size: 12px;
    color: var(--ink-dim);
}
.proto-bar .state-panel .state-grid b { color: var(--ink); font-family: var(--mono); font-weight: 400; }
.proto-bar .state-panel .state-note { color: var(--ink-faint); margin-top: 6px; font-size: 12px; }
.proto-bar .state-panel ol {
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--ink-dim);
}

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

.shell { padding-top: 28px; padding-bottom: 7rem; min-height: 100vh; display: flex; flex-direction: column; }

.appheader { border-bottom: 1px solid var(--line); background: var(--bg); }
.appheader-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 20px;
    max-width: 1280px;
    margin: 0 auto;
    min-width: 0;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand .mark {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: linear-gradient(140deg, var(--accent), #2f6fbf);
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 700;
    color: #06121f;
}
.brand .name { font-size: 13px; font-weight: 600; letter-spacing: -0.01em; }
.appnav { display: flex; align-items: center; gap: 2px; margin-left: 8px; min-width: 0; overflow-x: auto; }
.appnav a {
    color: var(--ink-dim);
    font-size: 13px;
    padding: 6px 10px;
    border-radius: var(--radius);
    white-space: nowrap;
}
.appnav a:hover { background: var(--panel-2); color: var(--ink); }
.appnav a.here { background: var(--panel-2); color: var(--ink); }
.modechip {
    margin-left: auto;
    font-size: 11px;
    letter-spacing: 0.04em;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 3px 10px;
    color: var(--ink-dim);
    white-space: nowrap;
}

main { flex: 1; max-width: 1280px; width: 100%; margin: 0 auto; padding: 16px 20px 0; display: grid; gap: 14px; align-content: start; }

/* --------------------------------------------------------------- page */

.pagehead { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 14px; }
.pagehead h1 { font-size: 21px; }
.pagehead .lede { color: var(--ink-dim); margin-top: 4px; max-width: 88ch; font-size: 13px; }
.pagehead .actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pagehead .updated { color: var(--ink-faint); font-size: 12px; }

.crumbs { font-size: 12px; color: var(--ink-faint); display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }

.sectionhead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.sectionhead h2 { font-size: 16px; }
.sectionhead .meta { display: flex; align-items: center; gap: 8px; color: var(--ink-faint); font-size: 12px; flex-wrap: wrap; }
.sectionhead h3 { font-size: 13px; }

.notice {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 9px 12px;
    font-size: 13px;
    background: var(--bg);
    color: var(--ink-dim);
}
.notice.warn { border-color: #6b4e12; background: #2a2008; color: #f2cc60; }
.notice.err { border-color: #7a2a28; background: #2a1414; color: #ffb4ad; }
.notice.ok { border-color: #1d4429; background: #0f2317; color: #7ee2a1; }
.notice b { color: inherit; }

.tag {
    display: inline-block;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--ink-dim);
    padding: 1px 8px;
    font-size: 11px;
    line-height: 1.5;
    white-space: nowrap;
}
.tag.accent { border-color: rgba(88, 166, 255, 0.5); background: rgba(88, 166, 255, 0.1); color: var(--accent-bright); }
.tag.warn { border-color: rgba(210, 153, 34, 0.5); background: rgba(210, 153, 34, 0.1); color: var(--warn); }
.tag.muted { border-color: var(--line-soft); color: var(--ink-faint); }
.tag.ok { border-color: rgba(63, 185, 80, 0.5); background: rgba(63, 185, 80, 0.1); color: var(--ok); }
.tag.bad { border-color: rgba(248, 81, 73, 0.5); background: rgba(248, 81, 73, 0.1); color: #ffb4ad; }

.btn {
    border: 1px solid var(--line);
    background: var(--panel-2);
    color: var(--ink);
    border-radius: 6px;
    padding: 6px 12px;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}
.btn:hover { border-color: var(--line-strong); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #06121f; font-weight: 600; }
.btn.ghost { background: none; border-color: transparent; color: var(--ink-dim); }
.btn.ghost:hover { color: var(--ink); background: var(--panel-2); }
.btn.small { font-size: 12px; padding: 4px 9px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn.linklike { background: none; border-color: var(--line); text-decoration: none; display: inline-block; }

/* -------------------------------------------------------------- tables */

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th {
    text-align: left;
    font-weight: 500;
    color: var(--ink-faint);
    font-size: 12px;
    padding: 5px 12px 5px 0;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}
td {
    padding: 6px 12px 6px 0;
    border-bottom: 1px solid var(--line-soft);
    vertical-align: top;
}
td:last-child, th:last-child { padding-right: 0; }
td.code { font-family: var(--mono); font-size: 12px; }
td.wrap { white-space: normal; }
td.num { text-align: right; font-family: var(--mono); }
tr.unreachable td { color: var(--ink-faint); }
.cellgroup { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rowfoot { color: var(--ink-faint); font-size: 12px; margin-top: 10px; }
.typename { color: var(--ink); font-weight: 500; }

/* --------------------------------------------------------------- grid */

.statgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 8px 28px; }
.statgrid .lbl { display: block; color: var(--ink-faint); font-size: 12px; margin-bottom: 2px; }
.statgrid .val { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; }

.gaps dl { margin: 0; display: grid; gap: 12px; font-size: 13px; }
.gaps dt { color: var(--ink); font-weight: 600; margin-bottom: 2px; }
.gaps dd { margin: 0; color: var(--ink-dim); max-width: 100ch; }

/* --------------------------------------------------------- definition */

.defline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.defline .id { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); }

.bindings { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.binding {
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--bg);
    padding: 4px 9px;
    font-size: 11px;
    color: var(--ink-dim);
    line-height: 1.4;
}
.binding b { display: block; color: var(--ink); font-weight: 500; font-family: var(--mono); font-size: 11px; }
.binding.here { border-color: rgba(88, 166, 255, 0.5); background: rgba(88, 166, 255, 0.08); color: var(--accent-bright); }
.binding.here b { color: var(--accent-bright); }


/* --------------------------------------------------------- the rule */

.rule { border: 1px solid #6b4e12; background: #241d0f; border-radius: 6px; padding: 9px 12px; display: grid; gap: 4px; }
.rule .rtitle { color: #f2cc60; font-size: 12px; font-weight: 600; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rule .rbody { color: var(--ink-dim); font-size: 12px; max-width: 118ch; }
.rule.ok { border-color: #1d4429; background: #0f2317; }
.rule.ok .rtitle { color: #7ee2a1; }
.rule.err { border-color: #7a2a28; background: #2a1414; }
.rule.err .rtitle { color: #ffb4ad; }


/* -------------------------------------------------------------- runs */

.runs { display: grid; gap: 0; font-size: 12px; }
.runrow { display: grid; grid-template-columns: 9rem 8rem minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--line-soft); }
.runrow:last-child { border-bottom: none; }
.runrow .rid { font-family: var(--mono); color: var(--ink-dim); font-size: 11px; }
.runrow .rat { font-family: var(--mono); color: var(--ink); font-size: 12px; }
.runrow .rstate { color: var(--ink-faint); }
.runrow .rstate .tag { margin-left: 6px; }

.versions { display: grid; gap: 0; font-size: 12px; }
.vrow { display: grid; grid-template-columns: 4.5rem 10rem minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 5px 0; border-bottom: 1px solid var(--line-soft); }
.vrow:last-child { border-bottom: none; }
.vrow .vno { font-family: var(--mono); color: var(--accent-bright); font-size: 11px; }
.vrow .vat { font-family: var(--mono); color: var(--ink-dim); }
.vrow .vnote { color: var(--ink-faint); }

/* ------------------------------------------------------------- reach */

.reach { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.reach h3 { font-size: 13px; color: var(--ink); margin-bottom: 6px; }
.reach ul { margin: 0; padding-left: 18px; font-size: 13px; color: var(--ink-dim); display: grid; gap: 4px; }
.reach .does h3 { color: var(--ok); }
.reach .not h3 { color: var(--ink-faint); }


/* ================================================================ wizard */

.wizard {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    padding: 8px 12px;
}
.wizard ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; flex: 1 1 auto; }
.wstep button {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid transparent;
    background: none;
    color: var(--ink-faint);
    font: inherit;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
}
.wstep button:hover { background: var(--panel-2); color: var(--ink); }
.wstep .num {
    width: 19px;
    height: 19px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    display: grid;
    place-items: center;
    font-family: var(--mono);
    font-size: 11px;
    flex: 0 0 auto;
}
.wstep.current button { background: var(--accent-dim); border-color: var(--line); color: var(--ink); }
.wstep.current .num { background: var(--accent); border-color: var(--accent); color: #06121f; font-weight: 700; }
.wstep.done .num { border-color: rgba(63, 185, 80, 0.6); color: var(--ok); }
.wstep.done button { color: var(--ink-dim); }
.wizard .wmeta { color: var(--ink-faint); font-size: 12px; white-space: nowrap; }
.wizard .wmeta b { color: var(--accent); font-family: var(--mono); font-weight: 400; }

.stepnav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    border-top: 1px solid var(--line);
    margin-top: 12px;
    padding-top: 10px;
}

/* ------------------------------------------- step 1: the five configurations */

.cfhead, .configrow {
    display: grid;
    grid-template-columns: 10rem 14rem minmax(0, 1fr) 15rem;
    gap: 10px 14px;
    align-items: baseline;
}
.cfhead {
    color: var(--ink-faint);
    font-size: 11px;
    border-bottom: 1px solid var(--line);
    padding: 0 0 4px;
    margin-top: 12px;
}
.configs { display: grid; }
.configrow { padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.configrow:last-child { border-bottom: none; }
.configrow .cftype { font-family: var(--mono); font-size: 12px; color: var(--accent-bright); }
.configrow .cfname { font-size: 13px; color: var(--ink); display: flex; flex-direction: column; gap: 2px; }
.configrow .cfname .tag { align-self: flex-start; }
.configrow .cfwhat { font-size: 12px; color: var(--ink-dim); }
.configrow .cfwhere { font-size: 12px; display: flex; flex-direction: column; gap: 2px; }
.configrow.shared { background: rgba(88, 166, 255, 0.05); border-left: 2px solid var(--accent); padding-left: 8px; margin-left: -10px; }
.route {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    font-size: 12px;
    border-bottom: 1px dashed rgba(88, 166, 255, 0.55);
    align-self: flex-start;
}
.route .arrow { color: var(--ink-faint); }

/* --------------------------------------------- step 2: the switchboard */


@media (max-width: 980px) {
    .ba { grid-template-columns: 1fr; }
    .reach { grid-template-columns: 1fr; }
    .anrow { grid-template-columns: 84px minmax(0, 1fr); }
    .anrow .an-order { display: none; }
    .configrow { grid-template-columns: 10rem minmax(0, 1fr); }
    .configrow .cfwhat, .configrow .cfwhere { grid-column: 1 / -1; }
    .cfhead { display: none; }
    .twocol { grid-template-columns: 1fr; }
    .pickrow { grid-template-columns: minmax(0, 1fr) auto; }
    .pickrow .pickwhat { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
    .appheader-inner { padding: 10px 14px; }
    .appnav { display: none; }
}


/* -------------------------------------- step 2: the analytics, read only */

.summary { display: grid; gap: 10px; }
.anlist { display: grid; gap: 0; }
.anrow {
    display: grid;
    gap: 2px;
    padding: 6px 0 6px 8px;
    border-bottom: 1px solid var(--line-soft);
    border-left: 2px solid transparent;
    margin-left: -10px;
}
.anrow:last-child { border-bottom: none; }
.anrow.isoff .an-name { color: var(--ink-dim); }
.anrow.conflict { background: rgba(248, 81, 73, 0.07); border-left-color: var(--bad); }
.anrow.conflict .an-name { color: #ffb4ad; }
.an-top {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr) 5.5rem auto;
    gap: 10px;
    align-items: baseline;
}
.swnone { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); }
.an-name { display: flex; align-items: baseline; gap: 8px; min-width: 0; font-size: 13px; color: var(--ink); font-weight: 500; }
.an-name .codename { font-family: var(--mono); font-size: 10px; color: var(--ink-faint); font-weight: 400; }
.an-order { font-family: var(--mono); font-size: 12px; color: var(--ink-dim); white-space: nowrap; }
.an-summary { grid-column: 2 / -1; font-size: 11px; color: var(--ink-faint); }
.an-summary .an-count { color: var(--line-strong); }

/* The way out: the summary is read only and the controls live on the shared
   prototype this block links to. */
.analyticslink {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg);
    padding: 12px 16px;
    margin-top: 12px;
}
.analyticslink .hint { max-width: 76ch; margin-top: 4px; }

.nosettings {
    border: 1px dashed var(--line);
    border-radius: 6px;
    background: var(--bg);
    padding: 10px 12px;
    font-size: 13px;
    color: var(--ink-dim);
    max-width: 96ch;
}

@media (max-width: 980px) {
    .an-top { grid-template-columns: 4.5rem minmax(0, 1fr); }
    .an-top .an-order { display: none; }
    .an-summary { grid-column: 2 / -1; }
}

/* ---------------------------------------------------------------- tabs */

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 2px 0 0; flex-wrap: wrap; }
.tabs a {
    padding: 8px 16px;
    color: var(--ink-dim);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    font-size: 13px;
}
.tabs a:hover { color: var(--ink); background: var(--panel-2); border-radius: 6px 6px 0 0; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--accent); }
.tabs.index a { padding: 6px 12px; }

/* ------------------------------------------------------ convention sets */

.setlist { display: grid; gap: 6px; }
.setrow {
    display: grid;
    grid-template-columns: 1.5rem minmax(10rem, 16rem) minmax(0, 1fr) auto;
    gap: 12px;
    align-items: baseline;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--bg);
    padding: 9px 12px;
    cursor: pointer;
}
.setrow:hover { border-color: var(--line-strong); }
.setrow.chosen { border-color: rgba(88, 166, 255, 0.6); background: rgba(88, 166, 255, 0.07); }
.setrow .setname { color: var(--ink); font-weight: 500; }
.setrow .setpurpose { color: var(--ink-dim); font-size: 12px; }
.setrow .setmeta { color: var(--ink-faint); font-size: 12px; white-space: nowrap; }

/* ---------------------------------------------------------------- dialog */

.modal {
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(5, 7, 10, 0.72);
    display: grid;
    place-items: center;
    padding: 20px;
}
.modalbox { width: min(34rem, 100%); box-shadow: 0 18px 60px rgba(0, 0, 0, 0.6); }
.formrow { display: grid; gap: 4px; margin-bottom: 8px; }
.formrow .lbl { color: var(--ink-faint); font-size: 12px; }
.formrow select {
    background: var(--bg);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 6px 8px;
    font: inherit;
}

@media (max-width: 760px) {
    .setrow { grid-template-columns: 1.5rem minmax(0, 1fr); }
    .setrow .setpurpose, .setrow .setmeta { grid-column: 2; }
}

/* ------------------------------------------------------------- currency */

.flag { font-size: 16px; line-height: 1; vertical-align: -1px; }

/* -------------------------------------------------------------- timeline */
/* The shared Timeline of the entity screen specification, as the trade page prototype draws it. */

.chip { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; font-size: 11.5px; color: var(--ink-dim); white-space: nowrap; }
.chip.warn { color: var(--warn); border-color: #4a3a17; }
.chip.acc { color: var(--accent); border-color: rgba(88, 166, 255, 0.5); }
.chip.v { font-family: var(--mono); color: var(--ink-faint); }
.small { font-size: 12px; }

.chart { display: flex; align-items: flex-end; gap: 3px; height: 56px; overflow-x: auto; padding-bottom: 2px; }
.bar { width: 14px; flex: none; display: flex; flex-direction: column-reverse; cursor: pointer; }
.bar i { display: block; }
.k-raised { background: #58a6ff; }
.k-changed { background: #d29922; }
.axis { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; color: var(--ink-faint); margin-bottom: 5px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--ink-dim); margin: 5px 0 10px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; }

.rail .day { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); border-bottom: 1px solid var(--line-soft); padding: 13px 0 4px; }
.entry { display: grid; grid-template-columns: 5.2rem 1.4rem 1fr; position: relative; }
.entry .at { font-family: var(--mono); font-size: 11.5px; color: var(--ink-faint); text-align: right; padding: 10px 10px 0 0; }
.entry .dot { position: relative; display: flex; justify-content: center; }
.entry .dot::before { content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); }
.entry .dot i { position: relative; margin-top: 13px; width: 9px; height: 9px; border-radius: 999px; border: 2px solid var(--accent); background: var(--bg); }
.entry.cur .dot i { background: var(--accent); }
.entry .main { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 6px 0 14px; }
.entry .line1 { display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; }
.entry .note { margin-top: 2px; color: var(--ink-dim); font-size: 13.5px; }
.entry.flash .main { animation: flash 1.5s ease-out; }
@keyframes flash { from { background: rgba(88, 166, 255, 0.25); } to { background: transparent; } }
details.det summary { cursor: pointer; color: var(--ink-faint); font-size: 12.5px; margin-top: 3px; }
.diff { display: grid; gap: 2px; margin-top: 5px; font-size: 13px; }
.dl { display: grid; grid-template-columns: 1.1rem 9rem 1fr; gap: 6px; padding: 1px 6px; border-radius: 3px; }
.dl.old { background: rgba(248, 81, 73, 0.13); }
.dl.new { background: rgba(63, 185, 80, 0.13); }
.dl .sign, .dl .fname { color: var(--ink-faint); }

.avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: var(--panel-2);
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    font-size: 11px;
    color: var(--ink);
}
.avatar.service { color: var(--ink-dim); }

.versions .vrow { grid-template-columns: 10rem minmax(0, 20rem) minmax(0, 1fr); }


.grouphead { margin: 16px 0 6px; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted, #6b7280); }
