/* Authentication surfaces share the approved Tiffany material, without hiding data behind glass. */
.auth-body { margin: 0; min-width: 280px; min-height: 100dvh; color: #214b50; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.auth-body *, .auth-body *::before, .auth-body *::after { box-sizing: border-box; }
.auth-body [hidden] { display: none !important; }
.auth-body:has(#authMenu:not([hidden]))::before { animation-play-state: paused; }
.auth-body button, .auth-body input { font: inherit; }
.auth-body button { cursor: pointer; }
.auth-body button:disabled { cursor: default; opacity: .58; }
.auth-body :focus-visible { outline: 2px solid #087f83; outline-offset: 3px; }
.auth-body h1, .auth-body h2, .auth-body h3, .auth-body p { margin: 0; }
.auth-body h1, .auth-body h2, .auth-body h3 { text-wrap: balance; }
.auth-body p { line-height: 1.6; }
.auth-body .auth-after-form { margin-top: 18px; }
.auth-confirm { width: min(470px, calc(100vw - 32px)); }
.auth-body svg { flex: 0 0 auto; }
.auth-skip { position: fixed; left: 12px; top: -100px; z-index: 100; padding: 12px; background: white; color: #076c70; border-radius: 12px; }
.auth-skip:focus { top: 12px; }
.auth-safety { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 28px; background: linear-gradient(145deg, #fff 20%, #f1fbf9 85%, #dff4ef); text-align: center; }
.auth-safety-brand { width: min(250px, 100%); line-height: 0; margin-bottom: 8px !important; }
.auth-safety-brand img { display: block; width: 100%; height: auto; }
.auth-safety p { max-width: 440px; color: #527176; font-size: 15px; }
.auth-safety .auth-button { margin-top: 12px; }
.auth-noscript { position: fixed; inset: auto 20px 20px; z-index: 1002; text-align: center; }
.auth-shell { min-height: 100dvh; padding: 28px 36px 24px; max-width: 1600px; margin: auto; }
.auth-topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; min-height: 52px; }
.auth-brand { display: flex; flex: 0 1 230px; align-items: center; width: 230px; max-width: 100%; min-width: 0; padding: 4px 0; }
.auth-brand img { display: block; width: 100%; height: auto; object-fit: contain; }
.auth-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: #376d65; background: #f2fcf8c7; border: 1px solid #cae8df; border-radius: 12px; padding: 9px 12px; }
.auth-dot { width: 6px; height: 6px; border-radius: 50%; background: #5faaa0; flex: 0 0 auto; }
.auth-login-layout { display: grid; grid-template-columns: minmax(250px, .85fr) minmax(430px, 1.15fr); gap: clamp(36px, 6vw, 100px); align-items: center; min-height: calc(100dvh - 150px); max-width: 1160px; margin: auto; padding: 45px 0; }
.auth-intro { padding: 15px 0 30px; }
.auth-eyebrow { color: #53817a; letter-spacing: 2px; font-size: 11px; font-weight: 650; text-transform: uppercase; margin-bottom: 17px; }
.auth-intro h1 { font-size: clamp(32px, 4vw, 49px); line-height: 1.12; letter-spacing: -1.7px; font-weight: 650; }
.auth-intro > p { max-width: 355px; margin-top: 20px; color: #5e7b7b; font-size: 15px; }
.auth-intro-note { display: flex; align-items: flex-start; gap: 11px; margin-top: 35px; max-width: 350px; padding: 18px; border: 1px solid #d3ebe5; border-radius: 20px; background: #ffffff7a; color: #547573; font-size: 13px; line-height: 1.6; }
.auth-intro-note svg { margin-top: 2px; color: #40978f; }
.auth-glass { isolation: isolate; border: 1px solid #fffffff0; background: linear-gradient(145deg, #ffffffe6, #effbf8dc); border-radius: 28px; box-shadow: 0 18px 56px #234e5913, 0 4px 16px #234e5907, inset 0 1px #fff; }
.auth-login-card { padding: clamp(24px, 3vw, 38px); min-width: 0; }
.auth-card-heading { margin-bottom: 25px; }
.auth-card-heading h2 { font-size: 27px; letter-spacing: -.8px; font-weight: 650; }
.auth-card-heading p { color: #5b7b78; font-size: 13px; margin-top: 8px; }
.auth-subtle { font-size: 12px; color: #617c79; }
.auth-trust-note { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 15px; background: #e6f7f1a8; color: #426e65; font-size: 12px; margin: 0 0 20px; }
.auth-search { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 13px; background: #ffffffbd; border: 1px solid #c4e0da; border-radius: 15px; margin-bottom: 18px; }
.auth-search:focus-within { outline: 2px solid #087f83; outline-offset: 2px; }
.auth-search input { border: 0 !important; padding: 10px 0 !important; min-height: 44px; width: 100%; min-width: 0; color: #214b50; background: transparent; outline: none !important; box-shadow: none !important; }
.auth-doctor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; max-height: 350px; overflow-y: auto; padding: 3px; margin: -3px; scrollbar-width: thin; scrollbar-color: #afd6cb transparent; }
.auth-doctor { display: flex; flex-direction: column; align-items: flex-start; gap: 13px; min-width: 0; min-height: 146px; padding: 18px; border: 1px solid #d1e6e1; border-radius: 20px; background: #ffffffb8; text-align: left; color: #244f51; transition: background-color 160ms, border-color 160ms, box-shadow 160ms; }
.auth-doctor:hover { background: #edf9f5; border-color: #8fcac0; box-shadow: 0 4px 14px #234e5908; }
.auth-doctor strong { display: block; font-size: 14px; line-height: 1.4; font-weight: 600; overflow-wrap: anywhere; }
.auth-doctor small { display: block; margin-top: 5px; font-size: 12px; color: #5b7873; }
.auth-avatar { display: inline-grid; place-items: center; flex: 0 0 auto; width: 43px; height: 43px; border-radius: 15px; background: #ddf1e9; color: #356e61; font-size: 13px; font-weight: 650; }
.auth-avatar.alt { background: #e6eef2; color: #4b717e; }
.auth-divider { height: 1px; background: #dcece6; margin: 25px 0 18px; }
.auth-link { min-height: 42px; padding: 8px 3px; border: 0; border-radius: 9px; color: #247c77; background: transparent; font-size: 13px; font-weight: 550; display: inline-flex; gap: 8px; align-items: center; }
.auth-link:hover { color: #075e62; }
.auth-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 12px 19px; border-radius: 16px; border: 1px solid #a9dcd2; background: #f0fcf7d4; color: #286f6b; font-size: 14px; font-weight: 600; line-height: 1.35; transition: background-color 160ms, border-color 160ms, box-shadow 160ms; }
.auth-button:hover:not(:disabled) { border-color: #7bbfb4; background: #e7f7f1; }
.auth-button.primary { background: linear-gradient(120deg, #c6eee5, #91dad0); color: #235d5b; border-color: #83cfc3; box-shadow: inset 0 1px #ffffff7a, 0 4px 10px #4caaa20a; }
.auth-button.primary:hover:not(:disabled) { background: linear-gradient(120deg, #bce9df, #86d4c9); }
.auth-button.danger { color: #9c4c46; background: #fff5f1; border-color: #ebd0c6; }
.auth-button.full { width: 100%; }
.auth-button.small { min-height: 38px; padding: 9px 13px; border-radius: 12px; font-size: 12px; }
.auth-icon-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: 0 0 auto; border: 1px solid transparent; border-radius: 14px; background: transparent; color: #427b78; }
.auth-icon-button:hover { background: #e3f4ed; }
.auth-field { display: block; margin: 0 0 18px; }
.auth-field > span { display: block; margin-bottom: 9px; color: #4b6f69; font-size: 13px; font-weight: 550; }
.auth-field input { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #b9d8d1; border-radius: 15px; background: #ffffffda; color: #214b50; box-shadow: none; font-size: 15px; }
.auth-field small { display: block; margin-top: 7px; font-size: 12px; color: #5c7974; line-height: 1.55; }
.auth-password { position: relative; }
.auth-password input { padding-right: 55px; }
.auth-password .auth-icon-button { position: absolute; right: 4px; top: 2px; }
.auth-pin-identity { display: flex; align-items: center; gap: 13px; margin: 20px 0 27px; }
.auth-pin-identity strong { display: block; font-size: 17px; }
.auth-pin-identity small { display: block; color: #617d76; margin-top: 5px; font-size: 13px; }
.auth-pin-input { font-size: 29px !important; letter-spacing: 13px; text-align: center; font-variant-numeric: tabular-nums; min-height: 65px !important; padding-left: 26px !important; }
.auth-error { margin: 15px 0; padding: 13px 15px; background: #fff5ed; border: 1px solid #ecd7c4; border-radius: 15px; color: #835b33; font-size: 13px; line-height: 1.6; }
.auth-notice { margin: 16px 0; padding: 15px; background: #ecf8f3c9; border: 1px solid #d3e8de; border-radius: 17px; color: #466d64; font-size: 13px; line-height: 1.6; }
.auth-empty { padding: 28px 14px; text-align: center; color: #627b76; font-size: 13px; line-height: 1.6; }
.auth-empty strong { display: block; color: #315a54; font-size: 15px; margin-bottom: 6px; }
.auth-footer { display: flex; justify-content: space-between; gap: 16px; font-size: 11px; color: #63807b; padding-top: 16px; }
.auth-header-actions { display: flex; align-items: center; gap: 13px; }
.auth-user-meta strong { display: block; font-size: 13px; font-weight: 600; }
.auth-user-meta small { color: #648077; font-size: 11px; }
.auth-main-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin: 47px 0 27px; }
.auth-main-heading h1 { font-size: 34px; font-weight: 650; letter-spacing: -1px; }
.auth-main-heading p { color: #637f78; font-size: 14px; margin-top: 9px; }
.auth-main-heading .auth-eyebrow { margin-bottom: 11px; }
.auth-owner-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.auth-feature { padding: 27px; }
.auth-feature .auth-avatar { width: 48px; height: 48px; margin-bottom: 26px; }
.auth-feature h2 { font-size: 21px; letter-spacing: -.4px; }
.auth-feature p { color: #5d7a73; font-size: 14px; margin: 11px 0 23px; max-width: 470px; }
.auth-feature-count { font-size: 12px; color: #527970; margin-top: 15px; }
.auth-overview-note { margin-top: 23px; padding: 21px 25px; display: flex; align-items: center; gap: 14px; }
.auth-overview-note p { color: #55766d; font-size: 13px; }
.auth-identity-card { max-width: 670px; margin: 65px auto; padding: 37px; text-align: center; }
.auth-identity-card .auth-avatar { width: 70px; height: 70px; border-radius: 24px; font-size: 23px; margin-bottom: 24px; }
.auth-identity-card h1 { font-size: 28px; letter-spacing: -.7px; }
.auth-identity-card p { color: #587970; margin-top: 14px; font-size: 14px; }
.auth-identity-card .auth-button { margin-top: 25px; }
.auth-list-panel { padding: 24px; }
.auth-list-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 22px; }
.auth-list-toolbar .auth-search { margin: 0; max-width: 410px; flex: 1; }
.auth-segments { display: inline-flex; gap: 3px; padding: 5px; border: 1px solid #d5e9e2; border-radius: 16px; background: #edf8f3b5; }
.auth-segments button { min-height: 38px; padding: 8px 14px; border: 0; border-radius: 12px; background: transparent; color: #5d7f74; font-size: 12px; }
.auth-segments button[aria-pressed="true"] { background: #fff; color: #246a60; box-shadow: 0 3px 8px #356b5d08; font-weight: 600; }
.auth-records { display: grid; gap: 11px; }
.auth-record { display: flex; align-items: center; gap: 15px; padding: 18px; border: 1px solid #d5e8e0; border-radius: 20px; background: #ffffffa8; }
.auth-record-copy { min-width: 0; flex: 1; }
.auth-record-copy strong { display: block; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.auth-record-copy small { display: block; font-size: 12px; color: #5e7c73; margin-top: 5px; line-height: 1.6; }
.auth-record-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.auth-status { display: inline-flex; border-radius: 10px; padding: 5px 9px; font-size: 11px; color: #396c5c; background: #e7f5ed; }
.auth-status.off { color: #6c776d; background: #f0f2ed; }
.auth-inline-error { margin-bottom: 22px; }
.auth-edge-zone { position: fixed; left: 0; top: 50%; z-index: 78; width: 44px; height: 84px; transform: translateY(-50%); }
.auth-edge-handle { position: relative; width: 44px; height: 84px; padding: 0; border: 0; border-radius: 18px; background: transparent; color: #377e79; display: grid; place-items: center; touch-action: manipulation; }
.auth-edge-capsule { width: 24px; height: 60px; border: 1px solid #ffffffef; border-radius: 15px; background: linear-gradient(155deg, #ffffffed, #def3efc9); box-shadow: 0 3px 12px #245b5514, inset 0 0 0 1px #d1e9e455; display: grid; place-items: center; position: relative; transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease; }
.auth-edge-grip { width: 3px; height: 23px; border-radius: 4px; background: #579d96; transition: transform 180ms ease; }
.auth-edge-capsule svg { position: absolute; right: 2px; opacity: 0; transform: translateX(-2px); transition: opacity 180ms ease, transform 180ms ease; }
.auth-edge-hint { position: absolute; left: 46px; padding: 6px 10px; border: 1px solid #d7ebe5; border-radius: 10px; background: #f7fcfa; color: #356e66; font-size: 12px; pointer-events: none; visibility: hidden; }
.auth-edge-handle:focus-visible .auth-edge-hint { visibility: visible; }
.auth-edge-handle:focus-visible { outline: none; }
.auth-edge-handle:focus-visible .auth-edge-capsule { outline: 2px solid #087f83; outline-offset: 3px; }
.auth-edge-handle:focus-visible .auth-edge-capsule { transform: translateX(2px); box-shadow: 0 4px 16px #245b5524; }
.auth-edge-handle:focus-visible .auth-edge-grip { transform: translateX(-4px) scaleY(.75); }
.auth-edge-handle:focus-visible .auth-edge-capsule svg { opacity: 1; transform: translateX(0); }
.auth-edge-handle:active .auth-edge-capsule { transform: translateX(2px) scale(.95); }
.auth-edge-handle[aria-expanded="true"] { visibility: hidden; pointer-events: none; }
@media (hover: hover) {
  .auth-edge-handle:hover .auth-edge-capsule { transform: translateX(2px); box-shadow: 0 4px 16px #245b5524; }
  .auth-edge-handle:hover .auth-edge-grip { transform: translateX(-4px) scaleY(.75); }
  .auth-edge-handle:hover .auth-edge-capsule svg { opacity: 1; transform: translateX(0); }
}
.auth-edge-menu { position: fixed; left: 14px; top: 50%; z-index: 79; width: 286px; max-width: calc(100vw - 28px); max-height: calc(100dvh - 28px); overflow-y: auto; overscroll-behavior: contain; padding: 17px 14px 14px; transform: translateY(-50%); backdrop-filter: blur(8px); scrollbar-width: thin; scrollbar-color: #a5cec4 transparent; }
.auth-edge-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; padding-left: 8px; }
.auth-edge-close { width: 36px; height: 44px; border-radius: 13px; }
.auth-edge-menu .auth-brand { width: 193px; max-width: calc(100% - 46px); margin: 0; padding: 0; }
.auth-edge-menu nav { display: grid; gap: 4px; }
.auth-nav-button { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 11px 13px; border: 1px solid transparent; border-radius: 15px; color: #4e7369; background: transparent; text-align: left; font-size: 13px; transition: background-color 160ms ease, border-color 160ms ease; }
.auth-nav-button:hover { background: #e7f5efbf; color: #1b6b60; }
.auth-nav-button.active { background: #daf0e8bd; border-color: #cee8df; color: #1b6b60; font-weight: 600; }
.auth-edge-footer { margin: 15px 8px 0; padding-top: 14px; border-top: 1px solid #d3e8df; }
.auth-edge-identity { padding: 0 4px; }
.auth-edge-identity strong { display: block; font-size: 12px; line-height: 1.5; font-weight: 550; color: #3e665e; overflow-wrap: anywhere; }
.auth-edge-footer small { display: block; margin-top: 2px; color: #618174; font-size: 11px; }
.auth-edge-footer .auth-link { width: 100%; min-height: 44px; padding: 8px 4px; margin-top: 5px; gap: 10px; }
.auth-dialog { width: min(540px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid #fffffff2; border-radius: 28px; background: linear-gradient(145deg, #fffffff0, #effaf6ec); color: #234f4d; box-shadow: 0 22px 65px #173f4629, inset 0 1px #fff; overflow-y: auto; overscroll-behavior: contain; }
.auth-dialog[open] { animation: none !important; opacity: 1 !important; }
.auth-dialog::backdrop { background: #254d4c35; }
.auth-dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 25px 26px 20px; border-bottom: 1px solid #d5e8e1; }
.auth-dialog-heading h2 { font-size: 23px; letter-spacing: -.5px; padding-top: 6px; }
.auth-dialog-heading p { margin-top: 6px; font-size: 12px; color: #607e73; }
.auth-dialog-body { padding: 25px 26px; }
.auth-dialog-footer { display: flex; justify-content: flex-end; gap: 9px; padding: 18px 26px; border-top: 1px solid #d5e8e1; background: #f5fcf8ed; position: sticky; bottom: 0; }
.auth-dialog-body .auth-field:last-child { margin-bottom: 0; }
.auth-role-choice { margin-bottom: 22px; width: 100%; }
.auth-role-choice button { flex: 1; min-height: 42px; }
.auth-pin-options { margin-top: 17px; font-size: 13px; color: #57786e; }
.auth-pin-options summary { cursor: pointer; padding: 10px 0; }
.auth-pin-options .auth-field { margin-top: 12px; }
.auth-issued-pin { display: block; text-align: center; font-size: 43px; letter-spacing: 12px; font-variant-numeric: tabular-nums; padding: 23px 12px 23px 24px; background: #e3f5ed; border: 1px solid #b6dbcd; border-radius: 20px; margin: 22px 0; color: #286a59; }
.auth-toast { position: fixed; right: 24px; bottom: 22px; z-index: 1100; max-width: min(480px, calc(100vw - 32px)); padding: 16px 19px; border: 1px solid #c0ddd1; border-radius: 18px; color: #285f52; background: #f4fcf8f5; box-shadow: 0 10px 30px #224d4321; font-size: 13px; line-height: 1.5; }
.auth-toast.error { color: #845c33; border-color: #ead8bc; background: #fff8edf5; }
@media (max-width: 900px) {
  .auth-shell { padding: 22px 24px 20px; }
  .auth-login-layout { grid-template-columns: 1fr; max-width: 580px; gap: 24px; min-height: 0; padding: 40px 0; }
  .auth-intro { padding: 0; }
  .auth-intro h1 { font-size: 34px; }
  .auth-intro > p { max-width: none; margin-top: 12px; }
  .auth-intro-note { display: none; }
  .auth-header-actions .auth-user-meta { display: none; }
  .auth-owner-grid { gap: 14px; }
  .auth-list-toolbar { align-items: stretch; flex-direction: column; }
  .auth-list-toolbar .auth-search { max-width: none; }
  .auth-segments { align-self: flex-start; }
  .auth-record { flex-wrap: wrap; }
  .auth-record-actions { margin-left: 58px; width: calc(100% - 58px); justify-content: flex-start; }
}
@media (max-width: 560px) {
  .auth-shell { padding: 18px 18px 18px 24px; }
  .auth-badge .auth-station-label { display: none; }
  .auth-topbar .auth-brand { flex-basis: 220px; width: 220px; }
  .auth-login-layout { padding: 30px 0; }
  .auth-intro h1 { font-size: 30px; letter-spacing: -1px; }
  .auth-login-card { padding: 24px 20px; }
  .auth-card-heading h2 { font-size: 23px; }
  .auth-doctor-grid { gap: 9px; }
  .auth-doctor { padding: 14px; min-height: 142px; }
  .auth-doctor strong { font-size: 13px; }
  .auth-owner-grid { grid-template-columns: 1fr; }
  .auth-main-heading { align-items: stretch; flex-direction: column; margin-top: 30px; }
  .auth-main-heading h1 { font-size: 29px; }
  .auth-main-heading > .auth-button { align-self: flex-start; }
  .auth-list-panel { padding: 16px; }
  .auth-feature { padding: 24px; }
  .auth-record { gap: 11px; padding: 15px; }
  .auth-record-actions { margin: 0; width: 100%; }
  .auth-record-copy strong { font-size: 14px; }
  .auth-header-actions .auth-button { padding: 10px 13px; min-height: 42px; font-size: 12px; }
  .auth-header-actions .auth-button svg { display: none; }
  .auth-identity-card { padding: 30px 24px; margin: 40px auto; }
  .auth-footer { flex-direction: column; gap: 5px; font-size: 10px; }
  .auth-dialog-heading { padding: 19px 20px 17px; }
  .auth-dialog-body { padding: 22px 20px; }
  .auth-dialog-footer { padding: 15px 20px; }
  .auth-dialog-footer .auth-button { flex: 1; }
  .auth-toast { right: 16px; bottom: 15px; }
}
@media (max-height: 600px) {
  .auth-login-layout { align-items: start; padding-top: 24px; padding-bottom: 24px; min-height: 0; }
  .auth-intro { padding-top: 18px; }
  .auth-intro-note { margin-top: 20px; }
  .auth-dialog { max-height: calc(100dvh - 20px); }
  .auth-doctor-grid { max-height: none; }
}
@media (prefers-reduced-motion: reduce) { .auth-body *, .auth-body *::before, .auth-body *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print { .auth-body #authApp, .auth-body dialog, .auth-body .auth-toast { display: none !important; } }
