:root {
  color-scheme: only light;
  --bg: #f4f8fa;
  --surface: #ffffff;
  --surface-subtle: #f8fbfc;
  --ink: #142f38;
  --muted: #667b84;
  --faint: #91a2a9;
  --line: #dbe5e9;
  --line-strong: #c8d7dc;
  --primary: #087e8b;
  --primary-dark: #075c68;
  --primary-soft: #e9f6f7;
  --navy: #0d4e5c;
  --pending: #b66a0a;
  --pending-bg: #fff5df;
  --approved: #16855a;
  --approved-bg: #e8f7f0;
  --rejected: #c04444;
  --rejected-bg: #feeeee;
  --danger: #b73535;
  --shadow-sm: 0 8px 24px rgba(20, 47, 56, 0.07);
  --shadow-lg: 0 24px 70px rgba(20, 47, 56, 0.18);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --control-height: 48px;
  --ease: cubic-bezier(0.2, 0.75, 0.2, 1);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: only light;
  min-width: 320px;
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-size: var(--text-sm);
  line-height: 1.6;
}

button,
input,
textarea {
  color-scheme: only light;
  font: inherit;
}

button,
input,
textarea,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

button:not(:disabled),
a,
label:has(input) {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

svg {
  display: block;
}

[hidden] {
  display: none !important;
}

.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;
}

.public-page {
  background:
    linear-gradient(rgba(8, 126, 139, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 126, 139, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: 32px 32px;
}

.mobile-shell {
  width: min(100%, 560px);
  min-height: 100vh;
  margin: 0 auto;
  padding-top: 80px;
  background: var(--surface);
  box-shadow: 0 0 40px rgba(20, 47, 56, 0.08);
}

.public-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 50%;
  display: flex;
  width: min(100%, 560px);
  min-height: 80px;
  align-items: center;
  justify-content: space-between;
  padding: max(var(--space-4), env(safe-area-inset-top)) var(--space-5) var(--space-4);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  transform: translateX(-50%);
  backdrop-filter: blur(8px);
}

.public-header .brand {
  position: absolute;
  left: 50%;
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transform: translateX(-50%);
}

.header-icon-button {
  position: absolute;
  top: 50%;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--primary-dark);
  background: var(--surface);
  transform: translateY(-50%);
}

.header-icon-button:hover,
.header-icon-button:focus-visible {
  border-color: var(--primary);
  outline: 0;
}

.header-icon-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.header-back { left: var(--space-4); }
.header-progress {
  right: var(--space-4);
  display: flex;
  width: auto;
  min-width: 0;
  height: 36px;
  gap: 4px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}

.header-progress svg {
  width: 16px;
  height: 16px;
}

.brand,
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--primary);
}

.brand-mark.large {
  width: 50px;
  height: 50px;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  fill: var(--surface);
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
}

.brand-mark circle {
  fill: currentColor;
  stroke: none;
}

.view-panel {
  padding: var(--space-6) var(--space-5) var(--space-7);
  animation: panel-in 280ms var(--ease);
}

.forum-intro {
  position: relative;
  display: grid;
  gap: 0;
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.forum-intro::before {
  position: absolute;
  z-index: -2;
  top: calc(-1 * var(--space-6));
  right: calc(-1 * var(--space-5));
  left: calc(-1 * var(--space-5));
  height: 330px;
  background-image: url("/assets/forum-hero.png");
  background-position: 66% top;
  background-size: cover;
  content: "";
  filter: saturate(0.8) contrast(0.92) brightness(1.03);
  opacity: 0.66;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 52%, rgba(0, 0, 0, 0.72) 68%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 52%, rgba(0, 0, 0, 0.72) 68%, transparent 100%);
}

.forum-intro::after {
  position: absolute;
  z-index: -1;
  top: calc(-1 * var(--space-6));
  right: calc(-1 * var(--space-5));
  left: calc(-1 * var(--space-5));
  height: 330px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.52) 47%, rgba(255, 255, 255, 0.18) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.08) 42%, rgba(255, 255, 255, 0.62) 68%, #fff 100%);
  content: "";
}

.forum-hero {
  display: flex;
  min-height: 130px;
  align-items: flex-start;
  padding: 24px 0 0;
}

.forum-hero h1 {
  width: min(100%, 320px);
  margin: 0;
  color: #073d61;
  font-size: 22px;
  line-height: 1.42;
  letter-spacing: -0.01em;
}

.forum-intro-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-3);
  margin-top: -8px;
}

.forum-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.free-notice {
  display: flex;
  width: fit-content;
  min-height: 36px;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 12px;
  border: 1px solid #bfe1d2;
  border-radius: var(--radius-sm);
  color: var(--approved);
  background: var(--approved-bg);
  font-size: 13px;
  font-weight: 650;
}

.free-notice svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-stack {
  display: grid;
  gap: var(--space-5);
}

.field,
.field-group {
  display: grid;
  min-width: 0;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.field-label,
.field-group legend {
  padding: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}

.field-label {
  margin-bottom: 2px;
}

.field-group legend {
  margin-bottom: 12px;
}

.input-wrap,
.textarea-wrap {
  position: relative;
  display: flex;
  min-height: 48px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color 160ms ease, background 160ms ease;
}

.input-wrap:focus-within,
.textarea-wrap:focus-within {
  border-color: var(--primary);
}

.input-wrap input,
.textarea-wrap textarea {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 15px;
}

.input-wrap input {
  height: 46px;
  padding: 0 14px;
}

.input-wrap input::placeholder,
.textarea-wrap textarea::placeholder {
  color: var(--faint);
}

.input-wrap input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.input-wrap input[type="number"]::-webkit-inner-spin-button,
.input-wrap input[type="number"]::-webkit-outer-spin-button {
  appearance: none;
  margin: 0;
}

.has-icon > svg {
  width: 20px;
  height: 20px;
  margin-left: 14px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--faint);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.has-icon input {
  padding-left: 10px;
}

.has-action input {
  padding-right: 48px;
}

.input-action {
  position: absolute;
  right: 5px;
  display: grid;
  width: 40px;
  height: 38px;
  place-items: center;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
}

.input-action:hover {
  background: var(--surface-subtle);
  color: var(--primary);
}

.input-action svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.radio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.choice-card {
  position: relative;
  display: flex;
  height: 50px;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color 160ms ease;
}

.choice-card:has(input:checked) {
  border-color: var(--primary);
  background: var(--surface);
}

.choice-card:has(input:focus-visible) {
  border-color: var(--primary);
}

.choice-card input,
.status-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-control,
.status-choice > span {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
}

.choice-card input:checked + .choice-control,
.status-choice input:checked + span {
  border-color: var(--primary);
}

.choice-card input:checked + .choice-control::after,
.status-choice input:checked + span::after {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--primary);
  content: "";
}

.choice-title {
  color: var(--ink);
  font-weight: 650;
}

.audience-options {
  display: grid;
  gap: var(--space-2);
}

.audience-choice {
  height: auto;
  min-height: 56px;
  padding: 12px 14px;
}

.audience-choice .choice-title {
  font-size: 13px;
  font-weight: 560;
  line-height: 1.65;
}

.field-error {
  min-height: 0;
  color: var(--danger);
  font-size: 12px;
  line-height: 1.4;
}

.field-error:empty {
  display: none;
}

[data-invalid="true"] .input-wrap,
[data-invalid="true"] .choice-card {
  border-color: #d87e7e;
}

.number-input {
  width: 180px;
  min-height: 42px;
  justify-content: space-between;
}

.number-input input {
  height: 40px;
  padding: 0;
  text-align: center;
  font-weight: 650;
}

.number-step {
  display: grid;
  width: 42px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--primary);
  background: transparent;
}

.number-step:hover {
  background: var(--primary-soft);
}

.number-step svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.primary-button,
.secondary-button,
.text-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.primary-button {
  min-height: 48px;
  gap: 8px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  color: #fff;
  background: var(--primary);
  font-size: 15px;
  font-weight: 650;
}

.primary-button:hover {
  background: #076f7b;
}

.primary-button:active {
  transform: translateY(1px);
}

.primary-button svg,
.secondary-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.secondary-button {
  min-height: 42px;
  gap: 7px;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: var(--surface);
  font-weight: 600;
}

.secondary-button:hover {
  border-color: #93b9c0;
  color: var(--primary);
  background: var(--surface-subtle);
}

.primary-button.compact,
.secondary-button.compact {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}

.text-button {
  padding: 4px;
  color: var(--primary);
  background: transparent;
  font-weight: 600;
}

.text-button:hover {
  color: var(--primary-dark);
}

.icon-button {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--muted);
  background: transparent;
}

.icon-button:hover {
  border-color: var(--line);
  color: var(--ink);
  background: var(--surface-subtle);
}

.icon-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.success-panel {
  display: grid;
  min-height: calc(100vh - 96px);
  place-items: center;
  align-content: center;
  gap: 14px;
  padding: 48px 26px;
  text-align: center;
  animation: panel-in 320ms var(--ease);
}

.success-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--approved);
}

.success-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.success-panel h2 {
  margin: 4px 0 5px;
  font-size: 22px;
}

.success-panel p {
  margin: 0;
  color: #517068;
  font-size: 14px;
}

.success-panel .primary-button {
  width: min(100%, 260px);
  margin-top: 16px;
}

.mobile-shell.is-success .public-header,
.mobile-shell.is-success .public-footer {
  display: none;
}

.mobile-shell.is-success .forum-intro {
  display: none;
}

.mobile-shell.is-success .view-panel {
  padding: 0;
}

.mobile-shell.is-success {
  padding-top: 0;
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading h1 {
  margin: 0;
  font-size: 21px;
  line-height: 1.35;
}

.section-heading p {
  margin: 6px 0 0;
  color: var(--muted);
}

.query-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  align-items: start;
  gap: var(--space-2);
}

.query-form .primary-button {
  min-height: 48px;
}

.query-summary {
  margin: 28px 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.query-summary strong {
  color: var(--ink);
}

.result-list {
  display: grid;
  gap: var(--space-3);
}

.skeleton-list {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.skeleton-card,
.admin-skeleton-card {
  display: grid;
  gap: 13px;
  border: 1px solid #e5ecef;
  border-radius: var(--radius);
  background: var(--surface);
}

.skeleton-card {
  padding: 18px;
}

.skeleton-card span,
.admin-skeleton-card span {
  display: block;
  height: 12px;
  border-radius: 5px;
  background: #e9eef0;
  animation: skeleton-pulse 1.25s ease-in-out infinite alternate;
}

.skeleton-card span:first-child,
.admin-skeleton-card span:first-child { width: 58%; height: 15px; }
.skeleton-card span:nth-child(2),
.admin-skeleton-card span:nth-child(2) { width: 38%; }
.skeleton-card span:last-child,
.admin-skeleton-card span:last-child { width: 76%; }

@keyframes skeleton-pulse {
  from { background-color: #edf1f3; }
  to { background-color: #dfe6e9; }
}

.result-card {
  width: 100%;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
  background: var(--surface);
  box-shadow: 0 3px 10px rgba(20, 47, 56, 0.035);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.result-card:hover {
  border-color: #9fc7cd;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.result-card-top,
.result-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.result-card h2 {
  overflow: hidden;
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 9px 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.result-card-bottom {
  padding-top: 11px;
  border-top: 1px solid #edf2f4;
  color: var(--faint);
  font-size: 12px;
}

.result-card-bottom svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--muted);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.status-badge {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  flex: 0 0 auto;
  padding: 2px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.status-badge.pending {
  color: var(--pending);
  background: var(--pending-bg);
}

.status-badge.approved {
  color: var(--approved);
  background: var(--approved-bg);
}

.status-badge.rejected {
  color: var(--rejected);
  background: var(--rejected-bg);
}

.inline-empty,
.inline-loading {
  display: grid;
  min-height: 230px;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: var(--muted);
  text-align: center;
}

.inline-empty svg {
  width: 68px;
  height: 60px;
  margin-bottom: 8px;
  fill: none;
  stroke: #9bb7bd;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.inline-empty h2 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
}

.inline-empty p {
  margin: 0;
  font-size: 13px;
}

.spinner {
  width: 28px;
  height: 28px;
  border: 2px solid var(--line);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.public-footer {
  padding: 0 24px max(26px, env(safe-area-inset-bottom));
  color: var(--faint);
  font-size: 12px;
  text-align: center;
}

.modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 31, 38, 0.54);
  animation: fade-in 180ms ease;
}

.modal-sheet {
  position: relative;
  width: min(100%, 560px);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  animation: modal-in 240ms var(--ease);
}

@keyframes fade-in { from { opacity: 0; } }
@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header,
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
}

.modal-header {
  border-bottom: 1px solid var(--line);
}

.modal-header h2 {
  margin: 1px 0 0;
  font-size: 19px;
  line-height: 1.35;
}

.modal-caption {
  margin: 0;
  color: var(--primary);
  font-size: 12px;
  font-weight: 650;
}

.modal-footer {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
}

.detail-grid {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 0;
  margin: 0;
  padding: 10px 22px 18px;
}

.detail-row {
  display: contents;
}

.detail-row dt,
.detail-row dd {
  min-width: 0;
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid #eef3f4;
}

.detail-row dt {
  color: var(--muted);
}

.detail-row dd {
  color: var(--ink);
  font-weight: 520;
  overflow-wrap: anywhere;
}

.detail-row.full dd {
  line-height: 1.75;
}

body.modal-open {
  overflow: hidden;
}

.toast-region {
  position: fixed;
  z-index: 200;
  top: 20px;
  left: 50%;
  display: grid;
  width: min(calc(100% - 32px), 420px);
  gap: 8px;
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  animation: toast-in 220ms var(--ease);
}

.toast.error {
  border-color: #efc7c7;
  color: var(--danger);
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Administrator */
.admin-page {
  overflow-x: hidden;
}

.login-screen {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(420px, 0.95fr) minmax(520px, 1.05fr);
}

.login-visual {
  position: relative;
  display: grid;
  overflow: hidden;
  place-items: center;
  color: #fff;
  background: var(--navy);
}

.login-visual::before,
.login-visual::after {
  position: absolute;
  width: 440px;
  height: 440px;
  border: 1px solid rgba(152, 221, 228, 0.13);
  border-radius: 50%;
  content: "";
}

.login-visual::before {
  top: -220px;
  left: -150px;
}

.login-visual::after {
  right: -250px;
  bottom: -190px;
}

.network-lines {
  position: absolute;
  inset: 0;
  opacity: 0.26;
}

.network-lines span {
  position: absolute;
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #91dce3;
  box-shadow: 0 0 16px rgba(145, 220, 227, 0.6);
}

.network-lines span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 180px;
  height: 1px;
  background: rgba(145, 220, 227, 0.5);
  content: "";
  transform: rotate(24deg);
  transform-origin: left;
}

.network-lines span:nth-child(1) { top: 18%; left: 18%; }
.network-lines span:nth-child(2) { top: 33%; left: 56%; }
.network-lines span:nth-child(2)::after { width: 130px; transform: rotate(95deg); }
.network-lines span:nth-child(3) { top: 61%; left: 32%; }
.network-lines span:nth-child(3)::after { width: 220px; transform: rotate(-15deg); }
.network-lines span:nth-child(4) { top: 73%; left: 70%; }
.network-lines span:nth-child(4)::after { width: 140px; transform: rotate(-80deg); }
.network-lines span:nth-child(5) { top: 45%; left: 82%; }

.login-brand {
  position: relative;
  z-index: 1;
  width: min(72%, 460px);
}

.login-brand .brand-mark {
  color: #62c2cc;
}

.login-brand .brand-mark svg {
  fill: transparent;
}

.login-brand h1 {
  margin: 22px 0 8px;
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: 0.02em;
  line-height: 1.28;
}

.login-brand p {
  margin: 0;
  color: #a8ced3;
  font-size: 15px;
  letter-spacing: 0.08em;
}

.login-panel {
  display: grid;
  place-items: center;
  padding: 48px;
  background: var(--bg);
}

.login-form {
  display: grid;
  width: min(100%, 420px);
  gap: 22px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.login-heading {
  margin-bottom: 4px;
}

.login-heading h2 {
  margin: 0 0 5px;
  font-size: 24px;
}

.login-heading p {
  margin: 0;
  color: var(--muted);
}

.form-message {
  min-height: 20px;
  margin: -8px 0 0;
  color: var(--danger);
  font-size: 13px;
}

.dashboard {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  z-index: 40;
  inset: 0 auto 0 0;
  display: flex;
  width: 236px;
  flex-direction: column;
  color: #fff;
  background: var(--navy);
  transition: transform 220ms var(--ease);
}

.sidebar-brand {
  height: 72px;
  padding: 0 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.sidebar-brand .brand-mark {
  color: #62c2cc;
}

.sidebar-brand .brand-mark svg {
  fill: transparent;
}

.sidebar-nav {
  display: grid;
  gap: 6px;
  padding: 18px 12px;
}

.sidebar-link {
  display: flex;
  width: 100%;
  height: 46px;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  color: #b7d2d6;
  background: transparent;
  text-decoration: none;
  text-align: left;
}

.sidebar-link.is-active {
  color: #fff;
  background: rgba(36, 157, 170, 0.32);
}

.sidebar-link svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.sidebar-count {
  display: grid;
  min-width: 20px;
  height: 20px;
  margin-left: auto;
  place-items: center;
  border-radius: 10px;
  color: #d7f3f5;
  background: rgba(255, 255, 255, 0.12);
  font-size: 11px;
}

.sidebar-account {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 16px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-account .avatar {
  color: #d8f3f5;
  background: rgba(255, 255, 255, 0.12);
}

.sidebar-account-info {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.sidebar-account-info b {
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-account-info small {
  color: #87b2b9;
  font-size: 11px;
}

.sidebar-logout {
  padding: 6px;
  border-radius: 6px;
  color: #b7d2d6;
  background: transparent;
  font-size: 12px;
}

.sidebar-logout:hover,
.sidebar-logout:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  outline: 0;
}

.dashboard-main {
  min-height: 100vh;
  margin-left: 236px;
  padding-top: 72px;
}

.topbar {
  position: fixed;
  z-index: 30;
  top: 0;
  right: 0;
  left: 236px;
  display: flex;
  height: 72px;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
}

.topbar-title {
  position: absolute;
  left: 50%;
  font-weight: 650;
  transform: translateX(-50%);
}

.topbar-refresh {
  margin-left: auto;
}

.avatar {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-size: 12px;
  font-weight: 700;
}

.mobile-menu {
  display: none;
}

.dashboard-content {
  width: min(100%, 1240px);
  margin: 0 auto;
  padding: var(--space-6) var(--space-6) var(--space-7);
}

.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.status-tabs {
  display: flex;
  width: fit-content;
  gap: var(--space-2);
  margin-top: 0;
  border-bottom: 1px solid var(--line);
}

.status-tab {
  position: relative;
  min-width: 108px;
  height: 46px;
  padding: 0 14px;
  color: var(--muted);
  background: transparent;
  font-weight: 600;
  white-space: nowrap;
}

.status-tab::after {
  position: absolute;
  right: 14px;
  bottom: -1px;
  left: 14px;
  height: 2px;
  background: transparent;
  content: "";
}

.status-tab.is-active {
  color: var(--primary);
}

.status-tab.is-active::after {
  background: var(--primary);
}

.status-tab span {
  margin-left: 5px;
  color: var(--faint);
  font-size: 12px;
}

.status-filter-mobile {
  position: relative;
  display: none;
  margin-top: 0;
}

.filter-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: var(--space-2);
}

.is-trash-view .status-tabs,
.is-trash-view .status-filter-mobile {
  display: none;
}

.is-trash-view .filter-row {
  justify-content: flex-end;
}

.refresh-button {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: var(--muted);
  background: var(--surface);
}

.refresh-button:hover,
.refresh-button:focus-visible {
  border-color: var(--primary);
  color: var(--primary);
  outline: 0;
}

.refresh-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.refresh-button.is-loading svg {
  animation: spin 700ms linear infinite;
}

.status-menu-button {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink);
  background: var(--surface);
  font-weight: 650;
  text-align: left;
  box-shadow: 0 1px 0 rgba(17, 67, 76, 0.03);
}

.status-menu-count {
  color: var(--faint);
  font-size: 12px;
}

.status-menu-button svg {
  width: 18px;
  height: 18px;
  margin-left: auto;
  fill: none;
  stroke: var(--muted);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  transition: transform 160ms ease;
}

.status-menu-button[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.status-menu {
  position: absolute;
  z-index: 15;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  display: grid;
  overflow: hidden;
  gap: var(--space-1);
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.status-menu-option {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  text-align: left;
}

.status-menu-option:hover,
.status-menu-option.is-active {
  border-color: var(--primary);
  color: var(--primary-dark);
  background: var(--surface);
}

.status-menu-option span {
  color: var(--faint);
  font-size: 12px;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-4);
  padding: var(--space-5) 0;
}

.batch-mode-button {
  border-color: #b9d7db;
  border-radius: 10px;
  color: var(--primary-dark);
  background: #f1f9fa;
}

.batch-mode-button:hover,
.batch-mode-button:focus-visible {
  border-color: var(--primary);
  color: var(--primary-dark);
  background: #e8f5f6;
  outline: 0;
}

.batch-mode-button.is-active {
  border-color: var(--line-strong);
  color: var(--muted);
  background: var(--surface);
}

.search-form {
  display: grid;
  width: min(100%, 560px);
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: var(--space-2);
}

.search-form .input-wrap {
  min-height: 40px;
}

.search-form input {
  height: 38px;
  font-size: 14px;
}

.records-section {
  min-width: 0;
}

.admin-record-grid,
.admin-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.swipe-card-shell {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: transparent;
}

.swipe-delete-action {
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  left: 0;
  display: grid;
  width: 88px;
  place-items: center;
  color: #fff;
  background: #c83e45;
  font-size: 14px;
  font-weight: 700;
  visibility: hidden;
}

.swipe-card-shell.is-open .swipe-delete-action,
.swipe-card-shell:has(.admin-record-card.is-dragging) .swipe-delete-action {
  visibility: visible;
}

.swipe-delete-action:hover,
.swipe-delete-action:focus-visible {
  background: #ad2f36;
  outline: 0;
}

.admin-record-card {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  min-width: 0;
  gap: var(--space-2);
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--surface);
  text-align: left;
  touch-action: pan-y;
  user-select: none;
  transition: border-color 160ms ease, transform 180ms var(--ease);
}

.admin-record-card.is-dragging {
  transition: none;
}

.admin-record-card:hover,
.admin-record-card:focus-visible {
  border-color: var(--primary);
  outline: 0;
}

.admin-record-card:hover {
  transform: translateY(-1px);
}

.swipe-card-shell.is-open .admin-record-card:hover {
  transform: translateX(88px);
}

.swipe-card-shell.is-open .admin-record-card,
.swipe-card-shell:has(.admin-record-card.is-dragging) .admin-record-card {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.record-selector {
  position: absolute;
  z-index: 4;
  top: 14px;
  left: 14px;
  display: none;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.record-selector input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.record-selector span {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid #a9bec3;
  border-radius: 6px;
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(15, 68, 77, 0.1);
}

.record-selector input:checked + span {
  border-color: var(--primary);
  background: var(--primary);
}

.record-selector input:checked + span::after {
  width: 6px;
  height: 3px;
  border-bottom: 2px solid #fff;
  border-left: 2px solid #fff;
  content: "";
  transform: translateY(-1px) rotate(-45deg);
}

.admin-record-grid.is-batch-mode .record-selector {
  display: block;
}

.admin-record-grid.is-batch-mode .admin-record-card {
  cursor: pointer;
  padding-left: 46px;
}

.swipe-card-shell.is-selected .admin-record-card {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(8, 126, 139, 0.1);
}

.trash-record-shell {
  background: transparent;
}

.trash-record-card {
  cursor: default;
  user-select: text;
}

.trash-record-card .admin-card-details > span:last-child {
  grid-column: 1 / -1;
}

.trash-expiry {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  color: #8a5a16;
  background: #fff5df;
  font-size: 11px;
  font-weight: 650;
}

.trash-card-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.danger-text {
  color: #b9363d;
}

.danger-text:hover {
  color: #92282e;
}

.admin-record-grid.is-batch-mode .trash-card-actions {
  visibility: hidden;
}

.admin-card-head,
.admin-card-foot {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.admin-card-head strong {
  min-width: 0;
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-card-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2) var(--space-4);
}

.admin-card-details > span {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: var(--space-2);
}

.admin-card-details small {
  color: var(--faint);
  font-size: 11px;
}

.admin-card-details b {
  overflow: hidden;
  color: #34505a;
  font-size: 13px;
  font-weight: 560;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-card-details > span.wide {
  grid-column: 1 / -1;
}

.admin-card-details > span.wide b {
  white-space: normal;
}

.admin-card-foot {
  padding-top: var(--space-2);
  border-top: 1px solid #edf2f4;
  color: var(--faint);
  font-size: 12px;
}

.card-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--primary);
  font-weight: 650;
}

.card-action svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.admin-skeleton-card {
  min-height: 146px;
  padding: 16px;
}

.admin-skeleton-card span:nth-child(3) { width: 70%; }
.admin-skeleton-card span:nth-child(4) { width: 46%; }

.records-footer {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.batch-action-bar {
  position: sticky;
  z-index: 20;
  bottom: 16px;
  display: flex;
  min-height: 64px;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-4);
  padding: 10px 14px;
  border: 1px solid rgba(8, 126, 139, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 36px rgba(20, 72, 80, 0.16);
  backdrop-filter: blur(10px);
}

.batch-select-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.batch-select-all input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.batch-select-all b,
#selectedCount {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.batch-actions {
  display: flex;
  gap: var(--space-2);
  margin-left: auto;
}

.danger-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid #c84b52;
  border-radius: var(--radius-sm);
  color: #fff;
  background: #c83e45;
  font-size: 14px;
  font-weight: 650;
}

.danger-button:hover {
  background: #ad2f36;
}

.danger-button:disabled,
.secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.empty-state {
  display: grid;
  min-height: 360px;
  place-items: center;
  align-content: center;
  padding: 40px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--surface);
  text-align: center;
}

.empty-state svg {
  width: 88px;
  height: 68px;
  margin-bottom: 16px;
  fill: none;
  stroke: #a8c1c6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.empty-state h2 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
}

.empty-state p {
  margin: 5px 0 0;
  font-size: 13px;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pagination .icon-button {
  width: 36px;
  height: 36px;
  border-color: var(--line);
  background: var(--surface);
}

.admin-modal {
  width: min(100%, 920px);
}

.admin-modal .modal-header,
.action-modal .modal-header {
  justify-content: center;
  text-align: center;
}

.admin-modal .modal-header {
  position: sticky;
  z-index: 5;
  top: 0;
  background: var(--surface);
}

.action-modal .modal-header {
  position: relative;
}

.admin-modal .modal-header .icon-button,
.action-modal .modal-header .icon-button {
  position: absolute;
  right: 18px;
}

.action-modal {
  width: min(100%, 460px);
}

.action-modal-body {
  padding: 24px 22px 8px;
}

.action-modal-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  text-align: center;
}

.review-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.admin-details {
  align-content: start;
  padding-top: 19px;
  border-right: 1px solid var(--line);
}

.review-form {
  display: grid;
  align-content: start;
  gap: 22px;
  padding: 26px;
}

.status-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.status-choice {
  position: relative;
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--muted);
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
}

.status-choice:has(input:checked) {
  border-color: var(--primary);
  color: var(--primary-dark);
  background: var(--surface);
}

.status-choice.approved:has(input:checked) {
  border-color: #54aa87;
  color: var(--approved);
  background: var(--surface);
}

.status-choice.rejected:has(input:checked) {
  border-color: #d77b7b;
  color: var(--rejected);
  background: var(--surface);
}

.status-choice.approved input:checked + span { border-color: var(--approved); }
.status-choice.approved input:checked + span::after { background: var(--approved); }
.status-choice.rejected input:checked + span { border-color: var(--rejected); }
.status-choice.rejected input:checked + span::after { background: var(--rejected); }

.textarea-wrap {
  display: block;
  min-height: 150px;
}

.textarea-wrap textarea {
  min-height: 120px;
  padding: 12px 14px 28px;
  resize: vertical;
  line-height: 1.7;
}

.textarea-wrap > span {
  position: absolute;
  right: 11px;
  bottom: 7px;
  color: var(--faint);
  font-size: 11px;
}

@media (max-width: 960px) {
  .login-screen {
    grid-template-columns: 1fr;
  }

  .login-visual {
    display: none;
  }

  .login-panel {
    padding: 28px;
  }

  .sidebar {
    transform: translateX(-100%);
    box-shadow: var(--shadow-lg);
  }

  .dashboard.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .dashboard.sidebar-open::after {
    position: fixed;
    z-index: 35;
    inset: 0;
    background: rgba(10, 31, 38, 0.45);
    content: "";
  }

  .dashboard-main {
    margin-left: 0;
  }

  .topbar {
    left: 0;
  }

  .mobile-menu {
    display: inline-flex;
  }

  .review-layout {
    grid-template-columns: 1fr;
  }

  .admin-details {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  .status-tabs {
    display: none;
  }

  .status-filter-mobile {
    display: block;
    width: auto;
    flex: 0 1 auto;
  }

  .status-menu-button {
    width: max-content;
    min-width: 0;
    max-width: 100%;
    min-height: 40px;
    padding-inline: 12px;
  }

  .admin-record-grid,
  .admin-skeleton-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

}

@media (max-width: 640px) {
  .mobile-shell {
    padding-top: 72px;
    box-shadow: none;
  }

  .public-header {
    min-height: 72px;
    padding: max(var(--space-3), env(safe-area-inset-top)) var(--space-4) var(--space-3);
  }

  .public-header .brand {
    font-size: 18px;
  }

  .brand-mark {
    width: 29px;
    height: 29px;
  }

  .view-panel {
    padding: var(--space-5) 20px 40px;
  }

  .forum-hero {
    min-height: 124px;
    padding: 24px 0 0;
  }

  .forum-intro::before,
  .forum-intro::after {
    top: calc(-1 * var(--space-5));
    right: -20px;
    left: -20px;
    height: 310px;
  }

  .forum-hero h1 {
    width: min(100%, 285px);
    font-size: 20px;
  }

  .query-form {
    grid-template-columns: 1fr;
  }

  .modal {
    align-items: end;
    padding: 0;
  }

  .modal-sheet {
    width: 100%;
    max-height: 86vh;
    border-radius: 18px 18px 0 0;
    animation-name: sheet-in;
  }

  @keyframes sheet-in {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .modal-header,
  .modal-footer {
    padding-inline: 18px;
  }

  .detail-grid {
    grid-template-columns: 102px minmax(0, 1fr);
    padding-inline: 18px;
  }

  .login-panel {
    padding: 18px;
  }

  .login-form {
    padding: 26px 22px;
  }

  .topbar {
    padding: 0 16px;
  }

  .dashboard-content {
    padding: var(--space-5) 20px 40px;
  }

  .filter-row {
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: nowrap;
  }

  .is-trash-view .filter-row {
    justify-content: flex-start;
  }

  .filter-actions {
    gap: 8px;
    margin-left: 0;
  }

  .toolbar {
    display: block;
    padding-block: var(--space-4);
  }

  .batch-mode-button {
    min-height: 34px;
    padding-inline: 12px;
    font-size: 13px;
  }

  .search-form {
    grid-template-columns: 1fr auto;
  }

  .records-footer {
    width: 100%;
    align-items: center;
    flex-direction: row;
    gap: 8px;
    font-size: 12px;
  }

  .admin-record-card {
    gap: var(--space-2);
    padding: var(--space-4);
  }

  .batch-action-bar {
    bottom: max(10px, env(safe-area-inset-bottom));
    align-items: stretch;
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .batch-actions {
    width: 100%;
  }

  .batch-actions > button {
    flex: 1;
  }

  .admin-card-details {
    gap: var(--space-2) var(--space-4);
  }

  .pagination {
    gap: 5px;
    margin-left: auto;
    white-space: nowrap;
  }

  .pagination .icon-button {
    width: 32px;
    height: 32px;
  }

  .review-form {
    padding: 22px 18px;
  }

  .status-choice-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .search-form {
    grid-template-columns: 1fr;
  }

  .search-form .primary-button {
    width: 100%;
  }

  .admin-card-head {
    align-items: flex-start;
  }

  .trash-card-foot {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

@media (prefers-color-scheme: dark) {
  :root,
  html,
  body,
  button,
  input,
  textarea {
    color-scheme: only light;
  }

  html,
  body,
  .public-page,
  .admin-page {
    color: var(--ink);
    background-color: var(--bg);
  }

  input,
  textarea,
  .input-wrap,
  .textarea-wrap,
  .choice-card,
  .status-choice,
  .modal-sheet,
  .admin-record-card,
  .result-card,
  .status-menu,
  .status-menu-button {
    color: var(--ink);
    background-color: var(--surface);
  }

  .primary-button {
    color: #ffffff;
    background-color: var(--primary);
  }
}
