/**
 * LabPulse Theme Layouts (SOE Phase 2)
 * -----------------------------------------------------------------
 * themes.css gives each theme its materials; this file gives each one its own STRUCTURE, on the same HTML, so permissions and behaviour
 * are shared and only the presentation differs. From 993 px wide:
 *   DYCI Classic   a floating navy command rail with a gold edge, a wide hero, layered cards
 *   Midnight Pro   a slim icon rail that opens on hover, a glass header, dense console panels
 *   Aurora         a floating glass panel and floating pill header, soft rounded compositions
 *   Crystal Light  no sidebar: a clean top navigation bar over a spacious single column
 *   Emerald Tech   a compact tree navigation, flush panels on a measured grid, no gaps wasted
 *   Obsidian       the navigation on the RIGHT, a large serif masthead, sharp gallery composition
 * Below 993 px every theme uses the normal off-canvas menu, because a phone has room for one layout.
 * Dashboards are a 12-column grid of named widgets ([data-w]): each theme places the same widgets its own way.
 * -----------------------------------------------------------------
 */

/* ---------------------------------------------------------------- shared structure */
:root { --lp-display-font: var(--font-sans); --lp-dash-gap: 20px; --lp-icon-stroke: 1.75; --lp-icon-chip: var(--primary-50); --lp-hero-bg: var(--lp-card-bg); --lp-hero-ink: var(--text-primary); --lp-hero-soft: var(--text-secondary); --lp-hero-accent: var(--accent-text); --lp-hero-radius: var(--lp-card-radius); --lp-monitor-bg: transparent; --lp-monitor-style: area; --lp-monitor-h: 200px; }
.icon { stroke-width: var(--lp-icon-stroke); }
.page-title, .lp-hero h2, .section-header h2 { font-family: var(--lp-display-font); }

.lp-dash { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--lp-dash-gap); align-items: start; }
.lp-dash > * { grid-column: 1 / -1; min-width: 0; margin: 0; }
.lp-dash > .lp-dissolve { display: contents; }
/* a card inside a dissolved section is a grid item itself: it takes the full row unless a theme places it (SOE Phase 2.2 fix: unplaced cards collapsed to one column) */
.lp-dash > .lp-dissolve > * { grid-column: 1 / -1; min-width: 0; }
.lp-dash [data-w] { min-width: 0; }

.lp-hero { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-6); padding: var(--space-6); color: var(--lp-hero-ink); background: var(--lp-hero-bg); border: var(--lp-card-border); border-radius: var(--lp-hero-radius); box-shadow: var(--lp-card-shadow), var(--lp-card-highlight); overflow: hidden; }
.lp-hero h2 { margin: var(--space-2) 0 var(--space-1); font-size: 1.7rem; line-height: 1.15; color: inherit; }
.lp-hero-lead { margin: 0 0 var(--space-5); color: var(--lp-hero-soft); }
.lp-hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lp-hero-accent); }
.lp-hero-beat { width: 8px; height: 8px; border-radius: 50%; background: var(--lp-live); }
.lp-hero-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: var(--space-3); margin: 0; }
.lp-hero-facts dt { font-size: 0.72rem; color: var(--lp-hero-soft); }
.lp-hero-facts dd { margin: 2px 0 0; font-size: 1.45rem; font-weight: 700; font-variant-numeric: tabular-nums; font-family: var(--lp-stat-font); }
.lp-hero-facts dd small { font-size: 0.8rem; font-weight: 500; color: var(--lp-hero-soft); }
.lp-hero-facts dd.lp-hero-time { font-size: 0.82rem; font-weight: 600; }
.lp-hero-monitor { min-width: 0; display: grid; gap: var(--space-2); align-content: start; }
.lp-monitor-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); font-size: 0.78rem; color: var(--lp-hero-soft); }
.lp-monitor-head strong { font-size: 1.3rem; color: inherit; font-family: var(--lp-stat-font); color: var(--lp-hero-ink); font-variant-numeric: tabular-nums; }
.lp-monitor { position: relative; height: var(--lp-monitor-h); background: var(--lp-monitor-bg); border-radius: calc(var(--lp-card-radius) - 4px); overflow: hidden; }
.lp-monitor canvas { display: block; width: 100%; height: 100%; }

.lp-ops { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--lp-dash-gap); }
.lp-op { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); color: var(--text-primary); text-decoration: none; background: var(--lp-card-bg); border: var(--lp-card-border); border-radius: var(--lp-card-radius); box-shadow: var(--lp-card-shadow), var(--lp-card-highlight); }
a.lp-op:hover { text-decoration: none; border-color: var(--lp-btn-ink); }
.lp-op > .icon { flex: none; width: 36px; height: 36px; padding: 8px; color: var(--accent-text); background: var(--lp-icon-chip); border-radius: var(--lp-link-radius); }
.lp-op-text { display: grid; min-width: 0; }
.lp-op-text strong { font-size: 1.25rem; line-height: 1.1; font-family: var(--lp-stat-font); font-variant-numeric: tabular-nums; }
.lp-op-text small { font-size: 0.74rem; color: var(--text-secondary); }
.lp-list { list-style: none; margin: 0; padding: 0 var(--space-4) var(--space-3); display: grid; }
.lp-list li { display: grid; gap: 1px; padding: var(--space-2) 0; border-top: 1px solid var(--border-subtle); min-width: 0; overflow-wrap: anywhere; }
.lp-list li:first-child { border-top: 0; }
.lp-list strong { font-size: 0.88rem; font-weight: 600; }
.lp-list small { font-size: 0.76rem; color: var(--text-secondary); }
.lp-list-empty { font-size: 0.86rem; color: var(--text-secondary); }

/* where each widget goes: DYCI Classic's layered command-centre composition */
@media (min-width: 1100px) {
    .lp-dash-admin [data-w="status"], .lp-dash-admin [data-w="now"] { grid-column: span 12; }
    .lp-dash-admin [data-w="donut"] { grid-column: span 4; }
    .lp-dash-admin [data-w="trend"] { grid-column: span 8; }
    .lp-dash-admin [data-w="labs"] { grid-column: span 7; }
    .lp-dash-admin [data-w="util"] { grid-column: span 5; }
    .lp-dash-admin [data-w="sessions"], .lp-dash-admin [data-w="activity"] { grid-column: span 6; }
    .lp-dash-teacher [data-w="sessions"], .lp-dash-teacher [data-w="activity"] { grid-column: span 6; }
    /* SOE Phase 2.4 #1A: session + four tiles (2 x 2), three short lists, recent sessions beside announcements */
    .lp-dash-student [data-w="hero"] { grid-column: span 7; }
    .lp-dash-student [data-w="ops"] { grid-column: span 5; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lp-dash-student [data-w="classes"], .lp-dash-student [data-w="materials"], .lp-dash-student [data-w="attendance"] { grid-column: span 4; }
    .lp-dash-student [data-w="history"] { grid-column: span 8; }
    .lp-dash-student [data-w="news"] { grid-column: span 4; }
}
@media (max-width: 760px) { .lp-hero { grid-template-columns: minmax(0, 1fr); padding: var(--space-4); } .lp-dash { gap: var(--space-3); } }

/* ---------------------------------------------------------------- DYCI Classic: a navy command rail on a bright page */
:root[data-lp-theme="dyci-classic"] {
    --lp-display-font: Georgia, "Times New Roman", serif;
    --lp-hero-bg: radial-gradient(760px 340px at 92% -20%, rgba(226, 174, 69, 0.26), transparent 62%), linear-gradient(135deg, #1e3a70 0%, #142a54 58%, #0d1d3d 100%);
    --lp-hero-ink: #ffffff; --lp-hero-soft: rgba(255, 255, 255, 0.76); --lp-hero-accent: #edc873; --lp-hero-radius: 20px; --lp-monitor-bg: rgba(255, 255, 255, 0.05);
    --lp-monitor-style: area; --lp-monitor-h: 214px; --lp-card-radius: 16px;
}
@media (min-width: 993px) {
    :root[data-lp-theme="dyci-classic"] { --sidebar-bg: linear-gradient(185deg, #1e3a70 0%, #122648 62%, #0d1d3d 100%); --lp-sidebar-bg: var(--sidebar-bg); --sidebar-border: transparent; --sidebar-divider: rgba(255, 255, 255, 0.12); --sidebar-text: #dce5f5; --sidebar-text-muted: #a9b9d6; --sidebar-icon: #b6c5e0; --sidebar-hover-bg: rgba(255, 255, 255, 0.09); --sidebar-hover-text: #ffffff; --sidebar-active-bg: linear-gradient(90deg, rgba(226, 174, 69, 0.3), rgba(226, 174, 69, 0.08)); --sidebar-active-text: #ffffff; --sidebar-active-icon: #edc873; --sidebar-tag-bg: rgba(255, 255, 255, 0.12); --sidebar-tag-text: #dce5f5; }
    :root[data-lp-theme="dyci-classic"] .sidebar { inset: 12px auto 12px 12px; border: 0; border-radius: 20px; box-shadow: 0 24px 50px -22px rgba(13, 29, 61, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.1); }
    :root[data-lp-theme="dyci-classic"] .sidebar::after { content: ""; position: absolute; inset: 18px auto 18px 0; width: 3px; border-radius: 3px; background: linear-gradient(180deg, transparent, #e2ae45, transparent); pointer-events: none; }
    :root[data-lp-theme="dyci-classic"] .sidebar-brand .brand-name, :root[data-lp-theme="dyci-classic"] .sidebar-brand .brand { color: #ffffff; }
    :root[data-lp-theme="dyci-classic"] .app-main { margin-left: calc(var(--sidebar-width) + 24px); }
    :root[data-lp-theme="dyci-classic"] .app-shell[data-sidebar-collapsed="true"] .app-main { margin-left: calc(var(--sidebar-width-collapsed) + 24px); }
    :root[data-lp-theme="dyci-classic"] .topbar { margin: 12px 12px 0 0; border: 1px solid var(--border-subtle); border-radius: 16px; top: 12px; box-shadow: 0 10px 26px -18px rgba(13, 29, 61, 0.5); }
}
:root[data-lp-theme="dyci-classic"][data-theme="dark"] { --lp-hero-bg: radial-gradient(760px 340px at 92% -20%, rgba(226, 174, 69, 0.2), transparent 62%), linear-gradient(135deg, #17294e, #0d1730); }

/* ---------------------------------------------------------------- Midnight Pro: a console. Icon rail, dense panels, monitor across the top */
:root[data-lp-theme="midnight"] { --lp-dash-gap: 12px; --lp-monitor-style: scope; --lp-monitor-h: 170px; --lp-icon-stroke: 1.6; }
:root[data-lp-theme="midnight"]:where(:not([data-theme="light"])) { --lp-monitor-bg: #0a101c; --lp-hero-bg: linear-gradient(180deg, rgba(18, 27, 46, 0.92), rgba(12, 20, 36, 0.92)); }
:root[data-lp-theme="midnight"] .lp-hero { grid-template-columns: minmax(0, 1fr); padding: var(--space-4); }
:root[data-lp-theme="midnight"] .lp-hero-copy { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-5); }
:root[data-lp-theme="midnight"] .lp-hero h2 { margin: 0; font-size: 1.05rem; letter-spacing: 0.02em; }
:root[data-lp-theme="midnight"] .lp-hero-lead { display: none; }
:root[data-lp-theme="midnight"] .lp-hero-facts { grid-auto-flow: column; grid-template-columns: none; gap: var(--space-5); }
:root[data-lp-theme="midnight"] .lp-op { padding: var(--space-2) var(--space-3); }
:root[data-lp-theme="midnight"]:where(:not([data-theme="light"])) .lp-op { border-left: 2px solid #38bdf8; }
:root[data-lp-theme="midnight"] .stat-card { padding: var(--space-3); }
:root[data-lp-theme="midnight"]:where(:not([data-theme="light"])) .lp-monitor { border: 1px solid rgba(125, 211, 252, 0.14); }
@media (min-width: 1100px) {
    :root[data-lp-theme="midnight"] .lp-dash-admin [data-w="status"] { grid-column: span 12; order: -1; }
    :root[data-lp-theme="midnight"] .lp-dash-admin [data-w="donut"] { grid-column: span 3; }
    :root[data-lp-theme="midnight"] .lp-dash-admin [data-w="util"] { grid-column: span 4; }
    :root[data-lp-theme="midnight"] .lp-dash-admin [data-w="trend"] { grid-column: span 5; order: 2; }
    :root[data-lp-theme="midnight"] .lp-dash-admin [data-w="labs"] { grid-column: span 12; order: 3; }
    :root[data-lp-theme="midnight"] .lp-dash-admin [data-w="sessions"], :root[data-lp-theme="midnight"] .lp-dash-admin [data-w="activity"], :root[data-lp-theme="midnight"] .lp-dash-admin [data-w="offline"] { grid-column: span 4; order: 4; }
}
@media (min-width: 993px) {
    :root[data-lp-theme="midnight"] { --sidebar-width: 72px; --sidebar-width-collapsed: 72px; }
    :root[data-lp-theme="midnight"] .sidebar { z-index: 45; transition: width 180ms var(--lp-ease), box-shadow 180ms ease; }
    :root[data-lp-theme="midnight"] .sidebar-collapse-btn, :root[data-lp-theme="midnight"] .topbar-menu-btn { display: none; }
    :root[data-lp-theme="midnight"] .sidebar:not(:hover):not(:focus-within) .brand-text, :root[data-lp-theme="midnight"] .sidebar:not(:hover):not(:focus-within) .sidebar-heading, :root[data-lp-theme="midnight"] .sidebar:not(:hover):not(:focus-within) .sidebar-label, :root[data-lp-theme="midnight"] .sidebar:not(:hover):not(:focus-within) .sidebar-tag, :root[data-lp-theme="midnight"] .sidebar:not(:hover):not(:focus-within) .sidebar-version { display: none; }
    :root[data-lp-theme="midnight"] .sidebar:not(:hover):not(:focus-within) .sidebar-link { justify-content: center; }
    :root[data-lp-theme="midnight"] .sidebar:hover, :root[data-lp-theme="midnight"] .sidebar:focus-within { width: 264px; }
:root[data-lp-theme="midnight"]:where(:not([data-theme="light"])) .sidebar:hover, :root[data-lp-theme="midnight"]:where(:not([data-theme="light"])) .sidebar:focus-within { box-shadow: 24px 0 50px -20px rgba(0, 0, 0, 0.8); }
    :root[data-lp-theme="midnight"] .app-main { margin-left: 72px; }
}

/* ---------------------------------------------------------------- Aurora: floating glass, generous rounding, centred hero */
:root[data-lp-theme="aurora"] { --lp-dash-gap: 22px; --lp-monitor-style: wave; --lp-hero-radius: 30px; --lp-monitor-h: 190px; --lp-icon-stroke: 1.5; }
:root[data-lp-theme="aurora"]:where(:not([data-theme="light"])) { --lp-hero-bg: linear-gradient(135deg, rgba(109, 79, 216, 0.34), rgba(38, 31, 84, 0.72) 60%, rgba(192, 132, 252, 0.2)); --lp-icon-chip: rgba(167, 139, 250, 0.16); --lp-monitor-bg: rgba(255, 255, 255, 0.025); }
:root[data-lp-theme="aurora"] .lp-hero { grid-template-columns: minmax(0, 1fr); text-align: center; padding: var(--space-8) var(--space-8) var(--space-6); }
:root[data-lp-theme="aurora"] .lp-hero-facts { max-width: 620px; margin: 0 auto; }
:root[data-lp-theme="aurora"] .lp-hero h2 { font-size: 2rem; }
:root[data-lp-theme="aurora"] .lp-op { border-radius: 999px; padding: var(--space-2) var(--space-5) var(--space-2) var(--space-2); }
:root[data-lp-theme="aurora"] .lp-op > .icon { border-radius: 50%; }
@media (min-width: 1100px) {
    :root[data-lp-theme="aurora"] .lp-dash-admin [data-w="donut"], :root[data-lp-theme="aurora"] .lp-dash-admin [data-w="util"] { grid-column: span 6; }
    :root[data-lp-theme="aurora"] .lp-dash-admin [data-w="trend"] { grid-column: span 12; order: 5; }
    :root[data-lp-theme="aurora"] .lp-dash-admin [data-w="labs"] { grid-column: span 12; order: 4; }
}
@media (min-width: 993px) {
    :root[data-lp-theme="aurora"] .sidebar { inset: 16px auto 16px 16px; border-radius: 26px; }
:root[data-lp-theme="aurora"]:where(:not([data-theme="light"])) .sidebar { border: 1px solid rgba(167, 139, 250, 0.2); box-shadow: 0 24px 60px -24px rgba(76, 44, 190, 0.7); }
    :root[data-lp-theme="aurora"] .app-main { margin-left: calc(var(--sidebar-width) + 32px); }
    :root[data-lp-theme="aurora"] .app-shell[data-sidebar-collapsed="true"] .app-main { margin-left: calc(var(--sidebar-width-collapsed) + 32px); }
    :root[data-lp-theme="aurora"] .topbar { top: 16px; margin: 16px 20px 0 0; padding: 0 var(--space-5); }
:root[data-lp-theme="aurora"]:where(:not([data-theme="light"])) .topbar { border: 1px solid rgba(167, 139, 250, 0.2); border-radius: 999px; }
}

/* ---------------------------------------------------------------- Emerald Tech: a flush instrument panel on a strict grid */
:root[data-lp-theme="emerald"] { --lp-dash-gap: 8px; --lp-monitor-style: step; --lp-monitor-h: 176px; --lp-icon-stroke: 2; --lp-display-font: var(--font-mono); }
:root[data-lp-theme="emerald"]:where(:not([data-theme="light"])) { --lp-monitor-bg: #0b100e; --lp-icon-chip: rgba(52, 211, 153, 0.1); --lp-hero-bg: #151d1a; }
:root[data-lp-theme="emerald"] .icon { stroke-linecap: square; stroke-linejoin: miter; }
:root[data-lp-theme="emerald"] .page-title, :root[data-lp-theme="emerald"] .lp-hero h2 { font-size: 1rem; letter-spacing: 0.03em; text-transform: uppercase; }
:root[data-lp-theme="emerald"] .lp-hero { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); padding: 0; gap: 0; }
:root[data-lp-theme="emerald"]:where(:not([data-theme="light"])) .lp-hero { border-left: 3px solid #34d399; }
:root[data-lp-theme="emerald"] .lp-hero-copy { order: 2; padding: var(--space-4); border-left: 1px solid var(--border-subtle); }
:root[data-lp-theme="emerald"] .lp-hero-monitor { padding: var(--space-3); }
:root[data-lp-theme="emerald"] .lp-hero-facts { grid-template-columns: 1fr; }
:root[data-lp-theme="emerald"] .lp-hero-facts div { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px dashed var(--border-subtle); padding-top: 4px; }
:root[data-lp-theme="emerald"] .lp-hero-facts dd { font-size: 1.05rem; margin: 0; }
:root[data-lp-theme="emerald"] .lp-hero-lead { display: none; }
:root[data-lp-theme="emerald"]:where(:not([data-theme="light"])) .lp-monitor { border: 1px solid #27332e; }
:root[data-lp-theme="emerald"] .lp-ops { gap: 8px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
:root[data-lp-theme="emerald"] .lp-op { flex-direction: row-reverse; justify-content: space-between; padding: var(--space-2) var(--space-3); }
:root[data-lp-theme="emerald"] .lp-op > .icon { width: 26px; height: 26px; padding: 5px; border-radius: 0; }
@media (min-width: 1100px) {
    :root[data-lp-theme="emerald"] .lp-dash-admin [data-w="status"] { grid-column: span 12; }
    :root[data-lp-theme="emerald"] .lp-dash-admin [data-w="donut"], :root[data-lp-theme="emerald"] .lp-dash-admin [data-w="util"], :root[data-lp-theme="emerald"] .lp-dash-admin [data-w="trend"] { grid-column: span 4; }
    :root[data-lp-theme="emerald"] .lp-dash-admin [data-w="labs"] { grid-column: span 12; order: 2; }
    :root[data-lp-theme="emerald"] .lp-dash-admin [data-w="sessions"], :root[data-lp-theme="emerald"] .lp-dash-admin [data-w="activity"] { grid-column: span 6; order: 3; } /* SOE Phase 2.2: three across was too narrow for the session and domain tables */
    :root[data-lp-theme="emerald"] .lp-dash-admin [data-w="offline"] { grid-column: span 12; order: 3; }
}
@media (min-width: 993px) {
    :root[data-lp-theme="emerald"] { --sidebar-width: 216px; --topbar-height: 52px; }
    :root[data-lp-theme="emerald"] .sidebar-link { padding: 5px var(--space-2); font-size: 0.8rem; gap: var(--space-2); }
    :root[data-lp-theme="emerald"] .sidebar-link.is-active::before { left: -8px; top: 0; bottom: 0; border-radius: 0; }
:root[data-lp-theme="emerald"]:where(:not([data-theme="light"])) .sidebar-link.is-active::before { background: #34d399; }
    :root[data-lp-theme="emerald"] .sidebar-section { border-left: 1px solid var(--sidebar-divider); padding-left: var(--space-2); }
    :root[data-lp-theme="emerald"] .sidebar-heading { font-family: var(--font-mono); letter-spacing: 0.04em; }
    :root[data-lp-theme="emerald"] .app-content { padding: var(--space-3); max-width: none; }
    :root[data-lp-theme="emerald"] .section { margin-bottom: var(--space-3); }
}

/* ---------------------------------------------------------------- Obsidian: navigation on the right, a serif masthead, a quiet gallery */
:root[data-lp-theme="obsidian"] { --lp-display-font: Didot, "Bodoni MT", Georgia, serif; --lp-dash-gap: 1px; --lp-monitor-style: bars; --lp-monitor-h: 180px; --lp-icon-stroke: 1.25; }
:root[data-lp-theme="obsidian"]:where(:not([data-theme="light"])) { --lp-icon-chip: transparent; --lp-hero-bg: #0f0f10; }
:root[data-lp-theme="obsidian"]:where(:not([data-theme="light"])) .lp-dash { background: #262628; border: 1px solid #262628; }
:root[data-lp-theme="obsidian"] .lp-dash > *, :root[data-lp-theme="obsidian"] .lp-dash > .lp-dissolve > * { border: 0; box-shadow: none; }
:root[data-lp-theme="obsidian"] .lp-dash > .section { background: var(--surface-card); padding: var(--space-4); }
:root[data-lp-theme="obsidian"] .lp-hero { grid-template-columns: minmax(0, 1fr); padding: var(--space-8) var(--space-8) var(--space-6); border-radius: 0; }
:root[data-lp-theme="obsidian"] .lp-hero h2 { font-size: 3rem; font-weight: 400; letter-spacing: 0.01em; }
:root[data-lp-theme="obsidian"] .lp-hero-facts { grid-template-columns: repeat(3, minmax(0, 200px)); }
:root[data-lp-theme="obsidian"] .lp-hero-facts dd { font-family: var(--lp-display-font); font-weight: 400; font-size: 1.9rem; }
:root[data-lp-theme="obsidian"] .lp-hero-facts dd.lp-hero-time { font-size: 0.95rem; }
:root[data-lp-theme="obsidian"] .lp-ops { gap: 1px; }
:root[data-lp-theme="obsidian"]:where(:not([data-theme="light"])) .lp-ops { background: #262628; }
:root[data-lp-theme="obsidian"] .lp-op { border: 0; border-radius: 0; box-shadow: none; background: var(--surface-card); padding: var(--space-5); }
:root[data-lp-theme="obsidian"] .lp-op-text strong { font-family: var(--lp-display-font); font-weight: 400; font-size: 1.6rem; }
@media (min-width: 993px) {
    :root[data-lp-theme="obsidian"] .sidebar { inset: 0 0 0 auto; border-right: 0; border-left: 1px solid var(--sidebar-border); }
    :root[data-lp-theme="obsidian"] .app-main { margin-left: 0; margin-right: var(--sidebar-width); }
    :root[data-lp-theme="obsidian"] .app-shell[data-sidebar-collapsed="true"] .app-main { margin-left: 0; margin-right: var(--sidebar-width-collapsed); }
    :root[data-lp-theme="obsidian"] .sidebar-link.is-active::before { left: auto; right: 0; }
    :root[data-lp-theme="obsidian"] .sidebar-link:hover { transform: translateX(-2px); }
    :root[data-lp-theme="obsidian"] .topbar { padding-right: var(--space-5); }
}

/* ---------------------------------------------------------------- the Philippine clock in each theme */
:root[data-lp-theme="midnight"] .lp-clock-time, :root[data-lp-theme="emerald"] .lp-clock-time { font-family: var(--font-mono); }
:root[data-lp-theme="obsidian"] .lp-clock-time { font-family: var(--lp-display-font); font-size: 1.05rem; font-weight: 400; }
:root[data-lp-theme="aurora"] .lp-clock { padding: 4px 14px; border-radius: 999px; }
:root[data-lp-theme="aurora"]:where(:not([data-theme="light"])) .lp-clock { background: rgba(167, 139, 250, 0.12); }
:root[data-lp-theme="dyci-classic"] .lp-clock { padding-right: var(--space-3); border-right: 2px solid var(--accent-400); }

/* ---------------------------------------------------------------- sign-in: each theme composes the page its own way */
.auth-brand-logo { will-change: auto; }
@media (min-width: 761px) {
    :root[data-lp-theme="dyci-classic"] .auth-shell { max-width: 1040px; min-height: 560px; }
    :root[data-lp-theme="dyci-classic"] .auth-panel-brand { flex-basis: 46%; position: relative; }
    :root[data-lp-theme="dyci-classic"] .auth-brand-logo { max-width: 168px; box-shadow: 0 0 0 8px rgba(226, 174, 69, 0.2), 0 26px 50px -10px rgba(3, 8, 20, 0.7); }
    :root[data-lp-theme="dyci-classic"] .auth-brand-name { font-family: Georgia, serif; font-size: 1.9rem; }
    :root[data-lp-theme="midnight"] .auth-shell { flex-direction: column; max-width: 460px; }
    :root[data-lp-theme="midnight"] .auth-panel-brand { flex: none; flex-direction: row; justify-content: flex-start; padding: var(--space-4) var(--space-6); gap: var(--space-3); text-align: left; }
    :root[data-lp-theme="midnight"] .auth-brand-logo { max-width: 40px; margin: 0; }
    :root[data-lp-theme="midnight"] .auth-brand-name { font-size: 1rem; margin: 0; }
    :root[data-lp-theme="midnight"] .auth-brand-tagline { display: none; }
    :root[data-lp-theme="midnight"] .auth-brand-product { margin-left: auto; }
    :root[data-lp-theme="aurora"] .auth-shell { max-width: 480px; flex-direction: column; border-radius: 34px; }
    :root[data-lp-theme="aurora"] .auth-panel-brand { flex: none; padding: var(--space-6) var(--space-6) var(--space-3); }
:root[data-lp-theme="aurora"]:where(:not([data-theme="light"])) .auth-panel-brand { background: transparent; }
    :root[data-lp-theme="aurora"] .auth-panel-form { padding-top: var(--space-3); }
:root[data-lp-theme="aurora"]:where(:not([data-theme="light"])) .auth-panel-form { background: transparent; }
    :root[data-lp-theme="aurora"]:where(:not([data-theme="light"])) .auth-shell { background: linear-gradient(160deg, rgba(38, 31, 84, 0.92), rgba(23, 18, 60, 0.92)); border: 1px solid rgba(167, 139, 250, 0.26); }
    :root[data-lp-theme="aurora"] .auth-brand-logo { max-width: 72px; margin-bottom: var(--space-2); }
    :root[data-lp-theme="aurora"] .auth-brand-tagline { display: none; }
    :root[data-lp-theme="emerald"] .auth-shell { max-width: 880px; flex-direction: row-reverse; border-radius: 4px; }
:root[data-lp-theme="emerald"]:where(:not([data-theme="light"])) .auth-shell { border: 1px solid #2c3a34; }
    :root[data-lp-theme="emerald"] .auth-panel-brand { flex-basis: 32%; align-items: flex-start; text-align: left; }
:root[data-lp-theme="emerald"]:where(:not([data-theme="light"])) .auth-panel-brand { border-left: 3px solid #34d399; }
    :root[data-lp-theme="emerald"] .auth-brand-name { font-family: var(--font-mono); font-size: 1.05rem; }
}

/* ---------------------------------------------------------------- Appearance: small drawings of each theme's real layout */
.tp-shot { position: relative; display: block; height: 122px; }
.tp-shot-nav { position: absolute; background: var(--p-side); }
.tp-shot-nav i { display: block; height: 3px; margin: 4px 5px; border-radius: 2px; background: color-mix(in srgb, var(--p-text) 26%, transparent); }
.tp-shot-nav i:first-child { background: var(--p-glow); }
.tp-shot-top { position: absolute; height: 8px; background: color-mix(in srgb, var(--p-card) 80%, transparent); }
.tp-shot-hero { position: absolute; background: var(--p-hero); border-radius: var(--p-r); overflow: hidden; }
.tp-shot-hero svg { position: absolute; inset: auto 0 0 0; width: 100%; height: 66%; }
.tp-shot-cards { position: absolute; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--p-gap); }
.tp-shot-cards i { display: block; height: 20px; background: var(--p-card); border-radius: var(--p-r); box-shadow: 0 2px 5px rgba(0, 0, 0, 0.16); }
.tp-shot-go { position: absolute; width: 26px; height: 7px; background: var(--p-accent); border-radius: var(--p-r); }
.tp-shot[data-layout="dyci-classic"] { --p-hero: linear-gradient(135deg, #1e3a70, #0d1d3d); --p-r: 4px; --p-gap: 4px; }
.tp-shot[data-layout="dyci-classic"] .tp-shot-nav { inset: 5px auto 5px 5px; width: 24%; background: linear-gradient(185deg, #1e3a70, #0d1d3d); border-radius: 6px; }
.tp-shot[data-layout="dyci-classic"] .tp-shot-top { left: 31%; right: 5px; top: 5px; border-radius: 3px; }
.tp-shot[data-layout="dyci-classic"] .tp-shot-hero { left: 31%; right: 5px; top: 17px; height: 50px; }
.tp-shot[data-layout="dyci-classic"] .tp-shot-cards { left: 31%; right: 5px; top: 72px; }
.tp-shot[data-layout="dyci-classic"] .tp-shot-go { right: 5px; bottom: 6px; }
.tp-shot[data-layout="midnight"] { --p-hero: #0a101c; --p-r: 2px; --p-gap: 2px; }
.tp-shot[data-layout="midnight"] .tp-shot-nav { inset: 0 auto 0 0; width: 9%; }
.tp-shot[data-layout="midnight"] .tp-shot-nav i { margin: 5px 3px; }
.tp-shot[data-layout="midnight"] .tp-shot-top { left: 9%; right: 0; top: 0; }
.tp-shot[data-layout="midnight"] .tp-shot-hero { left: 12%; right: 3px; top: 11px; height: 42px; border: 1px solid rgba(56, 189, 248, 0.35); }
.tp-shot[data-layout="midnight"] .tp-shot-cards { left: 12%; right: 3px; top: 56px; grid-template-columns: repeat(4, 1fr); }
.tp-shot[data-layout="midnight"] .tp-shot-cards i { height: 26px; }
.tp-shot[data-layout="midnight"] .tp-shot-cards::after { content: ""; background: var(--p-card); }
.tp-shot[data-layout="midnight"] .tp-shot-go { left: 12%; bottom: 8px; }
.tp-shot[data-layout="aurora"] { --p-hero: linear-gradient(135deg, rgba(109, 79, 216, 0.6), rgba(192, 132, 252, 0.25)); --p-r: 9px; --p-gap: 6px; }
.tp-shot[data-layout="aurora"] .tp-shot-nav { inset: 7px auto 7px 7px; width: 20%; border-radius: 10px; border: 1px solid rgba(167, 139, 250, 0.3); }
.tp-shot[data-layout="aurora"] .tp-shot-top { left: 30%; right: 8px; top: 7px; border-radius: 9px; }
.tp-shot[data-layout="aurora"] .tp-shot-hero { left: 30%; right: 8px; top: 20px; height: 54px; }
.tp-shot[data-layout="aurora"] .tp-shot-cards { left: 30%; right: 8px; top: 80px; }
.tp-shot[data-layout="aurora"] .tp-shot-cards i { height: 12px; }
.tp-shot[data-layout="aurora"] .tp-shot-go { right: 8px; bottom: 7px; }
.tp-shot[data-layout="emerald"] { --p-hero: #0b100e; --p-r: 0; --p-gap: 2px; }
.tp-shot[data-layout="emerald"] .tp-shot-nav { inset: 0 auto 0 0; width: 21%; border-right: 1px solid #27332e; }
.tp-shot[data-layout="emerald"] .tp-shot-nav i { margin: 3px 5px; height: 2px; }
.tp-shot[data-layout="emerald"] .tp-shot-top { left: 21%; right: 0; top: 0; height: 6px; }
.tp-shot[data-layout="emerald"] .tp-shot-hero { left: 23%; right: 26%; top: 9px; height: 54px; border-left: 2px solid #34d399; }
.tp-shot[data-layout="emerald"] .tp-shot-cards { left: 23%; right: 2px; top: 66px; grid-template-columns: repeat(4, 1fr); }
.tp-shot[data-layout="emerald"] .tp-shot-cards i { height: 24px; }
.tp-shot[data-layout="emerald"] .tp-shot-cards::after { content: ""; background: var(--p-card); }
.tp-shot[data-layout="emerald"] .tp-shot-go { right: 3px; top: 12px; width: 20px; }
.tp-shot[data-layout="obsidian"] { --p-hero: transparent; --p-r: 0; --p-gap: 1px; }
.tp-shot[data-layout="obsidian"] .tp-shot-nav { inset: 0 0 0 auto; width: 22%; border-left: 1px solid #262628; }
.tp-shot[data-layout="obsidian"] .tp-shot-top { left: 0; right: 22%; top: 0; height: 6px; }
.tp-shot[data-layout="obsidian"] .tp-shot-hero { left: 6px; right: 26%; top: 12px; height: 56px; }
.tp-shot[data-layout="obsidian"] .tp-shot-cards { left: 6px; right: 26%; top: 74px; }
.tp-shot[data-layout="obsidian"] .tp-shot-cards i { height: 22px; border-top: 1px solid #c9b38a; }
.tp-shot[data-layout="obsidian"] .tp-shot-go { left: 6px; bottom: 6px; }
.tp-shot-word { position: absolute; left: 7%; top: 8%; color: var(--p-ink); opacity: 0.92; font: var(--p-font); white-space: nowrap; }

/* Motion lives in themes-identity.css. */
