/* Colegio Esparta V2.16.1 - interfaz adaptativa. Los estilos se limitan a la nueva interfaz. */
:root {
  --ep-navy:#002D62; --ep-deep:#071f46; --ep-gold:#D4AF37; --ep-gold-light:#fff4cc;
  --ep-ink:#20324b; --ep-muted:#697b90; --ep-border:#e3e9f0; --ep-bg:#f4f7fb;
  --ep-shadow:0 8px 28px rgba(29,53,85,.045); --ep-radius:18px;
  --ep-topbar:76px; --ep-dock:0px;
}
body.ce-premium, body.ce-premium-login, body.ce-premium-password {
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  color:var(--ep-ink); background:var(--ep-bg); line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
.ce-premium *, .ce-premium-login *, .ce-premium-password * { box-sizing:border-box; }
.ce-premium [hidden], .ce-premium-login [hidden] { display:none!important; }
.ce-sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.ce-premium :focus-visible, .ce-premium-login :focus-visible, .ce-premium-password :focus-visible { outline:3px solid var(--ep-navy); outline-offset:3px; }
.ce-skip-link { position:fixed; top:8px; left:12px; z-index:20000; padding:12px 18px; background:#fff; border:2px solid var(--ep-navy); border-radius:12px; transform:translateY(-160%); }
.ce-skip-link:focus { transform:none; }
body.ce-premium { padding:0!important; overflow-x:clip; }
body.ce-premium.menu-open:after, body.ce-premium.ce-mobile-menu-open:after { content:none!important; }
.ce-premium .header-top {
  min-height:var(--ep-topbar)!important; height:var(--ep-topbar); padding:12px 28px!important;
  background:var(--ep-navy)!important; border-bottom:2px solid var(--ep-gold); box-shadow:0 3px 14px rgba(0,45,98,.1);
  display:flex!important; gap:20px!important; z-index:2100; position:sticky; top:0;
  backdrop-filter:none!important; -webkit-backdrop-filter:none!important;
}
.ce-premium .ce-logo-container { color:#fff; gap:11px; flex-shrink:0; letter-spacing:0; }
.ce-premium .ce-logo-container img { width:43px; height:43px; border-radius:12px; border:1px solid var(--ep-border); background:#fff; padding:2px; box-shadow:none; }
.ce-brand-copy { display:flex; flex-direction:column; }
.ce-brand-copy strong { font-size:16px; font-weight:750; letter-spacing:-.3px; line-height:1.25; }
.ce-brand-copy small { font-size:10px; color:var(--ep-muted); letter-spacing:1.5px; text-transform:uppercase; margin-top:3px; }
.ce-top-context { display:flex; align-items:center; gap:9px; color:var(--ep-muted); font-size:12px; margin-right:auto; padding-left:22px; border-left:1px solid var(--ep-border); }
.ce-top-context i { color:var(--ep-gold); }
.ce-premium .ce-top-actions { gap:14px; margin-left:auto; min-width:0; }
.ce-premium .ce-top-user { color:var(--ep-ink); text-align:left; gap:9px; min-width:0; }
.ce-premium .ce-top-user img, .ce-premium .ce-top-user>i { border:1px solid var(--ep-border); width:36px; height:36px; color:var(--ep-navy); background:#f0f4f9; }
.ce-premium .ce-top-user strong { font-size:12px; font-weight:650; max-width:180px; }
.ce-premium .ce-top-user small { color:var(--ep-muted); font-size:10px; font-weight:500; text-transform:none; }
.ce-top-icon, .ce-premium .ce-logout { display:inline-grid; place-items:center; min-width:40px; height:40px; border:1px solid var(--ep-border); border-radius:12px; background:#fff; color:var(--ep-navy); font-size:15px; flex-shrink:0; }
.ce-top-icon:hover, .ce-premium .ce-logout:hover { background:#f0f4f9; border-color:#ccd9e8; }
.ce-premium .ce-right-menu-toggle { display:none!important; }
.ce-premium .dashboard-container { display:grid!important; grid-template-columns:248px minmax(0,1fr); width:min(1720px,100%); gap:28px; margin:0 auto; padding:28px!important; align-items:start; }
.ce-premium .sidebar {
  position:sticky!important; top:calc(var(--ep-topbar) + 28px)!important; height:calc(100dvh - var(--ep-topbar) - 56px)!important;
  max-height:calc(100dvh - var(--ep-topbar) - 56px)!important; width:auto!important;
  padding:16px 12px!important; background:linear-gradient(180deg,var(--ep-navy),var(--ep-deep))!important; border:1px solid #163c6b;
  border-radius:var(--ep-radius)!important; box-shadow:var(--ep-shadow); overflow-y:auto;
  transform:none!important; z-index:30!important; scrollbar-color:#c9d5e3 transparent;
}
.ce-sidebar-heading { display:flex; align-items:center; justify-content:space-between; margin:0 3px 12px; }
.ce-sidebar-heading strong { font-size:12px; color:var(--ep-navy); }
.ce-sidebar-close { display:none; border:0; border-radius:10px; width:38px; height:38px; background:#f0f4f9; color:var(--ep-navy); cursor:pointer; }
.ce-nav-search { display:flex; align-items:center; gap:8px; border:1px solid var(--ep-border); border-radius:11px; background:#f6f8fb; padding:0 10px; margin-bottom:16px; }
.ce-nav-search i { color:#8c9cb0; font-size:12px; }
.ce-premium .ce-nav-search input { border:0!important; background:transparent!important; padding:9px 0!important; min-height:38px!important; font-size:12px!important; box-shadow:none; width:100%; min-width:0; }
.ce-nav-search:focus-within { border-color:var(--ep-gold); }
.ce-nav-search input:focus { outline:0; }
.ce-nav-group { margin:0 0 14px; }
.ce-nav-group>summary { display:flex; align-items:center; gap:7px; cursor:pointer; list-style:none; padding:8px 10px; color:#8290a2; font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.9px; }
.ce-nav-group>summary::-webkit-details-marker { display:none; }
.ce-nav-group>summary:after { content:"⌄"; margin-left:auto; font-size:14px; color:#91a0b2; }
.ce-nav-group[open]>summary:after { transform:rotate(180deg); }
.ce-premium .sidebar .btn-link-esparta {
  display:flex; align-items:center; gap:11px; min-height:42px; width:100%; margin:0 0 3px;
  padding:9px 11px; border:0; border-radius:10px; background:transparent; color:#596b82;
  font-size:12px; font-weight:550; line-height:1.35; box-shadow:none; overflow:visible;
}
.ce-premium .sidebar .btn-link-esparta::before { content:none; }
.ce-premium .sidebar .btn-link-esparta i { width:18px; height:24px; flex:0 0 18px; border-radius:0; background:transparent; color:#91a0b2; font-size:13px; }
.ce-premium .sidebar .btn-link-esparta:hover { background:#f3f6fa; color:var(--ep-navy); transform:none; }
.ce-premium .sidebar .btn-link-esparta.is-current { background:#edf3fa; color:var(--ep-navy); font-weight:700; }
.ce-premium .sidebar .btn-link-esparta.is-current i { color:var(--ep-gold); }
.ce-nav-empty { font-size:12px; color:var(--ep-muted); padding:10px; }
.ce-sidebar-foot { border-top:1px solid var(--ep-border); padding:16px 8px 3px; color:#92a0b1; font-size:10px; }
.ce-sidebar-foot b { display:block; color:#61748a; font-weight:600; margin-bottom:2px; }
.ce-premium .content { min-width:0; max-width:100%; padding:0!important; }
.ce-premium .ce-page-head { display:flex; justify-content:space-between; align-items:center; gap:16px; background:transparent; border:0; border-radius:0!important; box-shadow:none; padding:0 0 22px!important; margin:0; }
.ce-breadcrumb { display:flex; align-items:center; gap:8px; font-size:11px; color:#8b9aab; margin-bottom:8px; }
.ce-breadcrumb a { color:#677b92; }
.ce-premium .ce-page-head h1 { font-size:clamp(23px,2vw,30px)!important; font-weight:750; letter-spacing:-.8px; line-height:1.25; margin:0; color:var(--ep-deep); }
.ce-premium .ce-page-head p { margin:7px 0 0; color:var(--ep-muted); font-size:12px; line-height:1.45; }
.ce-page-date { display:flex; align-items:center; gap:8px; padding:9px 13px; border:1px solid var(--ep-border); background:#fff; border-radius:12px; color:#72839a; font-size:11px; white-space:nowrap; }
.ce-premium .card { border:1px solid var(--ep-border); border-radius:var(--ep-radius)!important; padding:22px!important; box-shadow:var(--ep-shadow); margin-bottom:20px; background-color:#fff; }
.ce-premium h2 { font-size:18px; letter-spacing:-.4px; line-height:1.3; font-weight:700; margin:0 0 10px; }
.ce-premium h3 { font-size:15px; letter-spacing:-.2px; line-height:1.4; font-weight:650; }
.ce-premium .card>p { font-size:13px; line-height:1.6; }
.ce-premium .grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,235px),1fr))!important; gap:16px!important; }
.ce-premium .dash-card, .ce-premium .ce-action-card { min-height:152px!important; padding:20px!important; border:1px solid var(--ep-border)!important; border-radius:16px!important; box-shadow:var(--ep-shadow); gap:13px; background:#fff; }
.ce-premium .ce-action-card:hover { transform:translateY(-3px); border-color:#b9cadf!important; box-shadow:0 12px 24px rgba(23,54,88,.085); }
.ce-premium .ce-card-icon, .ce-premium .ce-action-card>i { display:grid; place-items:center; width:38px; height:38px; border-radius:11px; background:#f0f4f9; color:var(--ep-navy); font-size:17px; }
.ce-card-copy { display:block; }
.ce-card-copy strong { display:block; color:var(--ep-navy); font-size:14px; font-weight:700; line-height:1.4; margin-bottom:5px; }
.ce-premium .ce-card-copy small { display:block; font-size:11px; line-height:1.55; color:var(--ep-muted); }
.ce-card-arrow { position:absolute; right:18px; top:24px; width:15px; height:15px; color:#9eacba; }
.ce-tools-intro-row { display:flex; align-items:center; gap:16px; justify-content:space-between; margin:4px 0 14px; }
.ce-tools-intro-row h2 { font-size:15px; margin:0; }
.ce-tools-intro-row label { display:flex; align-items:center; gap:8px; margin:0; width:min(270px,55%); border:1px solid var(--ep-border); padding:0 11px; border-radius:11px; background:#fff; }
.ce-tools-intro-row input { border:0!important; background:transparent; min-height:38px!important; padding:8px 0!important; font-size:12px!important; }
.ce-tools-intro-row input:focus { outline:0; }
.ce-tools-intro-row label:focus-within { outline:2px solid var(--ep-gold); }
.ce-premium .btn { border-radius:10px; min-height:42px; padding:10px 14px; font-size:12px!important; font-weight:650; line-height:1.3; margin:3px 3px 3px 0; gap:7px; width:auto!important; max-width:100%; white-space:normal; transition:background .16s,box-shadow .16s; }
.ce-premium .btn:hover { box-shadow:0 4px 10px rgba(23,54,88,.12); }
.ce-premium .btn.light { background:#f2f5f9; color:#4f657e; border:1px solid #e2e8f0; }
.ce-premium .btn.gold { background:var(--ep-gold); color:var(--ep-deep); }
.ce-premium .btn.green { background:#15803d; color:#fff; }
.ce-premium .btn.red, .ce-premium .btn-danger, .ce-premium .btn-red { background:#dc2626; color:#fff; }
.ce-premium .actions, .ce-premium .insc-actions, .ce-premium .pass-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.ce-premium label { color:#40556d; font-weight:600; font-size:12px; margin:12px 0 6px; }
.ce-premium input:not([type=checkbox]):not([type=radio]):not([type=hidden]), .ce-premium select, .ce-premium textarea {
  border:1px solid #dce4ed; border-radius:10px; min-height:44px; background-color:#fff;
  padding:11px 12px; color:var(--ep-ink); font-size:14px!important; max-width:100%; width:100%;
}
.ce-premium input::placeholder, .ce-premium textarea::placeholder { color:#98a6b8; }
.ce-premium input:focus, .ce-premium select:focus, .ce-premium textarea:focus { border-color:#91a9c3; box-shadow:0 0 0 3px rgba(40,77,119,.06); }
.ce-premium input[type=checkbox], .ce-premium input[type=radio] { width:18px!important; height:18px; min-height:18px!important; accent-color:var(--ep-navy); flex-shrink:0; }
.ce-premium textarea { min-height:105px; }
.ce-premium input[type=file] { font-size:12px!important; padding:9px; }
.ce-premium input[type=file]::file-selector-button { border:0; padding:7px 10px; border-radius:7px; background:#eef3f9; color:var(--ep-navy); margin-right:10px; }
.ce-premium .form-grid, .ce-premium .insc-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,245px),1fr))!important; gap:18px; }
.ce-premium .badge { font-size:10px; font-weight:650; line-height:1.35; padding:5px 9px; border-radius:7px; background:#edf3fa; color:#43688f; }
.ce-premium .badge.green { background:#e7f4ed; color:#25694e; }
.ce-premium .badge.gold { background:#faf1dd; color:#8a6429; }
.ce-premium .badge.red { background:#faebec; color:#a7444c; }
.ce-premium .flash { font-size:12px; border-radius:12px; font-weight:550; line-height:1.55; padding:13px 16px; }
.ce-premium .muted { color:var(--ep-muted); }
.ce-table-scroll { max-width:100%; overflow:auto; border:1px solid var(--ep-border); border-radius:12px; margin:12px 0; scrollbar-width:thin; scrollbar-color:#c5d1df transparent; }
.ce-premium .ce-table-scroll table { border:0; margin:0; border-collapse:collapse; min-width:100%; background:#fff; }
.ce-premium .ce-table-scroll table { display:table!important; }
.ce-premium .ce-table-scroll thead { display:table-header-group!important; }
.ce-premium .ce-table-scroll tbody { display:table-row-group!important; }
.ce-premium .ce-table-scroll tr { display:table-row!important; margin:0; padding:0; box-shadow:none; border:0; border-radius:0; }
.ce-premium .ce-table-scroll th, .ce-premium .ce-table-scroll td { display:table-cell!important; }
.ce-premium .ce-table-scroll td:before { content:none; }
.ce-table-cell-value { min-width:0; overflow-wrap:anywhere; }
.ce-premium .ce-table-scroll th { font-size:10px; font-weight:650; text-transform:none; letter-spacing:.15px; color:#6b7f95; background:#f6f8fb; padding:12px 14px; white-space:nowrap; }
.ce-premium .ce-table-scroll td { font-size:12px; padding:13px 14px; line-height:1.45; border-bottom:1px solid #edf1f6; color:#3d536d; }
.ce-premium .ce-table-scroll tr:last-child td { border-bottom:0; }
.ce-premium .ce-table-scroll tr:hover td { background:#fafbfd; }
.ce-premium .ce-table-scroll td .btn { min-height:34px; padding:7px 10px; font-size:11px!important; }
.ce-table-hint { color:#8292a6; font-size:10px; margin:0 0 6px; }
.ce-premium .ce-family-dashboard-card { border-left:3px solid var(--ep-gold)!important; gap:18px!important; }
.ce-premium .ce-family-photo { width:70px!important; height:70px!important; border:2px solid #ebdec4!important; border-radius:16px!important; box-shadow:none!important; }
.ce-premium .ce-family-info h2 { font-size:19px!important; }
.ce-premium .ce-att-mini, .ce-premium .insc-section, .ce-premium .notify-section, .ce-premium .pass-box,
.ce-premium .perm-form-section, .ce-premium .ce-tools-shell, .ce-premium .pk-device, .ce-premium .ce-org-card { border:1px solid var(--ep-border); border-radius:16px; box-shadow:var(--ep-shadow); }
.ce-premium .insc-hero, .ce-premium .calendar-hero, .ce-premium .ann-hero { border-radius:18px; box-shadow:none; background:linear-gradient(115deg,var(--ep-navy),#073b7c); color:#fff; }
.ce-premium .insc-hero h2, .ce-premium .calendar-hero h2, .ce-premium .ann-hero h2 { color:#fff; }
.ce-premium .insc-hero p, .ce-premium .calendar-hero p, .ce-premium .ann-hero p { color:#d9e6f3; }
.ce-premium .ce-tool-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,185px),1fr)); gap:12px; }
.ce-premium .ce-tool-card { border-radius:13px; border:1px solid var(--ep-border); box-shadow:none; min-width:0; }
.ce-premium .ce-compact-list { max-width:100%; overflow:hidden; border-radius:14px; }
.ce-premium .ce-compact-row { padding:13px 14px; border-color:#e9eef4; }
.ce-premium .ce-mini-actions { flex-wrap:wrap; gap:5px; }
.ce-premium .ce-mini-actions .btn { min-height:34px; padding:7px 10px; font-size:11px!important; }
.ce-premium .task-file-card, .ce-premium .taskhub-teacher, .ce-premium .inbox-task-card, .ce-premium .dash-task-card,
.ce-premium .ann-card, .ce-premium .insc-auth-card, .ce-premium .perm-row { border-radius:13px; box-shadow:none; border-color:var(--ep-border); }
.ce-premium .task-file-actions, .ce-premium .dash-task-actions, .ce-premium .ce-actions { flex-wrap:wrap; gap:7px; }
.ce-premium .insc-popup, .ce-premium .event-modal, .ce-premium .modal-card { max-height:calc(100dvh - 32px); overflow:auto; overscroll-behavior:contain; border-radius:20px; }
.ce-premium .calendar-grid-wrap { overflow:auto; max-width:100%; border-radius:15px; }
.ce-premium .calendar-grid, .ce-premium .calendar-weekdays { min-width:620px; }
.ce-premium .day { min-width:0; }
.ce-premium .scan-camera-card { border-radius:18px; position:sticky; top:calc(var(--ep-topbar) + 18px); }
.ce-premium .scan-controls .btn { min-height:44px; font-size:12px!important; padding:9px 6px; margin:0; }
.ce-premium .ce-scan-fab { padding:11px 15px; bottom:24px; right:24px; border-radius:13px; background:#f5e8cc; border:1px solid #ead8b6; color:#73521b!important; box-shadow:0 5px 16px rgba(86,62,25,.1); font-size:12px; }
.ce-premium .ce-impersonation-banner { border-left-width:3px; border-radius:12px; font-size:12px; box-shadow:none; }
.ce-premium .ce-mobile-overlay { display:block; position:fixed; inset:0; z-index:2190; background:rgba(16,38,67,.35); backdrop-filter:none; opacity:0; visibility:hidden; pointer-events:none; transition:opacity .2s; }
.ce-mobile-dock { display:none; }
.ce-interface-foot { font-size:10px; color:#8d9bad; padding:8px 0 0; margin-top:16px; }
/* Acceso: la misma identidad, sin cambiar autenticación ni passkeys. */
body.ce-premium-login { display:block; padding:0!important; background:#f4f7fb; min-height:100dvh; }
.ce-login-shell { display:grid; grid-template-columns:1.08fr 1fr; min-height:100dvh; }
.ce-login-brand { display:flex; flex-direction:column; justify-content:space-between; padding:48px clamp(32px,5vw,90px); position:relative; background:linear-gradient(145deg,var(--ep-navy),var(--ep-deep)); color:#fff; overflow:hidden; }
.ce-login-brand:after { content:""; position:absolute; width:420px; height:420px; right:-230px; bottom:-150px; border:1px solid rgba(227,197,141,.25); border-radius:50%; box-shadow:0 0 0 55px rgba(255,255,255,.022),0 0 0 110px rgba(255,255,255,.018); pointer-events:none; }
.ce-login-wordmark { display:flex; align-items:center; gap:14px; position:relative; z-index:1; }
.ce-login-wordmark img { width:52px; height:52px; background:#fff; object-fit:contain; border-radius:13px; padding:3px; }
.ce-login-wordmark strong { display:block; font-size:18px; line-height:1.3; }
.ce-login-wordmark small { font-size:10px; letter-spacing:1.8px; color:#c4d4e3; text-transform:uppercase; }
.ce-login-brand-content { position:relative; z-index:1; max-width:440px; margin:50px 0; }
.ce-login-eyebrow { display:inline-flex; align-items:center; gap:8px; color:#dec396; font-size:11px; letter-spacing:1.2px; text-transform:uppercase; margin-bottom:18px; }
.ce-login-brand-content h2 { font-size:clamp(30px,3vw,43px); font-weight:650; letter-spacing:-1.2px; line-height:1.2; margin:0 0 20px; }
.ce-login-brand-content p { font-size:14px; color:#c4d4e3; line-height:1.7; max-width:360px; }
.ce-login-features { display:flex; flex-wrap:wrap; gap:9px; margin-top:30px; }
.ce-login-features span { padding:8px 12px; border:1px solid #476580; background:rgba(255,255,255,.035); border-radius:8px; font-size:11px; color:#e0e8f0; }
.ce-login-brand-foot { font-size:11px; color:#9fb3c7; position:relative; z-index:1; }
.ce-login-main { display:flex; align-items:center; justify-content:center; padding:40px 24px; }
.ce-premium-login .login-card { width:min(440px,100%); padding:30px; text-align:left; border:1px solid var(--ep-border); border-radius:20px; box-shadow:0 12px 42px rgba(30,50,80,.04); background:#fff; }
.ce-premium-login .login-card>img { display:none; }
.ce-premium-login .login-card h1 { font-size:26px; line-height:1.3; letter-spacing:-.8px; color:var(--ep-deep); margin:0 0 8px; }
.ce-premium-login .login-card>p { font-size:12px; margin:0 0 22px; line-height:1.6; }
.ce-premium-login label, .ce-premium-password label { font-size:12px; color:#52667e; font-weight:600; margin:13px 0 6px; text-align:left; }
.ce-premium-login input, .ce-premium-password input { min-height:46px; border:1px solid #d9e2ed; border-radius:10px; padding:12px 13px; font-size:16px!important; }
.ce-premium-login .btn, .ce-premium-password .btn { border-radius:10px; min-height:46px; margin:4px 0; font-size:13px!important; font-weight:600; background:var(--ep-navy); }
.ce-premium-login .btn.green { background:#267a65; }
.ce-premium-login .btn.light { color:var(--ep-navy); background:#eef3f9; }
.ce-premium-login .pwa-install-box { margin:0 0 20px; border-radius:12px; box-shadow:none; border:1px solid #e3d9c5; background:#fcf9f2; padding:12px; }
.ce-premium-login .pwa-install-head { gap:10px; margin-bottom:6px; }
.ce-premium-login .pwa-install-head img { width:36px; height:36px; border:0; border-radius:8px; padding:0; }
.ce-premium-login .pwa-install-head b { font-size:11px; }
.ce-premium-login .pwa-install-head span { font-size:10px; }
.ce-premium-password .change-wrap { background:#f4f7fb; padding:24px; min-height:100dvh; }
.ce-premium-password .change-card { border:1px solid var(--ep-border); border-radius:20px; box-shadow:var(--ep-shadow); padding:30px; }
.ce-premium-password .change-card h1 { font-size:25px; letter-spacing:-.7px; }
.ce-premium-password .change-card p { font-size:13px; line-height:1.6; }
.ce-password-control { position:relative; }
.ce-password-control input { padding-right:48px!important; }
.ce-password-toggle { position:absolute; top:50%; right:6px; transform:translateY(-50%); display:grid; place-items:center; width:36px; height:36px; border:0; border-radius:7px; background:transparent; color:#7b8fa8; cursor:pointer; }
.ce-password-toggle:hover { color:var(--ep-navy); background:#f2f5fa; }
/* V2.16.1: identidad azul/dorado del colegio, con superficies de trabajo claras. */
.ce-premium .sidebar :focus-visible, .ce-premium .header-top :focus-visible, .ce-premium .ce-chat-head :focus-visible { outline-color:var(--ep-gold); }
.ce-premium .header-top .ce-brand-copy strong { color:#fff; }
.ce-premium .header-top .ce-brand-copy small { color:#d5e1f0; }
.ce-premium .ce-top-context { color:#d5e1f0; border-left-color:rgba(212,175,55,.38); }
.ce-premium .header-top .ce-top-user { color:#fff; }
.ce-premium .header-top .ce-top-user small { color:#d5e1f0; }
.ce-premium .header-top .ce-top-user img, .ce-premium .header-top .ce-top-user>i { border-color:var(--ep-gold); }
.ce-premium .header-top .ce-top-icon { background:var(--ep-gold); border-color:var(--ep-gold); color:var(--ep-deep); }
.ce-premium .header-top .ce-logout { background:transparent; border-color:rgba(255,255,255,.3); color:var(--ep-gold); }
.ce-premium .header-top .ce-logout:hover { background:rgba(255,255,255,.08); }
.ce-premium .header-top .ce-right-menu-toggle { background:var(--ep-gold)!important; border-color:var(--ep-gold)!important; }
.ce-premium .header-top .ce-right-menu-toggle span { background:var(--ep-deep)!important; }
.ce-premium .sidebar .ce-sidebar-heading strong { color:#efd77c; }
.ce-premium .sidebar .ce-sidebar-close { background:rgba(255,255,255,.12); color:#fff; }
.ce-premium .sidebar .ce-nav-search { margin:0 0 16px; background:rgba(255,255,255,.08); border-color:rgba(255,255,255,.22); }
.ce-premium .sidebar .ce-nav-search i { color:var(--ep-gold); }
.ce-premium .sidebar .ce-nav-search input { color:#fff!important; }
.ce-premium .sidebar .ce-nav-search input::placeholder { color:#c2d2e6; }
.ce-premium .sidebar .ce-nav-group>summary { color:#ddca89; }
.ce-premium .sidebar .ce-nav-group>summary:after { color:#ddca89; }
.ce-premium .sidebar .btn-link-esparta { color:#e4edf7; min-height:44px; }
.ce-premium .sidebar .btn-link-esparta i { color:#c7ae58; }
.ce-premium .sidebar .btn-link-esparta:hover { background:rgba(255,255,255,.08); color:#fff; }
.ce-premium .sidebar .btn-link-esparta.is-current { background:rgba(212,175,55,.15); color:#ffeaa0; box-shadow:inset 3px 0 var(--ep-gold); }
.ce-premium .sidebar .btn-link-esparta.is-current i { color:var(--ep-gold); }
.ce-premium .sidebar .ce-sidebar-foot { border-color:rgba(255,255,255,.18); color:#c2d2e6; }
.ce-premium .sidebar .ce-sidebar-foot b { color:#fff; }
.ce-premium .sidebar .ce-nav-empty { color:#d5e1f0; }
.ce-premium .ce-action-card { border-left:3px solid var(--ep-gold)!important; }
.ce-premium .ce-card-icon { background:#fff4cc; color:var(--ep-navy); }
.ce-premium .badge.gold { background:#fff4cc; color:#70510a; }
.ce-premium .ce-scan-fab { background:var(--ep-gold); border-color:var(--ep-gold); color:var(--ep-deep)!important; }
.ce-premium .btn { cursor:pointer; touch-action:manipulation; }
.ce-premium .btn.danger { background:#dc2626; color:#fff; }
.ce-premium .btn i { pointer-events:none; flex-shrink:0; }
.ce-premium .ce-card-actions, .ce-premium .ce-mini-actions { min-width:0; }
.ce-premium .ce-card-actions .btn { display:flex; width:100%!important; min-width:0; min-height:42px; justify-content:center; padding:10px 9px; overflow-wrap:anywhere; }
.ce-premium:not(.ce-mobile-menu-open) .ce-mobile-overlay { display:none; }
.ce-premium .ce-directory-shell { border-radius:18px; border-color:var(--ep-border); box-shadow:var(--ep-shadow); }
.ce-premium .ce-person-card { border-radius:14px; }
.ce-premium .ce-local-search input { padding-left:38px; }
.ce-premium .ce-meta-box label { margin:0; }
@media (min-width:1800px) { .ce-premium .dashboard-container { gap:36px; } }
@media (max-width:1180px) {
  .ce-premium .header-top { padding:11px 20px!important; }
  .ce-top-context { display:none; }
  .ce-premium .dashboard-container { display:block!important; padding:24px!important; }
  .ce-premium .sidebar { position:fixed!important; top:0!important; left:0; width:min(350px,88vw)!important; max-width:88vw!important; height:100dvh!important; max-height:100dvh!important; padding:calc(18px + env(safe-area-inset-top,0px)) 16px 28px!important; border-radius:0 20px 20px 0!important; transform:translateX(-110%)!important; z-index:2200!important; transition:transform .2s; }
  .ce-premium.menu-open .sidebar, .ce-premium.ce-mobile-menu-open .sidebar, .ce-premium .sidebar.open { transform:translateX(0)!important; }
  .ce-premium.ce-mobile-menu-open .ce-mobile-overlay { opacity:1; visibility:visible; pointer-events:auto; }
  .ce-premium.ce-mobile-menu-open { overflow:hidden; }
  .ce-sidebar-close { display:grid; place-items:center; }
  .ce-premium .ce-right-menu-toggle { display:flex!important; visibility:visible!important; pointer-events:auto!important; align-items:center; justify-content:center; flex-direction:column; gap:4px; padding:0; width:40px!important; height:40px!important; min-width:40px!important; min-height:40px!important; flex:0 0 40px!important; background:#f1f4f9!important; border:1px solid var(--ep-border)!important; border-radius:11px!important; box-shadow:none!important; margin:0!important; color:var(--ep-navy)!important; }
  .ce-premium .ce-right-menu-toggle span { display:block; background:var(--ep-navy)!important; width:18px!important; height:2px!important; }
  .ce-premium .scan-camera-card { position:relative; top:auto; }
}
@media (max-width:900px) {
  .ce-premium .btn { min-height:44px!important; }
  .ce-premium .ce-card-actions, .ce-premium .ce-card-actions.three, .ce-premium .ce-account-actions { grid-template-columns:repeat(2,minmax(0,1fr))!important; gap:8px; }
  .ce-premium .ce-card-actions .btn, .ce-premium .ce-mini-actions .btn { min-height:46px!important; width:100%!important; font-size:13px!important; margin:0!important; padding:11px 8px; }
  .ce-premium .ce-card-actions .btn:last-child:nth-child(odd) { grid-column:1 / -1; }
  .ce-premium .ce-person-card:hover, .ce-premium .ce-tool-card:hover, .ce-premium .ce-action-card:hover { transform:none; }
  .ce-premium .ce-mini-actions .btn { flex:0 1 auto; }
  .ce-premium .ce-users-toolbar { align-items:stretch; }
  .ce-premium .scan-app-shell, .ce-premium .notify-grid, .ce-premium .pk-grid { grid-template-columns:1fr!important; }
  .ce-premium .grid { grid-template-columns:repeat(2,minmax(0,1fr))!important; }
  .ce-login-shell { grid-template-columns:.85fr 1fr; }
  .ce-login-brand { padding:32px; }
  .ce-login-brand-content h2 { font-size:30px; }
}
@media (max-width:719px) {
  :root { --ep-topbar:64px; --ep-dock:66px; }
  .ce-premium .header-top { padding:9px 14px!important; gap:10px!important; }
  .ce-premium .ce-brand-copy strong { font-size:14px!important; }
  .ce-brand-copy small { font-size:8px; letter-spacing:1.1px; }
  .ce-premium .ce-logo-container img { width:36px; height:36px; border-radius:10px; }
  .ce-premium .ce-top-user>div, .ce-header-chat-link { display:none; }
  .ce-premium .ce-top-actions { gap:8px; }
  .ce-premium .ce-top-user img, .ce-premium .ce-top-user>i { width:30px; height:30px; }
  .ce-premium .ce-logout { width:36px; min-width:36px; height:36px; font-size:13px; }
  .ce-premium .dashboard-container { padding:20px 14px calc(90px + env(safe-area-inset-bottom,0px))!important; }
  .ce-premium .ce-page-head { align-items:flex-start; padding-bottom:18px!important; }
  .ce-premium .ce-page-head h1 { font-size:24px!important; }
  .ce-page-date { display:none; }
  .ce-premium .card { padding:17px!important; border-radius:15px!important; margin-bottom:15px; }
  .ce-premium .form-grid, .ce-premium .insc-grid { grid-template-columns:1fr!important; gap:14px; }
  .ce-premium input:not([type=checkbox]):not([type=radio]):not([type=hidden]), .ce-premium select, .ce-premium textarea { font-size:16px!important; }
  .ce-premium .dash-card, .ce-premium .ce-action-card { padding:16px!important; border-radius:14px!important; min-height:145px!important; }
  .ce-card-copy strong { font-size:13px; }
  .ce-card-copy small { font-size:11px; }
  .ce-card-arrow { right:12px; top:20px; width:12px; height:12px; }
  .ce-tools-intro-row { flex-wrap:wrap; gap:10px; }
  .ce-tools-intro-row label { width:100%; }
  .ce-premium .ce-tool-grid { grid-template-columns:repeat(2,minmax(0,1fr))!important; gap:9px; }
  .ce-premium .ce-tool-card { min-height:112px; padding:12px; }
  .ce-premium .ce-family-photo { width:56px!important; height:56px!important; border-radius:13px!important; }
  .ce-premium .ce-family-info h2 { font-size:16px!important; }
  .ce-premium .actions .btn, .ce-premium .insc-actions .btn, .ce-premium .pass-actions .btn { flex:1 1 auto; }
  .ce-premium .ce-scan-fab { display:none; }
  .ce-premium .ce-scan-fab span { display:none; }
  .ce-mobile-dock { display:flex; justify-content:space-around; align-items:center; position:fixed; bottom:0; left:0; right:0; height:calc(66px + env(safe-area-inset-bottom,0px)); padding:7px 8px calc(7px + env(safe-area-inset-bottom,0px)); background:rgba(255,255,255,.97); border-top:1px solid var(--ep-border); z-index:2080; box-shadow:0 -4px 16px rgba(20,45,75,.035); }
  .ce-mobile-dock a, .ce-mobile-dock button { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; min-width:50px; min-height:46px; color:#7b8ba0; background:none; border:0; font:inherit; font-size:9px!important; padding:2px 7px; cursor:pointer; border-radius:10px; }
  .ce-mobile-dock i { font-size:16px; }
  .ce-mobile-dock .is-current { color:var(--ep-navy); background:#edf3fa; }
  .ce-premium .ce-mobile-dock { background:var(--ep-navy); border-top-color:rgba(212,175,55,.7); }
  .ce-premium .ce-mobile-dock a, .ce-premium .ce-mobile-dock button { color:#d5e1f0; font-size:10px!important; }
  .ce-premium .ce-mobile-dock .is-current { color:#ffeaa0; background:rgba(212,175,55,.14); }
  .ce-login-shell { display:block; }
  .ce-login-brand { padding:22px 24px; }
  .ce-login-brand-content { margin:23px 0 0; }
  .ce-login-brand-content h2 { font-size:26px; margin-bottom:10px; }
  .ce-login-brand-content p { font-size:12px; margin:0; }
  .ce-login-features, .ce-login-brand-foot { display:none; }
  .ce-login-main { padding:22px 18px 30px; }
  .ce-premium-login .login-card { padding:24px; border-radius:16px; }
  .ce-premium-password .change-card { padding:23px; }
}
@media (max-width:639px) {
  .ce-premium .ce-table-scroll table:not(.ce-responsive-cards) { display:table!important; min-width:640px; }
  .ce-premium .ce-table-scroll table:not(.ce-responsive-cards) thead { display:table-header-group!important; }
  .ce-premium .ce-table-scroll table:not(.ce-responsive-cards) tbody { display:table-row-group!important; }
  .ce-premium .ce-table-scroll table:not(.ce-responsive-cards) tr { display:table-row!important; }
  .ce-premium .ce-table-scroll table:not(.ce-responsive-cards) th, .ce-premium .ce-table-scroll table:not(.ce-responsive-cards) td { display:table-cell!important; padding:12px!important; }
  .ce-premium .ce-table-scroll table.ce-responsive-cards { display:block!important; width:100%; min-width:0; }
  .ce-premium .ce-table-scroll .ce-responsive-cards tbody { display:block!important; }
  .ce-premium .ce-table-scroll .ce-responsive-cards tr { display:grid!important; grid-template-columns:1fr; padding:12px; border-bottom:1px solid var(--ep-border); margin:0!important; border-radius:0; background:#fff; }
  .ce-premium .ce-table-scroll .ce-responsive-cards tr.ce-table-heading { display:none!important; }
  .ce-premium .ce-table-scroll .ce-responsive-cards td { display:grid!important; grid-template-columns:95px minmax(0,1fr); align-items:start; gap:8px; padding:7px 0!important; border:0; min-width:0; }
  .ce-premium .ce-table-scroll .ce-responsive-cards td:before { content:attr(data-label); color:#697b90; font-size:10px; font-weight:600; text-transform:none; margin:0; }
  .ce-premium .ce-table-scroll .ce-responsive-cards td .ce-table-cell-value { grid-column:2; }
  .ce-premium .ce-table-scroll .ce-responsive-cards th { display:none!important; }
  .ce-premium .ce-table-scroll .ce-responsive-cards td .btn { width:auto!important; justify-self:start; }
}
@media (max-width:560px) {
  .ce-premium .ce-tools-shell .ce-tool-grid { grid-template-columns:1fr!important; }
}
@media (max-width:380px) {
  .ce-premium .ce-top-user { display:none; }
  .ce-premium .grid { grid-template-columns:1fr!important; }
  .ce-premium .dash-card, .ce-premium .ce-action-card { min-height:130px!important; }
  .ce-premium .ce-tool-grid { grid-template-columns:1fr!important; }
}
@media (prefers-reduced-motion:reduce) {
  .ce-premium *, .ce-premium-login * { scroll-behavior:auto!important; animation:none!important; transition:none!important; }
}
@media print {
  body.ce-premium { background:#fff!important; padding:0!important; }
  .ce-premium .header-top, .ce-premium .sidebar, .ce-premium .ce-page-head, .ce-mobile-dock, .ce-mobile-overlay,
  .ce-tools-intro-row, .ce-interface-foot, .ce-premium .ce-scan-fab, .ce-skip-link, .ce-table-hint { display:none!important; }
  .ce-premium .dashboard-container { display:block!important; padding:0!important; width:100%!important; }
  .ce-premium .content { width:100%!important; padding:0!important; }
  .ce-premium .card { box-shadow:none; border-radius:0!important; padding:10px!important; }
  .ce-table-scroll { overflow:visible; border:0; }
  .ce-premium .ce-table-scroll table { display:table!important; }
  .ce-premium .ce-table-scroll thead { display:table-header-group!important; }
  .ce-premium .ce-table-scroll tbody, .ce-premium .ce-table-scroll .ce-responsive-cards tbody { display:table-row-group!important; }
  .ce-premium .ce-table-scroll tr, .ce-premium .ce-table-scroll .ce-responsive-cards tr { display:table-row!important; }
  .ce-premium .ce-table-scroll .ce-responsive-cards tr.ce-table-heading { display:table-row!important; }
  .ce-premium .ce-table-scroll td, .ce-premium .ce-table-scroll th, .ce-premium .ce-table-scroll .ce-responsive-cards td, .ce-premium .ce-table-scroll .ce-responsive-cards th { display:table-cell!important; }
  .ce-premium .ce-table-scroll td:before { content:none!important; }
}
