/* Customer personal area and registration wizard. */
.acc-page { min-height: 100vh; }
.acc-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px max(16px, (100% - 980px) / 2); background: var(--sky); border-bottom: 2px solid var(--ink); }
.acc-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.acc-brand img { width: 44px; height: 44px; border-radius: 50%; padding: 3px; border: 2px solid transparent; background: linear-gradient(#fffdf6, #fffdf6) padding-box, conic-gradient(from 200deg, #f5d548, #a85f14, #fbea9e, #c98a2b, #f5d548) border-box; object-fit: contain; }
.acc-brand b { font: 400 24px/1 var(--display); }
.acc-back { font-weight: 600; font-size: 15px; }
.acc-main { width: min(980px, 100% - 28px); margin: 22px auto 60px; display: grid; gap: 18px; }
.acc-muted { color: var(--ink-soft); }
.acc-card { background: var(--paper); border: 1.5px solid rgba(168, 95, 20, .35); border-radius: 22px; padding: clamp(18px, 4vw, 30px); box-shadow: 0 24px 50px -34px rgba(92, 52, 12, .5); display: grid; gap: 14px; min-width: 0; }
.acc-card.narrow { width: min(520px, 100%); margin-inline: auto; }
.acc-card h1 { font: 400 clamp(30px, 7vw, 40px)/1.1 var(--display); }
.acc-card h2 { font: 400 26px/1.15 var(--display); }
.acc-card h3 { font: 600 17px/1.3 var(--body); margin: 0; }
.acc-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--caramel); }
.acc-form { display: grid; gap: 12px; }
.acc-form .row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.acc-form label { display: grid; gap: 6px; font-weight: 600; font-size: 15.5px; }
.acc-form label small { font-weight: 400; color: var(--ink-soft); }
.acc-form input:not([type=checkbox]):not([type=radio]), .acc-form select, .acc-form textarea { font: 400 17px var(--body); color: var(--ink); min-height: 50px; padding: 10px 14px; border-radius: 12px; border: 2px solid var(--line-strong); background: #fff; width: 100%; }
.acc-form textarea { min-height: 90px; resize: vertical; }
.acc-form input:focus, .acc-form select:focus, .acc-form textarea:focus { border-color: var(--caramel); outline: 3px solid rgba(245, 213, 72, .55); outline-offset: 0; }
.acc-form .primary { min-height: 54px; font-size: 18px; }
.acc-choice { display: flex; flex-wrap: wrap; gap: 8px; }
.acc-choice label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 2px solid var(--line-strong); border-radius: 999px; background: #fff; font-weight: 500; cursor: pointer; }
.acc-choice input { width: 18px; height: 18px; accent-color: var(--caramel); }
.acc-choice label:has(input:checked) { border-color: var(--ink); background: var(--gold-soft); }
.acc-fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.acc-fieldset legend { font-weight: 600; font-size: 15.5px; margin-bottom: 6px; padding: 0; }
.acc-err { background: #ffe8e5; border: 1.5px solid #c2332b; color: #8a1c15; border-radius: 12px; padding: 10px 14px; font-weight: 500; }
.acc-err:empty { display: none; }
.acc-tabs { display: flex; gap: 6px; padding: 4px; background: var(--sky); border-radius: 14px; border: 1.5px solid var(--line); }
.acc-tabs button { flex: 1; min-height: 44px; border: 0; border-radius: 10px; font-size: 16px; }
.acc-tabs button[aria-selected=true] { background: var(--ink); color: var(--paper); }

/* Wizard progress */
.acc-steps { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; counter-reset: s; }
.acc-steps li { flex: 1; display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-soft); text-align: center; counter-increment: s; }
.acc-steps li::before { content: counter(s); justify-self: center; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line-strong); background: #fff; font-size: 15px; }
.acc-steps li.done::before { content: '✓'; background: var(--caramel); border-color: var(--caramel); color: #fff; }
.acc-steps li.now { color: var(--ink); }
.acc-steps li.now::before { background: var(--gold); border-color: var(--ink); }

/* Documents and signature */
.acc-doc { border: 1.5px solid var(--line); border-radius: 16px; background: #fff; padding: 14px 16px; display: grid; gap: 8px; }
.acc-doc ol { margin: 0; padding-inline-start: 22px; display: grid; gap: 6px; font-size: 15.5px; line-height: 1.6; }
.acc-doc .agree { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; padding-top: 6px; border-top: 1px dashed var(--line); }
.acc-doc .agree input { width: 22px; height: 22px; flex: none; accent-color: var(--caramel); margin-top: 2px; }
.acc-req { font-size: 12px; font-weight: 700; color: var(--red); margin-inline-start: 6px; }
.sig-wrap { display: grid; gap: 6px; }
.sig-pad { width: 100%; height: 190px; border: 2px dashed var(--caramel); border-radius: 14px; background: #fff linear-gradient(transparent 76%, rgba(168, 95, 20, .35) 76%, rgba(168, 95, 20, .35) calc(76% + 1.5px), transparent calc(76% + 1.5px)); touch-action: none; cursor: crosshair; display: block; }
.sig-tools { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--ink-soft); }
.sig-tools button { min-height: 36px; font-size: 14px; padding: 0 12px; }

/* Dashboard */
.acc-hello { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.acc-dog { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold); background: var(--sky-deep); display: grid; place-items: center; font-size: 34px; flex: none; }
.acc-hello > div:not(.acc-dog) { flex: 1; min-width: 200px; display: grid; gap: 4px; }
.acc-hello .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.acc-hello .actions a, .acc-hello .actions button { min-height: 42px; font-size: 15px; padding: 0 14px; }
.acc-note { background: #fff6d8; border: 1.5px solid rgba(168, 95, 20, .35); border-radius: 14px; padding: 12px 14px; font-size: 15.5px; line-height: 1.6; }
.acc-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.acc-nav::-webkit-scrollbar { display: none; }
.acc-nav button { flex: none; min-height: 42px; border-radius: 999px; font-size: 15px; padding: 0 16px; border-width: 1.5px; }
.acc-nav button[aria-selected=true] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.acc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.acc-stats div { background: var(--sky); border-radius: 14px; padding: 12px 14px; display: grid; gap: 2px; }
.acc-stats b { font: 400 28px/1 var(--display); }
.acc-stats span { font-size: 13.5px; color: var(--ink-soft); }
.acc-list { display: grid; gap: 10px; }
.acc-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; }
.acc-date { grid-row: 1 / 3; width: 58px; text-align: center; border-radius: 12px; background: var(--sky); padding: 6px 0; line-height: 1.1; }
.acc-date b { display: block; font: 400 24px var(--display); }
.acc-date small { font-size: 12px; color: var(--ink-soft); }
.acc-item h3 { overflow-wrap: anywhere; }
.acc-item p { font-size: 14px; color: var(--ink-soft); grid-column: 2; }
.acc-item .end { grid-row: 1 / 3; grid-column: 3; display: grid; gap: 4px; justify-items: end; text-align: end; }
.acc-item .end b { font-size: 17px; }
.pill { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--sky-deep); white-space: nowrap; }
.pill.ok { background: #dff2e1; color: #1d5b2a; }
.pill.warn { background: #fff0c2; color: #6b4a00; }
.pill.no { background: #ffe0dc; color: #8a1c15; }
.acc-empty { text-align: center; padding: 26px 14px; color: var(--ink-soft); border: 1.5px dashed var(--line-strong); border-radius: 16px; display: grid; gap: 6px; justify-items: center; }
.acc-empty span { font-size: 34px; }
.acc-sig { display: grid; grid-template-columns: minmax(0, 1fr) 140px; gap: 10px; align-items: center; }
.acc-sig img { width: 140px; height: 60px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.acc-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.acc-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; border: 1.5px solid var(--line); }
.acc-kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px 16px; margin: 0; }
.acc-kv div { display: grid; gap: 2px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.acc-kv dt { font-size: 13px; color: var(--ink-soft); }
.acc-kv dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
details.acc-more summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.acc-toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 12px; z-index: 50; font-weight: 500; max-width: calc(100% - 32px); }
@media (max-width: 560px) {
  .acc-item { grid-template-columns: auto minmax(0, 1fr); }
  .acc-item .end { grid-row: auto; grid-column: 2; justify-items: start; text-align: start; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
  .acc-sig { grid-template-columns: 1fr; }
  .acc-steps li { font-size: 11.5px; }
}
body.a11y-dark .acc-card, body.a11y-dark .acc-item, body.a11y-dark .acc-doc { background: var(--paper); }
