:root {
  --ink: #1c1915;
  --muted: #6d645b;
  --line: #e4dcd2;
  --paper: #f6f1ea;
  --card: #fffcf8;
  --accent: #1f4d3a;
  --accent-soft: #e5f0ea;
  --wait: #8a5a12;
  --wait-soft: #f8ecd9;
  color-scheme: light;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 28px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

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

.brand strong, .who strong { display: block; font-size: 15px; }
.brand span, .who span { display: block; color: var(--muted); font-size: 13px; }

.brand .mark, .site-foot .mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent);
  display: grid;
  place-items: center;
  color: #fff;
  font-family: "Iowan Old Style", Palatino, serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.mark::before { content: "LD"; }

.staff-signin-brand { color: inherit; text-decoration: none; }
#staff-signin a { color: var(--accent); }

main {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 72px;
}

.screen { padding-top: 12px; }

.lead {
  max-width: 38rem;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
}

.screen button:not(.text),
.card button[type="submit"],
.send-row button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--accent);
  color: white;
  font: inherit;
  cursor: pointer;
}

form { display: grid; gap: 16px; max-width: 28rem; margin-top: 8px; }
fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
legend { margin-bottom: 4px; color: var(--muted); font-size: 14px; }
.choice { display: flex; gap: 8px; align-items: center; }
.field { display: grid; gap: 6px; color: var(--muted); font-size: 14px; }
.field input { width: 100%; }
.field input,
.field select {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background-color: var(--card);
}

.field select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236d645b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

.field select[aria-invalid] { border-color: #b4532a; }

.field input:focus,
.field select:focus,
.kind:has(input:focus-visible),
.pill:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.about { max-width: 34rem; gap: 22px; }

.kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.kind {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 16px 16px 16px 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  cursor: pointer;
}

.kind input {
  position: absolute;
  left: 16px;
  top: 18px;
  margin: 0;
  accent-color: var(--accent);
}

.kind strong { color: var(--ink); font-size: 16px; }
.kind span { color: var(--muted); font-size: 13px; line-height: 1.4; }

.kind:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.pill input { accent-color: var(--accent); }

.years {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.year {
  position: relative;
  display: grid;
  place-items: center;
  padding: 12px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  font-size: 16px;
  cursor: pointer;
}

.year input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.year:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.year:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.field input[aria-invalid] { border-color: #b4532a; }
.field-hint { color: var(--muted); font-size: 13px; }
.error { color: #b4532a; font-size: 13px; }
.error:empty { display: none; }
.field:has(.error:not(:empty)) .field-hint { display: none; }

.note { margin: 0; color: var(--muted); font-size: 14px; }
.note .text, .forgot .text, .links .text { font-size: inherit; }
.promo {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 4px 14px 4px 4px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 14px;
}

.promo strong {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.promo a { color: inherit; font-weight: 600; text-underline-offset: 3px; }

.portal-switch { margin-top: 18px; text-align: center; }
.portal-switch a { color: var(--accent); }

main:has(.signup) { width: min(1040px, calc(100% - 32px)); }

.signup {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 420px);
  gap: 48px;
  align-items: start;
  padding-top: 12px;
}

.how {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 18px;
  counter-reset: how;
}

.how li {
  display: grid;
  grid-template-columns: 32px 1fr;
  column-gap: 12px;
  counter-increment: how;
}

.how li::before {
  content: counter(how);
  grid-row: span 2;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 600;
}

.how span { color: var(--muted); font-size: 15px; }

.card {
  max-width: none;
  margin-top: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  gap: 14px;
}

.card h2 { margin: 0 0 4px; font-size: 20px; }

.screen.narrow .card { max-width: 28rem; margin-top: 24px; }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.pw { position: relative; display: block; }
.pw input { width: 100%; padding-right: 64px; }
.pw .text {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
}

.check input { margin-top: 2px; }

.forgot { margin: -6px 0 0; text-align: right; font-size: 14px; }

.links { display: flex; gap: 20px; margin: 16px 0 0; }

.who .ghost { padding: 6px 14px; }

.check a, .doc a { color: var(--accent); }

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

a.file-link { color: var(--accent); text-underline-offset: 3px; overflow-wrap: anywhere; }

.file-missing { color: var(--wait); font-weight: 400; font-size: 13px; }

.file-viewer {
  width: min(960px, calc(100vw - 32px));
  height: min(900px, calc(100vh - 32px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  color: var(--ink);
}

.file-viewer[open] { display: flex; flex-direction: column; }

.file-viewer::backdrop { background: rgba(30, 26, 20, 0.45); }

.file-viewer-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.file-viewer-name { flex: 1; overflow-wrap: anywhere; }

.file-viewer-download { color: var(--accent); font-size: 14px; }

.file-viewer-body { flex: 1; min-height: 0; display: flex; background: #e9e4dc; }

.file-viewer-body iframe { flex: 1; border: 0; background: #fff; }

.file-viewer-body img { margin: auto; max-width: 100%; max-height: 100%; object-fit: contain; }

.file-viewer-empty { margin: auto; padding: 24px; color: var(--muted); }

.file-viewer-text { flex: 1; margin: 0; padding: 16px 20px; overflow: auto; background: #fff; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }

.doc { width: min(720px, calc(100% - 32px)); line-height: 1.6; }
.doc h2 { margin: 36px 0 8px; font-size: 20px; }
.doc p, .doc li { color: #3d3730; }
.doc ul { padding-left: 20px; }
.doc li { margin-bottom: 6px; }
.doc section { scroll-margin-top: 16px; }
.doc section:target h2 { color: var(--accent); }

.updated { margin: 8px 0 0; color: var(--muted); font-size: 14px; }

.draft {
  margin: 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--wait-soft);
  color: var(--wait);
  font-size: 14px;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 8px;
}

.toc a {
  padding: 6px 10px;
  border-radius: 999px;
  background: #efe8df;
  color: var(--ink);
  font-size: 13px;
  text-decoration: none;
}

.placeholder { padding: 1px 6px; border-radius: 6px; background: var(--wait-soft); color: var(--wait); }

.legal-top-links { display: flex; gap: 20px; font-size: 14px; }
.legal-top-links a { color: var(--ink); text-decoration: none; white-space: nowrap; }
.legal-top-links a:hover { color: var(--accent); }

.doc.legal { width: min(1080px, calc(100% - 32px)); }
.legal-head { max-width: 760px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.legal-head h1 { font-size: 44px; }
.legal-intro { margin: 16px 0 0; color: var(--muted); font-size: 17px; line-height: 1.6; }

.legal-body {
  display: grid;
  grid-template-columns: 230px minmax(0, 760px);
  gap: 56px;
  align-items: start;
  padding-top: 32px;
  counter-reset: legal;
}

.legal-toc {
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.35;
}
.legal-toc > p { margin: 0 0 10px; color: var(--muted); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.legal-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; border-left: 1px solid var(--line); }
.legal-toc li { margin: 0; counter-increment: toc; }
.legal-toc a {
  display: flex;
  gap: 8px;
  margin-left: -1px;
  padding: 6px 0 6px 14px;
  border-left: 2px solid transparent;
  color: var(--muted);
  text-decoration: none;
}
.legal-toc a::before { content: counter(toc) "."; min-width: 1.4em; color: #a89c8f; font-variant-numeric: tabular-nums; }
.legal-toc a:hover { color: var(--ink); }
.legal-toc a.is-active { border-left-color: var(--accent); color: var(--accent); font-weight: 600; }
.legal-toc a.is-active::before { color: var(--accent); }

.legal-text > section { counter-increment: legal; padding-top: 4px; scroll-margin-top: 24px; }
.legal-text > section + section { margin-top: 12px; padding-top: 28px; border-top: 1px solid var(--line); }
.legal-text > section > h2 { display: flex; gap: 12px; align-items: baseline; margin: 0 0 12px; font-size: 22px; }
.legal-text > section > h2::before {
  content: counter(legal);
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  transform: translateY(-2px);
}
.legal-text h3 { margin: 22px 0 6px; font-size: 16px; }
.legal-text p { margin: 0 0 12px; }
.legal-text a { color: var(--accent); }
.legal-text li strong, .legal-text p strong { color: var(--ink); }

.legal-summary {
  margin: 0 0 36px;
  padding: 22px 24px;
  border: 1px solid #cfe0d6;
  border-radius: 16px;
  background: var(--accent-soft);
}
.legal-summary h2 { margin: 0 0 12px; color: var(--accent); font-size: 18px; }
.legal-summary ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.legal-summary li {
  position: relative;
  margin: 0;
  padding-left: 28px;
  color: var(--ink);
}
.legal-summary li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.32em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.legal-table { margin: 16px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.legal-table table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 14px; line-height: 1.45; }
.legal-table th, .legal-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-table thead th { background: #f1ebe3; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; }
.legal-table tbody th { width: 22%; color: var(--ink); font-weight: 600; }
.legal-table td { color: #3d3730; }
.legal-table tbody tr:last-child > * { border-bottom: 0; }

.legal-contacts { display: grid; gap: 8px; padding: 18px 20px !important; border: 1px solid var(--line); border-radius: 14px; background: var(--card); list-style: none; }
.legal-contacts li { margin: 0; }

@media (max-width: 900px) {
  .legal-body { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .legal-toc { position: static; max-height: none; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
  .legal-toc ol { columns: 2; column-gap: 24px; border-left: 0; }
  .legal-toc li { break-inside: avoid; }
  .legal-toc a { margin-left: 0; padding: 5px 0; border-left: 0; }
  .legal-toc a.is-active { font-weight: 400; color: var(--muted); }
  .legal-toc a.is-active::before { color: #a89c8f; }
}

@media (max-width: 560px) {
  .legal-top-links a:first-child { display: none; }
  .legal-head h1 { font-size: 34px; }
  .legal-toc ol { columns: 1; }
  .legal-summary { padding: 18px; }
  .legal-text > section > h2 { font-size: 20px; }
}

.proto {
  margin: 24px 0 12px;
  padding: 14px 16px;
  border: 1px dashed #cfc4b8;
  border-radius: 14px;
}

.proto p { margin: 0 0 10px; color: var(--muted); font-size: 14px; }

.proto button {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--ink);
  color: white;
  font: inherit;
  cursor: pointer;
}

.questions { max-width: 36rem; gap: 12px; }

.question {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

.question-text {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 16px;
}

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

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.pill:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.row.static { cursor: default; }

body:has(> .site-foot) { display: flex; flex-direction: column; min-height: 100vh; }
body:has(> .site-foot) > main { flex: 1 0 auto; }

.site-foot { border-top: 1px solid var(--line); background: var(--card); color: var(--muted); font-size: 14px; }
.site-foot:empty { display: none; }
.site-foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin: 0; padding: 24px 28px; }
.site-foot-brand { display: flex; align-items: center; gap: 12px; }
.site-foot-brand strong { display: block; color: var(--ink); font-size: 15px; }
.site-foot-brand span { display: block; font-size: 13px; }
.site-foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-foot-links a { color: var(--ink); text-decoration: none; }
.site-foot-links a:hover { color: var(--accent); text-decoration: underline; }
.site-foot-links a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.site-foot-base { display: block; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; }
.site-foot-demo { display: block; padding-top: 12px; padding-bottom: 12px; border-top: 1px dashed #e2cfa9; background: var(--wait-soft); color: var(--wait); font-size: 13px; }
.site-foot-demo a, .site-foot-demo .text { color: var(--wait); font: inherit; cursor: pointer; }
.site-foot-demo a { text-decoration: underline; }

.accountant-note {
  padding: 10px 12px;
  border-left: 3px solid var(--wait);
  border-radius: 0 10px 10px 0;
  background: var(--wait-soft);
  color: var(--ink);
}

body.preview main { pointer-events: none; }
body.preview .site-foot { display: none; }
.proto-tools { color: var(--muted); font-size: 14px; }
.edit-answers { margin: 14px 0 0; }

.next-steps { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: step; }

.next-steps li {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 14px 16px 14px 56px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  counter-increment: step;
}

.next-steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 14px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  line-height: 26px;
  text-align: center;
}

.next-steps span { color: var(--muted); font-size: 14px; }

.queue,
.accountant {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  max-width: 28rem;
}

.queue div,
.accountant div { display: grid; gap: 2px; }
.queue strong,
.accountant strong { font-size: 15px; }
.queue span:not(.pulse),
.accountant span:not(.avatar) { color: var(--muted); font-size: 13px; }

.pulse {
  position: relative;
  flex: none;
  width: 12px;
  height: 12px;
  margin: 0 4px;
  border-radius: 99px;
  background: var(--wait);
}

.pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--wait);
  animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse {
  from { transform: scale(1); opacity: 0.6; }
  to { transform: scale(2.6); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .pulse::after { animation: none; }
}

.accountant.full {
  align-items: flex-start;
  gap: 18px;
  padding: 20px;
  max-width: 32rem;
}

.accountant.full strong { font-size: 20px; font-family: "Iowan Old Style", Palatino, serif; }
.accountant.full .avatar { width: 80px; height: 80px; }
.accountant span.label {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.facts {
  display: grid;
  gap: 4px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.facts li {
  position: relative;
  padding-left: 16px;
  color: var(--ink);
  font-size: 14px;
}

.facts li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--accent);
}

.accountant .took { margin-top: 8px; }

.avatar {
  flex: none;
  object-fit: cover;
  width: 44px;
  height: 44px;
  border-radius: 99px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: white;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.fixed { margin: 0; color: var(--muted); }
.fixed strong { color: var(--ink); }
.hint { min-height: 1.2em; margin: 0; color: var(--wait); font-size: 14px; }

.switch {
  display: inline-flex;
  padding: 4px;
  background: #efe8df;
  border-radius: 999px;
}

.switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
}

.switch button.on {
  background: var(--card);
  color: var(--ink);
}

.eyebrow {
  margin: 28px 0 8px;
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.statusline {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.45;
}

.statusline time {
  color: var(--ink);
  font-weight: 600;
}

.meter { margin-top: 18px; }

.meter-track {
  height: 8px;
  border-radius: 999px;
  background: #efe8df;
  overflow: hidden;
}

.meter-track span {
  display: block;
  height: 100%;
  background: var(--accent);
}

.meter p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.rail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.rail li {
  padding: 6px 10px;
  border-radius: 999px;
  background: #efe8df;
  color: var(--muted);
  font-size: 13px;
}

.rail li.done { background: var(--accent-soft); color: var(--accent); }
.rail li.current { background: var(--accent); color: white; }

main:has(.cabinet) { width: min(1120px, calc(100% - 32px)); }

.cabinet {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  grid-template-rows: auto 1fr;
  grid-template-areas: "head side" "main side";
  column-gap: 40px;
  align-items: start;
}

.cab-head { grid-area: head; }
.cab-main { grid-area: main; }

.cab-side {
  grid-area: side;
  display: grid;
  gap: 14px;
  margin-top: 28px;
  position: sticky;
  top: 20px;
}

.cab-side .queue,
.cab-side .accountant { margin: 0; max-width: none; }
.cab-side .accountant.full { gap: 14px; padding: 18px; }
.cab-side .accountant.full .avatar { width: 64px; height: 64px; }

.side-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}

.side-card h2 {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.stepper li {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 0 0 14px 26px;
  color: var(--muted);
  font-size: 14px;
}

.stepper li:last-child { padding-bottom: 0; }

.stepper li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 12px;
  height: 12px;
  border: 2px solid #cfc4b8;
  border-radius: 99px;
  background: var(--card);
}

.stepper li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 17px;
  bottom: 1px;
  width: 2px;
  background: var(--line);
}

.stepper li:last-child::after { display: none; }
.stepper strong { font-weight: 400; }
.stepper span { flex: none; font-size: 12px; }
.stepper li.done { color: var(--ink); }
.stepper li.done::before { border-color: var(--accent); background: var(--accent); }
.stepper li.done::after { background: var(--accent); }
.stepper li.current { color: var(--ink); }
.stepper li.current strong { font-weight: 600; }
.stepper li.current::before { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

.deadline strong {
  display: block;
  font-family: "Iowan Old Style", Palatino, serif;
  font-size: 22px;
  font-weight: 600;
}

.deadline p { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.4; }

.activity { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.activity li { display: grid; gap: 2px; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.activity time { color: var(--muted); font-size: 12px; }

.copy .row-file { color: var(--ink); font-size: 13px; overflow-wrap: anywhere; }
.item.open .row-file { display: none; }

@media (max-width: 900px) {
  .cabinet { display: flex; flex-direction: column; align-items: stretch; }
  .cab-side { display: contents; }
  .cab-side > * { order: 1; margin-top: 14px; }
  .cab-side > .queue,
  .cab-side > .accountant { order: 0; margin-top: 20px; }
  .cab-main { margin-bottom: 14px; }
}

@media (max-width: 520px) {
  .top { padding: 14px 16px; }
  .site-foot-in { padding: 20px 16px; }
  .site-foot-base, .site-foot-demo { padding-top: 14px; padding-bottom: 14px; }
  .brand strong, .who .text { white-space: nowrap; }
  .who > div span { display: none; }
  .who .account-name { display: none; }
  .settings-body .codes { grid-template-columns: 1fr; }
}

.list-head h2 {
  margin: 32px 0 6px;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.list-head p {
  margin: 0 0 12px;
  color: var(--muted);
}

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.item.current { border-color: var(--accent); }

.row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.copy { display: grid; gap: 2px; flex: 1; }
.copy strong { font-size: 16px; }
.copy span, .body, .file { color: var(--muted); font-size: 14px; }

.dot {
  width: 12px;
  height: 12px;
  border-radius: 99px;
  border: 2px solid #cfc4b8;
  flex: none;
}

.item.done .dot { background: var(--accent); border-color: var(--accent); }
.item.current .dot { background: var(--wait); border-color: var(--wait); }

.tag {
  flex: none;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 999px;
}

.tag.have, .tag.na { background: var(--accent-soft); color: var(--accent); }
.tag.missing, .tag.ask, .tag.need { background: var(--wait-soft); color: var(--wait); }

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

.ghost {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.body {
  display: none;
  padding: 0 16px 16px 40px;
}

.item.open .body { display: block; }

.body p { margin: 0 0 10px; line-height: 1.45; }

.file {
  margin: 0 0 10px;
  color: var(--ink);
}

.upload, .text, #send {
  font: inherit;
  cursor: pointer;
}

.upload {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
}

.upload input { display: none; }

.text {
  border: 0;
  background: transparent;
  color: var(--wait);
  padding: 0;
}

.send-row { margin-top: 18px; }

#send {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--accent);
  color: white;
}

#send:disabled {
  background: #efe8df;
  color: var(--muted);
  cursor: default;
}

#send-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.account-menu { position: relative; }

.account-menu summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 12px 4px 4px;
  border-radius: 999px;
  list-style: none;
  cursor: pointer;
}

.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary:hover,
.account-menu[open] summary { background: var(--paper); }
.account-menu summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.account-menu summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin: -3px 2px 0 2px;
  border-right: 1.6px solid var(--muted);
  border-bottom: 1.6px solid var(--muted);
  transform: rotate(45deg);
}

.who .avatar-sm {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 99px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.who .account-name { color: var(--ink); font-size: inherit; text-align: right; }

.menu-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  display: grid;
  min-width: 230px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 12px 32px rgba(28, 25, 21, 0.12);
}

.menu-pop button {
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}

.menu-pop button:hover { background: var(--paper); }

.menu-pop #sign-out {
  margin-top: 6px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 10px 10px;
  color: var(--wait);
}

main:has(.settings-page) { width: min(980px, calc(100% - 32px)); }

.back-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.settings-page .eyebrow { margin-top: 20px; }

.settings {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  margin-top: 28px;
}

.settings-nav { display: grid; gap: 4px; position: sticky; top: 20px; }

.settings-nav button {
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}

.settings-nav button:hover { color: var(--ink); }

.settings-nav button[aria-current] {
  border-color: var(--line);
  background: var(--card);
  color: var(--ink);
  font-weight: 600;
}

.settings-body { display: grid; gap: 16px; }
.settings-body .card { display: grid; max-width: none; margin: 0; }
.settings-body .card h2 { display: flex; align-items: center; gap: 10px; }
.settings-body .card h3 { margin: 10px 0 -6px; font-size: 16px; }
.settings-body .card > button[type="submit"] { justify-self: start; }

.card-sub { margin: -6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.card-sub strong { color: var(--ink); }

.saved {
  margin: 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 14px;
}

.static { margin: 0; color: var(--ink); font-size: 16px; }

.address-row { display: grid; grid-template-columns: 1.4fr 1fr 0.8fr; gap: 12px; }

.msgr { display: grid; gap: 10px; }
.msgr .field[hidden] { display: none; }
.msgr .error:empty { display: none; }
.msgr > .field-hint { margin: -2px 0 0; }
.msgr .nowrap { white-space: nowrap; }
.msgr-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.msgr-option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.msgr-option:hover { border-color: #cfc4b8; }
.msgr-option input { position: absolute; opacity: 0; pointer-events: none; }
.msgr-option .msgr-icon { width: 28px; height: 28px; }
.msgr-option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.msgr-option:has(input:checked)::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 16px;
  height: 16px;
  border-radius: 99px;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.msgr-option:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 1px; }
.msgr-inline { display: inline-flex; align-items: center; gap: 6px; }

.primary, .danger-btn {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--accent);
  color: white;
  font: inherit;
  cursor: pointer;
}

.danger-btn { background: #b4532a; }
.ghost.danger { color: #b4532a; }

.sound-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
}
.sound-toggle svg { flex: none; width: 16px; height: 16px; }
.sound-toggle.compact { padding: 0; }
.sound-toggle.compact svg { width: 18px; height: 18px; }
.sound-toggle.off { color: var(--muted); }
.sound-toggle.blocked { border-color: #e2cfa9; background: var(--wait-soft); color: var(--wait); }
.sound-toggle:hover { border-color: currentColor; }
.who .sound-toggle span { display: inline; color: inherit; font-size: inherit; }
@media (max-width: 520px) { .who .sound-toggle span { display: none; } }
#tfa > .primary { justify-self: start; }

.inset {
  max-width: none;
  margin: 0;
  padding: 16px;
  border-radius: 14px;
  background: var(--paper);
}

.tfa-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.option {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.option:hover { border-color: var(--accent); }
.option strong { font-size: 16px; }
.option span { color: var(--muted); font-size: 13px; line-height: 1.4; }

.setup-steps { margin: 0; padding-left: 20px; display: grid; gap: 10px; font-size: 15px; line-height: 1.45; }
.setup-steps .field-hint { display: block; margin-top: 4px; }
.setup-steps a, .secure .text { color: var(--accent); }

.secret, .codes code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: 0.04em;
}

.secret {
  display: block;
  width: fit-content;
  margin-top: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--paper);
  font-size: 16px;
  user-select: all;
}

.codes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
  margin: 0;
  padding: 16px 16px 16px 40px;
  border-radius: 14px;
  background: var(--paper);
  font-size: 16px;
}

.secure p { margin: 0 0 10px; font-size: 14px; line-height: 1.45; }

.reach { display: grid; gap: 10px; margin-top: 14px; }
.reach-pref { margin: 0; color: var(--muted); font-size: 14px; }
.reach-pref strong { color: var(--ink); }
.reach-links { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }

.reach-link {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
}

.reach-link:hover { border-color: var(--accent); }
.reach-link.preferred { border-color: var(--accent); background: var(--accent); color: white; }
.reach-link:has(.msgr-icon) { display: inline-flex; align-items: center; gap: 6px; padding-left: 8px; }
.reach-link .msgr-icon { padding: 2px; border-radius: 99px; background: white; box-sizing: content-box; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.ask-banner {
  margin: 0 0 24px;
  padding: 18px 20px;
  border: 1px solid #ecd6b3;
  border-left: 4px solid var(--wait);
  border-radius: 16px;
  background: var(--wait-soft);
}

.ask-banner.urgent { border-color: #e7b9a4; border-left-color: #b4532a; background: #fbe9e1; }
.ask-banner h2 { margin: 2px 0 8px; font-size: 20px; }
.ask-reason { margin: 0; color: var(--wait); font-size: 13px; font-weight: 600; }
.ask-banner.urgent .ask-reason { color: #b4532a; }
.ask-text { margin: 0; font-size: 16px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.ask-time { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.ask-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ask-phone { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.ask-phone a { color: var(--accent); }

.callback {
  max-width: none;
  margin-top: 14px;
  padding: 16px;
  border-radius: 14px;
  background: var(--card);
}

.callback .primary { justify-self: start; }
.callback .text { color: var(--accent); font-size: inherit; text-decoration: underline; }

.thread { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.thread-empty { margin: 0; color: var(--muted); font-size: 14px; }

.msg { display: grid; gap: 4px; max-width: 85%; justify-self: start; }
.msg.mine { justify-self: end; justify-items: end; }
.msg-meta { margin: 0; color: var(--muted); font-size: 12px; }
.msg-meta strong { color: var(--ink); font-weight: 600; }

.msg-bubble {
  padding: 10px 14px;
  border-radius: 4px 16px 16px 16px;
  background: var(--paper);
}

.msg.mine .msg-bubble { border-radius: 16px 4px 16px 16px; background: var(--accent-soft); }
.msg-text { margin: 0; font-size: 15px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-flag { margin: 0 0 4px; color: var(--muted); font-size: 12px; font-weight: 600; }
.msg-flag.open { color: var(--wait); }
.msg-seen { margin: 0; color: var(--muted); font-size: 12px; }

.msg.fresh .msg-meta::after {
  content: "New";
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 99px;
  background: var(--wait-soft);
  color: var(--wait);
  font-size: 11px;
  font-weight: 600;
}

.chat-dock {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  display: grid;
  justify-items: end;
  gap: 12px;
}
.chat-launcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 56px;
  height: 56px;
  padding: 0 22px 0 18px;
  border: 0;
  border-radius: 99px;
  background: var(--accent);
  color: white;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(28, 25, 21, 0.22);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.chat-launcher:hover { transform: translateY(-1px); }
.chat-launcher:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; }
.chat-launcher svg { width: 22px; height: 22px; }
.chat-dock.open .chat-launcher { width: 56px; padding: 0; }
.chat-x { font-size: 30px; line-height: 1; }
.chat-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border: 2px solid var(--paper);
  border-radius: 99px;
  background: #b4532a;
  color: white;
  font-size: 12px;
  font-weight: 700;
}

.chat-peek {
  display: grid;
  gap: 4px;
  max-width: 300px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px 14px 4px 14px;
  background: var(--card);
  box-shadow: 0 10px 30px rgba(28, 25, 21, 0.14);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.chat-peek strong { font-size: 14px; }
.chat-peek span {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.chat-pop {
  display: flex;
  flex-direction: column;
  width: 380px;
  height: min(600px, calc(100vh - 120px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 24px 60px rgba(28, 25, 21, 0.25);
}
.chat-pop-head { display: flex; align-items: center; gap: 12px; padding: 14px 12px 14px 16px; background: var(--accent); color: white; }
.chat-pop-head div { display: grid; flex: 1; min-width: 0; }
.chat-pop-head strong { font-size: 16px; }
.chat-pop-head span { font-size: 13px; opacity: 0.8; }
.chat-pop-head .avatar { width: 40px; height: 40px; background: rgba(255, 255, 255, 0.18); }
.chat-close { width: 36px; height: 36px; border: 0; border-radius: 99px; background: transparent; color: white; font-size: 26px; line-height: 1; cursor: pointer; }
.chat-close:hover { background: rgba(255, 255, 255, 0.14); }
.chat-pop-head .sound-toggle { width: 36px; height: 36px; border: 0; background: transparent; color: white; }
.chat-pop-head .sound-toggle:hover { background: rgba(255, 255, 255, 0.14); }
.chat-pop-head .sound-toggle.off { opacity: 0.6; }
.chat-pop-head .sound-toggle.blocked { color: #f5d9a8; }
.chat-pop-body { flex: 1; overflow-y: auto; padding: 16px; }
.chat-pop .compose { padding: 12px 16px 14px; }
.chat-pop .compose textarea { resize: none; }
.chat-pop .compose-hint { font-size: 12px; }

@media (max-width: 600px) {
  .chat-dock { right: 16px; bottom: 16px; }
  .chat-launcher { width: 56px; padding: 0; }
  .chat-launcher-label { display: none; }
  .chat-dock.open .chat-launcher { display: none; }
  .chat-pop { position: fixed; inset: 0; width: auto; height: auto; border: 0; border-radius: 0; }
}

.compose { display: grid; gap: 8px; max-width: none; margin: 0; padding-top: 14px; border-top: 1px solid var(--line); }

.compose textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  resize: vertical;
}

.compose textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.compose textarea[aria-invalid] { border-color: #b4532a; }
.compose-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
@media (pointer: coarse) { .compose-foot .compose-hint { visibility: hidden; } }
.compose-hint { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4; }

.request-limit { color: var(--wait); font-size: 13px; }

.sign-card {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  padding: 20px 22px;
  border: 1px solid var(--accent);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.sign-card.done { border-color: var(--line); box-shadow: none; }
.sign-card h2 { margin: 0; font-size: 22px; }
.sign-card > p { margin: 0; line-height: 1.5; }
.sign-eyebrow { color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }

.sign-files { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }

.sign-files li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.sign-files .doc-copy { display: grid; gap: 2px; }
.sign-files .doc-copy span { color: var(--muted); font-size: 13px; }
.sign-file { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.file-pick { display: inline-flex; align-items: center; cursor: pointer; }
.file-pick:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }

.sign-form { display: grid; gap: 12px; max-width: none; margin: 4px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.sign-form .check span { line-height: 1.45; }
.sign-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sign-done { margin: 0 0 10px; color: var(--accent); font-weight: 600; }
.sign-alert { padding: 10px 12px; border-radius: 10px; background: var(--wait-soft); color: var(--wait); }
.small-note { margin: 0; font-size: 13px; }

.row-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.tag.msg-new { background: var(--accent); color: white; }
.nav-unread { color: var(--accent) !important; font-weight: 600; }

.contact-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.contact-list li { display: grid; gap: 2px; font-size: 14px; }
.contact-list a { color: var(--accent); font-weight: 600; }
.contact-list small { color: var(--muted); }
.panels .wide { grid-column: 1 / -1; }

.kyc-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: start;
  margin-bottom: 20px;
  padding: 20px 22px;
  border: 1px solid var(--accent);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.kyc-card.bad { border-color: #b4532a; box-shadow: 0 0 0 4px #f6e1d8; }
.kyc-card.bad .sign-eyebrow { color: #b4532a; }
.kyc-card-copy { display: grid; gap: 10px; }
.kyc-card-copy > * { margin: 0; }
.kyc-card h2 { font-size: 22px; }
.kyc-card-copy > p { line-height: 1.5; }

.kyc-go {
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  color: white;
  text-decoration: none;
}

.kyc-card-qr { display: grid; justify-items: center; gap: 8px; width: 168px; text-align: center; }
.kyc-card-qr p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.kyc-qr { width: 150px; height: 150px; border: 1px solid var(--line); border-radius: 12px; }

.kyc-why { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); }
.kyc-why span { color: var(--accent); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }

@media (max-width: 700px), (pointer: coarse) {
  .kyc-card { grid-template-columns: 1fr; }
  .kyc-card-qr { display: none; }
}

.push-side h2 { display: flex; align-items: center; gap: 6px; }
.push-side h2 svg { width: 16px; height: 16px; }
.push-side p { margin: 0; font-size: 14px; line-height: 1.45; }
.push-side-actions { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.push-side-actions .text { font-size: 14px; }

.chat-push { display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-top: 1px solid var(--line); background: var(--accent-soft); color: var(--accent); font-size: 13px; }
.chat-push svg { display: block; width: 16px; height: 16px; }
.chat-push p { flex: 1; margin: 0; line-height: 1.35; }
.chat-push .text { font-size: 13px; font-weight: 600; white-space: nowrap; }

.push-card > .primary { justify-self: start; }
.push-card .field-hint { margin: -8px 0 0; }
.push-state { margin: 0; font-size: 15px; line-height: 1.45; }
.push-state.on { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.push-dot { width: 10px; height: 10px; border-radius: 99px; background: #2f9e62; box-shadow: 0 0 0 4px #dff3e7; }
.push-note { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-size: 14px; }
.push-devices ul { display: grid; gap: 0; margin: 12px 0 0; padding: 0; list-style: none; }
.push-devices li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.push-devices li > span { display: grid; gap: 2px; font-size: 14px; }
.push-devices li > span span { color: var(--muted); font-size: 13px; }
.push-card .proto { margin: 0; }

.kyc-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: 14px; }
.kyc-facts dt { color: var(--muted); }
.kyc-facts dd { margin: 0; overflow-wrap: anywhere; }

.kyc-state { display: grid; gap: 2px; margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; }
.kyc-state span { font-size: 13px; }
.kyc-state.ok { background: var(--accent-soft); color: var(--accent); }
.kyc-state.wait { background: var(--wait-soft); color: var(--wait); }
.kyc-state.bad { background: #f6e1d8; color: #b4532a; }

.kyc-lead { margin-top: 0; }
.kyc-request, .kyc-relink { max-width: none; gap: 12px; }
.kyc-request button, .kyc-relink button { justify-self: start; }
.kyc-again .kyc-relink { margin-top: 12px; }
.kyc-new-link { padding: 10px 12px; border-radius: 12px; background: var(--wait-soft); color: var(--wait); font-size: 14px; }
.kyc-request textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; font: inherit; font-size: 15px; resize: vertical; }
.kyc-again { margin-top: 12px; }
.kyc-again summary { color: var(--accent); cursor: pointer; font-size: 14px; }
.kyc-again .kyc-request { margin-top: 12px; }

.kyc-state.review { background: #e4ecf7; color: #2c4f7c; }
.kyc-alert { margin: 0 0 12px; padding: 10px 12px; border-left: 3px solid #b4532a; border-radius: 8px; background: #f6e1d8; color: #8a3d1d; font-size: 14px; }
.kyc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.kyc-redo summary { display: none; }
.kyc-redo .kyc-relink { margin-top: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.kyc-card.review { border-color: #2c4f7c; box-shadow: 0 0 0 4px #e4ecf7; }
.kyc-card.review .sign-eyebrow { color: #2c4f7c; }
.kyc-card h2:focus { outline: none; }
.kyc-after { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-top: 10px; border-top: 1px solid var(--line); }
.kyc-after p { margin: 0; }
.kyc-after .text { font-size: 14px; }
.kyc-manual { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.kyc-manual p { margin: 0; color: var(--muted); font-size: 13px; }
.sign-files.locked li { opacity: 0.75; }
.sign-files.locked li::after { content: "Locked"; color: var(--muted); font-size: 12px; font-weight: 600; }


@media (max-width: 760px) {
  .settings { grid-template-columns: 1fr; gap: 16px; margin-top: 20px; }
  .settings-nav { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .settings-nav button { padding: 8px 14px; border-color: var(--line); border-radius: 999px; font-size: 14px; }
  .address-row, .tfa-options { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  h1 { font-size: 32px; }
  .top { align-items: flex-start; }
  .body { padding-left: 16px; }
  .signup { grid-template-columns: 1fr; gap: 28px; }
  .pair, .kinds { grid-template-columns: 1fr; }
  .years { grid-template-columns: repeat(3, 1fr); }
}

.mx {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
}

.mx-pop {
  display: grid;
  grid-template-columns: 280px 1fr;
  width: min(820px, calc(100vw - 48px));
  height: min(620px, calc(100vh - 48px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 24px 60px rgba(28, 25, 21, 0.25);
}

.mx.min { display: flex; align-items: center; gap: 2px; padding: 4px; border: 1px solid var(--line); border-radius: 99px; background: var(--card); box-shadow: 0 10px 30px rgba(28, 25, 21, 0.18); }
.mx-bar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 340px;
  height: 44px;
  padding: 0 14px 0 16px;
  border: 0;
  border-radius: 99px;
  background: var(--accent);
  color: white;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.mx-bar span:first-of-type { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mx-bar svg { flex: none; width: 20px; height: 20px; }
.mx-bar .mx-unread { background: white; color: var(--accent); }

.mx-face {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 99px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.mx-list { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); background: var(--paper); }
.mx-list-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 8px; }
.mx-list-head h2 { margin: 0; font-size: 20px; }
.mx-list-head .mx-controls { display: none; }
.mx-search { padding: 0 12px 10px; }
.mx-search input {
  width: 100%;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}
.mx-rows { flex: 1; margin: 0; padding: 0 6px 8px; overflow-y: auto; list-style: none; }
.mx-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.mx-row:hover { background: #efe8df; }
.mx-row.on { background: var(--accent); color: white; }
.mx-row.on .mx-face { background: rgba(255, 255, 255, 0.2); color: white; }
.mx-row-copy { display: grid; flex: 1; gap: 2px; min-width: 0; }
.mx-row-top, .mx-row-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.mx-row-top strong { overflow: hidden; font-size: 15px; white-space: nowrap; text-overflow: ellipsis; }
.mx-row-top time { flex: none; color: var(--muted); font-size: 12px; }
.mx-snippet { overflow: hidden; color: var(--muted); font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }
.mx-snippet em { color: #b4532a; font-style: normal; }
.mx-row.on time, .mx-row.on .mx-snippet, .mx-row.on .mx-snippet em { color: rgba(255, 255, 255, 0.8); }
.mx-none { font-style: italic; }
.mx-unread {
  flex: none;
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 99px;
  background: var(--accent);
  color: white;
  font-size: 12px;
  font-weight: 700;
}
.mx-unread.quiet { background: var(--wait-soft); color: var(--wait); }
.mx-row.on .mx-unread { background: white; color: var(--accent); }
.mx-empty { margin: 0; padding: 16px; color: var(--muted); font-size: 14px; }
.mx-pick { margin: auto; text-align: center; }

.mx-chat { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.mx-chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 10px 12px 16px; border-bottom: 1px solid var(--line); }
.mx-chat-blank { justify-content: flex-end; border-bottom: 0; }
.mx-chat-who { display: grid; flex: 1; min-width: 0; }
.mx-chat-who strong { font-size: 16px; }
.mx-chat-who span { overflow: hidden; color: var(--muted); font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }
.mx-open {
  flex: none;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.mx-open:hover { background: #efe8df; }
.mx-controls { display: flex; flex: none; gap: 2px; }
.mx-icon {
  flex: none;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 99px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.mx-icon:hover { background: #efe8df; }
.mx-back { display: none; }
.mx-request { margin: 0; padding: 8px 16px; background: var(--wait-soft); color: var(--wait); font-size: 13px; }
.mx-thread { flex: 1; overflow-y: auto; padding: 16px; }
.mx-compose { display: flex; align-items: flex-end; gap: 8px; max-width: none; margin: 0; padding: 10px 12px 12px; border-top: 1px solid var(--line); }
.mx-compose textarea {
  flex: 1;
  max-height: 160px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
  resize: none;
}
.mx-send {
  display: grid;
  flex: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 99px;
  background: var(--accent);
  color: white;
  cursor: pointer;
}
.mx-send svg { width: 20px; height: 20px; }

@media (max-width: 700px) {
  .mx { right: 16px; bottom: 16px; }
  .mx.open { inset: 0; }
  .mx-pop { width: 100%; height: 100%; grid-template-columns: 1fr; border: 0; border-radius: 0; }
  .mx-list-head .mx-controls, .mx-back { display: flex; }
  .mx-back { place-items: center; }
  .mx.has-chat .mx-list { display: none; }
  .mx:not(.has-chat) .mx-chat { display: none; }
  .mx-open { display: none; }
}
