/* ============================================================
   SD CORE Agency OS — v15 Premium Design System
   Full redesign: Admin Portal + Customer Portal
   ============================================================ */

/* ── Design Tokens ── */
:root {
  --navy:       #020B18;
  --navy2:      #061528;
  --navy3:      #0A1F38;
  --cyan:       #00D4F0;
  --cyan2:      #06B6D4;
  --blue:       #2563EB;
  --blue2:      #1D4ED8;
  --emerald:    #10B981;
  --amber:      #F59E0B;
  --rose:       #F43F5E;
  --violet:     #8B5CF6;
  --text:       #0F172A;
  --text2:      #334155;
  --muted:      #64748B;
  --line:       #E2E8F0;
  --line2:      #CBD5E1;
  --soft:       #F8FAFC;
  --panel:      #FFFFFF;
  --sidebar-w:  280px;
  --radius:     20px;
  --radius-sm:  14px;
  --shadow:     0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -1px rgba(0,0,0,.04);
  --shadow-md:  0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -2px rgba(0,0,0,.04);
  --shadow-lg:  0 20px 40px -8px rgba(2,8,23,.14);
  --shadow-xl:  0 30px 64px -12px rgba(2,8,23,.22);
  --glow:       0 0 0 4px rgba(0,212,240,.15);
  --grad-brand: linear-gradient(135deg, #00D4F0, #2563EB);
  --grad-dark:  linear-gradient(160deg, #020B18 0%, #061528 55%, #0A1F38 100%);
  --grad-panel: linear-gradient(180deg, #fff 0%, #F8FAFC 100%);
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: 'Inter', system-ui, sans-serif; font-size: 14px; line-height: 1.6; color: var(--text); background: #F0F4F8; }
h1,h2,h3,h4 { font-family: 'Sora', 'Inter', sans-serif; margin: 0; font-weight: 700; line-height: 1.2; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ── Admin Shell Layout ── */
.admin-shell { display: flex; min-height: 100vh; }

/* ── Sidebar ── */
.admin-sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w);
  background: var(--grad-dark);
  color: #C8D8E8; padding: 0; display: flex; flex-direction: column; z-index: 100;
  border-right: 1px solid rgba(255,255,255,.04);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
}
.sidebar-header {
  padding: 24px 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  display: flex; align-items: center; gap: 12px;
}
.admin-brand {
  display: flex; align-items: center; gap: 12px; flex: 1;
}
.admin-brand img { height: 36px; width: auto; object-fit: contain; }
.admin-brand-text { display: flex; flex-direction: column; }
.admin-brand-text strong { color: #fff; font-size: 14px; font-weight: 800; letter-spacing: -.01em; }
.admin-brand-text span { color: var(--cyan); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

.sidebar-section-label {
  font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(200,216,232,.35); padding: 18px 20px 6px; display: block;
}
.admin-nav { display: flex; flex-direction: column; gap: 2px; padding: 0 12px; flex: 1; overflow-y: auto; padding-bottom: 12px; }
.admin-nav a {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: 12px;
  color: rgba(200,216,232,.65); font-size: 13px; font-weight: 600;
  transition: all .18s ease; position: relative;
}
.admin-nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.admin-nav a.active {
  color: #fff; background: rgba(0,212,240,.12);
  box-shadow: inset 3px 0 0 var(--cyan);
}
.admin-nav a.active svg, .admin-nav a:hover svg { stroke: var(--cyan); }
.admin-nav a svg { stroke: currentColor; fill: none; flex-shrink: 0; transition: stroke .18s; }
.nav-badge {
  margin-left: auto; background: var(--cyan); color: var(--navy); font-size: 10px;
  font-weight: 800; padding: 2px 7px; border-radius: 999px; min-width: 18px; text-align: center;
}

.sidebar-footer {
  padding: 14px 12px; border-top: 1px solid rgba(255,255,255,.06);
  display: flex; gap: 8px;
}
.sidebar-footer a {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 10px; border-radius: 12px;
  background: rgba(255,255,255,.06); color: rgba(200,216,232,.7);
  font-size: 12px; font-weight: 700; transition: all .18s;
}
.sidebar-footer a:hover { background: rgba(0,212,240,.12); color: var(--cyan); }

/* ── Main Area ── */
.admin-main {
  margin-left: var(--sidebar-w); width: calc(100% - var(--sidebar-w));
  display: flex; flex-direction: column; min-height: 100vh;
}

/* ── Topbar ── */
.admin-topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 16px;
  padding: 14px 28px;
  background: rgba(248,250,252,.92); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.topbar-title { flex: 1; }
.topbar-eyebrow { font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan2); margin-bottom: 3px; }
.admin-topbar h1 { font-size: 22px; color: var(--navy2); font-weight: 800; }
.topbar-right { display: flex; align-items: center; gap: 10px; }

.topbar-search {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 8px 14px; transition: all .18s;
}
.topbar-search:focus-within { border-color: var(--cyan2); box-shadow: var(--glow); }
.topbar-search svg { stroke: var(--muted); fill: none; flex-shrink: 0; }
.topbar-search input { border: 0; outline: none; background: transparent; font-size: 13px; font-family: inherit; width: 180px; color: var(--text); }

.topbar-icon-btn {
  position: relative; width: 40px; height: 40px; border: 1px solid var(--line);
  background: #fff; border-radius: 12px; display: grid; place-items: center; cursor: pointer;
  transition: all .18s; color: var(--text2);
}
.topbar-icon-btn:hover { border-color: var(--cyan2); color: var(--cyan2); background: #f0fdff; }
.topbar-icon-btn svg { stroke: currentColor; fill: none; }
.notif-dot {
  position: absolute; top: 8px; right: 8px; width: 7px; height: 7px;
  background: var(--rose); border-radius: 50%; border: 2px solid #fff;
}

.user-menu {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 12px 6px 6px; border: 1px solid var(--line);
  background: #fff; border-radius: 50px; cursor: pointer; transition: all .18s;
}
.user-menu:hover { border-color: var(--line2); box-shadow: var(--shadow); }
.user-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--grad-brand); display: grid; place-items: center;
  color: #fff; font-size: 12px; font-weight: 800; flex-shrink: 0;
}
.user-info strong { display: block; font-size: 12px; font-weight: 700; color: var(--text); }
.user-info span { display: block; font-size: 11px; color: var(--muted); }

.admin-menu-toggle {
  display: none; width: 40px; height: 40px; border: 1px solid var(--line);
  background: #fff; border-radius: 12px; place-items: center; cursor: pointer;
}
.admin-menu-toggle svg { stroke: var(--text2); fill: none; }

/* ── Page Content Area ── */
.admin-content { padding: 24px 28px; flex: 1; }
.page-header { margin-bottom: 24px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.page-header h2 { font-size: 24px; color: var(--navy2); }
.page-header p { color: var(--muted); margin: 4px 0 0; font-size: 13px; }

/* ── Flash / Notice ── */
.toast, .notice {
  border-radius: 14px; padding: 14px 18px; margin: 0 0 16px; font-weight: 700; font-size: 13px;
  display: flex; align-items: center; gap: 10px;
}
.toast { position: fixed; top: 20px; z-index: 200; left: 50%; transform: translateX(-50%); box-shadow: var(--shadow-xl); min-width: 300px; justify-content: center; }
.notice.success, .toast.success { background: #ECFDF5; color: #065F46; border: 1px solid #6EE7B7; }
.notice.error, .toast.error { background: #FFF1F2; color: #BE123C; border: 1px solid #FECDD3; }
.notice.info, .toast.info { background: #EFF6FF; color: #1E40AF; border: 1px solid #BAE6FD; }

/* ── Metric Cards ── */
.kpi-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-bottom: 24px;
}
.kpi-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
  padding: 20px; box-shadow: var(--shadow); position: relative; overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.kpi-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.kpi-card::after {
  content: ''; position: absolute; right: -30px; top: -30px;
  width: 100px; height: 100px; border-radius: 50%;
  background: var(--kpi-accent, rgba(0,212,240,.08)); pointer-events: none;
}
.kpi-card--cyan   { --kpi-accent: rgba(0,212,240,.12); }
.kpi-card--blue   { --kpi-accent: rgba(37,99,235,.10); }
.kpi-card--green  { --kpi-accent: rgba(16,185,129,.10); }
.kpi-card--amber  { --kpi-accent: rgba(245,158,11,.10); }
.kpi-card--rose   { --kpi-accent: rgba(244,63,94,.10); }
.kpi-card--violet { --kpi-accent: rgba(139,92,246,.10); }
.kpi-icon {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px;
}
.kpi-icon svg { stroke: currentColor; fill: none; }
.kpi-card--cyan .kpi-icon   { background: #ECFEFF; color: #0891B2; }
.kpi-card--blue .kpi-icon   { background: #EFF6FF; color: var(--blue); }
.kpi-card--green .kpi-icon  { background: #ECFDF5; color: #059669; }
.kpi-card--amber .kpi-icon  { background: #FFFBEB; color: #D97706; }
.kpi-card--rose .kpi-icon   { background: #FFF1F2; color: #E11D48; }
.kpi-card--violet .kpi-icon { background: #F5F3FF; color: #7C3AED; }
.kpi-value { font-size: 30px; font-weight: 800; color: var(--navy2); letter-spacing: -.04em; line-height: 1; margin-bottom: 4px; }
.kpi-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.kpi-sub { font-size: 12px; color: var(--muted); margin-top: 6px; }
.kpi-trend { display: flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; margin-top: 8px; }
.kpi-trend.up { color: var(--emerald); }
.kpi-trend.down { color: var(--rose); }

/* ── Panels ── */
.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: 20px;
  padding: 22px; box-shadow: var(--shadow);
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line);
}
.panel-head h2 { font-size: 16px; font-weight: 700; color: var(--navy2); }
.panel-head .panel-sub { font-size: 12px; color: var(--muted); font-weight: 600; }
.panel-action {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; font-size: 12px; font-weight: 700; color: var(--text2); cursor: pointer; transition: all .18s;
}
.panel-action:hover { border-color: var(--cyan2); color: var(--cyan2); background: #f0fdff; }

/* ── Grid Layouts ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.grid-1-2 { display: grid; grid-template-columns: 1fr 2fr; gap: 20px; }
.col-span-2 { grid-column: span 2; }
.gap-section { margin-top: 24px; }

/* ── Tables ── */
.table-wrap { overflow: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 580px; }
.data-table thead th {
  text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: var(--muted); padding: 10px 14px;
  border-bottom: 2px solid var(--line); white-space: nowrap;
}
.data-table tbody tr { transition: background .15s; }
.data-table tbody tr:hover { background: #F8FAFC; }
.data-table td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text2); font-size: 13px; }
.data-table td strong { color: var(--text); font-weight: 700; display: block; margin-bottom: 2px; }
.data-table td small { color: var(--muted); font-size: 11px; }
.data-table .actions { display: flex; gap: 6px; }
.data-table .actions button, .data-table .actions a {
  display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px;
  border-radius: 9px; font-size: 12px; font-weight: 700; cursor: pointer; border: 1px solid var(--line); background: #fff; color: var(--text2); transition: all .15s;
}
.data-table .actions button:hover { border-color: var(--cyan2); color: var(--cyan2); background: #f0fdff; }
.data-table .actions .btn-danger { border-color: #FECDD3; color: var(--rose); background: #FFF1F2; }
.data-table .actions .btn-danger:hover { background: var(--rose); color: #fff; border-color: var(--rose); }
.data-table .actions form { display: inline; }

/* ── Status Badges ── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap;
}
.badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.badge-green  { background: #ECFDF5; color: #065F46; }
.badge-blue   { background: #EFF6FF; color: #1D4ED8; }
.badge-amber  { background: #FFFBEB; color: #92400E; }
.badge-rose   { background: #FFF1F2; color: #9F1239; }
.badge-muted  { background: #F1F5F9; color: #475569; }
.badge-cyan   { background: #ECFEFF; color: #155E75; }
.badge-violet { background: #F5F3FF; color: #5B21B6; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 12px; font-size: 13px; font-weight: 700; cursor: pointer; border: 0; transition: all .18s; text-align: center; }
.btn svg { stroke: currentColor; fill: none; flex-shrink: 0; }
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: 0 8px 20px rgba(0,212,240,.25); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(0,212,240,.35); filter: brightness(1.05); }
.btn-secondary { background: var(--navy2); color: #fff; box-shadow: 0 6px 16px rgba(6,21,40,.2); }
.btn-secondary:hover { transform: translateY(-1px); background: var(--navy3); }
.btn-outline { background: #fff; border: 1px solid var(--line2); color: var(--text2); }
.btn-outline:hover { border-color: var(--cyan2); color: var(--cyan2); background: #f0fdff; }
.btn-ghost { background: transparent; color: var(--text2); }
.btn-ghost:hover { background: var(--soft); }
.btn-danger { background: #FFF1F2; color: var(--rose); border: 1px solid #FECDD3; }
.btn-danger:hover { background: var(--rose); color: #fff; border-color: var(--rose); }
.btn-sm { padding: 7px 13px; font-size: 12px; border-radius: 10px; }
.btn-xs { padding: 5px 10px; font-size: 11px; border-radius: 8px; }

/* Legacy compatibility */
.btn-admin { @extend .btn; @extend .btn-primary; display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 13px; font-size: 13px; font-weight: 800; cursor: pointer; border: 0; background: var(--grad-brand); color: #fff; box-shadow: 0 8px 20px rgba(0,212,240,.25); transition: all .18s; }
.btn-admin:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn-admin.secondary { background: linear-gradient(135deg, #0F172A, #164E63); }

/* ── Forms ── */
.stack-form { display: grid; gap: 16px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stack-form label, .form-label { display: grid; gap: 7px; font-size: 12px; font-weight: 700; color: var(--text2); letter-spacing: .01em; }
.stack-form input, .stack-form select, .stack-form textarea,
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line2);
  border-radius: 12px; font: inherit; font-size: 13px; color: var(--text); background: #fff;
  outline: none; transition: border-color .18s, box-shadow .18s; appearance: none;
}
.stack-form input:focus, .stack-form select:focus, .stack-form textarea:focus,
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--cyan2); box-shadow: var(--glow);
}
.stack-form textarea, .form-textarea { resize: vertical; min-height: 100px; }
.form-help { font-size: 11px; color: var(--muted); margin-top: 3px; }
.form-check { display: flex; align-items: center; gap: 10px; }
.form-check input { width: 16px; height: 16px; accent-color: var(--cyan2); }

/* ── Auth Screen ── */
.auth-screen {
  min-height: 100vh; display: grid; place-items: center;
  background: radial-gradient(circle at 15% 15%, rgba(0,212,240,.18), transparent 34%),
              radial-gradient(circle at 85% 85%, rgba(37,99,235,.14), transparent 34%),
              linear-gradient(160deg, #F0F9FF 0%, #EFF6FF 50%, #F8FAFC 100%);
  padding: 20px;
}
.auth-screen.dark-auth {
  background: radial-gradient(circle at 15% 15%, rgba(0,212,240,.20), transparent 30%),
              radial-gradient(circle at 85% 85%, rgba(37,99,235,.18), transparent 30%),
              linear-gradient(160deg, #020B18 0%, #061528 60%, #0A1F38 100%);
}
.auth-card {
  width: min(480px, 100%); position: relative; z-index: 2;
  background: rgba(255,255,255,.90); backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,.80); border-radius: 28px;
  box-shadow: var(--shadow-xl); padding: 40px;
}
.dark-auth .auth-card {
  background: rgba(4,16,32,.88); border-color: rgba(125,211,252,.15); color: #F8FAFC;
}
.auth-brand {
  display: flex; align-items: center; gap: 14px; margin-bottom: 30px;
}
.auth-brand img { height: 40px; width: auto; }
.auth-brand-info strong { display: block; font-size: 14px; font-weight: 800; color: var(--navy2); }
.dark-auth .auth-brand-info strong { color: #fff; }
.auth-brand-info span { font-size: 10px; font-weight: 700; color: var(--cyan2); text-transform: uppercase; letter-spacing: .14em; }
.auth-card h1 { font-size: 30px; margin-bottom: 8px; color: var(--navy2); }
.dark-auth .auth-card h1 { color: #fff; }
.auth-card > p { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
.dark-auth .auth-card > p { color: #94A3B8; }
.auth-form { display: grid; gap: 18px; }
.dark-auth .auth-form label { color: #CBD5E1; }
.dark-auth .auth-form input { background: rgba(15,23,42,.70); border-color: rgba(148,163,184,.22); color: #fff; }
.dark-auth .auth-form input:focus { border-color: var(--cyan2); }
.auth-btn {
  width: 100%; padding: 14px; border: 0; border-radius: 14px;
  background: var(--grad-brand); color: #fff; font-size: 15px; font-weight: 800;
  cursor: pointer; box-shadow: 0 12px 28px rgba(0,212,240,.28); transition: all .2s;
}
.auth-btn:hover { transform: translateY(-1px); box-shadow: 0 16px 36px rgba(0,212,240,.38); }
.auth-link { color: var(--cyan2); font-weight: 700; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 50px !important; }
.password-eye {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border: 0; background: transparent; cursor: pointer;
  border-radius: 10px; display: grid; place-items: center; color: var(--muted); transition: color .18s;
}
.password-eye:hover { color: var(--cyan2); }
.password-eye svg { stroke: currentColor; fill: none; }

/* ── Email / Security Logs ── */
.log-entry {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px;
  background: #fff; transition: border-color .15s;
}
.log-entry:hover { border-color: var(--line2); }
.log-entry-icon {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0;
}
.log-entry-icon svg { stroke: currentColor; fill: none; }
.log-icon-sent    { background: #ECFDF5; color: #059669; }
.log-icon-failed  { background: #FFF1F2; color: var(--rose); }
.log-icon-warning { background: #FFFBEB; color: #D97706; }
.log-icon-info    { background: #EFF6FF; color: var(--blue); }
.log-icon-security{ background: #F5F3FF; color: var(--violet); }
.log-body { flex: 1; min-width: 0; }
.log-body strong { display: block; font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.log-body span { font-size: 12px; color: var(--muted); display: block; }
.log-body .log-error { font-size: 11px; color: var(--rose); margin-top: 3px; }
.log-meta { text-align: right; flex-shrink: 0; }
.log-meta time { font-size: 11px; color: var(--muted); display: block; white-space: nowrap; }

/* ── Pipeline / Kanban ── */
.pipeline-stages { display: grid; gap: 8px; }
.pipeline-stage {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-radius: 12px; background: var(--soft);
  border: 1px solid var(--line); transition: all .18s;
}
.pipeline-stage:hover { border-color: var(--line2); background: #fff; box-shadow: var(--shadow); }
.pipeline-stage-name { font-size: 13px; font-weight: 700; color: var(--text2); }
.pipeline-stage-count { font-size: 20px; font-weight: 800; color: var(--navy2); }
.pipeline-stage.highlight { border-color: rgba(0,212,240,.4); background: rgba(0,212,240,.04); }
.pipeline-stage.highlight .pipeline-stage-name { color: #0891B2; }

/* ── Task Board ── */
.task-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.task-col { background: var(--soft); border-radius: 16px; padding: 14px; border: 1px solid var(--line); }
.task-col-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.task-col-label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.task-col-count { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,.07); }
.task-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 13px 14px; margin-bottom: 8px; cursor: pointer;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.task-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--line2); }
.task-card.client-visible { border-left: 3px solid var(--cyan2); }
.task-card h4 { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.task-card-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.task-card small { font-size: 11px; color: var(--muted); }

/* ── Timeline ── */
.timeline { display: grid; gap: 12px; }
.timeline-item {
  position: relative; padding: 14px 16px 14px 44px;
  border: 1px solid var(--line); border-radius: 16px; background: #fff;
}
.timeline-item::before {
  content: ''; position: absolute; left: 16px; top: 20px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--grad-brand); box-shadow: 0 0 0 4px rgba(0,212,240,.12);
}
.timeline-item b { display: block; font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.timeline-item p { margin: 0 0 4px; font-size: 13px; color: var(--text2); line-height: 1.55; }
.timeline-item small { font-size: 11px; color: var(--muted); }

/* ── Progress Bar ── */
.progress-bar { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: var(--grad-brand); border-radius: 999px; transition: width .4s ease; }

/* ── Meeting Cards ── */
.meeting-card {
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff;
  display: grid; gap: 6px; transition: border-color .15s, box-shadow .15s;
}
.meeting-card:hover { border-color: var(--line2); box-shadow: var(--shadow); }
.meeting-card strong { font-size: 14px; font-weight: 700; color: var(--text); }
.meeting-card span { font-size: 12px; color: var(--text2); }
.meeting-card small { font-size: 11px; color: var(--muted); }
.meeting-card a { color: var(--cyan2); font-weight: 700; font-size: 12px; }
.meetings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

/* ── System Status ── */
.system-status {
  border-radius: 18px; padding: 22px;
  background: linear-gradient(160deg, #061528, #0A2342);
  border: 1px solid rgba(0,212,240,.15); color: #fff;
}
.system-status strong { display: block; font-size: 26px; font-weight: 800; color: var(--cyan); letter-spacing: -.03em; margin-bottom: 8px; }
.system-status p { font-size: 13px; color: #94A3B8; line-height: 1.6; margin: 0 0 14px; }
.system-health-list { display: grid; gap: 8px; }
.health-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.06);
  font-size: 12px; font-weight: 700;
}
.health-item span { color: #CBD5E1; }
.health-item .health-ok  { color: var(--emerald); }
.health-item .health-warn { color: var(--amber); }
.health-item .health-err  { color: var(--rose); }

/* ── Quick Actions ── */
.quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 24px; }
.quick-action {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 18px 12px; border: 1px solid var(--line); border-radius: 16px;
  background: #fff; cursor: pointer; text-align: center; transition: all .18s;
  font-size: 12px; font-weight: 700; color: var(--text2);
}
.quick-action:hover { border-color: var(--cyan2); color: var(--cyan2); transform: translateY(-2px); box-shadow: var(--shadow-md); background: #f0fdff; }
.quick-action-icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; transition: background .18s;
}
.quick-action svg { stroke: currentColor; fill: none; }
.quick-action:hover .quick-action-icon { background: rgba(0,212,240,.12); color: var(--cyan2); }

/* ── Tabs ── */
.tabs { display: flex; gap: 4px; background: var(--soft); padding: 4px; border-radius: 14px; margin-bottom: 20px; }
.tabs a, .tabs button {
  flex: 1; text-align: center; padding: 9px 14px; border-radius: 11px; border: 0; background: transparent;
  font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; transition: all .18s;
}
.tabs a.active, .tabs button.active { background: #fff; color: var(--navy2); box-shadow: var(--shadow); }

/* ── Chart Area ── */
.chart-canvas-wrap { position: relative; }
canvas { display: block; }

/* ── Ops Chart ── */
#opsChart { max-height: 280px; }

/* ── Portal ── */
.portal-body { background: #F0F6FF; }
.portal-shell { min-height: 100vh; display: flex; flex-direction: column; }

/* Portal Header */
.portal-header {
  height: 70px; background: rgba(255,255,255,.95); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line); display: flex; align-items: center;
  justify-content: space-between; padding: 0 min(5vw,64px);
  position: sticky; top: 0; z-index: 50; box-shadow: var(--shadow);
}
.portal-logo { display: flex; align-items: center; gap: 12px; }
.portal-logo img { height: 38px; width: auto; }
.portal-logo-text { display: flex; flex-direction: column; }
.portal-logo-text strong { font-size: 14px; font-weight: 800; color: var(--navy2); }
.portal-logo-text span { font-size: 10px; color: var(--cyan2); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.portal-nav { display: flex; align-items: center; gap: 8px; }
.portal-nav a {
  padding: 8px 14px; border-radius: 10px; font-size: 13px; font-weight: 700; color: var(--text2);
  transition: all .18s;
}
.portal-nav a:hover, .portal-nav a.active { background: rgba(0,212,240,.08); color: var(--cyan2); }
.portal-notif-btn {
  position: relative; width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer;
}
.portal-notif-btn svg { stroke: var(--text2); fill: none; }

/* Portal Main */
.portal-main { padding: min(4vw,48px); flex: 1; }

/* Portal Hero */
.portal-hero {
  background: var(--grad-dark); border-radius: 24px; padding: 36px 40px;
  color: #fff; margin-bottom: 24px; position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center;
}
.portal-hero::before {
  content: ''; position: absolute; right: -100px; top: -100px; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,212,240,.18), transparent 60%);
  pointer-events: none;
}
.portal-hero-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); margin-bottom: 10px; }
.portal-hero h1 { font-size: 30px; font-weight: 800; margin-bottom: 10px; }
.portal-hero p { color: #94A3B8; font-size: 14px; line-height: 1.65; max-width: 520px; margin: 0; }
.portal-hero-stats { display: flex; gap: 24px; margin-top: 20px; }
.portal-hero-stat strong { display: block; font-size: 24px; font-weight: 800; color: var(--cyan); letter-spacing: -.03em; }
.portal-hero-stat span { font-size: 11px; color: #94A3B8; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }

.profile-card {
  position: relative; z-index: 1; background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.15); border-radius: 20px;
  padding: 20px; min-width: 200px;
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
}
.profile-avatar {
  width: 64px; height: 64px; border-radius: 16px; background: var(--grad-brand);
  display: grid; place-items: center; font-size: 22px; font-weight: 800; color: #fff;
  overflow: hidden;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-card strong { font-size: 15px; font-weight: 800; }
.profile-card span { font-size: 12px; color: rgba(255,255,255,.6); }

/* Portal Project Cards */
.portal-project-card {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px;
  margin-bottom: 16px; box-shadow: var(--shadow);
}
.portal-project-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.portal-project-title h3 { font-size: 17px; font-weight: 800; color: var(--navy2); margin-bottom: 4px; }
.portal-project-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.portal-project-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.portal-project-progress strong { font-size: 22px; font-weight: 800; color: var(--navy2); white-space: nowrap; min-width: 44px; }

/* Portal Timeline Steps */
.portal-timeline {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px;
}
.portal-step {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  flex: 1; min-width: 70px;
}
.portal-step-dot {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px; font-weight: 800;
  border: 2px solid var(--line); background: #fff; color: var(--muted); transition: all .2s;
}
.portal-step.done .portal-step-dot { background: var(--grad-brand); border-color: transparent; color: #fff; }
.portal-step.active .portal-step-dot { border-color: var(--cyan2); color: var(--cyan2); box-shadow: 0 0 0 4px rgba(0,212,240,.12); }
.portal-step-label { font-size: 10px; font-weight: 700; color: var(--muted); text-align: center; line-height: 1.3; }
.portal-step.done .portal-step-label { color: #0891B2; }
.portal-step.active .portal-step-label { color: var(--cyan2); }

/* Portal brief */
.project-brief-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-top: 14px; }
.brief-item { padding: 12px 14px; background: var(--soft); border-radius: 12px; border: 1px solid var(--line); }
.brief-item b { display: block; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.brief-item p { margin: 0; font-size: 13px; color: var(--text2); line-height: 1.5; }

/* Portal doc list */
.doc-list { display: grid; gap: 8px; margin-top: 14px; }
.doc-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .15s;
}
.doc-item:hover { border-color: var(--line2); }
.doc-item-icon { width: 34px; height: 34px; border-radius: 9px; background: #EFF6FF; display: grid; place-items: center; flex-shrink: 0; }
.doc-item-icon svg { stroke: var(--blue); fill: none; }
.doc-item-name { flex: 1; font-size: 13px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-item small { font-size: 11px; color: var(--muted); }
.doc-item a { font-size: 12px; font-weight: 700; color: var(--cyan2); flex-shrink: 0; }

/* ── Notification Dropdown ── */
.notif-panel {
  position: absolute; top: calc(100% + 8px); right: 0; width: 360px;
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-xl); z-index: 200; overflow: hidden; display: none;
}
.notif-panel.open { display: block; }
.notif-header { padding: 16px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.notif-header h3 { font-size: 15px; font-weight: 800; }
.notif-mark-all { font-size: 12px; font-weight: 700; color: var(--cyan2); border: 0; background: transparent; cursor: pointer; }
.notif-item { display: flex; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); transition: background .15s; cursor: pointer; }
.notif-item:hover { background: var(--soft); }
.notif-item.unread { background: #F0F9FF; }
.notif-dot-unread { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan2); flex-shrink: 0; margin-top: 6px; }
.notif-body strong { display: block; font-size: 13px; font-weight: 700; margin-bottom: 3px; }
.notif-body span { font-size: 12px; color: var(--muted); }

/* ── Inquiry Cards ── */
.inquiry-card {
  display: grid; grid-template-columns: 1fr 380px; gap: 18px;
  border: 1px solid var(--line); border-radius: 18px; padding: 18px;
  background: #fff; margin-bottom: 14px;
}
.inquiry-card:hover { border-color: var(--line2); box-shadow: var(--shadow); }
.inq-tag { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.inq-header h3 { font-size: 15px; font-weight: 800; color: var(--navy2); margin-bottom: 6px; }
.inq-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.inq-meta span { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.inq-message { font-size: 13px; color: var(--text2); line-height: 1.6; }
blockquote.inq-reply { margin: 12px 0 0; padding: 12px 14px; border-left: 3px solid var(--cyan2); background: #F0FDFF; border-radius: 0 12px 12px 0; }
blockquote.inq-reply b { display: block; font-size: 12px; color: var(--cyan2); margin-bottom: 4px; }
blockquote.inq-reply p { margin: 0; font-size: 13px; color: var(--text2); }

/* ── Website Monitoring Widget ── */
.site-monitor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.site-monitor-card {
  border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: #fff; transition: all .18s;
}
.site-monitor-card:hover { border-color: var(--line2); box-shadow: var(--shadow); }
.site-monitor-header { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.site-monitor-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.site-monitor-dot.up    { background: var(--emerald); box-shadow: 0 0 0 3px rgba(16,185,129,.2); }
.site-monitor-dot.down  { background: var(--rose); box-shadow: 0 0 0 3px rgba(244,63,94,.2); }
.site-monitor-dot.warn  { background: var(--amber); box-shadow: 0 0 0 3px rgba(245,158,11,.2); }
.site-monitor-card h4 { font-size: 13px; font-weight: 800; color: var(--text); }
.site-monitor-card a { font-size: 11px; color: var(--muted); }
.site-monitor-stat strong { font-size: 22px; font-weight: 800; color: var(--navy2); display: block; }
.site-monitor-stat span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.site-monitor-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.site-monitor-check { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.site-monitor-check:last-child { border: 0; }
.site-monitor-check span { color: var(--text2); font-weight: 600; }
.site-monitor-check .ok { color: var(--emerald); font-weight: 700; }
.site-monitor-check .fail { color: var(--rose); font-weight: 700; }
.site-monitor-check .warn { color: var(--amber); font-weight: 700; }

/* ── Records ── */
.record-card {
  display: grid; grid-template-columns: 1fr 360px; gap: 18px;
  border: 1px solid var(--line); border-radius: 18px; padding: 18px;
  background: #fff; transition: border-color .15s, box-shadow .15s;
}
.record-card:hover { border-color: var(--line2); box-shadow: var(--shadow); }
.record-card h3 { font-size: 15px; font-weight: 800; color: var(--navy2); margin-bottom: 6px; }
.record-card p { font-size: 13px; color: var(--text2); line-height: 1.6; }
.record-card .record-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.cards-list { display: grid; gap: 14px; }

/* ── Meta Chips ── */
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 11px; font-weight: 700; color: var(--text2); background: #fff; }

/* ── Misc ── */
.eyebrow { margin: 0 0 6px; color: var(--cyan2); font-weight: 800; letter-spacing: .16em; font-size: 11px; text-transform: uppercase; display: block; }
.text-muted { color: var(--muted); }
.text-success { color: var(--emerald); }
.text-danger { color: var(--rose); }
.status.ok { background: #ECFDF5; color: #065F46; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.status.muted { background: #F1F5F9; color: #475569; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.mini-link { display: inline-flex; align-items: center; padding: 6px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 12px; font-weight: 700; color: var(--text2); transition: all .15s; }
.mini-link:hover { border-color: var(--cyan2); color: var(--cyan2); }

/* ── Theme Button ── */
.theme-mini, .user-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; font-size: 12px; font-weight: 700; color: var(--text2); cursor: pointer;
}
.theme-mini:hover { border-color: var(--cyan2); color: var(--cyan2); }

/* ── Dark Theme ── */
html[data-admin-theme="dark"] body.admin-body {
  background: #0A1628; color: #E2E8F0;
  --panel: #0F2037; --line: rgba(255,255,255,.08); --line2: rgba(255,255,255,.12);
  --soft: #0D1C30; --text: #F1F5F9; --text2: #CBD5E1; --muted: #94A3B8;
}
html[data-admin-theme="dark"] .admin-topbar {
  background: rgba(10,22,40,.92); border-bottom-color: rgba(255,255,255,.06);
}
html[data-admin-theme="dark"] .admin-topbar h1 { color: #fff; }
html[data-admin-theme="dark"] .topbar-search, html[data-admin-theme="dark"] .topbar-icon-btn,
html[data-admin-theme="dark"] .user-menu, html[data-admin-theme="dark"] .theme-mini {
  background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.08); color: #E2E8F0;
}
html[data-admin-theme="dark"] .topbar-search input { color: #fff; }
html[data-admin-theme="dark"] .panel { background: #0F2037; border-color: rgba(255,255,255,.07); }
html[data-admin-theme="dark"] .kpi-card { background: #0F2037; border-color: rgba(255,255,255,.07); }
html[data-admin-theme="dark"] .kpi-value { color: #fff; }
html[data-admin-theme="dark"] .data-table thead th { color: #64748B; }
html[data-admin-theme="dark"] .data-table td { border-color: rgba(255,255,255,.06); color: #CBD5E1; }
html[data-admin-theme="dark"] .data-table tbody tr:hover { background: rgba(255,255,255,.03); }
html[data-admin-theme="dark"] .record-card, html[data-admin-theme="dark"] .task-card,
html[data-admin-theme="dark"] .meeting-card, html[data-admin-theme="dark"] .inquiry-card,
html[data-admin-theme="dark"] .log-entry, html[data-admin-theme="dark"] .pipeline-stage,
html[data-admin-theme="dark"] .site-monitor-card, html[data-admin-theme="dark"] .doc-item,
html[data-admin-theme="dark"] .quick-action {
  background: #0F2037; border-color: rgba(255,255,255,.07); color: #E2E8F0;
}
html[data-admin-theme="dark"] .panel-head { border-bottom-color: rgba(255,255,255,.07); }
html[data-admin-theme="dark"] .tabs { background: rgba(255,255,255,.06); }
html[data-admin-theme="dark"] .tabs a.active, html[data-admin-theme="dark"] .tabs button.active { background: rgba(255,255,255,.12); color: #fff; }
html[data-admin-theme="dark"] .form-input, html[data-admin-theme="dark"] .form-select, html[data-admin-theme="dark"] .form-textarea,
html[data-admin-theme="dark"] .stack-form input, html[data-admin-theme="dark"] .stack-form select, html[data-admin-theme="dark"] .stack-form textarea {
  background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.10); color: #fff;
}
html[data-admin-theme="dark"] .stack-form label { color: #94A3B8; }
html[data-admin-theme="dark"] .brief-item, html[data-admin-theme="dark"] .pipeline-stage { background: rgba(255,255,255,.04); }
html[data-admin-theme="dark"] .task-col { background: rgba(255,255,255,.04); }
html[data-admin-theme="dark"] .chip { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.10); color: #CBD5E1; }
html[data-admin-theme="dark"] .btn-outline { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.10); color: #CBD5E1; }
html[data-admin-theme="dark"] .data-table .actions button, html[data-admin-theme="dark"] .data-table .actions a { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.10); color: #CBD5E1; }
html[data-admin-theme="dark"] .mini-link, html[data-admin-theme="dark"] .panel-action { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.10); color: #CBD5E1; }
html[data-admin-theme="dark"] .quick-action:hover { background: rgba(0,212,240,.08); }
html[data-admin-theme="dark"] .notif-panel { background: #0F2037; border-color: rgba(255,255,255,.08); }
html[data-admin-theme="dark"] .notif-item { border-bottom-color: rgba(255,255,255,.06); }
html[data-admin-theme="dark"] .notif-item.unread { background: rgba(0,212,240,.05); }
html[data-admin-theme="dark"] .notif-item:hover { background: rgba(255,255,255,.04); }
html[data-admin-theme="dark"] .form-split { }

/* ── Responsive ── */
@media (max-width: 1400px) {
  .kpi-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1200px) {
  .grid-2-1, .grid-1-2 { grid-template-columns: 1fr; }
  .task-board { grid-template-columns: repeat(2, 1fr); }
  .meetings-grid { grid-template-columns: repeat(2, 1fr); }
  .site-monitor-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-actions { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1024px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .kpi-grid { grid-template-columns: repeat(3, 1fr); }
  .project-brief-grid { grid-template-columns: 1fr 1fr; }
  .portal-hero { grid-template-columns: 1fr; }
  .profile-card { align-self: start; }
}
@media (max-width: 860px) {
  :root { --sidebar-w: 0px; }
  .admin-sidebar {
    width: 280px;
    transform: translateX(-105%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
  }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; width: 100%; }
  .admin-menu-toggle { display: grid; }
  .topbar-search { display: none; }
  .topbar-right .user-info { display: none; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .inquiry-card { grid-template-columns: 1fr; }
  .record-card { grid-template-columns: 1fr; }
  .meetings-grid { grid-template-columns: 1fr 1fr; }
  .quick-actions { grid-template-columns: repeat(2, 1fr); }
  .site-monitor-grid { grid-template-columns: 1fr; }
  .portal-header { padding: 0 18px; }
  .portal-main { padding: 18px; }
  .portal-hero { padding: 24px; }
  .portal-hero h1 { font-size: 22px; }
  .admin-content { padding: 16px 18px; }
}
@media (max-width: 600px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .task-board { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .meetings-grid { grid-template-columns: 1fr; }
  .quick-actions { grid-template-columns: repeat(2, 1fr); }
  .portal-timeline { flex-wrap: wrap; }
  .portal-step { min-width: 60px; }
  .project-brief-grid { grid-template-columns: 1fr; }
  .portal-hero-stats { gap: 14px; flex-wrap: wrap; }
  .tabs { flex-wrap: wrap; }
  .admin-topbar { padding: 12px 16px; }
  .admin-content { padding: 12px 14px; }
  .panel { padding: 16px; border-radius: 16px; }
  .auth-card { padding: 28px 22px; }
  .auth-card h1 { font-size: 26px; }
}

/* ── Sidebar Overlay ── */
.sidebar-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5);
  z-index: 99; backdrop-filter: blur(4px);
}
.sidebar-overlay.visible { display: block; }

/* ── Print ── */
@media print {
  .admin-sidebar, .admin-topbar, .sidebar-overlay { display: none !important; }
  .admin-main { margin: 0 !important; width: 100% !important; }
}

/* ============================================================
   SD CORE v15 — Split-Layout Auth Pages
   ============================================================ */

/* Override auth-screen to be a plain full-height container */
body.auth-screen {
  background: #0A1628 !important;
  display: block !important;
  place-items: unset !important;
  padding: 0 !important;
  overflow: hidden;
}
body.portal-body.auth-screen {
  background: #F0F6FF !important;
}

/* ── Split wrapper ── */
.split-auth {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* ── LEFT: Form Side ── */
.split-auth__form {
  width: 460px;
  flex-shrink: 0;
  background: #0A1628;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 48px;
  position: relative;
  z-index: 2;
}
.split-auth--light .split-auth__form {
  background: #FFFFFF;
  box-shadow: 4px 0 40px rgba(0,0,0,.08);
}
.split-auth__inner {
  width: 100%;
  max-width: 360px;
}

/* Brand */
.split-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
}
.split-brand img {
  height: 40px;
  width: auto;
}
.split-brand div strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -.01em;
}
.split-brand div span {
  display: block;
  font-size: 9px;
  font-weight: 800;
  color: #00D4F0;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-top: 2px;
}
.split-brand--light div strong { color: #020B18; }
.split-brand--light div span   { color: #0099B4; }

/* Heading + sub */
.split-auth__inner h1 {
  font-size: 32px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -.03em;
  margin-bottom: 8px;
  line-height: 1.15;
}
.sa-light-h1 { color: #020B18 !important; }
.split-auth__inner p {
  font-size: 14px;
  color: rgba(255,255,255,.55);
  line-height: 1.65;
  margin-bottom: 28px;
}
.sa-light-p { color: #64748B !important; }

/* Form fields */
.sa-form { display: grid; gap: 18px; }
.sa-field { display: grid; gap: 7px; }
.sa-field label {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,.6);
  letter-spacing: .03em;
}
.sa-field--light label { color: #475569; }
.sa-field input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: rgba(255,255,255,.07);
  color: #FFFFFF;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.sa-field input::placeholder { color: rgba(255,255,255,.25); }
.sa-field input:focus {
  border-color: #00D4F0;
  background: rgba(0,212,240,.06);
  box-shadow: 0 0 0 4px rgba(0,212,240,.12);
}
.sa-field--light input {
  background: #F8FAFC;
  border-color: #CBD5E1;
  color: #0F172A;
}
.sa-field--light input::placeholder { color: #94A3B8; }
.sa-field--light input:focus {
  border-color: #00A3B8;
  background: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(0,163,184,.12);
}

/* Password wrap */
.sa-pw-wrap { position: relative; }
.sa-pw-wrap input { padding-right: 50px; }
.sa-pw-eye {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border: 0; background: transparent;
  color: rgba(255,255,255,.35); cursor: pointer; display: grid; place-items: center;
  border-radius: 10px; transition: color .18s;
}
.sa-pw-eye:hover { color: #00D4F0; }
.sa-pw-eye svg { stroke: currentColor; fill: none; }
.sa-pw-eye--light { color: #94A3B8; }
.sa-pw-eye--light:hover { color: #0891B2; }

/* OTP input */
.sa-otp-input {
  font-size: 28px !important;
  letter-spacing: .4em !important;
  text-align: center !important;
  font-weight: 800 !important;
  padding: 16px !important;
}

/* Primary button */
.sa-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 15px 20px;
  border: 0; border-radius: 14px; cursor: pointer;
  font-size: 15px; font-weight: 800; font-family: inherit;
  background: linear-gradient(135deg, #00C8E0 0%, #0080F0 60%, #0050C8 100%);
  color: #FFFFFF;
  box-shadow: 0 12px 32px rgba(0,128,240,.4), 0 4px 12px rgba(0,80,200,.3);
  transition: all .2s ease;
  margin-top: 4px;
}
.sa-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(0,128,240,.5), 0 6px 18px rgba(0,80,200,.35);
  filter: brightness(1.06);
}
.sa-btn:active { transform: translateY(0); }
.sa-btn svg { stroke: #fff; fill: none; flex-shrink: 0; }
.sa-btn--portal {
  background: linear-gradient(135deg, #00C8E0 0%, #0077E6 60%, #1A46C5 100%);
}

/* 2FA note */
.sa-2fa-note {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 11px; color: rgba(255,255,255,.3); margin-top: 12px;
}
.sa-2fa-note svg { stroke: rgba(255,255,255,.35); fill: none; flex-shrink: 0; }

/* Footer link */
.sa-footer-link {
  text-align: center; font-size: 13px; color: rgba(255,255,255,.35); margin-top: 14px;
}
.sa-footer-link a { color: #00D4F0; font-weight: 700; }
.sa-footer-link--light { color: #64748B; }
.sa-footer-link--light a { color: #0891B2; }

/* ── RIGHT: Visual Side ── */
.split-auth__visual {
  flex: 1;
  position: relative;
  background:
    url('/assets/images/hero-video-poster.jpg') center/cover no-repeat,
    linear-gradient(160deg, #020B18 0%, #061A36 55%, #0A2550 100%);
  overflow: hidden;
}
.split-auth__visual--portal {
  background: linear-gradient(160deg, #0A1F4E 0%, #1040A0 50%, #0066CC 100%);
}

/* Dark tech overlay with grid pattern */
.split-auth__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(160deg, rgba(2,11,24,.82) 0%, rgba(6,26,54,.6) 50%, rgba(0,128,240,.18) 100%);
}
.split-auth__overlay--portal {
  background:
    linear-gradient(160deg, rgba(10,31,78,.85) 0%, rgba(16,64,160,.65) 50%, rgba(0,102,204,.2) 100%);
}

/* Animated grid lines on background */
.split-auth__visual::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background-image:
    linear-gradient(rgba(0,212,240,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,240,.07) 1px, transparent 1px);
  background-size: 48px 48px;
}

.split-auth__content {
  position: relative; z-index: 2;
  height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 60px 48px;
  gap: 48px;
}

/* Icon grid (admin) */
.split-icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 320px;
}
.sig-icon {
  width: 72px; height: 72px;
  border: 1px solid rgba(0,212,240,.18);
  border-radius: 18px;
  background: rgba(0,212,240,.06);
  display: grid; place-items: center;
  backdrop-filter: blur(8px);
  transition: all .25s;
  animation: sigFloat 4s ease-in-out infinite;
}
.sig-icon:nth-child(even) { animation-delay: -2s; }
.sig-icon:nth-child(3n) { animation-delay: -1s; }
.sig-icon--glow {
  border-color: rgba(0,212,240,.5);
  background: rgba(0,212,240,.12);
  box-shadow: 0 0 24px rgba(0,212,240,.2);
}
@keyframes sigFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Portal visual rings */
.portal-visual-icons {
  position: relative;
  width: 200px; height: 200px;
  display: grid; place-items: center;
}
.pvi-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  animation: pviPulse 3s ease-in-out infinite;
}
.pvi-ring--1 { width: 100%; height: 100%; animation-delay: 0s; }
.pvi-ring--2 { width: 70%;  height: 70%;  animation-delay: -.6s; border-color: rgba(0,212,240,.25); }
.pvi-ring--3 { width: 42%;  height: 42%;  animation-delay: -1.2s; border-color: rgba(0,212,240,.4); }
@keyframes pviPulse {
  0%, 100% { transform: scale(1); opacity: .8; }
  50% { transform: scale(1.04); opacity: 1; }
}
.pvi-center {
  position: relative; z-index: 2;
  width: 80px; height: 80px;
  background: linear-gradient(135deg, rgba(0,212,240,.3), rgba(37,99,235,.3));
  border-radius: 50%;
  display: grid; place-items: center;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 40px rgba(0,212,240,.25);
}
.pvi-center svg { stroke: #fff; }

/* Taglines */
.split-tagline {
  text-align: center; color: #fff;
}
.split-tagline h2 {
  font-size: 26px; font-weight: 800; margin-bottom: 10px;
  letter-spacing: -.02em; text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.split-tagline p {
  font-size: 14px; color: rgba(255,255,255,.6);
  line-height: 1.7; max-width: 320px; margin: 0 auto 24px;
}

/* Admin stats row */
.split-stats {
  display: flex; gap: 32px; justify-content: center;
}
.split-stats div { text-align: center; }
.split-stats strong {
  display: block; font-size: 22px; font-weight: 900;
  color: #00D4F0; letter-spacing: -.03em;
}
.split-stats span {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: rgba(255,255,255,.45);
}

/* Portal feature list */
.portal-feature-list { display: grid; gap: 12px; text-align: left; }
.pfl-item {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: rgba(255,255,255,.75); font-weight: 600;
}
.pfl-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #00D4F0, #2563EB);
  box-shadow: 0 0 8px rgba(0,212,240,.5);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .split-auth__form { width: 100%; padding: 36px 28px; }
  .split-auth__visual { display: none; }
  body.auth-screen { overflow: auto; }
  .split-auth__inner { max-width: 100%; }
}
@media (max-width: 480px) {
  .split-auth__form { padding: 28px 22px; }
  .split-auth__inner h1 { font-size: 26px; }
  .sa-btn { font-size: 14px; }
}

/* ── Inline auth flash (inside split form panel) ── */
.sa-flash {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; border-radius: 14px; margin-bottom: 20px;
  font-size: 13px; font-weight: 700; line-height: 1.45;
}
.sa-flash svg { stroke: currentColor; fill: none; flex-shrink: 0; }
.sa-flash--success {
  background: #ECFDF5; color: #065F46; border: 1px solid #6EE7B7;
}
.sa-flash--error {
  background: #FFF1F2; color: #9F1239; border: 1px solid #FECDD3;
}
.sa-flash--info {
  background: #EFF6FF; color: #1E40AF; border: 1px solid #BFDBFE;
}
/* Light-panel variant */
.split-auth--light .sa-flash--success { background: #ECFDF5; color: #065F46; }
.split-auth--light .sa-flash--error   { background: #FFF1F2; color: #9F1239; }

/* ── OTP hint line ── */
.sa-otp-hint {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12px; line-height: 1.55; padding: 11px 14px;
  border-radius: 12px; margin: -4px 0 4px;
}
.sa-otp-hint svg { stroke: currentColor; fill: none; flex-shrink: 0; margin-top: 1px; }
.split-auth--light .sa-otp-hint {
  background: #F0F9FF; color: #0369A1; border: 1px solid #BAE6FD;
}
.split-auth .sa-otp-hint {
  background: rgba(0,212,240,.08); color: rgba(0,212,240,.85);
  border: 1px solid rgba(0,212,240,.2);
}

/* ── Admin login also needs inline flash fix ── */
.split-auth.split-auth--admin .sa-flash--success {
  background: rgba(16,185,129,.1); color: #6EE7B7; border-color: rgba(16,185,129,.3);
}
.split-auth.split-auth--admin .sa-flash--error {
  background: rgba(244,63,94,.1); color: #FDA4AF; border-color: rgba(244,63,94,.3);
}

/* ============================================================
   SD CORE v17 — Premium Client Portal Login
   ============================================================ */
body.portal-body.auth-screen {
  min-height: 100vh;
  background: #EAF4FF url('/assets/images/portal-login-bg.png?v=17.0') center/cover no-repeat fixed !important;
  overflow: auto !important;
}
.sd-portal-auth {
  min-height: 100vh;
  position: relative;
  display: grid;
  place-items: center;
  padding: 38px 24px;
  isolation: isolate;
}
.sd-portal-auth__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 72% 32%, rgba(0, 212, 240, .16), transparent 32%),
    radial-gradient(circle at 22% 82%, rgba(0, 96, 208, .16), transparent 34%),
    linear-gradient(90deg, rgba(234, 244, 255, .76), rgba(255, 255, 255, .42));
  backdrop-filter: blur(1px);
}
.sd-portal-login-card {
  width: min(1040px, 100%);
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(360px, 500px) 1fr;
  overflow: hidden;
  border-radius: 34px;
  background: rgba(255,255,255,.80);
  border: 1px solid rgba(255,255,255,.80);
  box-shadow: 0 30px 90px rgba(15, 23, 42, .16);
  backdrop-filter: blur(18px);
}
.sd-portal-login-card__left {
  background: rgba(255,255,255,.94);
  padding: 58px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.sd-portal-login-card__left .sa-flash { margin-bottom: 22px; }
.sd-portal-brandline {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 36px;
}
.sd-portal-brandline img {
  height: 44px;
  width: auto;
  object-fit: contain;
}
.sd-portal-brandline strong {
  display: block;
  font: 900 18px/1 Sora, Inter, sans-serif;
  color: #020B18;
  letter-spacing: -.02em;
}
.sd-portal-brandline span {
  display: block;
  margin-top: 7px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .26em;
  color: #00A8C8;
}
.sd-auth-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #ECFEFF;
  color: #047C93;
  border: 1px solid #A5F3FC;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 10px;
  font-weight: 900;
}
.sd-portal-login-card h1 {
  margin: 0 0 12px;
  color: #020B18;
  font: 900 42px/1.08 Sora, Inter, sans-serif;
  letter-spacing: -.045em;
}
.sd-auth-sub {
  margin: 0 0 30px;
  color: #64748B;
  font-size: 16px;
  line-height: 1.75;
}
.sd-auth-sub strong { color: #0060D0; }
.sd-auth-form {
  display: grid;
  gap: 17px;
}
.sd-auth-field {
  display: grid;
  gap: 8px;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}
.sd-auth-field input {
  width: 100%;
  border: 1px solid #D4E0EF;
  background: #F8FBFF;
  color: #0F172A;
  border-radius: 16px;
  padding: 15px 17px;
  font: 600 15px/1.2 Inter, sans-serif;
  outline: none;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.sd-auth-field input::placeholder { color: #94A3B8; }
.sd-auth-field input:focus {
  border-color: #00B8D8;
  background: #fff;
  box-shadow: 0 0 0 5px rgba(0, 184, 216, .14);
}
.sd-auth-field input.sd-otp-code {
  text-align: center;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: .42em;
  padding-left: calc(17px + .42em);
}
.sd-auth-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 13px 15px;
  border-radius: 14px;
  background: #F0F9FF;
  border: 1px solid #BAE6FD;
  color: #0369A1;
  font-size: 12px;
  line-height: 1.55;
  font-weight: 700;
}
.sd-auth-note svg { flex-shrink: 0; margin-top: 1px; stroke: currentColor; }
.sd-auth-btn {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 18px;
  cursor: pointer;
  color: #fff;
  font: 900 16px/1 Inter, sans-serif;
  background: linear-gradient(135deg, #14C7DA 0%, #0085F0 56%, #2454E8 100%);
  box-shadow: 0 16px 38px rgba(0, 123, 238, .30), 0 8px 18px rgba(20,199,218,.18);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.sd-auth-btn:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 22px 46px rgba(0, 123, 238, .36); }
.sd-auth-btn:active { transform: translateY(0); }
.sd-auth-btn svg { stroke: currentColor; }
.sd-auth-footer {
  text-align: center;
  color: #64748B;
  font-size: 13px;
  font-weight: 700;
  margin: 4px 0 0;
}
.sd-auth-footer a { color: #0099B4; font-weight: 900; text-decoration: none; }
.sd-auth-footer a:hover { color: #0060D0; }
.sd-portal-login-card__right {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 48px;
  background:
    radial-gradient(circle at 58% 32%, rgba(255,255,255,.76), transparent 16%),
    linear-gradient(135deg, rgba(225,245,255,.74), rgba(202,232,255,.50));
}
.sd-portal-login-card__right::before {
  content: '';
  position: absolute;
  inset: 24px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.72);
  background: rgba(255,255,255,.24);
}
.sd-portal-visual {
  position: relative;
  z-index: 1;
  width: 330px;
  height: 330px;
  display: grid;
  place-items: center;
  margin-bottom: 44px;
}
.sd-portal-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(0,96,208,.28);
}
.sd-portal-orbit--1 { width: 300px; height: 300px; animation: sdOrbit 16s linear infinite; }
.sd-portal-orbit--2 { width: 210px; height: 210px; animation: sdOrbit 12s linear reverse infinite; border-color: rgba(0,184,216,.34); }
@keyframes sdOrbit { to { transform: rotate(360deg); } }
.sd-portal-visual__center {
  position: relative;
  z-index: 2;
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  border-radius: 32px;
  color: #fff;
  background: linear-gradient(135deg, #020B18, #0060D0 72%, #00C8E0);
  box-shadow: 0 22px 58px rgba(0,96,208,.32);
}
.sd-portal-visual__card {
  position: absolute;
  z-index: 3;
  min-width: 150px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(255,255,255,.92);
  box-shadow: 0 18px 42px rgba(15,23,42,.12);
  backdrop-filter: blur(16px);
}
.sd-portal-visual__card span {
  display: block;
  color: #64748B;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.sd-portal-visual__card strong {
  display: block;
  margin-top: 5px;
  color: #020B18;
  font: 900 20px/1 Sora, Inter, sans-serif;
}
.sd-portal-visual__card div {
  height: 7px;
  margin-top: 12px;
  background: #E2E8F0;
  border-radius: 999px;
  overflow: hidden;
}
.sd-portal-visual__card i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(135deg,#00C8E0,#0060D0);
}
.sdv-card--one { left: -12px; top: 28px; }
.sdv-card--two { right: -14px; bottom: 42px; }
.sd-portal-bubble {
  position: absolute;
  z-index: 3;
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: #fff;
  color: #0060D0;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 16px 38px rgba(15,23,42,.11);
}
.sd-portal-bubble.b1 { top: 6px; right: 70px; }
.sd-portal-bubble.b2 { bottom: 8px; left: 58px; color: #0099B4; }
.sd-portal-bubble.b3 { top: 150px; right: -10px; color: #020B18; }
.sd-portal-copy {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 360px;
}
.sd-portal-copy h2 {
  color: #020B18;
  font: 900 30px/1.1 Sora, Inter, sans-serif;
  letter-spacing: -.04em;
  margin: 0 0 12px;
}
.sd-portal-copy p {
  margin: 0;
  color: #64748B;
  font-size: 15px;
  line-height: 1.75;
}
.notif-dot {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #EF4444;
  color: #fff;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  box-shadow: 0 8px 18px rgba(239,68,68,.28);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}
.notif-dot span { transform: translateY(-.5px); }
.notif-item { color: inherit; text-decoration: none; }
@media (max-width: 940px) {
  .sd-portal-login-card { grid-template-columns: 1fr; width: min(560px, 100%); min-height: auto; }
  .sd-portal-login-card__right { display: none; }
  .sd-portal-login-card__left { padding: 48px 42px; }
}
@media (max-width: 520px) {
  .sd-portal-auth { padding: 20px 14px; align-items: start; }
  .sd-portal-login-card { border-radius: 26px; }
  .sd-portal-login-card__left { padding: 36px 24px; }
  .sd-portal-brandline { gap: 13px; margin-bottom: 28px; }
  .sd-portal-brandline img { height: 36px; }
  .sd-portal-login-card h1 { font-size: 32px; }
  .sd-auth-sub { font-size: 14px; }
  .sd-auth-field input.sd-otp-code { font-size: 22px; letter-spacing: .26em; padding-left: calc(17px + .26em); }
}
