/* ==========================================================================
   Nanban UI 2026 — visual layer only (PREVIEW)
   Loaded last. Changes colours, spacing, type, radius, shadow, motion.
   Does NOT change display/visibility of anything the app JS toggles.
   Remove the <link>/<script> for nanban-ui-2026 to roll back instantly.
   ========================================================================== */
:root {
  --nx-brand: #dc2626;
  --nx-brand-600: #b91c1c;
  --nx-brand-700: #991b1b;
  --nx-brand-50: #fef2f2;
  --nx-brand-100: #fee2e2;
  --nx-ink: #0f172a;
  --nx-ink-2: #334155;
  --nx-muted: #64748b;
  --nx-line: #e6e8ee;
  --nx-line-2: #eef0f4;
  --nx-bg: #f5f6fa;
  --nx-surface: #ffffff;
  --nx-surface-2: #f8fafc;
  --nx-green: #16a34a;
  --nx-amber: #d97706;
  --nx-blue: #2563eb;
  --nx-r-sm: 8px;
  --nx-r: 12px;
  --nx-r-lg: 16px;
  --nx-r-xl: 20px;
  --nx-sh-1: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 1px rgba(15, 23, 42, .03);
  --nx-sh-2: 0 1px 3px rgba(15, 23, 42, .05), 0 6px 16px -6px rgba(15, 23, 42, .08);
  --nx-sh-3: 0 10px 30px -10px rgba(15, 23, 42, .18), 0 2px 6px rgba(15, 23, 42, .05);
  --nx-ring: 0 0 0 3px rgba(220, 38, 38, .16);
  --nx-font: "Inter", "Noto Sans Tamil", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --nx-ease: cubic-bezier(.2, .7, .2, 1);
  --nx-dur: .2s;
}

/* ---------- Base ---------- */
html.nanban-authed body:not(#nx0):not(#nx1),
html.nanban-authed body:not(#nx0):not(#nx1) #mainApp,
html.nanban-authed body:not(#nx0):not(#nx1) #crmApp {
  font-family: var(--nx-font) !important;
  color: var(--nx-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html.nanban-authed body:not(#nx0):not(#nx1) { background: var(--nx-bg) !important; }
html.nanban-authed body:not(#nx0):not(#nx1) #mainApp#mainApp,
html.nanban-authed body:not(#nx0):not(#nx1) #nbAppBody,
html.nanban-authed body:not(#nx0):not(#nx1) #nbAppMain {
  background: transparent !important;
  background-image: none !important;
}
html.nanban-authed body:not(#nx0):not(#nx1) :lang(ta),
html.nanban-authed body:not(#nx0):not(#nx1) .nb-nav-ta { line-height: 1.5; }
html.nanban-authed body:not(#nx0):not(#nx1) #nbAppMain h1,
html.nanban-authed body:not(#nx0):not(#nx1) #nbAppMain h2 {
  letter-spacing: -.01em;
  color: var(--nx-ink);
}
html.nanban-authed body:not(#nx0):not(#nx1) #nbAppMain .section-content > h2:first-child,
html.nanban-authed body:not(#nx0):not(#nx1) #nbAppMain .section-content > h3:first-child { font-weight: 800; }

/* Scrollbars */
html.nanban-authed body:not(#nx0):not(#nx1) ::-webkit-scrollbar { width: 10px; height: 10px; }
html.nanban-authed body:not(#nx0):not(#nx1) ::-webkit-scrollbar-thumb { background: #cfd5df; border-radius: 10px; border: 2px solid var(--nx-bg); }
html.nanban-authed body:not(#nx0):not(#nx1) ::-webkit-scrollbar-track { background: transparent; }

/* ---------- Header ---------- */
html.nanban-authed body:not(#nx0):not(#nx1) .nb-app-header {
  background: rgba(255, 255, 255, .86) !important;
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--nx-line) !important;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .02) !important;
  min-height: 60px;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  gap: 12px;
}
html.nanban-authed body:not(#nx0):not(#nx1) .nb-top-logo {
  font-family: var(--nx-font) !important;
  font-weight: 800 !important;
  letter-spacing: .04em !important;
  color: var(--nx-ink) !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
html.nanban-authed body:not(#nx0):not(#nx1) .nb-top-logo::before {
  content: "N";
  display: inline-grid;
  place-items: center;
  width: 30px; height: 30px;
  margin-right: 4px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--nx-brand), var(--nx-brand-700));
  color: #fff;
  font-size: 15px;
  letter-spacing: 0;
  box-shadow: 0 6px 14px -6px rgba(220, 38, 38, .6);
}
html.nanban-authed body:not(#nx0):not(#nx1) .nb-top-logo span {
  color: var(--nx-brand) !important;
  background: var(--nx-brand-50);
  border: 1px solid var(--nx-brand-100);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: .72em;
  letter-spacing: .08em;
}
html.nanban-authed body:not(#nx0):not(#nx1) .nb-header-actions { gap: 8px !important; align-items: center; }
html.nanban-authed body:not(#nx0):not(#nx1) .nb-header-actions > button,
html.nanban-authed body:not(#nx0):not(#nx1) .nb-header-actions > .nb-intl-sync-pill,
html.nanban-authed body:not(#nx0):not(#nx1) .nb-header-actions > .nb-header-user,
html.nanban-authed body:not(#nx0):not(#nx1) .nb-header-actions > .nb-live-clock {
  height: 36px;
  min-height: 36px !important;
  padding: 0 12px !important;
  border-radius: 10px !important;
  border: 1px solid var(--nx-line) !important;
  background: var(--nx-surface) !important;
  background-image: none !important;
  color: var(--nx-ink-2) !important;
  font-family: var(--nx-font) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  box-shadow: var(--nx-sh-1) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  align-items: center;
  white-space: nowrap;
  line-height: 34px !important;
}
html.nanban-authed body:not(#nx0):not(#nx1) .nb-header-actions > .nb-live-clock { gap: 6px; display: inline-flex; }
html.nanban-authed body:not(#nx0):not(#nx1) .nb-header-actions > .nb-live-clock .nb-live-clock__time { font-weight: 700; color: var(--nx-ink); }
html.nanban-authed body:not(#nx0):not(#nx1) .nb-header-actions > .nb-live-clock .nb-live-clock__date,
html.nanban-authed body:not(#nx0):not(#nx1) .nb-header-actions > .nb-live-clock .nb-live-clock__tz { color: var(--nx-muted); font-weight: 500; font-size: 12px; }
html.nanban-authed body:not(#nx0):not(#nx1) .nb-header-actions > .nb-intl-sync-pill { color: var(--nx-green) !important; background: #f0fdf4 !important; border-color: #dcfce7 !important; }
html.nanban-authed body:not(#nx0):not(#nx1) .nb-header-actions > .nb-sync-reminders-btn,
html.nanban-authed body:not(#nx0):not(#nx1) .nb-header-actions > .nb-sync-esevai-btn {
  background: var(--nx-brand-50) !important; color: var(--nx-brand-600) !important; border-color: var(--nx-brand-100) !important;
}
html.nanban-authed body:not(#nx0):not(#nx1) .nb-header-actions > .nb-header-logout {
  color: var(--nx-brand-600) !important; border-color: var(--nx-brand-100) !important;
}
html.nanban-authed body:not(#nx0):not(#nx1) .nb-header-actions > button:hover {
  background: var(--nx-surface-2) !important; border-color: #d5dae3 !important; transform: translateY(-1px);
}
html.nanban-authed body:not(#nx0):not(#nx1) .nb-header-actions > .nb-header-logout:hover { background: var(--nx-brand) !important; color: #fff !important; border-color: var(--nx-brand) !important; }
html.nanban-authed body:not(#nx0):not(#nx1) .nb-header-actions > .nb-header-notifications {
  width: 36px; height: 36px; display: inline-grid !important; place-items: center;
  font-size: 17px !important; border-radius: 10px; background: var(--nx-surface);
  border: 1px solid var(--nx-line); box-shadow: var(--nx-sh-1);
}
html.nanban-authed body:not(#nx0):not(#nx1) #notifCount {
  top: -6px !important; right: -6px !important; min-width: 18px; text-align: center;
  background: var(--nx-brand) !important; box-shadow: 0 0 0 2px #fff;
  font-size: 10px !important; padding: 2px 5px !important; line-height: 14px;
}
html.nanban-authed body:not(#nx0):not(#nx1) .nb-pill-toggle {
  background: var(--nx-surface-2) !important; border: 1px solid var(--nx-line) !important; border-radius: 10px !important; padding: 3px !important;
}
html.nanban-authed body:not(#nx0):not(#nx1) .nb-pill-toggle .btn-biz { border-radius: 8px !important; font-weight: 600 !important; font-family: var(--nx-font) !important; }
html.nanban-authed body:not(#nx0):not(#nx1) .nb-pill-toggle .btn-biz.active { color: var(--nx-brand-600) !important; }

/* ---------- Sidebar ---------- */
html.nanban-authed body:not(#nx0):not(#nx1) #nbAppSidebar {
  background: var(--nx-surface) !important;
  background-image: none !important;
  border-right: 1px solid var(--nx-line) !important;
  box-shadow: none !important;
}
html.nanban-authed body:not(#nx0):not(#nx1) #adminTabs { padding: 10px 10px 24px !important; gap: 2px !important; }
html.nanban-authed body:not(#nx0):not(#nx1) #adminTabs .tab {
  border-radius: 10px !important;
  padding: 8px 12px !important;
  margin: 1px 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--nx-ink-2) !important;
  box-shadow: none !important;
  position: relative;
  align-items: center;
  gap: 10px;
  transition: background var(--nx-dur) var(--nx-ease), color var(--nx-dur) var(--nx-ease), transform var(--nx-dur) var(--nx-ease);
}
html.nanban-authed body:not(#nx0):not(#nx1) #adminTabs .tab .nb-nav-ico { color: var(--nx-muted); transition: color var(--nx-dur); flex: 0 0 auto; }
html.nanban-authed body:not(#nx0):not(#nx1) #adminTabs .tab .nb-nav-en { font-weight: 600 !important; font-size: 13.5px !important; color: inherit !important; }
html.nanban-authed body:not(#nx0):not(#nx1) #adminTabs .tab .nb-nav-ta { font-size: 11px !important; color: var(--nx-muted) !important; font-weight: 500 !important; }
html.nanban-authed body:not(#nx0):not(#nx1) #adminTabs .tab:hover { background: var(--nx-surface-2) !important; color: var(--nx-ink) !important; }
html.nanban-authed body:not(#nx0):not(#nx1) #adminTabs .tab:hover .nb-nav-ico { color: var(--nx-ink-2); }
html.nanban-authed body:not(#nx0):not(#nx1) #adminTabs .tab.active {
  background: var(--nx-brand-50) !important;
  color: var(--nx-brand-700) !important;
}
html.nanban-authed body:not(#nx0):not(#nx1) #adminTabs .tab.active .nb-nav-ico { color: var(--nx-brand) !important; }
html.nanban-authed body:not(#nx0):not(#nx1) #adminTabs .tab.active::before {
  content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--nx-brand);
}
html.nanban-authed body:not(#nx0):not(#nx1) #adminTabs .tab:active { transform: scale(.98); }

html.nanban-authed body:not(#nx0):not(#nx1) #adminTabs .tab.nb-nav-item:not([style*="none"]) { display: flex !important; }

/* E-Sevai mode keeps its green identity */
body.esevai-mode {
  --nx-brand: #059669; --nx-brand-600: #047857; --nx-brand-700: #065f46; --nx-brand-50: #ecfdf5; --nx-brand-100: #d1fae5;
  --nx-ring: 0 0 0 3px rgba(5, 150, 105, .18);
}

/* ---------- Content spacing ---------- */
html.nanban-authed body:not(#nx0):not(#nx1) #nbAppMain .section-content { padding-top: 4px; }

/* ---------- Cards ---------- */
html.nanban-authed body:not(#nx0):not(#nx1) #nbAppMain .metric-card,
html.nanban-authed body:not(#nx0):not(#nx1) #nbAppMain .glass-card,
html.nanban-authed body:not(#nx0):not(#nx1) #nbAppMain .nb-crm-card,
html.nanban-authed body:not(#nx0):not(#nx1) #nbAppMain .nb-smart-card,
html.nanban-authed body:not(#nx0):not(#nx1) #nbAppMain .settings-pane-panel,
html.nanban-authed body:not(#nx0):not(#nx1) #nbAppMain .es-rep-card,
html.nanban-authed body:not(#nx0):not(#nx1) #nbAppMain .nb-cc__card,
html.nanban-authed body:not(#nx0):not(#nx1) #nbAppMain .nb-prof-card,
html.nanban-authed body:not(#nx0):not(#nx1) .modal-overlay .nb-prof-card {
  background: var(--nx-surface) !important;
  background-image: none !important;
  border: 1px solid var(--nx-line-2) !important;
  border-radius: var(--nx-r-lg) !important;
  box-shadow: var(--nx-sh-2) !important;
  transition: box-shadow var(--nx-dur) var(--nx-ease), transform var(--nx-dur) var(--nx-ease), border-color var(--nx-dur);
}
html.nanban-authed body:not(#nx0):not(#nx1) #nbAppMain .metric-card { border-left-width: 1px !important; border-left-color: var(--nx-line-2) !important; }
html.nanban-authed body:not(#nx0):not(#nx1) #nbAppMain .metric-card:hover,
html.nanban-authed body:not(#nx0):not(#nx1) #nbAppMain .nb-crm-card:hover,
html.nanban-authed body:not(#nx0):not(#nx1) #nbAppMain .nb-smart-card:hover,
html.nanban-authed body:not(#nx0):not(#nx1) #nbAppMain .es-rep-card:hover {
  box-shadow: var(--nx-sh-3) !important; transform: translateY(-2px); border-color: var(--nx-line) !important;
}
html.nanban-authed body:not(#nx0):not(#nx1) #nbAppMain .metric-card h3 {
  font-size: 12px !important; font-weight: 700 !important; letter-spacing: .06em !important;
  color: var(--nx-muted) !important; text-transform: uppercase;
}
html.nanban-authed body:not(#nx0):not(#nx1) #nbAppMain .metric-card .nb-dash-ico {
  background: var(--nx-brand-50) !important; color: var(--nx-brand) !important; border-radius: 9px !important; border: 0 !important;
}
html.nanban-authed body:not(#nx0):not(#nx1) #nbAppMain .metric-card .stat-row { border-color: var(--nx-line-2) !important; }
html.nanban-authed body:not(#nx0):not(#nx1) #nbAppMain .metric-card .stat-label { color: var(--nx-muted) !important; font-weight: 500 !important; }
html.nanban-authed body:not(#nx0):not(#nx1) #nbAppMain .metric-card .stat-val { color: var(--nx-ink) !important; font-weight: 800 !important; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
html.nanban-authed body:not(#nx0):not(#nx1) #nbAppMain .metric-card .stat-val.today { color: var(--nx-brand-600) !important; }

html.nanban-authed body:not(#nx0):not(#nx1) #nbAppMain .metric-card::before { background: transparent !important; }

/* ---------- Buttons ---------- */
html.nanban-authed body:not(#nx0):not(#nx1) .btn,
html.nanban-authed body:not(#nx0):not(#nx1) .action-btn,
html.nanban-authed body:not(#nx0):not(#nx1) .nb-crm-btn {
  border-radius: 10px !important;
  font-family: var(--nx-font) !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  transition: transform .12s var(--nx-ease), box-shadow var(--nx-dur) var(--nx-ease), background-color var(--nx-dur), filter var(--nx-dur) !important;
  -webkit-tap-highlight-color: transparent;
}
html.nanban-authed body:not(#nx0):not(#nx1) .btn:not(:disabled):hover,
html.nanban-authed body:not(#nx0):not(#nx1) .action-btn:hover,
html.nanban-authed body:not(#nx0):not(#nx1) .nb-crm-btn:hover { transform: translateY(-1px); filter: brightness(1.04); box-shadow: 0 6px 14px -8px rgba(15, 23, 42, .35) !important; }
html.nanban-authed body:not(#nx0):not(#nx1) .btn:not(:disabled):active,
html.nanban-authed body:not(#nx0):not(#nx1) .action-btn:active,
html.nanban-authed body:not(#nx0):not(#nx1) .nb-crm-btn:active { transform: translateY(0) scale(.97); filter: brightness(.97); box-shadow: none !important; }
html.nanban-authed body:not(#nx0):not(#nx1) .btn:focus-visible,
html.nanban-authed body:not(#nx0):not(#nx1) .action-btn:focus-visible,
html.nanban-authed body:not(#nx0):not(#nx1) button:focus-visible { outline: none !important; box-shadow: var(--nx-ring) !important; }
html.nanban-authed body:not(#nx0):not(#nx1) .btn-nanban { background: var(--nx-brand) !important; background-image: none !important; color: #fff !important; border-color: var(--nx-brand) !important; }
html.nanban-authed body:not(#nx0):not(#nx1) .btn-nanban:hover { background: var(--nx-brand-600) !important; }
html.nanban-authed body:not(#nx0):not(#nx1) .btn-secondary,
html.nanban-authed body:not(#nx0):not(#nx1) .btn-slate,
html.nanban-authed body:not(#nx0):not(#nx1) .btn-w {
  background: var(--nx-surface) !important; background-image: none !important; color: var(--nx-ink-2) !important;
  border: 1px solid var(--nx-line) !important; box-shadow: var(--nx-sh-1) !important;
}

/* ---------- Forms ---------- */
html.nanban-authed body:not(#nx0):not(#nx1) #nbAppMain input[type="text"],
html.nanban-authed body:not(#nx0):not(#nx1) #nbAppMain input[type="tel"],
html.nanban-authed body:not(#nx0):not(#nx1) #nbAppMain input[type="number"],
html.nanban-authed body:not(#nx0):not(#nx1) #nbAppMain input[type="date"],
html.nanban-authed body:not(#nx0):not(#nx1) #nbAppMain input[type="email"],
html.nanban-authed body:not(#nx0):not(#nx1) #nbAppMain input[type="search"],
html.nanban-authed body:not(#nx0):not(#nx1) #nbAppMain input:not([type]),
html.nanban-authed body:not(#nx0):not(#nx1) #nbAppMain select,
html.nanban-authed body:not(#nx0):not(#nx1) #nbAppMain textarea,
html.nanban-authed body:not(#nx0):not(#nx1) .modal-overlay input[type="text"],
html.nanban-authed body:not(#nx0):not(#nx1) .modal-overlay input[type="tel"],
html.nanban-authed body:not(#nx0):not(#nx1) .modal-overlay input[type="number"],
html.nanban-authed body:not(#nx0):not(#nx1) .modal-overlay input[type="date"],
html.nanban-authed body:not(#nx0):not(#nx1) .modal-overlay select,
html.nanban-authed body:not(#nx0):not(#nx1) .modal-overlay textarea {
  border: 1px solid #dfe3ea !important;
  border-radius: 10px !important;
  background-color: var(--nx-surface) !important;
  color: var(--nx-ink) !important;
  font-family: var(--nx-font) !important;
  box-shadow: inset 0 1px 1px rgba(15, 23, 42, .02) !important;
  transition: border-color var(--nx-dur), box-shadow var(--nx-dur) !important;
}
html.nanban-authed body:not(#nx0):not(#nx1) #nbAppMain input:focus,
html.nanban-authed body:not(#nx0):not(#nx1) #nbAppMain select:focus,
html.nanban-authed body:not(#nx0):not(#nx1) #nbAppMain textarea:focus,
html.nanban-authed body:not(#nx0):not(#nx1) .modal-overlay input:focus,
html.nanban-authed body:not(#nx0):not(#nx1) .modal-overlay select:focus,
html.nanban-authed body:not(#nx0):not(#nx1) .modal-overlay textarea:focus {
  border-color: var(--nx-brand) !important; box-shadow: var(--nx-ring) !important; outline: none !important;
}
html.nanban-authed body:not(#nx0):not(#nx1) #nbAppMain label { color: var(--nx-ink-2); font-weight: 600; }

/* ---------- Tables ---------- */
html.nanban-authed body:not(#nx0):not(#nx1) #nbAppMain table { border-collapse: separate !important; border-spacing: 0 !important; }
html.nanban-authed body:not(#nx0):not(#nx1) #nbAppMain table thead th {
  background: var(--nx-surface-2) !important; color: var(--nx-muted) !important; font-size: 12px !important;
  font-weight: 700 !important; letter-spacing: .04em; text-transform: uppercase; border-bottom: 1px solid var(--nx-line) !important;
}
html.nanban-authed body:not(#nx0):not(#nx1) #nbAppMain table tbody td { border-bottom: 1px solid var(--nx-line-2) !important; }
html.nanban-authed body:not(#nx0):not(#nx1) #nbAppMain table tbody tr { transition: background var(--nx-dur); }
html.nanban-authed body:not(#nx0):not(#nx1) #nbAppMain table tbody tr:hover td { background: #fafbfd !important; }

/* ---------- Modals ---------- */
html.nanban-authed body:not(#nx0):not(#nx1) .modal-overlay {
  background: rgba(15, 23, 42, .42) !important;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
html.nanban-authed body:not(#nx0):not(#nx1) .modal-overlay > .modal-content,
html.nanban-authed body:not(#nx0):not(#nx1) .modal-overlay > .modal,
html.nanban-authed body:not(#nx0):not(#nx1) .modal-overlay > .glass-card {
  border-radius: var(--nx-r-xl) !important;
  border: 1px solid var(--nx-line-2) !important;
  box-shadow: 0 30px 60px -20px rgba(15, 23, 42, .35), 0 0 0 1px rgba(15, 23, 42, .02) !important;
  animation: nx-pop .22s var(--nx-ease) both;
}

/* ---------- Toasts ---------- */
body:not(#nx0) #toastContainer .toast {
  border-radius: 12px !important;
  background: #0f172a !important;
  color: #f8fafc !important;
  border: 1px solid rgba(255, 255, 255, .06) !important;
  box-shadow: 0 18px 40px -16px rgba(15, 23, 42, .55) !important;
  font-family: var(--nx-font) !important;
  font-weight: 600 !important;
  font-size: 13.5px !important;
  padding: 12px 16px !important;
  animation: nx-toast-in .28s var(--nx-ease) both;
}

/* ---------- Staff login (PIN) modal ---------- */
#nbStaffLoginModal > div {
  border-radius: 20px !important;
  box-shadow: 0 30px 60px -20px rgba(15, 23, 42, .4) !important;
  font-family: var(--nx-font) !important;
  animation: nx-pop .22s var(--nx-ease) both;
}


/* ---------- Tamil-safe typography everywhere in the app ----------
   Some older layers use display fonts (Syne / Outfit / Catamaran) that have no Tamil glyphs,
   so Tamil headings fell back badly. Use Inter + Noto Sans Tamil, but leave icon fonts alone. */
html.nanban-authed body:not(#nx0):not(#nx1) #mainApp *:not(svg):not(svg *):not([class*="material-symbols"]):not([class*="material-icons"]):not(code):not(pre):not(kbd):not([class*="plate"]),
html.nanban-authed body:not(#nx0):not(#nx1) .modal-overlay *:not(svg):not(svg *):not([class*="material-symbols"]):not([class*="material-icons"]):not([class*="plate"]) {
  font-family: var(--nx-font) !important;
}
html.nanban-authed body:not(#nx0):not(#nx1) #mainApp .nb-crm-hero__title,
html.nanban-authed body:not(#nx0):not(#nx1) #mainApp .es-cust-header__title {
  color: #fff !important; -webkit-text-fill-color: #fff !important; letter-spacing: -.01em !important;
}
/* active nav label must stay readable in both modes */
html.nanban-authed body:not(#nx0):not(#nx1) #adminTabs .tab.active,
html.nanban-authed body:not(#nx0):not(#nx1) #adminTabs .tab.active * { color: var(--nx-brand-700) !important; }
html.nanban-authed body:not(#nx0):not(#nx1) #adminTabs .tab.active .nb-nav-ta { color: var(--nx-brand-600) !important; opacity: .8; }

/* ---------- Motion ---------- */
@keyframes nx-fade-up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes nx-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes nx-toast-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes nx-shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }

html.nanban-authed body:not(#nx0):not(#nx1) #nbAppMain .section-content.active-section,
html.nanban-authed body:not(#nx0):not(#nx1) #nbAppMain .section-content.nx-enter { animation: nx-fade-up .26s var(--nx-ease) both; }

/* Loading skeletons — only while the first data load is in progress (html.nx-loading set by nanban-ui-2026.js) */
html.nx-loading.nanban-authed body:not(#nx0):not(#nx1) #nbAppMain .metric-card .stat-val {
  color: transparent !important;
  border-radius: 6px;
  min-width: 48px;
  background: linear-gradient(90deg, #eef1f5 0, #f7f8fa 40px, #eef1f5 80px) !important;
  background-size: 800px 100% !important;
  animation: nx-shimmer 1.2s linear infinite;
}

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  html.nanban-authed body:not(#nx0):not(#nx1) .nb-app-header { min-height: 54px; padding-left: 10px !important; padding-right: 10px !important; }
  html.nanban-authed body:not(#nx0):not(#nx1) .nb-header-actions {
    overflow-x: auto; flex-wrap: nowrap !important; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(90deg, #000 85%, transparent);
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
  html.nanban-authed body:not(#nx0):not(#nx1) .nb-header-actions::-webkit-scrollbar { display: none; }
  html.nanban-authed body:not(#nx0):not(#nx1) .nb-header-actions > .nb-live-clock .nb-live-clock__date,
  html.nanban-authed body:not(#nx0):not(#nx1) .nb-header-actions > .nb-live-clock .nb-live-clock__tz { display: none; }
  html.nanban-authed body:not(#nx0):not(#nx1) #nbAppMain .metric-card,
  html.nanban-authed body:not(#nx0):not(#nx1) #nbAppMain .glass-card { border-radius: 14px !important; }
  html.nanban-authed body:not(#nx0):not(#nx1) .nb-mobile-menu-btn {
    border-radius: 10px !important; border: 1px solid var(--nx-line) !important; background: var(--nx-surface) !important;
    box-shadow: var(--nx-sh-1) !important; width: 38px; height: 38px;
  }
}

/* ---------- Accessibility: reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html.nanban-authed body:not(#nx0):not(#nx1) *,
  html.nanban-authed body:not(#nx0):not(#nx1) *::before,
  html.nanban-authed body:not(#nx0):not(#nx1) *::after,
  body:not(#nx0) #toastContainer .toast,
  #nbStaffLoginModal > div {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  html.nanban-authed body:not(#nx0):not(#nx1) .btn:hover,
  html.nanban-authed body:not(#nx0):not(#nx1) #nbAppMain .metric-card:hover,
  html.nanban-authed body:not(#nx0):not(#nx1) #nbAppMain .nb-crm-card:hover { transform: none !important; }
}

/* ==========================================================================
   FRONT PAGE (before login) — enterprise selector + PIN login
   Scope: html.nb-public-portal-active #loginScreen and #nanbanStaffLoginModal
   ========================================================================== */
html.nb-public-portal-active body:not(#nx0) #loginScreen *:not(svg):not(svg *):not([class*="material-symbols"]):not(code),
body:not(#nx0) #nanbanStaffLoginModal *:not(svg):not(svg *):not(code) {
  font-family: var(--nx-font) !important;
}

/* Nav: clean dark glass bar */
html.nb-public-portal-active body:not(#nx0) #loginScreen #nbNav {
  background: rgba(10, 15, 28, .72) !important;
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border: 1px solid rgba(255, 255, 255, .08) !important;
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .6) !important;
  border-radius: 16px !important;
}
html.nb-public-portal-active body:not(#nx0) #loginScreen #nbNav .nb-nav-a { color: #e2e8f0 !important; font-weight: 600 !important; }
html.nb-public-portal-active body:not(#nx0) #loginScreen #nbNav .nb-nav-btn--primary {
  background: linear-gradient(135deg, var(--nx-brand), var(--nx-brand-700)) !important;
  border: 0 !important; color: #fff !important; border-radius: 10px !important; font-weight: 700 !important;
  box-shadow: 0 8px 20px -10px rgba(220, 38, 38, .7) !important;
}
html.nb-public-portal-active body:not(#nx0) #loginScreen #nbNav .nb-live-clock {
  background: rgba(255, 255, 255, .08) !important; color: #f8fafc !important; border: 1px solid rgba(255, 255, 255, .1) !important; border-radius: 12px !important;
}
html.nb-public-portal-active body:not(#nx0) #loginScreen #nbNav .nb-live-clock * { color: inherit !important; }
html.nb-public-portal-active body:not(#nx0) #loginScreen #nbNav .nb-nav-title,
html.nb-public-portal-active body:not(#nx0) #loginScreen #nbNav .nb-nav-title * { color: #f8fafc !important; }
html.nb-public-portal-active body:not(#nx0) #loginScreen #nbNav small { color: #94a3b8 !important; }

/* ---------- Enterprise selector (login hub) ---------- */
html.nb-public-portal-active body:not(#nx0) #loginScreen #nbLoginHub {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  box-sizing: border-box;
  padding: 120px 20px 64px !important;
  margin: 0 !important;
  background:
    radial-gradient(900px 520px at 12% 8%, rgba(220, 38, 38, .30), transparent 60%),
    radial-gradient(800px 520px at 92% 18%, rgba(5, 150, 105, .28), transparent 60%),
    radial-gradient(700px 500px at 50% 110%, rgba(37, 99, 235, .18), transparent 60%),
    linear-gradient(180deg, #0a0f1c 0%, #0f172a 55%, #111827 100%) !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}
html.nb-public-portal-active body:not(#nx0) #loginScreen #nbLoginHub::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}
html.nb-public-portal-active body:not(#nx0) #loginScreen #nbLoginHub::after {
  content: ""; position: absolute; width: 520px; height: 520px; left: 50%; top: -260px; margin-left: -260px; z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .10), transparent);
  animation: nx-float 9s ease-in-out infinite alternate; pointer-events: none;
}
html.nb-public-portal-active body:not(#nx0) #loginScreen .nb-login-hub__inner {
  width: 100%; max-width: 1080px; margin: 0 auto; background: transparent !important; box-shadow: none !important; border: 0 !important; padding: 0 !important;
}
html.nb-public-portal-active body:not(#nx0) #loginScreen .nb-login-hub__head { text-align: center; margin: 0 auto 34px !important; max-width: 720px; animation: nx-fade-up .5s var(--nx-ease) both; }
html.nb-public-portal-active body:not(#nx0) #loginScreen .nb-login-hub__kicker {
  display: inline-flex !important; align-items: center; gap: 8px; margin: 0 0 14px !important;
  padding: 6px 12px !important; border-radius: 999px !important;
  background: rgba(255, 255, 255, .08) !important; border: 1px solid rgba(255, 255, 255, .14) !important;
  color: #e2e8f0 !important; font-size: 11px !important; font-weight: 700 !important; letter-spacing: .14em !important;
}
html.nb-public-portal-active body:not(#nx0) #loginScreen .nb-login-hub__kicker::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .2);
}
html.nb-public-portal-active body:not(#nx0) #loginScreen .nb-login-hub__title {
  color: #fff !important; -webkit-text-fill-color: #fff !important; background: none !important;
  font-size: clamp(30px, 5vw, 48px) !important; font-weight: 800 !important; letter-spacing: -.02em !important; line-height: 1.2 !important; margin: 0 0 10px !important;
  text-shadow: 0 8px 30px rgba(0, 0, 0, .35);
}
html.nb-public-portal-active body:not(#nx0) #loginScreen .nb-login-hub__sub { color: #cbd5e1 !important; font-size: 15px !important; line-height: 1.6 !important; margin: 0 !important; }

html.nb-public-portal-active body:not(#nx0) #loginScreen .nb-login-hub__grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px !important;
}
html.nb-public-portal-active body:not(#nx0) #loginScreen .nb-login-card {
  position: relative; overflow: hidden;
  display: flex !important; flex-direction: column; align-items: flex-start;
  background: rgba(255, 255, 255, .97) !important; background-image: none !important;
  border: 1px solid rgba(255, 255, 255, .6) !important;
  border-radius: 22px !important;
  padding: 26px 26px 22px !important;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55), 0 1px 0 rgba(255, 255, 255, .5) inset !important;
  transition: transform .25s var(--nx-ease), box-shadow .25s var(--nx-ease);
  animation: nx-fade-up .55s var(--nx-ease) both;
  min-height: 0 !important;
}
html.nb-public-portal-active body:not(#nx0) #loginScreen .nb-login-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--nx-card-accent, var(--nx-brand));
}
html.nb-public-portal-active body:not(#nx0) #loginScreen .nb-login-card::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--nx-card-glow, rgba(220, 38, 38, .12)), transparent); pointer-events: none;
}
html.nb-public-portal-active body:not(#nx0) #loginScreen .nb-login-card:hover { transform: translateY(-4px); box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .6) !important; }

/* Two big enterprise cards first, then Staff / Student as compact cards */
html.nb-public-portal-active body:not(#nx0) #loginScreen .nb-login-card--driving { order: 1; --nx-card-accent: linear-gradient(90deg, #dc2626, #f97316); --nx-card-glow: rgba(220, 38, 38, .14); animation-delay: .05s; }
html.nb-public-portal-active body:not(#nx0) #loginScreen .nb-login-card--esevai { order: 2; --nx-card-accent: linear-gradient(90deg, #059669, #14b8a6); --nx-card-glow: rgba(5, 150, 105, .14); animation-delay: .12s; }
html.nb-public-portal-active body:not(#nx0) #loginScreen .nb-login-card--staff { order: 3; --nx-card-accent: linear-gradient(90deg, #2563eb, #6366f1); --nx-card-glow: rgba(37, 99, 235, .12); animation-delay: .19s; }
html.nb-public-portal-active body:not(#nx0) #loginScreen .nb-login-card--student { order: 4; --nx-card-accent: linear-gradient(90deg, #d97706, #f59e0b); --nx-card-glow: rgba(217, 119, 6, .12); animation-delay: .26s; }
html.nb-public-portal-active body:not(#nx0) #loginScreen .nb-login-card--driving,
html.nb-public-portal-active body:not(#nx0) #loginScreen .nb-login-card--esevai { min-height: 300px !important; }

html.nb-public-portal-active body:not(#nx0) #loginScreen .nb-login-card__icon {
  width: 54px !important; height: 54px !important; display: grid !important; place-items: center; font-size: 26px !important;
  border-radius: 16px !important; margin: 0 0 14px !important; border: 0 !important;
  background: #f1f5f9 !important; box-shadow: 0 8px 18px -10px rgba(15, 23, 42, .35) !important;
}
html.nb-public-portal-active body:not(#nx0) #loginScreen .nb-login-card--driving .nb-login-card__icon { background: linear-gradient(135deg, #fee2e2, #ffedd5) !important; }
html.nb-public-portal-active body:not(#nx0) #loginScreen .nb-login-card--esevai .nb-login-card__icon { background: linear-gradient(135deg, #d1fae5, #ccfbf1) !important; }
html.nb-public-portal-active body:not(#nx0) #loginScreen .nb-login-card--staff .nb-login-card__icon { background: linear-gradient(135deg, #dbeafe, #e0e7ff) !important; }
html.nb-public-portal-active body:not(#nx0) #loginScreen .nb-login-card--student .nb-login-card__icon { background: linear-gradient(135deg, #fef3c7, #fde68a) !important; }

html.nb-public-portal-active body:not(#nx0) #loginScreen .nb-login-card__tag {
  align-self: flex-start; height: auto !important; min-height: 0 !important; width: auto !important;
  display: inline-block !important; margin: 0 0 8px !important; padding: 4px 10px !important; border-radius: 999px !important;
  background: #f1f5f9 !important; color: #475569 !important; border: 0 !important;
  font-size: 10.5px !important; font-weight: 700 !important; letter-spacing: .12em !important; text-transform: uppercase;
}
html.nb-public-portal-active body:not(#nx0) #loginScreen .nb-login-card h2 {
  color: #0f172a !important; -webkit-text-fill-color: #0f172a !important; background: none !important;
  font-size: 22px !important; font-weight: 800 !important; letter-spacing: -.01em !important; line-height: 1.3 !important; margin: 0 0 6px !important;
}
html.nb-public-portal-active body:not(#nx0) #loginScreen .nb-login-card > p:not(.nb-login-card__tag) {
  color: #64748b !important; font-size: 13.5px !important; line-height: 1.6 !important; margin: 0 0 16px !important;
}
html.nb-public-portal-active body:not(#nx0) #loginScreen .nb-login-card__pin { width: 100%; margin: 0 0 12px !important; }
html.nb-public-portal-active body:not(#nx0) #loginScreen .nb-login-card__pin label {
  display: block; color: #047857 !important; font-size: 11px !important; font-weight: 700 !important; letter-spacing: .06em; margin-bottom: 6px !important;
}
html.nb-public-portal-active body:not(#nx0) #loginScreen #nbEsevaiPin {
  width: 100% !important; box-sizing: border-box; height: 50px !important; border-radius: 14px !important;
  border: 1.5px solid #d1d5db !important; background: #f8fafc !important; color: #0f172a !important;
  text-align: center; font-size: 22px !important; letter-spacing: .5em !important; font-weight: 700 !important;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
html.nb-public-portal-active body:not(#nx0) #loginScreen #nbEsevaiPin:focus { outline: none !important; border-color: #059669 !important; background: #fff !important; box-shadow: 0 0 0 4px rgba(5, 150, 105, .16) !important; }
html.nb-public-portal-active body:not(#nx0) #loginScreen .nb-login-card__btn {
  margin-top: auto !important; width: 100% !important; height: 48px; border: 0 !important; border-radius: 14px !important; cursor: pointer;
  color: #fff !important; font-size: 14.5px !important; font-weight: 700 !important; letter-spacing: 0 !important;
  background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
  box-shadow: 0 14px 26px -14px rgba(220, 38, 38, .8) !important;
  transition: transform .15s var(--nx-ease), box-shadow .2s var(--nx-ease), filter .2s;
}
html.nb-public-portal-active body:not(#nx0) #loginScreen .nb-login-card--esevai .nb-login-card__btn { background: linear-gradient(135deg, #059669, #047857) !important; box-shadow: 0 14px 26px -14px rgba(5, 150, 105, .8) !important; }
html.nb-public-portal-active body:not(#nx0) #loginScreen .nb-login-card--staff .nb-login-card__btn { background: linear-gradient(135deg, #2563eb, #4338ca) !important; box-shadow: 0 14px 26px -14px rgba(37, 99, 235, .8) !important; }
html.nb-public-portal-active body:not(#nx0) #loginScreen .nb-login-card--student .nb-login-card__btn { background: linear-gradient(135deg, #d97706, #b45309) !important; box-shadow: 0 14px 26px -14px rgba(217, 119, 6, .8) !important; }
html.nb-public-portal-active body:not(#nx0) #loginScreen .nb-login-card__btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
html.nb-public-portal-active body:not(#nx0) #loginScreen .nb-login-card__btn:active { transform: scale(.98); filter: brightness(.96); }
html.nb-public-portal-active body:not(#nx0) #loginScreen .nb-login-card__link {
  margin: 10px auto 0 !important; background: none !important; border: 0 !important; color: #047857 !important;
  font-size: 12.5px !important; font-weight: 600 !important; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}

/* Staff / Student — compact horizontal cards on desktop */
@media (min-width: 761px) {
  html.nb-public-portal-active body:not(#nx0) #loginScreen .nb-login-card--staff,
  html.nb-public-portal-active body:not(#nx0) #loginScreen .nb-login-card--student {
    display: grid !important; grid-template-columns: 54px 1fr auto; grid-template-rows: auto auto auto; column-gap: 16px; align-items: center;
    padding: 18px 20px !important;
  }
  html.nb-public-portal-active body:not(#nx0) #loginScreen .nb-login-card--staff .nb-login-card__icon,
  html.nb-public-portal-active body:not(#nx0) #loginScreen .nb-login-card--student .nb-login-card__icon { grid-row: 1 / span 3; margin: 0 !important; }
  html.nb-public-portal-active body:not(#nx0) #loginScreen .nb-login-card--staff .nb-login-card__tag,
  html.nb-public-portal-active body:not(#nx0) #loginScreen .nb-login-card--student .nb-login-card__tag { grid-column: 2; margin: 0 0 4px !important; justify-self: start; }
  html.nb-public-portal-active body:not(#nx0) #loginScreen .nb-login-card--staff h2,
  html.nb-public-portal-active body:not(#nx0) #loginScreen .nb-login-card--student h2 { grid-column: 2; font-size: 17px !important; margin: 0 !important; }
  html.nb-public-portal-active body:not(#nx0) #loginScreen .nb-login-card--staff > p:not(.nb-login-card__tag),
  html.nb-public-portal-active body:not(#nx0) #loginScreen .nb-login-card--student > p:not(.nb-login-card__tag) { grid-column: 2; margin: 2px 0 0 !important; font-size: 12.5px !important; }
  html.nb-public-portal-active body:not(#nx0) #loginScreen .nb-login-card--staff .nb-login-card__btn,
  html.nb-public-portal-active body:not(#nx0) #loginScreen .nb-login-card--student .nb-login-card__btn { grid-column: 3; grid-row: 1 / span 3; width: auto !important; padding: 0 18px !important; margin: 0 !important; height: 44px; white-space: nowrap; }
}
@media (max-width: 760px) {
  html.nb-public-portal-active body:not(#nx0) #loginScreen #nbLoginHub { padding: 96px 14px 40px !important; align-items: flex-start; }
  html.nb-public-portal-active body:not(#nx0) #loginScreen .nb-login-hub__grid { grid-template-columns: 1fr !important; gap: 14px !important; }
  html.nb-public-portal-active body:not(#nx0) #loginScreen .nb-login-card--driving,
  html.nb-public-portal-active body:not(#nx0) #loginScreen .nb-login-card--esevai { min-height: 0 !important; }
  html.nb-public-portal-active body:not(#nx0) #loginScreen .nb-login-card { padding: 20px !important; border-radius: 18px !important; }
  html.nb-public-portal-active body:not(#nx0) #loginScreen .nb-login-hub__head { margin-bottom: 22px !important; }
}

/* ---------- Staff PIN login modal ---------- */
body:not(#nx0) #nanbanStaffLoginModal { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
body:not(#nx0) #nanbanStaffLoginModal .nb-staff-login-shell {
  border-radius: 24px !important; overflow: hidden; border: 1px solid rgba(255, 255, 255, .5) !important;
  box-shadow: 0 40px 80px -30px rgba(2, 6, 23, .6) !important; animation: nx-pop .28s var(--nx-ease) both;
}
body:not(#nx0) #nanbanStaffLoginModal .nb-staff-login-visual {
  background:
    radial-gradient(600px 400px at 0% 0%, rgba(220, 38, 38, .55), transparent 60%),
    radial-gradient(500px 400px at 100% 100%, rgba(5, 150, 105, .45), transparent 60%),
    linear-gradient(160deg, #0b1220, #111827) !important;
}
body:not(#nx0) #nanbanStaffLoginModal .nb-staff-login-visual::before,
body:not(#nx0) #nanbanStaffLoginModal .nb-staff-login-visual::after { opacity: .25 !important; }
body:not(#nx0) #nanbanStaffLoginModal .nb-staff-login-visual-copy h2 { color: #fff !important; font-weight: 800 !important; letter-spacing: -.01em; }
body:not(#nx0) #nanbanStaffLoginModal .nb-staff-login-visual-copy p { color: #cbd5e1 !important; }
body:not(#nx0) #nanbanStaffLoginModal .nb-staff-login-close {
  border-radius: 12px !important; background: rgba(255, 255, 255, .12) !important; color: #fff !important; border: 1px solid rgba(255, 255, 255, .2) !important;
}
body:not(#nx0) #nanbanStaffLoginModal #loginPanelCard { background: #fff !important; background-image: none !important; box-shadow: none !important; }
body:not(#nx0) #nanbanStaffLoginModal .saas-login-head h2 { color: #0f172a !important; font-weight: 800 !important; letter-spacing: .02em; }
body:not(#nx0) #nanbanStaffLoginModal .saas-login-head p { color: #64748b !important; letter-spacing: .14em; font-weight: 600; }
body:not(#nx0) #nanbanStaffLoginModal label { color: #334155 !important; font-weight: 700 !important; }
body:not(#nx0) #nanbanStaffLoginModal #loginNameDrop,
body:not(#nx0) #nanbanStaffLoginModal #loginPin {
  border-radius: 14px !important; border: 1.5px solid #e2e8f0 !important; background: #f8fafc !important; color: #0f172a !important;
  height: 50px; box-shadow: none !important; transition: border-color .2s, box-shadow .2s, background .2s;
}
body:not(#nx0) #nanbanStaffLoginModal #loginPin { text-align: center; letter-spacing: .5em; font-size: 22px !important; font-weight: 700; }
body:not(#nx0) #nanbanStaffLoginModal #loginNameDrop:focus,
body:not(#nx0) #nanbanStaffLoginModal #loginPin:focus { outline: none !important; border-color: var(--nx-brand) !important; background: #fff !important; box-shadow: var(--nx-ring) !important; }
body:not(#nx0) #nanbanStaffLoginModal #loginPinSubmitBtn {
  border-radius: 14px !important; border: 0 !important; height: 52px; font-weight: 800 !important; color: #fff !important;
  background: linear-gradient(135deg, #dc2626, #b91c1c) !important; box-shadow: 0 16px 30px -16px rgba(220, 38, 38, .85) !important;
  transition: transform .15s var(--nx-ease), filter .2s;
}
body:not(#nx0) #nanbanStaffLoginModal #loginPinSubmitBtn:hover { transform: translateY(-1px); filter: brightness(1.05); }
body:not(#nx0) #nanbanStaffLoginModal #loginPinSubmitBtn:active { transform: scale(.98); }
body:not(#nx0) #nanbanStaffLoginModal #loginAuthModeToggle .btn { border-radius: 12px !important; font-weight: 700 !important; }

@keyframes nx-float { from { transform: translate3d(-30px, 0, 0); } to { transform: translate3d(30px, 40px, 0); } }

@media (prefers-reduced-motion: reduce) {
  html.nb-public-portal-active #loginScreen *,
  html.nb-public-portal-active #loginScreen *::before,
  html.nb-public-portal-active #loginScreen *::after,
  #nanbanStaffLoginModal * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---- front v3 fixes ---- */
html.nb-public-portal-active #nbLoginHub .nb-login-card__tag{height:auto!important;min-height:0!important;width:auto!important;align-self:flex-start!important;display:inline-flex!important;}
html.nb-public-portal-active #nbLoginHub .nb-login-card__tag::before,
html.nb-public-portal-active #nbLoginHub .nb-login-card__tag::after{display:none!important;content:none!important;}
html.nb-public-portal-active #nbLoginHub .nb-live-clock--hub{display:inline-flex!important;align-items:baseline;gap:8px;width:auto!important;max-width:none!important;margin:0 auto 14px!important;padding:6px 14px!important;border-radius:999px!important;background:rgba(255,255,255,.08)!important;border:1px solid rgba(255,255,255,.16)!important;color:#fff!important;box-shadow:none!important;backdrop-filter:blur(8px);}
html.nb-public-portal-active #nbLoginHub .nb-live-clock--hub *{color:#e2e8f0!important;}
html.nb-public-portal-active #nbLoginHub .nb-login-hub__head{display:flex;flex-direction:column;align-items:center;}
@media (min-width:601px){html.nb-public-portal-active #nbLoginHub .nb-live-clock--hub{display:none!important;}}
@media (max-width:600px){
 html.nb-public-portal-active #nbNav .nb-live-clock--landing{display:none!important;}
 html.nb-public-portal-active #nbNav .nb-nav-title{display:none!important;}
}
html.nb-public-portal-active #nbLoginHub .nb-login-card__tag{flex:0 0 auto!important;max-height:max-content!important;grid-row:auto!important;justify-self:start!important;line-height:1.4!important;}
@media (max-width:600px){html.nb-public-portal-active #nbLoginHub .nb-login-hub__kicker{font-size:10px!important;letter-spacing:.06em!important;padding:6px 12px!important;}}
