/* RC2.2: client-only presentation. Administrative screens keep app.css. */
.client-shell {
  --client-blue: #0066df;
  --client-ink: #163652;
  --client-muted: #52677c;
  min-height: 100vh;
  min-height: 100svh;
  background: linear-gradient(145deg, #00c6ff 0%, #0072ff 48%, #004d99 100%);
  color: var(--client-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}
.client-shell main {
  width: 100%; max-width: 520px; margin: 0 auto;
  padding: max(24px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
}
.client-shell h1, .client-shell h2, .client-shell p { margin: 0; overflow-wrap: anywhere; }
.client-shell h1 { font-size: clamp(1.6rem, 6.8vw, 2rem); line-height: 1.2; letter-spacing: -.035em; }
.client-shell h2 { font-size: 1.3rem; line-height: 1.3; letter-spacing: -.025em; }
.client-shell p + p { margin-top: .7rem; }
.client-shell a { color: #005bbd; text-underline-offset: .2em; }
.client-brand { display: flex; align-items: center; gap: 16px; margin: 2px 0 24px; color: #072c46; }
.client-brand img { flex: 0 0 88px; width: 88px; height: 88px; object-fit: contain; border-radius: 23px; box-shadow: 0 6px 24px #0033661a; }
.client-brand > div { min-width: 0; }
.client-shell .brand-eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .01em; }
.client-shell .client-brand-name { font-size: 1.55rem; font-weight: 750; line-height: 1.15; margin-top: 5px; letter-spacing: -.04em; }
.client-card { padding: clamp(22px, 5vw, 30px); background: white; border: 1px solid #ffffff55; border-radius: 26px; box-shadow: 0 12px 38px #003b7824; margin-bottom: 16px; min-width: 0; animation: client-arrive .35s ease-out both; }
.client-shell .eyebrow { font-size: .75rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: #0063bd; margin-bottom: 10px; }
.client-shell .lead { margin-top: 12px; color: var(--client-muted); font-size: .98rem; }
.client-form { margin-top: 24px; }
.client-shell label { font-size: .92rem; margin-top: 18px; }
.client-shell input:not([type=checkbox]) { min-height: 52px; min-width: 0; font-size: 16px; background: #f8faff; border: 1px solid #d6e2ef; border-radius: 13px; color: var(--client-ink); }
.client-shell input::placeholder { color: #6b7d90; opacity: 1; }
.client-shell .optional { font-size: .85rem; color: var(--client-muted); font-weight: 400; }
.consent-options { margin: 22px 0; }
.client-shell .check-option { display: flex; align-items: flex-start; gap: 11px; margin: 0; padding: 12px 0; font-weight: 400; font-size: .86rem; cursor: pointer; min-height: 48px; }
.client-shell input[type=checkbox] { flex: 0 0 22px; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--client-blue); }
.check-option span { min-width: 0; overflow-wrap: anywhere; }
.check-option small { display: block; color: var(--client-muted); font-size: .78rem; margin-top: 4px; }
.client-shell button, .client-shell .button { font: inherit; font-weight: 700; min-height: 50px; border-radius: 14px; background: var(--client-blue); color: white; transition: background-color .15s ease, box-shadow .15s ease; }
.client-shell .primary-action { display: flex; justify-content: center; align-items: center; gap: 9px; width: 100%; padding: 14px 16px; text-align: center; white-space: normal; overflow-wrap: anywhere; }
.client-shell .primary-action:hover { background: #0054b8; }
.client-shell .primary-action:disabled { cursor: wait; opacity: .65; }
.client-shell .secondary { background: #eaf3ff; color: #0054ac; }
.client-shell .secondary:hover { background: #daeaff; }
.client-shell .danger { background: #b42318; }
.client-shell .danger:hover { background: #941c14; }
.client-shell :is(button, a, input, summary):focus-visible { outline: 3px solid #004d99; outline-offset: 4px; }
.client-shell .form-note { font-size: .79rem; color: var(--client-muted); margin-top: 12px; }
.client-form > .form-note { text-align: center; }
.client-shell details { font-size: .86rem; overflow-wrap: anywhere; }
.client-shell summary { cursor: pointer; font-weight: 650; padding: 14px 0; min-height: 48px; }
.client-shell details p { color: var(--client-muted); margin: 6px 0 14px; }
.subtle-details { border-top: 1px solid #e6edf5; margin-top: 20px; }
.client-shell details h2 { font-size: 1.05rem; margin: 8px 0 12px; }
.client-shell details form + form { margin-top: 12px; }
.client-bottom-link { text-align: center; }
.client-shell .client-bottom-link a { color: white; display: inline-flex; align-items: center; min-height: 48px; font-size: .88rem; }
.welcome-note { display: flex; gap: 14px; align-items: flex-start; padding: 22px; background: #fff; border-radius: 23px; margin-bottom: 16px; box-shadow: 0 8px 24px #003b781a; }
.welcome-note > div { min-width: 0; }
.welcome-note h1 { font-size: 1.45rem; }
.welcome-note .eyebrow { font-size: .65rem; margin-bottom: 6px; }
.welcome-note p:last-child { font-size: .84rem; color: var(--client-muted); margin-top: 5px; }
.duty-banner { display: grid; gap: 5px; padding: 18px 20px; margin-bottom: 16px; border: 2px solid #ffd166; border-radius: 20px; background: #fff7d6; color: #543b00; box-shadow: 0 8px 24px #003b7814; }
.duty-banner strong { font-size: 1.05rem; }
.duty-banner span { font-size: .86rem; line-height: 1.45; }
.ui-icon { width: 24px; height: 24px; flex-shrink: 0; vertical-align: middle; }
.success-mark { display: inline-flex; flex: 0 0 36px; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: #e1f5ed; color: #086a49; }
.action-symbol { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 15px; background: #eaf3ff; color: var(--client-blue); margin-bottom: 18px; }
.action-card[data-state=active] .action-symbol { display: none; }
.action-card .primary-action { margin-top: 22px; }
.install-steps { list-style: none; margin: 24px 0 0; padding: 0; }
.install-steps li { display: flex; align-items: center; gap: 13px; padding: 13px 0; }
.install-steps li + li { border-top: 1px solid #edf2f8; }
.step-icon { display: flex; align-items: center; justify-content: center; flex: 0 0 42px; height: 42px; border-radius: 12px; color: #0057b8; background: #eef5ff; }
.install-steps li > div { min-width: 0; }
.install-steps strong { display: block; font-size: .91rem; line-height: 1.4; }
.install-steps li span:not(.step-icon) { display: block; font-size: .78rem; color: var(--client-muted); line-height: 1.5; margin-top: 3px; }
.active-confirmation { display: flex; gap: 12px; align-items: flex-start; background: #edf9f3; border-radius: 16px; padding: 18px; margin-top: 20px; color: #085e41; }
.active-confirmation p { font-size: .9rem; }
.active-confirmation p span { display: block; font-size: .8rem; margin-top: 5px; }
.compact-card > p { font-size: .88rem; margin: 12px 0; color: var(--client-muted); }
.compact-card button { margin-top: 12px; }
.support-card { padding: 8px 24px; }
.support-card details + details { border-top: 1px solid #e6edf5; }
.support-card summary { padding: 17px 0; }
.support-card details[open] { padding-bottom: 16px; }
.client-shell .text-action { background: transparent; color: #0054ac; text-decoration: underline; width: 100%; font-size: .86rem; }
.recovery-result { background: #f0f6ff; padding: 14px; border-radius: 14px; margin: 16px 0; }
#issued-recovery-code { display: block; font-family: ui-monospace, monospace; font-size: clamp(.82rem, 3.8vw, 1.05rem); font-weight: 750; color: #004d99; overflow-wrap: anywhere; user-select: all; }
#recovery-code { font-family: ui-monospace, monospace; text-transform: uppercase; }
.business-options { display: grid; gap: 12px; margin: 22px 0; }
.client-shell .admin-access { text-align: center; color: white; font-size: .8rem; }
.client-shell .admin-access a { color: white; display: inline-flex; min-height: 48px; align-items: center; }
.client-footer { text-align: center; color: #fff; font-size: .75rem; padding: 22px 0 4px; }
.client-shell .flash { overflow-wrap: anywhere; margin: 0 0 16px; font-size: .9rem; }
.client-shell .hp { left: auto; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@keyframes client-arrive { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.home-onboarding .action-symbol { display: none; }
.home-onboarding:not([data-state=install]) { padding: 18px 22px; }
.home-onboarding:not([data-state=install]) h2 { font-size: 1.08rem; }
.home-onboarding:not([data-state=install]) .lead { font-size: .86rem; margin-top: 8px; }
.home-onboarding .primary-action { margin-top: 14px; }
.home-onboarding[data-state=active] #onboarding-title, .home-onboarding[data-state=active] #onboarding-copy { display: none; }
.home-onboarding[data-state=active] .active-confirmation { margin: 0; padding: 0; background: none; }
.roster-dates { color: #52677c; font-size: .88rem; margin: 10px 0 18px !important; }
.roster-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.client-shell .roster-refresh { display: inline-flex; align-items: center; min-height: 44px; font-size: .86rem; padding: 0 4px; background: transparent; color: #005bbd; text-decoration: underline; }
.roster-image-link { display: flex; justify-content: center; width: fit-content; max-width: 100%; margin: 16px auto; border-radius: 12px; }
.roster-image-link img { display: block; width: auto; height: auto; max-width: 100%; max-height: 340px; object-fit: contain; object-position: center; border: 1px solid #e6edf5; border-radius: 12px; }
.roster-expanded .roster-image-link img { max-height: none; }
.roster-viewer:not([open]) { display: none; }
.roster-viewer {
  position: fixed; inset: 0; margin: 0; width: 100%; max-width: none;
  height: 100%; height: 100dvh; max-height: none; border: 0;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  background: #101f32; color: #fff; overflow: hidden; overscroll-behavior: none;
}
.roster-viewer::backdrop { background: #101f32; }
.roster-viewer-layout { display: grid; grid-template-rows: auto auto auto minmax(0, 1fr); gap: 10px; height: 100%; min-height: 0; }
.roster-viewer-header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.client-shell .roster-viewer h2 { font-size: 1.1rem; }
.client-shell .roster-viewer button { min-width: 44px; min-height: 44px; padding: 8px 14px; border-radius: 10px; background: #fff; color: #123b62; }
.client-shell .roster-viewer button:disabled { opacity: .5; cursor: not-allowed; }
.client-shell .roster-viewer :focus-visible { outline-color: #68d8ff; outline-offset: 2px; }
.roster-viewer-controls { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; }
.roster-viewer-controls output { min-width: 64px; text-align: center; font-variant-numeric: tabular-nums; }
.client-shell #roster-viewer-help { color: #d4e3f2; font-size: .76rem; }
.roster-viewer-stage { position: relative; min-width: 0; min-height: 0; overflow: hidden; touch-action: none; overscroll-behavior: none; user-select: none; -webkit-user-select: none; cursor: grab; }
.roster-viewer-stage:active { cursor: grabbing; }
.roster-viewer-stage img { position: absolute; left: 50%; top: 50%; max-width: none; max-height: none; object-fit: contain; transform: translate(-50%, -50%); transform-origin: center; pointer-events: none; -webkit-user-drag: none; }
.roster-viewer-stage [data-viewer-status] { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 20px; color: #fff; }
html.roster-viewer-open { overflow: hidden; overscroll-behavior: none; }
body.roster-viewer-open { position: fixed; width: 100%; overflow: hidden; overscroll-behavior: none; }
@media (max-height: 400px) {
  .roster-viewer-layout { gap: 4px; }
  #roster-viewer-help { display: none; }
  .roster-viewer-layout { grid-template-rows: auto auto minmax(0, 1fr); }
}
.contact-card h2 { font-size: 1.1rem; margin-bottom: 16px; }
@media (min-width: 700px) { .client-shell main { padding-top: 40px; padding-bottom: 40px; } }
@media (prefers-reduced-motion: reduce) { .client-shell *, .client-shell *::before, .client-shell *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
