/* GENERATED FILE — do not edit directly. */

/* bundled: design-system.css */
/* V137 canonical design tokens. This is the only top-level :root owner. */
:root {
    color-scheme: light;
    --font-family-sans: Inter, "Be Vietnam Pro", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    --font-xs: 0.75rem;
    --font-badge-micro: 0.5rem;
    --font-nav-mobile-compact: 0.59375rem;
    --font-nav-mobile: 0.625rem;
    --font-sm: 0.8125rem;
    --font-body-sm: 0.875rem;
    --font-body: 1rem;
    --font-lg: 1.125rem;
    --font-xl: 1.375rem;
    --font-2xl: 1.75rem;
    --font-3xl: 2rem;
    --line-tight: 1.2;
    --line-heading: 1.3;
    --line-body: 1.5;
    --line-relaxed: 1.6;
    --weight-medium: 600;
    --weight-semibold: 700;
    --weight-bold: 800;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --control-sm: 36px;
    --control-md: 42px;
    --control-lg: 46px;
    --control-touch: 44px;
    --radius-sm: 8px;
    --radius-control: 12px;
    --radius-card: 16px;
    --radius-panel: 20px;
    --radius-modal: 24px;
    --radius-pill: 999px;
    --page-gutter: clamp(14px, 2vw, 28px);
    --card-padding: clamp(16px, 1.7vw, 22px);
    --section-gap: clamp(16px, 2vw, 24px);
    --bg: var(--ui-bg);
    --panel: var(--ui-surface);
    --text: var(--ui-text);
    --muted: var(--ui-muted);
    --line: var(--ui-border);
    --primary: var(--ui-primary);
    --primary-dark: var(--ui-primary-strong);
    --success: var(--ui-success);
    --warning: var(--ui-warning);
    --danger: var(--ui-danger);
    --soft-blue: var(--ui-blue-soft);
    --shadow: var(--ui-shadow-sm);
    --radius: var(--radius-card);
    --soft-mint: #ecfdf5;
    --zalo: #0068ff;
    --shadow-strong: 0 30px 90px rgba(15, 23, 42, .22);
    --motion-fast: 140ms;
    --motion-normal: 240ms;
    --motion-slow: 420ms;
    --ease-out: cubic-bezier(.2, .8, .2, 1);
    --ease-standard: cubic-bezier(.2, 0, 0, 1);
    --ease-spring: cubic-bezier(.16, 1, .3, 1);
    --ux-content-max: 1560px;
    --ux-reading-max: 860px;
    --ux-header-blur: blur(18px) saturate(1.18);
    --ux-control-shadow: 0 1px 2px rgba(16, 32, 58, .05), 0 8px 20px rgba(16, 32, 58, .055);
    --ux-focus-ring: 0 0 0 4px rgba(15, 143, 135, .16);
    --ux-elevated-border: rgba(189, 206, 222, .72);
    --ux-overlay: rgba(8, 21, 38, .48);
    --tenant-mobile-nav-height: 70px;
    --ui-surface: #ffffff;
    --ui-surface-soft: #f8fafc;
    --ui-line: rgba(148, 163, 184, .28);
    --ui-text: #14263f;
    --ui-muted: #4f6179;
    --ui-primary: #0f8f87;
    --ui-primary-2: #0891b2;
    --ui-danger: #d92d20;
    --ui-warning: #ed9b17;
    --ui-success: #16a56f;
    --ui-info: #3787e5;
    --ui-radius: var(--radius-card);
    --ui-shadow: 0 18px 45px rgba(15, 23, 42, .08);
    --ui-sticky-offset: 12px;
    --notify-green: #08783f;
    --notify-green-dark: #07552f;
    --notify-green-soft: #e9f7ef;
    --notify-ink: #15251c;
    --notify-muted: #66756c;
    --notify-border: #dfe8e2;
    --notify-surface: #fff;
    --notify-bg: #f4f8f5;
    --notify-gold: #c8a45a;
    --notify-danger: #dc2626;
    --notify-warning: #ed8b16;
    --notify-info: #2563eb;
    --notify-shadow: 0 18px 50px rgba(20,65,40,.09);
    --notification-read-bg: #fff;
    --notification-read-border: #dfe8e3;
    --notification-read-color: #31443a;
    --notification-read-title: #1c2738;
    --notification-read-preview: #50645a;
    --notification-read-shadow: 0 3px 12px rgb(15 74 52 / 5.5%);
    --notification-unread-border: #169b68;
    --notification-unread-accent: #08783f;
    --notification-unread-bg: linear-gradient(100deg,#cef5e2 0%,#e8faf1 45%,#f8fffb 100%);
    --notification-unread-shadow: 0 12px 30px rgb(8 120 63 / 20%);
    --notification-unread-title: #053f2a;
    --notification-unread-preview: #254c3d;
    --notification-unread-icon: linear-gradient(145deg,#08783f,#10a66c);
    --invoice-primary: #2563eb;
    --invoice-primary-soft: #eff6ff;
    --invoice-success: #059669;
    --invoice-success-soft: #ecfdf5;
    --invoice-warning: #d97706;
    --invoice-warning-soft: #fffbeb;
    --invoice-danger: #dc2626;
    --invoice-danger-soft: #fef2f2;
    --invoice-tenant: #7c3aed;
    --invoice-tenant-soft: #f5f3ff;
    --invoice-ink: #0f172a;
    --invoice-muted: #64748b;
    --invoice-border: #e2e8f0;
    --invoice-surface: #ffffff;
    --invoice-shadow: 0 14px 34px rgba(15, 23, 42, .08);
    --ui-bg: #f4f8fb;
    --ui-bg-elevated: #f8fbfd;
    --ui-surface-2: #f7fafc;
    --ui-surface-3: #eef7f6;
    --ui-text-strong: #0a1730;
    --ui-faint: #708198;
    --ui-border: #d8e3ed;
    --ui-border-strong: #bdcede;
    --ui-primary-strong: #08746e;
    --ui-primary-soft: #e6f8f5;
    --ui-blue: #2563eb;
    --ui-blue-soft: #eaf1ff;
    --ui-success-soft: #e7f9f0;
    --ui-warning-soft: #fff6dd;
    --ui-danger-soft: #fff0ef;
    --ui-info-soft: #eaf4ff;
    --ui-purple: #7566e8;
    --ui-purple-soft: #efedff;
    --ui-shadow-xs: 0 1px 2px rgba(16, 32, 58, .04);
    --ui-shadow-sm: 0 8px 24px rgba(16, 32, 58, .065);
    --ui-shadow-md: 0 18px 48px rgba(16, 32, 58, .09);
    --ui-shadow-lg: 0 28px 80px rgba(16, 32, 58, .16);
    --ui-radius-sm: var(--radius-sm);
    --ui-radius-lg: var(--radius-panel);
    --ui-radius-xl: var(--radius-modal);
    --ui-sidebar-width: 254px;
    --ui-topbar-height: 82px;
    --ui-focus: 0 0 0 4px rgba(15, 143, 135, .14);
    --surface: var(--ui-surface);
    --surface-soft: var(--ui-surface-2);
    --border: var(--ui-border);
    --premium-mobile-nav-height: 0px;
    --premium-mobile-nav-clearance: 86px;
    --premium-mobile-content-clearance: 154px;
    --notification-scrim-layer: 2147482600;
    --notification-popover-layer: 2147483100;
    --notification-overlay-layer: 2147483100;
    --notification-overlay-width: 430px;
    --quick-search-text: var(--ui-text, #0f172a);
    --quick-search-muted: var(--ui-muted, #64748b);
    --quick-search-line: var(--ui-border, #dce5eb);
    --quick-search-primary: var(--ui-primary, #0f766e);
    --quick-search-primary-strong: var(--ui-primary-strong, #0b5f59);
    --quick-search-primary-soft: var(--ui-primary-soft, #e8f8f4);
    --op-green: #059669;
    --op-green-dark: #047857;
    --op-green-soft: #ecfdf5;
    --op-blue: #2563eb;
    --op-blue-soft: #eff6ff;
    --op-orange: #ea580c;
    --op-orange-soft: #fff7ed;
    --op-red: #dc2626;
    --op-red-soft: #fef2f2;
    --op-purple: #7c3aed;
    --op-purple-soft: #f5f3ff;
    --op-ink: #0f172a;
    --op-muted: #64748b;
    --op-line: #e2e8f0;
    --op-surface: #fff;
    --op-bg: #f8fafc;
    --op-radius: var(--radius-card);
    --op-shadow: 0 16px 42px rgba(15,23,42,.08);
    --feedback-surface: #ffffff;
    --feedback-text: #243c3b;
    --feedback-muted: #607575;
    --feedback-border: #dce9e6;
    --feedback-shadow: 0 18px 44px rgba(15, 42, 42, .20);
    --feedback-success: #16855b;
    --feedback-success-soft: #eaf9f1;
    --feedback-success-border: #bee7d1;
    --feedback-info: #2563eb;
    --feedback-info-soft: #edf4ff;
    --feedback-info-border: #c7dafd;
    --feedback-warning: #b66a09;
    --feedback-warning-soft: #fff7dc;
    --feedback-warning-border: #efdca8;
    --feedback-danger: #c63b34;
    --feedback-danger-soft: #fff0ee;
    --feedback-danger-border: #f3c9c5;
    --auth-bg: #effbf7;
    --auth-surface: #ffffff;
    --auth-surface-soft: #f7fbfa;
    --auth-text: #102a2a;
    --auth-muted: #607575;
    --auth-line: #dce9e6;
    --auth-primary: #0f8b83;
    --auth-primary-dark: #0a6f69;
    --auth-blue: #2563eb;
    --auth-danger: #b42318;
    --auth-warning: #9a6700;
    --auth-success: #087443;
    --auth-shadow: 0 24px 70px rgba(15, 64, 61, .15), 0 6px 18px rgba(15, 64, 61, .08);
    --auth-radius: 30px;
    --auth-visual-height: 100dvh;
}

/*
 * Canonical visually-hidden utility.
 *
 * Keep accessible status text in the accessibility tree without allowing it
 * to participate in the visual layout. The data-attribute selector is a
 * fail-safe for the route live region if a template refactor drops sr-only.
 */
.sr-only,
[data-ux-route-announcer] {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
    pointer-events: none !important;
}

@media (max-width: 760px) {
    :root {
        --page-gutter: max(10px, env(safe-area-inset-left, 0px));
        --card-padding: 16px;
        --section-gap: 14px;
    }
}

/* Shared prepaint state; replaces inline style in the app shell. */
.notification-badge-zero-authoritative .js-notification-badge { display: none !important; }

/* bundled: auth.css */
/* Authentication UI V46 — one responsive layout for login, 2FA and password recovery. */

* { box-sizing: border-box; }
html.auth-screen-html {
  width: 100%;
  min-width: 0;
  min-height: 100%;
  overflow-x: clip;
  background: var(--auth-bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body.auth-screen-body {
  width: 100%;
  min-width: 0;
  min-height: 100%;
  margin: 0;
  overflow-x: clip;
  overflow-y: auto;
  overscroll-behavior-x: none;
  overscroll-behavior-y: contain;
  touch-action: pan-x pan-y pinch-zoom;
  color: var(--auth-text);
  background:
    radial-gradient(circle at 12% 12%, rgba(45, 212, 191, .18), transparent 34%),
    radial-gradient(circle at 88% 14%, rgba(59, 130, 246, .12), transparent 32%),
    linear-gradient(155deg, #f2fffa 0%, #eef7fb 52%, #f8fbff 100%);
}
body.auth-screen-body button,
body.auth-screen-body input,
body.auth-screen-body select,
body.auth-screen-body textarea { font: inherit; }
body.auth-screen-body a { color: inherit; }
body.auth-screen-body svg { display: block; width: 1em; height: 1em; }

/* Page shell */
.auth-compact-page,
.login-shell.activation-auth-shell {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: max(100svh, var(--auth-visual-height));
  display: grid;
  place-items: center;
  padding:
    max(18px, calc(env(safe-area-inset-top, 0px) + 12px))
    max(18px, calc(env(safe-area-inset-right, 0px) + 12px))
    max(18px, calc(env(safe-area-inset-bottom, 0px) + 12px))
    max(18px, calc(env(safe-area-inset-left, 0px) + 12px));
}
.auth-compact-bg {
  position: fixed;
  z-index: -1;
  pointer-events: none;
  border-radius: var(--radius-pill);
  opacity: .62;
  contain: strict;
}
.auth-compact-bg-one { width: 310px; height: 310px; left: -130px; top: -120px; background: rgba(45, 212, 191, .18); }
.auth-compact-bg-two { width: 260px; height: 260px; right: -110px; top: 14%; background: rgba(96, 165, 250, .14); }
.auth-compact-bg-three { width: 220px; height: 220px; right: 8%; bottom: -120px; background: rgba(16, 185, 129, .11); }

.auth-compact-shell { width: min(100%, 980px); min-width: 0; }
.auth-compact-card {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(260px, .82fr) minmax(360px, 1.18fr);
  grid-template-areas: "brand body" "footer footer";
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .88);
  border-radius: var(--auth-radius);
  background: rgba(255, 255, 255, .99);
  box-shadow: var(--auth-shadow);
}
.auth-compact-brand {
  grid-area: brand;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  padding: clamp(30px, 5vw, 56px);
  color: #fff;
  background: linear-gradient(145deg, rgba(8, 112, 104, .97), rgba(13, 148, 136, .94) 58%, rgba(37, 99, 235, .88));
}
.auth-compact-logo,
.login-logo {
  width: clamp(58px, 6vw, 76px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(3, 54, 51, .22);
}
.auth-compact-logo img,
.login-logo img { width: 100%; height: 100%; object-fit: cover; }
.auth-compact-eyebrow,
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  font-size: var(--font-xs);
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, .16);
}
.auth-compact-brand h1 {
  max-width: 15ch;
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.auth-compact-brand p { margin: 0; color: rgba(255, 255, 255, .86); line-height: 1.55; }

.auth-compact-body {
  grid-area: body;
  min-width: 0;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: clamp(28px, 5vw, 54px);
}
.auth-compact-form,
.auth-compact-form.login-form {
  width: min(100%, 530px);
  min-width: 0;
  display: grid;
  gap: var(--space-4);
  margin: 0;
}
.auth-compact-2fa-form { width: min(100%, 470px); }
.auth-compact-form-head { display: grid; justify-items: start; gap: 7px; margin-bottom: 2px; }
.auth-compact-form-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-card);
  color: var(--auth-primary-dark);
  background: #e5f8f4;
  font-size: var(--font-xl);
}
.auth-compact-form-head h2 { margin: 0; font-size: clamp(24px, 3vw, 32px); line-height: 1.15; letter-spacing: -.025em; }
.auth-compact-form-head p { max-width: 48ch; margin: 0; color: var(--auth-muted); line-height: 1.5; }
.auth-compact-field { min-width: 0; display: grid; gap: 7px; }
.auth-compact-field label,
.field label { font-size: var(--font-body-sm); font-weight: 800; color: #294443; }
.auth-compact-input-shell,
.password-toggle-wrap { min-width: 0; position: relative; }
.auth-compact-input-shell {
  display: flex;
  align-items: center;
  min-height: 52px;
  border: 1px solid var(--auth-line);
  border-radius: var(--radius-card);
  background: var(--auth-surface-soft);
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.auth-compact-input-shell:focus-within {
  border-color: rgba(15, 139, 131, .75);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(15, 139, 131, .11);
}
.auth-compact-input-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 48px;
  color: #58706f;
  font-size: 19px;
}
.auth-compact-input-shell input,
.auth-compact-form input:not([type="checkbox"]):not([type="radio"]),
.activation-card input {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  margin: 0;
  padding: 12px 14px;
  border: 0;
  outline: 0;
  border-radius: 15px;
  color: var(--auth-text);
  background: transparent;
  font-size: var(--font-body);
  line-height: 1.25;
}
.auth-compact-input-shell > input { padding-left: 0; }
.auth-compact-input-shell input::placeholder,
.activation-card input::placeholder { color: #8aa09f; opacity: 1; }
.auth-compact-code-shell { position: relative; }
.auth-compact-code-shell .auth-compact-input-icon {
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  translate: 0 -50%;
  z-index: 1;
  pointer-events: none;
}
.auth-compact-code-shell input {
  padding-inline: 52px;
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-variant-numeric: tabular-nums;
  font-size: clamp(18px, 4vw, 22px);
  font-weight: 800;
  letter-spacing: .22em;
  text-indent: .22em;
}

.password-toggle-wrap { width: 100%; display: flex; align-items: center; }
.auth-compact-input-shell .password-toggle-wrap input { padding-left: 0; padding-right: 48px !important; }
.password-toggle-btn {
  position: absolute;
  right: 5px;
  top: 50%;
  translate: 0 -50%;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: var(--radius-control);
  color: #607575;
  background: transparent;
  cursor: pointer;
}
.password-toggle-btn:hover,
.password-toggle-btn:focus-visible { color: var(--auth-primary-dark); background: #e8f7f4; outline: none; }
.password-toggle-btn .password-toggle-icon { display: block; width: 20px; height: 20px; pointer-events: none; }

.auth-compact-hint,
.field small { color: var(--auth-muted); font-size: var(--font-xs); line-height: 1.45; }
.auth-compact-helper-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-sm);
}
.auth-compact-helper-row a,
.auth-compact-back-link,
.auth-compact-reset-links a { color: var(--auth-primary-dark); font-weight: 800; text-decoration: none; }
.auth-compact-helper-row a:hover,
.auth-compact-back-link:hover,
.auth-compact-reset-links a:hover { text-decoration: underline; }
.auth-compact-secure-note {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--auth-muted);
  white-space: nowrap;
  font-size: clamp(10.5px, 2.8vw, 13px);
}
.auth-compact-secure-note svg { flex: 0 0 auto; }
.auth-compact-helper-row > a { white-space: nowrap; }

.btn,
.auth-compact-primary,
.auth-compact-passkey-action {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 18px;
  border: 0;
  border-radius: 15px;
  font-size: 15px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease, background-color .14s ease;
}
.btn-full { width: 100%; }
.btn-primary,
.auth-compact-primary { color: #fff; background: linear-gradient(135deg, var(--auth-primary), var(--auth-blue)); box-shadow: 0 12px 25px rgba(15, 139, 131, .22); }
.btn-light,
.auth-compact-passkey-action { color: #24403f; background: #eef6f5; border: 1px solid #d7e6e3; }
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid rgba(37, 99, 235, .22); outline-offset: 2px; }
.btn:disabled { cursor: wait; opacity: .76; }
.auth-compact-primary.is-auth-loading,
.auth-compact-primary[aria-busy="true"] {
  cursor: wait;
  pointer-events: none;
}

.btn-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: auth-spin .75s linear infinite;
}
.btn-light .btn-spinner { border-color: rgba(15, 42, 42, .2); border-top-color: currentColor; }
@keyframes auth-spin { to { transform: rotate(360deg); } }

.auth-compact-passkey-zone { display: grid; gap: var(--space-3); }
.auth-compact-divider { display: flex; align-items: center; gap: 10px; color: var(--auth-muted); font-size: var(--font-xs); font-weight: 750; }
.auth-compact-divider::before,
.auth-compact-divider::after { content: ""; flex: 1; height: 1px; background: var(--auth-line); }
.auth-compact-footer {
  grid-area: footer;
  padding: 13px 18px;
  text-align: center;
  color: var(--auth-muted);
  background: #f8fbfa;
  border-top: 1px solid #e8f0ee;
  font-size: var(--font-xs);
}
.auth-compact-step-badge { width: fit-content; display: inline-flex; align-items: center; gap: var(--space-2); color: var(--auth-primary-dark); font-size: var(--font-sm); font-weight: 850; }
.auth-compact-step-badge span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--auth-primary); }
.auth-compact-verified-box { display: grid; gap: 3px; padding: 13px 15px; border: 1px solid #bfe7d6; border-radius: 15px; color: var(--auth-success); background: #effcf6; }
.auth-compact-verified-box span { font-size: var(--font-sm); }
.auth-compact-reset-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: var(--font-sm); }
.auth-compact-back-link { min-height: var(--control-md); display: inline-flex; align-items: center; justify-content: center; gap: 6px; }

/* Account activation remains in the same isolated auth bundle. */
.activation-auth-shell { align-content: center; }
.activation-card {
  width: min(100%, 620px);
  display: grid;
  gap: var(--space-4);
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid rgba(255,255,255,.88);
  border-radius: var(--auth-radius);
  background: #fff;
  box-shadow: var(--auth-shadow);
}
.login-brand { display: flex; align-items: center; gap: 14px; }
.login-brand > div { display: grid; gap: 3px; }
.login-brand strong { font-size: var(--font-lg); }
.login-brand small,
.muted { color: var(--auth-muted); }
.activation-card h1 { margin: 0; font-size: clamp(26px, 4vw, 36px); }
.activation-card p { margin: 0; line-height: 1.55; }
.activation-card .section-eyebrow { color: var(--auth-primary-dark); background: #e6f7f3; }
.activation-card .login-form { display: grid; gap: 14px; }
.activation-card .field { display: grid; gap: 7px; }
.activation-card input { border: 1px solid var(--auth-line); background: var(--auth-surface-soft); }
.activation-card input:focus { border-color: rgba(15,139,131,.75); box-shadow: 0 0 0 4px rgba(15,139,131,.11); }

/* Tablet and compact desktop */
@media (max-width: 899px) {
  .auth-compact-shell { width: min(100%, 590px); }
  .auth-compact-card { grid-template-columns: 1fr; grid-template-areas: "brand" "body" "footer"; }
  .auth-compact-brand { align-items: center; text-align: center; padding: 24px 24px 21px; gap: 7px; }
  .auth-compact-brand h1 { max-width: none; font-size: clamp(25px, 6vw, 34px); }
  .auth-compact-brand p { max-width: 44ch; }
  .auth-compact-logo { width: 58px; border-radius: 18px; }
  .auth-compact-body { padding: 25px 26px 27px; }
  .auth-compact-form-head { justify-items: center; text-align: center; }
  .auth-compact-step-badge { justify-self: center; }
}

/* Mobile portrait / installed PWA */
@media (max-width: 599px) {
  .auth-compact-page,
  .login-shell.activation-auth-shell {
    place-items: start center;
    padding:
      max(10px, calc(env(safe-area-inset-top, 0px) + 6px))
      max(10px, calc(env(safe-area-inset-right, 0px) + 6px))
      max(14px, calc(env(safe-area-inset-bottom, 0px) + 8px))
      max(10px, calc(env(safe-area-inset-left, 0px) + 6px));
  }
  .auth-compact-shell { width: 100%; margin: auto 0; }
  .auth-compact-card { border-radius: clamp(20px, 6vw, 28px); box-shadow: 0 14px 38px rgba(15, 64, 61, .14); }
  .auth-compact-brand {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    grid-template-areas: "logo eyebrow" "logo title" "copy copy";
    align-items: center;
    justify-items: start;
    column-gap: var(--space-3);
    row-gap: var(--space-1);
    padding: 16px 18px 14px;
    text-align: left;
  }
  .auth-compact-logo { grid-area: logo; width: 50px; border-radius: var(--radius-card); }
  .auth-compact-eyebrow { grid-area: eyebrow; padding: 4px 7px; font-size: 9.5px; }
  .auth-compact-brand h1 { grid-area: title; max-width: 100%; font-size: clamp(21px, 6.2vw, 27px); line-height: 1.08; }
  .auth-compact-brand p { grid-area: copy; max-width: none; margin-top: 3px; font-size: 12.5px; line-height: 1.4; }
  .auth-compact-body { padding: 19px 18px 21px; }
  .auth-compact-form { gap: 13px; }
  .auth-compact-form-icon { width: 40px; height: 40px; border-radius: 13px; font-size: 19px; }
  .auth-compact-form-head h2 { font-size: var(--font-xl); }
  .auth-compact-form-head p { font-size: 12.5px; }
  .auth-compact-input-shell { min-height: 50px; border-radius: 15px; }
  .auth-compact-input-shell input { min-height: 48px; }
  .auth-compact-helper-row { gap: 6px; }
  .auth-compact-secure-note { gap: var(--space-1); }
  .auth-compact-reset-links { display: grid; justify-content: stretch; text-align: center; }
  .auth-compact-footer { padding: 10px 12px; font-size: 11px; }
  .activation-card { padding: 22px 18px; border-radius: var(--radius-modal); }
}

/* Very narrow phones keep the security note and forgot link on the same row. */
@media (max-width: 360px) {
  .auth-compact-body { padding-inline: 14px; }
  .auth-compact-helper-row { font-size: 11px; }
  .auth-compact-secure-note { font-size: 10.5px; }
  .auth-compact-secure-note svg { width: 12px; height: 12px; }
  .auth-compact-helper-row > a { font-size: 11px; }
  .auth-compact-brand { padding-inline: 14px; }
}

/* Short screens and mobile landscape: preserve scroll instead of hiding content. */
@media (max-height: 680px) and (max-width: 899px) {
  .auth-compact-page { place-items: start center; }
  .auth-compact-shell { margin: 0; }
  .auth-compact-brand { padding-top: 11px; padding-bottom: 10px; }
  .auth-compact-brand p { display: none; }
  .auth-compact-body { padding-top: 14px; padding-bottom: 15px; }
  .auth-compact-form { gap: 10px; }
  .auth-compact-form-icon { display: none; }
  .auth-compact-passkey-zone { gap: var(--space-2); }
  .auth-compact-footer { display: none; }
}
@media (min-width: 700px) and (max-height: 620px) and (orientation: landscape) {
  .auth-compact-page { place-items: start center; padding-top: 10px; padding-bottom: 10px; }
  .auth-compact-shell { width: min(100%, 920px); }
  .auth-compact-card { grid-template-columns: minmax(215px, .7fr) minmax(430px, 1.3fr); grid-template-areas: "brand body" "footer footer"; }
  .auth-compact-brand { align-items: flex-start; text-align: left; padding: 22px; }
  .auth-compact-brand p { display: none; }
  .auth-compact-body { padding: 18px 28px; }
  .auth-compact-form { gap: 10px; }
  .auth-compact-form-icon { width: 38px; height: 38px; }
  .auth-compact-form-head h2 { font-size: 23px; }
}

body.auth-screen-body.auth-keyboard-open .auth-compact-page,
body.auth-screen-body.auth-user-zoomed .auth-compact-page {
  place-items: start center;
  min-height: var(--auth-visual-height);
}
body.auth-screen-body.auth-keyboard-open .auth-compact-shell,
body.auth-screen-body.auth-user-zoomed .auth-compact-shell { margin: 0; }

@media (hover: none) {
  .btn:hover:not(:disabled) { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* V207 inline authentication guidance. */
.auth-live-guidance { display:block; margin-top:7px; color:var(--auth-muted); font-size:.78rem; line-height:1.4; }
.auth-live-guidance[hidden] { display:none; }
.auth-live-guidance[data-state="strong"] { color:var(--auth-success); }
.auth-live-guidance[data-state="medium"],
.auth-live-guidance[data-state="warning"] { color:var(--auth-warning); }
.auth-live-guidance[data-state="weak"] { color:var(--auth-danger); }


/* V60: use one custom, font-independent checkbox on every browser. Native
   Android/WebView checkboxes can inherit the generic auth input sizing and
   render as a large blue square, so the real input remains accessible but is
   visually hidden. */
.auth-compact-login-options {
  align-items: center;
  gap: var(--space-3);
}
.auth-compact-remember {
  position: relative;
  min-width: 0;
  display: inline-grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: var(--space-2);
  color: var(--auth-muted);
  font-size: .8rem;
  line-height: 1.35;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.auth-compact-remember input[type="checkbox"] {
  position: absolute !important;
  inline-size: 1px !important;
  block-size: 1px !important;
  min-inline-size: 1px !important;
  min-block-size: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}
.auth-compact-checkbox {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 2px solid #8aa09f;
  border-radius: 6px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(15, 64, 61, .02);
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .12s ease;
}
.auth-compact-checkbox::after {
  content: "";
  width: 5px;
  height: 9px;
  margin-top: -2px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  opacity: 0;
  transform: rotate(45deg) scale(.75);
  transition: opacity .12s ease, transform .12s ease;
}
.auth-compact-remember input[type="checkbox"]:checked + .auth-compact-checkbox {
  border-color: var(--auth-primary);
  background: var(--auth-primary);
  box-shadow: 0 0 0 3px rgba(15, 139, 131, .12);
}
.auth-compact-remember input[type="checkbox"]:checked + .auth-compact-checkbox::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}
.auth-compact-remember input[type="checkbox"]:focus-visible + .auth-compact-checkbox {
  outline: 3px solid rgba(37, 99, 235, .28);
  outline-offset: 2px;
}
.auth-compact-remember:active .auth-compact-checkbox { transform: scale(.94); }
.auth-compact-remember-text { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) {
  .auth-compact-login-options {
    grid-template-columns: minmax(0, 1fr) auto;
    justify-items: stretch;
  }
  .auth-compact-login-options > a { justify-self: end; }
}
@media (max-width: 340px) {
  .auth-compact-login-options { grid-template-columns: 1fr; }
  .auth-compact-login-options > a { justify-self: start; }
}

/* V66 mobile 2FA geometry: fixed height and compact spacing without clipping. */
@media (max-width: 520px) {
  .auth-compact-2fa-form { width: 100%; }
  .auth-compact-code-shell { min-height: 54px; }
  .auth-compact-code-shell input {
    min-height: 52px;
    padding-inline: 48px;
    font-size: 19px;
    letter-spacing: .16em;
    text-indent: .16em;
  }
  .auth-compact-code-shell .auth-compact-input-icon { width: 44px; }
}

/* V174 typography contract: auth and application shells use the same sans stack. */
body.auth-screen-body { font-family: var(--font-family-sans); }
body.auth-screen-body button,
body.auth-screen-body input,
body.auth-screen-body select,
body.auth-screen-body textarea{font-family:inherit}
