/* Shared progressive-enhancement states. Native links and forms stay usable. */
[hidden] { display: none !important; }
#live-status { display: none; }
.enhanced #live-status { display: inline; }
.enhanced .native-live-note { display: none; }
.live-toolbar { color: #9ab8c0; font-size: .8rem; text-align: right; margin: .75rem 0 1rem; }
#localized-content { outline: none; transition: opacity 140ms ease; }
#localized-content[aria-busy="true"] { opacity: .8; }
#localized-content[aria-busy="true"] { cursor: progress; }
#localized-content[aria-busy="true"] button, #localized-content[aria-busy="true"] a { opacity: .65; pointer-events: none; }
#app-status:not(:empty), .session-notice { padding: 1rem; border: 1px solid #e5aa72; border-radius: 1rem; background: #19232a; color: #ffe1c4; margin: 1rem 0; }
.session-notice a { display: inline-flex; margin-top: .75rem; }
.dashboard-card, .dashboard-card form { min-width: 0; width: 100%; }
.dashboard-card h2, .dashboard-card h3, .dashboard-card p { overflow-wrap: anywhere; }
.category-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.category-fieldset legend { padding: 0 0 .75rem; font-weight: 650; }
.field-feedback { display: none; color: #9ab8c0; font-size: .82rem; }
.enhanced .field-feedback { display: block; }
.pin-control { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: .5rem; }
.pin-control > button { margin-bottom: .15rem; min-height: 44px; }
.profile-selection-shell { max-width: 1120px; }
.profile-selection-stage { padding: 1.5rem 0 3rem; justify-content: flex-start; gap: 1.5rem; }
.profile-selection-stage > .dashboard-hero { width: 100%; padding: clamp(1.5rem, 4vw, 3rem); text-align: left; margin-top: 0; }
.profile-selection-stage h1 { font-size: clamp(2rem, 5vw, 3.7rem); }
.profile-selection-stage > .profile-request-card, .profile-unlock { width: min(40rem, 100%); text-align: left; }
.profile-tile-list { width: 100%; padding: 1rem 0; }
.pending-profiles { width: 100%; margin-top: 1.5rem; text-align: left; }
.pending-profiles h2 { font-size: 1.2rem; }
.pending-profile-card { min-height: auto; gap: .5rem; }
.pending-profile-card h3 { margin: 0; }
.section-intro { color: #a8bec5; line-height: 1.6; }
.profile-intent-copy { white-space: pre-wrap; }
.dashboard-actions, .profile-selection-account { flex-wrap: wrap; }
.profile-selection-account form, .onboarding-actions form { flex: 0 0 auto; }
.profile-selection-account .ui-icon-tile--compact, .onboarding-actions .ui-icon-tile--compact { min-width: 44px; min-height: 44px; }
.language-switcher { display: flex; justify-content: flex-end; gap: .5rem; }
.language-link { color: #b8ccd2; min-height: 44px; padding: .6rem .8rem; border-radius: .7rem; text-decoration: none; }
.language-link[aria-current="true"] { color: #ffbc80; background: #14242e; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #80d7ce; outline-offset: 3px; }
.dashboard-grid > article, .profile-tile-form { animation: workspace-arrive 180ms ease-out; }
@keyframes workspace-arrive { from { opacity: .5; transform: translateY(5px); } to { opacity: 1; transform: none; } }

@media (max-width: 720px) {
  .dashboard-bar, .profile-selection-topbar { align-items: stretch; flex-direction: column; }
  .dashboard-actions, .profile-selection-account { justify-content: flex-start; gap: .5rem; }
  .dashboard-actions > a, .profile-selection-account > a { flex: 1 1 40%; font-size: .85rem; }
  .dashboard-account-panel { right: auto; left: 0; width: min(21rem, calc(100vw - 3rem)); }
  .dashboard-card { padding: 1.25rem; }
  .dashboard-hero { padding: 1.5rem; }
  .dashboard-hero h1 { font-size: 2.2rem; }
  .category-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-choices label { font-size: .85rem; padding: .6rem .4rem; }
  .pin-control { grid-template-columns: minmax(0, 1fr); }
  .pin-control > button { justify-self: end; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
