/* Classeto 6.4 — reference-inspired true black appearance, without altering tenant content.
   Loaded after all previous style layers. No external frameworks or font downloads. */
html:not([data-theme="light"]){color-scheme:dark;--bg:#080808;--panel:#111111;--panel2:#171717;--hover:#202020;--line:#2d2d2d;--ink:#f7f9fc;--muted:#a3aab5;--teal:#28d9c0;--v6-input:#101217}
html:not([data-theme="light"]) body{background:#080808;color:var(--ink)}
html:not([data-theme="light"]) .sidebar{background:#0d0d0e;border-color:#292929}
html:not([data-theme="light"]) .topbar{background:rgba(8,8,8,.94);border-color:#292929}
html:not([data-theme="light"]) .panel{background:linear-gradient(145deg,#151515,#101011);border-color:#292929;box-shadow:none}
html:not([data-theme="light"]) .auth-wrap,html:not([data-theme="light"]) .auth-form,html:not([data-theme="light"]) .auth-card{background:#080808}
html:not([data-theme="light"]) .auth-card{border-color:#282828}
html:not([data-theme="light"]) .stat-icon,html:not([data-theme="light"]) .tile-icon{background:#102f2b;color:#5eebd8}
html:not([data-theme="light"]) .field input,html:not([data-theme="light"]) .field select,html:not([data-theme="light"]) .field textarea{background:#111318;color:#f3f6fb;border-color:#36383d}
html:not([data-theme="light"]) .workspace-hero,html:not([data-theme="light"]) .admin-welcome{background:radial-gradient(ellipse at 15% 10%,#123730 0%,transparent 55%),linear-gradient(130deg,#111515,#111113);border-color:#2e5148}
html:not([data-theme="light"]) .preview-browser,html:not([data-theme="light"]) .preview-plate{border-color:#303030}
html:not([data-theme="light"]) .preview-browser-bar,html:not([data-theme="light"]) .browser-top{background:#202225;color:#c8d4dc}
html:not([data-theme="light"]) .btn-outline{background:#171a1d;border-color:#3d484f;color:#f2f6fc}
html:not([data-theme="light"]) .btn-quiet{background:#1c2023;border-color:#32383d}
html:not([data-theme="light"]) .table td{border-color:#262626}
html:not([data-theme="light"]) .nav a.active{background:#12312d;border-color:#21675c;color:#6af1d9}
html:not([data-theme="light"]) .mobile-more-sheet{background:#121212;color:#fafafa}
html[data-theme="light"]{color-scheme:light;--bg:#f6f8fb;--panel:#fff;--panel2:#eff3f7;--hover:#e9f0f4;--line:#dbe4ec;--ink:#122739;--muted:#587184;--teal:#087e73;--v6-input:#fff}
html[data-theme="light"] body{background:#f6f8fb;color:var(--ink)}
html[data-theme="light"] .panel{background:#fff;box-shadow:0 8px 30px rgba(17,42,65,.045);border-color:#e0e7ef}
html[data-theme="light"] .sidebar,html[data-theme="light"] .topbar{background:#fff;color:#183043;border-color:#e1e7ef}
html[data-theme="light"] .nav a{color:#466075} html[data-theme="light"] .nav a.active{background:#e2f6f0;color:#006b61;border:1px solid #b7e3d6}
html[data-theme="light"] .field input,html[data-theme="light"] .field select,html[data-theme="light"] .field textarea{background:#fff;color:#163246;border-color:#bdcddb}
html[data-theme="light"] .btn-outline,html[data-theme="light"] .btn-quiet{background:#f6fafb;color:#204258;border-color:#b5c8d2}
html[data-theme="light"] .stat-icon,html[data-theme="light"] .tile-icon{background:#dff6f1;color:#117f72}
html[data-theme="light"] .workspace-hero,html[data-theme="light"] .admin-welcome{background:linear-gradient(115deg,#e3f7f1,#f8fbfd);border-color:#b8dbd2}
html[data-theme="light"] .preview-browser-bar,html[data-theme="light"] .browser-top{background:#e9eff2;color:#425b70}
html[data-theme="light"] .auth-form,html[data-theme="light"] .auth-card{background:#fff;color:#183043}
html[data-theme="light"] .auth-card{border-color:#dce6ee}html[data-theme="light"] .auth-wrap{background:#f6f8fb}
/* Teacher's public site is independent of the management-panel theme. */
.public.dark{--pbg:#080808;--ptext:#f7f9fc;--pcard:#121415;--pmuted:#adb4bb;background:#080808;color:#f7f9fc}
.public.dark .public-top{background:rgba(19,21,22,.91);border:1px solid #303638;box-shadow:0 16px 55px rgba(0,0,0,.35)}
.public.dark .public-hero .hero-image{box-shadow:0 15px 65px rgba(21,212,186,.09)}
.public.dark .site-media-card,.public.dark .site-contact-card{background:#121415;border-color:#313536}
.public.dark .hero-floating-tag{background:#1c2222e9;color:#f6f8f9}
.public.dark .public .bio,.public.dark .site-empty{color:#abbac3}
.public:not(.dark){--pbg:#f5f9f8;--ptext:#172b37;--pcard:#fff;--pmuted:#6b8392}
.public:not(.dark) .public-top{background:rgba(255,255,255,.94);border:1px solid #dbe7e4}
/* UI details: never show raw domain badges in the dashboard or site studio. */
.workspace-short{font-size:.85rem;color:var(--muted);margin:8px 0 0}
.classeto-live-preview .live-preview-address{margin:auto;text-align:center}
.preview-browser-bar{justify-content:space-between}
/* Public layout and responsive polish */
.public .public-hero h1{font-weight:900;letter-spacing:-.025em}
.public .public-top{border-radius:999px}
.public .site-media-card,.public .site-contact-card{border-radius:23px}
.public .accent-btn{background:var(--accent);border-radius:999px}
.public .site-contact-cta{border-radius:25px}
@media(max-width:800px){
 .public .mobile-tabbar{border-radius:999px}
 .public.dark .mobile-tabbar{background:rgba(22,24,26,.94);border:1px solid #373d3d}
 .public:not(.dark) .mobile-tabbar{background:rgba(255,255,255,.95)}
 .classeto-live-viewport{height:340px}
}

/* Classeto v6.6: stop native blue tap/click flashes without removing keyboard focus. */
:where(a, button, [role="link"], [role="button"]) {
  -webkit-tap-highlight-color: transparent;
}
:where(a, button):focus:not(:focus-visible) {
  outline: none;
}
/* Only an actual keyboard focus should show the accessible focus ring. */
:where(a, button):focus-visible {
  outline: 2px solid var(--teal, #26d5ba);
  outline-offset: 3px;
}

