:root {
  --bg: #f3f5f7; --panel: #ffffff; --ink: #0f1b24; --ink-2: #334155; --muted: #5b6b7f; --line: #e2e8f0; --line-2: #cbd5e1; --soft: #f7f9fb;
  --accent: #0f766e; --accent-hover: #0d6560; --accent-ink: #ffffff; --accent-soft: #d5f5ef; --accent-line: #99e2d6;
  --ok: #15803d; --ok-soft: #dcfce7; --warn: #a16207; --warn-soft: #fef3c7; --bad: #b91c1c; --bad-soft: #fee2e2; --info: #1d4ed8; --info-soft: #dbeafe;
  --side: #0c1a22; --side-ink: #b8c6d4; --side-active: #16303c; --side-line: #1c2f3a;
  --radius: 12px; --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 2px 10px rgba(15, 23, 42, .04);
  --shadow-lg: 0 24px 64px rgba(2, 6, 23, .28);
  --ring: 0 0 0 3px rgba(15, 118, 110, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 14px; line-height: 1.45; color-scheme: light;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1117; --panel: #111b23; --ink: #e6edf3; --ink-2: #c3cfdb; --muted: #93a4b7; --line: #1f2d38; --line-2: #2b3d4a; --soft: #0e1820;
    --accent: #2dd4bf; --accent-hover: #5eead4; --accent-ink: #042f2e; --accent-soft: #10332f; --accent-line: #1d5a52;
    --ok: #4ade80; --ok-soft: #12301f; --warn: #fbbf24; --warn-soft: #3a2c0c; --bad: #f87171; --bad-soft: #3b1414; --info: #93c5fd; --info-soft: #172554;
    --side: #070d12; --side-active: #132430; --side-line: #14222c; --shadow: none; --shadow-lg: 0 24px 64px rgba(0, 0, 0, .6);
    --ring: 0 0 0 3px rgba(45, 212, 191, .4); color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { min-height: 100vh; }
.hidden { display: none !important; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 24px; margin: 0; letter-spacing: -.015em; line-height: 1.2; }
h2 { font-size: 15px; margin: 0 0 12px; letter-spacing: -.005em; }
h3 { font-size: 12px; margin: 0 0 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
p { margin: 0 0 8px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico.sm { width: 15px; height: 15px; }
.ico.lg { width: 22px; height: 22px; }

/* keyboard focus: always visible, never on mouse click */
:focus { outline: none; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* ------------------------------------------------------------ shell */
.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.shell > * { min-width: 0; }
.sidebar { background: var(--side); color: var(--side-ink); display: flex; flex-direction: column; padding: 18px 12px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; color: #fff; padding: 2px 10px 20px; letter-spacing: -.01em; }
.brand small { display: block; font-weight: 500; font-size: 11.5px; color: var(--side-ink); letter-spacing: 0; }
.brand.big { color: var(--ink); font-size: 22px; padding: 0; justify-content: center; }
.logo { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(140deg, #14b8a6, #0f766e); position: relative; flex: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.logo::after { content: ""; position: absolute; inset: 8px 6px 10px; border: 2px solid #fff; border-radius: 2px; }
.logo::before { content: ""; position: absolute; left: 11px; right: 11px; bottom: 6px; height: 2px; background: #fff; border-radius: 2px; }
#nav { display: flex; flex-direction: column; gap: 2px; }
#nav a { color: var(--side-ink); padding: 9px 12px; border-radius: 8px; display: flex; gap: 11px; align-items: center; font-weight: 500; transition: background .15s var(--ease), color .15s var(--ease); text-decoration: none; }
#nav a .ico { opacity: .8; }
#nav a:hover { background: var(--side-active); color: #fff; }
#nav a.active { background: var(--side-active); color: #fff; box-shadow: inset 3px 0 0 #2dd4bf; }
#nav a.active .ico { opacity: 1; color: #5eead4; }
#nav .badge { margin-left: auto; background: #dc2626; color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 7px; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding: 12px 10px 4px; font-size: 12.5px; border-top: 1px solid var(--side-line); }
.side-foot .who { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 500; }
.avatar { width: 26px; height: 26px; border-radius: 50%; background: #16303c; color: #5eead4; display: grid; place-items: center; font-size: 12px; font-weight: 700; text-transform: uppercase; flex: none; }
.link { background: none; border: 0; color: inherit; text-align: left; padding: 0; cursor: pointer; text-decoration: underline; font: inherit; }
.side-foot .link { color: var(--side-ink); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.side-foot .link:hover { color: #fff; }
.live { display: inline-flex; align-items: center; gap: 7px; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #64748b; }
.live.on::before { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .22); animation: pulse 2.4s infinite; }
.live.off { color: #fbbf24; }
.live.off::before { background: #f59e0b; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); } }

.view { padding: 28px 32px 64px; max-width: 1440px; width: 100%; animation: enter .2s var(--ease); }
@keyframes enter { from { opacity: 0; transform: translateY(4px); } }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.head p { margin: 6px 0 0; max-width: 70ch; }
.crumb { font-size: 12.5px; margin-bottom: 6px; display: inline-flex; gap: 4px; align-items: center; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: 2fr 1fr; }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); min-width: 0; }
.card.flush { padding: 0; overflow: hidden; }
.card.flush > h2, .card-head { padding: 16px 18px 12px; margin: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-head h2 { margin: 0; }
.mt { margin-top: 16px; }
.section-title { font-size: 16px; margin: 28px 0 12px; display: flex; align-items: center; gap: 10px; }
.section-title .muted { font-weight: 400; font-size: 13px; }

/* stat cards */
.stat { display: flex; gap: 14px; align-items: flex-start; }
.stat .si { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.stat.bad .si { background: var(--bad-soft); color: var(--bad); }
.stat.warn .si { background: var(--warn-soft); color: var(--warn); }
.stat.info .si { background: var(--info-soft); color: var(--info); }
.stat .n { font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat .n small { font-size: 15px; color: var(--muted); font-weight: 500; }
.stat .l { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
a.card { color: inherit; text-decoration: none; transition: border-color .15s var(--ease), transform .15s var(--ease); }
a.card:hover { border-color: var(--accent-line); }

/* ------------------------------------------------------------ controls */
.btn { border: 1px solid var(--line-2); background: var(--panel); color: var(--ink); border-radius: var(--radius-sm); padding: 8px 14px; min-height: 36px; font: inherit; font-weight: 500; cursor: pointer;
  display: inline-flex; gap: 7px; align-items: center; justify-content: center; white-space: nowrap; transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), box-shadow .15s var(--ease); text-decoration: none; }
.btn:hover { border-color: var(--muted); background: var(--soft); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.danger { color: var(--bad); }
.btn.danger:hover { border-color: var(--bad); background: var(--bad-soft); }
.btn.danger.solid { background: var(--bad); color: #fff; border-color: var(--bad); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--soft); border-color: var(--line); }
.btn.sm { padding: 4px 10px; min-height: 30px; font-size: 12.5px; }
.btn.icon { padding: 0; width: 30px; min-height: 30px; }
.btn.wide { width: 100%; padding: 11px; min-height: 44px; }
.btn:disabled, .btn[aria-busy="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"]::after { content: ""; width: 12px; height: 12px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
input, select, textarea { font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 8px 11px; min-height: 36px; min-width: 0; transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: var(--ring); outline: none; }
input[type="checkbox"] { min-height: 0; width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
select { cursor: pointer; }
textarea { width: 100%; min-height: 90px; resize: vertical; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
label > input, label > select, label > textarea { color: var(--ink); font-size: 14px; font-weight: 400; }
.hint { font-weight: 400; color: var(--muted); font-size: 12px; }
.check { flex-direction: row; align-items: center; gap: 9px; color: var(--ink); font-size: 14px; font-weight: 400; cursor: pointer; }
.form { display: grid; gap: 14px; }
.search { position: relative; display: inline-flex; align-items: center; }
.search .ico { position: absolute; left: 10px; color: var(--muted); pointer-events: none; }
.search input { padding-left: 34px; min-width: 240px; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--radius-sm); overflow: hidden; background: var(--panel); }
.seg button { border: 0; background: transparent; padding: 7px 13px; min-height: 34px; font: inherit; cursor: pointer; color: var(--muted); font-weight: 500; transition: background .15s var(--ease), color .15s var(--ease); }
.seg button:hover { color: var(--ink); background: var(--soft); }
.seg button + button { border-left: 1px solid var(--line-2); }
.seg button.on { background: var(--accent-soft); color: var(--ink); font-weight: 600; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: space-between; margin-bottom: 14px; }

/* ------------------------------------------------------------ tables */
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--soft); white-space: nowrap; position: sticky; top: 0; z-index: 1; }
td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tr.click { cursor: pointer; transition: background .12s var(--ease); }
tr.click:hover td { background: var(--soft); }
tr.click:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.table-wrap { overflow-x: auto; }
.scroll { max-height: 520px; overflow: auto; }
td.actions { white-space: nowrap; text-align: right; }
td.actions .btn + .btn { margin-left: 4px; }
.empty { padding: 36px 24px; text-align: center; color: var(--muted); }
.empty .ico { width: 34px; height: 34px; stroke-width: 1.6; color: var(--line-2); display: block; margin: 0 auto 10px; }
.empty b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }
.empty .btn { margin-top: 14px; }

/* ------------------------------------------------------------ chips / dots */
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #94a3b8; margin-right: 7px; vertical-align: 1px; flex: none; }
.dot.on { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .18); }
.chip { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 500; background: var(--soft); border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; line-height: 1.6; }
.chip.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.chip.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.chip.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.chip.accent { background: var(--accent-soft); color: var(--ink); border-color: transparent; }
.chip.ok::before, .chip.warn::before, .chip.bad::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.banner { border-radius: var(--radius); padding: 12px 16px; margin-bottom: 18px; display: flex; gap: 12px; align-items: center; border: 1px solid transparent; }
.banner.bad { background: var(--bad-soft); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 25%, transparent); }
.banner.warn { background: var(--warn-soft); color: var(--warn); }
.banner.info { background: var(--info-soft); color: var(--info); }
.banner a { color: inherit; text-decoration: underline; }

/* ------------------------------------------------------------ bars */
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: minmax(110px, 200px) 1fr 76px; gap: 12px; align-items: center; font-size: 13px; }
.bar-row .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar { height: 10px; border-radius: 6px; background: var(--soft); border: 1px solid var(--line); overflow: hidden; }
.bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #22d3ee)); border-radius: 6px; transition: width .4s var(--ease); }
.bar-row .v { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.progress { height: 6px; background: var(--soft); border-radius: 4px; overflow: hidden; min-width: 80px; border: 1px solid var(--line); }
.progress > span { display: block; height: 100%; background: var(--accent); transition: width .3s var(--ease); }
.progress.done > span { background: var(--ok); }

/* ------------------------------------------------------------ timeline */
.timeline { position: relative; height: 40px; background: var(--soft); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.timeline .seg-t { position: absolute; top: 5px; bottom: 5px; border-radius: 3px; min-width: 2px; }
.timeline .now { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--bad); opacity: .7; }
.tl-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 5px; font-variant-numeric: tabular-nums; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: 12.5px; }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--c); margin-right: 6px; vertical-align: -1px; }

/* ------------------------------------------------------------ board tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; cursor: pointer; box-shadow: var(--shadow); transition: border-color .15s var(--ease), box-shadow .15s var(--ease); display: flex; flex-direction: column; gap: 3px; color: inherit; text-decoration: none; }
.tile:hover { border-color: var(--accent-line); text-decoration: none; box-shadow: 0 4px 16px rgba(15, 23, 42, .07); }
.tile .id { font-weight: 700; font-size: 15px; display: flex; align-items: center; }
.tile .app { margin-top: 8px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; gap: 6px; align-items: center; }
.tile .app .ico { color: var(--accent); }
.tile.off { background: var(--soft); box-shadow: none; }
.tile.off .id, .tile.off .app { color: var(--muted); }
.tile.alert { border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); }

/* ------------------------------------------------------------ tabs */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 22px 0 18px; overflow-x: auto; scrollbar-width: none; }
.tabs button { background: none; border: 0; padding: 11px 16px; font: inherit; font-weight: 500; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; transition: color .15s var(--ease); }
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--ink); border-color: var(--accent); font-weight: 600; }
.tabs button.on .ico { color: var(--accent); }

/* ------------------------------------------------------------ dropzone */
.drop { border: 2px dashed var(--line-2); border-radius: var(--radius); padding: 30px 20px; text-align: center; color: var(--muted); cursor: pointer; transition: border-color .15s var(--ease), background .15s var(--ease); display: grid; gap: 6px; justify-items: center; }
.drop .ico { width: 30px; height: 30px; color: var(--accent); }
.drop b { color: var(--accent); }
.drop.over, .drop:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.uploads { display: grid; gap: 10px; margin-top: 14px; }
.upload-row { display: grid; gap: 6px; }

/* ------------------------------------------------------------ modal & toast */
.modal { position: fixed; inset: 0; background: rgba(2, 6, 23, .55); display: grid; place-items: center; z-index: 50; padding: 16px; animation: fade .15s ease; backdrop-filter: blur(2px); }
.modal-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 24px; width: min(580px, 100%); max-height: 90vh; overflow: auto; box-shadow: var(--shadow-lg); animation: pop .18s var(--ease); }
.modal-card h2 { font-size: 18px; margin-bottom: 16px; padding-right: 30px; }
.modal-card p { color: var(--ink-2); }
.modal-x { position: sticky; float: right; top: 0; margin: -6px -6px 0 0; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.pick { max-height: 240px; overflow: auto; border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 6px; display: grid; gap: 0; }
.pick .check { padding: 7px 8px; border-radius: 6px; }
.pick .check:hover { background: var(--soft); }
.pick .group { font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding: 10px 8px 4px; }
.pick-count { font-size: 12px; color: var(--muted); margin-top: 6px; }
.toasts { position: fixed; right: 18px; bottom: 18px; display: grid; gap: 8px; z-index: 60; justify-items: end; }
.toast { background: var(--ink); color: var(--bg); padding: 11px 14px; border-radius: 10px; font-size: 13px; max-width: 400px; box-shadow: 0 10px 30px rgba(0, 0, 0, .22); display: flex; gap: 10px; align-items: flex-start; animation: slide .2s var(--ease); cursor: pointer; }
.toast .ico { margin-top: 1px; color: #4ade80; }
.toast.bad { background: var(--bad); color: #fff; }
.toast.bad .ico { color: #fff; }
.toast.out { opacity: 0; transform: translateX(16px); transition: .2s ease; }
@keyframes slide { from { opacity: 0; transform: translateX(16px); } }

/* skeleton loading */
.skel { display: grid; gap: 16px; }
.skel div { background: linear-gradient(90deg, var(--soft) 25%, var(--line) 50%, var(--soft) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: var(--radius); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ------------------------------------------------------------ login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px;
  background: radial-gradient(1200px 600px at 10% -10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%), var(--bg); }
.login-card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 34px 30px; width: min(400px, 100%); display: grid; gap: 16px; box-shadow: var(--shadow-lg); text-align: center; }
.login-card label { text-align: left; }
.login-card p { margin: -10px 0 6px; }
.error { color: var(--bad); font-size: 13px; min-height: 1.2em; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; font-size: 13px; align-items: center; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.secret { font-size: 22px; font-weight: 700; letter-spacing: .14em; font-family: ui-monospace, Menlo, monospace; background: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: 4px 12px; display: inline-block; }
ol.steps { margin: 0; padding-left: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
ol.steps li { counter-increment: s; position: relative; padding-left: 36px; line-height: 1.55; min-height: 24px; }
ol.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 12px; display: grid; place-items: center; }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 6px 0; width: 100%; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3, .g2 { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: sticky; top: 0; z-index: 20; height: auto; flex-direction: column; padding: 10px 12px 0; gap: 6px; }
  .brand { padding: 0 4px; font-size: 15px; }
  .brand small { display: none; }
  #nav { flex-direction: row; overflow-x: auto; scrollbar-width: none; gap: 2px; margin: 0 -12px; padding: 0 8px 8px; }
  #nav a { padding: 8px 11px; font-size: 13px; white-space: nowrap; gap: 7px; }
  #nav a.active { box-shadow: inset 0 -2px 0 #2dd4bf; }
  .side-foot { position: absolute; right: 12px; top: 12px; margin: 0; flex-direction: row; padding: 0; border: 0; gap: 12px; align-items: center; }
  .side-foot .who span:last-child { display: none; }
  .view { padding: 18px 16px 48px; }
  h1 { font-size: 21px; }
  .bar-row { grid-template-columns: 100px 1fr 60px; }
  .search input { min-width: 0; width: 100%; }
  .head > .row, .toolbar > .row { width: 100%; }
  .g4 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat .si { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.view:focus, .view:focus-visible { box-shadow: none; }

/* Board app page */
a.banner { text-decoration: none; }
a.banner > span:nth-child(2) { flex: 1; }
a.banner .btn { text-decoration: none; color: var(--ink); }
tr.sel > td { background: var(--accent-soft, rgba(15, 118, 110, .07)); }
fieldset.radios { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
fieldset.radios .check { align-items: flex-start; }
fieldset.radios .check input[type=radio] { margin-top: 3px; }
#apkUploads .upload-row { margin-bottom: 16px; }
