:root {
  color-scheme: light;
  --ink: #1c1917;
  --ink-soft: #57534e;
  --muted: #78716c;
  --paper: #f7f7f5;
  --surface: #ffffff;
  --surface-soft: #fafaf9;
  --line: #e7e5e4;
  --line-strong: #d6d3d1;
  --teal: #f14b10;
  --teal-dark: #c52b17;
  --navy: #211c1a;
  --navy-light: #342823;
  --gold: #cf9c31;
  --blue: #3e72a3;
  --danger: #b4434d;
  --success: #207b58;
  --shadow: 0 20px 55px rgba(63, 30, 18, 0.11);
  --shadow-soft: 0 8px 28px rgba(63, 30, 18, 0.07);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --gradient: linear-gradient(135deg, #ff2d1a 0%, #ff6a00 58%, #ffe500 100%);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

a {
  color: var(--teal);
  text-decoration: none;
}

button {
  border: 0;
}

.hidden {
  display: none !important;
}

.brand-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 14px;
  background: var(--gradient);
  box-shadow: 0 10px 24px rgba(3, 31, 34, 0.22);
  color: #fff;
  font-size: 21px;
  font-weight: 800;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-lockup strong {
  font-weight: 800;
}

.brand-lockup-light {
  color: #fff;
}

.eyebrow,
.page-eyebrow,
.nav-label {
  display: block;
  margin: 0 0 6px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow-light {
  color: #fff0a3;
}

.muted {
  color: var(--muted);
}

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-content: center;
  justify-items: center;
  background: var(--paper);
}

.loading-screen p {
  margin: 15px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.loading-bar {
  width: 152px;
  height: 4px;
  margin-top: 26px;
  overflow: hidden;
  border-radius: 99px;
  background: #e7e5e4;
}

.loading-bar span {
  display: block;
  width: 45%;
  height: 100%;
  border-radius: inherit;
  background: var(--gradient);
  animation: loading-slide 1.1s ease-in-out infinite alternate;
}

@keyframes loading-slide {
  from { transform: translateX(0); }
  to { transform: translateX(185%); }
}

/* Login */
.login-screen {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(360px, 0.9fr) minmax(480px, 1.1fr);
}

.login-brand-panel {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 52px clamp(38px, 6vw, 88px);
  color: #fff;
  background: var(--gradient);
}

.login-brand-panel::before,
.login-brand-panel::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
}

.login-brand-panel::before {
  width: 540px;
  height: 540px;
  right: -330px;
  top: -100px;
}

.login-brand-panel::after {
  width: 380px;
  height: 380px;
  left: -245px;
  bottom: 40px;
}

.login-brand-copy {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.login-brand-copy h1 {
  max-width: 520px;
  margin: 12px 0 20px;
  font-size: clamp(38px, 4.4vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.login-brand-copy p {
  max-width: 470px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 16px;
  line-height: 1.7;
}

.login-footnote {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
}

.login-form-panel {
  display: grid;
  min-height: 100vh;
  padding: 48px;
  place-items: center;
  background: #fbfcfa;
}

.login-card {
  width: min(100%, 430px);
}

.mobile-brand {
  display: none;
}

.login-card h2 {
  margin: 4px 0 8px;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.login-card > p {
  margin: 0 0 30px;
}

.form-stack {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.field > span,
.field > label {
  color: #44403c;
  font-size: 12px;
  font-weight: 800;
}

.field small,
.check-field small {
  color: var(--muted);
  font-size: 11px;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  outline: 0;
  color: var(--ink);
  background: #fff;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

input,
select {
  min-height: 46px;
  padding: 0 13px;
}

textarea {
  padding: 12px 13px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #ff6a00;
  box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.12);
}

input::placeholder,
textarea::placeholder {
  color: #9ca9aa;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 62px;
}

.text-button {
  cursor: pointer;
  padding: 0;
  color: var(--teal);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
}

.form-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: -5px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 0 17px;
  font-weight: 800;
  transition: transform 120ms ease, box-shadow 120ms ease, opacity 120ms ease, background 120ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.button-primary {
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 9px 22px rgba(255, 78, 15, 0.2);
}

.button-secondary {
  border-color: var(--line-strong);
  color: #44403c;
  background: #fff;
}

.button-light {
  color: var(--navy);
  background: #fff;
}

.button-danger {
  border-color: #f0cfd2;
  color: var(--danger);
  background: #fff5f5;
}

.button-wide {
  width: 100%;
}

.button-compact {
  min-height: 38px;
  padding-inline: 13px;
  font-size: 12px;
}

.button svg {
  width: 19px;
  height: 19px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0;
  color: #9aa7a7;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.divider::before,
.divider::after {
  height: 1px;
  flex: 1;
  content: "";
  background: var(--line);
}

.message {
  margin-top: 18px;
  border: 1px solid #edd7b9;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: #775117;
  background: #fff9ee;
  font-size: 12px;
  font-weight: 700;
}

.message.error {
  border-color: #efcdd0;
  color: #903642;
  background: #fff5f5;
}

.message.success {
  border-color: #c7e4d8;
  color: #176343;
  background: #f2fbf7;
}

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

.sidebar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  height: 100vh;
  min-height: 620px;
  flex-direction: column;
  padding: 25px 17px 18px;
  color: #fff;
  background: linear-gradient(rgba(33, 20, 18, 0.3), rgba(33, 20, 18, 0.42)), var(--gradient);
}

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 7px;
}

.sidebar-close {
  display: none !important;
}

.nav-list {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 5px;
  margin-top: 42px;
}

.nav-label {
  margin: 0 12px 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 9px;
}

.nav-label-spaced {
  margin-top: 26px;
}

.nav-link {
  display: grid;
  min-height: 48px;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  padding: 0 13px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 700;
  transition: color 150ms ease, background 150ms ease;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
}

.nav-link.active {
  color: #fff;
  background: rgba(33, 20, 18, 0.28);
  box-shadow: inset 3px 0 #ffe500;
}

.nav-link-disabled {
  cursor: default;
  opacity: 0.54;
}

.nav-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  color: #fff5dc;
  background: rgba(33, 20, 18, 0.14);
  font-size: 16px;
}

.nav-count,
.soon-chip {
  display: inline-grid;
  min-width: 24px;
  height: 22px;
  place-items: center;
  border-radius: 99px;
  padding: 0 7px;
  color: #fff5dc;
  background: rgba(33, 20, 18, 0.18);
  font-size: 9px;
  font-weight: 800;
}

.soon-chip {
  color: rgba(255, 255, 255, 0.68);
}

.sidebar-profile {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 19px 5px 2px;
}

.avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: #fff;
  background: var(--gradient);
  font-weight: 800;
}

.sidebar-profile-copy {
  min-width: 0;
}

.sidebar-profile-copy strong,
.sidebar-profile-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-profile-copy strong {
  font-size: 11px;
}

.sidebar-profile-copy span {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 9px;
}

.icon-button {
  display: inline-grid;
  width: 36px;
  height: 36px;
  cursor: pointer;
  place-items: center;
  border-radius: 10px;
  color: var(--ink-soft);
  background: transparent;
  font-size: 22px;
}

.icon-button:hover {
  background: rgba(255, 106, 0, 0.09);
}

.icon-button-dark {
  color: rgba(255, 255, 255, 0.82);
}

.workspace {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  padding: 12px clamp(22px, 3vw, 44px);
  background: rgba(247, 247, 245, 0.92);
  backdrop-filter: blur(15px);
}

.topbar-left,
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.page-eyebrow {
  margin-bottom: 1px;
  color: var(--muted);
  font-size: 8px;
}

.topbar h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.menu-button {
  display: none;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #cce0d8;
  border-radius: 99px;
  padding: 7px 11px;
  color: #3d6457;
  background: #f6fcf9;
  font-size: 10px;
  font-weight: 800;
}

.live-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34a173;
  box-shadow: 0 0 0 4px rgba(52, 161, 115, 0.12);
}

.content {
  max-width: 1520px;
  margin: 0 auto;
  padding: 32px clamp(22px, 3vw, 44px) 60px;
}

.view {
  animation: view-in 180ms ease;
}

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

.welcome-card {
  position: relative;
  display: flex;
  min-height: 196px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 34px 38px;
  color: #fff;
  background: var(--gradient);
  box-shadow: var(--shadow);
}

.welcome-card::after {
  position: absolute;
  width: 300px;
  height: 300px;
  right: -90px;
  top: -180px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
}

.welcome-card > * {
  position: relative;
  z-index: 1;
}

.welcome-card h2 {
  margin: 8px 0 7px;
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -0.045em;
}

.welcome-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 22px 0;
}

.metric-grid-small {
  grid-template-columns: repeat(2, minmax(0, 300px));
}

#dashboardView .metric-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.metric-card {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.metric-icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border-radius: 15px;
  font-size: 21px;
}

.metric-icon-teal { color: #fff; background: var(--gradient); }
.metric-icon-gold { color: #9a6b10; background: #fff5d9; }
.metric-icon-blue { color: #386c99; background: #ebf3fb; }

.metric-card p,
.metric-card strong,
.metric-card span {
  display: block;
  margin: 0;
}

.metric-card p {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.metric-card strong {
  margin: 2px 0;
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.metric-card span:not(.metric-icon) {
  overflow: hidden;
  color: #869395;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
}

.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 20px 22px 17px;
}

.panel-heading h2 {
  margin: 0;
  font-size: 17px;
  letter-spacing: -0.03em;
}

.panel-heading a {
  font-size: 11px;
  font-weight: 800;
}

.quick-actions {
  padding: 9px;
}

.quick-action {
  display: grid;
  width: 100%;
  min-height: 67px;
  grid-template-columns: 38px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  border-radius: 12px;
  padding: 9px 11px;
  text-align: left;
  color: var(--ink);
  background: transparent;
}

.quick-action:hover {
  background: var(--surface-soft);
}

.quick-action > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  color: var(--teal);
  background: #fff2e8;
  font-size: 18px;
}

.quick-action strong,
.quick-action small {
  display: block;
}

.quick-action strong {
  font-size: 12px;
}

.quick-action small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.quick-action b {
  color: #93a3a3;
  font-size: 23px;
  font-weight: 400;
}

.compact-list {
  min-height: 218px;
  padding: 8px 20px;
}

.compact-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #edf1ef;
  padding: 12px 0;
}

.compact-row:last-child {
  border-bottom: 0;
}

.compact-date {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 11px;
  color: var(--teal-dark);
  background: #fff2e8;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}

.compact-row strong,
.compact-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-row strong { font-size: 11px; }
.compact-row small { margin-top: 3px; color: var(--muted); font-size: 9px; }

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 3px 0 5px;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.045em;
}

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

.data-panel {
  overflow: hidden;
}

.data-toolbar {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 13px 18px;
}

.tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
}

.tab {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  border-radius: 10px;
  padding: 0 12px;
  white-space: nowrap;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 800;
}

.tab span {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 99px;
  padding: 0 6px;
  background: #edf1ef;
  font-size: 9px;
}

.tab.active {
  color: #fff;
  background: var(--gradient);
}

.tab.active span {
  color: var(--navy);
  background: #fff;
}

.search-field {
  display: flex;
  width: min(100%, 280px);
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  padding: 0 11px;
  color: var(--muted);
  background: #fff;
}

.search-field input {
  min-height: 40px;
  border: 0;
  padding: 0;
  box-shadow: none;
  background: transparent;
  font-size: 11px;
}

.table-wrap {
  min-height: 310px;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.data-table th {
  height: 43px;
  padding: 0 16px;
  color: #7b8c8e;
  background: #fafbf9;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
}

.data-table td {
  height: 68px;
  border-top: 1px solid #edf1ef;
  padding: 10px 16px;
  vertical-align: middle;
  font-size: 11px;
}

.data-table tr:hover td {
  background: #fbfcfa;
}

.cell-title,
.cell-subtitle {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cell-title { font-weight: 800; }
.cell-subtitle { margin-top: 3px; color: var(--muted); font-size: 9px; }

.status-chip {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  border-radius: 99px;
  padding: 0 9px;
  font-size: 9px;
  font-weight: 800;
  text-transform: capitalize;
}

.status-approved,
.status-subscribed { color: #19704d; background: #e8f7ef; }
.status-draft,
.status-pending { color: #866017; background: #fff4d9; }
.status-archived { color: #687477; background: #edf1f0; }
.status-rejected { color: #9c3b47; background: #fff0f1; }
.status-duplicate { color: #71568c; background: #f3edfa; }
.status-update { color: #9a4f19; background: #fff0df; }
.status-owner { color: #386c99; background: #ebf3fb; }

.row-action {
  cursor: pointer;
  border-radius: 8px;
  padding: 7px 10px;
  color: var(--teal);
  background: transparent;
  font-size: 10px;
  font-weight: 800;
}

.row-action:hover {
  background: #fff2e8;
}

.empty-state {
  display: grid;
  min-height: 300px;
  place-content: center;
  justify-items: center;
  padding: 30px;
  color: var(--muted);
  text-align: center;
}

.empty-state.compact {
  min-height: 200px;
}

.empty-state-icon {
  display: grid;
  width: 50px;
  height: 50px;
  margin-bottom: 12px;
  place-items: center;
  border-radius: 16px;
  color: var(--teal);
  background: #fff2e8;
  font-size: 23px;
}

.empty-state h3,
.empty-state p {
  margin: 0;
}

.empty-state h3 {
  color: var(--ink);
  font-size: 14px;
}

.empty-state p {
  margin-top: 5px;
  font-size: 11px;
}

.waitlist-toolbar > div:first-child {
  display: flex;
  flex-direction: column;
}

.toolbar-note {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

/* Verification workspace */
.verification-kind-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 14px;
  background: var(--surface-soft);
}

.verification-kind-tab {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 12px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px 16px;
  text-align: left;
  color: var(--ink);
  background: var(--surface);
  transition: 150ms ease;
}

.verification-kind-tab:hover {
  transform: translateY(-1px);
  border-color: #ffb27b;
}

.verification-kind-tab.active {
  border-color: transparent;
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 12px 25px rgba(241, 75, 16, 0.18);
}

.verification-kind-tab span {
  font-size: 13px;
  font-weight: 800;
}

.verification-kind-tab b {
  display: inline-grid;
  min-width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 99px;
  padding: 0 7px;
  color: var(--teal-dark);
  background: #fff2e8;
  font-size: 10px;
}

.verification-kind-tab.active b {
  color: var(--ink);
  background: #fff;
}

.verification-kind-tab small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 9px;
}

.verification-kind-tab.active small {
  color: rgba(255, 255, 255, 0.78);
}

.verification-toolbar {
  min-height: 82px;
}

.verification-filters {
  display: flex;
  align-items: flex-end;
  gap: 13px;
}

.compact-field {
  min-width: 220px;
  gap: 4px;
}

.compact-field select {
  min-height: 39px;
  padding: 0 34px 0 11px;
  font-size: 10px;
}

.verification-table th:last-child,
.verification-table td:last-child {
  width: 88px;
  text-align: right;
}

.verification-dialog {
  width: min(1120px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 28px);
  overflow: hidden;
  border: 0;
  border-radius: 22px;
  padding: 0;
  background: var(--surface);
  box-shadow: 0 30px 90px rgba(28, 25, 23, 0.28);
}

.verification-dialog::backdrop {
  background: rgba(28, 25, 23, 0.68);
  backdrop-filter: blur(3px);
}

.verification-review-shell {
  display: grid;
  max-height: calc(100vh - 28px);
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.verification-dialog-body {
  overflow-y: auto;
  padding: 20px;
  background: var(--paper);
}

.verification-loading {
  display: grid;
  min-height: 320px;
  place-content: center;
  justify-items: center;
  color: var(--muted);
}

.verification-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.verification-detail-card,
.verification-evidence-section,
.verification-notes {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.verification-detail-card h3,
.verification-section-heading h3 {
  margin: 0;
  font-size: 13px;
  letter-spacing: -0.02em;
}

.verification-detail-card dl {
  margin: 11px 0 0;
}

.verification-detail-card dl > div {
  display: grid;
  grid-template-columns: 125px minmax(0, 1fr);
  gap: 12px;
  border-top: 1px solid #f0eeec;
  padding: 8px 0;
}

.verification-detail-card dt {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.verification-detail-card dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 10px;
  font-weight: 700;
}

.verification-callout {
  margin-bottom: 14px;
  border: 1px solid;
  border-radius: 14px;
  padding: 13px 15px;
}

.verification-callout strong,
.verification-callout p {
  display: block;
  margin: 0;
}

.verification-callout strong {
  font-size: 11px;
}

.verification-callout p {
  margin-top: 3px;
  font-size: 10px;
  line-height: 1.55;
}

.verification-callout.info { color: #744114; border-color: #ffd3ad; background: #fff5ec; }
.verification-callout.warning { color: #795616; border-color: #f4d27c; background: #fff9e8; }
.verification-callout.success { color: #176444; border-color: #9fdfc0; background: #eefaf4; }
.verification-callout.danger { color: #8b3440; border-color: #efb6bd; background: #fff3f4; }

.verification-evidence-section {
  margin-bottom: 14px;
}

.verification-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.verification-section-heading p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.verification-evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.verification-evidence {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-soft);
}

.verification-evidence-heading {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 8px 11px;
}

.verification-evidence-heading strong {
  font-size: 10px;
}

.verification-evidence-heading button {
  cursor: pointer;
  color: var(--teal);
  background: transparent;
  font-size: 9px;
  font-weight: 800;
}

.verification-evidence-heading button:disabled {
  cursor: default;
  opacity: 0.45;
}

.verification-evidence-frame {
  display: grid;
  min-height: 230px;
  place-content: center;
  justify-items: center;
  overflow: hidden;
  color: var(--muted);
  background: #f3f1ef;
}

.verification-evidence-frame img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: contain;
  background: #201e1d;
}

.verification-evidence-frame p,
.verification-evidence-missing {
  margin: 8px 0 0;
  padding: 12px;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.verification-notes {
  display: flex;
  margin-top: 0;
}

.verification-notes textarea {
  min-height: 96px;
}

.verification-notes small {
  color: var(--muted);
}

.verification-dialog-footer {
  min-height: 76px;
}

/* Event workspace */
.workspace-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.workspace-tab {
  display: grid;
  min-width: 0;
  min-height: 76px;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 12px;
  text-align: left;
  color: var(--ink);
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.workspace-tab:hover {
  transform: translateY(-1px);
  border-color: #ffc49e;
}

.workspace-tab.active {
  border-color: transparent;
  box-shadow: 0 10px 26px rgba(255, 78, 15, 0.16);
  background: linear-gradient(#fff, #fff) padding-box, var(--gradient) border-box;
}

.workspace-tab-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  color: var(--teal);
  background: #fff2e8;
  font-size: 18px;
}

.workspace-tab.active .workspace-tab-icon {
  color: #fff;
  background: var(--gradient);
}

.workspace-tab strong,
.workspace-tab small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-tab strong { font-size: 11px; }
.workspace-tab small { margin-top: 2px; color: var(--muted); font-size: 9px; }

.workspace-tab b {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 99px;
  padding: 0 6px;
  color: var(--teal-dark);
  background: #fff0e6;
  font-size: 9px;
}

.event-workspace-panel {
  animation: view-in 160ms ease;
}

.workflow-panel {
  padding: 22px;
}

.workflow-panel + .workflow-panel {
  margin-top: 16px;
}

.results-panel {
  min-height: 290px;
}

.workflow-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.workflow-heading > div:first-child {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.workflow-heading h3,
.workflow-heading p {
  margin: 0;
}

.workflow-heading h3 {
  font-size: 15px;
  letter-spacing: -0.025em;
}

.workflow-heading p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.step-number {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: var(--gradient);
  font-size: 13px;
  font-weight: 800;
}

.safe-pill {
  flex: 0 0 auto;
  border: 1px solid #f4d3bd;
  border-radius: 99px;
  padding: 6px 10px;
  color: #9b431f;
  background: #fff8f2;
  font-size: 9px;
  font-weight: 800;
}

.import-filter-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 0.8fr 0.8fr auto;
  align-items: end;
  gap: 12px;
}

.import-filter-grid .field {
  gap: 6px;
}

.import-search-button {
  min-width: 130px;
}

.selection-actions,
.workflow-actions {
  display: flex;
  align-items: center;
  gap: 13px;
}

.selection-actions {
  justify-content: flex-end;
}

.workflow-actions {
  margin-top: 17px;
}

.workflow-actions > span {
  color: var(--muted);
  font-size: 10px;
}

.candidate-list,
.editable-candidate-list,
.suggestion-list {
  display: grid;
  gap: 10px;
}

.candidate-card {
  display: grid;
  min-width: 0;
  grid-template-columns: 28px 82px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 13px;
  background: #fff;
}

.candidate-card:hover {
  border-color: #f1c4a8;
  box-shadow: 0 8px 22px rgba(63, 30, 18, 0.06);
}

.candidate-existing {
  opacity: 0.72;
  background: #fafaf9;
}

.candidate-check,
.candidate-select-label {
  cursor: pointer;
}

.candidate-check input,
.candidate-select-label input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 0;
  accent-color: var(--teal);
}

.candidate-image,
.candidate-image img,
.candidate-image-placeholder {
  width: 82px;
  height: 54px;
  border-radius: 10px;
}

.candidate-image {
  overflow: hidden;
  background: #f3efeb;
}

.candidate-image img {
  display: block;
  object-fit: cover;
}

.candidate-image-placeholder {
  display: grid;
  place-items: center;
  color: var(--teal);
  background: #fff2e8;
  font-size: 20px;
}

.candidate-copy,
.suggestion-main {
  min-width: 0;
}

.candidate-title-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.candidate-title-row h4 {
  overflow: hidden;
  margin: 0;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.candidate-copy > p,
.suggestion-main > p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.candidate-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin-top: 6px;
  color: #8a7770;
  font-size: 9px;
  font-weight: 700;
}

.candidate-meta span + span::before {
  margin-right: 12px;
  content: "·";
  color: #c9b9b2;
}

.candidate-link {
  white-space: nowrap;
  font-size: 9px;
  font-weight: 800;
}

.suggestions-heading {
  margin: 0;
  border-bottom: 1px solid var(--line);
  padding: 20px 22px;
}

.suggestions-toolbar {
  min-height: 62px;
}

.suggestion-list {
  min-height: 310px;
  padding: 14px;
}

.suggestion-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: #fff;
}

.suggestion-note {
  margin-top: 9px;
  border-left: 3px solid #ff9b54;
  padding: 7px 10px;
  color: var(--ink-soft);
  background: #fff9f4;
  font-size: 10px;
}

.suggestion-main > a {
  display: inline-block;
  margin-top: 8px;
  font-size: 9px;
  font-weight: 800;
}

.suggestion-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.text-danger {
  color: var(--danger);
}

.screenshot-input-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.screenshot-dropzone {
  display: grid;
  min-height: 145px;
  cursor: pointer;
  place-content: center;
  justify-items: center;
  border: 1.5px dashed #e1a77f;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  background: #fffaf6;
}

.screenshot-dropzone:hover {
  border-color: #ff6a00;
  background: #fff6ee;
}

.screenshot-dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.dropzone-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 7px;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: var(--gradient);
  font-size: 20px;
}

.screenshot-dropzone strong { font-size: 12px; }
.screenshot-dropzone small { margin-top: 3px; color: var(--muted); font-size: 9px; }

.file-summary {
  display: grid;
  gap: 3px;
  margin-top: 12px;
  border-radius: 11px;
  padding: 10px 12px;
  color: var(--ink-soft);
  background: #f7f5f2;
  font-size: 9px;
}

.file-summary span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analysis-progress {
  margin-top: 15px;
  border: 1px solid #f1d5c3;
  border-radius: 12px;
  padding: 12px;
  background: #fffaf6;
}

.analysis-progress > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 10px;
}

.analysis-progress progress {
  width: 100%;
  height: 7px;
  overflow: hidden;
  border: 0;
  border-radius: 99px;
  background: #f2ddd0;
}

.analysis-progress progress::-webkit-progress-bar { background: #f2ddd0; }
.analysis-progress progress::-webkit-progress-value { background: var(--gradient); }
.analysis-progress progress::-moz-progress-bar { background: #ff6a00; }

.editable-candidate {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: #fff;
}

.editable-candidate-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 15px;
}

.candidate-select-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 800;
}

.editable-candidate-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.editable-candidate-grid .field {
  gap: 5px;
}

.editable-candidate-grid input,
.editable-candidate-grid select {
  min-height: 40px;
  font-size: 10px;
}

.editable-candidate-grid textarea {
  font-size: 10px;
}

.ocr-evidence {
  margin-top: 12px;
  color: var(--muted);
  font-size: 9px;
}

.ocr-evidence summary {
  cursor: pointer;
  color: var(--teal-dark);
  font-weight: 800;
}

.ocr-evidence p {
  margin: 6px 0 0;
}

.mini-spinner {
  width: 28px;
  height: 28px;
  margin-bottom: 11px;
  border: 3px solid #f5d8c5;
  border-top-color: #ff5a10;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

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

.editor-context {
  display: grid;
  gap: 2px;
  margin-bottom: 16px;
  border: 1px solid #f2cfb8;
  border-radius: 12px;
  padding: 12px 14px;
  color: #753a20;
  background: #fff7f1;
  font-size: 10px;
}

.editor-context strong {
  color: var(--teal-dark);
  font-size: 11px;
}

/* Event editor */
.event-dialog {
  width: min(940px, calc(100% - 30px));
  max-height: min(92vh, 980px);
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-xl);
  padding: 0;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 35px 90px rgba(7, 38, 41, 0.25);
}

.event-dialog::backdrop {
  background: rgba(10, 35, 38, 0.6);
  backdrop-filter: blur(4px);
}

.event-editor {
  display: grid;
  max-height: min(92vh, 980px);
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.dialog-header,
.dialog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 25px;
  background: #fff;
}

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

.dialog-header h2 {
  margin: 1px 0 3px;
  font-size: 22px;
  letter-spacing: -0.035em;
}

.dialog-header p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.dialog-body {
  overflow-y: auto;
  padding: 24px;
  background: #faf9f7;
}

.form-section {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 23px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(63, 30, 18, 0.04);
}

.form-section + .form-section {
  margin-top: 16px;
}

.form-section-heading {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.form-section-heading > span {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: var(--gradient);
  font-size: 10px;
  font-weight: 800;
}

.form-section-heading h3,
.form-section-heading p {
  margin: 0;
}

.form-section-heading h3 {
  font-size: 13px;
}

.form-section-heading p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.form-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field-wide {
  grid-column: 1 / -1;
}

.check-field {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 13px;
  background: #fafaf9;
}

.check-field input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 0;
  margin: 1px 0 0;
  accent-color: var(--teal);
}

.check-field strong,
.check-field small {
  display: block;
}

.map-search {
  display: flex;
  gap: 8px;
}

.event-map {
  height: 275px;
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #eeeae6;
}

.location-results {
  display: grid;
  max-height: 180px;
  gap: 5px;
  overflow-y: auto;
  margin-top: 7px;
}

.location-result {
  display: grid;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 11px;
  text-align: left;
  color: var(--ink);
  background: #fff;
}

.location-result:hover {
  border-color: #ff9a52;
  background: #fff8f1;
}

.location-result strong { font-size: 10px; }
.location-result span { margin-top: 2px; color: var(--muted); font-size: 9px; }

.image-preview-wrap {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.image-preview-wrap img {
  width: 180px;
  height: 110px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #edf1ef;
}

.dialog-footer {
  border-top: 1px solid var(--line);
}

.dialog-footer-spacer {
  flex: 1;
}

.toast-region {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1200;
  display: grid;
  width: min(390px, calc(100% - 44px));
  gap: 10px;
}

.toast {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid #cce2d9;
  border-radius: 14px;
  padding: 13px;
  color: #214a3d;
  background: #f4fcf8;
  box-shadow: var(--shadow);
  animation: toast-in 180ms ease;
  font-size: 11px;
  font-weight: 700;
}

.toast.error {
  border-color: #efcfd2;
  color: #873743;
  background: #fff6f6;
}

.toast button {
  cursor: pointer;
  color: inherit;
  background: transparent;
}

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

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  cursor: pointer;
  background: rgba(28, 25, 23, 0.58);
}

@media (max-width: 1040px) {
  .login-screen {
    grid-template-columns: minmax(330px, 0.75fr) minmax(430px, 1.25fr);
  }

  .admin-shell {
    grid-template-columns: 228px minmax(0, 1fr);
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

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

  .workspace-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .import-filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .editable-candidate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .login-screen {
    display: block;
    min-height: 100vh;
    padding: 30px 20px;
    background: #fbfcfa;
  }

  .login-brand-panel {
    display: none;
  }

  .login-form-panel {
    min-height: calc(100vh - 60px);
    padding: 0;
  }

  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 45px;
    font-size: 17px;
  }

  .admin-shell {
    display: block;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 70;
    width: min(290px, 86vw);
    transform: translateX(-105%);
    box-shadow: 20px 0 50px rgba(63, 30, 18, 0.25);
    transition: transform 180ms ease;
  }

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

  .sidebar-close,
  .menu-button {
    display: inline-grid !important;
  }

  .sidebar-close {
    color: #fff;
  }

  .topbar {
    min-height: 72px;
  }

  .topbar-actions .button {
    display: none;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .metric-grid-small {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .welcome-card {
    min-height: 220px;
    align-items: flex-start;
    flex-direction: column;
    padding: 28px;
  }

  .section-heading,
  .data-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .search-field {
    width: 100%;
  }

  .data-table {
    min-width: 720px;
  }

  .workflow-heading,
  .suggestion-card {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .selection-actions,
  .suggestion-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .candidate-card {
    grid-template-columns: 28px 68px minmax(0, 1fr);
  }

  .candidate-image,
  .candidate-image img,
  .candidate-image-placeholder {
    width: 68px;
    height: 50px;
  }

  .candidate-link {
    grid-column: 3;
  }

  .verification-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .verification-toolbar,
  .verification-filters {
    align-items: stretch;
    flex-direction: column;
  }

  .compact-field {
    min-width: 0;
  }

  .verification-detail-grid,
  .verification-evidence-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .topbar,
  .content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .live-pill {
    display: none;
  }

  .welcome-card {
    border-radius: 18px;
  }

  .metric-grid-small {
    grid-template-columns: 1fr;
  }

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

  .workspace-tabs,
  .import-filter-grid,
  .screenshot-input-grid,
  .editable-candidate-grid {
    grid-template-columns: 1fr;
  }

  .workspace-tab {
    min-height: 68px;
  }

  .workflow-panel {
    padding: 16px;
  }

  .workflow-heading > div:first-child {
    align-items: flex-start;
  }

  .safe-pill {
    align-self: flex-start;
  }

  .candidate-card {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .candidate-image {
    display: none;
  }

  .candidate-link {
    grid-column: 2;
  }

  .candidate-title-row,
  .editable-candidate-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .field-wide {
    grid-column: auto;
  }

  .event-dialog {
    width: 100%;
    max-width: none;
    max-height: 100vh;
    margin: 0;
    border-radius: 0;
  }

  .event-editor {
    max-height: 100vh;
  }

  .dialog-header,
  .dialog-footer {
    padding: 15px 16px;
  }

  .dialog-body {
    padding: 13px;
  }

  .form-section {
    gap: 18px;
    padding: 17px;
  }

  .dialog-footer .button {
    padding-inline: 12px;
  }

  .verification-kind-tabs,
  .verification-metric-grid {
    grid-template-columns: 1fr;
  }

  .verification-dialog {
    width: 100%;
    max-height: 100vh;
    margin: 0;
    border-radius: 0;
  }

  .verification-review-shell {
    max-height: 100vh;
  }

  .verification-dialog-body {
    padding: 13px;
  }

  .verification-dialog-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .verification-dialog-footer .dialog-footer-spacer {
    display: none;
  }

  .verification-dialog-footer .button-primary {
    grid-column: 1 / -1;
  }

  .verification-detail-card dl > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .verification-evidence-frame img {
    height: 240px;
  }
}
