/* =============================================================================
   station-screen.css - the login screen's station states (STATION_LOGIN R3).
   Drawn from LOGIN_MOCKUP.html (the direction Daniel approved) on the app's own tokens, so it
   looks like the screen the shop already knows. Everything is behind `.st-on` / `.st-mode`,
   which js/station-screen.js sets only when the shop's station switches ask for it: with the
   switches off (the default) none of these rules match and the page is today's screen.
   ============================================================================= */

/* ---- the pin card in station mode (state 1; the named step keeps today's heading + steps) ---- */
.st-head, .st-foot { display: none; }
#login-pincard.st-mode .st-head { display: block; }
#login-pincard.st-mode .st-foot { display: block; }
#login-pincard.st-mode .pc-logo,
#login-pincard.st-mode .pc-tenant,
#login-pincard.st-mode .pinhelp { display: none; }
#login-pincard.st-mode:not(.st-named) .pc-steps,
#login-pincard.st-mode:not(.st-named) #ln-who { display: none; }
#login-pincard.st-mode.st-named .st-name,
#login-pincard.st-mode.st-named .st-sub,
#login-pincard.st-mode.st-named .st-foot { display: none; }
#login-pincard.st-mode.st-named .st-head { margin-bottom: 12px; }
.st-on .lockedgrid { display: none; }
/* the approved mockup has no purpose strip on these screens; it is back once the module board is showing (so it never flashes while the skeleton is up) */
body:has(#prelogin-zone.st-on):not(:has(#postlogin-zone:not(.hidden))) .home-purpose { display: none; }

.st-badge, .st-badge-warn { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 6px 14px; font-size: var(--font-size-sm, .88rem); font-weight: 700; }
.st-badge { background: var(--color-success-light, #d1fae5); color: var(--color-success-dark, #166534); }
.st-badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--color-success, #10b981); }
.st-badge-warn { background: var(--color-warning-light, #fef3c7); color: var(--color-warning-dark, #92400e); }
.st-name { font-size: var(--font-size-2xl); font-weight: 800; margin: 10px 0 2px; letter-spacing: -.01em; line-height: 1.25; overflow-wrap: anywhere; }
.st-sub { color: var(--color-gray-500); font-size: var(--font-size-md, .92rem); line-height: 1.6; margin: 0 0 14px; }
.st-foot .st-divider { height: 1px; background: var(--color-gray-200); margin: 16px 0 6px; }
.st-link { background: none; border: none; color: var(--color-gray-700); font-weight: 700; font-size: var(--font-size-md, .95rem); cursor: pointer; padding: 10px 4px; text-decoration: underline; text-underline-offset: 4px; min-height: 44px; font-family: inherit; }
.st-link:disabled { color: var(--color-gray-400); cursor: not-allowed; text-decoration: none; }
.st-muted { font-size: var(--font-size-sm, .84rem); color: var(--color-gray-500); line-height: 1.6; }

/* ---- the other states: one card at a time, in #st-view ---- */
.st-view { display: flex; justify-content: center; width: 100%; }
.st-view.hidden { display: none; }
.st-card { background: var(--color-white); border-radius: 18px; box-shadow: 0 10px 36px rgba(15,23,42,.16); padding: 28px 28px 22px; width: 400px; max-width: 94vw; text-align: center; }
.st-card.wide { width: 560px; }
.st-card h1 { font-size: var(--font-size-xl); margin: 8px 0 6px; line-height: 1.35; }
.st-card .st-sub { margin-bottom: 16px; }
.st-btn { width: 100%; padding: 13px; background: var(--primary); color: var(--color-white); border: none; border-radius: 12px; font-size: var(--font-size-md, 1rem); font-weight: 700; cursor: pointer; font-family: inherit; min-height: 48px; }
.st-btn:hover { filter: brightness(1.08); }
.st-btn:disabled { background: var(--color-gray-400); cursor: not-allowed; }
.st-card .st-link.back { display: inline-flex; align-items: center; gap: 6px; }

.st-names { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 6px 0 4px; }
.st-hint { font-size: var(--font-size-sm, .82rem); color: var(--color-gray-500); line-height: 1.7; background: var(--color-gray-50); border-radius: 10px; padding: 9px 12px; text-align: start; margin-top: 12px; }

/* the names list is the existing .ln-box, dressed for the station states */
.ln-box.st-list { text-align: center; }
.ln-box.st-list .st-badge, .ln-box.st-list .st-badge-warn { margin-bottom: 8px; }
.ln-box.st-list .st-sub { margin-bottom: 10px; }
.ln-person.new { border-style: dashed; background: var(--color-white); }
.ln-person.new small { display: block; font-weight: 500; color: var(--color-gray-500); font-size: var(--font-size-xs, .75rem); }

.st-choices { display: grid; gap: 12px; margin-top: 6px; text-align: start; }
.st-choice { border: 1.5px solid var(--color-gray-200); border-radius: 14px; padding: 16px; display: flex; gap: 14px; align-items: flex-start; background: var(--color-white); cursor: pointer; font-family: inherit; text-align: start; width: 100%; color: inherit; }
.st-choice:hover { border-color: var(--primary); }
.st-choice:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 2px; }
.st-choice .ic { font-size: var(--font-size-xl); line-height: 1; }
.st-choice h3 { margin: 0 0 4px; font-size: var(--font-size-lg); }
.st-choice p { margin: 0; color: var(--color-gray-500); font-size: var(--font-size-sm, .88rem); line-height: 1.55; }

.st-steps { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 12px 0 14px; }
.st-steps span { font-size: var(--font-size-xs, .78rem); font-weight: 600; color: var(--color-gray-500); background: var(--color-gray-100); border-radius: 999px; padding: 4px 10px; }
.st-steps span.on { background: var(--primary); color: var(--color-white); }
.st-field { text-align: start; margin-bottom: 12px; }
.st-field label { display: block; font-weight: 700; font-size: var(--font-size-sm, .9rem); margin-bottom: 6px; }
.st-field select, .st-field input { width: 100%; padding: 11px 12px; border: 1.5px solid var(--color-gray-300); border-radius: 10px; font-size: var(--font-size-md, 1rem); background: var(--color-white); min-height: 46px; font-family: inherit; }
.st-field input.code { direction: ltr; text-align: center; letter-spacing: 6px; }
.st-sent { background: var(--color-success-light, #d1fae5); color: var(--color-success-dark, #166534); border-radius: 12px; padding: 12px 14px; font-size: var(--font-size-md, .92rem); line-height: 1.6; text-align: start; margin-bottom: 12px; }
.st-digits { display: flex; gap: 8px; justify-content: center; direction: ltr; margin: 6px 0 10px; }
.st-digits input { width: 44px; height: 54px; text-align: center; font-size: var(--font-size-xl); border: 2px solid var(--color-gray-300); border-radius: 10px; font-family: inherit; padding: 0; }
.st-digits input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(26,39,68,.15); }
.st-approve { background: var(--color-gray-50); border: 1px solid var(--color-gray-200); border-radius: 14px; padding: 14px; margin-top: 4px; text-align: start; }
.st-approve h3 { margin: 0 0 4px; font-size: var(--font-size-md); }
.st-approve p { margin: 0 0 10px; color: var(--color-gray-500); font-size: var(--font-size-sm, .85rem); }
.st-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.st-msg { display: none; margin-top: 10px; border-radius: 10px; padding: 8px 12px; font-size: var(--font-size-sm, .85rem); text-align: start; background: var(--color-error-light, #fee2e2); border: 1px solid #fca5a5; color: var(--color-error-dark, #991b1b); font-weight: 600; }
.st-msg.show { display: block; }
.st-msg.info { background: var(--color-info-light, #eff6ff); border-color: #bfdbfe; color: var(--color-info-dark, #1e40af); font-weight: 400; }

@media (max-width: 480px) {
  .prelogin-zone.st-on { padding: 18px 12px 36px; }
  .st-card, .st-card.wide { padding: 22px 16px 18px; border-radius: 16px; }
  .st-name { font-size: var(--font-size-xl); }
  .st-row2 { grid-template-columns: 1fr; }
  .st-digits { gap: 6px; }
  .st-digits input { width: 40px; height: 50px; }
}
