/* Bricolage Grotesque, SIL OFL 1.1, self-hosted: the login page's CSP is
   font-src 'self', so a third-party font host was never an option here. */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/brand/fonts/bricolage-grotesque-latin.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/brand/fonts/bricolage-grotesque-latin-ext.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Soul Knot — see /brand/site.css and docs/brand.md. Semantic states keep
     their own hues so success never turns coral and danger never turns plum. */
  --plum: #3a1f38;
  --coral: #e2573b;
  --amber: #f0a43a;
  --cream: #fbf5ec;

  --ink: #3a1f38;
  --ink-soft: #52344f;
  --muted: #7a5f6f;
  --muted-light: #9c8393;
  --paper: #fbf5ec;
  --paper-deep: #f3eadf;
  --white: #ffffff;
  --line: #e8dcd2;
  --line-dark: #d9cabf;
  --green: #e2573b;          /* the accent: buttons, highlights, active nav */
  --green-dark: #c9452b;
  --accent-wash: #fbe7e1;    /* accent tint for selected / pressed surfaces */
  --green-wash: #eaf2dc;     /* success tint only */
  --night: #2b1729;
  --danger: #a43e2b;
  --danger-wash: #fff0ec;
  --warning: #875d00;
  --warning-wash: #fff7dc;
  --info: #245a6b;
  --info-wash: #e9f7fa;
  --shadow: 0 24px 70px rgba(58, 31, 56, 0.12);
  --serif: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --sans: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 11px 15px;
  color: var(--white);
  background: var(--night);
  border-radius: 4px;
  font-size: 13px;
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgba(240, 164, 58, 0.55);
  outline-offset: 2px;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 6px 5px;
  border-radius: 9px;
  background: var(--plum);
}

.brand-mark svg {
  display: block;
  width: 28px;
  height: 20px;
}

/* On the dark login panel the mark sits directly on the plum. */
.brand-mark-light {
  background: transparent;
  padding: 0;
}

.brand-mark-light svg {
  width: 36px;
  height: 25px;
}

.app-brand,
.mobile-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.app-brand strong,
.mobile-brand strong {
  font: 800 22px/1 var(--sans);
  letter-spacing: -0.045em;
  text-transform: lowercase;
}

.preview-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 5px 9px;
  color: #d3c6d1;
  border: 1px solid #3b2f39;
  border-radius: 99px;
  font: 600 9px/1.2 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.preview-pill i,
.story-kicker i,
.secure-label i {
  width: 6px;
  height: 6px;
  background: var(--green-dark);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(240, 164, 58, 0.22);
}

.dark-text {
  color: var(--ink-soft);
  border-color: var(--line-dark);
}

.loader {
  display: inline-block;
  width: 23px;
  height: 23px;
  border: 2px solid rgba(102, 112, 106, 0.23);
  border-top-color: var(--green-dark);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Login */
.login-body {
  background: var(--paper);
}

.login-layout {
  display: grid;
  grid-template-columns: minmax(420px, 0.92fr) minmax(560px, 1.08fr);
  min-height: 100vh;
}

.login-story {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 46px clamp(36px, 5vw, 76px) 38px;
  color: var(--white);
  background:
    radial-gradient(circle at 92% 18%, rgba(240, 164, 58, 0.22), transparent 29%),
    radial-gradient(circle at 4% 84%, rgba(226, 87, 59, 0.10), transparent 25%),
    var(--night);
  overflow: hidden;
}

.login-story::before,
.login-story::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 1px solid rgba(251, 245, 236, 0.10);
  border-radius: 50%;
}

.login-story::before {
  top: 10%;
  right: -27%;
  width: 510px;
  height: 510px;
}

.login-story::after {
  right: -10%;
  bottom: 5%;
  width: 260px;
  height: 540px;
  transform: rotate(48deg);
}

.login-brand {
  position: relative;
  z-index: 1;
  color: var(--white);
}

.story-copy {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: auto 0 44px;
}

.story-kicker,
.auth-eyebrow,
.page-eyebrow,
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #bcaab9;
  font: 650 10px/1.3 var(--mono);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.story-copy h1 {
  margin: 25px 0 30px;
  font-size: clamp(54px, 6.2vw, 92px);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.058em;
}

.story-copy h1 em {
  color: var(--green);
  font-family: var(--serif);
  font-weight: 800;
  font-style: normal;
}

.story-copy > p {
  max-width: 580px;
  margin: 0;
  color: #bcaab9;
  font-size: 16px;
  line-height: 1.7;
}

.journey-card {
  position: relative;
  z-index: 1;
  padding: 22px;
  border: 1px solid #3b2f39;
  border-radius: 10px;
  background: rgba(20, 8, 19, 0.55);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

.journey-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #94768f;
  font: 600 9px/1.3 var(--mono);
  letter-spacing: 0.12em;
}

.secure-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
}

.secure-label i {
  width: 5px;
  height: 5px;
  box-shadow: none;
}

.journey-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 22px;
}

.journey-step {
  position: relative;
  display: flex;
  gap: 12px;
  min-width: 0;
  padding: 16px 18px 4px 0;
  border-top: 1px solid #42333f;
}

.journey-step::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 34%;
  height: 3px;
  background: #574454;
}

.journey-step.is-current::before {
  background: var(--green);
}

.journey-step > span {
  color: var(--green);
  font: 600 9px var(--mono);
}

.journey-step div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.journey-step strong {
  font-size: 11px;
  line-height: 1.35;
}

.journey-step small {
  color: #8d6f88;
  font-size: 9px;
  line-height: 1.4;
}

.story-foot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin: 28px 0 0;
  color: #83677e;
  font-size: 10px;
}

.story-foot i {
  width: 3px;
  height: 3px;
  background: #6a5366;
  border-radius: 50%;
}

.login-panel {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 38px clamp(32px, 6vw, 90px) 28px;
}

.login-panel-top,
.login-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.back-link,
.back-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  cursor: pointer;
}

.back-link:hover,
.back-button:hover {
  color: var(--ink);
}

.auth-card {
  width: min(100%, 455px);
  margin: auto;
  padding: 50px 0;
}

.auth-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 300px;
  color: var(--muted);
  font-size: 13px;
}

.auth-eyebrow,
.page-eyebrow,
.section-label {
  color: #785e74;
}

.auth-heading h2 {
  margin: 17px 0 10px;
  font-size: clamp(39px, 4vw, 54px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.052em;
}

.auth-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 34px 0 28px;
  padding: 4px;
  background: #f0eae2;
  border-radius: 5px;
}

.auth-tabs button {
  min-height: 42px;
  padding: 9px 12px;
  border: 0;
  border-radius: 3px;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  cursor: pointer;
}

.auth-tabs button[aria-selected="true"] {
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 3px 12px rgba(31, 42, 34, 0.08);
  font-weight: 650;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.verification-panel {
  margin-top: 30px;
}

.verification-note {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 13px;
  padding: 16px;
  color: #5c4859;
  border: 1px solid #dacfd8;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.65);
}

.verification-note-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--coral);
  border: 1px solid var(--coral);
  border-radius: 50%;
  font-weight: 750;
}

.verification-note strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 13px;
}

.verification-note p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.verification-status {
  margin-top: 10px !important;
  color: var(--ink) !important;
  font-weight: 650;
}

.verification-status[data-state="approved"] {
  color: #456800 !important;
}

.verification-status[data-state="unavailable"] {
  color: #9d5142 !important;
}

.verification-status-check {
  align-self: flex-start;
}

.verification-signout {
  align-self: center;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.field-group label,
.label-row label {
  color: #5c4859;
  font: 650 10px/1.35 var(--mono);
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.text-button {
  padding: 2px;
  border: 0;
  color: var(--coral);
  background: transparent;
  font-size: 11px;
  cursor: pointer;
}

.field-group input,
.field-group select,
.field-group textarea,
.password-field input {
  width: 100%;
  min-height: 49px;
  padding: 12px 13px;
  color: var(--ink);
  border: 1px solid #dacfd8;
  border-radius: 4px;
  outline: none;
  background: rgba(255, 255, 255, 0.84);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field-group textarea {
  min-height: 96px;
  resize: vertical;
}

.field-group input::placeholder,
.field-group textarea::placeholder {
  color: #aa92a6;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus,
.password-field input:focus {
  border-color: var(--amber);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(240, 164, 58, 0.25);
}

.field-group input[aria-invalid="true"],
.field-group select[aria-invalid="true"],
.field-group textarea[aria-invalid="true"] {
  border-color: #c86753;
  box-shadow: 0 0 0 3px rgba(200, 103, 83, 0.1);
}

.password-field {
  position: relative;
}

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

.password-toggle {
  position: absolute;
  top: 50%;
  right: 9px;
  min-width: 44px;
  min-height: 34px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  transform: translateY(-50%);
  cursor: pointer;
}

.field-hint,
.field-error {
  min-height: 0;
  color: var(--muted-light);
  font-size: 10px;
  line-height: 1.45;
}

.field-error:not(:empty) {
  color: var(--danger);
}

.check-field {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

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

.check-field a {
  color: var(--coral);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.primary-action,
.action-button,
.secondary-button,
.danger-button,
.quiet-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

.primary-action,
.action-button {
  color: var(--white);
  background: var(--green);
}

.primary-action {
  width: 100%;
  margin-top: 4px;
}

.primary-action:hover,
.action-button:hover {
  background: var(--green-dark);
}

.primary-action:active,
.action-button:active,
.secondary-button:active {
  transform: translateY(1px);
}

.primary-action:disabled,
.action-button:disabled,
.secondary-button:disabled,
.danger-button:disabled,
.quiet-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.primary-action[data-loading="true"] span:first-child::before,
.action-button[data-loading="true"] span:first-child::before,
.secondary-button[data-loading="true"] span:first-child::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 9px;
  border: 1.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  vertical-align: -2px;
  animation: spin 0.7s linear infinite;
}

.form-message,
.inline-message {
  margin: 0 0 20px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.55;
}

.form-message.error,
.inline-message.error {
  color: #7f2e1e;
  border-color: #f0c8bf;
  background: var(--danger-wash);
}

.form-message.success,
.inline-message.success {
  color: #3c5900;
  border-color: #d5eaa7;
  background: var(--green-wash);
}

.recovery-form .back-button {
  align-self: flex-start;
  margin: -8px 0 4px;
}

.auth-fineprint {
  margin: 28px 0 0;
  padding-top: 22px;
  color: #93768e;
  border-top: 1px solid var(--line);
  font-size: 10px;
  line-height: 1.6;
}

.login-footer {
  color: var(--muted-light);
  font-size: 10px;
}

.login-footer nav {
  display: flex;
  gap: 18px;
}

.login-footer a:hover {
  color: var(--ink);
}

/* Authenticated shell */
.app-body {
  background: var(--paper);
}

.app-frame {
  min-height: 100vh;
}

.app-sidebar {
  position: fixed;
  z-index: 50;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  width: 264px;
  min-height: 100vh;
  padding: 31px 22px 24px;
  color: var(--white);
  background:
    radial-gradient(circle at 85% 12%, rgba(240, 164, 58, 0.14), transparent 25%),
    var(--night);
}

.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 8px;
}

.app-sidebar .brand-mark {
  background: transparent;
  padding: 0;
}

.app-sidebar .brand-mark svg {
  width: 34px;
  height: 24px;
}

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

.app-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 58px;
}

.app-nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 48px;
  padding: 9px 12px;
  color: #a2899e;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 13px;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.app-nav a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.035);
}

.app-nav a[aria-current="page"] {
  color: var(--white);
  border-color: #40323e;
  background: #20191f;
}

.app-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 10px;
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(240, 164, 58, 0.14);
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: #cec0cb;
  border: 1px solid #473744;
  border-radius: 50%;
  font-size: 12px;
}

.app-nav a[aria-current="page"] .nav-icon {
  color: var(--ink);
  border-color: var(--green);
  background: var(--green);
}

.sidebar-foot {
  margin-top: auto;
}

.trust-note {
  display: grid;
  grid-template-columns: 9px 1fr;
  gap: 10px;
  margin-bottom: 18px;
  padding: 15px 13px;
  color: #8d6f88;
  border: 1px solid #342932;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.018);
}

.trust-dot {
  width: 7px;
  height: 7px;
  margin-top: 4px;
  background: var(--green);
  border-radius: 50%;
}

.trust-note div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.trust-note strong {
  color: #ded5dc;
  font-size: 10px;
}

.trust-note span {
  font-size: 9px;
  line-height: 1.45;
}

.account-chip {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  gap: 10px;
  align-items: center;
  padding: 13px 10px 0;
  border-top: 1px solid #342932;
}

.account-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--ink);
  background: var(--green);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 750;
}

.account-chip > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.account-chip strong,
.account-chip div span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-chip strong {
  color: #ece5db;
  font-size: 10px;
}

.account-chip div span {
  color: #84677f;
  font-size: 8px;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: #a68da2;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}

.icon-button:hover {
  color: var(--white);
  border-color: #483946;
  background: rgba(255, 255, 255, 0.035);
}

.app-main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin-left: 264px;
}

.app-topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 76px;
  padding: 0 clamp(28px, 5vw, 68px);
  border-bottom: 1px solid rgba(16, 19, 17, 0.08);
  background: rgba(244, 246, 241, 0.91);
  backdrop-filter: blur(14px);
}

.menu-button,
.mobile-brand {
  display: none;
}

.topbar-meta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.topbar-meta .preview-pill {
  color: #614d5e;
  border-color: #dcd3db;
}

.marketing-link {
  display: inline-flex;
  gap: 9px;
  color: var(--muted);
  font-size: 11px;
}

.marketing-link:hover {
  color: var(--ink);
}

.app-content {
  width: min(100%, 1380px);
  min-height: 640px;
  margin: 0 auto;
  padding: 54px clamp(28px, 5vw, 68px) 76px;
  outline: none;
}

.page-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 520px;
  color: var(--muted);
  text-align: center;
}

.page-loading strong {
  margin-top: 8px;
  color: var(--ink);
  font-size: 14px;
}

.page-loading > span:last-child {
  font-size: 11px;
}

.app-footer {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-top: auto;
  padding: 22px clamp(28px, 5vw, 68px) 30px;
  color: #90718b;
  border-top: 1px solid var(--line);
  font-size: 9px;
  line-height: 1.5;
}

.app-footer span:last-child {
  max-width: 620px;
  text-align: right;
}

.sidebar-scrim,
.mobile-nav {
  display: none;
}

/* App page components */
.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 38px;
}

.page-header-copy {
  max-width: 700px;
}

.page-title {
  margin: 14px 0 12px;
  font-size: clamp(38px, 4.5vw, 58px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.052em;
}

.page-title em {
  font-family: var(--serif);
  font-weight: 800;
  font-style: normal;
}

.page-description {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.page-actions,
.button-row,
.panel-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.secondary-button,
.quiet-button {
  color: var(--ink);
  border-color: var(--line-dark);
  background: rgba(255, 255, 255, 0.7);
}

.secondary-button:hover,
.quiet-button:hover {
  border-color: #af99ab;
  background: var(--white);
}

.quiet-button {
  min-height: 38px;
  padding: 8px 11px;
  font-size: 10px;
  font-weight: 600;
}

.danger-button {
  min-height: 38px;
  padding: 8px 11px;
  color: var(--danger);
  border-color: #ebc6be;
  background: var(--danger-wash);
  font-size: 10px;
}

.danger-button:hover {
  background: #ffe4de;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(310px, 0.65fr);
  gap: 20px;
}

.panel {
  min-width: 0;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.78);
}

.panel-dark {
  color: var(--white);
  border-color: #332831;
  background:
    radial-gradient(circle at 90% 5%, rgba(240, 164, 58, 0.16), transparent 30%),
    var(--night);
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 24px;
}

.panel-head h2,
.panel-head h3 {
  margin: 5px 0 0;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.panel-head p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.panel-dark .panel-head p {
  color: #9a7f96;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 26px;
  padding: 5px 9px;
  color: #654f61;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: #fbf9f5;
  font: 600 9px/1.2 var(--mono);
  letter-spacing: 0.045em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  background: #a991a5;
  border-radius: 50%;
}

.status-badge.approved,
.status-badge.complete,
.status-badge.completed,
.status-badge.paid,
.status-badge.delivered,
.status-badge.active {
  color: #3d5900;
  border-color: #d8e9ae;
  background: var(--green-wash);
}

.status-badge.approved::before,
.status-badge.complete::before,
.status-badge.completed::before,
.status-badge.paid::before,
.status-badge.delivered::before,
.status-badge.active::before {
  background: #78a900;
}

.status-badge.pending,
.status-badge.pending_provider_activation,
.status-badge.under_review,
.status-badge.in_review,
.status-badge.processing,
.status-badge.funding,
.status-badge.funded,
.status-badge.created {
  color: var(--warning);
  border-color: #ead9a2;
  background: var(--warning-wash);
}

.status-badge.pending::before,
.status-badge.pending_provider_activation::before,
.status-badge.under_review::before,
.status-badge.in_review::before,
.status-badge.processing::before,
.status-badge.funding::before,
.status-badge.funded::before,
.status-badge.created::before {
  background: #d19712;
}

.status-badge.rejected,
.status-badge.failed,
.status-badge.cancelled,
.status-badge.error,
.status-badge.refunded,
.status-badge.returned,
.status-badge.reversed,
.status-badge.disabled {
  color: var(--danger);
  border-color: #edc5bd;
  background: var(--danger-wash);
}

.status-badge.rejected::before,
.status-badge.failed::before,
.status-badge.cancelled::before,
.status-badge.error::before,
.status-badge.refunded::before,
.status-badge.returned::before,
.status-badge.reversed::before,
.status-badge.disabled::before {
  background: #c45039;
}

.overview-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.58fr);
  gap: 34px;
  min-height: 280px;
  margin-bottom: 20px;
  padding: 35px;
}

.overview-hero h2 {
  max-width: 630px;
  margin: 17px 0 18px;
  font-size: clamp(34px, 4.5vw, 54px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
}

.overview-hero h2 em {
  color: var(--green);
  font-family: var(--serif);
  font-weight: 800;
  font-style: normal;
}

.overview-hero p {
  max-width: 610px;
  margin: 0;
  color: #b19bad;
  font-size: 13px;
  line-height: 1.65;
}

.overview-hero .button-row {
  margin-top: 28px;
}

.overview-hero .secondary-button {
  color: var(--white);
  border-color: #493946;
  background: transparent;
}

.journey-progress {
  align-self: stretch;
  padding: 21px;
  border: 1px solid #3d303b;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
}

.progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 19px;
  color: #987d94;
  font: 600 9px var(--mono);
  letter-spacing: 0.08em;
}

.progress-head strong {
  color: var(--green);
  font-size: 11px;
}

.progress-track {
  height: 4px;
  margin-bottom: 18px;
  background: #3b2f39;
}

.progress-track span {
  display: block;
  height: 100%;
  background: var(--green);
  transition: width 0.35s ease;
}

.progress-track.progress-0 span { width: 0; }
.progress-track.progress-33 span { width: 33%; }
.progress-track.progress-67 span { width: 67%; }
.progress-track.progress-100 span { width: 100%; }

.progress-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.progress-list li {
  display: grid;
  grid-template-columns: 21px 1fr;
  gap: 9px;
  align-items: center;
  color: #8d6e88;
  font-size: 10px;
}

.progress-list li span {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid #4b3b48;
  border-radius: 50%;
  font: 650 8px var(--mono);
}

.progress-list li.done {
  color: #dad1d9;
}

.progress-list li.done span {
  color: var(--ink);
  border-color: var(--green);
  background: var(--green);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.metric-card {
  display: flex;
  flex-direction: column;
  min-height: 122px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.65);
}

.metric-label {
  color: var(--muted);
  font: 600 9px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric-card strong {
  margin: auto 0 4px;
  font-size: 24px;
  font-weight: 550;
  letter-spacing: -0.035em;
}

.metric-card small {
  color: var(--muted-light);
  font-size: 9px;
}

.status-callout,
.safe-banner,
.info-banner {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbf9f5;
}

.status-callout-icon,
.banner-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--ink);
  border-radius: 50%;
  background: var(--green);
  font-size: 14px;
}

.status-callout > div,
.safe-banner > div,
.info-banner > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.status-callout strong,
.safe-banner strong,
.info-banner strong {
  font-size: 12px;
}

.status-callout p,
.safe-banner p,
.info-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.safe-banner {
  margin-bottom: 20px;
  border-color: #d7e7b3;
  background: var(--accent-wash);
}

.safe-banner .banner-icon {
  color: var(--coral);
  border: 1px solid var(--coral);
  background: rgba(255, 255, 255, 0.55);
}

.info-banner {
  margin-bottom: 20px;
  border-color: #c8dfe4;
  background: var(--info-wash);
}

.info-banner .banner-icon {
  color: var(--info);
  border: 1px solid #a9cdd5;
  background: rgba(255, 255, 255, 0.58);
}

.record-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.record-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.2fr) minmax(110px, 0.7fr) minmax(100px, 0.65fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 70px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.record-primary,
.record-detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.record-primary strong,
.record-detail strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-primary span,
.record-detail span {
  color: var(--muted-light);
  font-size: 9px;
}

.record-amount {
  font-size: 13px;
  font-weight: 650;
  text-align: right;
  white-space: nowrap;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 245px;
  padding: 28px;
  text-align: center;
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  color: #7a6076;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  background: var(--paper);
  font: 400 23px var(--serif);
}

.empty-state h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.empty-state p {
  max-width: 390px;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.recipient-layout,
.profile-layout,
.send-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: 20px;
  align-items: start;
}

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

.recipient-card {
  display: flex;
  flex-direction: column;
  min-height: 190px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.7);
}

.recipient-card-head {
  display: grid;
  grid-template-columns: 39px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
}

.recipient-avatar {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  color: var(--ink);
  background: var(--accent-wash);
  border: 1px solid #d7e9ad;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 750;
}

.recipient-card-head > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.recipient-card-head strong,
.recipient-card-head span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recipient-card-head strong {
  font-size: 12px;
}

.recipient-card-head span {
  color: var(--muted);
  font-size: 9px;
}

.recipient-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 21px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.recipient-meta div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.recipient-meta span,
.summary-list dt {
  color: var(--muted-light);
  font: 600 8px var(--mono);
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.recipient-meta strong {
  font-size: 10px;
  font-weight: 600;
}

.recipient-card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
}

.recipient-country-field {
  position: relative;
  z-index: 3;
}

.destination-combobox {
  position: relative;
}

.destination-combobox input {
  padding-right: 49px;
}

.destination-picker-toggle {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: var(--muted);
  border: 0;
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
}

.destination-picker-toggle:hover,
.destination-picker-toggle:focus-visible {
  color: var(--ink);
  background: var(--paper-deep);
}

.destination-picker-toggle[aria-expanded="true"] span {
  transform: rotate(180deg);
}

.destination-menu {
  position: absolute;
  z-index: 35;
  top: calc(100% + 7px);
  right: 0;
  left: 0;
  max-height: min(490px, 58vh);
  padding: 8px;
  overflow: auto;
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.destination-list-title,
.destination-popular h3,
.destination-group h3 {
  margin: 10px 7px 7px;
  color: var(--muted-light);
  font: 650 9px/1.3 var(--mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.destination-list-title {
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.destination-popular h3,
.destination-group h3 {
  margin-top: 12px;
}

.destination-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  width: 100%;
  min-height: 52px;
  gap: 12px;
  align-items: center;
  padding: 9px 10px;
  color: var(--ink);
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.destination-option:hover,
.destination-option:focus-visible,
.destination-option[aria-selected="true"] {
  border-color: rgba(226, 87, 59, 0.45);
  background: var(--accent-wash);
}

.destination-option > span:first-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 3px;
}

.destination-option strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.destination-option small {
  overflow: hidden;
  color: var(--muted);
  font: 500 9px/1.25 var(--mono);
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.destination-option .status-badge {
  min-height: 22px;
  padding: 4px 7px;
  font-size: 8px;
}

.destination-empty {
  padding: 19px 12px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.recipient-route-summary {
  grid-column: 1 / -1;
}

.recipient-route-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 14px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.62);
}

.recipient-route-note p {
  margin: 1px 0 0;
  font-size: 10px;
  line-height: 1.5;
}

.recipient-route-note > strong {
  color: var(--ink);
  font-size: 11px;
}

.recipient-route-note.pending_provider_activation {
  border-color: #ead9a2;
  background: var(--warning-wash);
}

.recipient-route-note.coming_soon,
.recipient-route-note.disabled {
  border-color: #ded6dd;
  background: var(--paper);
}

.recipient-detail-fields {
  min-width: 0;
  margin: 0;
  padding: 17px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.recipient-detail-fields legend {
  padding: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
}

.recipient-detail-fields > .field-hint {
  display: block;
  margin: 7px 0 16px;
}

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

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

.form-section {
  margin: 0 0 24px;
  padding: 0;
  border: 0;
}

.form-section legend {
  width: 100%;
  margin-bottom: 18px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 650;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.support-card {
  padding: 24px;
  color: var(--white);
  border: 1px solid #372b35;
  border-radius: 7px;
  background: var(--night);
}

.support-card .section-label {
  color: var(--green);
}

.support-card h3 {
  margin: 18px 0 12px;
  font-size: 25px;
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.support-card p {
  margin: 0;
  color: #a48ba0;
  font-size: 11px;
  line-height: 1.65;
}

.support-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 22px 0 0;
  padding: 0;
  border-top: 1px solid #3c303a;
  list-style: none;
}

.support-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  padding: 13px 0;
  color: #b6a3b3;
  border-bottom: 1px solid #3c303a;
  font-size: 10px;
  line-height: 1.45;
}

.support-list span {
  color: var(--green);
  font: 600 9px var(--mono);
}

.support-card .support-links {
  margin-top: 14px;
  font-size: 11px;
  color: #a48ba0;
}

.support-card .support-links a {
  color: #fbf5ec;
  text-decoration: underline;
  text-decoration-color: rgba(251, 245, 236, 0.35);
  text-underline-offset: 3px;
}

.support-card .support-links a:hover,
.support-card .support-links a:focus-visible {
  color: var(--green);
}

.stepper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.58);
}

.stepper-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 11px 16px;
  color: var(--muted-light);
  border-right: 1px solid var(--line);
  font-size: 10px;
}

.stepper-step:last-child {
  border-right: 0;
}

.stepper-step span {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  font: 600 8px var(--mono);
}

.stepper-step.current,
.stepper-step.done {
  color: var(--ink);
  font-weight: 650;
}

.stepper-step.current span,
.stepper-step.done span {
  color: var(--ink);
  border-color: var(--green-dark);
  background: var(--green);
}

.amount-input-wrap {
  position: relative;
}

.amount-input-wrap input {
  min-height: 66px;
  padding-right: 90px;
  font-size: 24px;
  font-weight: 550;
  letter-spacing: -0.025em;
}

.amount-input-wrap span {
  position: absolute;
  top: 50%;
  right: 14px;
  padding-left: 12px;
  color: var(--muted);
  border-left: 1px solid var(--line);
  font: 650 11px var(--mono);
  transform: translateY(-50%);
}

.quote-card {
  position: sticky;
  top: 96px;
}

.quote-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  padding: 24px;
  color: #92748d;
  text-align: center;
}

.quote-placeholder span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border: 1px solid #433541;
  border-radius: 50%;
  font: 22px var(--serif);
}

.quote-placeholder strong {
  margin-bottom: 7px;
  color: #ede7de;
  font-size: 13px;
}

.quote-placeholder p {
  max-width: 260px;
  margin: 0;
  color: #92748d;
  font-size: 10px;
  line-height: 1.55;
}

.quote-amount {
  padding: 22px 0;
  border-top: 1px solid #3c303a;
  border-bottom: 1px solid #3c303a;
}

.quote-amount span {
  display: block;
  margin-bottom: 8px;
  color: #92758d;
  font: 600 8px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quote-amount strong {
  color: var(--green);
  font-size: 27px;
  font-weight: 550;
  letter-spacing: -0.035em;
}

.summary-list {
  margin: 0;
}

.summary-list div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  min-height: 43px;
  border-bottom: 1px solid var(--line);
}

.panel-dark .summary-list div {
  border-color: #3c303a;
}

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

.summary-list dd {
  max-width: 230px;
  font-size: 11px;
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
}

.panel-dark .summary-list dt {
  color: #8d6f88;
}

.panel-dark .summary-list dd {
  color: #e2dae1;
}

.quote-note {
  margin: 16px 0 0;
  color: #8b6e86;
  font-size: 9px;
  line-height: 1.55;
}

.lock-card {
  margin-top: 18px;
  padding: 17px;
  color: #775e73;
  border: 1px solid #dcd3db;
  border-radius: 5px;
  background: #f3eee7;
}

.lock-card-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 7px;
  color: var(--ink);
}

.lock-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid #c6b7c4;
  border-radius: 50%;
  font-size: 10px;
}

.lock-card strong {
  font-size: 11px;
}

.lock-card p {
  margin: 0;
  font-size: 9px;
  line-height: 1.55;
}

.review-check {
  margin: 20px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fbf9f5;
}

.activity-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

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

.filter-button {
  min-height: 34px;
  padding: 7px 11px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.65);
  font-size: 9px;
  cursor: pointer;
}

.filter-button[aria-pressed="true"] {
  color: var(--ink);
  border-color: var(--green-dark);
  background: var(--accent-wash);
  font-weight: 650;
}

.profile-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 20px;
  text-align: center;
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 16px;
  color: var(--ink);
  border: 6px solid #ebf3dc;
  border-radius: 50%;
  background: var(--green);
  font-size: 20px;
  font-weight: 750;
}

.profile-summary h3 {
  margin: 0 0 5px;
  font-size: 17px;
}

.profile-summary > p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 10px;
}

.account-facts {
  width: 100%;
  margin-top: 22px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.account-facts div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
}

.account-facts span {
  color: var(--muted);
}

.error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 460px;
  padding: 40px 20px;
  text-align: center;
}

.error-state .empty-icon {
  color: var(--danger);
  border-color: #ebc1b8;
  background: var(--danger-wash);
}

.error-state h1 {
  margin: 0 0 10px;
  font-size: 31px;
  font-weight: 550;
  letter-spacing: -0.04em;
}

.error-state p {
  max-width: 500px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.toast-region {
  position: fixed;
  z-index: 100;
  right: 22px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: min(360px, calc(100vw - 30px));
  pointer-events: none;
}

.toast {
  display: grid;
  grid-template-columns: 27px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 13px 14px;
  color: var(--white);
  border: 1px solid #42333f;
  border-radius: 5px;
  background: var(--night);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.2);
  pointer-events: auto;
  animation: toast-in 0.25s ease both;
}

.toast > span:first-child {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  color: var(--ink);
  border-radius: 50%;
  background: var(--green);
  font-size: 10px;
}

.toast.error > span:first-child {
  color: var(--white);
  background: #c8563f;
}

.toast strong {
  display: block;
  margin-bottom: 2px;
  font-size: 10px;
}

.toast p {
  margin: 0;
  color: #a48ba0;
  font-size: 9px;
  line-height: 1.4;
}

.toast button {
  width: 28px;
  height: 28px;
  padding: 0;
  color: #9c8197;
  border: 0;
  background: transparent;
  cursor: pointer;
}

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

.noscript-message {
  position: fixed;
  z-index: 999;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 30px;
  color: var(--white);
  background: var(--night);
  text-align: center;
}

@media (max-width: 1120px) {
  .login-layout {
    grid-template-columns: minmax(390px, 0.82fr) minmax(500px, 1.18fr);
  }

  .journey-steps {
    grid-template-columns: 1fr;
  }

  .journey-step {
    min-height: 52px;
  }

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

  .journey-progress {
    min-height: 210px;
  }

  .recipient-layout,
  .profile-layout,
  .send-layout {
    grid-template-columns: minmax(0, 1fr) minmax(270px, 0.55fr);
  }
}

@media (max-width: 900px) {
  .login-layout {
    display: block;
  }

  .login-story {
    display: none;
  }

  .login-panel {
    min-height: 100vh;
  }

  .app-sidebar {
    width: min(294px, calc(100vw - 45px));
    transform: translateX(-105%);
    transition: transform 0.24s ease;
    box-shadow: 25px 0 60px rgba(0, 0, 0, 0.24);
  }

  .sidebar-top {
    padding-right: 0;
  }

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

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

  .sidebar-scrim {
    position: fixed;
    z-index: 45;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(3, 6, 4, 0.52);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease;
  }

  .app-frame.sidebar-open .sidebar-scrim {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  .app-main {
    margin-left: 0;
  }

  .app-topbar {
    justify-content: space-between;
    min-height: 68px;
    padding-inline: 22px;
  }

  .menu-button {
    display: inline-grid;
    color: var(--ink);
    border-color: var(--line);
  }

  .menu-button:hover {
    color: var(--ink);
    border-color: var(--line-dark);
    background: var(--white);
  }

  .mobile-brand {
    display: inline-flex;
    margin-left: 9px;
  }

  .mobile-brand .brand-mark {
    width: 22px;
    height: 22px;
    transform: scale(0.82) rotate(-8deg);
  }

  .mobile-brand strong {
    font-size: 14px;
  }

  .topbar-meta {
    margin-left: auto;
  }

  .marketing-link {
    display: none;
  }

  .app-content {
    padding: 42px 22px 105px;
  }

  .app-footer {
    margin-bottom: 66px;
    padding-inline: 22px;
  }

  .mobile-nav {
    position: fixed;
    z-index: 40;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    min-height: 67px;
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid var(--line-dark);
    background: rgba(250, 251, 248, 0.96);
    backdrop-filter: blur(15px);
  }

  .mobile-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    color: #8a6c85;
    font-size: 8px;
  }

  .mobile-nav a > span {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 1px solid transparent;
    border-radius: 50%;
    font-size: 12px;
  }

  .mobile-nav a[aria-current="page"] {
    color: var(--ink);
    font-weight: 700;
  }

  .mobile-nav a[aria-current="page"] > span {
    color: var(--ink);
    border-color: var(--green-dark);
    background: var(--green);
  }

  .recipient-layout,
  .profile-layout,
  .send-layout {
    grid-template-columns: 1fr;
  }

  .quote-card {
    position: static;
  }
}

@media (max-width: 680px) {
  .login-panel {
    padding: 23px 20px 20px;
  }

  .login-panel-top .preview-pill {
    display: none;
  }

  .auth-card {
    padding: 55px 0 42px;
  }

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

  .page-header {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 28px;
  }

  .page-actions {
    width: 100%;
  }

  .page-actions .action-button,
  .page-actions .secondary-button {
    flex: 1;
  }

  .overview-hero {
    padding: 25px;
  }

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

  .form-grid .full-span {
    grid-column: auto;
  }

  .status-callout,
  .safe-banner,
  .info-banner {
    grid-template-columns: 38px 1fr;
  }

  .status-callout > :last-child,
  .safe-banner > :last-child,
  .info-banner > :last-child {
    grid-column: 1 / -1;
  }

  .record-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 15px 0;
  }

  .record-detail {
    grid-column: 1;
  }

  .record-row .status-badge,
  .record-amount {
    grid-column: 2;
  }

  .stepper-step {
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 8px 5px;
    text-align: center;
  }

  .form-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .form-actions button {
    width: 100%;
  }

  .app-footer {
    flex-direction: column;
    gap: 7px;
  }

  .app-footer span:last-child {
    text-align: left;
  }

  .toast-region {
    right: 15px;
    bottom: 82px;
  }
}

@media (max-width: 420px) {
  .topbar-meta .preview-pill {
    display: none;
  }

  .auth-heading h2 {
    font-size: 38px;
  }

  .overview-hero .button-row,
  .page-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .overview-hero .button-row > *,
  .page-actions > * {
    width: 100%;
  }

  .recipient-card-head {
    grid-template-columns: 39px minmax(0, 1fr);
  }

  .recipient-card-head .status-badge {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  .brand-mark svg,
  .status-badge::before,
  .trust-dot,
  .preview-pill i {
    forced-color-adjust: none;
  }
}

/* Exact Receive: choosing which side of the transfer you are deciding. */
.basis-toggle{display:flex;gap:6px;margin-bottom:14px;padding:4px;border-radius:999px;background:rgba(58,31,56,.06)}
.basis-option{flex:1;padding:9px 12px;border:0;border-radius:999px;background:transparent;font:inherit;font-size:13px;font-weight:600;color:#6b5566;cursor:pointer;transition:background .15s,color .15s}
.basis-option[aria-checked="true"]{background:var(--cream,#FBF5EC);color:var(--plum,#3A1F38);box-shadow:0 1px 3px rgba(58,31,56,.12)}
.basis-option:focus-visible{outline:2px solid var(--green,#E2573B);outline-offset:2px}
.amount-currency{display:inline-flex;align-items:center;padding:0 14px;font-size:13px;font-weight:600;color:#6b5566;white-space:nowrap}

/* Founding pricing: our fee is zero and the quote says so plainly. */
.fee-waived{font-weight:600}
.fee-badge{display:inline-block;margin-left:6px;padding:2px 8px;border-radius:999px;background:rgba(226,87,59,.12);color:var(--coral,#E2573B);font-size:10px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;vertical-align:middle}
.founding-note{padding:12px 14px;border-radius:12px;background:rgba(240,164,58,.10);border:1px solid rgba(240,164,58,.28)}
.founding-note strong{display:block;margin-bottom:2px}

/* ---------------------------------------------------------------- spaces --
   A space is an obligation the customer named.  The card leads with the
   amount, because that is the number they came to check, and carries the day
   it falls due where a due date belongs: top right, like a bill. */

.space-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(288px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.space-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.space-top {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  margin-bottom: 4px;
}

.space-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: var(--accent-wash);
  color: var(--green-dark);
  font-size: 16px;
  line-height: 1;
}

.space-title h3 {
  margin: 0;
  font: 600 16px/1.25 var(--sans);
  color: var(--ink);
  overflow-wrap: anywhere;
}

.space-title span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font: 500 11px var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.space-due {
  padding: 4px 9px;
  border-radius: 3px;
  background: var(--paper-deep);
  color: var(--ink-soft);
  font: 600 10px var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.space-amount {
  margin: 6px 0 0;
  font: 700 30px/1.05 var(--sans);
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.space-meta {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.45;
}

.space-meta strong {
  color: var(--ink-soft);
  font-weight: 600;
}

.space-warn {
  color: var(--danger);
  font-weight: 500;
}

.space-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.space-actions .action-button {
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
}

.quiet-button.danger {
  color: var(--danger);
}

@media (max-width: 560px) {
  .space-grid { grid-template-columns: minmax(0, 1fr); }
  .space-amount { font-size: 26px; }
}
