:root {
  --brand-red: #d71920;
  --brand-red-dark: #b80f17;
  --brand-black: #111111;
  --brand-white: #ffffff;
  --brand-cream: #f7f7f7;

  --text: #111111;
  --bg: #f5f6f8;
  --muted: #667085;
  --line: #e4e7ec;
  --soft: #f8fafc;

  --success: #117a37;
  --warning: #b26a00;

  --shadow-sm: 0 6px 18px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 14px 38px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 18px 40px rgba(16, 24, 40, 0.1);

  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
}

img,
video {
  max-width: 100%;
}

/* Layout */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px;
}

.mobile-shell {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 20px 18px 30px;
}

/* Brand */

.brand-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 0 14px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-logo {
  height: 54px;
  width: auto;
  display: block;
}

/* Generic cards and page blocks */

.card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.card + .card {
  margin-top: 16px;
}

.page-card {
  padding: 22px;
}

.page-header {
  margin-bottom: 18px;
  text-align: center;
}

.page-title {
  font-size: 26px;
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
  color: var(--text);
}

.page-subtitle {
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
  max-width: 460px;
  margin: 0 auto;
}

/* Hero */

.hero-strip {
  margin: 12px 0 18px;
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, #111111 0%, #2b2f36 100%);
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

.hero-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.hero-heading {
  margin-top: 8px;
}

.hero-strip-compact .hero-heading {
  font-size: 18px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: none;
}

/* Booth info */

.info-card {
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 6px 16px;
  margin-top: 4px;
  margin-bottom: 18px;
}

.info-card-premium {
  background: linear-gradient(180deg, #fcfcfd 0%, #f8fafc 100%);
  border: 1px solid #e6eaf0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.info-row-premium {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  flex-wrap: nowrap;
}

.info-row-premium:last-child {
  border-bottom: 0;
}

.info-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 108px;
  flex-shrink: 0;
}

.info-meta-icon {
  font-family: "Material Symbols Outlined";
  font-size: 20px;
  color: #98a2b3;
  line-height: 1;
}

.label-inline {
  color: #98a2b3;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.value-inline {
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-align: left;
  word-break: break-word;
  flex: 1 1 auto;
  line-height: 1.2;
}

/* Privacy */

.privacy-card {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #f0d9a7;
  border-radius: 18px;
  background: linear-gradient(180deg, #fffdf7 0%, #fff8eb 100%);
  box-shadow: 0 8px 20px rgba(178, 106, 0, 0.06);
}

.privacy-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.privacy-icon {
  font-family: "Material Symbols Outlined";
  font-size: 22px;
  color: #b26a00;
  line-height: 1;
  margin-top: 1px;
  flex-shrink: 0;
}

.privacy-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.privacy-text {
  font-size: 14px;
  color: #5f4b1b;
  line-height: 1.5;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 14px;
  cursor: pointer;
}

.check-input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--brand-red);
  flex-shrink: 0;
}

.check-label {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  width: auto;
  border-radius: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
  font-family: inherit;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(180deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(215, 25, 32, 0.22);
}

.btn-primary:hover:not(:disabled) {
  box-shadow: 0 14px 28px rgba(215, 25, 32, 0.28);
}

.btn-secondary {
  background: #111827;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.18);
}

.btn-secondary:hover:not(:disabled) {
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.24);
}

.btn-light {
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-light:hover:not(:disabled) {
  box-shadow: var(--shadow-sm);
}

.btn-recording {
  background: linear-gradient(180deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(215, 25, 32, 0.26);
}

.icon-btn {
  justify-content: center;
}

/* Action groups */

.actions {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.actions-tight {
  margin-top: 16px;
}

/* Material symbols */

.btn-icon,
.choice-icon,
.capture-placeholder-icon,
.loyalty-icon {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  font-size: 22px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Choice cards */

.choice-grid {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.choice-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: start;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: #ffffff;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.choice-card:hover {
  transform: translateY(-1px);
}

.choice-card.choice-card-clean:hover,
.choice-card.choice-card-clean.active {
  border-color: rgba(17, 122, 55, 0.38);
  box-shadow: 0 12px 30px rgba(17, 122, 55, 0.12);
}

.choice-card.choice-card-clean.active {
  background: linear-gradient(180deg, #ffffff 0%, #f5fcf7 100%);
}

.choice-card.choice-card-clean.active .choice-icon-wrap {
  border-color: rgba(17, 122, 55, 0.2);
  background: rgba(17, 122, 55, 0.08);
}

.choice-card.choice-card-issue:hover,
.choice-card.choice-card-issue.active {
  border-color: rgba(215, 25, 32, 0.45);
  box-shadow: 0 12px 30px rgba(215, 25, 32, 0.12);
}

.choice-card.choice-card-issue.active {
  background: linear-gradient(180deg, #ffffff 0%, #fff8f8 100%);
}

.choice-card.choice-card-issue.active .choice-icon-wrap {
  border-color: rgba(215, 25, 32, 0.22);
  background: rgba(215, 25, 32, 0.06);
}

.choice-icon-wrap,
.loyalty-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.choice-title {
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.choice-text {
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
  font-size: 14px;
}

.choice-content {
  min-width: 0;
}

/* Fields */

.field {
  margin-top: 16px;
}

.field label,
.section-label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #344054;
}

.input,
.textarea,
.select {
  width: 100%;
  border: 1px solid #d0d5dd;
  border-radius: 14px;
  padding: 14px 14px;
  font-size: 15px;
  font-family: inherit;
  background: #ffffff;
  color: var(--text);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.input::placeholder,
.textarea::placeholder {
  color: #98a2b3;
}

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: rgba(215, 25, 32, 0.55);
  box-shadow: 0 0 0 4px rgba(215, 25, 32, 0.08);
}

.textarea {
  min-height: 120px;
  resize: vertical;
}

.helper {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.45;
}

#contactMobile {
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

/* Section heads */

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.section-subtext {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.capture-limit {
  white-space: nowrap;
  border-radius: 999px;
  padding: 8px 12px;
  background: #f2f4f7;
  color: #344054;
  font-size: 12px;
  font-weight: 800;
}

/* Video capture area */

.capture-card {
  margin-top: 18px;
}

.capture-stage {
  position: relative;
  width: 100%;
  min-height: 280px;
  border-radius: 18px;
  overflow: hidden;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.capture-placeholder {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
}

.capture-placeholder-icon {
  font-size: 40px;
  opacity: 0.92;
}

.capture-placeholder-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.capture-placeholder-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
}

video.video-box,
.video-box video,
#livePreview,
#playbackPreview {
  width: 100%;
  border-radius: 18px;
  background: #000000;
  display: block;
}

.video-box {
  width: 100%;
  background: #000000;
  border-radius: 18px;
  overflow: hidden;
}

.video-box video {
  width: 100%;
  display: block;
}

/* Recording HUD */

.recording-hud {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}

.recording-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.72);
  color: #ffffff;
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.recording-live-text {
  letter-spacing: 0.05em;
}

.record-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff3b30;
  animation: pulse-record 1s infinite ease-in-out;
  box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.6);
}

.recording-timer {
  min-width: 72px;
  text-align: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.72);
  color: #ffffff;
  backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.is-recording .recording-timer {
  animation: timer-flash 1s infinite ease-in-out;
}

/* Messages */

.message {
  margin-top: 14px;
  padding: 13px 14px;
  border-radius: 14px;
  font-weight: 700;
  display: none;
  font-size: 14px;
}

.message.show {
  display: block;
}

.message.error {
  background: rgba(215, 25, 32, 0.1);
  color: var(--brand-red);
  border: 1px solid rgba(215, 25, 32, 0.15);
}

.message.success {
  background: rgba(17, 122, 55, 0.1);
  color: var(--success);
  border: 1px solid rgba(17, 122, 55, 0.15);
}

/* Status pills */

.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.status-new,
.status-issue {
  background: rgba(215, 25, 32, 0.12);
  color: var(--brand-red);
}

.status-review {
  background: rgba(178, 106, 0, 0.14);
  color: var(--warning);
}

.status-closed,
.status-clean {
  background: rgba(17, 122, 55, 0.12);
  color: var(--success);
}

/* Thanks page */

.thanks-card {
  text-align: left;
}

.thanks-actions {
  margin-top: 22px;
}

/* Loyalty card */

.loyalty-card {
  margin-top: 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfcfd;
  padding: 18px;
}

.loyalty-content {
  flex: 1;
  min-width: 0;
}

.loyalty-title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.loyalty-text {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* Footer */

.footer-note {
  margin: 10px auto 30px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  max-width: 560px;
  padding: 0 20px;
  line-height: 1.45;
}

/* Admin layout */

.admin-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

.sidebar {
  border-right: 1px solid var(--line);
  background: #ffffff;
  padding: 24px;
}

.sidebar .brand-mark {
  margin-bottom: 26px;
}

.nav-link {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 8px;
}

.nav-link.active,
.nav-link:hover {
  background: var(--soft);
}

.main-panel {
  background: #fafafa;
  padding: 24px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.kpi-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
}

.kpi-label {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 700;
}

.kpi-value {
  margin-top: 10px;
  font-size: 28px;
  font-weight: 900;
  color: var(--text);
}

/* Toolbar and table */

.toolbar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
  gap: 12px;
  margin-bottom: 18px;
}

.table-wrap {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
  vertical-align: middle;
}

.table th {
  background: #fcfcfc;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
  color: #344054;
}

.link-button {
  background: none;
  border: 0;
  color: var(--brand-red);
  font-weight: 800;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

/* Animations */

@keyframes pulse-record {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.6);
    opacity: 1;
  }

  70% {
    transform: scale(1.08);
    box-shadow: 0 0 0 10px rgba(255, 59, 48, 0);
    opacity: 0.9;
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 59, 48, 0);
    opacity: 1;
  }
}

@keyframes timer-flash {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.72;
  }
}

/* Responsive */

@media (max-width: 960px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toolbar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .mobile-shell {
    padding: 16px 14px 26px;
  }

  .page-title {
    font-size: 24px;
  }

  .choice-card {
    grid-template-columns: 46px 1fr;
    padding: 16px;
  }

  .choice-icon-wrap,
  .loyalty-icon-wrap {
    width: 46px;
    height: 46px;
  }

  .capture-stage,
  .capture-placeholder {
    min-height: 240px;
  }

  .section-head {
    flex-direction: column;
    align-items: stretch;
  }

  .capture-limit {
    align-self: flex-start;
  }

  .loyalty-card {
    padding: 16px;
  }

  .info-row-premium {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .info-meta {
    min-width: 0;
  }

  .privacy-card {
    padding: 16px;
  }
}

.admin-login-shell {
  max-width: 560px;
  padding-top: 34px;
}

.admin-login-card {
  box-shadow: var(--shadow-md);
}

.admin-hero {
  margin-bottom: 18px;
}

.input-with-icon {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-family: "Material Symbols Outlined";
  font-size: 20px;
  color: #98a2b3;
  line-height: 1;
  pointer-events: none;
}

.input-has-icon {
  padding-left: 44px;
}

.admin-sidebar {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
}

.admin-sidebar-section {
  margin-top: 20px;
}

.admin-sidebar-label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 10px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link-icon {
  font-family: "Material Symbols Outlined";
  font-size: 20px;
  line-height: 1;
}

.admin-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-eyebrow {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 8px;
}

.kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.kpi-icon {
  font-family: "Material Symbols Outlined";
  font-size: 22px;
  line-height: 1;
  color: #98a2b3;
}

.admin-filter-card {
  margin-bottom: 18px;
}

.filter-head {
  margin-bottom: 14px;
}

.toolbar-admin {
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
  align-items: end;
}

.admin-table-wrap {
  overflow: hidden;
}

.table-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 0;
}

.table-comment-cell {
  max-width: 320px;
  white-space: normal;
  word-break: break-word;
}

.icon-link-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
}

.icon-link-button .material-symbols-outlined {
  font-size: 18px;
  line-height: 1;
}

.table-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 26px 12px;
  color: var(--muted);
}

.table-empty-icon {
  font-family: "Material Symbols Outlined";
  font-size: 30px;
  line-height: 1;
  margin-bottom: 10px;
  color: #98a2b3;
}

.table-empty-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.table-empty-text {
  font-size: 13px;
  line-height: 1.45;
}

.admin-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 18px;
  margin-top: 18px;
}

.value-wrap {
  white-space: normal;
  word-break: break-word;
  text-align: left;
}

@media (max-width: 1100px) {
  .toolbar-admin {
    grid-template-columns: 1fr 1fr;
  }

  .admin-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .toolbar-admin {
    grid-template-columns: 1fr;
  }

  .admin-page-head {
    flex-direction: column;
  }

  .table-header-bar {
    padding: 16px 16px 0;
  }
}

.submission-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 18px;
  align-items: start;
}

.submission-main-column,
.submission-side-column {
  min-width: 0;
}

.submission-video-card {
  margin-bottom: 18px;
}

.submission-video-box {
  max-width: 760px;
  margin-top: 12px;
  border-radius: 18px;
  overflow: hidden;
}

.submission-video-box video {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  display: block;
  background: #000;
}

.submission-overview-card {
  padding-top: 18px;
}

.detail-table {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #fcfcfd;
}

.detail-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.detail-row:last-child {
  border-bottom: 0;
}

.detail-row-top {
  align-items: start;
}

.detail-key {
  font-size: 13px;
  font-weight: 800;
  color: #475467;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.detail-value {
  font-size: 15px;
  color: var(--text);
  font-weight: 600;
  text-align: left;
  min-width: 0;
}

.detail-value-wrap {
  white-space: normal;
  word-break: break-word;
  line-height: 1.5;
}

.review-action-card {
  position: sticky;
  top: 24px;
}

.review-action-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 18px;
}

.review-action-icon {
  font-family: "Material Symbols Outlined";
  font-size: 28px;
  line-height: 1;
  color: var(--brand-red);
  margin-bottom: 8px;
}

.review-action-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text);
}

@media (max-width: 1200px) {
  .submission-page-grid {
    grid-template-columns: 1fr 360px;
  }

  .submission-video-box video {
    max-height: 360px;
  }
}

@media (max-width: 960px) {
  .submission-page-grid {
    grid-template-columns: 1fr;
  }

  .review-action-card {
    position: static;
    top: auto;
  }

  .submission-video-box {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .detail-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px;
  }

  .detail-key {
    font-size: 12px;
  }

  .review-action-title {
    font-size: 22px;
  }

  .submission-video-box video {
    max-height: 280px;
  }
}

.submission-meta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.sort-button {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #344054;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sort-button:hover {
  color: var(--brand-red);
}

.sort-button.active {
  color: var(--brand-red);
}

.sort-indicator {
  font-size: 12px;
  line-height: 1;
}

@media (min-width: 961px) {
  .submission-meta-grid {
    grid-template-columns: 1fr 1fr;
  }

  .submission-meta-grid > .card:last-child {
    grid-column: 1 / -1;
  }
}

/* Submission detail page */

.submission-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 18px;
  align-items: start;
}

.submission-main-column,
.submission-side-column {
  min-width: 0;
}

.submission-video-card {
  margin-bottom: 18px;
}

.submission-video-box {
  max-width: 760px;
  margin-top: 12px;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
}

.submission-video-box video {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  display: block;
  background: #000;
}

.submission-meta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.submission-overview-card {
  padding-top: 18px;
}

/* Detail tables */

.detail-table {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, #fcfcfd 0%, #f8fafc 100%);
}

.detail-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.detail-row:last-child {
  border-bottom: 0;
}

.detail-row-top {
  align-items: start;
}

.detail-key {
  font-size: 13px;
  font-weight: 800;
  color: #475467;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.detail-value {
  font-size: 15px;
  color: var(--text);
  font-weight: 600;
  text-align: left;
  min-width: 0;
}

.detail-value-wrap {
  white-space: normal;
  word-break: break-word;
  line-height: 1.55;
}

/* Review action panel */

.review-action-card {
  position: sticky;
  top: 24px;
  box-shadow: var(--shadow-md);
}

.review-action-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 18px;
}

.review-action-icon {
  font-family: "Material Symbols Outlined";
  font-size: 28px;
  line-height: 1;
  color: var(--brand-red);
  margin-bottom: 8px;
}

.review-action-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* Slight visual differentiation for audit / technical sections */

.submission-meta-grid .card:nth-child(2),
.submission-meta-grid .card:nth-child(3),
.submission-meta-grid .card:nth-child(4) {
  background: #ffffff;
}

.submission-meta-grid .section-label {
  margin-bottom: 0;
}

/* Better pill alignment inside detail values */

.detail-value .status-pill {
  vertical-align: middle;
}

/* Responsive */

@media (min-width: 961px) {
  .submission-meta-grid {
    grid-template-columns: 1fr 1fr;
  }

  .submission-meta-grid > .card:nth-child(3),
  .submission-meta-grid > .card:nth-child(4) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1200px) {
  .submission-page-grid {
    grid-template-columns: 1fr 360px;
  }

  .submission-video-box video {
    max-height: 360px;
  }
}

@media (max-width: 960px) {
  .submission-page-grid {
    grid-template-columns: 1fr;
  }

  .review-action-card {
    position: static;
    top: auto;
  }

  .submission-video-box {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .detail-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px;
  }

  .detail-key {
    font-size: 12px;
  }

  .review-action-title {
    font-size: 22px;
  }

  .submission-video-box video {
    max-height: 280px;
  }
}

.dashboard-brand-mark {
  margin-bottom: 18px;
}

.dashboard-brand-logo {
  height: 42px;
  width: auto;
}

.filter-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.filter-chip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.filter-chip:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.filter-chip.active {
  background: rgba(215, 25, 32, 0.08);
  border-color: rgba(215, 25, 32, 0.34);
  color: var(--brand-red);
}

.toolbar-admin {
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
  align-items: end;
}

.sort-button {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #344054;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sort-button:hover {
  color: var(--brand-red);
}

.sort-button.active {
  color: var(--brand-red);
}

.sort-indicator {
  font-size: 12px;
  line-height: 1;
}

@media (max-width: 1100px) {
  .toolbar-admin {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .toolbar-admin {
    grid-template-columns: 1fr;
  }

  .filter-chip-row {
    gap: 8px;
  }

  .filter-chip {
    padding: 9px 12px;
    font-size: 12px;
  }

  .dashboard-brand-logo {
    height: 38px;
  }
}

.audit-timeline {
  position: relative;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #fcfcfd 0%, #f8fafc 100%);
  padding: 18px 18px 8px 18px;
}

.audit-item {
  position: relative;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 14px;
  padding: 0 0 18px 0;
}

.audit-item:last-child {
  padding-bottom: 6px;
}

.audit-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 22px;
  bottom: -6px;
  width: 2px;
  background: #e4e7ec;
}

.audit-marker {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #ffffff;
  border: 2px solid rgba(215, 25, 32, 0.35);
  box-shadow: 0 0 0 4px rgba(215, 25, 32, 0.06);
  margin-top: 2px;
  z-index: 1;
}

.audit-content {
  min-width: 0;
}

.audit-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.audit-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.4;
}

.audit-time {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  text-align: right;
}

.audit-meta {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.audit-notes {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.55;
  white-space: normal;
  word-break: break-word;
}

.audit-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px 10px;
}

.audit-empty-icon {
  font-family: "Material Symbols Outlined";
  font-size: 30px;
  line-height: 1;
  color: #98a2b3;
  margin-bottom: 10px;
}

.audit-empty-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.audit-empty-text {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 640px) {
  .audit-top {
    flex-direction: column;
    gap: 4px;
  }

  .audit-time {
    text-align: left;
    white-space: normal;
  }
}

.details-block {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfcfd;
}

#message.message {
  margin-top: 18px;
}

.choice-card.active {
  transform: translateY(-1px);
}

.choice-card.active .choice-title {
  color: var(--text);
}

.field-optional {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
  margin-left: 4px;
}