/* Customer link: navy frame, white cards, one clear next step at a time. Single light theme on purpose (it's a branded document). */
:root {
  --navy: #0a1628; --navy-2: #13233d; --navy-3: #1c3254; --neon: #4dff2e; --neon-dim: #3bd61f; --on-neon: #06210a;
  --ink: #0a1628; --muted: #56667d; --line: #dbe2ec; --soft: #f3f6fa; --white: #ffffff; --ok: #128a08; --ok-soft: #e7fbe2; --warn: #9a5200; --warn-soft: #fff2df; --bad: #b3261e;
  --f-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif; --f-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--navy); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.5; padding-bottom: env(safe-area-inset-bottom, 0px); }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--f-display); margin: 0; line-height: 1.1; text-wrap: balance; }
h1 { font-size: 34px; font-weight: 800; }
h2 { font-size: 24px; font-weight: 700; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0; }
a { color: var(--ok); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.num { font-variant-numeric: tabular-nums; }

.top { position: sticky; top: 0; z-index: 5; background: var(--navy); border-bottom: 1px solid var(--navy-3); padding-top: env(safe-area-inset-top, 0px); }
.top-in { max-width: 720px; margin: 0 auto; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.co { display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--f-display); font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; font-weight: 700; letter-spacing: .02em; }
.mk { width: 34px; height: 34px; border-radius: 9px; background: var(--navy-2); display: grid; place-items: center; }
.mk svg { width: 26px; height: 26px; }
.help-top { color: var(--neon); font-weight: 600; text-decoration: none; font-size: 15px; white-space: nowrap; flex: none; }

.wrap { max-width: 720px; margin: 0 auto; padding: 16px; display: grid; gap: 14px; }
.hello { color: #fff; display: grid; gap: 4px; padding: 6px 2px 2px; }
.hello .eyebrow { color: var(--neon); font-family: var(--f-display); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.hello p { color: #b8c6da; }

.steps { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 4px; scrollbar-width: none; }
.steps::-webkit-scrollbar { display: none; }
.st { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; color: #8ea2c0; font-size: 13px; font-weight: 600; white-space: nowrap; padding: 5px 10px; border-radius: 999px; background: var(--navy-2); }
.st .d { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #3a5376; display: grid; place-items: center; font-size: 11px; }
.st.done { color: #d7e2f1; } .st.done .d { background: var(--neon); border-color: var(--neon); color: var(--on-neon); }
.st.now { background: var(--neon); color: var(--on-neon); } .st.now .d { border-color: var(--on-neon); }

.card { background: var(--white); border-radius: 14px; padding: 20px; display: grid; gap: 14px; }
.card.center { text-align: center; }
.card.hero { border-top: 6px solid var(--neon); }
.big { font-family: var(--f-display); font-size: 44px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.kv { display: grid; grid-template-columns: auto 1fr; row-gap: 6px; }
.kv dt { padding-right: 16px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.kv .tot { border-top: 2px solid var(--navy); padding-top: 6px; font-size: 18px; }
.list { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.pre { white-space: pre-wrap; font-size: 15px; }
details { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
details summary { cursor: pointer; font-weight: 700; }
details[open] summary { margin-bottom: 8px; }

.btn { appearance: none; border: 2px solid var(--line); background: var(--white); color: var(--ink); font: inherit; font-weight: 700; padding: 12px 18px; border-radius: 12px; cursor: pointer; min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; text-align: center; }
.btn:hover { border-color: var(--muted); }
.btn-primary { background: var(--neon); border-color: var(--neon); color: var(--on-neon); font-size: 18px; }
.btn-primary:hover { background: var(--neon-dim); border-color: var(--neon-dim); }
.btn-navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-link { border: none; background: none; color: var(--ok); padding: 6px 0; min-height: 0; font-weight: 700; text-decoration: underline; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-block { width: 100%; }
.btns { display: grid; gap: 10px; }
:focus-visible { outline: 3px solid var(--neon-dim); outline-offset: 2px; }

.choices { display: grid; gap: 10px; }
.choice { appearance: none; text-align: left; border: 2px solid var(--line); background: var(--white); border-radius: 12px; padding: 14px 16px; font: inherit; cursor: pointer; display: grid; gap: 2px; color: var(--ink); }
.choice b { font-size: 17px; }
.choice span { color: var(--muted); font-size: 14px; }
.choice.on { border-color: var(--neon-dim); background: var(--ok-soft); box-shadow: 0 0 0 3px rgba(77,255,46,.25); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { appearance: none; border: 2px solid var(--line); background: var(--white); border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer; color: var(--ink); }
.chip.on { background: var(--navy); color: var(--neon); border-color: var(--navy); }
.qhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.qcount { color: var(--muted); font-size: 14px; font-weight: 600; }
.bar { height: 6px; background: var(--soft); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--neon-dim); border-radius: 99px; }

.field { display: grid; gap: 6px; }
.field label, .lbl { font-weight: 700; font-size: 15px; }
.input { width: 100%; font: inherit; padding: 12px 14px; border: 2px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink); min-height: 50px; }
textarea.input { min-height: 90px; resize: vertical; }
.input:focus { border-color: var(--neon-dim); outline: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--neon-dim); flex: none; }
.sigpad { width: 100%; height: 170px; border: 2px dashed var(--line); border-radius: 12px; background: #fff; touch-action: none; display: block; cursor: crosshair; }

.slot { border: 2px solid var(--line); border-radius: 14px; padding: 16px; display: grid; gap: 4px; cursor: pointer; background: var(--white); text-align: left; font: inherit; color: var(--ink); appearance: none; }
.slot .d1 { font-family: var(--f-display); font-size: 24px; font-weight: 800; }
.slot .tag { justify-self: start; font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); }
.slot .tag.far { background: var(--warn-soft); color: var(--warn); }
.slot.on { border-color: var(--neon-dim); box-shadow: 0 0 0 3px rgba(77,255,46,.3); }

.banner { border-radius: 12px; padding: 12px 14px; font-size: 15px; }
.banner.ok { background: var(--ok-soft); color: #0b5d04; }
.banner.warn { background: var(--warn-soft); color: var(--warn); }
.banner.info { background: #e8f0fc; color: #1d4f9a; }

.day { display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.day:first-child { border-top: none; }
.day .dd { background: var(--navy); color: #fff; border-radius: 10px; text-align: center; padding: 6px 4px; align-self: start; font-family: var(--f-display); }
.day .dd b { display: block; font-size: 26px; line-height: 1; color: var(--neon); }
.day .dd span { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.day.today .dd { outline: 3px solid var(--neon); }
.day ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 3px; font-size: 15px; }

.stars { display: flex; gap: 8px; }
.star { appearance: none; border: none; background: none; font-size: 40px; line-height: 1; color: #c9d3e1; cursor: pointer; padding: 0; }
.star.on { color: #f5b301; }
.yn { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.help { background: var(--navy-2); color: #dbe5f3; border-radius: 14px; padding: 18px; display: grid; gap: 10px; }
.help h3 { color: #fff; }
.help .btn { background: transparent; color: #fff; border-color: #34507a; }
.help .row { display: flex; flex-wrap: wrap; gap: 10px; }
.foot { color: #7f93b2; font-size: 13px; text-align: center; padding: 8px 0 24px; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); top: calc(70px + env(safe-area-inset-top, 0px)); background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 12px; border-left: 5px solid var(--neon); font-weight: 600; z-index: 20; max-width: calc(100% - 32px); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.spin { width: 22px; height: 22px; border: 3px solid rgba(10,22,40,.15); border-top-color: var(--navy); border-radius: 50%; animation: sp .8s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes sp { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }
@media (min-width: 560px) { .btns.two { grid-template-columns: 1fr 1fr; } .choices.two { grid-template-columns: 1fr 1fr; } }
.doclist { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.doclist .btn-link { padding: 0; text-align: left; }
details.card { display: block; }
details.card > summary { font-family: var(--f-display); font-size: 20px; }
.zelle summary { color: var(--navy); }
.sigcopy { border-top: 1px solid var(--line); padding-top: 10px; display: grid; gap: 4px; }
.sigcopy img { max-height: 80px; max-width: 280px; background: #fff; }
.is-busy { opacity: .7; pointer-events: none; }
@media print {
  body { background: #fff; }
  .top, .hello, .steps, .help, .foot, .noprint, .docs, .toast, .banner { display: none !important; }
  .wrap { padding: 0; max-width: none; }
  .card { border: none; padding: 0; }
  details { border: none; padding: 0; }
}

.card.welcome { border: 2px solid var(--neon-dim); }

.thread { display: grid; gap: 8px; }
.tmsg { border-radius: 12px; padding: 10px 12px; background: var(--soft); max-width: 92%; }
.tmsg.office { background: var(--ok-soft); justify-self: start; }
.tmsg.customer { justify-self: end; background: #e8f0fc; }
