:root {
  color-scheme: light;
  --red: #E30613;
  --bright-red: #FD2A30;
  --orange: #FF6315;
  --blue: #95CCFF;
  --canvas: #F6F7F9;
  --surface: #FFFFFF;
  --surface-control: #F4F6F8;
  --text: #24262B;
  --text-secondary: #4D5562;
  --muted: #6B7280;
  --subtle: #8A93A1;
  --border: #E2E5E9;
  --border-control: #D8DDE4;
  --success: #259565;
  --warning: #D58C00;
  --danger: #C6000B;
  --gradient-header: linear-gradient(105deg, #E30613 0%, #FD2A30 62%, #FF6315 130%);
  --gradient-blue: linear-gradient(90deg, rgba(149,204,255,.30), rgba(255,255,255,.92));
  --shadow-panel: 0 5px 16px rgba(35,42,54,.055);
  --radius-panel: 12px;
  --radius-control: 9px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: Montserrat, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100dvh;
  color: var(--text);
  background:
    radial-gradient(circle at 108% 92%, transparent 0 12rem, rgba(149,204,255,.13) 12.05rem 13.4rem, transparent 13.45rem 16rem, rgba(149,204,255,.08) 16.05rem 17rem, transparent 17.05rem),
    var(--canvas);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -.01em;
  overflow-x: hidden;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { max-width: 100%; }
:where(button, input, select, textarea, a, summary):focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.brand-header {
  position: relative;
  z-index: 30;
  min-height: 72px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: white;
  background: var(--gradient-header);
  box-shadow: 0 4px 16px rgba(92, 9, 15, .14);
  overflow: hidden;
}
.brand-header :focus-visible { outline-color: white; }
.header-circle {
  position: absolute;
  width: 240px;
  height: 240px;
  right: -90px;
  top: -95px;
  border: 24px solid rgba(255,255,255,.12);
  border-radius: 50%;
  pointer-events: none;
}
.brand-home {
  position: relative;
  z-index: 2;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: white;
  text-decoration: none;
}
.brand-star { position: relative; width: 38px; height: 38px; flex: 0 0 38px; }
.brand-star i {
  position: absolute;
  left: 3px;
  top: 16px;
  width: 32px;
  height: 6px;
  background: white;
}
.brand-star i:nth-child(2) { transform: rotate(60deg); }
.brand-star i:nth-child(3) { transform: rotate(-60deg); }
.brand-title { min-width: 0; display: flex; flex-direction: column; }
.brand-title strong { font-size: 17px; line-height: 1.1; letter-spacing: -.025em; }
.brand-title small { margin-top: 3px; font-size: 9px; font-weight: 600; opacity: .9; white-space: nowrap; }
.admin-nav { position: relative; z-index: 2; display: flex; align-items: center; gap: 4px; }
.admin-nav a, .header-link {
  min-height: 44px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: 8px;
  color: white;
  background: transparent;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}
.admin-nav a:hover, .header-link:hover { background: rgba(255,255,255,.12); }
.admin-nav form { margin: 0; }

.page-shell { width: min(100%, 1180px); margin: 0 auto; padding: 12px; }
.form-shell { width: min(100%, 820px); padding-bottom: calc(102px + var(--safe-bottom)); }
.center-shell, .auth-shell { min-height: calc(100dvh - 132px); display: grid; place-items: center; }
.admin-shell { width: min(100%, 1240px); padding-bottom: 36px; }

.intro-panel {
  position: relative;
  margin-bottom: 12px;
  padding: 20px 18px;
  color: white;
  background: var(--gradient-header);
  border-radius: var(--radius-panel);
  overflow: hidden;
}
.intro-panel::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -66px;
  bottom: -116px;
  border: 18px solid rgba(255,255,255,.14);
  border-radius: 50%;
}
.eyebrow {
  display: block;
  color: var(--red);
  font-size: 10px;
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.intro-panel .eyebrow { color: white; opacity: .88; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(26px, 8vw, 40px); line-height: 1.04; letter-spacing: -.045em; }
.intro-panel p { position: relative; z-index: 1; max-width: 54ch; margin: 0; font-size: 14px; }

.report-form { display: grid; gap: 12px; }
.form-card, .auth-card, .success-card, .answers-panel, .filter-panel, .recommendation-summary {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-panel);
}
.form-card { padding: 16px; }
.section-heading { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.section-heading h2 { margin: 0 0 2px; font-size: 18px; line-height: 1.25; }
.section-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.step-number {
  flex: 0 0 34px;
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 26px;
  border-bottom: 2px solid var(--red);
}
.field-grid, .stack-form { display: grid; gap: 12px; }
.field { min-width: 0; display: grid; gap: 6px; color: var(--text-secondary); font-weight: 600; }
.field > span { font-size: 12px; }
.field b { color: var(--red); }
.field small { color: var(--muted); font-size: 11px; font-weight: 500; }
input[type="text"], input[type="password"], input[type="search"], input:not([type]), select, textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--text);
  background: white;
  border: 1px solid var(--border-control);
  border-radius: var(--radius-control);
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
textarea { min-height: 104px; resize: vertical; line-height: 1.45; }
input:hover, select:hover, textarea:hover { border-color: #B8C0CA; }
input:focus, select:focus, textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(227,6,19,.10); }
::placeholder { color: #9AA1AB; opacity: 1; }

.choice-group, .rating-group { margin: 0 0 14px; padding: 0; border: 0; }
.choice-group legend, .rating-group legend { margin-bottom: 7px; color: var(--text-secondary); font-size: 12px; font-weight: 600; }
.choice-group { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice-group legend { grid-column: 1 / -1; }
.choice-pill { position: relative; min-width: 0; }
.choice-pill input { position: absolute; opacity: 0; pointer-events: none; }
.choice-pill span {
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-control);
  border-radius: var(--radius-control);
  background: var(--surface-control);
  font-weight: 600;
  cursor: pointer;
}
.choice-pill input:checked + span { color: var(--red); border-color: #F0CFD2; background: #FFF0F1; box-shadow: inset 0 0 0 1px rgba(227,6,19,.08); }
.choice-pill input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }

.topics-list { margin: 0 -16px -16px; border-top: 1px solid var(--border); }
.topic { border-bottom: 1px solid var(--border); }
.topic:last-child { border-bottom: 0; }
.topic-other { margin-top: 8px; border-top: 1px solid var(--border); }
.topic summary {
  min-height: 58px;
  padding: 10px 16px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto 12px;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  list-style: none;
}
.topic summary::-webkit-details-marker { display: none; }
.topic summary:hover { background: #FFF7F7; }
.topic[open] summary { background: var(--gradient-blue); }
.topic-index { color: var(--subtle); font-size: 10px; font-weight: 700; font-variant-numeric: tabular-nums; }
.topic-name { min-width: 0; font-size: 13px; line-height: 1.25; font-weight: 600; }
.topic-state { color: var(--subtle); font-size: 9px; font-weight: 600; white-space: nowrap; }
.topic.is-filled .topic-state { color: var(--success); }
.chevron { width: 8px; height: 8px; border-right: 2px solid var(--subtle); border-bottom: 2px solid var(--subtle); transform: rotate(45deg) translateY(-2px); transition: transform 150ms ease; }
.topic[open] .chevron { transform: rotate(225deg) translate(-2px, -2px); }
.topic-body { padding: 14px 16px 18px 52px; display: grid; gap: 12px; background: rgba(149,204,255,.06); }
.topic-other summary { grid-template-columns: minmax(0, 1fr) auto 12px; padding-left: 20px; }
.topic-other .topic-body { padding-left: 20px; }

.upload-control {
  min-height: 62px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  border: 1px dashed var(--border-control);
  border-radius: var(--radius-control);
  background: white;
  cursor: pointer;
}
.upload-control:hover { border-color: var(--red); background: #FFF9F9; }
.upload-control input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-control:has(input:focus-visible) { outline: 2px solid var(--red); outline-offset: 2px; }
.upload-icon { flex: 0 0 34px; height: 34px; display: grid; place-items: center; color: var(--red); background: #FFF0F1; border-radius: 8px; font-size: 23px; font-weight: 400; }
.upload-control strong, .upload-control small { display: block; }
.upload-control strong { font-size: 12px; }
.upload-control small { margin-top: 2px; color: var(--muted); font-size: 10px; line-height: 1.3; }
.file-list { color: var(--muted); font-size: 11px; }
.file-list:not(:empty) { padding: 8px 10px; border-radius: 8px; background: var(--surface-control); }
.upload-summary:empty { display: none; }
.uploaded-files { display: grid; gap: 6px; }
.upload-summary + .uploaded-files:not(:empty) { margin-top: 6px; }
.uploaded-file { min-width: 0; min-height: 36px; padding: 5px 6px 5px 10px; display: flex; align-items: center; gap: 8px; color: var(--text-secondary); background: white; border: 1px solid var(--border); border-radius: 7px; }
.uploaded-file span { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uploaded-file button { flex: 0 0 32px; width: 32px; height: 32px; padding: 0; color: var(--danger); background: transparent; border: 0; border-radius: 6px; font-size: 20px; cursor: pointer; }
.uploaded-file button:hover { background: #FFF0F1; }

.recommendation-card { border-top: 3px solid var(--red); }
.rating-group { margin-bottom: 16px; }
.rating-scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.rating-scale label { position: relative; }
.rating-scale input { position: absolute; opacity: 0; }
.rating-scale span {
  min-height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-control);
  border-radius: 9px;
  background: var(--surface-control);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.rating-scale input:checked + span { color: white; border-color: var(--red); background: var(--red); }
.rating-scale input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.rating-labels { margin-top: 5px; display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; }
.required-comment { padding: 12px; border-radius: 10px; background: linear-gradient(90deg, rgba(149,204,255,.24), rgba(149,204,255,.07)); }
.required-comment > span { color: var(--text); font-size: 13px; }

.privacy-note { padding: 13px 14px; display: flex; gap: 10px; color: var(--text-secondary); background: white; border: 1px solid var(--border); border-radius: 10px; }
.privacy-note p { margin: 0; font-size: 11px; }
.privacy-icon { flex: 0 0 18px; width: 18px; height: 20px; border: 2px solid var(--red); border-radius: 3px 3px 7px 7px; position: relative; margin-top: 1px; }
.privacy-icon::before { content: ""; position: absolute; width: 10px; height: 8px; left: 2px; top: -8px; border: 2px solid var(--red); border-bottom: 0; border-radius: 8px 8px 0 0; }

.submit-dock {
  position: fixed;
  z-index: 25;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px calc(10px + var(--safe-bottom));
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  background: rgba(255,255,255,.97);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 20px rgba(35,42,54,.08);
}
.submit-status { flex: 1 1 100%; display: block; color: var(--muted); font-size: 11px; text-align: center; }
.button {
  min-height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease, transform 100ms ease;
}
.button:active { transform: translateY(1px); }
.button-primary { color: white; background: var(--red); }
.button-primary:hover { background: #C9000B; }
.button-secondary { color: var(--text-secondary); background: white; border-color: var(--border-control); }
.button-secondary:hover { color: var(--red); border-color: #F0CFD2; background: #FFF7F7; }
.button-quiet { color: var(--muted); background: transparent; }
.button-large { width: 100%; min-height: 50px; font-size: 14px; }
.button-danger { color: white; background: var(--danger); border-color: var(--danger); }
.button-danger:hover { background: #A90009; }
.button-danger:disabled { opacity: .45; cursor: not-allowed; }
.button[disabled] { color: var(--subtle); background: var(--surface-control); border-color: var(--border); cursor: wait; }

.alert { margin-bottom: 12px; padding: 12px 14px; border-radius: 10px; border: 1px solid; background: white; }
.alert strong { display: block; margin-bottom: 4px; }
.alert ul { margin: 0; padding-left: 18px; }
.alert-error { color: #8F0710; border-color: #F2D7D9; background: #FFF7F7; }
.alert-success { color: #126E4A; border-color: #CDE7DB; background: #F1FAF6; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.confirm-dialog {
  width: min(calc(100% - 24px), 460px);
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  color: var(--text);
  background: white;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(16, 22, 32, .28);
}
.confirm-dialog::backdrop { background: rgba(17, 23, 33, .62); backdrop-filter: blur(2px); }
.confirm-dialog-body { padding: 22px; }
.confirm-dialog h2 { margin: 5px 0 8px; font-size: 24px; }
.confirm-dialog p { margin: 0; color: var(--text-secondary); line-height: 1.5; }
.confirm-dialog-actions { margin-top: 20px; display: grid; gap: 8px; }
.confirm-dialog-actions .button { width: 100%; }

.auth-card, .success-card { width: min(100%, 440px); padding: 22px; }
.auth-card h1, .success-card h1 { margin: 5px 0 8px; }
.auth-card > p, .success-card > p { color: var(--muted); }
.stack-form { margin: 18px 0; }
.back-link { color: var(--text-secondary); font-size: 12px; font-weight: 600; text-decoration: none; }
.back-link:hover { color: var(--red); }
.success-card { text-align: center; }
.success-mark { width: 54px; height: 54px; margin: 0 auto 14px; display: grid; place-items: center; color: white; background: var(--success); border-radius: 50%; font-size: 28px; font-weight: 700; }
.success-card .eyebrow { text-align: center; }
.success-card .button { margin-top: 10px; }

.site-footer { min-height: 48px; padding: 12px 16px calc(12px + var(--safe-bottom)); display: flex; justify-content: space-between; gap: 14px; color: var(--muted); font-size: 10px; }
.site-footer a { color: var(--text-secondary); }
.public-page .site-footer { padding-bottom: calc(84px + var(--safe-bottom)); }

.page-heading { margin: 8px 0 12px; display: flex; flex-direction: column; gap: 12px; }
.page-heading h1 { margin: 4px 0 4px; }
.page-heading p { margin: 0; color: var(--muted); }
.summary-grid { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 12px; }
.summary-card { min-height: 92px; padding: 14px; display: flex; flex-direction: column; justify-content: space-between; background: white; border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-panel); }
.summary-card span { color: var(--muted); font-size: 11px; font-weight: 600; }
.summary-card strong { color: var(--text); font-size: 28px; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.summary-card strong small { font-size: 12px; color: var(--muted); }
.summary-new { border-top: 3px solid var(--red); }
.filter-panel { margin-bottom: 12px; padding: 12px; display: grid; gap: 10px; }
.filter-panel .field > span { font-size: 10px; }
.filter-actions { display: flex; align-items: end; gap: 4px; }
.list-meta { margin: 12px 2px 8px; color: var(--muted); font-size: 11px; }
.reports-list { display: grid; gap: 8px; }
.bulk-actions { margin-bottom: 8px; padding: 8px 10px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; background: white; border: 1px solid var(--border); border-radius: 10px; }
.select-all { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; color: var(--text-secondary); font-size: 11px; font-weight: 600; cursor: pointer; }
.select-all input { width: 18px; height: 18px; accent-color: var(--red); }
.report-select-row { min-width: 0; display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: stretch; }
.report-checkbox { display: grid; place-items: center; cursor: pointer; }
.report-checkbox input { position: absolute; opacity: 0; pointer-events: none; }
.report-checkbox > span[aria-hidden] { width: 20px; height: 20px; display: block; background: white; border: 2px solid var(--border-control); border-radius: 5px; }
.report-checkbox input:checked + span { border-color: var(--red); background: var(--red); box-shadow: inset 0 0 0 4px white; }
.report-checkbox input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.report-row {
  min-width: 0;
  padding: 13px 12px;
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  grid-template-areas: "dot main rating" ". date rating" ". id arrow";
  gap: 4px 10px;
  align-items: center;
  color: inherit;
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-panel);
  text-decoration: none;
}
.report-row:hover { border-color: #F0CFD2; background: #FFF9F9; }
.status-dot { grid-area: dot; align-self: start; width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: var(--subtle); }
.status-new { background: var(--red); box-shadow: 0 0 0 3px #FFF0F1; }
.report-main { grid-area: main; min-width: 0; }
.report-main strong, .report-main small { display: block; }
.report-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.report-main small { margin-top: 2px; color: var(--muted); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.report-rating { grid-area: rating; min-width: 46px; text-align: right; color: var(--red); font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.report-rating small { color: var(--muted); font-size: 9px; }
.report-date { grid-area: date; color: var(--muted); font-size: 10px; }
.report-id { grid-area: id; color: var(--subtle); font-size: 9px; font-weight: 700; }
.row-arrow { grid-area: arrow; justify-self: end; color: var(--red); }
.empty-state { padding: 44px 18px; text-align: center; color: var(--muted); background: white; border: 1px dashed #CFD5DC; border-radius: 10px; }
.empty-state h2 { margin: 10px 0 4px; color: var(--text); font-size: 16px; }
.empty-state p { margin: 0; }
.empty-icon { width: 42px; height: 32px; margin: 0 auto; border: 2px solid var(--subtle); border-radius: 5px; position: relative; }
.empty-icon::before { content: ""; position: absolute; width: 16px; height: 6px; left: 4px; top: -7px; border: 2px solid var(--subtle); border-bottom: 0; border-radius: 4px 4px 0 0; }
.pagination { margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-size: 11px; }

.back-top { display: inline-flex; margin: 5px 0 8px; min-height: 40px; align-items: center; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.detail-actions form { margin: 0; }
.reviewed-badge { min-height: 44px; padding: 0 12px; display: inline-flex; align-items: center; color: var(--success); font-size: 12px; font-weight: 700; }
.recommendation-summary { margin-bottom: 12px; padding: 15px; display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 14px; align-items: center; border-left: 4px solid var(--red); }
.recommendation-summary p { margin: 5px 0 0; white-space: pre-wrap; }
.rating-badge { width: 62px; height: 62px; display: grid; place-content: center; text-align: center; color: white; background: var(--red); border-radius: 10px; }
.rating-badge strong { font-size: 27px; line-height: .9; }
.rating-badge span { margin-top: 4px; font-size: 9px; }
.answers-panel { overflow: hidden; }
.compact-heading { margin: 0; padding: 15px; }
.answer-card { padding: 16px; border-top: 1px solid var(--border); }
.answer-heading { display: flex; align-items: baseline; gap: 10px; }
.answer-heading span { color: var(--subtle); font-size: 10px; font-weight: 700; }
.answer-heading h3 { margin: 0; font-size: 14px; }
.answer-text { margin: 10px 0 0; white-space: pre-wrap; }
.muted { color: var(--muted); }
.photo-grid { margin-top: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.photo-card { min-width: 0; color: var(--text-secondary); background: var(--surface-control); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; text-decoration: none; }
.photo-card img { width: 100%; aspect-ratio: 1 / 1; display: block; object-fit: cover; background: #ECEFF2; }
.photo-card span { padding: 6px 8px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }

@media (min-width: 560px) {
  .brand-header { padding-inline: 20px; }
  .page-shell { padding: 16px; }
  .form-card { padding: 20px; }
  .topics-list { margin: 0 -20px -20px; }
  .topic summary { padding-inline: 20px; }
  .topic-body { padding-right: 20px; padding-left: 60px; }
  .field-grid { grid-template-columns: 1fr 1fr; }
  .button-large { width: auto; min-width: 220px; }
  .submit-status { flex: 0 1 auto; text-align: left; }
  .submit-dock { justify-content: center; flex-wrap: nowrap; }
  .summary-grid { grid-template-columns: repeat(3, 1fr); }
  .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .confirm-dialog-actions { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 760px) {
  .brand-header { min-height: 88px; padding-inline: 24px; }
  .brand-star { width: 48px; height: 48px; flex-basis: 48px; }
  .brand-star i { left: 4px; top: 20px; width: 40px; height: 7px; }
  .brand-title strong { font-size: 19px; }
  .brand-title small { font-size: 10px; }
  .header-circle { width: 384px; height: 384px; right: 4%; top: -128px; border-width: 34px; }
  .intro-panel { padding: 24px; }
  .page-heading { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .filter-panel { grid-template-columns: minmax(190px, 1.8fr) repeat(3, minmax(120px, .7fr)) auto; align-items: end; }
  .filter-actions { min-height: 44px; }
  .report-row { grid-template-columns: 8px minmax(220px, 1fr) 68px 142px 88px 20px; grid-template-areas: "dot main rating date id arrow"; padding: 12px 14px; }
  .report-date, .report-id { font-size: 10px; }
  .detail-heading { align-items: center; }
  .photo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .form-shell { padding-top: 18px; }
  .intro-panel { padding: 28px; }
  .submit-dock { position: static; padding: 4px 0 0; background: transparent; border: 0; box-shadow: none; justify-content: flex-end; }
  .public-page .site-footer { padding-bottom: 12px; }
  .form-shell { padding-bottom: 24px; }
  .photo-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 420px) {
  .admin-nav a { display: none; }
  .brand-title small { max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
  .topic summary { grid-template-columns: 24px minmax(0, 1fr) 10px; }
  .topic-state { grid-column: 2; grid-row: 2; justify-self: start; }
  .chevron { grid-column: 3; grid-row: 1 / span 2; }
  .topic-other summary { grid-template-columns: minmax(0, 1fr) 10px; }
  .topic-other .topic-state { grid-column: 1; }
  .topic-other .chevron { grid-column: 2; }
  .topic-body { padding-left: 16px; }
  .site-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
