/* Layout: app shell. Sticky header band; left rail of views on desktop, scrolling tab strip on phone; one working column of cards. */
:root {
  --bg: #F2F3F6;
  --surface: #FFFFFF;
  --surface-2: #EBEDF2;
  --line: #D9DCE4;
  --ink: #141B2C;
  --ink-2: #474F63;
  --ink-3: #6E7588;
  --gold: #B8913F;
  --gold-strong: #9C7A30;
  --gold-ink: #1C1406;
  --gold-soft: #F4ECDA;
  --gold-text: #876423;
  --ok: #1D7149; --ok-soft: #DDF0E5;
  --warn: #8C6100; --warn-soft: #FAEDCC;
  --bad: #A93636; --bad-soft: #F7E0DE;
  --info: #2D5BA6; --info-soft: #E0E9F7;
  --shadow: 0 1px 2px rgba(20,27,44,.06), 0 4px 16px rgba(20,27,44,.05);
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C1019; --surface: #141A27; --surface-2: #1B2232; --line: #283146;
    --ink: #E8EBF2; --ink-2: #AEB4C4; --ink-3: #848B9E;
    --gold: #D2AE62; --gold-strong: #E2C27D; --gold-ink: #1A1305; --gold-soft: #2B2416; --gold-text: #DDBD76;
    --ok: #5CC38D; --ok-soft: #12291D; --warn: #E2B04A; --warn-soft: #30250E;
    --bad: #EE7D74; --bad-soft: #351817; --info: #84A8EC; --info-soft: #172238;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 20px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0C1019; --surface: #141A27; --surface-2: #1B2232; --line: #283146;
  --ink: #E8EBF2; --ink-2: #AEB4C4; --ink-3: #848B9E;
  --gold: #D2AE62; --gold-strong: #E2C27D; --gold-ink: #1A1305; --gold-soft: #2B2416; --gold-text: #DDBD76;
  --ok: #5CC38D; --ok-soft: #12291D; --warn: #E2B04A; --warn-soft: #30250E;
  --bad: #EE7D74; --bad-soft: #351817; --info: #84A8EC; --info-soft: #172238;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 20px rgba(0,0,0,.25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.5; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--surface); }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; }
h1 { font-size: 1.55rem; font-weight: 700; font-stretch: 112%; letter-spacing: -0.01em; }
h2 { font-size: 1.12rem; font-weight: 700; font-stretch: 108%; }
h3 { font-size: 0.98rem; font-weight: 650; }
p { margin: 0; }
a { color: var(--gold-text); }
.mono, .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.small { font-size: 0.82rem; }
.eyebrow { font-family: var(--font-display); font-size: 0.7rem; font-weight: 700; font-stretch: 125%; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }

/* Header band */
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-block: 10px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; color: inherit; }
.brand svg { flex: none; }
.brand-name { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-word { font-family: var(--font-display); font-weight: 600; font-stretch: 125%; letter-spacing: 0.2em; font-size: 0.72rem; color: var(--gold-text); white-space: nowrap; }
.brand-title { font-family: var(--font-display); font-weight: 700; font-size: 1rem; white-space: nowrap; }
.group-pill { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); font-size: 0.8rem; color: var(--ink-2); white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); display: inline-block; flex: none; }
.dot.ok { background: var(--ok); } .dot.warn { background: var(--warn); } .dot.bad { background: var(--bad); } .dot.info { background: var(--info); }
.viewer { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--ink-2); }
select, input, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; }
textarea { width: 100%; resize: vertical; min-height: 84px; line-height: 1.45; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--gold); padding: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.tabstrip { overflow-x: auto; border-top: 1px solid var(--line); }
.tabstrip-inner { display: flex; gap: 4px; padding-block: 6px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); width: max-content; }

/* Prototype notice */
.proto { background: var(--gold-soft); border-bottom: 1px solid var(--line); }
.proto-inner { display: flex; gap: 10px 16px; align-items: center; flex-wrap: wrap; padding-block: 8px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); font-size: 0.84rem; color: var(--ink-2); }
.proto strong { color: var(--ink); }

/* Shell */
.shell { display: grid; grid-template-columns: 1fr; gap: 24px; max-width: 1180px; margin: 0 auto; padding-block: 20px 64px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.rail { display: none; }
@media (min-width: 900px) {
  .shell { grid-template-columns: 210px minmax(0, 1fr); }
  .rail { display: block; }
  .rail nav { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); display: flex; flex-direction: column; gap: 2px; }
  .tabstrip { display: none; }
}
.navlink { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: 0.92rem; white-space: nowrap; }
.navlink:hover { background: var(--surface-2); color: var(--ink); }
.navlink[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: inset 3px 0 0 var(--gold), var(--shadow); }
.tabstrip .navlink[aria-current="page"] { background: var(--gold-soft); box-shadow: none; }
.navlink .badge { margin-left: auto; }
.rail-foot { margin-top: 20px; padding: 12px; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--ink-3); display: grid; gap: 6px; }
.rail-foot .row { display: flex; justify-content: space-between; gap: 8px; }

main { min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.pagehead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.pagehead p { color: var(--ink-2); max-width: 62ch; margin-top: 4px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; min-width: 0; }
.card.raised { box-shadow: var(--shadow); }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.grid2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); font-family: var(--font-mono); font-size: 0.74rem; font-weight: 500; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: 0.76rem; font-weight: 600; white-space: nowrap; }
.pill.waiting { background: var(--warn-soft); color: var(--warn); }
.pill.approved { background: var(--ok-soft); color: var(--ok); }
.pill.replaced { background: var(--info-soft); color: var(--info); }
.pill.rejected { background: var(--bad-soft); color: var(--bad); }
.pill.neutral { background: var(--surface-2); color: var(--ink-2); }
.pill.paid { background: var(--ok-soft); color: var(--ok); }
.kind { font-family: var(--font-display); font-size: 0.66rem; font-weight: 700; font-stretch: 125%; letter-spacing: 0.12em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: var(--surface-2); color: var(--ink-2); }
.kind.quiz { background: var(--gold-soft); color: var(--gold-text); }
.topic { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-3); white-space: nowrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-size: 0.86rem; font-weight: 600; padding: 7px 13px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.btn.primary:hover { background: var(--gold-strong); border-color: var(--gold-strong); }
.btn.quiet { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn.quiet:hover { background: var(--surface-2); color: var(--ink); }
.btn.danger { color: var(--bad); }
.btn.danger:hover { background: var(--bad-soft); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.sm { padding: 4px 10px; font-size: 0.8rem; }

/* Status banner */
.banner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.banner h2 { font-size: 1.2rem; }
.banner p { color: var(--ink-2); margin-top: 6px; }
@media (max-width: 560px) { .banner { grid-template-columns: 1fr; } }
.meter { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: var(--surface-2); gap: 2px; margin-top: 12px; max-width: 520px; }
.meter span { display: block; height: 100%; }
.meter .m-ok { background: var(--ok); } .meter .m-info { background: var(--info); } .meter .m-warn { background: var(--warn); opacity: .55; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; font-size: 0.8rem; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

/* Rhythm strip */
.rhythm { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 10px; }
.slot { padding: 12px; border-radius: 8px; background: var(--surface-2); display: grid; gap: 2px; }
.slot .when { font-family: var(--font-mono); font-size: 0.8rem; color: var(--gold-text); }
.slot .what { font-weight: 650; }

/* Timeline */
.tl { display: flex; flex-direction: column; }
.tl-row { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.tl-row:first-child { border-top: 0; }
.tl-when { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-2); }
.tl-what { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) { .tl-row { grid-template-columns: 1fr auto; } .tl-when { grid-column: 1 / -1; } }

/* Review items */
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font: inherit; font-size: 0.82rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.week { display: flex; flex-direction: column; gap: 10px; }
.week-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 4px 2px; }
.item { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.item.is-waiting { border-left: 3px solid var(--warn); }
.item.is-approved { border-left: 3px solid var(--ok); }
.item.is-replaced { border-left: 3px solid var(--info); }
.item.is-rejected { border-left: 3px solid var(--bad); }
.when-col { display: grid; align-content: start; gap: 2px; }
.when-col .d { font-family: var(--font-display); font-weight: 700; font-stretch: 110%; font-size: 1.02rem; }
.when-col .t { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-3); }
.item-body { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.item-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.item-meta .pill { margin-left: auto; }
.content { white-space: pre-line; overflow-wrap: anywhere; }
.content.joke { font-size: 1.02rem; }
.quiz-q { font-weight: 650; }
.opts { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.opts li { display: flex; gap: 10px; align-items: baseline; padding: 6px 10px; border-radius: 6px; background: var(--surface-2); }
.opts li.correct { background: var(--ok-soft); }
.opts .letter { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-3); }
.opts li.correct .letter { color: var(--ok); }
.why { font-size: 0.84rem; color: var(--ink-2); display: flex; gap: 6px; align-items: baseline; }
.prize { font-size: 0.84rem; color: var(--gold-text); font-weight: 600; }
.by { font-size: 0.8rem; color: var(--ink-3); }
.was { font-size: 0.84rem; color: var(--ink-3); border-left: 2px solid var(--line); padding-left: 10px; }
.was s { text-decoration-color: var(--ink-3); }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 560px) {
  .item { grid-template-columns: 1fr; gap: 8px; }
  .when-col { grid-auto-flow: column; justify-content: start; gap: 10px; align-items: baseline; }
}
.panel { border: 1px dashed var(--line); border-radius: 8px; padding: 12px; display: grid; gap: 10px; background: var(--bg); }
.panel label, .field label { font-size: 0.82rem; font-weight: 600; color: var(--ink-2); }
.field { display: grid; gap: 4px; }
.choice { display: flex; flex-wrap: wrap; gap: 6px; }
.choice .btn[aria-pressed="true"] { border-color: var(--gold); background: var(--gold-soft); color: var(--ink); }
.spare-preview { padding: 10px 12px; background: var(--surface); border-radius: 8px; border: 1px solid var(--line); white-space: pre-line; }
.opt-edit { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: center; }

.stickybar { position: sticky; bottom: 0; z-index: 5; margin-top: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px 14px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; }

/* Giveaways */
.winners { display: flex; flex-direction: column; }
.winner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 8px 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.winner:first-child { border-top: 0; }
.winner .who { min-width: 0; }
.winner .adv { font-size: 0.88rem; min-width: 0; }
.tg-btn { display: block; margin-top: 10px; padding: 8px; border-radius: 8px; background: var(--surface-2); color: var(--info); text-align: center; font-weight: 600; font-size: 0.88rem; }
.tg-keys { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tg-key { flex: 1 1 28%; padding: 7px 8px; border-radius: 8px; background: var(--surface-2); color: var(--info); text-align: center; font-weight: 600; font-size: 0.84rem; white-space: nowrap; }
.tg-key.wide { flex-basis: 100%; }
.mail { margin-top: 14px; border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: grid; gap: 8px; background: var(--bg); }
.mail-head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; align-items: baseline; }
.winner .act { display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 560px) { .winner { grid-template-columns: minmax(0, 1fr) auto; } .winner .act { grid-column: 1 / -1; justify-content: flex-start; } }
.scroll-x { overflow-x: auto; }
.tg { background: var(--surface-2); border-radius: 12px; padding: 14px; display: grid; gap: 8px; }
.tg-topic { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-3); }
.bubble { background: var(--surface); border-radius: 12px 12px 12px 4px; padding: 10px 12px; box-shadow: var(--shadow); white-space: pre-line; overflow-wrap: anywhere; max-width: 520px; }
.bubble .sig { display: block; margin-top: 6px; text-align: right; font-size: 0.74rem; color: var(--ink-3); }
.bubble .att { display: flex; gap: 8px; align-items: center; padding: 8px; margin-bottom: 8px; background: var(--surface-2); border-radius: 8px; font-size: 0.84rem; }
.bubble img { display: block; border-radius: 8px; margin-bottom: 8px; max-height: 220px; object-fit: cover; width: 100%; }
.steps { display: grid; gap: 8px; counter-reset: s; }
.steps li { list-style: none; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; }
.steps li::before { counter-increment: s; content: counter(s); font-family: var(--font-mono); font-size: 0.78rem; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); color: var(--ink-2); display: grid; place-items: center; }
.steps { margin: 0; padding: 0; }

/* Stats */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 2px; }
.kpi .v { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; font-stretch: 110%; font-variant-numeric: tabular-nums; }
.kpi .l { font-size: 0.82rem; color: var(--ink-2); }
.chart-wrap { position: relative; }
.chart-wrap svg { display: block; width: 100%; height: auto; overflow: visible; }
.tip { position: absolute; pointer-events: none; background: var(--ink); color: var(--surface); font-size: 0.8rem; padding: 6px 9px; border-radius: 6px; max-width: 240px; transform: translate(-50%, calc(-100% - 10px)); box-shadow: var(--shadow); line-height: 1.35; }
.tip .tv { font-family: var(--font-mono); }
table.data { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
table.data th { text-align: left; font-weight: 600; color: var(--ink-3); font-size: 0.76rem; letter-spacing: 0.04em; text-transform: uppercase; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: 9px 8px; border-bottom: 1px solid var(--line); }
table.data td.n { font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar-mini { display: inline-block; height: 8px; border-radius: 0 4px 4px 0; background: var(--gold); vertical-align: middle; margin-right: 8px; }

/* Team */
.person { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.person:first-child { border-top: 0; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-stretch: 115%; background: var(--surface-2); color: var(--ink-2); }
.avatar.owner { background: var(--gold-soft); color: var(--gold-text); }
.settings-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.lock { font-size: 0.82rem; color: var(--ink-3); }

.empty { padding: 24px; text-align: center; color: var(--ink-3); border: 1px dashed var(--line); border-radius: var(--radius); }
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--surface); padding: 10px 16px; border-radius: 8px; font-size: 0.88rem; box-shadow: var(--shadow); z-index: 50; max-width: calc(100% - 32px); }
@media (prefers-reduced-motion: no-preference) {
  .toast { animation: rise .18s ease-out; }
  @keyframes rise { from { transform: translate(-50%, 8px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
}

/* ---- live panel additions ---- */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
[hidden] { display: none !important; }
img { max-width: 100%; }
.signin { min-height: 100vh; display: grid; place-items: center; padding-block: 24px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.signin-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 28px 24px; max-width: 400px; width: 100%; display: grid; gap: 14px; justify-items: start; }
.signin-card .brand { margin-bottom: 4px; }
.signin-error { color: var(--bad); font-size: 0.9rem; }
.loading { padding: 40px 0; color: var(--ink-3); text-align: center; }
.issues { border: 1px solid var(--bad); background: var(--bad-soft); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 6px; }
.issues h2 { color: var(--bad); font-size: 1rem; }
.pill.sent { background: var(--surface-2); color: var(--ink-2); }
.pill.failed { background: var(--bad-soft); color: var(--bad); }
.btn[aria-busy="true"] { opacity: 0.6; pointer-events: none; }
.check { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px; align-items: baseline; padding: 6px 0; }
.check .mark { font-weight: 700; }
.check .mark.ok { color: var(--ok); }
.check .mark.bad { color: var(--bad); }
.log { font-size: 0.84rem; display: grid; gap: 4px; }
.log div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px; }
@media (max-width: 560px) { .log div { grid-template-columns: 1fr; gap: 0; } }
.inline-edit { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.inline-edit input { min-width: 0; flex: 1 1 180px; }
