/* =====================================================================
   E-School styles
   Mobile-first: base rules are for phones; media queries add tablet/desktop layout.
   "3D" look = gradients + a solid bottom edge shadow that the button sinks into when pressed.
   Colours per portal come from .theme-<role> classes (student, parent, teacher, admin, finance).
   ===================================================================== */

:root {
    --bg: #eef2f8;
    --surface: #ffffff;
    --text: #1b2433;
    --muted: #5a6678;
    --border: #d8e0eb;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-1: 0 1px 2px rgba(20, 35, 60, .06), 0 4px 12px rgba(20, 35, 60, .06);
    --shadow-2: 0 2px 4px rgba(20, 35, 60, .06), 0 12px 28px rgba(20, 35, 60, .12);
    --shadow-3: 0 6px 12px rgba(20, 35, 60, .10), 0 24px 48px rgba(20, 35, 60, .18);
    --focus: 0 0 0 3px #fff, 0 0 0 6px #f5b400;

    /* Default accent (brand) */
    --accent: #3b5bdb;
    --accent-light: #5c7cfa;
    --accent-dark: #2a41a8;
    --accent-edge: #1f3190;
    --accent-soft: #e7ecff;

    --success-bg: #e3f6ea; --success-text: #17663a;
    --error-bg: #fde8e8;   --error-text: #a01f1f;
    --info-bg: #e6efff;    --info-text: #1e4a8f;
    --warn-bg: #fff3d6;    --warn-text: #7a5000;
    font-size: 16px;
}

/* Portal colour themes */
.theme-student { --accent: #2f6fed; --accent-light: #4d8bff; --accent-dark: #1f55c4; --accent-edge: #17439c; --accent-soft: #e5efff; }
.theme-parent  { --accent: #0f9d6b; --accent-light: #22bd86; --accent-dark: #0b7d55; --accent-edge: #075e40; --accent-soft: #ddf6ec; }
.theme-teacher { --accent: #e8590c; --accent-light: #fd7e32; --accent-dark: #a93c07; --accent-edge: #983707; --accent-soft: #ffeadb; }
.theme-admin   { --accent: #7048e8; --accent-light: #8c6bff; --accent-dark: #5a35cc; --accent-edge: #4526a3; --accent-soft: #efe9ff; }
.theme-finance { --accent: #0c8599; --accent-light: #15aabf; --accent-dark: #0b6b7c; --accent-edge: #08515e; --accent-soft: #dcf4f7; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
}
img, svg { max-width: 100%; }
h1 { font-size: 1.75rem; margin: 0 0 .75rem; line-height: 1.2; letter-spacing: -.01em; }
h2 { font-size: 1.25rem; margin: 0 0 .75rem; line-height: 1.3; }
h3 { font-size: 1.05rem; margin: 0 0 .35rem; }
a { color: var(--accent-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
    outline: none; box-shadow: var(--focus); border-radius: 8px;
}
code { background: #edf1f7; padding: .1em .4em; border-radius: 5px; font-size: .88em; word-break: break-word; }
.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { font-size: 1.08rem; color: var(--muted); margin-top: 0; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { left: .5rem; top: .5rem; }

/* =====================================================================
   3D BUTTONS
   ===================================================================== */
.btn {
    --edge: 5px;
    position: relative;
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font: inherit; font-weight: 700; letter-spacing: .01em;
    padding: .75rem 1.3rem; min-height: 48px;
    border-radius: 14px; border: 0; cursor: pointer; text-decoration: none;
    transition: transform .09s ease, box-shadow .09s ease, filter .15s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.btn .icon { width: 1.2em; height: 1.2em; }

.btn-primary, .btn-3d {
    color: #fff;
    background: linear-gradient(180deg, var(--accent-light) 0%, var(--accent) 55%, var(--accent-dark) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .35),
        0 var(--edge) 0 var(--accent-edge),
        0 calc(var(--edge) + 6px) 16px rgba(20, 35, 60, .25);
    text-shadow: 0 1px 1px rgba(0, 0, 0, .2);
}
.btn-secondary {
    color: var(--accent-dark);
    background: linear-gradient(180deg, #ffffff 0%, #f2f5fb 100%);
    box-shadow:
        inset 0 0 0 1px #cfd8e6,
        0 var(--edge) 0 #c3cddc,
        0 calc(var(--edge) + 6px) 14px rgba(20, 35, 60, .12);
}
.btn-danger {
    color: #fff;
    background: linear-gradient(180deg, #f06565 0%, #d63939 60%, #b82d2d 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 var(--edge) 0 #8f1f1f, 0 calc(var(--edge) + 6px) 16px rgba(20,35,60,.25);
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.04); }
.btn:hover.btn-primary, .btn:hover.btn-3d {
    box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 calc(var(--edge) + 2px) 0 var(--accent-edge), 0 calc(var(--edge) + 12px) 22px rgba(20,35,60,.28);
}
.btn:active { transform: translateY(var(--edge)); }
.btn:active.btn-primary, .btn:active.btn-3d {
    box-shadow: inset 0 2px 4px rgba(0,0,0,.2), 0 0 0 var(--accent-edge), 0 2px 6px rgba(20,35,60,.2);
}
.btn:active.btn-secondary { box-shadow: inset 0 0 0 1px #cfd8e6, 0 0 0 #c3cddc, 0 2px 6px rgba(20,35,60,.12); }
.btn:active.btn-danger { box-shadow: inset 0 2px 4px rgba(0,0,0,.2), 0 0 0 #8f1f1f, 0 2px 6px rgba(20,35,60,.2); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; filter: grayscale(.4); }
.btn-lg { padding: 1rem 1.7rem; font-size: 1.08rem; min-height: 56px; border-radius: 16px; --edge: 6px; }
.btn-sm { padding: .45rem .9rem; min-height: 38px; font-size: .9rem; border-radius: 11px; --edge: 4px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.btn-row.spread { justify-content: space-between; }

/* =====================================================================
   PUBLIC PAGES (home, portals, sign-in)
   ===================================================================== */
.public { background: #f4f7fc; }
.public-header {
    position: sticky; top: 0; z-index: 30;
    display: flex; align-items: center; gap: 1rem;
    padding: .75rem 1rem;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(216, 224, 235, .8);
}
.logo { display: flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.1rem; margin-right: auto; min-width: 0; }
.logo img { filter: drop-shadow(0 3px 4px rgba(30, 50, 110, .3)); }
.logo span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.public-nav { display: none; gap: 1.25rem; }
.public-nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.public-nav a:hover { color: var(--accent-dark); }
@media (min-width: 800px) { .public-nav { display: flex; } }

.hero {
    position: relative; overflow: hidden;
    padding: 3rem 1rem 4.5rem;
    background:
        radial-gradient(1200px 500px at 85% -10%, rgba(140, 107, 255, .45), transparent 60%),
        radial-gradient(900px 500px at -10% 110%, rgba(34, 189, 134, .35), transparent 60%),
        linear-gradient(135deg, #1f2f7a 0%, #2d4bc8 55%, #3d6cf0 100%);
    color: #fff;
}
.hero-inner { max-width: 1150px; margin: 0 auto; display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .hero-inner { grid-template-columns: 1.1fr .9fr; } .hero { padding: 5rem 2rem 6rem; } }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; margin-bottom: 1rem; text-shadow: 0 3px 12px rgba(0,0,0,.2); }
.hero p { font-size: 1.15rem; opacity: .92; max-width: 36rem; }
.hero .btn-secondary { color: #1f2f7a; }
.hero-badge { display: inline-flex; align-items: center; gap: .4rem; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); padding: .3rem .8rem; border-radius: 999px; font-size: .85rem; font-weight: 600; margin-bottom: 1rem; }

/* Floating 3D card stack illustration */
.hero-art { position: relative; height: 320px; perspective: 1000px; display: none; }
@media (min-width: 900px) { .hero-art { display: block; } }
.float-card {
    position: absolute; width: 230px; padding: 1rem 1.1rem; border-radius: 18px;
    background: rgba(255,255,255,.96); color: var(--text);
    box-shadow: 0 20px 40px rgba(10, 20, 60, .35), 0 3px 0 rgba(255,255,255,.6) inset;
    transform-style: preserve-3d;
    animation: bob 6s ease-in-out infinite;
}
.float-card .fc-head { display: flex; align-items: center; gap: .6rem; font-weight: 700; margin-bottom: .5rem; }
.float-card .fc-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: #fff; background: linear-gradient(160deg, var(--accent-light), var(--accent-dark)); box-shadow: 0 4px 0 var(--accent-edge); }
.float-card .fc-line { height: 8px; border-radius: 99px; background: #e6ebf3; margin: .45rem 0; }
.float-card .fc-line.w60 { width: 60%; } .float-card .fc-line.w80 { width: 80%; }
.float-card .fc-bar { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--accent-light), var(--accent)); }
.fc-1 { top: 10px; left: 10%; transform: rotateY(-14deg) rotateX(8deg); }
.fc-2 { top: 120px; right: 0; transform: rotateY(12deg) rotateX(6deg); animation-delay: -2s; }
.fc-3 { top: 205px; left: 0; transform: rotateY(-8deg) rotateX(-6deg); animation-delay: -4s; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }

.section { padding: 3.5rem 1rem; }
.section-inner { max-width: 1150px; margin: 0 auto; }
.section-head { text-align: center; max-width: 42rem; margin: 0 auto 2rem; }
.section-head h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 800; }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 800; color: var(--accent); margin-bottom: .5rem; }
.section-alt { background: #fff; }
.overlap { margin-top: -3.5rem; padding-top: 0; position: relative; z-index: 2; }

/* ---------- Portal tiles (3D) ---------- */
.portal-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .portal-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .portal-grid { grid-template-columns: repeat(5, 1fr); } }
.portal-tile {
    position: relative; display: flex; flex-direction: column; gap: .5rem;
    padding: 1.4rem 1.2rem 1.2rem; border-radius: 20px; text-decoration: none; color: var(--text);
    background: linear-gradient(180deg, #ffffff 0%, #f6f8fc 100%);
    box-shadow: 0 6px 0 var(--accent-soft), 0 7px 0 rgba(20,35,60,.08), var(--shadow-2);
    border: 1px solid #e3e9f2;
    transition: transform .18s ease, box-shadow .18s ease;
    transform: perspective(900px) translateZ(0);
}
.portal-tile::before { /* coloured top edge */
    content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; border-radius: 20px 20px 0 0;
    background: linear-gradient(90deg, var(--accent-light), var(--accent-dark));
}
.portal-tile:hover, .portal-tile:focus-visible {
    transform: perspective(900px) translateY(-6px) rotateX(4deg);
    box-shadow: 0 10px 0 var(--accent-soft), 0 11px 0 rgba(20,35,60,.08), var(--shadow-3);
}
.portal-tile:active { transform: perspective(900px) translateY(2px); box-shadow: 0 2px 0 var(--accent-soft), var(--shadow-1); }
.portal-icon {
    display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; color: #fff;
    background: linear-gradient(160deg, var(--accent-light) 0%, var(--accent) 60%, var(--accent-dark) 100%);
    box-shadow: inset 0 2px 0 rgba(255,255,255,.35), 0 5px 0 var(--accent-edge), 0 10px 18px rgba(20,35,60,.22);
    margin-bottom: .4rem;
}
.portal-icon .icon { width: 30px; height: 30px; }
.portal-tile h3 { font-size: 1.15rem; margin: 0; }
.portal-tile p { margin: 0; color: var(--muted); font-size: .92rem; }
.portal-go { margin-top: auto; padding-top: .6rem; display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; color: var(--accent-dark); }
.portal-go .icon { transition: transform .15s; }
.portal-tile:hover .portal-go .icon { transform: translateX(4px); }

/* ---------- Feature cards ---------- */
.feature-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature-card {
    position: relative; display: flex; gap: 1rem; align-items: flex-start;
    padding: 1.2rem; border-radius: var(--radius); background: #fff; color: var(--text); text-decoration: none;
    border: 1px solid #e3e9f2; box-shadow: var(--shadow-1);
    transition: transform .15s, box-shadow .15s;
}
a.feature-card:hover, a.feature-card:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.feature-icon {
    display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
    color: var(--accent-dark); background: linear-gradient(160deg, #fff, var(--accent-soft));
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.04), 0 4px 0 var(--accent-soft), 0 6px 12px rgba(20,35,60,.1);
}
.feature-icon .icon { width: 26px; height: 26px; }
.feature-card h3 { margin-bottom: .2rem; }
.feature-card p { margin: 0 0 .5rem; color: var(--muted); font-size: .93rem; }
.feature-card.soon { background: #fbfcfe; }
.feature-card.soon .feature-icon { filter: grayscale(.5); opacity: .8; }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.chip { font-size: .75rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark); }
.status { display: inline-block; margin-bottom: .35rem; font-size: .72rem; font-weight: 800; padding: .15rem .55rem; border-radius: 999px; }
.status-live { background: var(--success-bg); color: var(--success-text); }
.status-soon { background: #eef1f6; color: var(--muted); }

/* ---------- How it works ---------- */
.steps-row { display: grid; gap: 1.25rem; counter-reset: s; }
@media (min-width: 800px) { .steps-row { grid-template-columns: repeat(3, 1fr); } }
.step-card { position: relative; padding: 1.5rem 1.25rem 1.25rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-1); border: 1px solid #e3e9f2; }
.step-card::before {
    counter-increment: s; content: counter(s);
    display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; margin-bottom: .75rem;
    font-weight: 800; color: #fff; background: linear-gradient(160deg, var(--accent-light), var(--accent-dark)); box-shadow: 0 4px 0 var(--accent-edge);
}
.site-footer { padding: 2rem 1rem; text-align: center; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--border); background: #fff; }

/* =====================================================================
   SIGN-IN PAGES
   ===================================================================== */
.auth-bg {
    min-height: 100vh;
    background:
        radial-gradient(800px 400px at 100% 0%, var(--accent-soft), transparent 70%),
        radial-gradient(700px 400px at 0% 100%, var(--accent-soft), transparent 70%),
        #f4f7fc;
}
.auth-wrap { max-width: 980px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.auth-card {
    display: grid; overflow: hidden; border-radius: 24px; background: #fff;
    box-shadow: 0 8px 0 var(--accent-soft), var(--shadow-3);
}
@media (min-width: 820px) { .auth-card { grid-template-columns: .95fr 1.05fr; } }
.auth-side {
    position: relative; padding: 2rem 1.5rem; color: #fff; overflow: hidden;
    background:
        radial-gradient(400px 260px at 110% -10%, rgba(255,255,255,.28), transparent 60%),
        linear-gradient(150deg, var(--accent-light) 0%, var(--accent) 45%, var(--accent-edge) 100%);
}
.auth-side::after { /* soft 3D circles */
    content: ""; position: absolute; width: 260px; height: 260px; right: -80px; bottom: -90px; border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.35), rgba(255,255,255,.05) 70%);
}
.auth-side .portal-icon { background: rgba(255,255,255,.18); box-shadow: inset 0 2px 0 rgba(255,255,255,.35), 0 5px 0 rgba(0,0,0,.18); }
.auth-side h1 { font-size: 1.8rem; margin: .5rem 0 .25rem; }
.auth-side p { opacity: .92; margin: 0 0 1rem; }
.auth-side ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; position: relative; z-index: 1; }
.auth-side li { display: flex; gap: .55rem; align-items: flex-start; }
.auth-side li .icon { margin-top: .15rem; }
@media (max-width: 819px) { .auth-side ul { display: none; } .auth-side { padding: 1.5rem; } }
.auth-form { padding: 2rem 1.5rem; }
@media (min-width: 820px) { .auth-form { padding: 2.5rem 2.5rem; } }
.auth-form h2 { font-size: 1.4rem; }
.auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; margin-top: 1.25rem; font-size: .92rem; }
.back-link { display: inline-flex; align-items: center; gap: .35rem; color: var(--muted); text-decoration: none; font-weight: 600; margin-bottom: 1rem; }
.back-link:hover { color: var(--accent-dark); }
.input-icon { position: relative; }
.input-icon .icon { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: #8a96a8; pointer-events: none; }
.input-icon input { padding-left: 2.6rem !important; }

/* =====================================================================
   APP SHELL (signed-in pages)
   ===================================================================== */
.topbar {
    position: sticky; top: 0; z-index: 20;
    display: flex; align-items: center; gap: .75rem;
    padding: .65rem 1rem; color: #fff;
    background: linear-gradient(135deg, var(--accent-dark), var(--accent) 60%, var(--accent-light));
    box-shadow: 0 3px 0 var(--accent-edge), 0 8px 20px rgba(20,35,60,.18);
}
.brand { display: flex; align-items: center; gap: .55rem; color: #fff; text-decoration: none; font-weight: 800; margin-right: auto; min-width: 0; }
.brand img { filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); }
.brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.role-pill { display: none; font-size: .8rem; font-weight: 700; padding: .2rem .7rem; border-radius: 999px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3); }
@media (min-width: 600px) { .role-pill { display: inline-block; } }
.bell { position: relative; color: #fff; display: inline-flex; padding: .45rem; border-radius: 12px; background: rgba(255,255,255,.14); }
.bell .icon { width: 22px; height: 22px; }
.bell .badge {
    position: absolute; top: -5px; right: -6px; background: #ffc53d; color: #1b2433; box-shadow: 0 2px 0 #c98f00;
    font-size: .7rem; font-weight: 800; border-radius: 999px; padding: 0 .38rem; min-width: 1.25rem; text-align: center;
}
.menu-toggle {
    display: inline-flex; align-items: center; gap: .35rem;
    background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.35);
    border-radius: 12px; padding: .45rem .8rem; font: inherit; font-weight: 700; cursor: pointer;
}
.shell { display: block; }
.sidenav { background: var(--surface); border-bottom: 1px solid var(--border); padding: 1rem; }
.js .sidenav { display: none; }
.js .sidenav.open { display: block; }
.who { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; padding: .75rem; border-radius: 14px; background: var(--accent-soft); }
.avatar {
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; flex-shrink: 0;
    color: #fff; font-weight: 800; background: linear-gradient(160deg, var(--accent-light), var(--accent-dark)); box-shadow: 0 4px 0 var(--accent-edge);
}
.who-text { display: flex; flex-direction: column; min-width: 0; }
.who-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-title { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; color: var(--muted); margin: 1rem .5rem .4rem; }
.sidenav ul { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .2rem; }
.sidenav a, .sidenav .nav-soon {
    display: flex; align-items: center; gap: .65rem; padding: .6rem .7rem; border-radius: 12px; text-decoration: none; color: var(--text); font-weight: 600;
}
.sidenav a:hover { background: #f2f5fa; }
.sidenav a[aria-current="page"] {
    color: #fff; background: linear-gradient(180deg, var(--accent-light), var(--accent));
    box-shadow: 0 3px 0 var(--accent-edge), 0 6px 12px rgba(20,35,60,.15);
}
.sidenav .nav-soon { color: #98a2b3; font-weight: 500; }
.sidenav .nav-soon small { margin-left: auto; white-space: nowrap; font-size: .7rem; background: #eef1f6; padding: .05rem .45rem; border-radius: 99px; }
.count { margin-left: auto; font-size: .75rem; font-weight: 800; background: #ffc53d; color: #1b2433; border-radius: 99px; padding: 0 .45rem; }

.content { padding: 1.25rem 1rem 3rem; max-width: 1150px; outline: none; }
@media (min-width: 960px) {
    .menu-toggle { display: none; }
    .shell { display: flex; align-items: stretch; min-height: calc(100vh - 58px); }
    .sidenav, .js .sidenav { display: block; width: 270px; flex-shrink: 0; border-bottom: 0; border-right: 1px solid var(--border); }
    .sidenav-inner { position: sticky; top: 76px; }
    .content { padding: 2rem 2.25rem; flex: 1; min-width: 0; }
}

/* Dashboard hero banner */
.dash-hero {
    position: relative; overflow: hidden; color: #fff; border-radius: 22px; padding: 1.5rem; margin-bottom: 1.5rem;
    background:
        radial-gradient(500px 240px at 105% -20%, rgba(255,255,255,.3), transparent 60%),
        linear-gradient(135deg, var(--accent-dark), var(--accent) 55%, var(--accent-light));
    box-shadow: 0 6px 0 var(--accent-edge), var(--shadow-2);
}
.dash-hero::after {
    content: ""; position: absolute; right: -40px; bottom: -70px; width: 220px; height: 220px; border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.28), rgba(255,255,255,.03) 70%);
}
.dash-hero h1 { margin: 0 0 .25rem; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.dash-hero p { margin: 0; opacity: .92; position: relative; z-index: 1; }
.dash-hero .hero-icon { position: absolute; right: 1.25rem; top: 1.1rem; opacity: .25; }
.dash-hero .hero-icon .icon { width: 72px; height: 72px; }

/* Cards, stats, lists */
.card {
    background: var(--surface); border: 1px solid #e3e9f2; border-radius: var(--radius);
    padding: 1.35rem; margin-bottom: 1.35rem; box-shadow: var(--shadow-1);
}
.card-title { display: flex; align-items: center; gap: .6rem; }
.card-title .icon { color: var(--accent); }
.card.narrow { max-width: 540px; }
.grid-2 { display: grid; gap: 0 1.35rem; }
@media (min-width: 960px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; margin-bottom: 1.5rem; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat {
    position: relative; background: linear-gradient(180deg, #fff, #f7f9fd); border: 1px solid #e3e9f2; border-radius: var(--radius);
    padding: 1rem 1.1rem; display: flex; flex-direction: column;
    box-shadow: 0 4px 0 #e1e7f0, var(--shadow-1);
}
.stat-num { font-size: 1.65rem; font-weight: 800; color: var(--accent-dark); overflow-wrap: anywhere; line-height: 1.2; }
.stat-label { color: var(--muted); font-size: .9rem; }
.stat-warn { background: linear-gradient(180deg, #fffaf0, var(--warn-bg)); box-shadow: 0 4px 0 #f1dca8, var(--shadow-1); }
.stat-warn .stat-num { color: var(--warn-text); }

.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; flex-direction: column; gap: .1rem; padding: .7rem 0; border-bottom: 1px solid var(--border); }
.list li:last-child { border-bottom: 0; }
.list li.unread { font-weight: 600; }
.dot { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; background: var(--accent); margin-right: .4rem; vertical-align: middle; }
.checklist { margin: 0; padding-left: 1.2rem; }
.checklist li { margin-bottom: .4rem; }
.empty { color: var(--muted); font-style: italic; margin: 0; }
.notice { background: var(--info-bg); color: var(--info-text); padding: .8rem 1rem; border-radius: 12px; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; padding: .1rem .5rem; border-radius: 999px; width: fit-content; }
.tag-warn { background: var(--warn-bg); color: var(--warn-text); }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.page-head h1, .page-head h2 { margin: 0; }
.announcement + .announcement { border-top: 1px solid var(--border); padding-top: .8rem; margin-top: .8rem; }
.announcement p { margin: .25rem 0; }
pre.debug { white-space: pre-wrap; background: #1b2433; color: #f4f6f9; padding: 1rem; border-radius: 10px; font-size: .85rem; overflow-x: auto; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin: .5rem 0 1rem; }
.section-title h2 { margin: 0; }

/* Tables become stacked cards on phones */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .65rem .5rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
@media (max-width: 599px) {
    table thead { position: absolute; left: -9999px; }
    table tr { display: block; border-bottom: 1px solid var(--border); padding: .5rem 0; }
    table td { display: flex; justify-content: space-between; gap: 1rem; border: 0; padding: .25rem 0; text-align: right; }
    table td::before { content: attr(data-label); font-weight: 700; color: var(--muted); text-align: left; }
}

/* =====================================================================
   FORMS
   ===================================================================== */
.form { display: flex; flex-direction: column; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; flex: 1; min-width: 0; }
.field-row { display: flex; flex-direction: column; gap: 1.1rem; }
@media (min-width: 600px) { .field-row { flex-direction: row; } }
label { font-weight: 700; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date],
input[type=datetime-local], input:not([type]), select, textarea {
    width: 100%; font: inherit; padding: .75rem .9rem; min-height: 50px;
    border: 1.5px solid #c9d3e1; border-radius: 12px; background: #fbfcfe; color: var(--text);
    box-shadow: inset 0 2px 3px rgba(20,35,60,.06);
    transition: border-color .15s, box-shadow .15s, background .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); background: #fff; box-shadow: inset 0 2px 3px rgba(20,35,60,.04), 0 0 0 4px var(--accent-soft) !important; }
.help { margin: 0; font-size: .85rem; color: var(--muted); font-weight: normal; }
.fieldset { border: 1.5px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: 1rem; }
.fieldset legend { font-weight: 800; padding: 0 .4rem; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-weight: 600; }
.check input { width: 1.3rem; height: 1.3rem; margin-top: .1rem; flex-shrink: 0; accent-color: var(--accent); }

/* Big radio choice cards (installer) */
.choice-grid { display: grid; gap: 1rem; }
@media (min-width: 600px) { .choice-grid { grid-template-columns: 1fr 1fr; } }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice-box {
    display: flex; flex-direction: column; gap: .35rem; padding: 1.1rem; border-radius: 16px; height: 100%;
    border: 2px solid var(--border); background: #fff; box-shadow: 0 4px 0 #e1e7f0; transition: all .15s;
}
.choice-box strong { display: flex; align-items: center; gap: .5rem; font-size: 1.05rem; }
.choice input:checked + .choice-box { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 4px 0 var(--accent); }
.choice input:focus-visible + .choice-box { box-shadow: var(--focus); }

.child-switcher { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: 1.25rem; padding: .75rem 1rem; background: #fff; border-radius: 14px; border: 1px solid #e3e9f2; box-shadow: var(--shadow-1); }
.child-switcher select { width: auto; min-width: 13rem; }
.js .child-switcher[data-autosubmit] button { display: none; }
.child-name { margin-top: 0; display: flex; align-items: center; gap: .5rem; }

/* Flash messages */
.flash { display: flex; gap: .6rem; align-items: flex-start; padding: .85rem 1rem; border-radius: 12px; margin-bottom: 1rem; font-weight: 600; box-shadow: var(--shadow-1); }
.flash-success { background: var(--success-bg); color: var(--success-text); }
.flash-error { background: var(--error-bg); color: var(--error-text); }
.flash-info { background: var(--info-bg); color: var(--info-text); }

/* =====================================================================
   INSTALL WIZARD
   ===================================================================== */
.install-bg { min-height: 100vh; background: radial-gradient(900px 420px at 50% -10%, #dfe6ff, transparent 70%), #f4f7fc; }
.install-wrap { max-width: 860px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.install-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.stepper { list-style: none; margin: 0 0 1.5rem; padding: 0; display: flex; gap: .35rem; counter-reset: st; overflow-x: auto; }
.stepper li { flex: 1; min-width: 44px; display: flex; flex-direction: column; align-items: center; gap: .35rem; text-align: center; font-size: .78rem; font-weight: 700; color: var(--muted); position: relative; }
.stepper li::before {
    counter-increment: st; content: counter(st);
    display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; font-size: .95rem;
    background: #fff; color: var(--muted); border: 2px solid #cfd8e6; box-shadow: 0 3px 0 #cfd8e6; z-index: 1;
}
.stepper li::after { content: ""; position: absolute; top: 18px; left: calc(50% + 20px); right: calc(-50% + 20px); height: 3px; background: #d6deea; border-radius: 3px; }
.stepper li:last-child::after { display: none; }
.stepper li.done::before { content: "✓"; background: linear-gradient(160deg, #22bd86, #0b7d55); border-color: #0b7d55; color: #fff; box-shadow: 0 3px 0 #075e40; }
.stepper li.done::after { background: #22bd86; }
.stepper li.current { color: var(--accent-dark); }
.stepper li.current::before { background: linear-gradient(160deg, var(--accent-light), var(--accent-dark)); border-color: var(--accent-dark); color: #fff; box-shadow: 0 3px 0 var(--accent-edge); transform: scale(1.1); }
.stepper .st-label { display: none; }
@media (min-width: 640px) { .stepper .st-label { display: block; } }
.wizard-card { background: #fff; border-radius: 24px; padding: 1.5rem; box-shadow: 0 8px 0 #e1e7f0, var(--shadow-3); border: 1px solid #e3e9f2; }
@media (min-width: 640px) { .wizard-card { padding: 2.25rem; } }
.wizard-head { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.25rem; }
.wizard-head .portal-icon { margin: 0; }
.wizard-head h1 { margin: 0; font-size: 1.5rem; }
.wizard-head p { margin: .15rem 0 0; color: var(--muted); }
.wizard-actions { display: flex; flex-wrap: wrap-reverse; justify-content: space-between; gap: 1rem; margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.req-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.req-list li { display: flex; gap: .7rem; align-items: flex-start; padding: .7rem .9rem; border-radius: 12px; background: #f7f9fc; border: 1px solid #e6ebf3; }
.req-list .req-ok { color: var(--success-text); }
.req-list .req-bad { color: var(--error-text); }
.req-list li.bad { background: var(--error-bg); border-color: #f5c2c2; }
.summary { display: grid; gap: .1rem; margin: 0; }
.summary div { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px dashed var(--border); }
.summary dt { color: var(--muted); font-weight: 600; }
.summary dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.celebrate { text-align: center; }
.celebrate .portal-icon { margin: 0 auto 1rem; width: 76px; height: 76px; border-radius: 24px; }
.celebrate .portal-icon .icon { width: 40px; height: 40px; }

/* Minimal layout (error pages) */
.minimal-main { max-width: 520px; margin: 0 auto; padding: 2rem 1rem 3rem; }
.minimal-brand { display: flex; align-items: center; justify-content: center; gap: .6rem; font-size: 1.25rem; font-weight: 800; margin-bottom: 1.25rem; color: var(--accent-dark); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
    .topbar, .sidenav, .btn, .public-header { display: none !important; }
    .content { padding: 0; }
}
.float-card .fc-bar.w60 { width: 65%; }
.cta-bottom { margin-top: 2.25rem; }
.stepper .st-link { color: inherit; }
@media (max-width: 599px) { .dash-hero .hero-icon { display: none; } }
.choice-box .muted { font-weight: 500; }

/* Live classroom list pages */
.session-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.session-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding: .8rem 1rem; border-radius: 14px; background: #f7f9fc; border: 1px solid #e6ebf3; }
.session-list li > div:first-child { display: flex; flex-direction: column; min-width: 0; }
.session-list form { display: inline; }
.live-now-card { border-color: #ffc9c9; box-shadow: 0 4px 0 #ffe3e3, var(--shadow-1); }
.live-dot { display: inline-block; width: .8rem; height: .8rem; border-radius: 50%; background: #e03131; box-shadow: 0 0 0 4px #ffe3e3; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(224,49,49,.08); } }
.tag-ok { background: var(--success-bg); color: var(--success-text); }
.video-notice { margin-bottom: 1.25rem; display: block; }
.video-notice strong { display: inline-flex; align-items: center; gap: .35rem; }
.consent-form { margin-top: .5rem; }
.seat-preview { display: grid; gap: .5rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) {
    .seat-preview.cols-1 { grid-template-columns: repeat(1, 1fr); } .seat-preview.cols-2 { grid-template-columns: repeat(2, 1fr); }
    .seat-preview.cols-3 { grid-template-columns: repeat(3, 1fr); } .seat-preview.cols-4 { grid-template-columns: repeat(4, 1fr); }
    .seat-preview.cols-5 { grid-template-columns: repeat(5, 1fr); } .seat-preview.cols-6 { grid-template-columns: repeat(6, 1fr); }
    .seat-preview.cols-7 { grid-template-columns: repeat(7, 1fr); } .seat-preview.cols-8 { grid-template-columns: repeat(8, 1fr); }
    .seat-preview.cols-9 { grid-template-columns: repeat(9, 1fr); } .seat-preview.cols-10 { grid-template-columns: repeat(10, 1fr); }
}
.seat-front { grid-column: 1 / -1; text-align: center; font-weight: 700; padding: .45rem; border-radius: 10px; background: var(--accent-soft); color: var(--accent-dark); }
.seat-mini { display: flex; align-items: center; gap: .45rem; padding: .5rem; border-radius: 10px; background: #fff; border: 1px solid #e3e9f2; box-shadow: 0 3px 0 #e1e7f0; font-size: .88rem; min-width: 0; }
.seat-no { display: inline-grid; place-items: center; min-width: 26px; height: 26px; border-radius: 8px; font-weight: 800; color: #fff; background: linear-gradient(160deg, var(--accent-light), var(--accent-dark)); }
.narrow-field { max-width: 200px; }
.seat-input { max-width: 120px; }

/* Admin forms and lists */
.row-form { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; width: 100%; }
.row-form input:not([type=checkbox]), .row-form select { width: auto; flex: 1 1 10rem; min-height: 42px; }
.row-form .w-num { flex: 0 0 6rem; }
.row-form .w-code { flex: 0 1 8rem; }
.w-subject { flex: 0 0 9rem; }
.inline-form { margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--border); }
.filter-bar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; }
.filter-bar .field { flex: 1 1 12rem; }
.filter-bar .field-btn { flex: 0 0 auto; }
.check-list { display: grid; gap: .35rem; max-height: 320px; overflow-y: auto; padding: .5rem; border: 1.5px solid var(--border); border-radius: 12px; }
@media (min-width: 700px) { .check-list { grid-template-columns: 1fr 1fr; } }
.pager { display: flex; align-items: center; gap: .75rem; justify-content: center; margin-top: 1rem; }
input[type=search] { width: 100%; font: inherit; padding: .75rem .9rem; min-height: 50px; border: 1.5px solid #c9d3e1; border-radius: 12px; background: #fbfcfe; }
input[type=file] { font: inherit; }
textarea { resize: vertical; }
.table-wrap td input, .table-wrap td select { min-height: 42px; }

/* Learning pages */
.tag-info { background: var(--info-bg); color: var(--info-text); }
.tag-bad { background: var(--error-bg); color: var(--error-text); }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.answer { background: #f7f9fc; border: 1px solid #e3e9f2; border-radius: 12px; padding: .9rem 1rem; }
.feedback-box { margin-top: 1rem; padding: 1rem; border-radius: 14px; background: var(--success-bg); border: 1px solid #b7e4c7; }
.feedback-box h3 { margin-top: 0; }
.file-list { list-style: none; padding: 0; margin: .75rem 0 0; display: grid; gap: .4rem; }
.file-list li { display: flex; align-items: center; gap: .5rem; padding: .5rem .75rem; border-radius: 10px; background: #f7f9fc; border: 1px solid #e6ebf3; }
.file-list .icon { color: var(--accent); }
.bar { display: block; height: 6px; background: #e6ebf3; border-radius: 99px; margin-top: .3rem; max-width: 140px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-light), var(--accent)); }
.bar-fill.w0 { width: 0; } .bar-fill.w10 { width: 10%; } .bar-fill.w20 { width: 20%; } .bar-fill.w30 { width: 30%; } .bar-fill.w40 { width: 40%; }
.bar-fill.w50 { width: 50%; } .bar-fill.w60 { width: 60%; } .bar-fill.w70 { width: 70%; } .bar-fill.w80 { width: 80%; } .bar-fill.w90 { width: 90%; } .bar-fill.w100 { width: 100%; }
.gradebook td, .gradebook th { white-space: nowrap; text-align: center; }
.gradebook td:first-child, .gradebook th:first-child { text-align: left; position: sticky; left: 0; background: #fff; }
.gradebook td a { text-decoration: none; display: block; }
.cell-missing a { color: var(--error-text); font-weight: 700; }
.cell-submitted, .cell-late { background: var(--warn-bg); }
.cell-graded a { color: var(--success-text); font-weight: 700; }
.label { font-weight: 700; }
.live-banner { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; } .live-banner .btn { margin-left: auto; }

/* ---------- Phase 5: fees, receipts ---------- */
.link-list { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .4rem; }
.link-list li { padding: .5rem .7rem; border-radius: var(--radius-sm); background: var(--accent-soft); }
details > summary { list-style: none; cursor: pointer; width: fit-content; }
details > summary::-webkit-details-marker { display: none; }
details[open] > summary { margin-bottom: .5rem; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.receipt { max-width: 720px; margin-inline: auto; }
.receipt-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; border-bottom: 2px solid var(--border); padding-bottom: 1rem; margin-bottom: 1rem; }
.receipt-head h2, .receipt-head p { margin: 0; }
.receipt-no { text-align: right; }
.receipt-meta { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1rem; margin: 0 0 1rem; }
.receipt-meta dt { color: var(--muted); }
.receipt-meta dd { margin: 0; }
.receipt-amount { font-size: 1.4rem; font-weight: 800; }
.receipt-balance { margin-top: 1rem; }
.receipt-void { border: 2px solid var(--error-text); }

/* ---------- Printing (receipts, reports) ---------- */
@media print {
    body { background: #fff !important; }
    .topbar, .sidenav, .skip-link, .no-print, .flash, .flashes, .menu-toggle, .btn, form { display: none !important; }
    .shell, .content { display: block !important; padding: 0 !important; margin: 0 !important; }
    .card { box-shadow: none !important; border: 1px solid #999; }
    a { color: #000; text-decoration: none; }
    table { font-size: 11pt; }
}
@media (max-width: 599px) { .stat-num { font-size: clamp(1.05rem, 5vw, 1.4rem); overflow-wrap: normal; } }
.install-app { margin-bottom: .75rem; } [hidden] { display: none !important; }

/* ---------- YouTube lectures ---------- */
.yt-player { position: relative; aspect-ratio: 16 / 9; width: 100%; border-radius: var(--radius); overflow: hidden;
    background: radial-gradient(circle at 30% 20%, #3a3f52, #11131a); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; padding: 1rem; }
.yt-play { display: inline-flex; align-items: center; gap: .7rem; border: 0; cursor: pointer; background: #e62117; color: #fff; font: inherit; font-weight: 800;
    padding: .9rem 1.4rem; border-radius: 999px; box-shadow: 0 5px 0 #a3150e, var(--shadow-2); }
.yt-play:hover { background: #ff2a1f; }
.yt-play:active { transform: translateY(3px); box-shadow: 0 2px 0 #a3150e; }
.yt-play .icon { width: 1.5em; height: 1.5em; }
.yt-note { color: #e6e9f2; text-align: center; margin: 0; max-width: 34rem; }
.yt-note a { color: #fff; }
.yt-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
@media (min-width: 760px) { .video-list { grid-template-columns: repeat(2, 1fr); } }
.video-card { display: flex; gap: .9rem; align-items: center; padding: .75rem; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--text); text-decoration: none; }
.video-card:hover { box-shadow: var(--shadow-1); }
.video-thumb { flex: 0 0 auto; width: 4.2rem; aspect-ratio: 16 / 9; border-radius: 8px; background: #1b1e29; color: #fff; display: grid; place-items: center; }
.video-thumb .icon { width: 1.6rem; height: 1.6rem; }
.video-text { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }

/* ---------- Multi-school platform ---------- */
.narrow { max-width: 560px; margin-inline: auto; }
.platform-main { max-width: 1100px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.platform-card { margin-top: 1.5rem; }
.platform .public-header form { margin: 0; }
.platform-nav { display: flex; flex-wrap: wrap; }
.platform-nav a[aria-current="page"] { color: var(--accent-dark); text-decoration: underline; }
.step-no { display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--accent-dark); color: #fff; font-size: .95rem; }
.setup-choice { display: grid; gap: 1rem; margin: 1rem 0 1.5rem; }
@media (min-width: 700px) { .setup-choice { grid-template-columns: 1fr 1fr; } }
.choice-card { display: flex; flex-direction: column; gap: .5rem; padding: 1.25rem; border-radius: var(--radius); border: 2px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; box-shadow: var(--shadow-1); }
.choice-card:hover, .choice-card:focus-visible { border-color: var(--accent); box-shadow: var(--shadow-2); }
.choice-card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Video sessions ---------- */
.card-head-row { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.card-head-row .card-title { margin: 0; }
.meeting-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.meeting-item { display: grid; grid-template-columns: 5.2rem 1fr; gap: .4rem .9rem; align-items: center; padding: .75rem; border-radius: var(--radius-sm); background: var(--accent-soft); }
.meeting-item.state-live { background: #fff0ef; box-shadow: inset 4px 0 0 #e03131; }
.meeting-item.state-cancelled, .meeting-item.state-ended { opacity: .75; }
.meeting-when { display: flex; flex-direction: column; line-height: 1.2; }
.meeting-when span { font-size: .85rem; color: var(--muted); }
.meeting-what { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.meeting-action { grid-column: 1 / -1; }
@media (min-width: 640px) { .meeting-item { grid-template-columns: 6rem 1fr auto; } .meeting-action { grid-column: auto; } }
.btn-join { width: 100%; justify-content: center; }
@media (min-width: 640px) { .btn-join { width: auto; } }
.meeting-hero { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.meeting-hero.state-live { box-shadow: inset 0 4px 0 #e03131, var(--shadow-1); }
.meeting-big-time { font-size: 1.25rem; font-weight: 800; margin: .4rem 0 .2rem; }
.meeting-hero-action { flex: 1 1 16rem; max-width: 26rem; }
.meeting-hero-action .btn-join { width: 100%; }
code.break { word-break: break-all; }
body.meeting-page { background: #11131a; margin: 0; }
body.meeting-page main { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.meeting-room-bar { display: flex; align-items: center; gap: .75rem; padding: .5rem .75rem; background: #1b1e29; color: #e6e9f2; flex-wrap: wrap; }
.meeting-room-bar .muted { color: #b8bfd0; }
.meeting-room-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meeting-room { flex: 1; min-height: 0; position: relative; }
.meeting-room iframe { border: 0; }
.meeting-room-loading { color: #e6e9f2; text-align: center; padding: 3rem 1rem; }
.check .muted { font-weight: 400; }
