@import url("https://fonts.googleapis.com/css2?family=Mulish:wght@400;700;800&family=Roboto:wght@400;500;700&display=swap");

:root {
  color-scheme: light;
  --ink: #222426;
  --muted: #68707a;
  --line: #d8dee6;
  --paper: #ffffff;
  --wash: #f4f7fa;
  --brand: #1e63b0;
  --brand-deep: #174f8d;
  --brand-light: #00a1c8;
  --accent: #1e63b0;
  --accent-deep: #174f8d;
  --success: #16875a;
  --warning: #a96e00;
  --shadow: 0 18px 50px rgba(22, 40, 54, 0.11);
  --soft-shadow: 0 8px 26px rgba(24, 44, 58, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, #eaf2fb 0, var(--wash) 340px),
    var(--wash);
  color: var(--ink);
  font-family: "Roboto", Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

button,
input,
select {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(18px, 5vw, 56px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand,
.topbar nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  color: var(--ink);
  text-decoration: none;
}

.brand-logo {
  width: 162px;
  height: auto;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: "Mulish", Arial, Helvetica, sans-serif;
  font-size: 1rem;
}

.brand small,
.eyebrow,
.status-list dt,
.selected-country small {
  color: var(--muted);
  font-size: 0.82rem;
}

.topbar nav a {
  color: var(--brand-deep);
  font-weight: 700;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
}

.topbar nav a:hover {
  background: #edf4fb;
}

main {
  width: min(1460px, calc(100% - 36px));
  margin: 0 auto;
  padding: 26px 0 56px;
}

.alert {
  position: relative;
  margin-bottom: 14px;
  padding: 14px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
  box-shadow: var(--soft-shadow);
  line-height: 1.35;
}

.alert-success {
  color: #0f5132;
  background: linear-gradient(180deg, #ebfbf2, #dff7eb);
  border-color: rgba(22, 135, 90, 0.4);
  border-left: 6px solid #16875a;
}

.alert-info {
  color: #174f8d;
  background-color: #e8f1ff;
  border-color: rgba(30, 99, 176, 0.35);
}

#portalNotice {
  margin-top: 10px;
  font-size: 1rem;
  letter-spacing: 0.1px;
  animation: notice-in 180ms ease-out;
}

#portalNotice strong {
  font-family: "Mulish", Arial, Helvetica, sans-serif;
  font-weight: 800;
  margin-right: 6px;
}

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

.intro {
  display: grid;
  align-items: end;
  min-height: 235px;
  padding: clamp(28px, 5vw, 48px);
  background:
    linear-gradient(135deg, rgba(30, 99, 176, 0.96), rgba(0, 161, 200, 0.78)),
    linear-gradient(90deg, #1e63b0, #00a1c8);
  background-position: center;
  background-size: cover;
  color: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.intro .eyebrow,
.intro .lede {
  color: rgba(255, 255, 255, 0.86);
}

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

h1 {
  max-width: 820px;
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.75rem);
  line-height: 1.04;
  letter-spacing: 0;
  font-family: "Mulish", Arial, Helvetica, sans-serif;
  font-weight: 800;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.15;
  letter-spacing: 0;
  font-family: "Mulish", Arial, Helvetica, sans-serif;
  font-weight: 800;
}

.lede {
  max-width: 670px;
  margin-bottom: 0;
  font-size: 1.05rem;
}

.eyebrow {
  margin-bottom: 8px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.trust-row span {
  padding: 8px 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  margin-top: 24px;
  align-items: start;
}

.panel,
.documents-panel,
.processor-band {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

.panel,
.documents-panel {
  padding: clamp(22px, 3vw, 32px);
}

.section-heading {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e7ecf1;
}

.section-heading.with-status {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.panel-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 102px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  white-space: nowrap;
}

.panel-status-complete {
  color: #0b5a3b;
  background: #e9f8f0;
  border-color: #b8e8d2;
}

.panel-status-incomplete {
  color: #7a5c00;
  background: #fff6db;
  border-color: #f0d88f;
}

.field-grid,
.chooser-grid,
.single-field {
  display: grid;
  gap: 18px;
}

.single-field {
  margin-bottom: 18px;
}

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

.chooser-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  margin-top: 22px;
}

label {
  display: grid;
  gap: 8px;
  color: #27313b;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 50px;
  padding: 11px 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cbd4dd;
  border-radius: 8px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #aebdcc;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible {
  outline: 3px solid rgba(10, 127, 177, 0.25);
  outline-offset: 2px;
}

textarea {
  resize: vertical;
}

.selected-country {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  padding: 18px;
  background: linear-gradient(180deg, #fbfdff, #f6f9fc);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.flag-shell,
.flag {
  flex: 0 0 auto;
  width: 54px;
  height: 38px;
  border-radius: 4px;
  object-fit: cover;
  background: #dfe7ef;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 6px 16px rgba(16, 28, 38, 0.1);
}

.status-panel {
  position: sticky;
  top: 90px;
}

.progress-bar {
  height: 12px;
  overflow: hidden;
  background: #e5ebf0;
  border-radius: 999px;
}

.progress-bar span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--brand));
  transition: width 180ms ease;
}

.progress-bar .complete-fill {
  width: 100%;
  background: linear-gradient(90deg, var(--success), var(--brand-light));
}

.status-list {
  display: grid;
  gap: 0;
  margin: 22px 0 0;
  border: 1px solid #e6ebf0;
  border-radius: 8px;
  overflow: hidden;
}

.status-list div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  background: #fbfdff;
  border-bottom: 1px solid var(--line);
}

.status-list div:last-child {
  border-bottom: 0;
}

.status-list dt,
.status-list dd {
  margin: 0;
}

.status-list dd {
  color: var(--ink);
  font-weight: 800;
  text-align: right;
  overflow-wrap: anywhere;
}

.documents-panel {
  margin-top: 24px;
}

.document-list {
  display: grid;
  gap: 14px;
}

.application-form {
  margin-top: 22px;
}

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

.compact-application-grid {
  margin-bottom: 18px;
}

.compact-application-grid .span-two {
  grid-column: span 2;
}

.step-panel {
  margin-bottom: 22px;
  padding: 18px;
  background: #fbfdff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.step-heading {
  margin-bottom: 16px;
  padding-bottom: 14px;
}

.application-grid label:nth-child(9),
.application-grid label:nth-child(12),
.application-grid label:nth-child(15),
.application-grid label:nth-child(17),
.application-grid label:nth-child(n + 20) {
  grid-column: span 2;
}

.empty-state {
  padding: 28px;
  color: var(--muted);
  background: #fbfdff;
  border: 1px dashed #b8c5d1;
  border-radius: 8px;
  text-align: center;
}

.doc-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.42fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.doc-item:hover {
  border-color: #b9c6d3;
  box-shadow: 0 8px 22px rgba(24, 44, 58, 0.08);
}

.doc-item h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.doc-item p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.document-review-note {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.document-review-note .status-pill {
  width: fit-content;
}

.document-review-reason {
  color: #8a1f1f;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.35;
}

.doc-status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.doc-status output {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.doc-item.complete {
  border-color: rgba(22, 135, 90, 0.38);
  background: #f5fbf8;
}

.doc-item.complete output {
  color: var(--success);
}

.processor-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
  padding: clamp(22px, 4vw, 34px);
  background: linear-gradient(135deg, #ffffff, #f8fbfd);
}

.processor-band p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
}

.action-cluster {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.primary-action,
.secondary-action {
  min-width: 190px;
  min-height: 50px;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease, border-color 150ms ease;
}

.primary-action {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  border: 0;
  box-shadow: 0 10px 20px rgba(30, 99, 176, 0.18);
}

.secondary-action {
  color: var(--brand-deep);
  background: #fff;
  border: 1px solid #cbd4dd;
}

.primary-action:hover:not(:disabled),
.secondary-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(24, 44, 58, 0.12);
}

.primary-action:disabled {
  background: #9ca7b2;
  cursor: not-allowed;
  box-shadow: none;
}

.secondary-action:disabled {
  color: #6f7b87;
  background: #e3e8ee;
  border-color: #c7d0da;
  cursor: not-allowed;
  box-shadow: none;
}

.edit-action-active {
  color: #7a4b00 !important;
  background: #fff4d6 !important;
  border: 1px solid #f0cc83 !important;
  box-shadow: none !important;
}

.edit-action-idle {
  color: #667381 !important;
  background: #eef2f6 !important;
  border: 1px solid #d5dde6 !important;
  box-shadow: none !important;
}

.full-action {
  width: 100%;
  margin-top: 20px;
}

.helper-copy {
  margin-bottom: 0;
  color: var(--muted);
}

.admin-status-list {
  margin-top: 18px;
}

.link-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
}

.link-box input {
  min-width: 0;
  color: var(--brand-deep);
  background: #fbfdff;
  font-weight: 700;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-top: 28px;
  padding: 24px;
  color: #4a5563;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

.footer-logo {
  width: 210px;
  height: auto;
  margin-bottom: 10px;
}

.site-footer p {
  max-width: 560px;
  margin-bottom: 0;
}

.site-footer address {
  display: grid;
  gap: 4px;
  font-style: normal;
  text-align: right;
}

.site-footer address a {
  color: var(--brand-deep);
  text-decoration: none;
  font-weight: 700;
}

.site-footer address a:hover {
  text-decoration: underline;
}

.processor-review {
  margin-top: 24px;
}

.processor-dashboard {
  margin-top: 24px;
}

.dashboard-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(22px, 3vw, 30px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

.dashboard-heading p:last-child {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.dashboard-stats article {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

.dashboard-stats strong {
  display: block;
  color: var(--brand);
  font-family: "Mulish", Arial, Helvetica, sans-serif;
  font-size: 2rem;
  line-height: 1;
}

.dashboard-stats span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

.client-table-wrap {
  margin-top: 18px;
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

.client-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  table-layout: fixed;
}

.client-table th,
.client-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #e7ecf1;
  text-align: left;
  vertical-align: middle;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.client-table th {
  color: #4b5563;
  background: #f8fafc;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.client-table tbody tr:hover {
  background: #fbfdff;
}

.client-table td strong,
.client-table td span {
  display: block;
}

.client-table td span {
  color: var(--muted);
  font-size: 0.8rem;
}

.table-country {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  color: var(--ink) !important;
  font-weight: 700;
}

.mini-flag {
  width: 34px;
  height: 24px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.table-progress {
  width: 150px;
  height: 9px;
  overflow: hidden;
  background: #e7edf3;
  border-radius: 999px;
}

.table-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
}

.client-table small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 700;
}

.client-table .col-form-action,
.client-table .col-row-action {
  width: 108px;
  max-width: 108px;
  white-space: nowrap;
}

.client-table .col-form-action .table-action,
.client-table .col-row-action .table-action {
  min-width: 88px;
  padding: 6px 10px;
}

.status-pill {
  display: inline-flex !important;
  align-items: center;
  min-width: max-content;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.82rem !important;
  font-weight: 800;
}

.status-ready {
  color: #0f5132 !important;
  background: #dff7eb;
}

.status-waiting {
  color: #7a4b00 !important;
  background: #fff4d6;
}

.status-draft {
  color: #4b5563 !important;
  background: #eef2f6;
}

.status-pending {
  color: #7a4b00 !important;
  background: #fff4d6;
}

.status-denied {
  color: #8a1f1f !important;
  background: #fde5e5;
}

.preferred-dates-wrap {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: 6px;
  vertical-align: middle;
}

.table-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  min-height: 34px;
  padding: 6px 10px;
  color: #fff;
  background: var(--brand);
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  font-size: 0.78rem;
}

.secondary-table-action {
  color: var(--brand-deep);
  background: #fff;
  border: 1px solid #cbd4dd;
}

.delete-table-action {
  color: #fff;
  border: 1px solid #a31212;
  background: #b42318;
}

.delete-table-action:hover {
  background: #912018;
}

.delete-table-action:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(22px, 3vw, 30px);
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

.review-header .eyebrow,
.review-header p {
  color: rgba(255, 255, 255, 0.86);
}

.review-header h2 {
  color: #fff;
}

.review-header p {
  margin-bottom: 0;
}

.review-badge {
  flex: 0 0 auto;
  padding: 10px 14px;
  color: #0f5132;
  background: #dff7eb;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  font-weight: 800;
}

.review-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}

.review-details {
  margin-top: 20px;
}

.review-status {
  top: 90px;
}

.review-documents-panel {
  margin-top: 24px;
}

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

.review-reason {
  min-height: 96px;
  min-width: 340px;
  width: 100%;
  resize: vertical;
  line-height: 1.4;
}

.answer-item {
  padding: 16px;
  background: #fbfdff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.answer-item span,
.answer-item strong {
  display: block;
}

.answer-item span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.answer-item strong {
  margin-top: 6px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.review-doc-item .doc-status {
  align-items: stretch;
}

.review-doc-item {
  grid-template-columns: minmax(0, 1fr);
}

.review-doc-status {
  display: grid;
  justify-content: stretch;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.review-controls {
  display: grid;
  grid-template-columns: minmax(160px, 0.9fr) minmax(140px, 180px) minmax(96px, 112px);
  gap: 10px;
  align-items: start;
  width: 100%;
  min-width: 0;
}

.review-select,
.review-reason {
  width: 100%;
  min-width: 0;
}

.review-reason:disabled {
  background: #f1f4f7;
  color: #8b95a1;
}

.compact-action {
  width: 100%;
  min-width: 96px;
  min-height: 42px;
  padding: 9px 12px;
}

.inline-form-action {
  min-width: 190px;
}

.review-decision-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.review-summary-box {
  padding: 18px;
  background: #fbfdff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.review-summary-box strong {
  display: block;
  font-family: "Mulish", Arial, Helvetica, sans-serif;
  font-size: 1.2rem;
}

.review-summary-box p {
  margin: 8px 0 0;
  color: var(--muted);
}

.review-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.appointment-preference-panel {
  margin: 24px 0;
  padding: 20px;
  background: #fbfdff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.appointment-heading {
  margin-bottom: 16px;
  padding-bottom: 14px;
}

.appointment-picker-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  margin-top: 16px;
}

.appointment-selection-box {
  margin-top: 18px;
  padding: 16px;
  background: #fff;
  border: 1px solid #e4ebf1;
  border-radius: 8px;
}

.appointment-selection-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.appointment-selection-head strong {
  font-family: "Mulish", Arial, Helvetica, sans-serif;
  font-size: 1.05rem;
}

.appointment-selection-head span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.appointment-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.appointment-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #edf4fb;
  border: 1px solid #cfe0f1;
  border-radius: 999px;
  font-weight: 700;
  color: var(--brand-deep);
}

.appointment-chip button {
  width: 24px;
  height: 24px;
  padding: 0;
  color: var(--brand-deep);
  background: #fff;
  border: 1px solid #c5d6e7;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  line-height: 1;
}

.compact-empty-state {
  padding: 16px;
  font-size: 0.92rem;
}

#preparedFormUpload {
  min-width: 280px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #cbd4dd;
  border-radius: 8px;
}

#clientFormDecisionStatus,
#preparedFormStatus,
#appointmentOutcomeStatus {
  margin-top: 14px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e4ebf1;
  border-radius: 8px;
}

#reviewDecisionStatus {
  margin-top: 14px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e4ebf1;
  border-radius: 8px;
}

#copyMessage {
  margin-top: 14px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e4ebf1;
  border-radius: 8px;
}

#emailSetupState {
  color: var(--warning);
}

@media (max-width: 860px) {
  .topbar,
  .workspace,
  .review-grid,
  .processor-band,
  .review-header,
  .dashboard-heading,
  .site-footer {
    display: block;
  }

  .topbar nav {
    margin-top: 12px;
  }

  .brand-logo {
    width: 140px;
  }

  .status-panel,
  .processor-band .primary-action {
    margin-top: 18px;
  }

  .review-badge {
    display: inline-block;
    margin-top: 16px;
  }

  .status-panel {
    position: static;
  }

  .field-grid,
  .chooser-grid,
  .doc-item,
  .link-box,
  .application-grid,
  .review-answer-grid,
  .review-controls,
  .review-decision-grid,
  .appointment-picker-row {
    grid-template-columns: 1fr;
  }

  .review-reason {
    min-width: 0;
  }

  .application-grid label:nth-child(n) {
    grid-column: auto;
  }

  .doc-status {
    justify-content: flex-start;
  }

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

  .site-footer address {
    margin-top: 18px;
    text-align: left;
  }

  .dashboard-heading .primary-action {
    margin-top: 18px;
  }

  .action-cluster {
    justify-content: flex-start;
    margin-top: 18px;
  }

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

@media (max-width: 520px) {
  main {
    width: min(100% - 20px, 1180px);
    padding-top: 18px;
  }

  .topbar {
    padding: 14px 12px;
  }

  .topbar nav {
    gap: 16px;
  }

  .intro {
    min-height: 330px;
  }

  .panel,
  .documents-panel,
  .processor-band {
    padding: 18px;
  }

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