:root {
  --bg: #e7eeec;
  --surface: #f8fbfa;
  --surface-2: #eef4f2;
  --ink: #102423;
  --muted: #566c6a;
  --line: #cbd8d6;
  --done: #0d7a70;
  --prog: #b47608;
  --blocked: #b5372f;
  --idle: #b4c3c1;
  --track: #dde7e5;
  --primary: #123634;
  --primary-ink: #f2f8f7;
  --focus: #1f8f84;
  --shadow: 0 1px 0 rgba(16, 36, 35, .04), 0 8px 24px -16px rgba(16, 36, 35, .25);
  --font: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1615; --surface: #13211f; --surface-2: #182a28; --ink: #e2edeb; --muted: #91a7a4;
    --line: #243b38; --done: #3bbcad; --prog: #e6ab3e; --blocked: #ec6c62; --idle: #3e5552; --track: #1d302e;
    --primary: #3bbcad; --primary-ink: #06201d; --focus: #5fd3c4; --shadow: 0 1px 0 rgba(0,0,0,.2), 0 10px 30px -18px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c1615; --surface: #13211f; --surface-2: #182a28; --ink: #e2edeb; --muted: #91a7a4;
  --line: #243b38; --done: #3bbcad; --prog: #e6ab3e; --blocked: #ec6c62; --idle: #3e5552; --track: #1d302e;
  --primary: #3bbcad; --primary-ink: #06201d; --focus: #5fd3c4; --shadow: 0 1px 0 rgba(0,0,0,.2), 0 10px 30px -18px rgba(0,0,0,.7);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.5 var(--font); font-feature-settings: "tnum" 1; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- top bar */
.bar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar-in { max-width: 1320px; margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }
.brand svg { width: 26px; height: 26px; flex: none; }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { text-decoration: none; color: var(--muted); padding: 6px 12px; border-radius: 8px; font-weight: 500; }
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.bar-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.live { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--idle); }
.live.on i { background: var(--done); box-shadow: 0 0 0 0 color-mix(in srgb, var(--done) 60%, transparent); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--done) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }
.who { display: flex; align-items: center; gap: 8px; text-decoration: none; font-size: 14px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 12px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }

main { max-width: 1320px; margin: 0 auto; padding: 28px 24px 80px; }

/* ---------- buttons & fields */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 9px; padding: 9px 16px; font-weight: 600; cursor: pointer; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; }
.btn:hover { background: var(--surface); }
.btn.primary { background: var(--primary); color: var(--primary-ink); box-shadow: none; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; box-shadow: none; color: var(--muted); padding: 6px 10px; }
.btn.ghost:hover { color: var(--ink); background: var(--surface-2); }
.btn.danger { color: var(--blocked); }
.btn.sm { padding: 6px 11px; font-size: 13px; border-radius: 7px; }
.btn[disabled] { opacity: .55; cursor: default; }
.field { display: grid; gap: 5px; }
.field > span { font-size: 13px; color: var(--muted); font-weight: 500; }
.input, select.input, textarea.input { width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 9px; padding: 9px 11px; }
textarea.input { resize: vertical; min-height: 84px; line-height: 1.45; }
.input:focus { outline: 2px solid var(--focus); outline-offset: -1px; border-color: transparent; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 20px; margin-bottom: 20px; }
.panel { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow), inset 0 0 0 1px var(--line); padding: 22px 24px; }
.countdown { display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; align-items: end; position: relative; overflow: hidden; }
.countdown .days { font-size: clamp(64px, 9vw, 112px); line-height: .82; font-weight: 800; letter-spacing: -.055em; grid-row: span 2; }
.countdown .days small { font-size: .2em; letter-spacing: 0; font-weight: 600; color: var(--muted); margin-left: 6px; }
.countdown h2 { margin: 0; font-size: 22px; line-height: 1.2; letter-spacing: -.015em; }
.countdown p { margin: 0; color: var(--muted); font-size: 14px; }
.countdown .next { grid-column: 1 / -1; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); }
.countdown .next b { color: var(--ink); font-weight: 600; }
.unconf { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--prog); background: color-mix(in srgb, var(--prog) 13%, transparent); padding: 2px 8px; border-radius: 99px; }

.overall h2 { margin: 0 0 2px; font-size: 15px; font-weight: 600; color: var(--muted); }
.overall .big { font-size: 44px; font-weight: 800; letter-spacing: -.04em; line-height: 1.05; }
.overall .big span { font-size: 18px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.stack { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: var(--track); margin: 14px 0 12px; gap: 2px; }
.stack i { display: block; height: 100%; transition: width .5s cubic-bezier(.2,.7,.2,1); }
.s-done { background: var(--done); } .s-prog { background: var(--prog); } .s-blocked { background: var(--blocked); } .s-idle { background: var(--idle); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 9px; height: 9px; border-radius: 3px; }
.orgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.org { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; }
.org b { display: block; font-size: 13px; }
.org span { font-size: 12.5px; color: var(--muted); }
.org .n { font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }

/* ---------- trace waterfall (phases) */
.trace { padding: 18px 0 8px; margin-bottom: 20px; }
.trace-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 24px 12px; gap: 12px; }
.trace-head h2 { margin: 0; font-size: 18px; letter-spacing: -.01em; }
.trace-head p { margin: 0; color: var(--muted); font-size: 13px; }
.span-row { display: grid; grid-template-columns: 34px minmax(160px, 260px) minmax(0, 1fr) 132px; align-items: center; gap: 14px; padding: 11px 24px; border-top: 1px solid var(--line); cursor: pointer; background: none; border-left: 0; border-right: 0; border-bottom: 0; width: 100%; text-align: left; }
.span-row:hover { background: var(--surface-2); }
.span-row .idx { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--idle); color: var(--muted); }
.span-row.complete .idx { background: var(--done); color: var(--surface); box-shadow: none; }
.span-row.active .idx { box-shadow: inset 0 0 0 2px var(--prog); color: var(--ink); }
.span-row .nm { font-weight: 600; line-height: 1.25; }
.span-row .nm small { display: block; font-weight: 400; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.span-lane { position: relative; height: 24px; }
.span-track { position: absolute; top: 0; bottom: 0; background: var(--track); border-radius: 6px; overflow: hidden; display: flex; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--idle) 70%, transparent); }
.span-track i { height: 100%; transition: width .6s cubic-bezier(.2,.7,.2,1); }
.span-track.clipped { border-top-right-radius: 0; border-bottom-right-radius: 0; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.span-lbl { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; font-size: 12px; color: var(--muted); white-space: nowrap; pointer-events: none; }
.has-today .span-lane::after, .has-today .axis-track::after { content: ""; position: absolute; top: -12px; bottom: -12px; left: calc(var(--today) * 1%); width: 2px; margin-left: -1px; background: var(--ink); opacity: .55; z-index: 2; }
.has-today .axis-track::after { top: 14px; bottom: -6px; }
.has-today .axis-track::before { content: "Today"; position: absolute; top: 0; left: calc(var(--today) * 1%); transform: translateX(-50%); font-size: 11px; font-weight: 700; background: var(--ink); color: var(--surface); padding: 0 6px; border-radius: 4px; z-index: 3; line-height: 15px; }
.span-row.axis { border-top: 0; }
.span-row.axis:hover { background: none; }
.axis-track { position: relative; height: 40px; }
.tick { position: absolute; bottom: 0; font-size: 11.5px; color: var(--muted); font-weight: 600; padding-left: 5px; border-left: 1px solid var(--line); line-height: 14px; }
.mark { position: absolute; bottom: 21px; width: 10px; height: 10px; margin-left: -5px; transform: rotate(45deg); background: var(--surface); box-shadow: inset 0 0 0 2px var(--ink); z-index: 1; }
.mark.pin { background: var(--blocked); box-shadow: none; }
.gate-tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 7px; margin-right: 7px; border-radius: 4px; background: var(--ink); color: var(--surface); vertical-align: 1px; text-decoration: none; }
.internal-tag { font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 4px; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); background: repeating-linear-gradient(-45deg, transparent 0 4px, color-mix(in srgb, var(--line) 50%, transparent) 4px 5px); }
.checkline { display: inline-flex; align-items: flex-start; gap: 8px; font-size: 14px; cursor: pointer; margin-right: 14px; }
.checkline input { margin-top: 3px; accent-color: var(--done); width: 16px; height: 16px; }
.checkline small { display: block; color: var(--muted); font-size: 12px; }
.linklike { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.linklike:hover { text-decoration: underline; text-underline-offset: 3px; }
.risk-h { margin: 12px 0 4px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.risks { list-style: none; margin: 0; padding: 0; }
.risk-btn { display: flex; gap: 9px; align-items: baseline; width: 100%; text-align: left; border: 0; background: none; padding: 6px 0; cursor: pointer; font-size: 13.5px; line-height: 1.35; border-top: 1px solid var(--line); }
.risks li:first-child .risk-btn { border-top: 0; }
.risk-btn:hover span { text-decoration: underline; text-underline-offset: 3px; }
.sev { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--idle); transform: translateY(-1px); }
.sev.high { background: var(--blocked); }
.sev.medium { background: var(--prog); }
.ms.gate .d { background: var(--ink); color: var(--surface); }
.ms.gate .d span { color: inherit; opacity: .75; }
.span-meta { text-align: right; font-size: 13px; color: var(--muted); }
.span-meta b { display: block; color: var(--ink); font-size: 15px; }
.risk { color: var(--blocked) !important; }

/* ---------- workspace */
.work { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filters .input { width: auto; padding: 7px 10px; }
.filters .search { flex: 1 1 200px; min-width: 160px; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 9px; padding: 3px; box-shadow: inset 0 0 0 1px var(--line); }
.seg button { border: 0; background: none; padding: 5px 11px; border-radius: 7px; cursor: pointer; font-size: 13px; color: var(--muted); font-weight: 500; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08), inset 0 0 0 1px var(--line); }

.phase { margin-bottom: 16px; scroll-margin-top: 80px; }
.phase-h { display: flex; align-items: center; gap: 12px; padding: 14px 18px; }
.phase-h h3 { margin: 0; font-size: 16px; letter-spacing: -.01em; }
.phase-h .count { color: var(--muted); font-size: 13px; }
.phase-h .dates { color: var(--muted); font-size: 12.5px; margin-left: auto; }
.phase-h .btn { flex: none; }
.items { list-style: none; margin: 0; padding: 0; }
.item { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 18px; border-top: 1px solid var(--line); }
.item:hover { background: var(--surface-2); }
.item .title { border: 0; background: none; text-align: left; padding: 0; cursor: pointer; font-weight: 500; line-height: 1.35; }
.item .title:hover { text-decoration: underline; text-underline-offset: 3px; }
.item.done .title { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 55%, transparent); }
.item .sub { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.item .right { display: flex; gap: 8px; align-items: center; }
.chk { width: 24px; height: 24px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; box-shadow: inset 0 0 0 2px var(--idle); background: transparent; padding: 0; }
.chk svg { width: 14px; height: 14px; opacity: 0; }
.chk:hover svg { opacity: .35; }
.chk.done { background: var(--done); box-shadow: none; }
.chk.done svg { opacity: 1; color: var(--surface); }
.chk.in_progress { box-shadow: inset 0 0 0 2px var(--prog); background: conic-gradient(var(--prog) 0 50%, transparent 50% 100%); }
.chk.blocked { box-shadow: inset 0 0 0 2px var(--blocked); }
.chk.blocked::after { content: ""; width: 10px; height: 2px; background: var(--blocked); border-radius: 2px; }
.chk[disabled] { cursor: default; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 99px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.chip.org-Cisco { box-shadow: inset 3px 0 0 #1b8fd2, inset 0 0 0 1px var(--line); }
.chip.org-Netsync { box-shadow: inset 3px 0 0 #7a5bd6, inset 0 0 0 1px var(--line); }
.chip.org-Ochsner { box-shadow: inset 3px 0 0 #0d7a70, inset 0 0 0 1px var(--line); }
.st { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 99px; white-space: nowrap; }
.st.blocked { color: var(--blocked); background: color-mix(in srgb, var(--blocked) 12%, transparent); }
.st.in_progress { color: var(--prog); background: color-mix(in srgb, var(--prog) 13%, transparent); }
.hi { color: var(--blocked); font-weight: 600; }
.overdue { color: var(--blocked); font-weight: 600; }
.add-row { padding: 10px 18px 14px; border-top: 1px solid var(--line); }
.add-row form { display: flex; gap: 8px; }
.add-row .input { padding: 7px 10px; }
.empty { padding: 18px; color: var(--muted); font-size: 14px; }

.side { display: grid; gap: 16px; position: sticky; top: 76px; }
.side h3 { margin: 0 0 10px; font-size: 15px; display: flex; align-items: center; justify-content: space-between; }
.ms { display: grid; grid-template-columns: 52px 1fr; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.ms:first-of-type { border-top: 0; }
.ms .d { text-align: center; border-radius: 9px; background: var(--surface-2); padding: 4px 0; line-height: 1.1; }
.ms .d b { display: block; font-size: 19px; }
.ms .d span { font-size: 11px; color: var(--muted); font-weight: 600; }
.ms.past { opacity: .55; }
.ms .t { font-weight: 600; font-size: 14px; }
.ms .n { font-size: 12.5px; color: var(--muted); }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.4; }
.feed li:first-child { border-top: 0; }
.feed .meta { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.feed li.fresh { animation: flash 1.6s ease-out; }
@keyframes flash { from { background: color-mix(in srgb, var(--done) 18%, transparent); } to { background: transparent; } }

/* ---------- drawer */
.scrim { position: fixed; inset: 0; background: rgba(6, 18, 17, .38); z-index: 40; opacity: 0; transition: opacity .2s; }
.scrim.open { opacity: 1; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); background: var(--surface); z-index: 41; box-shadow: -20px 0 50px -20px rgba(0,0,0,.35); transform: translateX(100%); transition: transform .25s cubic-bezier(.2,.7,.2,1); display: flex; flex-direction: column; }
.drawer.open { transform: none; }
.drawer header { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer header h2 { margin: 0; font-size: 16px; flex: 1; }
.drawer .body { overflow: auto; padding: 18px 20px 28px; display: grid; gap: 14px; align-content: start; }
.drawer h4 { margin: 10px 0 0; font-size: 14px; }
.comment { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment .meta { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; white-space: normal; }
.hist { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.hist li { padding: 7px 0 7px 14px; border-left: 2px solid var(--line); position: relative; }
.hist li::before { content: ""; position: absolute; left: -5px; top: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--idle); }
.hist li.completed::before { background: var(--done); }
.hist .meta { display: block; color: var(--muted); font-size: 12px; }

/* ---------- history page */
.page-h { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-h h1 { margin: 0; font-size: 30px; letter-spacing: -.03em; }
.page-h p { margin: 4px 0 0; color: var(--muted); }
.log { list-style: none; margin: 0; padding: 0; }
.log li { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 12px 20px; border-top: 1px solid var(--line); }
.log li:first-child { border-top: 0; }
.log time { color: var(--muted); font-size: 13px; }
.log .who { font-weight: 600; display: inline; }
.log .tag { font-size: 11.5px; font-weight: 600; color: var(--muted); margin-left: 8px; }
.log .tag.completed { color: var(--done); }
.day-sep { padding: 14px 20px 6px !important; font-weight: 700; font-size: 13px; color: var(--muted); display: block !important; border-top: 0 !important; }

/* ---------- tables */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-weight: 600; color: var(--muted); font-size: 13px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .input { padding: 5px 8px; width: auto; }
.linkbox { display: flex; gap: 8px; margin-top: 12px; padding: 12px; background: var(--surface-2); border-radius: 10px; align-items: center; }
.linkbox code { flex: 1; overflow-wrap: anywhere; font-size: 13px; }

/* ---------- auth */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: min(440px, 100%); }
.auth-card .panel { padding: 30px; }
.auth-card h1 { margin: 18px 0 6px; font-size: 28px; letter-spacing: -.03em; line-height: 1.1; }
.auth-card p { margin: 0 0 18px; color: var(--muted); }
.auth-card form { display: grid; gap: 12px; }
.auth-card .btn.primary { padding: 12px 18px; font-size: 16px; width: 100%; }
.auth-foot { margin-top: 16px; font-size: 13px; color: var(--muted); text-align: center; }
.auth-mark { display: flex; gap: 4px; align-items: flex-end; height: 40px; }
.auth-mark i { width: 10px; border-radius: 3px; background: var(--done); }
.err { color: var(--blocked); font-size: 14px; min-height: 1em; }

#toast { position: fixed; bottom: 22px; left: 50%; transform: translate(-50%, 20px); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-size: 14px; opacity: 0; transition: .2s; pointer-events: none; z-index: 60; max-width: calc(100vw - 32px); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.bad { background: var(--blocked); color: #fff; }

@media (max-width: 1080px) {
  .work { grid-template-columns: 1fr; }
  .side { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .span-row { grid-template-columns: 28px minmax(0, 1fr) 76px; }
  .span-row .span-lane, .span-row .axis-track { grid-column: 2 / -1; grid-row: 2; }
  .span-row.axis > span { display: none; }
  .side { grid-template-columns: 1fr; }
  .nav a { padding: 6px 8px; }
  .log li { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 640px) {
  main { padding: 18px 16px 60px; }
  .bar-in { padding: 10px 16px; gap: 10px; flex-wrap: wrap; }
  .nav { order: 3; width: 100%; margin: 0; overflow-x: auto; }
  .live span { display: none; }
  .who > span:not(.avatar) { display: none; }
  .trace-head p { display: none; }
  .panel { padding: 18px 16px; }
  .trace-head, .span-row { padding-left: 16px; padding-right: 16px; }
  .orgs { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .item { padding: 10px 14px; grid-template-columns: 28px minmax(0, 1fr); }
  .item .right { grid-column: 2; }
  .phase-h { flex-wrap: wrap; padding: 12px 14px; }
  .phase-h .dates { margin-left: 0; width: 100%; }
  .grid2 { grid-template-columns: 1fr; }
  .tbl-wrap { overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* revoke access */
.acc-off { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: var(--blocked); border: 1px solid currentColor; vertical-align: 1px; }
.btn.primary.revoke-go { background: var(--blocked); color: #fff; }
