@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/Nunito-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/Nunito-SemiBold.ttf') format('truetype');
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/Nunito-Bold.ttf') format('truetype');
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/Nunito-ExtraBold.ttf') format('truetype');
}
:root {
  color-scheme: light;
  font-family:
    'Nunito',
    ui-rounded,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: #2d2926;
  background: #fff8f2;
  font-synthesis: none;
  --background: #fff8f2;
  --surface: #ffffff;
  --text: #2d2926;
  --text-muted: #6f665f;
  --primary: #e8725c;
  --primary-dark: #d4604e;
  --primary-strong: #bf503d;
  --primary-surface: #fdede9;
  --border: #e8e2dc;
  --border-light: #f0ebe6;
  --warning: #e8a94e;
  --error: #d94f4f;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background: var(--background);
}
button {
  border: 0;
  font: inherit;
  cursor: pointer;
}
button:focus-visible {
  outline: 3px solid rgba(232, 114, 92, 0.28);
  outline-offset: 2px;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--primary-strong);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--primary-surface);
  box-shadow: 0 12px 28px rgba(191, 80, 61, 0.14);
}
.brand-mark img {
  display: block;
  width: 32px;
  height: 32px;
}
.brand-mark.small {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}
.brand-mark.small img {
  width: 24px;
  height: 24px;
}
.login-shell,
.center-state {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 12% 10%, rgba(232, 114, 92, 0.18) 0, transparent 34%),
    radial-gradient(circle at 88% 90%, rgba(255, 207, 147, 0.28) 0, transparent 33%),
    var(--background);
}
.login-card {
  width: min(100%, 430px);
  padding: 42px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 26px 70px rgba(103, 67, 55, 0.13);
}
.login-card .brand-mark {
  margin-bottom: 28px;
}
h1,
h2,
p {
  margin-top: 0;
}
h1 {
  margin-bottom: 9px;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
h2 {
  margin-bottom: 0;
  font-size: 18px;
  font-weight: 800;
}
.lede {
  color: var(--text-muted);
  line-height: 1.55;
}
.google-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  margin-top: 28px;
  padding: 0 22px;
  border-radius: 29px;
  color: #fff;
  background: #000;
  font-weight: 800;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease;
}
.google-button:hover:not(:disabled) {
  background: #252525;
  box-shadow: 0 10px 24px rgba(45, 41, 38, 0.18);
  transform: translateY(-1px);
}
.security-note {
  margin: 22px 0 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.55;
}
.security-note strong {
  color: var(--text);
}
.message {
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
}
.message.error {
  color: #8a2e2e;
  background: #fff0ee;
  border: 1px solid #f2cbc5;
}
.message.notice {
  color: #73561f;
  background: #fff8df;
  border: 1px solid #ebd99d;
}
.center-state {
  align-content: center;
  color: var(--text-muted);
  text-align: center;
}
.center-state h1 {
  color: var(--text);
}
.center-state button {
  min-width: 120px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 23px;
  color: #fff;
  background: var(--primary-strong);
  font-weight: 800;
}
.spinner {
  width: 32px;
  height: 32px;
  margin: 0 auto 18px;
  border: 3px solid var(--primary-surface);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.app-shell {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 24px 18px;
  color: #f8eee9;
  background: var(--text);
}
.brand-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 7px 29px;
  color: #fff;
}
.sidebar nav {
  display: grid;
  gap: 5px;
}
.sidebar nav button {
  padding: 11px 13px;
  border-radius: 10px;
  color: #d9ccc4;
  background: transparent;
  text-align: left;
}
.sidebar nav button:hover,
.sidebar nav button[aria-current='page'] {
  color: #fff;
  background: rgba(232, 114, 92, 0.22);
}
.sidebar-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding: 15px 7px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.role-pill {
  padding: 5px 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(232, 114, 92, 0.25);
  font-size: 11px;
  text-transform: capitalize;
}
.text-button {
  color: #d9ccc4;
  background: transparent;
  font-size: 12px;
}
.content {
  min-width: 0;
  padding: 42px clamp(24px, 5vw, 70px) 70px;
}
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.page-header p:last-child {
  color: var(--text-muted);
}
.secondary {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--primary-strong);
  background: var(--surface);
  font-weight: 700;
}
.secondary:hover:not(:disabled) {
  border-color: var(--primary);
  background: var(--primary-surface);
}
.primary-action,
.compact-action,
.danger-action {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  color: #fff;
  background: var(--primary-strong);
  font-weight: 800;
}
.compact-action {
  min-height: 36px;
  padding: 0 12px;
  white-space: nowrap;
}
.primary-action:hover:not(:disabled),
.compact-action:hover:not(:disabled) {
  background: var(--primary-dark);
}
.danger-action {
  color: #8a3333;
  background: #fbe8e6;
}
.entity-strip {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1px;
  margin: 27px 0 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--border);
}
.entity-strip div {
  display: grid;
  gap: 5px;
  padding: 16px 18px;
  background: var(--surface);
}
.entity-strip span {
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.entity-strip strong {
  font-size: 14px;
}
.status-dot::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--warning);
  content: '';
}
.panel {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface);
  box-shadow: 0 8px 25px rgba(103, 67, 55, 0.05);
}
.panel-stack {
  display: grid;
  gap: 22px;
}
.upcoming-heading p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 12px;
}
.upcoming-heading > span strong {
  color: var(--text);
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border-light);
}
.panel-heading span {
  color: var(--text-muted);
  font-size: 12px;
}
.panel-heading > div {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.inline-back {
  padding: 0;
  color: var(--primary-strong);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}
.workflow-message {
  margin: 16px 22px 0;
}
.workflow-body {
  display: grid;
  gap: 20px;
  padding: 24px 22px 28px;
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.summary-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.summary-grid > div,
.preview-card {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: #fffaf7;
}
.summary-grid span,
.preview-card span {
  color: var(--text-muted);
  font-size: 11px;
}
.summary-grid strong {
  overflow-wrap: anywhere;
}
.preview-card {
  color: #17613e;
  background: #edf8f1;
  border-color: #cfe9d9;
}
.field {
  display: grid;
  gap: 7px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}
.field input {
  min-height: 45px;
  width: 100%;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  background: #fff;
  font: inherit;
}
.field input:focus {
  border-color: var(--primary);
  outline: 3px solid rgba(232, 114, 92, 0.14);
}
.action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.privacy-callout {
  margin: 0;
  padding: 13px 15px;
  border-left: 3px solid var(--warning);
  color: var(--text-muted);
  background: #fff9e9;
  font-size: 13px;
  line-height: 1.5;
}
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
}
.check-row input {
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  accent-color: var(--primary-strong);
}
.destination-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.destination-card div {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
}
.destination-card dt {
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.destination-card dd {
  margin: 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.confirmation-list {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.confirmation-list legend {
  padding: 0 7px;
  font-size: 12px;
  font-weight: 800;
}
.failure-box {
  padding: 14px;
  border: 1px solid #efd2ce;
  border-radius: 10px;
  background: #fff8f7;
}
.failure-box summary {
  color: #8a3333;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}
.failure-box[open] {
  display: grid;
  gap: 14px;
}
.complete-state {
  display: grid;
  justify-items: center;
  padding: 58px 24px;
  text-align: center;
}
.complete-state h3 {
  margin: 14px 0 8px;
  font-size: 24px;
}
.complete-state p {
  max-width: 560px;
  color: var(--text-muted);
}
.table-wrap {
  overflow-x: auto;
}

.document-status {
  display: grid;
  gap: 0.25rem;
  min-width: 10rem;
}

.document-status small {
  color: var(--text-muted);
  text-transform: capitalize;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
th {
  padding: 11px 15px;
  color: var(--text-muted);
  background: var(--primary-surface);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-align: left;
  text-transform: uppercase;
}
td {
  padding: 15px;
  border-top: 1px solid var(--border-light);
  vertical-align: middle;
}
tbody tr:hover {
  background: #fffaf7;
}
code {
  color: var(--text-muted);
  font:
    11px/1.4 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  overflow-wrap: anywhere;
}
td small {
  display: block;
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 10px;
  overflow-wrap: anywhere;
}
.rollout-label {
  display: inline-flex;
  padding: 6px 8px;
  border-radius: 8px;
  color: var(--primary-strong);
  background: var(--primary-surface);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.payout-stage {
  display: inline-flex;
  padding: 6px 8px;
  border: 1px solid #d7e3ed;
  border-radius: 999px;
  color: #31566f;
  background: #eef6fb;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}
.payout-stage.service_in_progress,
.payout-stage.clearance_pending {
  color: #73561f;
  background: #fff8df;
  border-color: #ebd99d;
}
.payout-stage.scheduled {
  color: #17613e;
  background: #edf8f1;
  border-color: #cfe9d9;
}
.payout-stage.on_hold,
.payout-stage.ledger_pending {
  color: #8a3333;
  background: #fff0ee;
  border-color: #f2cbc5;
}
.run-status {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--text-muted);
  background: var(--border-light);
  font-size: 11px;
  text-transform: capitalize;
}
.run-status.paid {
  color: #17613e;
  background: #e2f4e9;
}
.run-status.failed {
  color: #8a3333;
  background: #fbe8e6;
}
.run-status.processing {
  color: #7c591e;
  background: #fff3d7;
}
.empty {
  margin: 0;
  padding: 52px 20px;
  color: var(--text-muted);
  text-align: center;
}
@media (max-width: 760px) {
  .login-card {
    padding: 32px 24px;
  }
  .app-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 15px;
  }
  .sidebar nav {
    grid-template-columns: 1fr 1fr;
  }
  .sidebar-foot {
    margin-top: 14px;
  }
  .content {
    padding: 28px 16px 50px;
  }
  .entity-strip {
    grid-template-columns: 1fr;
  }
  .page-header {
    align-items: center;
  }
  .page-header h1 {
    font-size: 29px;
  }
  .summary-grid,
  .summary-grid.compact,
  .destination-card {
    grid-template-columns: 1fr;
  }
  .action-row {
    justify-content: stretch;
  }
  .action-row button {
    flex: 1;
  }
}
