/* =====================================================================
   TONGUE — design system
   ---------------------------------------------------------------------
   One stylesheet for every area. Pages are built from the components
   below; page-specific CSS files (messages.css, classroom.css) only add
   what is unique to that screen.

   Navy  #082A44  primary: navigation, headings, primary buttons
   Pink  #F05A97  accent: highlights, active states, the main action
   White #FFFFFF  cards and surfaces
   Light #F7F8FA  page background
   ===================================================================== */

:root {
    --navy: #082A44;
    --navy-700: #0d3a5c;
    --navy-600: #164a73;
    --navy-100: #e3ebf2;
    --navy-50: #f0f4f8;
    --pink: #F05A97;
    --pink-600: #d9417f;
    --pink-100: #fde4ee;
    --pink-50: #fef3f8;
    --white: #FFFFFF;
    --bg: #F7F8FA;

    --text: #0f2233;
    --text-2: #4a5b6b;
    --text-3: #7c8a97;
    --border: #e4e8ed;
    --border-strong: #cfd6de;

    --success: #1f8a5b;
    --success-bg: #e5f5ee;
    --warning: #b7791f;
    --warning-bg: #fdf3dc;
    --danger: #c53a4c;
    --danger-bg: #fdeaec;
    --info: #2b6cb0;
    --info-bg: #e6f0fb;

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(8, 42, 68, .05);
    --shadow: 0 1px 3px rgba(8, 42, 68, .06), 0 4px 14px rgba(8, 42, 68, .05);
    --shadow-lg: 0 12px 36px rgba(8, 42, 68, .16);

    --sidebar-w: 248px;
    --topbar-h: 60px;
    --bottombar-h: 60px;
    --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    --ease: cubic-bezier(.2, .7, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
h1, h2, h3, h4 { margin: 0; color: var(--navy); line-height: 1.25; font-weight: 700; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.02rem; }
h4 { font-size: .92rem; }
p { margin: 0; }
a { color: var(--navy-600); text-decoration: none; }
a:hover { color: var(--pink-600); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.icon { flex: none; vertical-align: middle; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--pink-100); }

/* ----------------------------------------------------------- utilities */
.muted { color: var(--text-2); }
.subtle { color: var(--text-3); }
.small { font-size: .86rem; }
.tiny { font-size: .78rem; }
.strong { font-weight: 600; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.text-center { text-align: center; }
.text-end { text-align: end; }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-accent { color: var(--pink-600); }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 6px; } .mt-2 { margin-top: 12px; } .mt-3 { margin-top: 18px; } .mt-4 { margin-top: 28px; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: 6px; } .mb-2 { margin-bottom: 12px; } .mb-3 { margin-bottom: 18px; } .mb-4 { margin-bottom: 28px; }
.w-full { width: 100%; }
.hide-mobile { }
.show-mobile { display: none !important; }

/* stack = vertical rhythm, row = horizontal group, split = two ends */
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.stack-lg { display: flex; flex-direction: column; gap: 24px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row-tight { display: flex; align-items: center; gap: 6px; }
.row-nowrap { flex-wrap: nowrap; }
.split { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* ---------------------------------------------------------------- shell */
.sidebar {
    position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); z-index: 40;
    background: var(--navy); color: #fff;
    display: flex; flex-direction: column;
    transition: transform .22s var(--ease);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 18px 20px; color: #fff; }
.brand:hover { color: #fff; }
.brand-mark {
    width: 34px; height: 34px; border-radius: 10px; background: var(--pink); color: #fff;
    display: grid; place-items: center; font-weight: 800; font-size: 18px;
}
.brand-name { font-weight: 800; font-size: 1.15rem; letter-spacing: .2px; }
.nav { flex: 1; overflow-y: auto; padding: 6px 12px 12px; display: flex; flex-direction: column; gap: 2px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent; }
.nav-link {
    display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px;
    color: rgba(255, 255, 255, .74); font-weight: 500; font-size: .93rem;
    transition: background .15s, color .15s;
}
.nav-link:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nav-link.is-active { background: rgba(240, 90, 151, .18); color: #fff; }
.nav-link.is-active .icon { color: var(--pink); }
.nav-badge, .dot-badge {
    margin-inline-start: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
    background: var(--pink); color: #fff; font-size: .7rem; font-weight: 700;
    display: inline-grid; place-items: center; line-height: 1;
}
.sidebar-foot { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-top: 1px solid rgba(255, 255, 255, .1); }
.sidebar-user { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; color: #fff; }
.sidebar-user:hover { color: #fff; }
.sidebar-user-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.sidebar-user-text strong { font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user-text small { color: rgba(255, 255, 255, .6); font-size: .75rem; }
.sidebar .icon-btn { color: rgba(255, 255, 255, .7); }
.sidebar .icon-btn:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.sidebar-scrim { position: fixed; inset: 0; background: rgba(8, 42, 68, .45); z-index: 39; }

.topbar {
    position: sticky; top: 0; z-index: 30; height: var(--topbar-h);
    margin-inline-start: var(--sidebar-w);
    display: flex; align-items: center; gap: 12px; padding: 0 24px;
    background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}
.topbar .topbar-menu { display: none; }
.topbar-title { font-size: 1.08rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-actions { display: flex; align-items: center; gap: 6px; }
.topbar-avatar { display: block; border-radius: 50%; }
.topbar .icon-btn { position: relative; }
.topbar .dot-badge { position: absolute; top: 2px; inset-inline-end: 0; min-width: 17px; height: 17px; font-size: .64rem; padding: 0 4px; border: 2px solid #fff; }

.main { margin-inline-start: var(--sidebar-w); padding: 24px; max-width: calc(1280px + var(--sidebar-w)); min-height: calc(100vh - var(--topbar-h)); }
.app-flush .main { padding: 0; max-width: none; }
.app-bare .main { margin: 0; padding: 0; max-width: none; min-height: 100vh; }

.bottombar { display: none; }

/* ------------------------------------------------------------ page head */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1, .page-head h2 { font-size: 1.35rem; }
.page-sub { color: var(--text-2); margin-top: 3px; font-size: .92rem; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.crumbs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .84rem; color: var(--text-3); margin-bottom: 8px; }
.crumbs a { color: var(--text-2); }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 26px 0 12px; }
.section-title h2, .section-title h3 { font-size: 1.05rem; }

/* ----------------------------------------------------------------- card */
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.card-head h2, .card-head h3 { font-size: 1rem; }
.card-body { padding: 18px; }
.card-foot { padding: 12px 18px; border-top: 1px solid var(--border); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.card-pad { padding: 18px; }
.card-link { display: block; color: inherit; transition: box-shadow .15s, border-color .15s, transform .15s; }
.card-link:hover { color: inherit; border-color: var(--border-strong); box-shadow: var(--shadow); }
.card-accent { border-inline-start: 4px solid var(--pink); }
.card-navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.card-navy h2, .card-navy h3, .card-navy h4 { color: #fff; }
.card-navy .muted { color: rgba(255, 255, 255, .72); }

/* The "next required action" block at the top of each dashboard. */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 100%);
    color: #fff; border-radius: var(--radius-lg); padding: 22px 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
    position: relative; overflow: hidden;
}
.hero::after { content: ""; position: absolute; inset-inline-end: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: rgba(240, 90, 151, .16); pointer-events: none; }
.hero > * { position: relative; z-index: 1; }
.hero h2 { color: #fff; font-size: 1.3rem; }
.hero .hero-kicker { color: var(--pink); font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.hero .hero-meta { color: rgba(255, 255, 255, .8); margin-top: 6px; display: flex; gap: 14px; flex-wrap: wrap; font-size: .92rem; }
.hero .hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-light { background: var(--white); color: var(--text); border: 1px solid var(--border); }
.hero-light::after { display: none; }
.hero-light h2 { color: var(--navy); }
.hero-light .hero-meta { color: var(--text-2); }

.stat { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stat-label { color: var(--text-2); font-size: .82rem; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.stat-value { font-size: 1.6rem; font-weight: 700; color: var(--navy); line-height: 1.15; }
.stat-note { font-size: .8rem; color: var(--text-3); }
a.stat { color: inherit; transition: border-color .15s, box-shadow .15s; }
a.stat:hover { border-color: var(--border-strong); box-shadow: var(--shadow); color: inherit; }
.stat-danger .stat-value { color: var(--danger); }
.stat-warning .stat-value { color: var(--warning); }
.stat-accent .stat-value { color: var(--pink-600); }

/* -------------------------------------------------------------- buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 40px; padding: 8px 16px; border-radius: 10px; border: 1px solid transparent;
    font-weight: 600; font-size: .92rem; line-height: 1.2; white-space: nowrap; cursor: pointer;
    background: var(--navy-50); color: var(--navy);
    transition: background .15s, border-color .15s, color .15s, transform .08s, box-shadow .15s;
    text-decoration: none; user-select: none;
}
.btn:hover { background: var(--navy-100); color: var(--navy); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn.is-disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-700); color: #fff; }
.btn-accent { background: var(--pink); color: #fff; box-shadow: 0 2px 8px rgba(240, 90, 151, .32); }
.btn-accent:hover { background: var(--pink-600); color: #fff; }
.btn-outline { background: var(--white); border-color: var(--border-strong); color: var(--navy); }
.btn-outline:hover { background: var(--navy-50); border-color: var(--navy-600); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--navy-50); color: var(--navy); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #a82e3e; color: #fff; }
.btn-danger-outline { background: var(--white); border-color: #efc2c8; color: var(--danger); }
.btn-danger-outline:hover { background: var(--danger-bg); color: var(--danger); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #17704a; color: #fff; }
.btn-sm { min-height: 32px; padding: 5px 11px; font-size: .84rem; border-radius: 8px; gap: 6px; }
.btn-lg { min-height: 48px; padding: 12px 22px; font-size: 1rem; border-radius: 12px; }
.btn-block { width: 100%; }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .5); border-top-color: #fff; animation: spin .7s linear infinite; }
.btn-outline.is-loading::after, .btn-ghost.is-loading::after, .btn:not([class*="btn-"]).is-loading::after { border-color: rgba(8, 42, 68, .25); border-top-color: var(--navy); }
.icon-btn { width: 38px; height: 38px; display: inline-grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--text-2); transition: background .15s, color .15s; flex: none; }
.icon-btn:hover { background: var(--navy-50); color: var(--navy); }
.icon-btn-sm { width: 30px; height: 30px; border-radius: 8px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--navy-600); font-weight: 600; font-size: .86rem; }
.link-btn:hover { color: var(--pink-600); }
.inline-form { display: inline; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- forms */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-weight: 600; font-size: .86rem; color: var(--navy); }
.field-hint { font-size: .8rem; color: var(--text-3); }
.field-error { font-size: .8rem; color: var(--danger); margin: 0; }
.req::after { content: " *"; color: var(--pink-600); }
.input, .select, .textarea {
    width: 100%; min-height: 40px; padding: 8px 12px; border: 1px solid var(--border-strong); border-radius: 10px;
    background: var(--white); color: var(--text); transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-inline-end: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234a5b6b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(240, 90, 151, .16); }
.input.is-invalid, .select.is-invalid, .textarea.is-invalid { border-color: var(--danger); }
.input:disabled, .select:disabled, .textarea:disabled { background: var(--bg); color: var(--text-3); }
.input-sm, .select-sm { min-height: 32px; padding: 4px 10px; font-size: .86rem; border-radius: 8px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.form-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 4px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--pink); flex: none; }
.input-group { display: flex; gap: 8px; align-items: center; }
.search { position: relative; }
.search .icon { position: absolute; inset-inline-start: 11px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.search .input { padding-inline-start: 34px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filters .input, .filters .select { width: auto; min-width: 150px; }
.filters .search { flex: 1 1 220px; }
.filters .search .input { width: 100%; }

/* switch: <label class="switch"><input type="checkbox"><span></span> Text</label> */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: .92rem; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch span { width: 40px; height: 22px; border-radius: 12px; background: var(--border-strong); position: relative; transition: background .18s; flex: none; }
.switch span::after { content: ""; position: absolute; top: 2px; inset-inline-start: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .18s var(--ease); }
.switch input:checked + span { background: var(--pink); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--pink); outline-offset: 2px; }
.switch input:disabled + span { opacity: .5; }

/* segmented choice: radio buttons as pills */
.segmented { display: inline-flex; background: var(--navy-50); border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.segmented label { cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: block; padding: 6px 12px; border-radius: 8px; font-size: .86rem; font-weight: 600; color: var(--text-2); transition: background .15s, color .15s; }
.segmented input:checked + span { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.segmented input:focus-visible + span { outline: 2px solid var(--pink); }

/* --------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); }
.card > .table-wrap { border: 0; border-radius: 0 0 var(--radius) var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: start; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); font-weight: 600; padding: 11px 16px; background: #fbfcfd; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: #fafbfc; }
.table .col-actions { text-align: end; white-space: nowrap; width: 1%; }
.table .col-check { width: 36px; }
.cell-person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cell-person > div { min-width: 0; }
.cell-person strong { display: block; font-weight: 600; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell-person small { color: var(--text-3); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* -------------------------------------------------- badges / avatar / bar */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: .75rem; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.badge-neutral { background: #eef1f4; color: var(--text-2); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-accent { background: var(--pink-100); color: var(--pink-600); }
.badge-navy { background: var(--navy); color: #fff; }
.type-chip { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; color: var(--text); }
.type-chip::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--chip, var(--navy)); flex: none; }
.level-chip { display: inline-grid; place-items: center; min-width: 34px; height: 24px; padding: 0 8px; border-radius: 7px; background: var(--navy); color: #fff; font-weight: 700; font-size: .78rem; }

.avatar { border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-weight: 700; overflow: hidden; flex: none; user-select: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-stack { display: flex; }
.avatar-stack .avatar { border: 2px solid #fff; margin-inline-start: -8px; }
.avatar-stack .avatar:first-child { margin-inline-start: 0; }

.progress { flex: 1; height: 8px; background: var(--navy-100); border-radius: 999px; overflow: hidden; min-width: 60px; }
.progress-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--pink), #f58bb5); border-radius: 999px; transition: width .4s var(--ease); }
.progress-row { display: flex; align-items: center; gap: 10px; }
.progress-label { font-weight: 700; font-size: .84rem; color: var(--navy); min-width: 38px; text-align: end; }
.progress-lg .progress { height: 12px; }

/* ---------------------------------------------------------------- lists */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--border); min-width: 0; }
.list-item:last-child { border-bottom: 0; }
a.list-item { color: inherit; transition: background .12s; }
a.list-item:hover { background: #fafbfc; color: inherit; }
.list-main { flex: 1; min-width: 0; }
.list-title { font-weight: 600; color: var(--navy); }
.list-meta { color: var(--text-2); font-size: .84rem; display: flex; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
.list-meta span { display: inline-flex; align-items: center; gap: 4px; }
.list-actions { display: flex; gap: 6px; align-items: center; flex: none; flex-wrap: wrap; justify-content: flex-end; }

/* definition rows: label left, value right */
.dl { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 10px 16px; margin: 0; font-size: .92rem; }
.dl dt { color: var(--text-2); }
.dl dd { margin: 0; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }

/* a session row/card used on every dashboard and schedule */
.session { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--border); min-width: 0; }
.session:last-child { border-bottom: 0; }
.session-time { width: 74px; flex: none; text-align: center; padding: 8px 6px; border-radius: 10px; background: var(--navy-50); color: var(--navy); line-height: 1.2; }
.session-time strong { display: block; font-size: .95rem; }
.session-time small { font-size: .72rem; color: var(--text-2); }
.session-body { flex: 1; min-width: 0; }
.session-title { font-weight: 600; color: var(--navy); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.session-meta { color: var(--text-2); font-size: .84rem; display: flex; gap: 12px; flex-wrap: wrap; margin-top: 3px; }
.session-meta span { display: inline-flex; align-items: center; gap: 5px; }
.session-actions { display: flex; gap: 8px; align-items: center; flex: none; flex-wrap: wrap; justify-content: flex-end; }
.session.is-break { background: repeating-linear-gradient(135deg, #fafbfc, #fafbfc 10px, #f3f5f8 10px, #f3f5f8 20px); }
.session.is-break .session-time { background: #e9edf1; }
.session.is-cancelled .session-title { text-decoration: line-through; color: var(--text-3); }
.session.is-live .session-time { background: var(--pink); color: #fff; }
.session.is-live .session-time small { color: rgba(255, 255, 255, .85); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); display: inline-block; animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(240, 90, 151, .5); } 70% { box-shadow: 0 0 0 8px rgba(240, 90, 151, 0); } 100% { box-shadow: 0 0 0 0 rgba(240, 90, 151, 0); } }
.day-label { padding: 10px 18px; background: #fbfcfd; border-bottom: 1px solid var(--border); font-weight: 700; font-size: .82rem; color: var(--text-2); text-transform: uppercase; letter-spacing: .04em; position: sticky; top: var(--topbar-h); z-index: 2; }
.day-label.is-today { color: var(--pink-600); }

/* checklist (roadmap) */
.checklist { display: flex; flex-direction: column; }
.check-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--border); }
.check-item:last-child { border-bottom: 0; }
.check-box { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--border-strong); background: #fff; display: grid; place-items: center; color: transparent; flex: none; margin-top: 1px; transition: all .15s; padding: 0; }
button.check-box:hover { border-color: var(--pink); }
.check-item.is-done .check-box { background: var(--success); border-color: var(--success); color: #fff; }
.check-item.is-done .check-title { color: var(--text-2); }
.check-title { font-weight: 600; color: var(--navy); }
.check-note { color: var(--text-3); font-size: .82rem; margin-top: 2px; }
.stage-head { padding: 10px 18px; background: var(--navy-50); font-weight: 700; color: var(--navy); font-size: .88rem; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--border); }

/* ----------------------------------------------------------------- tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { padding: 10px 14px; font-weight: 600; font-size: .9rem; color: var(--text-2); border: 0; background: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; }
.tab:hover { color: var(--navy); }
.tab.is-active { color: var(--navy); border-bottom-color: var(--pink); }
.tab .badge { padding: 1px 7px; }

/* ---------------------------------------------------------------- alerts */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: var(--radius); border: 1px solid; font-size: .92rem; }
.alert .icon { margin-top: 2px; }
.alert-body { flex: 1; min-width: 0; }
.alert-title { font-weight: 700; display: block; }
.alert-info { background: var(--info-bg); border-color: #c5dcf5; color: #1e4f85; }
.alert-success { background: var(--success-bg); border-color: #bfe5d3; color: #176544; }
.alert-warning { background: var(--warning-bg); border-color: #f1dca6; color: #8a5a12; }
.alert-danger { background: var(--danger-bg); border-color: #f3c6cc; color: #9c2a3a; }
.alert-accent { background: var(--pink-50); border-color: var(--pink-100); color: #a52c61; }
.alert .btn { flex: none; }

/* ---------------------------------------------------------- empty / load */
.empty { text-align: center; padding: 40px 20px; color: var(--text-2); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--navy-50); color: var(--navy-600); display: grid; place-items: center; margin-bottom: 6px; }
.empty h3 { font-size: 1.02rem; }
.empty p { max-width: 380px; font-size: .9rem; }
.empty .btn { margin-top: 8px; }
.empty-sm { padding: 24px 16px; }
.skeleton { display: block; height: 14px; border-radius: 7px; background: linear-gradient(90deg, #eef1f4 25%, #f7f8fa 50%, #eef1f4 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite linear; }
.skeleton-list { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.skeleton-list .skeleton:nth-child(2) { width: 80%; } .skeleton-list .skeleton:nth-child(3) { width: 60%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--navy-100); border-top-color: var(--pink); animation: spin .7s linear infinite; display: inline-block; }

/* ------------------------------------------------------------- dropdown */
.dropdown { position: relative; display: inline-block; }
.dropdown-menu { position: absolute; top: calc(100% + 6px); inset-inline-start: 0; z-index: 50; min-width: 200px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 6px; animation: pop .14s var(--ease); }
.dropdown-menu-end { inset-inline-start: auto; inset-inline-end: 0; }
.dropdown-item { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 10px; border: 0; background: none; border-radius: 8px; text-align: start; font-size: .9rem; color: var(--text); }
.dropdown-item:hover { background: var(--navy-50); color: var(--navy); }
.dropdown-item.is-danger { color: var(--danger); }
.dropdown-item.is-danger:hover { background: var(--danger-bg); }
.dropdown-sep { height: 1px; background: var(--border); margin: 6px 0; }
.dropdown-menu form { margin: 0; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }

.notif-menu { width: 340px; max-width: calc(100vw - 24px); padding: 0; }
.notif-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.notif-list { max-height: 380px; overflow-y: auto; }
.notif-item { display: block; padding: 11px 14px; border-bottom: 1px solid var(--border); color: inherit; }
.notif-item:last-child { border-bottom: 0; }
.notif-item:hover { background: #fafbfc; color: inherit; }
.notif-item.is-unread { background: var(--pink-50); }
.notif-item strong { display: block; font-size: .88rem; color: var(--navy); }
.notif-item p { font-size: .82rem; color: var(--text-2); }
.notif-item time { font-size: .74rem; color: var(--text-3); }

/* ------------------------------------------------------- modal & drawer */
.modal, .drawer { position: fixed; inset: 0; z-index: 100; display: flex; }
.modal { align-items: center; justify-content: center; padding: 16px; }
.modal::before, .drawer::before { content: ""; position: absolute; inset: 0; background: rgba(8, 42, 68, .5); animation: fade .16s; }
.modal-dialog { position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: rise .2s var(--ease); }
.modal-lg .modal-dialog { max-width: 760px; }
.modal-sm .modal-dialog { max-width: 400px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.modal-head h3 { font-size: 1.05rem; }
.modal-body { padding: 20px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.modal-dialog > form { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.drawer { justify-content: flex-end; }
.drawer-panel { position: relative; width: 100%; max-width: 460px; height: 100%; background: #fff; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: slide .22s var(--ease); }
.drawer-panel > form { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.drawer-lg .drawer-panel { max-width: 620px; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes slide { from { transform: translateX(100%); } }
body.has-overlay { overflow: hidden; }

/* --------------------------------------------------------------- toasts */
.toasts { position: fixed; z-index: 200; bottom: 20px; inset-inline-end: 20px; display: flex; flex-direction: column; gap: 8px; max-width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: flex-start; gap: 10px; background: var(--navy); color: #fff; padding: 12px 14px; border-radius: var(--radius); box-shadow: var(--shadow-lg); font-size: .9rem; animation: rise .2s var(--ease); cursor: default; }
.toast .icon { margin-top: 1px; color: var(--pink); }
.toast-success .icon { color: #6fe0ae; }
.toast-danger { background: #8f2535; }
.toast-danger .icon { color: #ffd0d6; }
.toast a { color: #fff; text-decoration: underline; }
.toast.is-leaving { opacity: 0; transform: translateY(6px); transition: all .2s; }
.toast-body { flex: 1; min-width: 0; }
.toast-body strong { display: block; }
.toast-body span { color: rgba(255, 255, 255, .82); font-size: .84rem; }

/* ----------------------------------------------------------- pagination */
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 4px 0; font-size: .86rem; color: var(--text-2); flex-wrap: wrap; }
.pagination-links { display: flex; gap: 6px; }

/* ---------------------------------------------- attention (admin) blocks */
.attention-group { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.attention-head { display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-bottom: 1px solid var(--border); }
.attention-head .attention-icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.tone-danger .attention-icon { background: var(--danger-bg); color: var(--danger); }
.tone-warning .attention-icon { background: var(--warning-bg); color: var(--warning); }
.tone-info .attention-icon { background: var(--info-bg); color: var(--info); }
.tone-accent .attention-icon { background: var(--pink-100); color: var(--pink-600); }
.attention-head h3 { flex: 1; font-size: .98rem; }
.attention-count { font-weight: 700; color: var(--navy); background: var(--navy-50); border-radius: 999px; padding: 2px 10px; font-size: .82rem; }

/* ----------------------------------------------- permission matrix (admin) */
.perm-group { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; overflow: hidden; }
.perm-group-head { padding: 11px 16px; background: var(--navy-50); font-weight: 700; color: var(--navy); font-size: .88rem; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.perm-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border-top: 1px solid var(--border); }
.perm-row strong { display: block; font-size: .92rem; color: var(--navy); }
.perm-row small { color: var(--text-2); font-size: .82rem; }

/* group comparison cards (student) */
.group-card { display: flex; flex-direction: column; gap: 14px; padding: 18px; }
.group-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.group-card .price { font-size: 1.3rem; font-weight: 800; color: var(--navy); }
.seats { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 600; }
.instructor-mini { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.instructor-mini small { color: var(--text-2); display: block; }

/* ---------------------------------------------------------- guest pages */
.guest { background: #fff; }
.guest-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.guest-aside { background: var(--navy); color: #fff; padding: 40px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.guest-aside .brand { padding: 0; position: relative; z-index: 1; }
.guest-pitch { position: relative; z-index: 1; max-width: 420px; }
.guest-pitch h2 { color: #fff; font-size: 2rem; line-height: 1.2; margin-bottom: 14px; }
.guest-pitch p { color: rgba(255, 255, 255, .78); font-size: 1.02rem; }
.guest-shape { position: absolute; border-radius: 50%; }
.guest-shape-a { width: 300px; height: 300px; background: var(--pink); inset-inline-end: -150px; bottom: -170px; opacity: .92; }
.guest-shape-b { width: 220px; height: 220px; background: rgba(255, 255, 255, .06); inset-inline-end: 60px; top: -80px; }
.guest-main { display: flex; flex-direction: column; justify-content: center; padding: 40px clamp(20px, 6vw, 80px); max-width: 620px; width: 100%; margin: 0 auto; gap: 18px; }
.guest-brand-mobile { display: none; color: var(--navy); padding: 0; }
.guest-brand-mobile:hover { color: var(--navy); }
.guest-main h1 { font-size: 1.6rem; }
.guest-main .lead { color: var(--text-2); margin-top: 4px; }
.guest-form { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.guest-alt { font-size: .92rem; color: var(--text-2); text-align: center; }
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 30px 16px; }
.error-page .code { font-size: 4rem; font-weight: 800; color: var(--pink); line-height: 1; }

/* ============================================================ responsive */
@media (max-width: 1100px) {
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-main { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
    .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); width: min(84vw, 300px); }
    body.sidebar-open .sidebar { transform: none; }
    .topbar, .main { margin-inline-start: 0; }
    .topbar { padding: 0 12px; padding-top: env(safe-area-inset-top); height: calc(var(--topbar-h) + env(safe-area-inset-top)); }
    .topbar .topbar-menu { display: inline-grid; }
    .main { padding: 16px 14px calc(var(--bottombar-h) + 24px + env(safe-area-inset-bottom)); }
    .app-flush .main { padding: 0; }
    .bottombar {
        position: fixed; inset: auto 0 0 0; z-index: 35; height: calc(var(--bottombar-h) + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom);
        display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
        background: #fff; border-top: 1px solid var(--border);
    }
    .bottombar-link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: .68rem; font-weight: 600; color: var(--text-3); background: none; border: 0; padding: 0 2px; min-width: 0; }
    .bottombar-link span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .bottombar-link.is-active { color: var(--pink-600); }
    .bottombar-icon { position: relative; display: grid; }
    .bottombar-icon .dot-badge { position: absolute; top: -6px; inset-inline-end: -10px; min-width: 16px; height: 16px; font-size: .62rem; padding: 0 4px; }
    .toasts { bottom: calc(var(--bottombar-h) + 12px + env(safe-area-inset-bottom)); inset-inline: 12px; max-width: none; }
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .guest-shell { grid-template-columns: 1fr; }
    .guest-aside { display: none; }
    .guest-brand-mobile { display: flex; }
    .guest-main { justify-content: flex-start; padding-top: 32px; }
    .day-label { top: calc(var(--topbar-h) + env(safe-area-inset-top)); }
}
@media (max-width: 640px) {
    body { font-size: 14.5px; }
    .grid-2, .grid-3, .form-grid, .form-grid-3 { grid-template-columns: minmax(0, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .hide-mobile { display: none !important; }
    .show-mobile { display: initial !important; }
    .page-head h1, .page-head h2 { font-size: 1.2rem; }
    .hero { padding: 18px; }
    .hero h2 { font-size: 1.12rem; }
    .hero .btn { width: 100%; }
    .card-body, .card-pad { padding: 14px; }
    .card-head { padding: 12px 14px; }
    .stat { padding: 12px 14px; }
    .stat-value { font-size: 1.3rem; }
    .list-item, .session, .check-item { padding: 12px 14px; }
    .session { flex-wrap: wrap; }
    .session-actions { width: 100%; justify-content: stretch; }
    .session-actions .btn { flex: 1; }
    .session-time { width: 64px; }
    .dl { grid-template-columns: 1fr; gap: 2px 0; }
    .dl dd { margin-bottom: 8px; }
    .modal { padding: 0; align-items: flex-end; }
    .modal-dialog { max-width: none !important; border-radius: var(--radius-lg) var(--radius-lg) 0 0; max-height: 92vh; padding-bottom: env(safe-area-inset-bottom); animation: sheet .24s var(--ease); }
    .drawer-panel { max-width: none !important; }
    .modal-foot .btn, .form-actions .btn { flex: 1; }
    .filters .input, .filters .select { flex: 1 1 140px; min-width: 0; }
    .perm-row { gap: 10px; }

    /* Tables become stacked cards: each <td data-label="…"> prints its label. */
    .table-stack thead { display: none; }
    .table-stack, .table-stack tbody, .table-stack tr, .table-stack td { display: block; width: 100%; }
    .table-stack tr { padding: 12px 14px; border-bottom: 1px solid var(--border); }
    .table-stack tr:last-child { border-bottom: 0; }
    .table-stack td { padding: 3px 0; border: 0; display: flex; justify-content: space-between; gap: 12px; align-items: center; text-align: end; }
    .table-stack td::before { content: attr(data-label); color: var(--text-3); font-size: .78rem; font-weight: 600; text-align: start; flex: none; }
    .table-stack td[data-label=""]::before, .table-stack td:not([data-label])::before { display: none; }
    .table-stack td.col-primary { justify-content: flex-start; text-align: start; padding-bottom: 6px; }
    .table-stack td.col-actions { justify-content: flex-end; padding-top: 8px; width: 100%; }
    .table-stack .cell-person { text-align: start; }
}
@keyframes sheet { from { transform: translateY(100%); } }
@media (max-width: 360px) {
    .grid-4 { grid-template-columns: minmax(0, 1fr); }
    .main { padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media print {
    .sidebar, .topbar, .bottombar, .toasts, .page-actions { display: none !important; }
    .main { margin: 0; padding: 0; }
}

/* ============================================= easy access: sections, search */
.nav-section { padding: 14px 12px 4px; font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: rgba(255, 255, 255, .42); }

.topbar-search { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px 0 12px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--bg); color: var(--text-2); font-size: .86rem; transition: border-color .15s, background .15s; }
.topbar-search:hover { border-color: var(--navy-600); background: #fff; color: var(--navy); }
.topbar-search span { min-width: 92px; text-align: start; }
kbd { font-family: inherit; font-size: .7rem; font-weight: 600; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--border-strong); background: #fff; color: var(--text-2); white-space: nowrap; }

.palette { position: fixed; inset: 0; z-index: 150; display: flex; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px; background: rgba(8, 42, 68, .5); animation: fade .14s; }
.palette-dialog { width: 100%; max-width: 580px; max-height: 70vh; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; animation: rise .18s var(--ease); }
.palette-input { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border); color: var(--text-3); }
.palette-input input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 1rem; background: transparent; color: var(--text); }
.palette-results { overflow-y: auto; padding: 6px; flex: 1; }
.palette-group { padding: 10px 10px 4px; font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); }
.palette-item { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 10px; color: var(--text); }
.palette-item:hover, .palette-item.is-active { background: var(--navy-50); color: var(--navy); }
.palette-item.is-active { box-shadow: inset 3px 0 0 var(--pink); }
.palette-icon { width: 30px; height: 30px; border-radius: 8px; background: var(--navy-50); color: var(--navy-600); display: grid; place-items: center; flex: none; }
.palette-item.is-active .palette-icon { background: #fff; color: var(--pink-600); }
.palette-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.palette-text strong { font-weight: 600; font-size: .93rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette-text small { color: var(--text-3); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette-empty { padding: 18px 12px; text-align: center; color: var(--text-3); font-size: .88rem; }
.palette-foot { display: flex; gap: 16px; padding: 9px 14px; border-top: 1px solid var(--border); font-size: .76rem; color: var(--text-3); background: #fbfcfd; }
.palette-foot span { display: inline-flex; align-items: center; gap: 5px; }

@media (max-width: 900px) {
    .topbar-search { width: 38px; padding: 0; justify-content: center; border: 0; background: transparent; }
    .topbar-search span, .topbar-search kbd { display: none; }
    .palette { padding: 0; }
    .palette-dialog { max-width: none; max-height: none; height: 100%; border-radius: 0; padding-top: env(safe-area-inset-top); }
    .palette-foot { display: none; }
    .palette-item { padding: 12px 10px; }
}

/* Long technical strings (paths, notes) must wrap instead of widening the page. */
.list-main, .list-meta { min-width: 0; }
.list-meta span, .list-title { overflow-wrap: anywhere; }
@media (max-width: 640px) {
    .badge { white-space: normal; text-align: start; max-width: 100%; }
}

/* The logo image (transparent PNG). Height is set on the tag; width follows. */
.brand-logo { display: block; flex: none; height: auto; max-width: none; }
.brand .brand-logo { height: 30px; width: auto; }
.guest-aside .brand .brand-logo { height: 34px; }

/* =====================================================================
   DESIGN LANGUAGE v2  —  docs/DESIGN.md
   ---------------------------------------------------------------------
   One refined skin over every component above: the same class names,
   so every page of the Student, Instructor and Admin areas picks it up.
   Navy is the foundation, pink is the one accent, depth comes from fine
   borders and soft navy-tinted shadows.
   ===================================================================== */
:root {
    --navy-950: #041B2D;
    --navy-800: #0C3556;
    --navy-700: #114468;
    --navy-600: #1A557F;
    --navy-200: #C9D6E2;
    --navy-100: #E3EBF2;
    --navy-50: #F1F5F9;
    --pink-600: #DB3F80;

    --ink: #0C2236;
    --text: #1B3044;
    --text-2: #51637A;
    --text-3: #8191A3;
    --border: #E5EAF0;
    --border-strong: #CFD8E2;

    --success: #17855A;
    --warning: #B5760F;
    --danger: #C8384C;
    --info: #2A6CB5;

    --radius-sm: 10px;
    --radius: 14px;
    --radius-lg: 20px;
    --r-xl: 26px;
    --r-pill: 999px;

    --shadow-xs: 0 1px 2px rgba(8, 42, 68, .06);
    --shadow-sm: 0 1px 2px rgba(8, 42, 68, .05), 0 4px 12px rgba(8, 42, 68, .05);
    --shadow: 0 2px 4px rgba(8, 42, 68, .04), 0 12px 28px rgba(8, 42, 68, .08);
    --shadow-lg: 0 8px 16px rgba(8, 42, 68, .06), 0 32px 64px rgba(8, 42, 68, .14);
    --ring: 0 0 0 3px rgba(240, 90, 151, .32);

    --font: "Tongue Sans", "Segoe UI", system-ui, -apple-system, "Noto Sans Arabic", Tahoma, sans-serif;
    --ease: cubic-bezier(.2, .7, .2, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --t-fast: 120ms;
    --t: 200ms;
    --t-slow: 360ms;
}

/* ------------------------------------------------------------ type */
body { font-size: 15px; line-height: 1.6; color: var(--text); letter-spacing: -.005em; text-rendering: optimizeLegibility; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 750; letter-spacing: -.022em; }
h1 { font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; letter-spacing: -.015em; }
a { color: var(--navy-600); transition: color var(--t-fast); }
a:hover { color: var(--pink-600); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }
.muted { color: var(--text-2); }
.subtle { color: var(--text-3); }
strong, .strong { font-weight: 650; }

/* ----------------------------------------------------------- shell */
.sidebar {
    background: linear-gradient(180deg, #082A44 0%, #06233A 100%);
    border-inline-end: 1px solid rgba(255, 255, 255, .05);
    overflow: hidden;
}
.sidebar::before {
    content: ""; position: absolute; inset: auto auto -120px -120px; width: 320px; height: 320px; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(240, 90, 151, .16), rgba(240, 90, 151, 0)); pointer-events: none;
}
.sidebar > * { position: relative; }
.brand { padding: 20px 20px 12px; gap: 11px; }
.brand-name { font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em; }
.nav { padding: 4px 12px 14px; gap: 1px; }
.nav-section { padding: 16px 12px 6px; font-size: .66rem; letter-spacing: .11em; color: rgba(255, 255, 255, .38); }
.nav-link {
    position: relative; padding: 9px 12px; border-radius: 11px; font-weight: 550; font-size: .92rem;
    color: rgba(255, 255, 255, .72);
    transition: background var(--t), color var(--t), transform var(--t-fast);
}
.nav-link .icon { opacity: .85; transition: color var(--t), opacity var(--t); }
.nav-link:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.nav-link:active { transform: scale(.985); }
.nav-link.is-active { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.nav-link.is-active::before {
    content: ""; position: absolute; inset-inline-start: -12px; top: 9px; bottom: 9px; width: 3px;
    border-radius: 0 3px 3px 0; background: var(--pink);
}
.nav-link.is-active .icon { color: var(--pink); opacity: 1; }
.nav-badge, .dot-badge { font-weight: 750; box-shadow: 0 2px 6px rgba(240, 90, 151, .35); }
.sidebar-foot { padding: 12px 14px; border-top: 1px solid rgba(255, 255, 255, .08); background: rgba(4, 27, 45, .35); }
.sidebar-user-text strong { font-weight: 650; }

.topbar {
    height: var(--topbar-h); padding: 0 28px;
    background: rgba(247, 248, 250, .84); backdrop-filter: saturate(170%) blur(14px); -webkit-backdrop-filter: saturate(170%) blur(14px);
    border-bottom: 1px solid var(--border);
}
.topbar-title { font-size: 1.02rem; font-weight: 750; letter-spacing: -.02em; color: var(--ink); }
.topbar .dot-badge { border-color: var(--bg); }
.topbar-search { height: 38px; border-radius: 12px; background: #fff; border-color: var(--border); box-shadow: var(--shadow-xs); color: var(--text-3); }
.topbar-search:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); color: var(--ink); }
kbd { border-radius: 7px; border-color: var(--border); background: var(--navy-50); color: var(--text-2); }
.main { padding: 28px; }

/* ------------------------------------------------------- page head */
.page-head { margin-bottom: 22px; }
.page-head h1, .page-head h2 { font-size: 1.55rem; font-weight: 800; letter-spacing: -.03em; }
.page-sub { color: var(--text-2); font-size: .95rem; margin-top: 4px; }
.crumbs { font-size: .82rem; }
.section-title h2, .section-title h3 { font-size: 1.08rem; font-weight: 750; }

/* ----------------------------------------------------------- cards */
.card { border-radius: var(--radius); border-color: var(--border); box-shadow: var(--shadow-xs); }
.card-head { padding: 15px 20px; }
.card-head h2, .card-head h3 { font-size: 1rem; font-weight: 700; letter-spacing: -.015em; }
.card-body, .card-pad { padding: 20px; }
.card-foot { padding: 13px 20px; background: #FCFDFE; border-radius: 0 0 var(--radius) var(--radius); }
.card-link { transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t); }
.card-link:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.card-accent { border-inline-start: 3px solid var(--pink); }

.stat { border-radius: var(--radius); border-color: var(--border); box-shadow: var(--shadow-xs); padding: 18px 20px; gap: 6px; transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t); }
.stat-label { font-size: .8rem; font-weight: 600; color: var(--text-2); }
.stat-value { font-size: 1.75rem; font-weight: 800; letter-spacing: -.035em; color: var(--ink); }
.stat-note { color: var(--text-3); }
a.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* the next-action block at the top of each dashboard */
.hero {
    border-radius: var(--r-xl); padding: 26px 28px;
    background:
        radial-gradient(520px 260px at 100% 0%, rgba(240, 90, 151, .2), rgba(240, 90, 151, 0) 70%),
        linear-gradient(150deg, #082A44 0%, #0C3556 58%, #114468 100%);
    box-shadow: var(--shadow);
}
.hero::after { display: none; }
.hero h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; }
.hero .hero-kicker { font-size: .72rem; letter-spacing: .12em; color: #FF8DB8; }
.hero .hero-meta { color: rgba(255, 255, 255, .78); font-size: .93rem; margin-top: 8px; }
.hero-light { background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-xs); }
.hero-light .hero-kicker { color: var(--pink-600); }
.hero-light h2 { color: var(--ink); }

/* --------------------------------------------------------- buttons */
.btn {
    min-height: 42px; padding: 9px 18px; border-radius: 12px; font-weight: 650; font-size: .92rem; letter-spacing: -.005em;
    background: var(--navy-50); color: var(--ink);
    transition: background var(--t), border-color var(--t), color var(--t), box-shadow var(--t), transform var(--t-fast) var(--ease);
}
.btn:hover { background: var(--navy-100); color: var(--ink); }
.btn:active { transform: scale(.98); }
.btn:focus-visible { box-shadow: var(--ring); border-radius: 12px; }
.btn-primary { background: var(--navy); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), var(--shadow-xs); }
.btn-primary:hover { background: var(--navy-800); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), var(--shadow-sm); }
.btn-accent { background: linear-gradient(180deg, #F46DA4 0%, #F05A97 100%); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 6px 16px rgba(240, 90, 151, .3); }
.btn-accent:hover { background: linear-gradient(180deg, #F05A97 0%, #E44A89 100%); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 8px 22px rgba(240, 90, 151, .38); transform: translateY(-1px); }
.btn-accent:active { transform: scale(.98); }
.btn-outline { background: #fff; border-color: var(--border-strong); color: var(--ink); box-shadow: var(--shadow-xs); }
.btn-outline:hover { background: #fff; border-color: var(--navy-600); box-shadow: var(--shadow-sm); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--navy-50); color: var(--ink); }
.btn-danger { background: var(--danger); color: #fff; box-shadow: var(--shadow-xs); }
.btn-danger:hover { background: #a82e3e; color: #fff; }
.btn-success { background: var(--success); color: #fff; box-shadow: var(--shadow-xs); }
.btn-success:hover { background: #17704a; color: #fff; }
.btn-danger-outline { background: #fff; color: var(--danger); }
.btn-sm { min-height: 34px; padding: 6px 12px; border-radius: 10px; font-size: .84rem; }
.btn-lg { min-height: 50px; padding: 13px 24px; border-radius: 14px; font-size: 1rem; }
.icon-btn { border-radius: 11px; transition: background var(--t), color var(--t), transform var(--t-fast); }
.icon-btn:active { transform: scale(.94); }
.icon-btn:hover { background: var(--navy-50); color: var(--ink); }
.sidebar .icon-btn:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.link-btn { font-weight: 650; }

/* ----------------------------------------------------------- forms */
.field > label, .label { font-weight: 650; font-size: .85rem; color: var(--ink); }
.input, .select, .textarea {
    min-height: 42px; padding: 9px 13px; border-radius: 12px; border-color: var(--border-strong); background-color: #fff;
    transition: border-color var(--t), box-shadow var(--t);
}
.input:hover, .select:hover, .textarea:hover { border-color: #B9C6D3; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(240, 90, 151, .14); }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input.is-invalid, .select.is-invalid, .textarea.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(200, 56, 76, .1); animation: nudge .28s var(--ease); }
.field-error { font-weight: 550; }
.input-sm, .select-sm { min-height: 34px; border-radius: 10px; }
.switch span { background: var(--navy-200); }
.segmented { background: var(--navy-50); border-radius: 12px; padding: 4px; }
.segmented span { border-radius: 9px; font-weight: 650; }
.segmented input:checked + span { box-shadow: var(--shadow-sm); color: var(--ink); }
@keyframes nudge { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }

/* ---------------------------------------------------------- tables */
.table-wrap { border-radius: var(--radius); border-color: var(--border); box-shadow: var(--shadow-xs); }
.card > .table-wrap { box-shadow: none; }
.table th { font-size: .7rem; letter-spacing: .07em; font-weight: 700; color: var(--text-3); background: #FAFBFD; padding: 12px 18px; }
.table td { padding: 14px 18px; border-color: var(--border); }
.table tbody tr:hover { background: #FAFBFD; }
.cell-person strong { color: var(--ink); font-weight: 650; }

/* ----------------------------------------- badges / chips / progress */
.badge { font-weight: 650; font-size: .74rem; padding: 3px 10px; letter-spacing: 0; }
.badge-neutral { background: var(--navy-50); color: var(--text-2); }
.badge-accent { background: var(--pink-100); color: var(--pink-600); }
.level-chip { border-radius: 8px; font-weight: 750; letter-spacing: .01em; }
.type-chip { font-weight: 650; }
.progress { height: 8px; background: var(--navy-100); }
.progress-fill { background: linear-gradient(90deg, #F05A97, #F68AB6); transform-origin: left center; animation: progress-in .9s var(--ease-out) both; }
[dir="rtl"] .progress-fill { transform-origin: right center; }
.progress-label { font-weight: 750; color: var(--ink); }
@keyframes progress-in { from { transform: scaleX(0); } }

/* ----------------------------------------------------------- lists */
.list-item { padding: 14px 20px; transition: background var(--t-fast); }
a.list-item:hover { background: #FAFBFD; }
.list-title { color: var(--ink); font-weight: 650; }
.session { padding: 15px 20px; transition: background var(--t-fast); }
.session-time { border-radius: 12px; background: var(--navy-50); }
.session.is-live .session-time { background: linear-gradient(180deg, #F46DA4, #F05A97); box-shadow: 0 6px 14px rgba(240, 90, 151, .28); }
.session-title { color: var(--ink); }
.day-label { background: #FAFBFD; letter-spacing: .07em; font-size: .72rem; color: var(--text-3); }
.stage-head { background: var(--navy-50); color: var(--ink); }
.check-box { border-radius: 8px; transition: background var(--t), border-color var(--t), transform var(--t-fast); }
button.check-box:active { transform: scale(.9); }
.check-title { color: var(--ink); }

/* ------------------------------------------------------------ tabs */
.tabs { gap: 2px; border-bottom-color: var(--border); margin-bottom: 20px; }
.tab { padding: 11px 14px; font-weight: 650; color: var(--text-2); border-radius: 10px 10px 0 0; transition: color var(--t), background var(--t), border-color var(--t); }
.tab:hover { color: var(--ink); background: var(--navy-50); }
.tab.is-active { color: var(--ink); border-bottom-color: var(--pink); }

/* ---------------------------------------------------------- alerts */
.alert { border-radius: var(--radius); padding: 13px 16px; }
.alert-title { font-weight: 700; }

/* ------------------------------------------------- empty / loading */
.empty { padding: 44px 20px; }
.empty-icon { width: 60px; height: 60px; border-radius: 18px; background: linear-gradient(160deg, var(--navy-50), var(--navy-100)); color: var(--navy-600); box-shadow: inset 0 0 0 1px rgba(8, 42, 68, .05); }
.empty h3 { font-weight: 750; }
.skeleton { border-radius: 8px; background: linear-gradient(90deg, #EEF2F6 25%, #F8FAFC 50%, #EEF2F6 75%); background-size: 200% 100%; }
.spinner { border-color: var(--navy-100); border-top-color: var(--pink); }

/* ------------------------------------- dropdown / modal / drawer / toast */
.dropdown-menu { border-radius: 14px; border-color: var(--border); box-shadow: var(--shadow-lg); padding: 6px; }
.dropdown-item { border-radius: 9px; font-weight: 550; transition: background var(--t-fast), color var(--t-fast); }
.modal::before, .drawer::before { background: rgba(4, 27, 45, .52); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.modal-dialog { border-radius: 22px; box-shadow: var(--shadow-lg); }
.modal-head { padding: 18px 22px; }
.modal-head h3 { font-weight: 750; letter-spacing: -.02em; }
.modal-body { padding: 22px; }
.modal-foot { padding: 15px 22px; background: #FCFDFE; border-radius: 0 0 22px 22px; }
.drawer-panel { box-shadow: var(--shadow-lg); }
.toast { border-radius: 14px; background: rgba(8, 42, 68, .96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, .08); }
.palette { background: rgba(4, 27, 45, .5); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.palette-dialog { border-radius: 20px; }
.notif-item.is-unread { background: var(--pink-50); }

/* ------------------------------------------- admin blocks, permissions */
.attention-group { border-radius: var(--radius); border-color: var(--border); box-shadow: var(--shadow-xs); }
.attention-head .attention-icon { border-radius: 10px; }
.attention-count { background: var(--navy-50); color: var(--ink); }
.perm-group { border-radius: var(--radius); border-color: var(--border); box-shadow: var(--shadow-xs); }
.perm-group-head { background: var(--navy-50); color: var(--ink); }
.perm-row strong { color: var(--ink); font-weight: 650; }
.group-card .price { color: var(--ink); letter-spacing: -.03em; }

/* ------------------------------------------------- guest (sign in / up) */
.guest { background: #fff; }
.guest-aside {
    background:
        radial-gradient(560px 420px at 110% 108%, rgba(240, 90, 151, .9), rgba(240, 90, 151, 0) 62%),
        radial-gradient(380px 300px at 85% -10%, rgba(255, 255, 255, .09), rgba(255, 255, 255, 0) 70%),
        linear-gradient(160deg, #082A44 0%, #0C3556 60%, #114468 100%);
    padding: 44px;
}
.guest-shape { display: none; }
.guest-pitch h2 { font-size: 2.3rem; font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
.guest-pitch p { color: rgba(255, 255, 255, .8); font-size: 1.05rem; line-height: 1.6; }
.guest-main h1 { font-size: 1.85rem; font-weight: 800; letter-spacing: -.03em; }
.guest-main .lead { color: var(--text-2); font-size: 1rem; }
.guest-form { gap: 16px; margin-top: 10px; }
.guest-brand-mobile .brand-name { color: var(--ink); }
.error-page .code { font-weight: 800; letter-spacing: -.04em; }

/* --------------------------------------------- entrance (once, subtle) */
@media (prefers-reduced-motion: no-preference) {
    .main > .page-head, .main > .hero, .main > .grid, .main > .card, .main > .tabs, .main > .alert, .main > section, .main > .filters, .main > .table-wrap, .main > .stack {
        animation: rise-in .42s var(--ease-out) backwards;
    }
    .main > :nth-child(2) { animation-delay: 40ms; }
    .main > :nth-child(3) { animation-delay: 80ms; }
    .main > :nth-child(4) { animation-delay: 120ms; }
    .main > :nth-child(n+5) { animation-delay: 150ms; }
    .guest-main > * { animation: rise-in .5s var(--ease-out) backwards; }
    .guest-main > :nth-child(2) { animation-delay: 60ms; }
    .guest-main > :nth-child(3) { animation-delay: 120ms; }
    .guest-main > :nth-child(n+4) { animation-delay: 170ms; }
}
@keyframes rise-in { from { opacity: 0; transform: translateY(10px); } }

@media (max-width: 900px) {
    .topbar { padding: 0 14px; padding-top: env(safe-area-inset-top); }
    .main { padding: 18px 14px calc(var(--bottombar-h) + 26px + env(safe-area-inset-bottom)); }
    .app-flush .main { padding: 0; }
    .bottombar { background: rgba(255, 255, 255, .94); backdrop-filter: saturate(170%) blur(14px); -webkit-backdrop-filter: saturate(170%) blur(14px); border-top-color: var(--border); }
    .bottombar-link { font-weight: 650; color: var(--text-3); transition: color var(--t-fast), transform var(--t-fast); }
    .bottombar-link:active { transform: scale(.94); }
    .bottombar-link.is-active { color: var(--ink); }
    .bottombar-link.is-active .icon { color: var(--pink); }
    .hero { padding: 20px; border-radius: 22px; }
    .hero h2 { font-size: 1.22rem; }
    .sidebar { box-shadow: var(--shadow-lg); }
}
@media (max-width: 640px) {
    .page-head h1, .page-head h2 { font-size: 1.3rem; }
    .stat-value { font-size: 1.4rem; }
    .modal-dialog { border-radius: 22px 22px 0 0; }
    .modal-foot { border-radius: 0; }
    .card-body, .card-pad { padding: 16px; }
    .list-item, .session, .check-item { padding: 13px 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .progress-fill { animation: none; }
}

/* meta rows read as sentences: each fact stays together and wraps as a whole */
.list-meta { gap: 4px 12px; }
.list-meta > span:not([class]) { display: block; min-width: 0; overflow-wrap: break-word; }
.list-meta > span:not([class]) > .icon { display: inline-block; vertical-align: -2px; margin-inline-end: 3px; }
.attention-group .list-title { display: block; }
.attention-group .list-title .badge { vertical-align: 1px; }

/* row actions stay on one line where the table has the room */
@media (min-width: 1100px) {
    .table td.col-actions .aa-row-actions, .table td.col-actions .list-actions, .table td.col-actions .row-tight { flex-wrap: nowrap; }
}
.table td.col-actions .btn { white-space: nowrap; }

/* file pickers match the outline button */
input[type="file"] { font: inherit; font-size: .88rem; color: var(--text-2); max-width: 100%; }
input[type="file"].input { padding: 6px 8px; }
input[type="file"]::file-selector-button {
    font: inherit; font-weight: 650; font-size: .84rem; color: var(--ink); cursor: pointer;
    margin-inline-end: 12px; padding: 7px 13px; border-radius: 10px;
    border: 1px solid var(--border-strong); background: #fff; box-shadow: var(--shadow-xs);
    transition: border-color var(--t), box-shadow var(--t);
}
input[type="file"]::file-selector-button:hover { border-color: var(--navy-600); box-shadow: var(--shadow-sm); }

/* quiet scrollbars inside navy and white panels */
.nav, .sidebar { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .16) transparent; }
.nav::-webkit-scrollbar { width: 6px; }
.nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .16); border-radius: 6px; }
.nav::-webkit-scrollbar-track { background: transparent; }
.table-wrap, .modal-body, .dropdown-menu, .palette-results { scrollbar-width: thin; scrollbar-color: var(--navy-200) transparent; }

/* the palette field needs no ring of its own: the dialog is the focus */
.palette-input input:focus-visible { box-shadow: none; }

/* figures sit two-up on phones instead of one long column */
@media (max-width: 640px) {
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .grid-4 > .stat { padding: 14px; }
    .grid-4 > .stat .stat-label { font-size: .76rem; }
    .grid-4 > .stat .stat-value { overflow-wrap: anywhere; }
}
@media (max-width: 380px) {
    .grid-4 > .stat .stat-value { font-size: 1.22rem; }
}

/* ---------------------------------------------------------------------
   LABELS — sentence case, quiet, marked with the tongue from the logo.
   No pills, no glowing dots, no letter-spaced capitals (see docs/DESIGN.md).
   --------------------------------------------------------------------- */

.hero .hero-kicker { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 8px; font-size: .9rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: rgba(255, 255, 255, .82); }
.hero .hero-kicker::before { content: ""; flex: none; width: 5px; height: 14px; border-radius: 2px 2px 5px 5px; background: var(--pink); }
.hero-light .hero-kicker { color: var(--text-2); }
.table th { font-size: .8rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--text-2); }
.day-label { font-size: .84rem; font-weight: 650; letter-spacing: 0; text-transform: none; color: var(--text-2); }
.day-label.is-today { color: var(--pink-600); }
.nav-section { font-size: .78rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: rgba(255, 255, 255, .46); }
.palette-group { font-size: .78rem; font-weight: 600; letter-spacing: 0; text-transform: none; }

/* ---------------------------------------------------------------------
   PLAIN — nothing decorative. Flat colour instead of glows and gradients,
   no glass, no floating props, no icon tiles, no lift-and-glow on buttons.
   What is left on a page is content, structure and state (docs/DESIGN.md).
   --------------------------------------------------------------------- */
.sidebar { background: #082A44; }
.sidebar::before { content: none; }
.hero { background: #082A44; box-shadow: none; }
.hero-light { background: #fff; }
.guest-aside { background: #082A44; }
.btn-accent { background: var(--pink); box-shadow: none; }
.btn-accent:hover { background: var(--pink-600); box-shadow: none; transform: none; }
.btn-primary, .btn-primary:hover { box-shadow: none; }
.progress-fill { background: var(--pink); }
.session.is-live .session-time { background: var(--pink); box-shadow: none; }
.empty-icon { background: var(--navy-50); box-shadow: none; }
.nav-badge, .dot-badge { box-shadow: none; }
.card-link:hover, a.stat:hover { transform: none; }
