:root {
  color-scheme: light;
  --ink: #152033;
  --muted: #687386;
  --subtle: #8c96a8;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-2: #eef4f6;
  --line: #dce3eb;
  --line-strong: #c7d1dd;
  --nav: #14213d;
  --brand: #166a7f;
  --brand-dark: #0f4f60;
  --teal: #1d8c83;
  --green: #16855f;
  --amber: #b86e00;
  --red: #bf4342;
  --purple: #6655a3;
  --gold: #c59a2d;
  --shadow: 0 12px 28px rgba(21, 32, 51, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Sarabun, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  letter-spacing: 0;
  overflow-x: hidden;
}

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

button {
  cursor: pointer;
}

.app-shell {
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  overflow-x: hidden;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: #f8fafc;
  background: var(--nav);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f7c948;
  color: #14213d;
  font-weight: 800;
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.1);
}

.brand-name {
  font-weight: 800;
}

.brand-subtitle,
.scope-box small,
.scope-box span {
  display: block;
  color: #b8c3d4;
  font-size: 12px;
  line-height: 1.45;
}

.nav-list {
  display: grid;
  gap: 6px;
}

.nav-link {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #dce5f3;
  text-align: left;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.nav-link small {
  padding: 2px 6px;
  border-radius: 999px;
  color: #14213d;
  background: #f7c948;
  font-size: 11px;
  font-weight: 800;
}

.scope-box {
  margin-top: auto;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.scope-box strong {
  display: block;
  margin: 6px 0 2px;
}

.workspace {
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  padding: 24px 28px 36px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 28px;
  line-height: 1.15;
}

h2 {
  margin-bottom: 14px;
  font-size: 18px;
}

h3 {
  margin-bottom: 10px;
  font-size: 14px;
}

.topbar-actions {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.select-label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

select,
input,
textarea {
  min-height: 44px;
  border: 1px solid #cfd9e5;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

textarea {
  min-height: 86px;
  resize: vertical;
}

select:focus,
input:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(22, 106, 127, 0.14);
}

.primary-action,
.secondary-action,
.text-action,
.danger-action {
  min-height: 38px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 8px 12px;
  font-weight: 800;
}

.primary-action {
  background: var(--brand);
  color: #fff;
}

.primary-action:hover {
  background: var(--brand-dark);
}

.secondary-action {
  background: #fff;
  border-color: var(--line-strong);
  color: var(--ink);
}

a.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.text-action {
  background: transparent;
  color: var(--brand-dark);
}

.danger-action {
  background: #fff;
  border-color: #e5b7b7;
  color: var(--red);
}

button:disabled,
.primary-action.disabled {
  opacity: .55;
  cursor: not-allowed;
}

.view-root {
  display: grid;
  gap: 22px;
}

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

.metric-card,
.status-card,
.entity-card,
.qa-card,
.report-card,
.audit-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.metric-card {
  padding: 16px;
  min-height: 132px;
  display: grid;
  gap: 8px;
  align-content: start;
}

.metric-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.metric-card strong {
  font-size: 30px;
  line-height: 1;
}

.metric-card em {
  color: var(--green);
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
}

.metric-card.risk em {
  color: var(--red);
}

.metric-card.warning em {
  color: var(--amber);
}

.status-card {
  padding: 13px;
  display: grid;
  gap: 8px;
  min-width: 0;
  align-content: start;
}

.role-card {
  min-height: 104px;
}

.role-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.role-card span {
  min-width: 0;
  color: var(--brand-dark);
  font-weight: 900;
  line-height: 1.15;
}

.role-card strong {
  justify-self: end;
  color: var(--brand);
  font-size: 24px;
  line-height: 1;
}

.role-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.rbac-list {
  display: grid;
  gap: 8px;
}

.rbac-item {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.rbac-title,
.rbac-item > div:not(.rbac-title) {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  min-width: 0;
}

.rbac-title {
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  align-items: center;
}

.rbac-title small,
.rbac-item span {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.rbac-item b {
  color: var(--brand-dark);
  font-size: 12px;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.9fr);
  gap: 20px;
  align-items: start;
  min-width: 0;
}

.section-grid > *,
.section-band,
.entity-card,
.table-wrap,
.view-root {
  min-width: 0;
}

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

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

.section-band {
  display: grid;
  gap: 14px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.section-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.kanban {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.kanban-column {
  min-height: 280px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.kanban-column h3 {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--brand-dark);
}

.work-card {
  display: grid;
  gap: 7px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.work-card b,
.entity-card b,
.qa-card b {
  line-height: 1.3;
}

.work-card span,
.work-card small,
.entity-card span,
.qa-card span,
.muted {
  color: var(--muted);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid transparent;
  white-space: nowrap;
}

.badge.ok {
  color: #075a40;
  background: #dbf5ea;
}

.badge.warn {
  color: #765000;
  background: #fff0c8;
}

.badge.fail {
  color: #8d2524;
  background: #ffe1e1;
}

.badge.info {
  color: #104e63;
  background: #dceff4;
}

.badge.locked {
  color: #493b83;
  background: #e9e5f7;
}

.table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

th,
td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

th {
  color: var(--muted);
  background: #f8fafc;
  font-size: 12px;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.user-table {
  min-width: 0;
  table-layout: fixed;
}

.user-table th,
.user-table td {
  overflow-wrap: anywhere;
}

.user-table th:nth-child(1),
.user-table td:nth-child(1) {
  width: 38%;
}

.user-table th:nth-child(2),
.user-table td:nth-child(2) {
  width: 25%;
}

.user-table th:nth-child(3),
.user-table td:nth-child(3) {
  width: 17%;
}

.user-table th:nth-child(4),
.user-table td:nth-child(4) {
  width: 20%;
}

tbody tr[data-select-user] {
  cursor: pointer;
}

.selected-row {
  background: #edf8fb;
  outline: 1px solid rgba(22, 106, 127, 0.28);
}

.score-cell {
  font-weight: 900;
}

.score-good {
  color: var(--green);
}

.score-warn {
  color: var(--amber);
}

.score-bad {
  color: var(--red);
}

.bar-track {
  width: 100%;
  height: 9px;
  border-radius: 999px;
  background: #e7edf4;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
}

.bar-fill.good {
  background: var(--green);
}

.bar-fill.warn {
  background: var(--amber);
}

.bar-fill.bad {
  background: var(--red);
}

.branch-list,
.entity-list,
.qa-list,
.report-list,
.audit-list {
  display: grid;
  gap: 10px;
}

.entity-card,
.qa-card,
.report-card,
.audit-card {
  padding: 16px;
  display: grid;
  gap: 12px;
  border-radius: 16px;
}

.entity-card.selected,
.qa-card.selected {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(22, 106, 127, 0.12), var(--shadow);
}

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

.field {
  display: grid;
  gap: 6px;
}

.field-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.field input,
.field select,
.field textarea,
.entity-card > select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.field label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.field-empty,
input.field-empty,
select.field-empty,
textarea.field-empty {
  border-color: #f0b64d;
  background: #fff7df;
  box-shadow: inset 0 0 0 1px rgba(240, 182, 77, .2);
}

.required-mark,
.form-error {
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
}

.two-column-form.three-cols {
  grid-template-columns: minmax(260px, 1.4fr) minmax(180px, 1fr) minmax(140px, 0.6fr);
}

.general-info-panel {
  align-content: start;
}

.form-progress-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
  display: grid;
  gap: 10px;
}

.progress-copy {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.progress-copy b {
  color: var(--ink);
}

.smart-actions,
.info-chip-row,
.media-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.info-form-grid {
  align-items: start;
}

.info-field {
  border: 1px solid #edf1f5;
  border-radius: 14px;
  padding: 12px;
  background: #fff;
}

.info-field.missing {
  border-color: #f3c873;
  background: #fffbef;
}

.info-chip {
  min-height: 30px;
  border: 1px solid #cfd9e5;
  border-radius: 999px;
  padding: 5px 10px;
  background: #f7fafc;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
}

.info-chip:hover:not(:disabled) {
  border-color: var(--brand);
  background: #e8f4f6;
}

.full-ish {
  min-width: 260px;
}

.full-span {
  grid-column: 1 / -1;
}

.branch-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.branch-pill,
.choice-pill,
.tab-button {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 8px 10px;
  text-align: left;
  font-weight: 800;
}

.branch-pill.active,
.choice-pill.active,
.tab-button.active {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.data-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.4fr);
  gap: 20px;
  align-items: start;
}

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

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

.data-layout .two-column-form.three-cols {
  grid-template-columns: 1fr;
}

.data-layout .completion-panel {
  grid-template-columns: 1fr;
}

.data-layout .section-band:first-child .entity-card:first-child .button-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric-mini-grid > div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.metric-mini-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.metric-mini-grid b {
  display: block;
  margin-top: 4px;
  font-size: 24px;
}

.button-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.button-grid.fit {
  justify-content: flex-end;
}

.file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.completion-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.completion-panel.ready {
  border-color: #a8dec8;
  background: #effbf5;
}

.completion-panel.blocked {
  border-color: #f3c2c2;
  background: #fff4f4;
}

.alert-box {
  margin-top: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
}

.alert-box.ok {
  color: #075a40;
  background: #dbf5ea;
}

.alert-box.fail {
  color: #8d2524;
  background: #ffe1e1;
}

.alert-box.warn {
  color: #8a5b00;
  background: #fff3cf;
}

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

.question-section {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.question-section summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  color: var(--brand-dark);
  list-style: none;
}

.question-section summary::-webkit-details-marker {
  display: none;
}

.question-stack {
  display: grid;
  gap: 10px;
  padding: 0 14px 14px;
}

.question-summary-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: #ecfdf5;
  color: #0b6b4a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
}

.question-summary-panel.warn {
  background: #fff8e7;
  color: #8a5b00;
  border-color: #f3cf85;
}

.question-summary-panel.danger {
  background: #fff1f1;
  color: #9f2e2d;
  border-color: #e7b2b2;
}

.question-summary-panel b,
.question-summary-panel span {
  display: block;
}

.question-summary-panel span {
  font-size: 12px;
}

.q-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(170px, 0.45fr) minmax(260px, 0.8fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(21, 32, 51, .04);
}

.q-card b {
  display: block;
  margin-top: 8px;
  line-height: 1.35;
}

.q-card small {
  display: block;
  margin-top: 5px;
}

.q-needs-reason {
  border-color: #f0b64d;
  background: #fff9eb;
}

.q-missing-reason {
  border-color: #e6aaaa;
  background: #fff1f1;
}

.q-criteria,
.q-help {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.q-criteria {
  color: var(--brand-dark);
  background: #e8f4f6;
  border-radius: 8px;
  padding: 6px 8px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.template-grid {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.question-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 92px 110px;
  gap: 10px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

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

.code {
  display: inline-flex;
  justify-content: center;
  min-width: 58px;
  padding: 3px 7px;
  border-radius: 6px;
  color: var(--brand-dark);
  background: #dceff4;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
}

.schema-box,
.log-box {
  max-height: 360px;
  overflow: auto;
  padding: 13px;
  border-radius: 8px;
  background: #121827;
  color: #dbeafe;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.shopper-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.shopper-layout > .section-band,
.data-layout > .section-band {
  min-width: 0;
}

.shopper-layout > .section-band:first-child {
  grid-template-columns: minmax(260px, 1fr) minmax(280px, 1fr) minmax(240px, 0.8fr);
  align-items: stretch;
}

.map-card {
  position: relative;
  min-height: 270px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(22, 106, 127, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(22, 106, 127, 0.08) 1px, transparent 1px),
    #f8fbfc;
  background-size: 36px 36px;
}

.map-road {
  position: absolute;
  height: 34px;
  background: rgba(197, 154, 45, 0.25);
  border-top: 1px solid rgba(197, 154, 45, 0.5);
  border-bottom: 1px solid rgba(197, 154, 45, 0.5);
  transform: rotate(-14deg);
}

.map-road.one {
  left: -30px;
  right: -80px;
  top: 86px;
}

.map-road.two {
  left: -80px;
  right: -30px;
  bottom: 72px;
  transform: rotate(11deg);
}

.pin {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 2px solid #fff;
  box-shadow: 0 3px 10px rgba(21, 32, 51, 0.25);
}

.pin::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  top: 4px;
  left: 4px;
  border-radius: 50%;
  background: #fff;
}

.pin.branch {
  left: 52%;
  top: 40%;
  background: var(--green);
}

.pin.shopper {
  left: 58%;
  top: 45%;
  background: var(--brand);
}

.map-radius {
  position: absolute;
  left: calc(52% - 48px);
  top: calc(40% - 48px);
  width: 112px;
  height: 112px;
  border: 2px dashed rgba(22, 106, 127, 0.5);
  border-radius: 50%;
  background: rgba(22, 106, 127, 0.08);
}

.survey-question {
  display: grid;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.survey-question:last-child {
  border-bottom: 0;
}

.survey-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.media-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.evidence-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #e7edf4;
}

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

.media-placeholder {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #e7edf4;
  color: var(--muted);
  text-align: center;
  word-break: break-word;
}

.evidence-workflow {
  display: grid;
  gap: 14px;
}

.evidence-panel {
  align-content: start;
}

.evidence-stats.compact {
  display: flex;
  flex-wrap: wrap;
  min-width: 280px;
}

.drop-zone {
  border: 2px dashed #b7c8d4;
  border-radius: 14px;
  padding: 18px;
  background: #f8fbfd;
  color: var(--brand-dark);
  text-align: center;
  display: grid;
  gap: 4px;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.drop-zone:hover,
.drop-zone.drag {
  border-color: var(--brand);
  background: #e8f4f6;
}

.drop-zone b {
  font-size: 16px;
}

.drop-zone span {
  color: var(--muted);
  font-size: 13px;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}

.image-tile {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  background: #fff;
  display: grid;
  gap: 8px;
}

.image-tile .evidence-img,
.image-tile .media-placeholder {
  height: 150px;
  min-height: 150px;
  width: 100%;
  font-size: 13px;
  line-height: 1.35;
  overflow: hidden;
}

.media-caption {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.media-caption b,
.media-caption small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-caption b {
  color: var(--navy);
  font-size: 13px;
}

.media-caption small {
  color: var(--muted);
  font-size: 11px;
}

.image-order-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(20, 33, 61, .9);
  color: #fff;
  font-weight: 900;
  font-size: 13px;
}

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

.audio-list {
  display: grid;
  gap: 12px;
}

.audio-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: #fff;
  display: grid;
  gap: 12px;
}

.audio-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.audio-card-head span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.audio-card audio {
  width: 100%;
}

.audio-card .media-placeholder {
  aspect-ratio: auto;
  min-height: 88px;
  font-size: 14px;
}

.audio-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.audio-check {
  border-radius: 12px;
  padding: 10px;
  display: grid;
  gap: 4px;
  font-size: 12px;
  border: 1px solid var(--line);
  background: #f7fafc;
}

.audio-check.pass {
  color: #075a40;
  background: #e2f8ee;
  border-color: #b9e8d3;
}

.audio-check.warn {
  color: #8a5b00;
  background: #fff4d5;
  border-color: #f0d18b;
}

.audio-check.fail {
  color: #8d2524;
  background: #ffe5e5;
  border-color: #efbbbb;
}

.qa-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

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

.check-item {
  padding: 11px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}

.check-item strong {
  display: block;
  margin-bottom: 4px;
}

.report-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.6fr);
  gap: 18px;
  align-items: start;
}

.reports-page {
  display: grid;
  gap: 16px;
}

.reports-hero {
  border: 1px solid rgba(12, 35, 64, 0.12);
  border-radius: 8px;
  padding: 18px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(12, 35, 64, 0.96), rgba(22, 106, 127, 0.92)),
    var(--nav);
  color: #fff;
  box-shadow: 0 16px 40px rgba(12, 35, 64, 0.12);
}

.reports-hero h2 {
  margin: 4px 0 4px;
  color: #fff;
  font-size: 24px;
}

.reports-hero p {
  margin: 0;
  color: #cdd9e8;
}

.reports-hero .eyebrow {
  color: #f4d47e;
}

.reports-hero-actions,
.report-actions,
.report-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.reports-hero-actions .secondary-action {
  border-color: rgba(255, 255, 255, 0.26);
}

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

.report-kpi {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
  box-shadow: var(--shadow);
  display: grid;
  gap: 5px;
  min-height: 112px;
}

.report-kpi span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.report-kpi strong {
  font-size: 30px;
  line-height: 1;
  color: var(--ink);
}

.report-kpi small {
  color: var(--muted);
  font-weight: 700;
}

.client-dashboard-panel,
.report-results-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-title {
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.panel-title h2 {
  margin: 0;
  color: var(--ink);
}

.panel-title p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.soft-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 5px 10px;
  background: #eef7f5;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.client-score {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.client-score.refined {
  grid-template-columns: 210px minmax(0, 1fr);
  padding: 18px;
}

.score-ring {
  width: 154px;
  height: 154px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 54%, transparent 55%),
    conic-gradient(var(--green) 0 86%, #dce3eb 86% 100%);
}

.client-score.refined .score-ring {
  width: 178px;
  height: 178px;
  justify-self: center;
  box-shadow: inset 0 0 0 1px rgba(21, 32, 51, 0.04);
}

.score-ring strong {
  font-size: 30px;
}

.score-ring span {
  margin-top: -6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.client-score.refined .score-ring strong {
  font-size: 34px;
}

.report-section-grid {
  display: grid;
  gap: 12px;
}

.report-section-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 66px;
  gap: 12px;
  align-items: center;
}

.report-section-row span {
  color: var(--muted);
  font-size: 18px;
  font-weight: 900;
}

.report-section-row b {
  color: var(--ink);
  font-size: 18px;
  text-align: right;
}

.report-results-card .panel-title {
  background: #fbfcfe;
}

.report-table-wrap {
  border: 0;
  border-radius: 0;
}

.report-modern-table {
  min-width: 760px;
}

.report-modern-table th {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .5px;
  text-transform: uppercase;
  background: #f7f9fc;
}

.report-modern-table td {
  vertical-align: middle;
}

.report-modern-table td:nth-child(2) strong,
.version-main b,
.queue-card b {
  display: block;
  color: var(--ink);
}

.rank-pill {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #eef4f6;
  color: var(--brand-dark);
  font-weight: 900;
}

.mini-section-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(48px, 1fr));
  gap: 6px;
}

.mini-section-strip span {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 6px;
  display: grid;
  gap: 2px;
  background: #fff;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.mini-section-strip b {
  color: var(--brand-dark);
  font-size: 11px;
}

.report-actions button,
.report-card-actions button {
  min-height: 34px;
  padding: 7px 10px;
  color: var(--brand-dark);
  font-weight: 900;
}

.report-actions button {
  padding-inline: 8px;
}

.reports-sidebar {
  display: grid;
  gap: 18px;
}

.report-side-panel {
  display: grid;
  gap: 12px;
}

.report-side-panel > .panel-title {
  padding: 0;
  border-bottom: 0;
}

.version-card,
.queue-card,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 13px;
}

.version-card {
  display: grid;
  gap: 10px;
}

.version-main,
.version-score,
.queue-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.version-card > span,
.queue-card span,
.empty-state span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.version-score strong,
.queue-card strong {
  font-size: 22px;
  white-space: nowrap;
}

.queue-card {
  align-items: center;
}

.queue-card > div {
  min-width: 0;
}

.empty-state {
  display: grid;
  gap: 5px;
  color: var(--muted);
}

.empty-state b {
  color: var(--ink);
}

.empty-state.compact {
  box-shadow: none;
  border-style: dashed;
  text-align: center;
}

.trend-grid {
  display: grid;
  gap: 11px;
}

.trend-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 48px;
  gap: 10px;
  align-items: center;
}

.endpoint-grid {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) 140px minmax(170px, 0.9fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.endpoint-grid > div {
  padding: 10px 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.endpoint-grid > div:nth-child(4n) {
  border-right: 0;
}

.endpoint-grid .head {
  background: #f8fafc;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  max-width: 360px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #121827;
  color: #fff;
  box-shadow: 0 18px 46px rgba(21, 32, 51, 0.28);
  transform: translateY(120%);
  opacity: 0;
  transition: 0.22s ease;
  z-index: 20;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 1180px) {
  .metric-grid,
  .report-kpi-grid,
  .section-grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-grid,
  .section-grid.equal,
  .template-grid,
  .data-layout,
  .shopper-layout,
  .shopper-layout > .section-band:first-child,
  .qa-layout,
  .report-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

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

  .workspace {
    padding: 18px 14px 28px;
  }

  .topbar {
    align-items: start;
    flex-direction: column;
  }

  .topbar-actions {
    width: 100%;
    justify-content: stretch;
  }

  .topbar-actions > * {
    flex: 1 1 160px;
  }

  .metric-grid,
  .report-kpi-grid,
  .metric-mini-grid,
  .section-grid.three,
  .branch-picker,
  .security-list,
  .verify-actions,
  .two-column-form,
  .two-column-form.three-cols,
  .media-strip,
  .check-grid,
  .client-score {
    grid-template-columns: 1fr;
  }

  .completion-panel,
  .q-card {
    grid-template-columns: 1fr;
  }

  .reports-hero,
  .panel-title,
  .version-score,
  .queue-card {
    align-items: stretch;
    flex-direction: column;
  }

  .reports-hero-actions,
  .report-card-actions,
  .report-actions {
    width: 100%;
  }

  .reports-hero-actions button,
  .report-card-actions button,
  .report-actions button {
    flex: 1 1 120px;
  }

  .client-score.refined {
    grid-template-columns: 1fr;
  }

  .mini-section-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .question-row {
    grid-template-columns: 1fr;
  }

  table {
    min-width: 720px;
  }

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

  .endpoint-grid > div {
    border-right: 0;
  }
}

.auth-gate {
  min-height: calc(100vh - 160px);
  display: grid;
  place-items: center;
}

.auth-card {
  width: min(560px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(15, 35, 64, 0.12);
  padding: 28px;
  display: grid;
  gap: 18px;
}

.auth-card.verify-card {
  border-top: 5px solid var(--gold);
}

.brand-mark.large {
  width: 64px;
  height: 64px;
  font-size: 24px;
}

.security-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.security-list div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #f8fafc;
}

.security-list b,
.security-list span {
  display: block;
}

.security-list b {
  color: var(--brand-dark);
  font-size: 12px;
}

.security-list span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.verify-actions {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  gap: 10px;
}

.login-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.login-hints span,
.media-requirement-grid span,
.info-template-grid span {
  border: 1px solid var(--line);
  background: #f7fafc;
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 12px;
}

.company-strip,
.ops-hero,
.shopper-hero {
  background: linear-gradient(135deg, #10213f 0%, #166a7f 100%);
  color: #fff;
  border-radius: 10px;
  padding: 18px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.company-strip {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  margin-bottom: 14px;
}

.company-strip-main {
  min-width: 0;
}

.company-strip-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.company-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.company-actions .secondary-action,
.company-actions .danger-action {
  padding: 8px 12px;
  min-height: 36px;
}

.company-strip span,
.company-strip small,
.ops-hero p,
.shopper-hero p {
  display: block;
  color: rgba(255,255,255,.74);
}

.company-strip span,
.company-strip small {
  color: var(--muted);
}

.branch-tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  min-width: 0;
}

#campaign-branch-picker {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.branch-tools input,
.branch-tools select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  font: inherit;
}

.branch-tools button {
  min-width: 0;
  width: 100%;
  padding-inline: 12px;
  white-space: normal;
  line-height: 1.15;
}

.branch-selection-summary {
  color: var(--muted);
  font-size: 13px;
  margin: 8px 0;
}

.branch-table-picker {
  max-height: 430px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
  padding: 8px;
  display: grid;
  gap: 8px;
}

.branch-row-pick {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  min-height: 58px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
}

.branch-row-pick small {
  display: block;
  color: var(--muted);
  margin-top: 2px;
}

.branch-row-pick em {
  font-style: normal;
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
}

.branch-row-pick.active {
  border-color: var(--teal);
  background: #e8f7fb;
}

.branch-row-pick.active em {
  color: var(--teal);
}

.info-template-grid,
.media-requirement-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ops-hero {
  grid-column: 1 / -1;
}

.ops-hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(74px, 1fr));
  gap: 10px;
}

.ops-hero-metrics span {
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 10px;
  padding: 10px;
  font-size: 24px;
  font-weight: 900;
}

.ops-hero-metrics small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,.7);
}

.shopper-mobile-shell {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.shopper-job-panel,
.shopper-workbench {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
}

.shopper-job-list {
  display: grid;
  gap: 10px;
  max-height: 70vh;
  overflow: auto;
}

.shopper-job {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  text-align: left;
  display: grid;
  gap: 5px;
  cursor: pointer;
}

.shopper-job span {
  color: var(--muted);
  font-size: 12px;
}

.shopper-job.active {
  border-color: var(--teal);
  background: #eef9fb;
}

.shopper-hero {
  align-items: stretch;
  margin-bottom: 14px;
}

.shopper-hero .eyebrow {
  color: #b8eef8;
}

.shopper-score-card {
  min-width: 150px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 10px;
  padding: 14px;
  display: grid;
  place-items: center;
}

.shopper-score-card strong {
  font-size: 30px;
}

.shopper-quick-grid,
.evidence-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.shopper-quick-grid div,
.evidence-stats span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 10px;
}

.shopper-quick-grid span,
.evidence-stats span {
  color: var(--muted);
  font-size: 12px;
}

.shopper-quick-grid b,
.evidence-stats b {
  display: block;
  color: var(--ink);
  font-size: 22px;
  margin-top: 2px;
}

.shopper-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 10px;
}

.media-tile audio {
  width: 100%;
  min-height: 42px;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.campaign-inline-actions {
  margin-top: 9px;
}

.table-actions button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 7px;
  padding: 6px 8px;
  color: var(--teal);
  font-weight: 800;
  cursor: pointer;
}

.table-actions button.danger-action {
  border-color: #e5b7b7;
  color: var(--red);
}

.report-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 23, 42, .68);
  display: none;
}

.report-modal.open {
  display: block;
}

.report-modal-shell {
  position: absolute;
  inset: 24px;
  background: #eef2f7;
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
}

.report-modal-toolbar {
  background: #10213f;
  color: #fff;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.report-modal iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.rfa-action {
  border-color: #f0cc7a !important;
  background: #fff8e4 !important;
  color: #8a6200 !important;
}

.rfa-modal-shell {
  grid-template-rows: auto 1fr;
  background: #edf3fb;
}

.rfa-modal-body {
  overflow: auto;
  padding: 28px;
}

.rfa-form-card {
  max-width: 980px;
  margin: 0 auto;
  background: #f7f9ff;
  border: 1px solid #b7c2df;
  border-top: 4px solid #d04a43;
  box-shadow: 0 10px 30px rgba(10, 20, 50, .14);
}

.rfa-status-line {
  background: #f4f6ff;
  border-bottom: 1px solid #c8d0e8;
  color: #13223a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .6px;
  padding: 8px 12px;
  text-transform: uppercase;
}

.rfa-status-line::before {
  content: "Open new RFA";
}

.rfa-row {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  border-bottom: 1px solid #c8d0e8;
}

.rfa-row label {
  background: #d8def2;
  color: #21304d;
  font-weight: 800;
  padding: 14px 16px;
  text-transform: uppercase;
}

.rfa-row > input,
.rfa-row > select,
.rfa-row > div {
  min-width: 0;
  padding: 10px 12px;
}

.rfa-row input,
.rfa-row select,
.rfa-row textarea {
  width: 100%;
  border: 1px solid #bfc9df;
  border-radius: 4px;
  background: #fff;
  color: var(--navy);
  font: inherit;
  padding: 10px 12px;
}

.rfa-row textarea {
  min-height: 128px;
  resize: vertical;
}

.rfa-row small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.rfa-recipient-list {
  display: grid;
  gap: 8px;
}

.rfa-recipient-list label {
  background: transparent;
  padding: 0;
  color: var(--navy);
  text-transform: none;
  font-weight: 700;
}

.rfa-actions {
  padding: 12px;
  background: #eef2fb;
}

.rfa-actions .primary-action {
  min-width: 120px;
}

@media (max-width: 980px) {
  .branch-tools,
  .shopper-mobile-shell,
  .company-strip,
  .ops-hero,
  .shopper-hero {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .company-strip-side {
    align-items: stretch;
  }

  .company-actions {
    justify-content: flex-start;
  }

  .shopper-job-panel {
    position: static;
  }

  .shopper-job-list {
    max-height: 260px;
  }

  .shopper-quick-grid,
  .evidence-stats,
  .image-grid,
  .audio-check-grid,
  .readiness-grid,
  .ops-hero-metrics,
  .info-template-grid,
  .media-requirement-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .auth-card {
    padding: 18px;
  }

  .user-table,
  .user-table tbody,
  .user-table tr,
  .user-table td {
    display: block;
    width: 100%;
  }

  .user-table th,
  .user-table td {
    width: 100%;
  }

  .user-table th:nth-child(n),
  .user-table td:nth-child(n) {
    width: 100%;
  }

  .user-table thead {
    display: none;
  }

  .user-table tr {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
  }

  .user-table tr:last-child {
    border-bottom: 0;
  }

  .user-table td {
    padding: 3px 0;
    border-bottom: 0;
  }

  .user-table td:first-child {
    margin-bottom: 4px;
  }

  .user-table td:not(:first-child) {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
  }

  .user-table td:nth-child(2)::before {
    content: "Role";
  }

  .user-table td:nth-child(3)::before {
    content: "Status";
  }

  .user-table td:nth-child(4)::before {
    content: "Scope";
  }

  .user-table td:not(:first-child)::before {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
  }

  .shopper-quick-grid,
  .evidence-stats,
  .image-grid,
  .audio-check-grid,
  .readiness-grid,
  .ops-hero-metrics,
  .info-template-grid,
  .media-requirement-grid {
    grid-template-columns: 1fr;
  }

  .progress-copy,
  .audio-card-head {
    flex-direction: column;
    align-items: stretch;
  }

  .report-modal-shell {
    inset: 8px;
  }

  .report-modal-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .rfa-modal-body {
    padding: 10px;
  }

  .rfa-row {
    grid-template-columns: 1fr;
  }

  .rfa-row label {
    padding: 10px 12px;
  }
}
