/* Email authentication and platform administration. */
.auth-layout { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr); color: #242538; }
.auth-story { padding: clamp(28px, 5vw, 76px); background: radial-gradient(ellipse at 85% 15%, #e3dafd 0, transparent 65%), #f4f0ff; border-inline-end: 1px solid #e1e4ec; display: flex; flex-direction: column; gap: 48px; }
.auth-brand { display: flex; align-items: center; gap: 12px; width: fit-content; color: #242538; }
.auth-brand strong { font-size: 30px; font-weight: 750; letter-spacing: -.06em; }
.auth-brand-mark { display: grid; place-items: center; background: #7454e8; width: 42px; height: 46px; border: 1px solid #7350df; border-radius: 12px; }
.auth-brand-mark svg { width: 25px; height: 25px; }
.auth-story-content { margin-block: auto; max-width: 480px; }
.auth-eyebrow { display: block; color: #6d47c3; font-size: 14px; margin-bottom: 14px; }
.auth-story h1 { font-size: clamp(34px, 4vw, 58px); line-height: 1.45; letter-spacing: -.055em; margin-bottom: 20px; }
.auth-story-content > p { color: #596176; line-height: 1.95; font-size: 18px; max-width: 390px; }
.auth-story-card { display: flex; align-items: flex-start; gap: 14px; margin-top: 42px; padding: 22px; border: 1px solid #e1e4ec; background: #ffffff; border-radius: 14px; }
.auth-story-card > svg { color: #6d47c3; width: 25px; height: 25px; margin-top: 3px; }
.auth-story-card strong, .auth-story-card span { display: block; }
.auth-story-card strong { margin-bottom: 6px; font-size: 17px; }
.auth-story-card span, .auth-story-foot { color: #596176; font-size: 14px; line-height: 1.9; }
.auth-form-panel { min-width: 0; padding: 48px 30px 24px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 40px; background: #ffffff; }
.auth-form-card { width: min(100%, 420px); margin-block: auto; min-width: 0; }
.auth-symbol { width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid #c6b6ee; border-radius: 14px; background: #f1ecfc; color: #6d47c3; margin-bottom: 22px; }
.auth-symbol svg { width: 25px; height: 25px; }
.auth-form-card h2 { font-size: 27px; line-height: 1.6; margin-bottom: 8px; }
.auth-intro { color: #596176; font-size: 15px; line-height: 1.9; margin-bottom: 24px; overflow-wrap: anywhere; }
.auth-form { display: grid; gap: 19px; min-width: 0; }
.auth-field { display: flex; flex-direction: column; gap: 8px; color: #242538; font-size: 14px; min-width: 0; }
.auth-field input { width: 100%; min-width: 0; min-height: 50px; padding: 12px 14px; border: 1px solid #e1e4ec; border-radius: 9px; background: #ffffff; color: #242538; font-size: 16px; }
.auth-field input[readonly] { color: #596176; background: #f8f9fc; }
.auth-field input:focus { border-color: #8aabf7; outline: 2px solid #3b82f633; outline-offset: 1px; }
.auth-password { position: relative; display: flex; align-items: stretch; min-width: 0; }
.auth-password input { padding-inline-start: 78px; }
.auth-password-toggle { position: absolute; left: 5px; top: 4px; bottom: 4px; min-height: 42px; min-width: 64px; padding: 6px 10px; border: 0; border-radius: 7px; background: #f4f5fa; color: #596176; font-size: 13px; }
.auth-password-toggle:hover { background: #f4f5fa; }
.auth-help { color: #596176; line-height: 1.8; font-size: 13px; margin-top: -7px; }
.auth-submit { width: 100%; min-height: 52px; font-size: 16px; margin-top: 5px; }
.auth-support { color: #697286; font-size: 14px; line-height: 1.9; text-align: center; margin-top: 24px; }
.auth-form-foot { color: #697286; font-size: 13px; text-align: center; }
.auth-notice { padding: 13px 15px; margin-bottom: 20px; border: 1px solid #f2cbd4; border-radius: 9px; background: #fff1f4; color: #b42342; font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.auth-notice.is-success { border-color: #c6e8d5; color: #16704a; background: #edf9f2; }
.auth-unavailable { border: 1px solid #e1e4ec; border-radius: 12px; background: #ffffff; padding: 22px; }
.auth-unavailable p { color: #596176; line-height: 1.9; margin-top: 10px; }
.superadmin-shell { min-height: 100vh; min-height: 100dvh; background: #f6f7fb; }
.superadmin-header { padding: 22px max(24px, env(safe-area-inset-right, 0px)); border-bottom: 1px solid #e1e4ec; background: #ffffff; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; }
.superadmin-account { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; min-width: 0; }
.superadmin-account > span { min-width: 0; }
.superadmin-account strong, .superadmin-account small { display: block; }
.superadmin-account strong { font-size: 14px; font-weight: 500; }
.superadmin-account small { font-size: 13px; color: #596176; overflow-wrap: anywhere; max-width: 340px; }
.superadmin-account .button { font-size: 14px; }
.superadmin-main { max-width: 1280px; padding: 36px 28px 24px; margin: 0 auto; }
.superadmin-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; margin-bottom: 28px; }
.superadmin-heading .auth-eyebrow { margin-bottom: 7px; }
.superadmin-heading h1 { font-size: 30px; margin-bottom: 7px; }
.superadmin-heading p { color: #596176; font-size: 15px; line-height: 1.8; }
.superadmin-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 28px; }
.superadmin-stats > div { padding: 22px; background: #ffffff; border: 1px solid #e1e4ec; border-radius: 13px; }
.superadmin-stats span { color: #596176; font-size: 14px; }
.superadmin-stats strong { display: block; font-size: 32px; line-height: 1.4; color: #242538; margin-top: 8px; font-variant-numeric: tabular-nums; }
.superadmin-stats > div:nth-child(2) { background: #edf9f2; border-color: #c6e8d5; }
.superadmin-stats > div:nth-child(2) strong { color: #16704a; }
.superadmin-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 20px; }
.auth-search { display: flex; align-items: center; gap: 10px; padding: 0 14px; min-height: 48px; flex: 1 1 300px; background: #ffffff; border: 1px solid #e1e4ec; border-radius: 9px; color: #596176; min-width: 0; }
.auth-search input { width: 100%; min-width: 0; height: 46px; font-size: 16px; color: #242538; border: 0; background: transparent; outline: none; box-shadow: none; }
.auth-search:focus-within { border-color: #86a9ee; box-shadow: 0 0 0 2px #22243a12; }
.superadmin-cafe-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 18px; }
.superadmin-cafe { padding: 23px; border: 1px solid #e1e4ec; background: #ffffff; border-radius: 14px; min-width: 0; }
.superadmin-cafe-top { display: flex; gap: 14px; align-items: center; min-width: 0; }
.superadmin-cafe-top > div { min-width: 0; }
.superadmin-cafe-top h2 { font-size: 20px; overflow-wrap: anywhere; margin-bottom: 7px; }
.superadmin-cafe-icon { background: #f1ecfc; color: #6d47c3; border: 1px solid #c6b6ee; width: 50px; height: 54px; border-radius: 11px; display: grid; place-items: center; flex: 0 0 auto; }
.superadmin-cafe-icon svg { width: 25px; height: 25px; }
.superadmin-cafe-details { margin: 22px 0; display: grid; gap: 12px; }
.superadmin-cafe-details > div { display: grid; gap: 3px; }
.superadmin-cafe-details dt { color: #596176; font-size: 13px; }
.superadmin-cafe-details dd { color: #242538; margin: 0; text-align: start; font-size: 15px; overflow-wrap: anywhere; }
.superadmin-cafe-details dd[dir="ltr"] { text-align: right; }
.superadmin-cafe-actions { display: flex; flex-wrap: wrap; gap: 8px; border-top: 1px solid #e1e4ec; padding-top: 18px; }
.superadmin-cafe-actions .button { flex: 1 1 135px; font-size: 14px; min-height: 46px; }
.superadmin-footnote { color: #697286; font-size: 14px; line-height: 1.9; text-align: center; margin-top: 28px; }
.auth-empty { grid-column: 1 / -1; padding: 60px 22px; border: 1px dashed #e1e4ec; border-radius: 14px; text-align: center; background: #ffffff; }
.auth-empty > svg { width: 38px; height: 38px; color: #596176; margin-bottom: 16px; }
.auth-empty h2 { font-size: 22px; }
.auth-empty p { color: #596176; line-height: 1.9; margin: 12px 0 22px; }
.auth-empty .button { margin-inline: auto; }
.auth-modal-open { overflow: hidden; }
.auth-dialog { width: min(490px, calc(100vw - 24px)); max-width: calc(100vw - 24px); max-height: calc(var(--visual-height, 100dvh) - 24px); margin: auto; padding: 0; overflow: hidden; background: #ffffff; border: 1px solid #e1e4ec; color: #242538; border-radius: 14px; box-shadow: 0 25px 90px #22243a12; }
.auth-dialog[open] { display: flex; flex-direction: column; }
.auth-dialog::backdrop { background: #24203955; backdrop-filter: blur(5px); }
.auth-dialog-header { display: flex; flex: 0 0 auto; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid #e1e4ec; }
.auth-dialog-header h2 { flex: 1; font-size: 19px; }
.auth-dialog-header .icon-button { background: transparent; border: 0; color: #596176; }
.auth-dialog > .auth-form { display: flex; flex-direction: column; gap: 0; min-height: 0; overflow: hidden; }
.auth-dialog-body { padding: 22px; display: grid; gap: 18px; overflow: auto; min-height: 0; overscroll-behavior: contain; }
.auth-dialog-body .auth-intro { margin-bottom: 0; }
.auth-dialog-body .auth-notice { margin-bottom: 0; }
.auth-dialog-footer { display: flex; flex: 0 0 auto; gap: 12px; padding: 16px 22px max(16px, env(safe-area-inset-bottom, 0px)); border-top: 1px solid #e1e4ec; background: #f4f5fa; }
.auth-dialog-footer .button { flex: 1; min-height: 48px; min-width: 0; }

@media (max-width: 859px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-story { gap: 20px; padding: 26px 28px; border-inline-end: 0; border-bottom: 1px solid #e1e4ec; }
  .auth-story-content { display: none; }
  .auth-story-foot { display: none; }
  .auth-form-panel { min-height: calc(100dvh - 99px); padding: 35px 24px 20px; }
  .superadmin-header { padding: 20px; }
  .superadmin-main { padding: 28px 20px 20px; }
}

@media (max-width: 599px) {
  .auth-brand strong { font-size: 26px; }
  .auth-brand-mark { width: 36px; height: 40px; }
  .auth-story { padding: calc(20px + env(safe-area-inset-top, 0px)) 22px 20px; }
  .auth-form-panel { padding: 28px 22px max(20px, env(safe-area-inset-bottom, 0px)); }
  .auth-form-card h2 { font-size: 24px; }
  .auth-intro { font-size: 14px; }
  .superadmin-header { align-items: flex-start; gap: 20px; padding-top: calc(20px + env(safe-area-inset-top, 0px)); }
  .superadmin-account { width: 100%; justify-content: space-between; gap: 12px; }
  .superadmin-account > span { flex: 1; }
  .superadmin-account .button { padding: 10px; }
  .superadmin-main { padding: 24px 16px; }
  .superadmin-heading h1 { font-size: 27px; }
  .superadmin-heading > .button { width: 100%; }
  .superadmin-stats { gap: 8px; }
  .superadmin-stats > div { padding: 14px 10px; }
  .superadmin-stats span { font-size: 12px; line-height: 1.8; display: block; }
  .superadmin-stats strong { font-size: 27px; }
  .superadmin-toolbar > .button { flex: 1 1 auto; font-size: 14px; }
  .superadmin-cafe { padding: 19px; }
  .auth-dialog-header { padding: 12px 14px; }
  .auth-dialog-header h2 { font-size: 17px; }
  .auth-dialog-body { padding: 18px 16px; }
  .auth-dialog-footer { padding: 14px 16px max(14px, env(safe-area-inset-bottom, 0px)); gap: 8px; }
  .auth-dialog-footer .button { font-size: 14px; padding-inline: 9px; }
}

@media (max-height: 580px) and (min-width: 860px) {
  .auth-story { padding-block: 24px; gap: 20px; }
  .auth-story h1 { font-size: 35px; }
  .auth-story-card { margin-top: 20px; }
  .auth-form-panel { padding-block: 24px; gap: 20px; }
}

/* Light identity and responsive bilingual controls. */
.auth-story-header{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}
.auth-brand{color:#242538}
.auth-brand-mark{color:#fff;background:#7150d8;border-color:#7150d8;box-shadow:0 4px 16px #7150d819}
.auth-story h1{color:#29223d}
.auth-story-card{background:#ffffffb8;border-color:#ded4f2;box-shadow:0 8px 30px #7150d806}
.auth-story-card strong{color:#39304e}
.auth-story-card > svg{color:#7150d8}
.auth-story-card span,.auth-story-foot{color:#695f7d}
.auth-story-content > p{color:#695f7d}
.auth-eyebrow{color:#7150b1}
.auth-form-panel{background:#fff}
.auth-field input{background:#fff;border-color:#d8dce6;color:#242538}
.auth-field input[readonly]{background:#f6f7fb;color:#697286}
.auth-password input{padding-inline-start:14px;padding-inline-end:78px}
.auth-password-toggle{left:auto;right:5px;background:#f3effb;color:#6741b8}
.auth-password-toggle:hover{background:#e9e0f9}
.auth-symbol{background:#f1ecfc;color:#7150d8;border-color:#e1d6f5}
.auth-notice{background:#fff1f4;color:#b42342;border-color:#f2cbd4}
.auth-notice.is-success{background:#edf9f2;color:#16704a;border-color:#c6e8d5}
.auth-dialog{background:#fff;color:#242538;box-shadow:0 24px 100px #23213728}
.auth-dialog::backdrop{background:#29233855}
.auth-dialog-footer{background:#fafbfe}
.superadmin-cafe,.superadmin-stats > div{background:#fff;box-shadow:0 4px 18px #25253d04}
.superadmin-stats > div:nth-child(2){background:#f4fbf6;border-color:#d7ebde}
.superadmin-stats > div:nth-child(2) strong{color:#16704a}
.superadmin-cafe-details dd[dir="ltr"]{text-align:right}
[dir="ltr"] .superadmin-cafe-details dd[dir="ltr"]{text-align:left}
[dir="ltr"] .auth-story h1{letter-spacing:-.045em;line-height:1.15}
[dir="ltr"] .auth-field,[dir="ltr"] .auth-form-card{text-align:left}
@media (max-width:599px){
 .auth-story-header{gap:10px;flex-wrap:nowrap}
 .auth-story-header .language-switcher{padding:3px}
 .auth-story-header .language-switcher button{font-size:14px;padding:5px 9px;min-height:36px}
 .auth-brand{gap:8px}
 .superadmin-account .language-switcher{margin-inline-start:auto}
}
@media (max-width:359px){
 .auth-story{padding-inline:16px}
 .auth-story-header .language-switcher button{padding-inline:7px}
 .auth-brand strong{font-size:24px}
 .auth-brand-mark{width:32px;height:36px}
}
.auth-form-card h2,.superadmin-heading h1,.superadmin-cafe h2,.auth-dialog-header h2{color:#242538}
.auth-intro,.auth-help,.auth-support,.auth-form-foot{color:#697286}
