/* MDPASS Manager. The desktop console's identity (resources/css/app.css, admin/layout and the
   shared status badge) in an independent phone-first layout. Logical properties throughout, so
   RTL and LTR mirror from <html dir>. Font and icons are served from this host only. */
@font-face { font-family: 'Tajawal'; font-style: normal; font-weight: 400; font-display: swap; src: url('/manager-assets/fonts/tajawal-arabic-400-normal.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Tajawal'; font-style: normal; font-weight: 400; font-display: swap; src: url('/manager-assets/fonts/tajawal-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2192, U+2193, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: 'Tajawal'; font-style: normal; font-weight: 500; font-display: swap; src: url('/manager-assets/fonts/tajawal-arabic-500-normal.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Tajawal'; font-style: normal; font-weight: 500; font-display: swap; src: url('/manager-assets/fonts/tajawal-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2192, U+2193, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: 'Tajawal'; font-style: normal; font-weight: 700; font-display: swap; src: url('/manager-assets/fonts/tajawal-arabic-700-normal.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Tajawal'; font-style: normal; font-weight: 700; font-display: swap; src: url('/manager-assets/fonts/tajawal-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2192, U+2193, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: 'Tajawal'; font-style: normal; font-weight: 800; font-display: swap; src: url('/manager-assets/fonts/tajawal-arabic-800-normal.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Tajawal'; font-style: normal; font-weight: 800; font-display: swap; src: url('/manager-assets/fonts/tajawal-latin-800-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2192, U+2193, U+2212, U+FEFF, U+FFFD; }
:root {
  --navy: #071B3A; --navy-950: #031126; --gold: #F5B82E; --brand: #5847f5; --brand-2: #4F46E5; --brand-soft: #f0efff; --brand-ink: #4938d7;
  --text: #0F172A; --muted: #64748B; --faint: #94A3B8; --bg: #F7F9FC; --surface: #fff; --line: #E5EAF2; --line-2: #F1F5F9;
  --green: #166534; --green-solid: #15803d; --red: #991b1b; --red-solid: #dc2626;
  --r: 16px; --r-sm: 12px; --shadow: 0 8px 24px rgba(8,37,83,.045);
  --tab-h: 64px;
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px); --sar: env(safe-area-inset-right, 0px);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 'Tajawal', system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif; overflow-x: hidden; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p, dl, dd, ol { margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
button, select, input, textarea { font: inherit; color: inherit; }
img, svg { max-width: 100%; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sprite { position: absolute; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.bidi { unicode-bidi: plaintext; }
.muted { color: var(--muted); } .prewrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--navy); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 80; }
.skip:focus { top: 8px; }

/* icons: Bootstrap Icons are filled glyphs */
.ic { width: 20px; height: 20px; flex: none; fill: currentColor; }
.ic--xl { width: 40px; height: 40px; }
[dir="rtl"] .ic--chev, [dir="rtl"] .ic--back { transform: scaleX(-1); }
[dir="rtl"] .ic--flip { transform: scaleX(-1); }

/* brand */
.logo { display: inline-flex; align-items: center; gap: 7px; flex: none; }
.logo__word { font-weight: 800; font-size: 17px; line-height: 1; color: var(--navy); letter-spacing: .2px; }
.logo__word b { color: var(--gold); font-weight: 800; }
.logo__word--dark { color: #fff; font-size: 30px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 44px; }
.brand__tag { font-size: 12px; font-weight: 700; color: var(--muted); border-inline-start: 1px solid var(--line); padding-inline-start: 10px; white-space: nowrap; }

/* shell */
.shell { min-height: 100vh; padding-bottom: calc(var(--tab-h) + var(--sab) + 12px); }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--surface); border-bottom: 1px solid var(--line); padding: calc(6px + var(--sat)) max(14px, var(--sar)) 6px max(14px, var(--sal)); min-height: 56px; }
.topbar__lead, .topbar__actions { display: flex; align-items: center; gap: 6px; min-width: 0; }
.brand__name { font-weight: 800; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iconbtn { position: relative; width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: var(--r-sm); color: var(--muted); }
.iconbtn:hover { background: var(--line-2); }
.dot { position: absolute; top: 4px; inset-inline-end: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red-solid); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.content { width: 100%; max-width: 720px; margin-inline: auto; padding: 18px max(16px, var(--sar)) 24px max(16px, var(--sal)); }

/* bottom navigation: the desktop console's phone bar (navy, gold when active) */
.tabbar { position: fixed; inset-inline: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--navy); border-top: 1px solid rgba(255,255,255,.08); padding: 6px max(4px, var(--sar)) calc(6px + var(--sab)) max(4px, var(--sal)); }
.tabbar--4 { grid-template-columns: repeat(4, 1fr); } .tabbar--3 { grid-template-columns: repeat(3, 1fr); } .tabbar--2 { grid-template-columns: repeat(2, 1fr); }
.tabbar__link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 50px; min-width: 0; padding: 4px 2px; border-radius: var(--r-sm); color: rgba(255,255,255,.62); font-size: 11.5px; font-weight: 500; }
.tabbar__link span { max-width: 100%; overflow: hidden; line-height: 1.15; text-align: center; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tabbar__link.is-active { color: var(--gold); font-weight: 700; }

/* page, cards */
.page-head { margin-bottom: 14px; } .page-head h1 { font-size: 22px; line-height: 1.3; font-weight: 800; color: var(--navy); } .page-head .muted { font-size: 13.5px; margin-top: 2px; }
.page-head--row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.section__h { font-size: 15px; font-weight: 800; color: var(--navy); margin: 20px 0 10px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px; margin-bottom: 14px; }
.card__h--sub { margin-top: 14px; }
[data-accrual-warning] { margin: 12px 0 0; }
.card__h { margin-bottom: 12px; font-size: 15px; font-weight: 800; color: var(--navy); } .card__title { font-size: 18px; line-height: 1.35; font-weight: 800; color: var(--navy); overflow-wrap: anywhere; }
.card__row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; } .card__row > div { min-width: 0; }
.dl { display: grid; grid-template-columns: 1fr; }
.dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line-2); }
.dl > div:first-child { border-top: 0; }
.dl dt { color: var(--muted); font-size: 13.5px; flex: none; } .dl dd { font-weight: 700; text-align: end; min-width: 0; overflow-wrap: anywhere; }
.dl > div.dl__wide { flex-direction: column; gap: 4px; } .dl__wide dd { text-align: start; font-weight: 500; }
.hint { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; color: var(--muted); font-size: 13px; } .hint .ic { width: 15px; height: 15px; margin-top: 3px; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-sm); background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; font-size: 13.5px; margin: 12px 0; } .notice .ic { width: 17px; height: 17px; margin-top: 2px; }
.awaiting { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; padding: 10px 12px; background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; border-radius: var(--r-sm); font-size: 13.5px; } .awaiting .ic { width: 16px; height: 16px; margin-top: 3px; }

/* status pill: the shared admin status badge */
.badge { display: inline-flex; align-items: center; gap: 6px; flex: none; max-width: 55%; min-height: 26px; padding: 3px 10px; border: 1px solid transparent; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.35; text-align: center; }
.badge .ic { width: 12px; height: 12px; }
.badge--success { background: #dcfce7; border-color: #86efac; color: #166534; }
.badge--danger { background: #fee2e2; border-color: #fca5a5; color: #991b1b; }
.badge--warning { background: #fef3c7; border-color: #fcd34d; color: #92400e; }
.badge--neutral { background: #f1f5f9; border-color: #cbd5e1; color: #475569; }

/* dashboard */
.hero { display: flex; gap: 16px; align-items: center; background: linear-gradient(160deg, var(--navy-950) 0%, var(--navy) 55%, #0C2550 100%); color: #fff; border-radius: var(--r); padding: 18px; }
.hero__num { font-size: 40px; font-weight: 800; line-height: 1; min-width: 52px; text-align: center; color: var(--gold); } .hero__title { font-weight: 700; font-size: 16px; }
.queues { display: grid; gap: 12px; margin-top: 14px; }
.queue { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px; min-height: 88px; }
.queue:active, .queue:hover { border-color: #c7c2ff; }
.queue__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), #6b5cff); color: #fff; flex: none; } .queue__icon .ic { width: 22px; height: 22px; }
.queue__main { display: flex; flex-direction: column; flex: 1; min-width: 0; } .queue__title { font-weight: 800; color: var(--navy); } .queue__sub { color: var(--muted); font-size: 13px; }
.queue__later { color: #92400e; font-size: 12.5px; margin-top: 4px; }
.queue__count { min-width: 40px; height: 40px; padding: 0 10px; border-radius: 20px; display: grid; place-items: center; background: var(--line-2); color: var(--muted); font-weight: 800; font-size: 18px; }
.queue__count.is-waiting { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }

/* lists */
.list { display: flex; flex-direction: column; gap: 10px; }
.req { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 13px 14px; box-shadow: var(--shadow); min-width: 0; }
a.req:hover { border-color: #c7c2ff; }
.req__icon { width: 42px; height: 42px; flex: none; border-radius: var(--r-sm); background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center; }
.req__icon--muted { background: var(--line-2); color: var(--muted); }
.req__main { display: flex; flex-direction: column; min-width: 0; } .req__main strong { color: var(--navy); overflow-wrap: anywhere; }
.req__sub { color: var(--muted); font-size: 13.5px; overflow-wrap: anywhere; }
.ic--chev { color: var(--faint); width: 16px; height: 16px; }
.unread-dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: #3B82F6; }

/* notifications */
.note { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.note.is-unread { background: #F0F7FF; border-color: #bfdbfe; }
.note__open button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; background: transparent; border: 0; text-align: start; cursor: pointer; }
.note__open .req__main { flex: 1; }
.note__open form, .note__read { margin: 0; }
.note__read { border-top: 1px solid #dbeafe; display: flex; justify-content: flex-end; }
.note__read button { background: transparent; border: 0; min-height: 44px; padding: 0 14px; color: var(--brand-ink); font-weight: 700; font-size: 13px; cursor: pointer; }

/* push */
.push__state { margin-top: 10px; font-weight: 700; color: var(--navy); }

/* history */
.groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; background: var(--line-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 4px; }
.groups__tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; padding: 6px 4px; border-radius: 9px; text-align: center; font-size: 12.5px; font-weight: 700; line-height: 1.3; color: var(--muted); }
.groups__tab b { font-size: 17px; font-weight: 800; }
.groups__tab.is-active { background: var(--navy); color: #fff; } .groups__tab.is-active b { color: var(--gold); }
.hint--groups { margin: 10px 0 12px; }
.record__note { display: block; margin-top: 8px; font-size: 12.5px; color: #92400e; }
.filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.filters .field { margin: 0; }
.filters__actions { grid-column: 1 / -1; display: flex; gap: 10px; } .filters__actions .btn { flex: 1; }
.count { font-size: 13px; margin: 0 0 10px; }
.record { display: block; margin: 0; padding: 14px; }
.record__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.record__who { display: flex; flex-direction: column; min-width: 0; } .record__who strong { color: var(--navy); overflow-wrap: anywhere; }
.record__dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-2); }
.record__dl > span { display: flex; flex-direction: column; min-width: 0; } .record__dl em { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--muted); } .record__dl b { font-size: 13.5px; font-weight: 700; overflow-wrap: anywhere; }
.record__reason { grid-column: 1 / -1; } .record__reason b { font-weight: 500; color: var(--red); }

/* controls */
.field { display: block; margin-bottom: 14px; } .field > span:first-child { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.field input, .field select, .field textarea { width: 100%; min-width: 0; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; font-size: 16px; color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(91,92,246,.25); }
.field__err { margin: -6px 0 0; color: var(--red-solid); font-size: 13px; }
.field > .control { position: relative; display: block; }
.control .ic { position: absolute; inset-inline-end: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--faint); pointer-events: none; }
.control input { padding-inline-end: 42px; }
.control input[dir="ltr"] { padding-inline: 42px; }
.field__code { text-align: center; letter-spacing: .3em; font-size: 22px !important; direction: ltr; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: var(--r-sm); border: 1px solid transparent; font-weight: 700; cursor: pointer; background: var(--surface); text-align: center; }
.btn .ic { width: 17px; height: 17px; }
.btn--block { width: 100%; }
.btn--sm { min-height: 44px; padding: 0 12px; font-size: 13px; }
.btn--primary { background: var(--navy); color: #fff; } .btn--primary:hover { background: var(--navy-950); }
.btn--success { background: var(--green-solid); color: #fff; } .btn--success:hover { background: #166534; }
.btn--danger { background: var(--red-solid); color: #fff; } .btn--danger:hover { background: #b91c1c; }
.btn--danger-soft { background: #fee2e2; border-color: #fca5a5; color: var(--red); }
.btn--ghost { border-color: var(--line); background: #fff; color: #42536b; }
.btn[disabled] { opacity: .65; cursor: progress; pointer-events: none; }
.actions { display: grid; gap: 10px; margin-top: 14px; }

/* confirmation dialog: bottom sheet on phones, centred on wider screens */
.sheet { border: 0; padding: 0; width: 100%; max-width: 520px; max-height: 92vh; margin: auto auto 0; border-radius: 20px 20px 0 0; background: var(--surface); color: var(--text); box-shadow: 0 -8px 30px rgba(3,17,38,.28); }
.sheet::backdrop { background: rgba(3,17,38,.55); }
.sheet form { padding: 20px 18px calc(18px + var(--sab)); }
.sheet__title { font-size: 18px; font-weight: 800; color: var(--navy); }
.sheet__subject { margin-top: 10px; padding: 10px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.sheet__subject span { display: block; }
.sheet__subject .ltr { display: block; white-space: nowrap; text-align: start; }
[dir="rtl"] .sheet__subject .ltr { text-align: right; }
.sheet__text { margin: 10px 0 14px; color: var(--muted); font-size: 14px; }
.sheet__buttons { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
@media (min-width: 640px) { .sheet { margin: auto; border-radius: var(--r); } }

/* feedback */
.flash { padding: 12px 14px; border-radius: var(--r-sm); margin-bottom: 14px; font-size: 14px; border: 1px solid transparent; }
.flash--ok { background: #f0fdf4; border-color: #bbf7d0; color: #166534; } .flash--err { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.empty { text-align: center; padding: 32px 16px; color: var(--muted); background: var(--surface); border: 1px dashed #cbd5e1; border-radius: var(--r); box-shadow: none; } .empty .ic { color: #cbd5e1; margin-bottom: 8px; }
.empty__title { font-weight: 700; color: var(--navy); }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 16px; }
.pager__btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.timeline { list-style: none; position: relative; margin: 0; padding-inline-start: 22px; }
.timeline::before { content: ""; position: absolute; inset-block: 6px; inset-inline-start: 6px; width: 2px; background: var(--line); }
.timeline__item { position: relative; padding-bottom: 16px; } .timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before { content: ""; position: absolute; inset-inline-start: -22px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--faint); }
.timeline__item--success::before { border-color: #16a34a; }
.timeline__title { font-weight: 700; color: var(--navy); }
.signature { max-height: 110px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px; }
.langswitch { display: inline-flex; background: var(--line-2); border-radius: 999px; padding: 3px; }
.langswitch button { border: 0; background: transparent; padding: 6px 14px; min-height: 38px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; white-space: nowrap; }
.langswitch button.is-active { background: var(--surface); color: var(--navy); box-shadow: 0 1px 3px rgba(3,17,38,.15); }

/* sign-in, MFA and status screens: the desktop sign-in's navy brand panel above the form */
.auth { min-height: 100vh; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: calc(20px + var(--sat)) max(18px, var(--sar)) calc(20px + var(--sab)) max(18px, var(--sal)); background: linear-gradient(160deg, var(--navy-950) 0%, var(--navy) 50%, #0C2550 100%) top / 100% calc(var(--sat) + 228px) no-repeat, var(--bg); }
.auth__brand { display: flex; flex-direction: column; align-items: center; gap: 8px; color: #fff; text-align: center; min-height: 172px; padding-top: 18px; }
.auth__brand .logo { gap: 12px; }
.auth__brand strong { font-size: 18px; margin-top: 8px; } .auth__brand > span:not(.logo) { font-size: 13px; color: rgba(255,255,255,.7); }
.auth__card { width: 100%; max-width: 400px; margin: 0; padding: 22px 18px; box-shadow: 0 24px 60px rgba(3,17,38,.14); }
.auth__card h1 { font-size: 20px; font-weight: 800; color: var(--text); margin-bottom: 4px; } .auth__card .muted { font-size: 13.5px; margin-bottom: 16px; }
.auth__center { text-align: center; } .auth__center > .ic { margin: 0 auto 10px; display: block; color: var(--gold); }
.auth__foot { display: flex; justify-content: center; }
.auth__card .btn + .btn, .auth__card form + form { margin-top: 10px; }
.linkback { display: block; text-align: center; padding: 12px 10px 4px; color: var(--brand-ink); font-weight: 700; }

/* loading, offline */
.loading { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(247,249,252,.72); }
.loading__spin { width: 42px; height: 42px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--navy); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .loading__spin { animation-duration: 2.4s; } }
.offline-banner { position: fixed; inset-inline: 0; top: 0; z-index: 70; background: var(--red-solid); color: #fff; text-align: center; font-size: 13px; padding: calc(6px + var(--sat)) 10px 6px; }

@media (max-width: 360px) { .brand__tag { display: none; } .record__dl { grid-template-columns: 1fr; } .filters { grid-template-columns: 1fr; } }
@media (min-width: 768px) {
  .content { padding-block: 24px 32px; } .page-head h1 { font-size: 25px; }
  .dl { grid-template-columns: 1fr 1fr; column-gap: 28px; } .dl > div:nth-child(2) { border-top: 0; } .dl__wide { grid-column: 1 / -1; }
}
@media print { .tabbar, .topbar { display: none; } }

/* two-factor challenge (shield, loading state) */
.mfa-shield { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 18px; background: var(--navy); color: var(--gold); box-shadow: 0 8px 20px rgba(7,27,58,.22); }
.mfa-shield svg { width: 32px; height: 32px; }
.btn__spin { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: btn-spin .8s linear infinite; }
.btn.is-loading .btn__spin { display: inline-block; }
@keyframes btn-spin { to { transform: rotate(360deg); } }
.mfa-back { margin-top: 10px; }
