@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
    color-scheme: dark;
    --bg: #07111f;
    --panel: #0f1d31;
    --panel-soft: #13243a;
    --line: rgba(255, 255, 255, 0.09);
    --text: #eef5ff;
    --muted: #91a3bb;
    --amber: #f59e0b;
    --amber-soft: rgba(245, 158, 11, 0.16);
    --green: #22c55e;
    --red: #ef4444;
    --blue: #38bdf8;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top left, #17345d 0, var(--bg) 42%);
    color: var(--text);
    font-family: "Manrope", "SF Pro Text", "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.45;
}

a { color: inherit; text-decoration: none; }

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 252px;
    padding: 18px;
    background: rgba(7, 17, 31, 0.78);
    border-right: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.brand {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 22px;
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    background: var(--amber);
    color: #111827;
    font-weight: 900;
}

.brand strong, .brand small { display: block; }
.brand small, .eyebrow, .empty, .list-row span, .card small, .card span, td, label { color: var(--muted); }

.brand-logo-slot {
    width: 100%;
    height: 54px;
    border: 0;
    border-radius: 15px;
    background:
        transparent
        url("/static/img/logo.png") center / contain no-repeat;
}

.brand-logo-slot.large {
    height: 72px;
}

.nav-section {
    display: grid;
    gap: 7px;
    padding: 10px 0;
    border-top: 1px solid var(--line);
}
.nav-section:first-child { border-top: 0; padding-top: 0; }
.nav-section span {
    padding: 0 12px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
nav { display: grid; gap: 10px; }
nav a {
    padding: 9px 11px;
    border-radius: 12px;
    color: #dce8f8;
}
nav a:hover { background: var(--panel-soft); }

.shell {
    margin-left: 252px;
    padding: 22px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 0 0 auto;
    min-width: 0;
}

.topbar-logo-link {
    display: block;
    flex: 0 0 auto;
    line-height: 0;
    text-decoration: none;
}

.brand-logo-slot.topbar-logo {
    flex: 0 0 132px;
    width: 132px;
    height: 46px;
    margin: 0;
}

.topbar-title {
    min-width: 0;
}

.topbar-title h1 {
    margin-bottom: 0;
}

.topbar-back {
    flex: 0 0 auto;
    white-space: nowrap;
    min-height: 36px;
    padding: 8px 12px;
    font-size: 13px;
    text-decoration: none;
}

h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(22px, 3vw, 34px); letter-spacing: -0.03em; }
h2 { margin-bottom: 8px; font-size: 19px; letter-spacing: -0.02em; }
.eyebrow { margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px; }

.user-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 8px 8px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
}

button, .primary-btn, .ghost-btn {
    border: 0;
    border-radius: 10px;
    padding: 9px 13px;
    font-weight: 700;
    cursor: pointer;
}

button, .primary-btn { background: var(--amber); color: #111827; }
.ghost-btn { background: var(--panel-soft); color: var(--text); border: 1px solid var(--line); }

.hero, .panel, .card, .session-card, .person-card, .login-card {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(19, 36, 58, 0.92), rgba(15, 29, 49, 0.92));
    border-radius: 18px;
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.20);
}

.hero {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 22px;
    margin-bottom: 16px;
}
.hero.compact { display: block; }
.hero-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.admin-hero {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 18px;
    min-height: 210px;
    margin-bottom: 16px;
    padding: 24px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background:
        radial-gradient(circle at 85% 20%, rgba(56, 189, 248, 0.20), transparent 28%),
        linear-gradient(135deg, rgba(19, 36, 58, 0.96), rgba(8, 19, 34, 0.96));
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.22);
}

.admin-hero h2 {
    max-width: 560px;
    font-size: clamp(26px, 4vw, 44px);
}

.admin-hero p:not(.eyebrow) {
    max-width: 560px;
    color: var(--muted);
}

.motion-orb {
    position: relative;
    min-height: 160px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.22), rgba(56, 189, 248, 0.08) 45%, transparent 70%);
    animation: floatOrb 7s ease-in-out infinite;
}

.motion-orb span {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--amber);
    box-shadow: 0 0 24px rgba(245, 158, 11, 0.75);
    animation: orbitDot 5s linear infinite;
}

.motion-orb span:nth-child(1) { left: 50%; top: 10%; }
.motion-orb span:nth-child(2) { right: 12%; bottom: 30%; animation-delay: -1.8s; background: var(--blue); }
.motion-orb span:nth-child(3) { left: 16%; bottom: 18%; animation-delay: -3.1s; background: var(--green); }

.tab-button {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    border: 1px solid var(--line);
}

.tab-button.active {
    background: var(--amber);
    color: #111827;
}

.admin-tabbar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 14px;
}

.topbar-tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex: 1;
}

.topbar-tabs .tab-button {
    min-height: 36px;
    padding: 9px 13px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

.topbar-tabs .tab-button:hover {
    background: rgba(255, 255, 255, 0.085);
    transform: translateY(-1px);
}

.topbar-tabs .tab-button.active {
    border-color: transparent;
    background: var(--amber);
    color: #111827;
}

.dashboard-menu-grid {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(199, 213, 235, 0.10);
}

.dashboard-menu-grid a,
.dashboard-menu-grid .edu-menu-tab,
.dashboard-menu-grid .sim-menu-tab {
    display: grid;
    gap: 2px;
    min-width: 118px;
    padding: 8px 0;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent !important;
    color: inherit;
    text-align: center;
    cursor: pointer;
    font: inherit;
    box-shadow: none;
    transform: none;
    transition: border-color 160ms ease, color 160ms ease;
}

.dashboard-menu-grid a:hover,
.dashboard-menu-grid .edu-menu-tab:hover,
.dashboard-menu-grid .sim-menu-tab:hover {
    border-bottom-color: var(--amber);
    background: transparent !important;
    transform: none;
}

.dashboard-menu-grid .edu-menu-tab.active,
.dashboard-menu-grid .sim-menu-tab.active {
    border-bottom-color: var(--amber);
    color: #fff8e8;
}

.edu-subpanel,
.sim-subpanel {
    display: none;
}

.edu-subpanel.active,
.sim-subpanel.active {
    display: block;
    animation: tabIn 220ms ease-out;
}

button.card-link {
    width: 100%;
    text-align: left;
    font: inherit;
    color: inherit;
    cursor: pointer;
    background: inherit !important;
    border: 0;
    box-shadow: none;
    transform: none;
}

button.card-link:hover,
button.card-link:active {
    transform: none;
}

button.metric-link {
    background: rgba(255, 255, 255, 0.04) !important;
    transform: none;
}

button.metric-link:hover,
button.metric-link:active {
    transform: none;
}

.dashboard-menu-grid span {
    color: var(--muted);
    font-size: 11px;
}

.menu-tab-with-badge strong {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.menu-count-badge {
    display: inline-grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border: 1px solid rgba(255, 120, 120, 0.45);
    border-radius: 7px;
    background:
        linear-gradient(180deg, rgba(248, 113, 113, 0.95), rgba(185, 28, 28, 0.92));
    box-shadow:
        0 6px 16px rgba(185, 28, 28, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
    color: #fff5f5;
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1;
}

.tab-panel {
    display: none;
    animation: tabIn 220ms ease-out;
}

.tab-panel.active {
    display: block;
}

.admin-system-card {
    margin-bottom: 14px;
    border-radius: 20px;
}

.simulation-card {
    background: linear-gradient(180deg, rgba(10, 31, 48, 0.96), rgba(12, 25, 44, 0.92));
}

.flow-line {
    position: relative;
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}

.flow-line span {
    position: absolute;
    inset: 0 auto 0 0;
    width: 36%;
    border-radius: inherit;
    background: linear-gradient(90deg, transparent, var(--amber), transparent);
    animation: flowMove 2.4s linear infinite;
}

.flow-line.blue span {
    background: linear-gradient(90deg, transparent, var(--blue), transparent);
}

.quick-admin-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.quick-admin-card {
    display: grid;
    gap: 4px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
}

.quick-admin-card:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 158, 11, 0.35);
}

.quick-admin-card span {
    color: var(--muted);
}

.grid { display: grid; gap: 16px; }
.cards {
    grid-template-columns: repeat(auto-fit, minmax(180px, 220px));
    justify-content: center;
    margin-bottom: 14px;
}
.mini-cards {
    grid-template-columns: repeat(auto-fit, minmax(130px, 165px));
    justify-content: center;
    margin-bottom: 16px;
}
.card { padding: 15px; }
.big-card strong { display: block; margin: 6px 0; font-size: 30px; }
.mini-card strong { display: block; margin-top: 6px; font-size: 23px; }

.system-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 20px;
}

.system-card {
    display: grid;
    gap: 18px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(19, 36, 58, 0.96), rgba(15, 29, 49, 0.9));
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.metric-grid span {
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
}

.metric-link {
    display: block;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.metric-grid strong {
    display: block;
    color: var(--text);
    font-size: 24px;
}

.card-link {
    display: block;
}

.two-col { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 18px; }
.panel { padding: 16px; margin-bottom: 15px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.panel-head a { color: var(--amber); font-weight: 700; }

.list { display: grid; gap: 10px; }
.list-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
}
.list-row strong, .list-row span { display: block; }

.badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    white-space: nowrap;
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--amber-soft);
    color: #ffdca2;
    font-size: 12px;
    font-weight: 800;
}
.badge.ok { background: rgba(34, 197, 94, 0.14); color: #8ff0ad; }
.badge.warn { background: rgba(245, 158, 11, 0.14); color: #ffdca2; }
.badge.danger { background: rgba(239, 68, 68, 0.14); color: #ffaaa9; }

.filterbar, .searchbar, .form-stack { display: grid; gap: 12px; }
.filterbar { grid-template-columns: 1fr auto; align-items: end; }
.searchbar { grid-template-columns: 1fr auto; }

.people-filterbar {
    display: grid;
    grid-template-columns: 1.6fr 1fr 0.9fr auto;
    gap: 12px;
    align-items: end;
}

.people-filterbar label {
    display: grid;
    gap: 6px;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.people-filterbar input,
.people-filterbar select {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.people-filter-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.people-filter-meta {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.appointments-filterbar {
    display: grid;
    grid-template-columns: 1.4fr 1fr auto;
    gap: 12px;
    align-items: end;
}

.appointments-filterbar label {
    display: grid;
    gap: 6px;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.appointments-filterbar input,
.appointments-filterbar select {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}
input, select, textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}
textarea { resize: vertical; }
label { display: grid; gap: 6px; }

.session-grid, .people-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.session-card, .person-card { padding: 15px; }
.session-time { color: var(--amber); font-weight: 900; margin-bottom: 10px; }
.status-line { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.details { display: grid; gap: 8px; margin: 0; }
.details div { display: grid; grid-template-columns: 110px 1fr; gap: 8px; }
.details dt { color: var(--muted); }
.details dd { margin: 0; }

.clickable-card {
    display: block;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.clickable-card:hover {
    transform: translateY(-3px);
    border-color: rgba(245, 158, 11, 0.38);
    background: linear-gradient(180deg, rgba(24, 45, 72, 0.95), rgba(15, 29, 49, 0.95));
}

.card-arrow {
    display: inline-flex;
    margin-top: 12px;
    color: var(--amber);
    font-weight: 800;
}

.detail-hero {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 14px;
    align-items: stretch;
    margin-bottom: 14px;
}

.detail-hero > div,
.detail-status-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(19, 36, 58, 0.94), rgba(15, 29, 49, 0.92));
    padding: 18px;
}

.back-link {
    display: inline-flex;
    margin-bottom: 12px;
    color: var(--amber);
    font-weight: 800;
}

.detail-status-card {
    display: grid;
    align-content: center;
    gap: 8px;
}

.detail-status-card strong {
    display: block;
    font-size: 34px;
    letter-spacing: -0.04em;
}

.compact-table th,
.compact-table td {
    padding: 10px;
}

.topic-timeline {
    display: grid;
    gap: 10px;
}

.topic-node {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 12px;
    align-items: start;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
}

.topic-node > span {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.16);
    color: #ffdca2;
    font-weight: 900;
}

.topic-node.done {
    border-color: rgba(34, 197, 94, 0.28);
}

.topic-node.done > span {
    background: rgba(34, 197, 94, 0.16);
    color: #8ff0ad;
}

.topic-node p {
    margin: 4px 0 0;
    color: var(--muted);
}

.operation-card {
    padding: 0;
    overflow: hidden;
}

.operation-card-main {
    display: grid;
    width: 100%;
    gap: 6px;
    padding: 11px;
    text-align: left;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--text);
}

.operation-card-main:hover,
.operation-card-main.open {
    background: rgba(255, 255, 255, 0.035);
}

.operation-card-main strong {
    font-size: 16px;
    letter-spacing: -0.02em;
}

.operation-card-main small,
.operation-meta {
    color: var(--muted);
}

.operation-card .session-time {
    margin-bottom: 0;
    font-size: 13px;
}

.operation-card .status-line {
    margin: 4px 0;
}

.operation-meta {
    font-size: 12px;
    font-weight: 700;
}

.inline-session-detail {
    display: grid;
    gap: 12px;
    max-height: 0;
    overflow: hidden;
    padding: 0 11px;
    border-top: 1px solid transparent;
    opacity: 0;
    transition: max-height 240ms ease, opacity 180ms ease, padding 220ms ease, border-color 220ms ease;
}

.inline-session-detail.open {
    max-height: 900px;
    padding: 11px;
    border-top-color: var(--line);
    opacity: 1;
}

.inline-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.inline-session-detail h3 {
    margin: 0 0 8px;
    font-size: 14px;
}

.compact-details {
    gap: 6px;
}

.compact-details div {
    grid-template-columns: 82px 1fr;
}

.chip-list {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.compact-list {
    display: grid;
    gap: 6px;
    max-height: 240px;
    overflow: auto;
}

.compact-list > div {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
    padding: 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
}

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 14px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: #c8d8ed; background: rgba(255, 255, 255, 0.03); position: sticky; top: 0; }

.person-card { display: flex; align-items: flex-start; gap: 14px; }
.person-card-body {
    display: grid;
    gap: 8px;
    min-width: 0;
}
.avatar {
    display: grid;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 16px;
    background: rgba(56, 189, 248, 0.16);
    color: #a5e6ff;
    font-size: 24px;
    font-weight: 900;
}

.analysis-open {
    width: fit-content;
}

.education-open {
    width: 100%;
    text-align: left;
    cursor: pointer;
    background: transparent !important;
    color: inherit;
    border: 0;
    border-radius: 0;
    font: inherit;
    box-shadow: none;
    transform: none;
}

.education-open:hover {
    background: rgba(255, 255, 255, 0.04) !important;
    transform: none;
}

.education-open:active {
    transform: none;
}

.education-detail-card .compact-details {
    margin-bottom: 16px;
}

.education-detail-section {
    margin-top: 16px;
}

.education-detail-section h3 {
    margin: 0 0 10px;
    font-size: 15px;
}

.analysis-modal {
    position: fixed;
    inset: 0;
    display: none;
    place-items: center;
    z-index: 40;
    padding: 22px;
    background: rgba(3, 7, 18, 0.72);
}

.analysis-modal.open {
    display: grid;
    backdrop-filter: blur(8px);
}

.analysis-modal-card {
    position: relative;
    width: min(880px, 100%);
    max-height: min(760px, 90vh);
    overflow: auto;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background:
        radial-gradient(circle at 90% 0%, rgba(56, 189, 248, 0.16), transparent 30%),
        linear-gradient(180deg, rgba(19, 36, 58, 0.98), rgba(8, 19, 34, 0.98));
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
    transform: translateY(10px) scale(0.98);
    transition: transform 180ms ease;
}

.analysis-modal.open .analysis-modal-card {
    transform: translateY(0) scale(1);
}

.analysis-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    font-size: 22px;
}

.analysis-head {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 16px;
    padding-right: 44px;
}

.analysis-summary-grid,
.analysis-detail-grid {
    display: grid;
    gap: 12px;
}

.analysis-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 12px;
}

.analysis-summary-grid article {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
}

.analysis-summary-grid span,
.analysis-summary-grid small {
    color: var(--muted);
}

.analysis-summary-grid strong {
    font-size: 30px;
    letter-spacing: -0.04em;
}

.analysis-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mini-analysis-panel {
    margin-bottom: 0;
}

.mini-analysis-panel h3 {
    margin: 0 0 10px;
}

.progress {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.progress i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--green), var(--amber));
}

.progress.blue i {
    background: linear-gradient(90deg, var(--blue), var(--green));
}

.calendar-toolbar {
    max-width: 1040px;
    margin: 0 auto 18px;
    background: rgba(255, 255, 255, 0.026);
}

.calendar-toolbar .panel-head {
    display: grid;
    justify-items: center;
    text-align: center;
}

.calendar-toolbar .hero-actions {
    justify-content: center;
}

.calendar-shell {
    margin-top: 20px;
    border: 0;
    border-radius: 0;
    overflow-x: auto;
    background: transparent;
}

.calendar-weekdays,
.calendar-month-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    min-width: 880px;
    gap: 8px;
}

.calendar-weekdays span {
    padding: 6px 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: transparent;
    border: 0;
}

.calendar-day {
    min-height: 126px;
    padding: 8px;
    border: 1px solid rgba(199, 213, 235, 0.10);
    border-radius: 16px;
    background: rgba(15, 29, 49, 0.58);
}

.calendar-day:nth-child(7n) {
    border-right: 1px solid rgba(199, 213, 235, 0.10);
}

.calendar-day.muted {
    opacity: 0.45;
    background: rgba(255, 255, 255, 0.018);
}

.calendar-day.today {
    outline: 2px solid rgba(216, 160, 61, 0.42);
    outline-offset: -2px;
}

.calendar-day.today .calendar-day-head strong {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 999px;
    background: var(--amber);
    color: #101827;
}

.calendar-day.has-events:not(.muted) {
    background:
        linear-gradient(180deg, rgba(18, 39, 66, 0.82), rgba(10, 21, 37, 0.74));
}

.calendar-day-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.calendar-day-head strong {
    font-size: 15px;
}

.calendar-day-head span {
    color: var(--muted);
    font-size: 11px;
}

.calendar-events {
    display: grid;
    gap: 6px;
}

.calendar-event {
    display: grid;
    gap: 2px;
    width: 100%;
    padding: 7px 8px;
    text-align: left;
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: 10px;
    background: rgba(245, 158, 11, 0.10);
    color: var(--text);
}

.calendar-event:hover {
    border-color: rgba(245, 158, 11, 0.46);
    background: rgba(245, 158, 11, 0.17);
}

.calendar-event.active {
    border-color: rgba(216, 160, 61, 0.72);
    background: rgba(216, 160, 61, 0.24);
}

.calendar-event span {
    color: #ffdca2;
    font-size: 12px;
    font-weight: 900;
}

.calendar-event strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
}

.calendar-modal-card {
    width: min(720px, 100%);
}

.announcement-composer textarea {
    min-height: 132px;
}

.announcement-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.target-picker {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
}

.target-picker label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.target-picker input[type="checkbox"] {
    width: auto;
}

.announcement-rule-list {
    display: grid;
    gap: 10px;
}

.announcement-rule-list div {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 10px;
    align-items: start;
    padding: 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
}

.announcement-rule-list strong {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 999px;
    background: var(--amber-soft);
    color: #ffdca2;
}

.announcement-rule-list span {
    color: var(--muted);
}

.announcement-alerts {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.announcement-alert {
    position: relative;
    overflow: hidden;
    padding: 14px 16px;
    border: 1px solid rgba(56, 189, 248, 0.24);
    border-radius: 16px;
    background: rgba(56, 189, 248, 0.10);
}

.announcement-alert::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--blue);
}

.announcement-alert.important {
    border-color: rgba(245, 158, 11, 0.26);
    background: rgba(245, 158, 11, 0.10);
}

.announcement-alert.important::before {
    background: var(--amber);
}

.announcement-alert.critical {
    border-color: rgba(239, 68, 68, 0.30);
    background: rgba(239, 68, 68, 0.10);
}

.announcement-alert.critical::before {
    background: var(--red);
}

.announcement-alert span {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.announcement-alert strong {
    display: block;
    margin-bottom: 4px;
    font-size: 16px;
}

.announcement-alert p {
    margin: 0;
    color: #dce8f8;
}

.workshop-summary-card {
    display: grid;
    gap: 9px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
}

.workshop-summary-toggle,
.workshop-session-toggle {
    width: 100%;
    display: grid;
    gap: 10px;
    padding: 0;
    border: 0;
    background: transparent !important;
    color: inherit;
    text-align: left;
    font: inherit;
    cursor: pointer;
    box-shadow: none;
    transform: none;
}

.workshop-summary-toggle:hover,
.workshop-session-toggle:hover,
.workshop-summary-toggle:active,
.workshop-session-toggle:active {
    transform: none;
    background: transparent !important;
}

.workshop-summary-toggle.open .workshop-expand-hint,
.workshop-session-toggle.open .badge {
    border-color: rgba(216, 160, 61, 0.35);
}

.workshop-sessions-panel,
.workshop-reservations-panel {
    display: none;
    margin-top: 4px;
}

.workshop-sessions-panel.open,
.workshop-reservations-panel.open {
    display: grid;
    gap: 8px;
}

.workshop-session-card {
    display: grid;
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(199, 213, 235, 0.10);
    border-radius: 12px;
    background: rgba(5, 12, 24, 0.35);
}

.workshop-session-toggle {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
}

.workshop-session-toggle strong,
.workshop-session-toggle span {
    display: block;
}

.workshop-session-toggle span {
    color: var(--muted);
    font-size: 12px;
}

.workshop-reservations-panel {
    padding-top: 2px;
}

.workshop-reservations-panel .list-row {
    background: rgba(255, 255, 255, 0.03);
}

.workshop-reservation-row {
    display: grid !important;
    grid-template-columns: minmax(160px, 1fr) auto auto;
    align-items: center;
    gap: 16px 28px;
}

.workshop-reservation-main {
    min-width: 0;
}

.workshop-reservation-times {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    font-weight: 500;
    font-size: 0.86rem;
    color: var(--muted);
    text-align: right;
    white-space: nowrap;
}

.workshop-reservation-times > span {
    display: inline !important;
    color: var(--muted);
}

.workshop-reservation-times .time-sep {
    margin: 0 0.55em;
    opacity: 0.7;
}

.premium-date-filter {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: center;
    margin: 14px 0;
    padding: 16px;
    border: 1px solid rgba(199, 213, 235, 0.12);
    border-radius: 18px;
    background:
        radial-gradient(circle at 0% 0%, rgba(216, 160, 61, 0.12), transparent 32%),
        linear-gradient(180deg, rgba(18, 35, 59, 0.88), rgba(9, 20, 36, 0.84));
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.premium-date-filter strong,
.premium-date-filter span {
    display: block;
}

.premium-date-filter strong {
    font-size: 22px;
    color: #fff8e8;
    letter-spacing: -0.04em;
}

.premium-date-filter span {
    color: var(--muted);
}

.premium-date-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.premium-date-form {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 6px;
    border: 1px solid rgba(199, 213, 235, 0.10);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
}

.premium-date-form input {
    min-width: 150px;
}

.premium-date-form input[type="date"] {
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid rgba(199, 213, 235, 0.14);
    border-radius: 10px;
    background: rgba(5, 12, 24, 0.72);
    color: #f6f8fc;
    color-scheme: dark;
    font: inherit;
    letter-spacing: 0.01em;
}

.premium-date-form input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 1;
    filter: invert(1) brightness(2);
}

.premium-date-form .primary-btn {
    min-height: 40px;
    padding: 8px 14px;
}

.workshop-summary-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.workshop-summary-head strong,
.workshop-summary-head span {
    display: block;
}

.workshop-summary-head > div:first-child span {
    color: var(--muted);
}

.workshop-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
    gap: 6px;
}

.workshop-summary-grid span {
    display: grid;
    gap: 2px;
    padding: 7px 8px;
    border: 1px solid rgba(199, 213, 235, 0.10);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--muted);
    font-size: 12px;
}

.workshop-summary-grid strong {
    color: var(--text);
    font-size: 17px;
}

.login-body {
    display: grid;
    place-items: center;
    padding: 24px;
    overflow: hidden;
}

.public-body {
    padding: 20px;
}

.public-shell {
    width: min(1240px, 100%);
    margin: 0 auto;
}

.public-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.public-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.public-nav a {
    padding: 10px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    font-weight: 800;
}

.public-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 18px;
}

.booking-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.step-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    font-weight: 800;
}

.step-pill strong {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
}

.step-pill.active {
    border-color: rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.1);
    color: #ffdca2;
}

.booking-layout {
    display: grid;
    gap: 12px;
}

.step-panel {
    scroll-margin-top: 12px;
}

.workshop-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.workshop-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.035);
}

.workshop-card.selected {
    border-color: rgba(34, 197, 94, 0.45);
    background: rgba(34, 197, 94, 0.09);
}

.workshop-card span {
    display: block;
    color: var(--muted);
}

.date-filter-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: end;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
}

.date-chip-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.date-chip {
    display: grid;
    flex: 0 0 auto;
    gap: 2px;
    min-width: 78px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
}

.date-chip span {
    color: var(--muted);
    font-size: 12px;
}

.date-chip.selected {
    border-color: rgba(245, 158, 11, 0.5);
    background: rgba(245, 158, 11, 0.12);
    color: #ffdca2;
}

.date-chip.muted {
    opacity: 0.55;
}

.disabled-card {
    opacity: 0.62;
}

.select-session-btn {
    margin-top: 8px;
}

.select-session-btn.selected {
    outline: 2px solid rgba(34, 197, 94, 0.75);
    background: rgba(34, 197, 94, 0.16);
    color: #8ff0ad;
}

.is-hidden {
    display: none !important;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.booking-form {
    margin-top: 16px;
}

.public-body .hero {
    padding: 16px 18px;
}

.public-body .hero h1 {
    font-size: clamp(20px, 3vw, 30px);
}

.public-body .panel {
    padding: 13px;
}

.public-body .session-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.public-body .session-card {
    padding: 10px;
}

.public-body .session-time {
    margin-bottom: 8px;
    font-size: 13px;
}

.success-panel {
    border-color: rgba(34, 197, 94, 0.35);
}

.reservation-actions {
    display: grid;
    gap: 10px;
    justify-items: end;
}

.login-card {
    position: relative;
    z-index: 2;
    width: min(440px, 100%);
    padding: 30px;
}
.login-brand { margin-bottom: 20px; }

.login-sky {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.flight-path {
    position: absolute;
    height: 1px;
    width: 42vw;
    background: linear-gradient(90deg, transparent, rgba(88, 199, 255, 0.42), transparent);
    transform: rotate(-12deg);
    opacity: 0.7;
    animation: flightPath 6s ease-in-out infinite;
}

.path-one {
    top: 24%;
    left: 8%;
}

.path-two {
    right: 6%;
    bottom: 28%;
    animation-delay: -2.2s;
}

.drone {
    position: absolute;
    width: 96px;
    height: 58px;
    border-radius: 18px;
    animation: droneFloat 8s ease-in-out infinite;
}

.drone::before,
.drone::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 84px;
    height: 2px;
    border-radius: 999px;
    background: rgba(199, 213, 235, 0.34);
    transform-origin: center;
}

.drone::before {
    transform: translate(-50%, -50%) rotate(24deg);
}

.drone::after {
    transform: translate(-50%, -50%) rotate(-24deg);
}

.drone i {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 34px;
    height: 18px;
    border: 1px solid rgba(199, 213, 235, 0.34);
    border-radius: 14px 14px 18px 18px;
    background:
        linear-gradient(180deg, rgba(244, 248, 255, 0.18), rgba(14, 29, 50, 0.76)),
        rgba(14, 29, 50, 0.88);
    transform: translate(-50%, -50%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 0 28px rgba(88, 199, 255, 0.18);
}

.drone i::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -4px;
    width: 8px;
    height: 4px;
    border-radius: 0 0 8px 8px;
    background: var(--amber);
    transform: translateX(-50%);
    box-shadow: 0 0 16px rgba(216, 160, 61, 0.72);
}

.drone b {
    position: absolute;
    z-index: 3;
    width: 34px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(161, 221, 255, 0.52);
    transform-origin: center;
    animation: propeller 600ms linear infinite;
}

.drone b::after {
    content: "";
    position: absolute;
    inset: 2px -4px;
    border-radius: inherit;
    background: rgba(88, 199, 255, 0.18);
}

.drone .r1 { left: -3px; top: 10px; }
.drone .r2 { right: -3px; top: 10px; }
.drone .r3 { left: -3px; bottom: 10px; }
.drone .r4 { right: -3px; bottom: 10px; }

.drone-one {
    left: 10%;
    top: 18%;
    animation-name: droneAcroOne;
}

.drone-two {
    right: 12%;
    top: 20%;
    transform: scale(0.78);
    animation-delay: -2.4s;
    animation-name: droneAcroTwo;
}

.drone-three {
    right: 18%;
    bottom: 18%;
    transform: scale(0.62);
    opacity: 0.72;
    animation-delay: -4s;
    animation-name: droneAcroThree;
}

.drone-four {
    left: 18%;
    bottom: 20%;
    transform: scale(0.7);
    opacity: 0.78;
    animation-name: droneAcroTwo;
    animation-delay: -5.2s;
}

.drone-five {
    left: 46%;
    top: 10%;
    transform: scale(0.56);
    opacity: 0.64;
    animation-name: droneAcroThree;
    animation-delay: -1.2s;
}

.drone-six {
    right: 36%;
    bottom: 12%;
    transform: scale(0.52);
    opacity: 0.58;
    animation-name: droneAcroOne;
    animation-delay: -6.3s;
}
.login-switcher {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 18px 0;
}
.login-switcher a {
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: #dce8f8;
    font-size: 13px;
    font-weight: 700;
}
.alert {
    padding: 12px 14px;
    margin: 16px 0;
    border-radius: 14px;
    background: rgba(239, 68, 68, 0.14);
    color: #ffaaa9;
}

.messages {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.message {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(56, 189, 248, 0.12);
    color: #a5e6ff;
}

.message.success {
    background: rgba(34, 197, 94, 0.14);
    color: #8ff0ad;
}

.attendance-list {
    display: grid;
    gap: 12px;
}

.attendance-row, .topic-row {
    display: grid;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
}

.attendance-row {
    grid-template-columns: minmax(180px, 1.2fr) minmax(160px, 0.7fr) minmax(200px, 1fr);
}

.topic-row {
    grid-template-columns: minmax(180px, 1fr) minmax(160px, 0.8fr) minmax(180px, 1fr) minmax(180px, 1fr);
}

.attendance-checkin-row {
    grid-template-columns: minmax(160px, 1.1fr) minmax(140px, 0.7fr) auto minmax(160px, 0.9fr);
    align-items: center;
}

.attendance-checkin-row > select,
.attendance-checkin-row > input[type="text"],
.attendance-checkin-row > input:not([type]) {
    height: 40px;
    box-sizing: border-box;
}

.time-stamp-field {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    align-items: center;
}

.time-stamp-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.time-stamp-label {
    display: inline !important;
    color: var(--muted);
    font-size: 0.78rem;
    white-space: nowrap;
}

.time-stamp-group input[type="time"] {
    width: 6.75rem;
    height: 40px;
    box-sizing: border-box;
    padding: 0 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: inherit;
}

.now-btn {
    height: 40px;
    white-space: nowrap;
    padding: 0 10px;
    font-size: 0.75rem;
}

.attendance-row span, .topic-row span {
    display: block;
    color: var(--muted);
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

/* Premium presentation layer: keeps behavior intact, upgrades visual system. */
:root {
    --bg: #0a1322;
    --panel: #122139;
    --panel-soft: #192d48;
    --line: rgba(215, 226, 244, 0.16);
    --text: #f8fbff;
    --muted: #aab8ca;
    --amber: #d8a03d;
    --amber-soft: rgba(216, 160, 61, 0.15);
    --green: #40d883;
    --red: #ff5b5b;
    --blue: #58c7ff;
    --glass: rgba(10, 21, 37, 0.78);
    --elevated: rgba(14, 29, 50, 0.92);
    --focus: rgba(216, 160, 61, 0.34);
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(circle at 18% -8%, rgba(88, 199, 255, 0.20), transparent 34%),
        radial-gradient(circle at 86% 12%, rgba(216, 160, 61, 0.13), transparent 28%),
        linear-gradient(180deg, #0e1b2f 0%, var(--bg) 54%, #07101d 100%);
    font-family: "Manrope", "SF Pro Text", "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 13.5px;
    letter-spacing: -0.006em;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent 70%);
    z-index: -1;
}

::selection {
    background: rgba(216, 160, 61, 0.34);
    color: var(--text);
}

.sidebar {
    width: 246px;
    padding: 18px 16px;
    background:
        linear-gradient(180deg, rgba(8, 17, 31, 0.94), rgba(5, 11, 22, 0.86)),
        var(--glass);
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.04);
}

.shell {
    margin-left: 246px;
    padding: 20px 22px 28px;
}

.brand {
    padding: 9px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.035);
}

.brand-mark {
    background: linear-gradient(135deg, #f3c56d, var(--amber));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), 0 10px 26px rgba(216, 160, 61, 0.18);
}

.brand strong {
    letter-spacing: -0.02em;
}

.brand small {
    font-size: 12px;
}

.nav-section {
    gap: 6px;
    padding: 12px 0;
}

nav a {
    position: relative;
    padding: 9px 12px 9px 14px;
    border: 1px solid transparent;
    color: #d9e6f8;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

nav a::before {
    content: "";
    position: absolute;
    inset: 9px auto 9px 6px;
    width: 3px;
    border-radius: 999px;
    background: transparent;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(255, 255, 255, 0.07);
    color: var(--text);
    transform: translateX(2px);
}

nav a:hover::before {
    background: var(--amber);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    margin: -20px -22px 18px;
    padding: 14px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(5, 11, 22, 0.78);
    backdrop-filter: blur(18px);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
}

.topbar .topbar-tabs {
    margin-left: auto;
    margin-right: auto;
}

.topbar .user-pill {
    margin-left: auto;
}

h1 {
    font-family: "Space Grotesk", "Manrope", "SF Pro Display", ui-sans-serif, system-ui, sans-serif;
    font-size: clamp(22px, 2.6vw, 31px);
    font-weight: 850;
}

h2 {
    font-family: "Space Grotesk", "Manrope", "SF Pro Display", ui-sans-serif, system-ui, sans-serif;
    font-size: 18px;
    font-weight: 780;
}

.eyebrow {
    color: #b7c4d7;
    font-size: 11px;
    letter-spacing: 0.15em;
}

.user-pill {
    padding: 7px 7px 7px 14px;
    background: rgba(255, 255, 255, 0.045);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

button,
.primary-btn,
.ghost-btn {
    min-height: 36px;
    border-radius: 11px;
    transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, opacity 150ms ease;
}

button:hover,
.primary-btn:hover,
.ghost-btn:hover {
    transform: translateY(-1px);
}

button:active,
.primary-btn:active,
.ghost-btn:active {
    transform: translateY(0);
}

button:focus-visible,
.primary-btn:focus-visible,
.ghost-btn:focus-visible,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}

button,
.primary-btn {
    background: linear-gradient(180deg, #f4c76f, var(--amber));
    color: #101827;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42), 0 10px 24px rgba(216, 160, 61, 0.16);
}

.ghost-btn {
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(199, 213, 235, 0.14);
}

.hero,
.panel,
.card,
.session-card,
.person-card,
.login-card,
.system-card,
.analysis-modal-card,
.calendar-shell {
    border-color: rgba(199, 213, 235, 0.12);
    background:
        linear-gradient(180deg, rgba(25, 45, 72, 0.92), rgba(14, 28, 48, 0.88));
    box-shadow:
        0 18px 60px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.hero,
.panel,
.system-card {
    position: relative;
    overflow: hidden;
}

.hero::after,
.panel::after,
.system-card::after {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
    pointer-events: none;
}

.panel-head {
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(199, 213, 235, 0.08);
}

.card,
.card-link,
.session-card,
.person-card,
.quick-admin-card,
.metric-link,
.list-row,
.calendar-day,
.topic-node,
.compact-list > div {
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.card:hover,
.card-link:hover,
.session-card:hover,
.person-card:hover,
.quick-admin-card:hover,
.metric-link:hover,
.list-row:hover,
.calendar-day:hover,
.topic-node:hover {
    border-color: rgba(216, 160, 61, 0.24);
    background-color: rgba(255, 255, 255, 0.045);
}

.big-card strong,
.mini-card strong,
.metric-grid strong,
.detail-status-card strong,
.analysis-summary-grid strong {
    color: #fff8e8;
    text-shadow: 0 0 24px rgba(216, 160, 61, 0.12);
}

.metric-grid span,
.metric-link,
.analysis-summary-grid article,
.quick-admin-card,
.date-filter-card,
.target-picker {
    border: 1px solid rgba(199, 213, 235, 0.10);
    background: rgba(255, 255, 255, 0.052);
}

.badge {
    border: 1px solid rgba(216, 160, 61, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.badge.ok {
    border-color: rgba(64, 216, 131, 0.20);
}

.badge.danger {
    border-color: rgba(255, 91, 91, 0.20);
}

input,
select,
textarea {
    background: rgba(3, 9, 18, 0.38);
    border-color: rgba(199, 213, 235, 0.13);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

input:hover,
select:hover,
textarea:hover {
    border-color: rgba(199, 213, 235, 0.22);
}

input:focus,
select:focus,
textarea:focus {
    background: rgba(3, 9, 18, 0.58);
    border-color: rgba(216, 160, 61, 0.48);
}

table {
    border: 1px solid rgba(199, 213, 235, 0.10);
    border-radius: 14px;
    overflow: hidden;
}

th {
    color: #e7eefb;
    background: rgba(255, 255, 255, 0.055);
}

td {
    background: rgba(255, 255, 255, 0.012);
}

tr:hover td {
    background: rgba(255, 255, 255, 0.035);
}

.calendar-day {
    background:
        linear-gradient(180deg, rgba(16, 31, 53, 0.74), rgba(10, 21, 37, 0.70));
}

.calendar-event {
    border-color: rgba(216, 160, 61, 0.22);
    background:
        linear-gradient(180deg, rgba(216, 160, 61, 0.15), rgba(216, 160, 61, 0.08));
}

.calendar-event:hover {
    transform: translateY(-1px);
}

.analysis-modal {
    background:
        radial-gradient(circle at center, rgba(88, 199, 255, 0.10), transparent 42%),
        rgba(2, 6, 12, 0.78);
}

.analysis-close {
    border: 1px solid rgba(199, 213, 235, 0.12);
}

.announcement-alert {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.public-body {
    background:
        radial-gradient(circle at 18% -8%, rgba(88, 199, 255, 0.18), transparent 32%),
        linear-gradient(180deg, #0e1b2f, #07101d);
}

/* Public landing hero */
.public-landing {
    position: relative;
    padding: 0;
    overflow-x: hidden;
    min-height: 100vh;
    background:
        radial-gradient(ellipse 70% 45% at 72% 12%, rgba(88, 199, 255, 0.16), transparent 55%),
        radial-gradient(ellipse 50% 35% at 18% 40%, rgba(216, 160, 61, 0.10), transparent 60%),
        linear-gradient(180deg, #0e1b2f 0%, #0a1424 48%, #07101d 100%);
}

.public-page-grid {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 56px 56px;
    opacity: 0.45;
}

.public-landing > *:not(.public-page-grid) {
    position: relative;
    z-index: 1;
}

.public-topnav {
    position: absolute;
    inset: 0 0 auto;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 22px 0 0;
}

.public-topnav-brand {
    display: inline-flex;
    align-items: center;
}

.public-topnav-logo {
    width: 148px;
    height: 68px;
}

.public-topnav-link {
    padding: 10px 14px;
    border: 1px solid rgba(199, 213, 235, 0.16);
    border-radius: 12px;
    background: rgba(8, 16, 28, 0.45);
    backdrop-filter: blur(10px);
    font-weight: 700;
    font-size: 0.9rem;
    transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.public-topnav-link:hover {
    transform: translateY(-1px);
    border-color: rgba(216, 160, 61, 0.4);
    background: rgba(216, 160, 61, 0.08);
}

.public-hero {
    position: relative;
    min-height: auto;
    display: grid;
    align-items: start;
    padding: 0 0 28px;
    isolation: isolate;
}

.public-hero-plane {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: transparent;
}

.public-hero-glow {
    position: absolute;
    width: 42vw;
    max-width: 520px;
    aspect-ratio: 1;
    right: 8%;
    top: 12%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(88, 199, 255, 0.22), transparent 68%);
    animation: publicHeroFloat 9s ease-in-out infinite;
    filter: blur(8px);
}

.blueprint-drones {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.blueprint-drone {
    position: absolute;
    color: rgba(120, 196, 255, 0.55);
    filter: drop-shadow(0 0 10px rgba(88, 199, 255, 0.12));
    opacity: 0.7;
    will-change: transform;
}

.blueprint-drone .prop {
    transform-origin: center;
    transform-box: fill-box;
    animation: blueprintPropSpin 1.1s linear infinite;
}

.blueprint-drone .prop-cross {
    transform-origin: center;
    transform-box: fill-box;
    animation: blueprintPropSpin 0.9s linear infinite;
}

.blueprint-drone.d1 {
    width: min(168px, 22vw);
    top: 18%;
    left: -12%;
    animation: droneFlyA 28s linear infinite;
}

.blueprint-drone.d2 {
    width: min(132px, 17vw);
    top: 42%;
    left: -18%;
    color: rgba(216, 180, 90, 0.42);
    animation: droneFlyB 36s linear infinite;
    animation-delay: -8s;
}

.blueprint-drone.d3 {
    width: min(110px, 14vw);
    top: 62%;
    left: -10%;
    color: rgba(140, 210, 255, 0.38);
    animation: droneFlyC 24s linear infinite;
    animation-delay: -14s;
}

.blueprint-drone.d4 {
    width: min(148px, 19vw);
    top: 28%;
    left: -16%;
    color: rgba(100, 190, 255, 0.48);
    animation: droneFlyD 32s linear infinite;
    animation-delay: -20s;
}

@keyframes blueprintPropSpin {
    to { transform: rotate(360deg); }
}

@keyframes droneFlyA {
    0%   { transform: translate(-8vw, 0) rotate(-6deg) scale(0.92); opacity: 0; }
    8%   { opacity: 0.75; }
    45%  { transform: translate(48vw, -8vh) rotate(4deg) scale(1); }
    70%  { transform: translate(78vw, 4vh) rotate(-2deg) scale(0.96); opacity: 0.65; }
    92%  { opacity: 0.45; }
    100% { transform: translate(112vw, -2vh) rotate(8deg) scale(0.9); opacity: 0; }
}

@keyframes droneFlyB {
    0%   { transform: translate(-10vw, 6vh) rotate(8deg) scale(0.85); opacity: 0; }
    10%  { opacity: 0.6; }
    40%  { transform: translate(36vw, -10vh) rotate(-4deg) scale(1); }
    65%  { transform: translate(70vw, 2vh) rotate(6deg) scale(0.94); }
    100% { transform: translate(115vw, -6vh) rotate(-10deg) scale(0.88); opacity: 0; }
}

@keyframes droneFlyC {
    0%   { transform: translate(110vw, 0) rotate(12deg) scale(0.8); opacity: 0; }
    12%  { opacity: 0.55; }
    50%  { transform: translate(50vw, -12vh) rotate(-6deg) scale(1); }
    100% { transform: translate(-16vw, 4vh) rotate(4deg) scale(0.86); opacity: 0; }
}

@keyframes droneFlyD {
    0%   { transform: translate(-12vw, 10vh) rotate(-10deg) scale(0.88); opacity: 0; }
    15%  { opacity: 0.7; }
    35%  { transform: translate(28vw, -4vh) rotate(3deg) scale(1.02); }
    55%  { transform: translate(55vw, 8vh) rotate(-8deg) scale(0.95); }
    80%  { transform: translate(88vw, -2vh) rotate(5deg) scale(1); opacity: 0.55; }
    100% { transform: translate(118vw, 6vh) rotate(-4deg) scale(0.9); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .blueprint-drone,
    .blueprint-drone .prop,
    .blueprint-drone .prop-cross {
        animation: none !important;
    }

    .blueprint-drone.d1 { left: 58%; top: 16%; opacity: 0.35; }
    .blueprint-drone.d2 { left: 72%; top: 48%; opacity: 0.28; }
    .blueprint-drone.d3 { left: 48%; top: 64%; opacity: 0.22; }
    .blueprint-drone.d4 { left: 78%; top: 26%; opacity: 0.3; }
}

.public-hero-copy {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    max-width: 620px;
    justify-self: start;
    padding-top: 96px;
    animation: publicHeroCopyIn 800ms cubic-bezier(0.22, 1, 0.36, 1) 120ms both;
}

.public-brand-name {
    margin: 0 0 14px;
    font-family: "Space Grotesk", "Manrope", sans-serif;
    font-size: clamp(2rem, 5.2vw, 3.6rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--text);
}

.public-hero-copy h1 {
    margin: 0 0 14px;
    font-family: "Space Grotesk", "Manrope", sans-serif;
    font-size: clamp(1.35rem, 2.8vw, 2rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #d7e4f5;
}

.public-hero-lead {
    margin: 0;
    max-width: 34ch;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.55;
}

.public-landing .public-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 0 0 56px;
}

.public-landing .booking-steps {
    margin: 8px 0 18px;
}

.public-landing .panel {
    border: 1px solid rgba(199, 213, 235, 0.12);
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(18, 35, 59, 0.88), rgba(9, 20, 36, 0.84));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.public-landing .panel-head h2 {
    font-family: "Space Grotesk", "Manrope", sans-serif;
    letter-spacing: -0.02em;
}

.booking-reveal {
    animation: publicRevealUp 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.booking-reveal:nth-child(2) { animation-delay: 80ms; }
.booking-reveal:nth-child(3) { animation-delay: 140ms; }

@keyframes publicHeroFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-14px) scale(1.04); }
}

@keyframes publicHeroCopyIn {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes publicRevealUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
    .public-hero {
        min-height: auto;
        padding: 0 0 24px;
    }

    .public-hero-copy {
        max-width: none;
        padding-top: 92px;
        text-align: left;
    }

    .public-topnav-logo {
        width: 118px;
        height: 54px;
    }

    .public-brand-name {
        font-size: clamp(1.8rem, 9vw, 2.6rem);
    }

    .public-hero-glow {
        right: -10%;
        top: 4%;
        width: 70vw;
    }
}

.workshop-card,
.date-chip,
.step-pill {
    border-color: rgba(199, 213, 235, 0.12);
    background: rgba(255, 255, 255, 0.038);
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.workshop-card:hover,
.date-chip:hover,
.step-pill.active {
    transform: translateY(-1px);
    border-color: rgba(216, 160, 61, 0.30);
}

.select-session-btn.selected {
    border-color: rgba(64, 216, 131, 0.35);
}

.message,
.alert {
    border: 1px solid rgba(199, 213, 235, 0.12);
}

.sidebar {
    display: none;
}

.shell {
    margin-left: 0;
    padding: 20px 22px 28px;
}

.calendar-shell {
    margin-top: 20px;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.calendar-weekdays,
.calendar-month-grid {
    gap: 8px;
}

.calendar-day {
    border: 1px solid rgba(199, 213, 235, 0.10);
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(16, 31, 53, 0.74), rgba(10, 21, 37, 0.70));
}

.calendar-day:nth-child(7n) {
    border-right: 1px solid rgba(199, 213, 235, 0.10);
}

.calendar-weekdays span {
    border: 0;
    background: transparent;
}

@keyframes floatOrb {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.04); }
}

@keyframes orbitDot {
    0% { transform: rotate(0deg) translateX(48px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(48px) rotate(-360deg); }
}

@keyframes flowMove {
    0% { transform: translateX(-110%); }
    100% { transform: translateX(310%); }
}

@keyframes tabIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes droneFloat {
    0%, 100% { translate: 0 0; }
    30% { translate: 18px -12px; }
    65% { translate: -10px 10px; }
}

@keyframes droneAcroOne {
    0%, 100% { translate: 0 0; rotate: -4deg; }
    24% { translate: 42px -22px; rotate: 12deg; }
    48% { translate: 10px 18px; rotate: -16deg; }
    72% { translate: -34px -8px; rotate: 10deg; }
}

@keyframes droneAcroTwo {
    0%, 100% { translate: 0 0; rotate: 8deg; }
    20% { translate: -38px 16px; rotate: -14deg; }
    46% { translate: -8px -26px; rotate: 18deg; }
    70% { translate: 34px 10px; rotate: -10deg; }
}

@keyframes droneAcroThree {
    0%, 100% { translate: 0 0; rotate: -10deg; }
    22% { translate: 24px 28px; rotate: 18deg; }
    50% { translate: -30px 4px; rotate: -22deg; }
    76% { translate: 18px -30px; rotate: 14deg; }
}

@keyframes propeller {
    to { rotate: 360deg; }
}

@keyframes flightPath {
    0%, 100% { opacity: 0.25; translate: -12px 0; }
    50% { opacity: 0.8; translate: 18px -4px; }
}

@media (max-width: 1100px) {
    .cards { grid-template-columns: repeat(auto-fit, minmax(180px, 220px)); justify-content: center; }
    .mini-cards { grid-template-columns: repeat(auto-fit, minmax(130px, 165px)); justify-content: center; }
    .workshop-summary-grid { grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); }
    .two-col, .session-grid, .people-grid, .system-grid, .detail-hero { grid-template-columns: 1fr; }
    .premium-date-filter { grid-template-columns: 1fr; }
    .premium-date-actions { justify-content: flex-start; }
    .admin-hero, .quick-admin-grid { grid-template-columns: 1fr; }
    .topbar-tabs { order: 3; flex-basis: 100%; justify-content: flex-start; }
    .motion-orb { min-height: 110px; }
    .public-layout { grid-template-columns: 1fr; }
    .workshop-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .sidebar {
        position: static;
        width: auto;
        padding: 16px;
    }
    .public-header { display: grid; }
    .public-body { padding: 14px; }
    .public-landing { padding: 0; }
    .public-topnav { width: min(1180px, calc(100% - 28px)); padding-top: 16px; }
    .public-landing .public-shell { width: min(1180px, calc(100% - 28px)); }
    nav {
        display: flex;
        overflow-x: auto;
        padding-bottom: 4px;
    }
    nav a { white-space: nowrap; }
    .shell { margin-left: 0; padding: 16px; }
    .topbar, .hero, .admin-hero, .list-row, .filterbar, .searchbar, .people-filterbar, .appointments-filterbar { display: grid; grid-template-columns: 1fr; }
    .topbar-tabs { order: 0; }
    .booking-steps { grid-template-columns: 1fr; }
    .attendance-row, .topic-row, .attendance-checkin-row { grid-template-columns: 1fr; }
    .cards, .mini-cards { grid-template-columns: 1fr; }
    .workshop-summary-grid { grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); }
    .workshop-summary-head { display: grid; }
    .premium-date-form { width: 100%; }
    .premium-date-form input { min-width: 0; }
    .analysis-summary-grid, .analysis-detail-grid { grid-template-columns: 1fr; }
    .inline-detail-grid { grid-template-columns: 1fr; }
    .admin-hero { min-height: auto; padding: 18px; }
    .motion-orb { display: none; }
    .user-pill { justify-content: space-between; border-radius: 16px; }
}
