/* Void Issue Tracker. One stylesheet, no build step.
   Light/dark follow the system setting via prefers-color-scheme. */

:root {
  --bg: #f6f5fb;
  --surface: #ffffff;
  --surface-2: #efedf7;
  --text: #1b1830;
  --muted: #69657e;
  --border: #e2dfee;
  --accent: #7c3aed;
  --accent-hover: #6d28d9;
  --accent-soft: #ede7fe;
  --accent-contrast: #ffffff;
  --ok: #15803d;
  --ok-soft: #dcfce7;
  --warn: #a16207;
  --warn-soft: #fef3c7;
  --danger: #b91c1c;
  --danger-soft: #fee2e2;
  --info: #1d4ed8;
  --info-soft: #dbeafe;
  --shadow: 0 1px 2px rgb(20 16 40 / 6%), 0 4px 16px rgb(20 16 40 / 5%);
  --radius: 12px;
  --radius-sm: 8px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "JetBrains Mono", Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0c15;
    --surface: #17141f;
    --surface-2: #211d2d;
    --text: #ece9f6;
    --muted: #a19db6;
    --border: #2d283d;
    --accent: #a78bfa;
    --accent-hover: #c4b5fd;
    --accent-soft: #2a2140;
    --accent-contrast: #14111f;
    --ok: #4ade80;
    --ok-soft: #13291c;
    --warn: #fbbf24;
    --warn-soft: #2d2410;
    --danger: #f87171;
    --danger-soft: #331617;
    --info: #93c5fd;
    --info-soft: #172338;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 4px 16px rgb(0 0 0 / 25%);
    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--font);
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }

h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem); letter-spacing: -.01em; }
h2 { font-size: 1.25rem; }
.h3, h3 { font-size: 1.05rem; }

p { margin: 0 0 .8em; }
code, pre { font-family: var(--mono); font-size: .9em; }
code { background: var(--surface-2); padding: .1em .35em; border-radius: 4px; overflow-wrap: anywhere; }
pre { background: var(--surface-2); padding: .8em 1em; border-radius: var(--radius-sm); overflow-x: auto; }
pre code { background: none; padding: 0; }
img { max-width: 100%; }

.narrow { max-width: 520px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.nowrap { white-space: nowrap; }
.inline { display: inline; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- shell: sidebar + content ---------- */
.shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }

.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 20px;
  padding: 18px 14px; background: var(--surface); border-right: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px; color: var(--text); text-decoration: none; font-weight: 700; }
.brand:hover { color: var(--text); }
.brand-mark { width: 26px; height: 26px; color: var(--accent); flex: none; }

.side-section { display: flex; flex-direction: column; gap: 2px; }
.side-label { margin: 0 8px 6px; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.side-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.side-project, .side-nav a {
  display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: var(--radius-sm);
  color: var(--text); text-decoration: none; font-size: .95rem;
}
.side-project:hover, .side-nav a:hover { background: var(--surface-2); color: var(--text); }
.side-project.is-active, .side-nav a.is-active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.side-icon { width: 28px; height: 28px; border-radius: 7px; object-fit: cover; flex: none; }
.side-icon-empty { display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .85rem; text-transform: uppercase; }
.side-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-count { font-size: .75rem; font-weight: 700; color: var(--muted); background: var(--surface-2); border-radius: 999px; padding: 0 7px; line-height: 1.6; }
.side-project.is-active .side-count { background: var(--surface); color: var(--accent); }
.side-add { margin: 4px 8px 0; font-size: .875rem; text-decoration: none; }
.side-empty { margin: 0 8px; }
.side-nav { border-top: 1px solid var(--border); padding-top: 14px; }

.side-footer { margin-top: auto; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--border); padding: 14px 8px 0; }
.side-user { display: flex; align-items: center; gap: 8px; min-width: 0; }
.side-user img { border-radius: 50%; flex: none; }
.side-user-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: .92rem; }
.side-login { width: 100%; }
.lang-switch { color: var(--muted); font-size: .85rem; }
.linkish { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; }

.content { padding: 28px 32px 56px; min-width: 0; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; max-width: 1240px; }
.cols:has(> .col-side:empty) { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
.col-main { min-width: 0; }
.col-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 24px; }
.col-side:empty { display: none; }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); margin: 0; }
.panel-title { font-size: .95rem; margin-bottom: 10px; }
.panel-text { font-size: .92rem; color: var(--muted); }
.panel > :last-child { margin-bottom: 0; }
.link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .95rem; }
.steps, .tips { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; font-size: .92rem; }
.help-paths { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 4px; }
.btn-block { width: 100%; }

.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 16px; margin-bottom: 18px; }
.page-head h1 { margin: 0; }
.page-head .lead { margin: 6px 0 0; }
.page-head-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.page-head-title .project-icon { width: 48px; height: 48px; }

.type-stack { display: grid; gap: 8px; }
.type-stack .type-tile { box-shadow: none; padding: 10px 12px 10px 16px; }

.vote-panel { display: flex; align-items: center; gap: 14px; }
.vote-hint { margin: 0; font-weight: 600; font-size: .95rem; }
.details { margin: 0 0 14px; display: grid; gap: 10px; }
.details div { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.details dt { color: var(--muted); font-size: .88rem; }
.details dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }

.login-card { margin: 24px 0; }
.dev-login { margin-top: 24px; border-top: 1px solid var(--border); padding-top: 16px; }
.dev-login summary { color: var(--muted); }
.dev-login .report-form { margin-top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 42px; padding: 0 16px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.btn:hover { border-color: var(--accent); color: var(--text); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-contrast); }
.btn-ghost { background: transparent; }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: .9rem; }
.btn-provider { width: 100%; }
.btn-discord { background: #5865f2; border-color: #5865f2; color: #fff; }
.btn-discord:hover { background: #4752c4; color: #fff; }
.login-buttons { display: grid; gap: 10px; margin: 16px 0; }

/* ---------- badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 1px 8px; border-radius: 999px;
  font-size: .78rem; font-weight: 600; line-height: 1.6;
  background: var(--surface-2); color: var(--muted); text-decoration: none; white-space: nowrap;
}
.type-bug { background: var(--danger-soft); color: var(--danger); }
.type-crash { background: var(--danger); color: #fff; }
.type-suggestion { background: var(--ok-soft); color: var(--ok); }
.type-localization { background: var(--info-soft); color: var(--info); }
.status-new { background: var(--info-soft); color: var(--info); }
.status-confirmed { background: var(--warn-soft); color: var(--warn); }
.status-in_progress { background: var(--accent-soft); color: var(--accent); }
.status-fixed, .badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-dev { background: var(--accent); color: var(--accent-contrast); }

/* ---------- flash & notices ---------- */
.flash, .notice { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; border: 1px solid var(--border); background: var(--surface); }
.flash-ok { border-color: var(--ok); background: var(--ok-soft); }
.flash-err { border-color: var(--danger); background: var(--danger-soft); }
.flash p:last-child, .notice p:last-child { margin-bottom: 0; }
.copy-row { display: flex; gap: 8px; margin-top: 8px; }
.copy-row input { flex: 1; min-width: 0; font-family: var(--mono); font-size: .85rem; }

/* ---------- home ---------- */
.lead { font-size: 1.08rem; color: var(--muted); max-width: 60ch; }
.project-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.project-card {
  display: flex; gap: 14px; padding: 16px; height: 100%;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); text-decoration: none; box-shadow: var(--shadow); transition: border-color .15s, transform .15s;
}
.project-card:hover { border-color: var(--accent); color: var(--text); transform: translateY(-1px); }
.project-icon { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex: none; background: var(--surface-2); }
.project-icon-lg { width: 72px; height: 72px; border-radius: 16px; }
.project-icon-empty { display: grid; place-items: center; font-weight: 700; font-size: 1.4rem; color: var(--accent); background: var(--accent-soft); text-transform: uppercase; }
.project-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.project-name { font-weight: 700; font-size: 1.05rem; }
.project-desc { color: var(--muted); font-size: .92rem; }
.icon-row { display: flex; align-items: center; gap: 12px; }

/* ---------- project page ---------- */
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 8px; }

.type-picker, .type-radios { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.type-tile, .type-radio {
  position: relative; display: flex; flex-direction: column; gap: 2px;
  padding: 14px 14px 14px 18px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); text-decoration: none; cursor: pointer; box-shadow: var(--shadow);
  transition: border-color .15s;
}
.type-tile::before, .type-radio::before {
  content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 4px; border-radius: 0 4px 4px 0; background: var(--muted);
}
.type-tile:hover, .type-radio:hover { border-color: var(--accent); color: var(--text); }
.type-tile-bug::before { background: var(--danger); }
.type-tile-crash::before { background: #7f1d1d; }
.type-tile-suggestion::before { background: var(--ok); }
.type-tile-localization::before { background: var(--info); }
.type-tile-name { font-weight: 700; }
.type-tile-hint { font-size: .85rem; color: var(--muted); }
.type-radio input { position: absolute; opacity: 0; pointer-events: none; }
.type-radio:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); outline: 2px solid var(--accent); outline-offset: -1px; }
.type-radio:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

.filters { display: grid; gap: 10px; margin-bottom: 8px; }
.search-row { display: flex; gap: 8px; }
.search-row input { flex: 1; min-width: 0; }
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-row select { min-width: 0; }
.list-count { margin: 12px 0 6px; }

.report-list { list-style: none; padding: 0; margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.report-row + .report-row { border-top: 1px solid var(--border); }
.report-link { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 16px; color: var(--text); text-decoration: none; }
.report-link:hover { background: var(--surface-2); color: var(--text); }
.report-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.report-title { font-weight: 600; overflow-wrap: anywhere; }
.report-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .85rem; margin: 0; }
.report-stats { display: flex; gap: 12px; color: var(--muted); font-size: .9rem; flex: none; }
.stat { display: inline-flex; align-items: center; gap: 3px; }
.stat svg { width: 14px; height: 14px; }
.is-closed .report-title { color: var(--muted); }

.pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); }

/* ---------- forms ---------- */
.report-form { display: grid; gap: 18px; max-width: 720px; }
.field { display: grid; gap: 6px; margin: 0; min-width: 0; }
fieldset.field { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px 16px; background: var(--surface); }
legend { font-weight: 700; padding: 0 6px; }
label, .label { font-weight: 600; font-size: .95rem; }
.opt { font-weight: 400; color: var(--muted); font-size: .85rem; }
.hint { margin: 0; font-size: .85rem; color: var(--muted); }
.field-error { margin: 0; font-size: .875rem; color: var(--danger); font-weight: 600; }
.field-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); align-items: start; }
.field-grid.three { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.check { display: flex; align-items: center; gap: 8px; font-weight: 400; padding: 4px 0; }
.check-row { display: flex; gap: 14px; flex-wrap: wrap; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }

input[type="text"], input[type="url"], input[type="search"], input[type="password"], input[type="number"], select, textarea {
  width: 100%; min-height: 42px; padding: 8px 12px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text);
  font: inherit; font-size: 16px; /* prevents iOS zoom */
}
.filter-row select, .admin-row select { width: auto; }
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
input[type="file"] { font: inherit; max-width: 100%; }
.w-num { width: 110px !important; }
details > summary { cursor: pointer; font-weight: 600; }
details[open] > summary { margin-bottom: 6px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.form-actions .btn-primary { min-width: 180px; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.pow-status { margin: 0; }
.pow-status.is-done { color: var(--ok); }

.similar-box { margin-top: 8px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--warn-soft); border: 1px solid var(--warn); }
.similar-head { font-weight: 700; margin-bottom: 6px; }
.similar-list { margin: 0 0 6px; padding-left: 18px; }
.similar-list li { margin-bottom: 4px; }

/* ---------- report page ---------- */
.report { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 20px; }
.report-header { display: flex; gap: 16px; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.report-header-main { min-width: 0; }
.report-h1 { overflow-wrap: anywhere; margin-bottom: .4em; }
.report .h3 { margin: 1.2em 0 .4em; }
.byline { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .9rem; margin: 8px 0 0; }
.avatar { width: 20px; height: 20px; border-radius: 50%; flex: none; }
.avatar-anon { display: inline-block; background: var(--surface-2); border: 1px solid var(--border); }

.vote-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; min-height: 60px; padding: 6px 10px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  color: var(--muted); font: inherit; font-weight: 700; cursor: pointer;
}
.vote-btn svg { width: 18px; height: 18px; }
.vote-btn:hover { border-color: var(--accent); color: var(--accent); }
.vote-btn.is-voted { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.vote { position: relative; }
.tip { position: absolute; right: 0; top: 100%; margin-top: 6px; width: max-content; max-width: 260px; padding: 8px 10px; border-radius: 8px; background: var(--text); color: var(--bg); font-size: .85rem; z-index: 3; }

.env-list { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 16px; padding: 12px 14px; background: var(--surface-2); border-radius: var(--radius-sm); }
.env-list dt { font-size: .78rem; color: var(--muted); }
.env-list dd { margin: 0; font-weight: 600; }

.l10n-diff { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: stretch; margin-bottom: 16px; }
.l10n-old, .l10n-new { padding: 10px 12px; border-radius: var(--radius-sm); }
.l10n-old { background: var(--danger-soft); }
.l10n-new { background: var(--ok-soft); }
.l10n-diff p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.l10n-arrow { align-self: center; color: var(--muted); font-size: 1.3rem; }

.prose { overflow-wrap: anywhere; }
.prose > :last-child { margin-bottom: 0; }
.prose blockquote { margin: 0 0 .8em; padding-left: 12px; border-left: 3px solid var(--border); color: var(--muted); }
.prose table { border-collapse: collapse; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border); padding: 4px 8px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.other-mods pre { max-height: 300px; white-space: pre-wrap; }

.attachments { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.attachments li { display: flex; flex-direction: column; gap: 2px; }
.attachments img { max-width: 220px; max-height: 160px; border-radius: var(--radius-sm); border: 1px solid var(--border); display: block; }
.file-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: var(--radius-sm); background: var(--surface-2); text-decoration: none; color: var(--text); font-size: .9rem; max-width: 100%; }
.file-chip svg { width: 16px; height: 16px; flex: none; }
.file-chip span:first-of-type { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }

.timeline h2 { margin-top: 8px; }
.event { padding-left: 14px; border-left: 2px solid var(--border); margin: 0 0 10px 6px; }
.comment { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; }
.comment.is-dev { border-color: var(--accent); box-shadow: inset 4px 0 0 var(--accent); }
.comment.is-hidden { opacity: .6; }
.comment-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.comment-form { margin-top: 20px; display: grid; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }

/* ---------- admin ---------- */
.admin-panel { background: var(--accent-soft); border: 1px solid var(--accent); border-radius: var(--radius); padding: 16px; }
.col-side .admin-row { flex-direction: column; align-items: stretch; }
.col-side .admin-row label, .col-side .admin-row select, .col-side .admin-row input[type="text"] { width: 100%; }
.col-side .admin-row .inline { display: block; }
.col-side .admin-row .btn { width: 100%; }
.admin-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 10px; }
.admin-row label { display: grid; gap: 4px; font-size: .85rem; }
.admin-row input[type="text"] { width: auto; }
.admin-inline { margin: 10px 0 0; gap: 4px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 20px; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table th { font-size: .8rem; color: var(--muted); font-weight: 600; }
section { margin-bottom: 28px; }

.error-page { text-align: center; margin: 40px auto; }
.error-code { font-size: 3rem; font-weight: 800; color: var(--accent); margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .cols { grid-template-columns: minmax(0, 1fr); }
  .col-side { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}

/* Phones and narrow launcher windows: the sidebar turns into a top bar with
   horizontally scrolling project chips. */
@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar {
    position: static; height: auto; overflow: visible;
    display: grid; grid-template-columns: 1fr auto; gap: 10px 12px; align-items: center;
    padding: 10px 14px 12px; border-right: 0; border-bottom: 1px solid var(--border);
  }
  .brand { padding: 0; }
  .side-footer { grid-column: 2; grid-row: 1; margin: 0; padding: 0; border: 0; flex-direction: row; align-items: center; gap: 12px; }
  .side-user-name { display: none; }
  .side-login { width: auto; }
  .side-projects { grid-column: 1 / -1; }
  .side-label { display: none; }
  .side-list { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 2px; scrollbar-width: thin; }
  .side-project { flex: none; border: 1px solid var(--border); padding: 5px 10px 5px 6px; }
  .side-icon { width: 22px; height: 22px; }
  .side-name { max-width: 160px; }
  .side-add { display: none; }
  .side-nav { grid-column: 1 / -1; flex-direction: row; gap: 4px; border: 0; padding: 0; }
  .side-nav a { padding: 4px 8px; font-size: .9rem; }
  .content { padding: 18px 14px 40px; }
  .col-side { grid-template-columns: 1fr; }
  .type-picker, .type-radios { grid-template-columns: 1fr 1fr; }
  .report { padding: 16px; }
  .report-link { padding: 12px; }
  .filter-row select { flex: 1 1 45%; }
  .l10n-diff { grid-template-columns: 1fr; }
  .l10n-arrow { transform: rotate(90deg); justify-self: center; }
  .form-actions .btn-primary { width: 100%; }
  .page-head .btn-primary { width: 100%; }
}
