:root {
    color-scheme: light;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", sans-serif;
    background: #eef3f7;
    color: #182431;
    --ink: #182431;
    --muted: #637082;
    --line: #d5dee8;
    --panel: #ffffff;
    --brand: #16456f;
    --brand-strong: #0d324f;
    --accent: #128475;
    --accent-soft: #e4f4f1;
    --warn: #c24132;
    --surface: #f7fafc;
    --shadow: 0 14px 34px rgba(22, 69, 111, 0.12);
}

/* 2026 global visual system: CSS-only, no external font or runtime dependency. */
:root {
    --ink: #172634;
    --muted: #607181;
    --line: #d7e3e8;
    --panel: rgba(255, 255, 255, .94);
    --brand: #164b6c;
    --brand-strong: #102f49;
    --accent: #118477;
    --accent-soft: #e4f6f2;
    --surface: #f4f8fa;
    --shadow: 0 18px 46px rgba(27, 66, 86, .09);
    --shadow-soft: 0 8px 24px rgba(27, 66, 86, .07);
    --radius-xl: 26px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --focus: 0 0 0 4px rgba(17, 132, 119, .16);
}

html { background: #eef4f6; scroll-behavior: smooth; }

body {
    color: var(--ink);
    background:
        radial-gradient(circle at 8% 0%, rgba(111, 212, 199, .13), transparent 25rem),
        radial-gradient(circle at 92% 10%, rgba(143, 126, 213, .1), transparent 28rem),
        linear-gradient(180deg, #fbfdfd 0, #f3f8fa 260px, #edf3f6 100%);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

::selection { background: #cdeee8; color: #123b43; }

:where(a, button, input, select, textarea):focus-visible {
    outline: 2px solid #128f81;
    outline-offset: 2px;
    box-shadow: var(--focus);
}

.topbar {
    position: relative;
    z-index: 10;
    min-height: 132px;
    padding-block: 22px;
    border-color: rgba(184, 205, 214, .72);
    background: rgba(255, 255, 255, .91);
    box-shadow: 0 8px 28px rgba(29, 66, 85, .05);
}

.brand-symbol,
.portal-brand-symbol,
.admin-mini-mark {
    background: linear-gradient(145deg, #123c5b, #0e6f72);
    box-shadow: 0 12px 28px rgba(15, 68, 83, .18), inset 0 1px 0 rgba(255,255,255,.18);
}

.brand-name { letter-spacing: -.045em; }
.brand-parent { letter-spacing: .035em; }

.public-nav,
.member-nav {
    min-height: 44px;
    border-color: rgba(191, 209, 217, .7);
    border-radius: 14px;
    background: rgba(248, 251, 252, .86);
}

.public-nav a,
.member-nav a,
.member-link { padding: 5px 4px; }

.app-shell { width: min(1360px, calc(100% - 40px)); padding-top: 30px; }

:where(.public-panel, .provider-hero, .admin-panel, .course-card, .auth-panel, .search-panel, .summary) {
    border-color: rgba(180, 205, 214, .68);
    box-shadow: var(--shadow-soft);
}

:where(.public-panel, .provider-hero, .admin-panel, .auth-panel) {
    border-radius: var(--radius-lg);
    background: var(--panel);
}

.public-panel,
.provider-hero { padding: clamp(20px, 2.5vw, 32px); }

.provider-hero {
    background:
        radial-gradient(circle at 96% 0%, rgba(117, 207, 194, .16), transparent 18rem),
        linear-gradient(145deg, rgba(255,255,255,.98), rgba(241,249,250,.94));
}

.section-heading span,
.portal-eyebrow {
    letter-spacing: .09em;
    text-transform: uppercase;
}

.section-heading h1,
.provider-hero h1,
.admin-content-head h1 {
    color: #172b39;
    letter-spacing: -.035em;
    text-wrap: balance;
}

.section-heading p { max-width: 72ch; color: var(--muted); }

:where(button, .button-link, .solid-link, .portal-action-link) {
    min-height: 42px;
    border-radius: 12px;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background-color .16s ease;
}

:where(button, .solid-link) {
    box-shadow: 0 7px 18px rgba(20, 75, 95, .13);
}

@media (hover: hover) {
    :where(button, .button-link, .solid-link, .portal-action-link):hover { transform: translateY(-1px); }
    :where(.course-card, .room-card, .portal-card, .admin-panel):hover { border-color: rgba(116, 178, 186, .64); box-shadow: var(--shadow); }
}

:where(input, select, textarea) {
    min-height: 46px;
    border-color: #cedde3;
    border-radius: 12px;
    background: rgba(255,255,255,.94);
    color: var(--ink);
    font: inherit;
    transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

:where(input, select, textarea):hover { border-color: #9ebfc7; }
:where(input, select, textarea):focus { border-color: #23998c; background: #fff; }
:where(input, textarea)::placeholder { color: #91a0ac; }

.search-panel {
    padding: 18px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(233,247,246,.92));
}

.search-heading strong { color: #1c3e4d; }

.summary {
    min-height: 58px;
    margin-block: 16px;
    padding: 14px 18px;
    border-radius: 16px;
    background: rgba(255,255,255,.82);
}

.course-list { gap: 18px; }

.course-card {
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(248,251,252,.95));
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.course-card h2 { color: #172b39; letter-spacing: -.018em; }
.course-date { border-radius: 10px; background: #e5f0f8; }
.badges span { border-radius: 999px; }

.table-wrap,
.table-scroll {
    border: 1px solid rgba(190, 208, 216, .74);
    border-radius: 16px;
    background: rgba(255,255,255,.78);
}

:where(.data-table, .table-scroll table) thead th {
    color: #38505f;
    background: #edf5f6;
    font-size: 12px;
    letter-spacing: .03em;
}

:where(.data-table, .table-scroll table) tbody tr:nth-child(even) { background: rgba(241,247,248,.64); }
:where(.data-table, .table-scroll table) tbody tr:hover { background: #eaf6f4; }

.admin-layout { background: #f2f7f9; }
.admin-sidebar { border-color: rgba(184, 204, 212, .7); background: linear-gradient(180deg, #fbfdfd, #f3f8f9); }
.admin-sidebar-nav a { border-radius: 12px; }
.admin-sidebar-nav a.is-active { background: linear-gradient(135deg, #dff2ef, #e9e4fa); color: #155f60; }
.admin-content { background: radial-gradient(circle at 100% 0%, rgba(129, 118, 203, .07), transparent 24rem), #f3f7f9; }
.admin-panel { padding: 22px; }

.portal-topbar { border-bottom-color: rgba(184, 205, 214, .7); background: rgba(255,255,255,.9); }
.portal-hero,
.realm-story { border-radius: 28px; }
.portal-hero { box-shadow: var(--shadow); }
.portal-action-link { border-radius: 16px; box-shadow: var(--shadow-soft); }
.realm-card,
.role-card,
.content-card { border-radius: 20px; box-shadow: var(--shadow-soft); }

.space-console-sidebar,
.space-provider-card { border-radius: 20px; }
.space-console-menu a { border-radius: 12px; }
.room-card-cover { border-radius: 16px; }

.empty {
    border-radius: 18px;
    border-color: rgba(179, 205, 214, .72);
    background: rgba(255,255,255,.72);
    color: #6a7b88;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media (max-width: 900px) {
    .app-shell { width: min(100% - 28px, 1360px); }
    .topbar { min-height: 0; }
}

@media (max-width: 560px) {
    .app-shell { width: min(100% - 20px, 1360px); padding-top: 18px; }
    .topbar { padding: 18px; }
    .public-panel,
    .provider-hero,
    .admin-panel { border-radius: 17px; }
    .search-panel { padding: 14px; border-radius: 16px; }
    .course-card { border-radius: 17px; }
}

.space-booking-calendar-panel { overflow: hidden; }
.space-calendar-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.space-calendar-header .section-heading { min-width: 0; }
.space-calendar-filter { display: grid; grid-template-columns: 150px minmax(180px, 1fr) auto; align-items: end; gap: 10px; min-width: min(100%, 480px); }
.space-calendar-filter label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 900; }
.space-calendar-toolbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin: 24px 0 14px; }
.space-calendar-toolbar strong { color: #173747; font-size: 22px; text-align: center; }
.space-calendar-toolbar a:first-child { justify-self: start; }
.space-calendar-toolbar a:last-child { justify-self: end; }
.space-calendar-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.space-calendar-legend > span { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 0 10px; border: 1px solid transparent; border-radius: 999px; font-size: 12px; font-weight: 900; }
.space-calendar-legend b { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: rgba(255,255,255,.72); }
.space-calendar-legend .is-booked { color: #2257a6; background: #e6efff; border-color: #b8cff8; }
.space-calendar-legend .is-pending { color: #925b0a; background: #fff3d8; border-color: #efd08e; }
.space-calendar-legend .is-active { color: #116c4d; background: #dcf6e9; border-color: #9bdcbc; }
.space-calendar-legend .is-ended { color: #5e6b75; background: #edf1f3; border-color: #cbd5da; }
.space-calendar-legend .is-cancelled { color: #96505c; background: #f9e8eb; border-color: #e8bec6; }
.space-booking-calendar-scroll { overflow-x: auto; overscroll-behavior-inline: contain; border: 1px solid #cddde3; border-radius: 18px; background: #fff; }
.space-source-panel { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 22px; padding: 18px 20px; border: 1px solid rgba(15,118,110,.2); border-radius: 18px; background: linear-gradient(135deg, rgba(204,251,241,.62), rgba(239,246,255,.82)); }
.space-source-panel > div { display: grid; gap: 5px; }
.space-source-panel span, .space-source-panel p { color: var(--muted); }
.space-source-panel form { flex: 0 0 auto; }
.space-integrated-menu {
    display: grid;
    align-content: start;
    gap: 6px;
    margin: 0;
    padding: 14px;
    border: 1px solid #b7d7d7;
    border-radius: 16px;
    background: linear-gradient(145deg, #eaf7f5, #eef3fb);
    box-shadow: 0 10px 24px rgba(28, 79, 92, .08);
}
.space-integrated-menu span {
    margin-bottom: 3px;
    color: #275265;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .06em;
}
.space-integrated-menu a {
    display: block;
    padding: 11px 12px;
    border: 1px solid #c5dadd;
    border-radius: 11px;
    color: #123f59;
    background: rgba(255,255,255,.88);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.35;
    text-decoration: none;
}
.space-integrated-menu a:hover,
.space-integrated-menu a:focus-visible {
    border-color: #4c9d96;
    outline: none;
    color: #0b5f58;
    background: #dff3ef;
    box-shadow: 0 0 0 3px rgba(34, 139, 130, .14);
}
.space-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(125px, 1fr)); min-width: 875px; }
.space-calendar-weekday { display: grid; place-items: center; min-height: 44px; border-right: 1px solid #dce7eb; border-bottom: 1px solid #cddde3; color: #fff; background: #31546b; font-weight: 900; }
.space-calendar-weekday:nth-child(1) { background: #9f5865; }
.space-calendar-weekday:nth-child(7) { background: #5260a2; }
.space-calendar-day { min-height: 148px; padding: 8px; border-right: 1px solid #e0e9ed; border-bottom: 1px solid #e0e9ed; background: rgba(255,255,255,.98); }
.space-calendar-day:nth-child(14n + 8),
.space-calendar-day:nth-child(14n + 9),
.space-calendar-day:nth-child(14n + 10),
.space-calendar-day:nth-child(14n + 11),
.space-calendar-day:nth-child(14n + 12),
.space-calendar-day:nth-child(14n + 13),
.space-calendar-day:nth-child(14n + 14) { background: #f8fbfc; }
.space-calendar-day.is-outside { background: #f3f5f6; color: #a3aeb5; }
.space-calendar-day.is-today { background: #ecfaf6; box-shadow: inset 0 0 0 2px #3aab91; }
.space-calendar-day > time { display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 6px; border-radius: 9px; color: #405564; font-size: 13px; font-weight: 950; }
.space-calendar-day.is-today > time { color: #fff; background: #16816e; }
.space-calendar-event { position: relative; margin-top: 5px; border: 1px solid transparent; border-radius: 9px; font-size: 11px; }
.space-calendar-event summary { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 5px; padding: 6px 7px; cursor: pointer; list-style: none; }
.space-calendar-event summary::-webkit-details-marker { display: none; }
.space-calendar-event summary span { font-variant-numeric: tabular-nums; opacity: .82; }
.space-calendar-event summary strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.space-calendar-event > div { position: relative; z-index: 3; display: grid; gap: 3px; padding: 7px; border-top: 1px solid rgba(0,0,0,.08); line-height: 1.4; }
.space-calendar-event > div b { margin-bottom: 2px; }
.space-calendar-event.is-booked { color: #1e4f98; background: #e4eeff; border-color: #abc6f4; }
.space-calendar-event.is-pending { color: #855306; background: #fff0cc; border-color: #ebc56f; }
.space-calendar-event.is-active { color: #0e684a; background: #d9f5e7; border-color: #83d1ab; box-shadow: 0 4px 12px rgba(29,137,96,.14); }
.space-calendar-event.is-ended { color: #59666f; background: #e9eef0; border-color: #c2cdd2; }
.space-calendar-event.is-cancelled { color: #8b4c57; background: #f7e5e9; border-color: #dfb6be; opacity: .78; }

@media (max-width: 900px) {
    .space-calendar-header { align-items: stretch; flex-direction: column; }
    .space-calendar-filter { width: 100%; min-width: 0; }
}

@media (max-width: 560px) {
    .space-source-panel { align-items: stretch; flex-direction: column; }
    .space-source-panel button { width: 100%; }
    .space-calendar-filter { grid-template-columns: 1fr; }
    .space-calendar-toolbar { grid-template-columns: auto 1fr auto; }
    .space-calendar-toolbar strong { font-size: 17px; }
    .space-calendar-toolbar .button-link { min-height: 38px; padding-inline: 9px; font-size: 12px; }
    .space-calendar-grid { grid-template-columns: repeat(7, 118px); min-width: 826px; }
    .space-calendar-day { min-height: 132px; }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background:
        linear-gradient(180deg, #ffffff 0, #f7fafc 156px, #eef3f7 156px);
}

.topbar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 26px clamp(20px, 5vw, 72px);
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    min-height: 148px;
}

h1 {
    margin: 0 0 6px;
    font-size: clamp(24px, 3vw, 36px);
    letter-spacing: 0;
}

p {
    line-height: 1.6;
}

.topbar p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 15px;
    font-weight: 700;
}

.brand-block {
    display: grid;
    gap: 4px;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--ink);
    text-decoration: none;
}

.brand-symbol {
    display: inline-grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: var(--brand-strong);
    color: #ffffff;
    font-size: 28px;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(13, 50, 79, 0.2);
}

body[data-page="register-space-provider"] .brand-symbol,
body[data-page="space-provider"] .brand-symbol {
    background: linear-gradient(135deg, #38506b, #667b94);
    box-shadow: 0 10px 24px rgba(56, 80, 107, 0.2);
}

body[data-page="register-space-provider"] .brand-parent,
body[data-page="space-provider"] .brand-parent,
body[data-page="register-space-provider"] .section-heading span,
body[data-page="space-provider"] .section-heading span {
    color: #5a6f8c;
}

body[data-page="register-space-provider"] .solid-link,
body[data-page="space-provider"] .solid-link,
body[data-page="register-space-provider"] button,
body[data-page="space-provider"] button {
    border-color: #38506b;
    background: #38506b;
}

body[data-page="register-space-provider"] .provider-hero,
body[data-page="space-provider"] .provider-hero {
    background:
        linear-gradient(135deg, rgba(90, 111, 140, 0.08), rgba(255, 255, 255, 0.92)),
        #ffffff;
}

.brand-parent,
.brand-name {
    display: block;
    line-height: 1.05;
    letter-spacing: 0;
}

.brand-parent {
    color: var(--accent);
    font-size: 15px;
    font-weight: 900;
}

.brand-name {
    color: var(--ink);
    font-size: clamp(32px, 4vw, 46px);
    font-weight: 950;
}

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

.module-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    min-height: 44px;
    padding: 5px;
    border: 1px solid #d7e3e8;
    border-radius: 14px;
    background: rgba(248, 251, 252, .92);
}

.module-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 11px;
    border-radius: 10px;
    color: #184c68;
    font-size: 14px;
    font-weight: 850;
    line-height: 1.25;
    text-decoration: none;
    white-space: nowrap;
}

.module-nav a:hover,
.module-nav a:focus-visible {
    color: #075f58;
    background: #e3f4f1;
}

.module-nav .nav-workspace-link,
.nav-workspace-link {
    color: #ffffff;
    background: linear-gradient(135deg, #0e716b, #174d6b);
}

.module-nav .nav-workspace-link:hover,
.module-nav .nav-workspace-link:focus-visible,
.nav-workspace-link:hover,
.nav-workspace-link:focus-visible {
    color: #ffffff;
    background: linear-gradient(135deg, #0a615c, #123f59);
}

.member-center-section {
    grid-column: 1 / -1;
    margin: 0;
    padding: clamp(20px, 3vw, 28px);
    border: 1px solid #d7e4e9;
    border-radius: 18px;
    background: rgba(248, 252, 252, .86);
}

.member-center-section legend {
    padding: 0 9px;
    color: #164e69;
    font-size: 17px;
    font-weight: 900;
}

.profile-panel .profile-form {
    gap: 24px;
}

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

.member-required-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.member-required-grid label,
.member-center-grid label {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px;
    color: #415765;
    font-size: 14px;
    font-weight: 850;
}

.member-required-grid label > :is(input, select, textarea),
.member-center-grid label > :is(input, select, textarea) {
    grid-column: 1 / -1;
}

.member-required-grid label small {
    padding: 3px 7px;
    border-radius: 999px;
    color: #0a7168;
    background: #e1f4ef;
    font-size: 11px;
    font-weight: 900;
}

.member-section-note {
    margin: 0 0 20px;
    color: #60737f;
    font-size: 14px;
}

.member-onboarding-panel {
    width: min(760px, 100%);
    margin-inline: auto;
    border-color: #9ecfc8;
    box-shadow: 0 24px 70px rgba(26, 79, 91, .18);
}

.member-onboarding-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    padding: 13px 15px;
    border: 1px solid #a9d8d0;
    border-radius: 14px;
    color: #315865;
    background: linear-gradient(135deg, #e5f7f3, #eef6fb);
}

.member-optional-fields {
    margin-top: 20px;
    border-top: 1px solid #dce7eb;
}

.member-optional-fields summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 2px 4px;
    color: #1f5368;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
}

.member-optional-fields summary span {
    color: #738590;
    font-size: 12px;
    font-weight: 700;
}

.member-optional-fields[open] summary {
    margin-bottom: 16px;
}

.member-onboarding-notice strong {
    flex: 0 0 auto;
    color: #0b6e64;
}

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

.member-center-grid label {
    min-width: 0;
}

.member-center-grid .profile-notes {
    grid-column: 1 / -1;
}

.member-center-actions {
    grid-column: 1 / -1;
}

.provider-source-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 9px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.provider-source-badge.is-manual {
    color: #17614f;
    border-color: #a9d9c8;
    background: #e3f6ef;
}

.provider-source-badge.is-synced {
    color: #285b8a;
    border-color: #b8d2eb;
    background: #eaf3fb;
}

@media (max-width: 560px) {
    .member-required-grid,
    .member-required-grid-three {
        grid-template-columns: 1fr;
    }

    .member-center-grid {
        grid-template-columns: 1fr;
    }

    .member-center-grid .profile-notes {
        grid-column: auto;
    }
}

.public-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border: 1px solid #e2e9f0;
    border-radius: 8px;
    background: #ffffff;
}

.public-nav a {
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.public-nav a:hover,
.member-nav a:hover,
.member-link:hover,
.button-link:hover {
    color: var(--accent);
}

.member-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 14px;
    padding: 8px 10px;
    background: var(--surface);
    border: 1px solid #e2e9f0;
    border-radius: 8px;
}

.member-nav a,
.member-link,
.button-link {
    color: var(--brand);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.member-nav .member-admin-link {
    padding: 7px 12px;
    border-radius: 10px;
    background: var(--brand);
    color: #fff;
    box-shadow: 0 6px 16px rgba(18, 60, 91, .15);
}

.member-nav .member-admin-link:hover {
    color: #fff;
    background: var(--accent);
}

.app-shell {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding-top: 26px;
    min-height: 0;
}

body[data-page] .app-shell {
    overflow-y: auto;
    padding-bottom: 32px;
}

body[data-page="portal"] {
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
    display: block;
    background:
        linear-gradient(180deg, #ffffff 0, #f5faf9 240px, #eef3f7 680px);
}

.admin-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    width: 100%;
    height: 100vh;
    min-height: 0;
    background: var(--surface);
}

.admin-layout.is-collapsed {
    grid-template-columns: 76px minmax(0, 1fr);
}

.admin-sidebar {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 20px 16px;
    background: #ffffff;
    border-right: 1px solid var(--line);
}

.admin-sidebar-head {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
}

.admin-mini-mark {
    display: inline-grid;
    place-items: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--brand-strong);
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
}

.admin-sidebar-head strong,
.admin-sidebar-head small {
    display: block;
    white-space: nowrap;
}

.admin-sidebar-head strong {
    color: var(--ink);
    font-size: 20px;
}

.admin-sidebar-head small {
    color: var(--accent);
    font-weight: 800;
}

.admin-collapse {
    position: absolute;
    top: 22px;
    right: -17px;
    z-index: 2;
    min-width: 34px;
    min-height: 34px;
    padding: 0;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(24, 36, 49, 0.12);
}

.admin-tree {
    display: grid;
    gap: 8px;
    margin-top: 28px;
}

.admin-tree-title {
    padding: 0 10px 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.admin-tree-group {
    border: 1px solid #e5edf4;
    border-radius: 10px;
    background: #fbfdff;
}

.admin-tree-group summary {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 8px 10px;
    color: var(--ink);
    font-weight: 900;
    cursor: pointer;
    list-style: none;
}

.admin-tree-group summary::-webkit-details-marker {
    display: none;
}

.admin-tree-group summary::after {
    content: "⌄";
    margin-left: auto;
    color: var(--muted);
    font-size: 14px;
    transition: transform 0.18s ease;
}

.admin-tree-group[open] summary::after {
    transform: rotate(180deg);
}

.admin-tree-mark {
    display: inline-grid;
    place-items: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--accent-soft);
    color: #0f655c;
    font-size: 15px;
    font-weight: 900;
}

.admin-tree-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-tree-links {
    display: grid;
    gap: 4px;
    padding: 0 8px 8px 46px;
}

.admin-tree a,
.admin-sidebar-foot a {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--brand);
    font-weight: 900;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-tree a:hover,
.admin-tree a.is-active {
    background: var(--accent-soft);
    color: #0f655c;
}

.admin-sidebar-foot {
    margin-top: auto;
    border-top: 1px solid #e2e9f0;
    padding-top: 14px;
}

.admin-content {
    min-width: 0;
    overflow-y: auto;
    padding: 28px clamp(20px, 3vw, 36px) 36px;
}

.admin-content-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.admin-content-head p {
    margin: 0 0 6px;
    color: var(--accent);
    font-weight: 900;
}

.admin-content-head h1 {
    margin: 0;
    font-size: 32px;
}

.admin-layout.is-collapsed .admin-sidebar {
    align-items: center;
    padding-left: 10px;
    padding-right: 10px;
}

.admin-layout.is-collapsed .admin-sidebar-head div,
.admin-layout.is-collapsed .admin-tree-title,
.admin-layout.is-collapsed .admin-sidebar-foot {
    display: none;
}

.admin-layout.is-collapsed .admin-tree {
    width: 100%;
}

.admin-layout.is-collapsed .admin-tree-group {
    width: 100%;
    border: 0;
    background: transparent;
}

.admin-layout.is-collapsed .admin-tree-group summary {
    width: 48px;
    min-height: 44px;
    justify-content: center;
    padding: 8px 0;
}

.admin-layout.is-collapsed .admin-tree-group summary::after,
.admin-layout.is-collapsed .admin-tree-label,
.admin-layout.is-collapsed .admin-tree-links {
    display: none;
}

.admin-layout.is-collapsed .admin-tree-mark {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
}

.admin-layout.is-collapsed .admin-tree a {
    width: 48px;
    min-height: 44px;
    padding: 12px 0;
    text-align: center;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(250px, 1.35fr) repeat(4, minmax(128px, 1fr)) auto;
    gap: 12px;
    padding: 18px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.search-heading {
    grid-column: 1 / -1;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 2px;
}

.search-heading span {
    color: var(--accent);
    font-size: 13px;
    font-weight: 900;
}

.search-heading strong {
    color: var(--ink);
    font-size: 17px;
    letter-spacing: 0;
}

input,
select,
button {
    min-height: 46px;
    border-radius: 6px;
    border: 1px solid #c3cfda;
    padding: 0 12px;
    font: inherit;
    background: #ffffff;
}

input:focus,
select:focus,
textarea:focus {
    outline: 3px solid rgba(18, 132, 117, 0.18);
    border-color: var(--accent);
}

button {
    border-color: var(--brand);
    background: var(--brand);
    color: #ffffff;
    cursor: pointer;
    white-space: nowrap;
    font-weight: 800;
}

.danger-button {
    border-color: var(--warn);
    background: var(--warn);
}

.secondary-button {
    border-color: #9aa7b5;
    background: #ffffff;
    color: var(--muted);
}

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

.summary {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 18px 0;
    color: var(--muted);
    font-weight: 700;
}

.summary strong {
    color: var(--ink);
}

.results-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-bottom: 32px;
    overscroll-behavior: contain;
}

.section-heading {
    display: grid;
    gap: 8px;
    max-width: 820px;
}

.section-heading span {
    color: var(--accent);
    font-size: 13px;
    font-weight: 950;
    letter-spacing: 0;
}

.section-heading h1 {
    margin: 0;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
    font-weight: 650;
}

.role-gateway {
    display: grid;
    gap: 18px;
    margin-bottom: 18px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.role-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.role-card {
    display: grid;
    gap: 12px;
    align-content: start;
    min-height: 210px;
    padding: 18px;
    border: 1px solid #dbe4ee;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
}

.role-card h2 {
    margin: 4px 0 0;
    color: var(--ink);
    font-size: 22px;
    letter-spacing: 0;
}

.role-card p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    font-weight: 650;
}

.role-kicker {
    color: var(--accent);
    font-size: 13px;
    font-weight: 950;
}

.role-status {
    justify-self: start;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: #0f655c;
    font-size: 13px;
    font-weight: 900;
}

.public-panel {
    display: grid;
    gap: 22px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.portal-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 410px);
    align-items: center;
    gap: clamp(32px, 6vw, 80px);
    min-height: 520px;
    margin-bottom: 68px;
    padding: clamp(42px, 6vw, 78px);
    border: 1px solid rgba(198, 216, 218, 0.8);
    border-radius: 32px;
    background:
        radial-gradient(circle at 82% 18%, rgba(70, 165, 151, 0.18), transparent 30%),
        radial-gradient(circle at 10% 90%, rgba(22, 69, 111, 0.08), transparent 34%),
        linear-gradient(145deg, #ffffff 0%, #fbfdfc 54%, #eef7f5 100%);
    box-shadow: 0 30px 70px rgba(27, 67, 82, 0.1);
    overflow: hidden;
    min-width: 0;
}

.portal-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 14px;
}

.portal-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--ink);
    text-decoration: none;
}

.portal-brand-symbol {
    display: inline-grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--brand-strong), var(--accent));
    color: #ffffff;
    font-size: 28px;
    font-weight: 950;
    box-shadow: 0 14px 30px rgba(13, 50, 79, 0.22);
}

.portal-brand strong,
.portal-brand small {
    display: block;
    line-height: 1.1;
}

.portal-brand strong {
    font-size: 28px;
    font-weight: 950;
}

.portal-brand small {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.portal-shell {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 12px 0 48px;
}

.portal-hero-copy {
    position: relative;
    display: grid;
    gap: 20px;
    max-width: 820px;
    z-index: 2;
    min-width: 0;
}

.portal-eyebrow {
    color: var(--accent);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.14em;
}

.portal-hero-copy h1 {
    max-width: 760px;
    font-size: clamp(46px, 5.4vw, 72px);
    line-height: 1.12;
    letter-spacing: -0.045em;
}

.portal-hero-copy p {
    max-width: 620px;
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.9;
}

.portal-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 8px;
}

.portal-hero-actions .solid-link {
    min-height: 54px;
    padding: 0 24px;
    border-radius: 999px;
    box-shadow: 0 16px 30px rgba(22, 69, 111, 0.2);
}

.portal-hero-art {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 360px;
    aspect-ratio: 1;
    isolation: isolate;
}

.portal-hero-art::before {
    content: "";
    position: absolute;
    width: 50%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: linear-gradient(145deg, #16456f, #128475);
    box-shadow: 0 30px 70px rgba(15, 86, 96, 0.25);
    z-index: -1;
}

.portal-hero-art strong {
    color: #ffffff;
    font-size: clamp(36px, 4vw, 54px);
    font-weight: 950;
    letter-spacing: 0.08em;
}

.portal-hero-art small {
    position: absolute;
    top: 57%;
    color: rgba(255, 255, 255, 0.72);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.12em;
}

.realm-orbit {
    position: absolute;
    inset: 8%;
    border: 1px solid rgba(22, 69, 111, 0.2);
    border-radius: 50%;
}

.orbit-two {
    inset: 0;
    border-color: rgba(18, 132, 117, 0.16);
    transform: rotate(-22deg) scaleY(0.74);
}

.orbit-one {
    transform: rotate(24deg) scaleY(0.72);
}

.realm-glow {
    position: absolute;
    inset: 20%;
    border-radius: 50%;
    background: rgba(18, 132, 117, 0.18);
    filter: blur(34px);
    z-index: -2;
}

.realm-word {
    position: absolute;
    display: grid;
    place-items: center;
    min-width: 62px;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    color: var(--brand);
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(22, 69, 111, 0.12);
    backdrop-filter: blur(10px);
}

.word-learn { left: 5%; top: 22%; }
.word-create { right: 3%; top: 30%; }
.word-grow { left: 7%; bottom: 20%; }
.word-meet { right: 8%; bottom: 14%; }
}

.portal-orbit {
    position: relative;
    min-height: 420px;
    border: 1px solid #dbe4ee;
    border-radius: 8px;
    background:
        radial-gradient(circle at center, #ffffff 0 20%, rgba(228, 244, 241, 0.8) 21% 22%, transparent 23%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(247, 250, 252, 0.9));
    overflow: hidden;
}

.portal-orbit::before,
.portal-orbit::after {
    content: "";
    position: absolute;
    inset: 50px;
    border: 1px solid rgba(22, 69, 111, 0.14);
    border-radius: 50%;
}

.portal-orbit::after {
    inset: 96px;
    border-color: rgba(18, 132, 117, 0.18);
}

.orbit-core {
    position: absolute;
    inset: 50%;
    display: grid;
    place-items: center;
    width: 150px;
    height: 150px;
    margin: -75px;
    border-radius: 50%;
    background: var(--brand-strong);
    color: #ffffff;
    text-align: center;
    box-shadow: 0 18px 34px rgba(13, 50, 79, 0.25);
    z-index: 2;
}

.orbit-core strong,
.orbit-core span {
    display: block;
}

.orbit-core strong {
    font-size: 34px;
    font-weight: 950;
}

.orbit-core span {
    color: #cde8e5;
    font-size: 12px;
    font-weight: 800;
}

.orbit-node {
    position: absolute;
    display: grid;
    gap: 3px;
    width: 132px;
    min-height: 74px;
    padding: 12px;
    border: 1px solid #dbe4ee;
    border-radius: 8px;
    background: #ffffff;
    color: var(--ink);
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(22, 69, 111, 0.12);
    z-index: 3;
    font-size: 24px;
    font-weight: 950;
}

.orbit-node span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.node-search { left: 28px; top: 54px; }
.node-create { right: 28px; top: 76px; }
.node-talent { left: 70px; bottom: 46px; }
.node-space { right: 62px; bottom: 52px; }

.realm-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 0;
}

.portal-section-heading {
    display: grid;
    gap: 9px;
    max-width: 720px;
    margin: 0 0 28px;
}

.portal-section-heading h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 36px);
    letter-spacing: -0.02em;
}

.portal-section-heading p {
    margin: 0;
    color: var(--muted);
    font-weight: 700;
}

.realm-card,
.portal-card {
    display: grid;
    align-content: start;
    gap: 13px;
    min-height: 286px;
    padding: 28px;
    border: 1px solid rgba(213, 226, 230, 0.9);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(27, 67, 82, 0.08);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.realm-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 26px 54px rgba(27, 67, 82, 0.13);
}

.realm-card-index {
    justify-self: end;
    color: rgba(22, 69, 111, 0.2);
    font-size: 30px;
    font-weight: 900;
    line-height: 1;
}

.realm-card span,
.portal-card span {
    color: var(--accent);
    font-size: 13px;
    font-weight: 950;
}

.realm-card h2,
.portal-card h2 {
    margin: 0;
    color: var(--ink);
    font-size: 22px;
    line-height: 1.45;
    letter-spacing: 0;
}

.realm-card p,
.portal-card p {
    margin: 0;
    color: var(--muted);
    font-weight: 650;
    line-height: 1.65;
}

.realm-card a {
    align-self: end;
    justify-self: start;
    color: var(--brand);
    font-weight: 900;
    text-decoration: none;
}

.realm-card a span {
    color: inherit;
    font-size: inherit;
}

.realm-card.search { background: linear-gradient(160deg, #ffffff 68%, #f0f5f9); }
.realm-card.create { background: linear-gradient(160deg, #ffffff 68%, #edf8f5); }
.realm-card.talent { background: linear-gradient(160deg, #ffffff 68%, #fbf5ed); }
.realm-card.space { background: linear-gradient(160deg, #ffffff 68%, #f1f3f7); }

.portal-card .solid-link {
    align-self: end;
    justify-self: start;
}

.realm-story {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.realm-story h2 {
    margin: 6px 0 8px;
    font-size: clamp(24px, 3vw, 38px);
}

.realm-story p {
    margin: 0;
    color: var(--muted);
    font-weight: 700;
}

.realm-flow {
    display: grid;
    grid-template-columns: repeat(2, 108px);
    gap: 10px;
}

.realm-flow span {
    display: grid;
    place-items: center;
    min-height: 72px;
    border-radius: 8px;
    background: var(--accent-soft);
    color: #0f655c;
    font-size: 18px;
    font-weight: 950;
}

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

.content-grid article {
    padding: 18px;
    border: 1px solid #dbe4ee;
    border-radius: 8px;
    background: var(--surface);
}

.content-grid h2,
.legal-content h2 {
    margin: 0 0 8px;
    font-size: 20px;
    letter-spacing: 0;
}

.content-grid p,
.legal-content p {
    margin: 0;
    color: var(--muted);
    font-weight: 650;
}

.legal-content {
    max-width: 920px;
    margin: 0 auto;
}

.course-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(292px, 1fr));
    gap: 16px;
}

.course-card,
.empty {
    position: relative;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px 18px 60px;
}

.course-card {
    height: 372px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(24, 36, 49, 0.06);
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.course-card:hover {
    border-color: #b8c8d7;
    box-shadow: 0 14px 30px rgba(24, 36, 49, 0.1);
    transform: translateY(-1px);
}

.favorite-form,
.course-card-actions {
    position: absolute;
    bottom: 14px;
    right: 14px;
    z-index: 2;
}

.course-card-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.favorite-star,
.room-favorite-star {
    display: inline-grid;
    place-items: center;
    min-width: 34px;
    min-height: 34px;
    padding: 0;
    border: 1px solid #d4dce6;
    border-radius: 50%;
    background: #ffffff;
    color: #9aa7b5;
    font-size: 20px;
    line-height: 1;
    pointer-events: auto;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.favorite-star.is-active,
.room-favorite-star.is-active {
    border-color: #f1c40f;
    background: #fff7d6;
    color: #f1b400;
    transform: scale(1.04);
}

.course-date {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    min-height: 30px;
    padding: 6px 10px;
    border: 1px solid #cfe1ef;
    border-radius: 10px;
    background: #e8f1fa;
    color: var(--brand);
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.35;
}

.course-date strong {
    font-weight: 900;
}

.course-date span {
    font-weight: 700;
}

.course-date.is-in-progress {
    border-color: #a9dccd;
    background: linear-gradient(135deg, #dff6ee, #e9f3ff);
    color: #086153;
}

.course-date.is-in-progress strong::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 6px;
    border-radius: 50%;
    background: #16a085;
    box-shadow: 0 0 0 4px rgba(22, 160, 133, 0.14);
}

.course-date.is-upcoming {
    border-color: #c9dceb;
    background: #e8f1fa;
    color: var(--brand);
}

.course-date.is-ended {
    border-color: #d8dde4;
    background: #f1f3f5;
    color: #66717d;
}

.course-date.is-unscheduled {
    border-color: #ead9ad;
    background: #fff8e7;
    color: #7a5a0b;
}

.course-alerts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: -2px 0 10px;
}

.course-alerts span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    background: #fff4e5;
    color: #a65010;
    font-size: 13px;
    font-weight: 900;
}

.course-card h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.4;
    letter-spacing: 0;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.course-card a {
    color: var(--ink);
    text-decoration: none;
}

.course-card h2 a {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.course-card a:hover {
    text-decoration: underline;
}

.meta {
    margin: 8px 0;
    color: var(--muted);
    font-size: 14px;
}

.course-price {
    margin: 8px 0 10px;
    color: var(--warn);
    font-weight: 800;
    font-size: 16px;
}

.outbound-link {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin-bottom: 8px;
    color: var(--accent);
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
}

.course-card > p:not(.meta) {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.badges span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 9px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: #0f655c;
    font-size: 13px;
}

.course-view-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 48px;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    background: #e8f2ff;
    color: #155a9c;
    font-size: 13px;
    font-weight: 900;
}

.course-view-count::before {
    content: "";
    width: 17px;
    height: 11px;
    border: 2px solid currentColor;
    border-radius: 999px / 720px;
    background: radial-gradient(circle at center, currentColor 0 2px, transparent 3px);
}

.course-view-count strong {
    color: #0f477e;
    font-size: 15px;
}

.course-view-count.is-mid {
    background: #fff4df;
    color: #9a5b16;
}

.course-view-count.is-mid strong {
    color: #7a430d;
}

.course-view-count.is-warm {
    background: #fdebea;
    color: #b83226;
}

.course-view-count.is-warm strong {
    color: #92261d;
}

.course-card-instructor {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0;
    padding: 10px 12px;
    border-radius: 14px;
    background: linear-gradient(135deg, #e8f7f4, #f0edff);
}

.course-card-instructor > div:last-child { display: grid; gap: 2px; }
.course-card-instructor small { color: #73808d; font-weight: 800; }
.course-card-instructor strong { color: #213847; }
.course-card-avatar { position: relative; width: 46px; height: 46px; flex: 0 0 46px; }
.course-card-avatar img,
.course-card-avatar span { position: absolute; inset: 0; width: 46px; height: 46px; border-radius: 14px; }
.course-card-avatar span { display: grid; place-items: center; color: #176c69; background: #d5efeb; font-weight: 900; }
.course-card-avatar img { z-index: 2; object-fit: cover; }
.course-card-avatar.is-photo-error img { display: none; }

.auth-panel {
    width: min(720px, 100%);
    margin: 0 auto;
    padding: 24px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.course-detail-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 18px;
}

.course-detail-main,
.course-detail-side {
    min-width: 0;
    padding: 24px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.course-detail-main h2 {
    margin: 0;
    color: var(--ink);
    font-size: 30px;
    line-height: 1.35;
}

.course-detail-side {
    display: grid;
    align-content: start;
    gap: 12px;
}

.detail-item {
    display: grid;
    gap: 5px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e4ebf2;
}

.detail-item span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.detail-item strong {
    color: var(--ink);
    font-size: 16px;
}

.course-detail-shell {
    display: grid;
    gap: 18px;
    max-width: 1500px;
    margin: 0 auto;
}

.crystal-course-card {
    background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(241,250,252,.88));
    border: 1px solid rgba(133, 180, 196, .38);
    border-radius: 24px;
    box-shadow: 0 18px 44px rgba(26, 69, 92, .09), inset 0 1px 0 rgba(255,255,255,.9);
    overflow: hidden;
}

.course-detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
}

.course-detail-hero.has-cover {
    grid-template-columns: minmax(300px, .78fr) minmax(0, 1.35fr);
}

.course-cover {
    width: 100%;
    height: 100%;
    min-height: 310px;
    object-fit: cover;
}

.course-cover-graphic {
    position: relative;
    display: flex;
    min-height: 310px;
    padding: 38px;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px),
        radial-gradient(circle at 25% 20%, rgba(97,232,216,.42), transparent 30%),
        linear-gradient(145deg, #102f4c, #176d74 56%, #6654ae);
    background-size: 28px 28px, 28px 28px, auto, auto;
}

.course-cover-graphic::after {
    content: "⌁";
    position: absolute;
    top: 18px;
    right: 30px;
    color: rgba(255,255,255,.25);
    font-size: 150px;
    line-height: 1;
}

.course-cover-graphic span { font-size: clamp(38px, 5vw, 72px); font-weight: 950; letter-spacing: -.04em; }
.course-cover-graphic strong { font-size: 24px; }
.course-cover-graphic small { margin-top: 12px; color: #b9f4eb; font-weight: 900; letter-spacing: .12em; }

.course-detail-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(28px, 4vw, 56px);
}

.course-kicker {
    margin: 14px 0 10px;
    color: #167c78;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .04em;
}

.course-detail-hero h2 {
    margin: 0;
    max-width: 24ch;
    color: #172535;
    font-size: clamp(28px, 2.6vw, 42px);
    line-height: 1.3;
    letter-spacing: -.025em;
    text-wrap: balance;
}

.course-title-subtitle {
    max-width: 36ch;
    margin: 12px 0 0;
    color: #327aaa;
    font-size: clamp(19px, 1.7vw, 26px);
    font-weight: 850;
    line-height: 1.45;
    text-wrap: balance;
}

.course-lead,
.course-readable-copy {
    color: #536376;
    font-size: 17px;
    line-height: 1.9;
}

.course-fact-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.course-fact-grid .detail-item {
    min-height: 110px;
    padding: 20px;
    border: 1px solid rgba(125, 177, 198, .34);
    border-radius: 19px;
    background: linear-gradient(135deg, rgba(230,249,247,.94), rgba(241,238,255,.83));
    box-shadow: inset 0 1px 0 white;
}

.course-fact-grid .detail-item:nth-child(even) {
    background: linear-gradient(135deg, rgba(244,239,255,.96), rgba(232,247,252,.82));
}

.course-fact-grid .detail-item strong { font-size: 18px; line-height: 1.45; }

.course-content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 18px;
    align-items: start;
}

.course-content-main { display: grid; gap: 18px; }
.course-content-main > .crystal-course-card,
.course-two-up > .crystal-course-card { padding: clamp(24px, 3vw, 38px); }

.course-section-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.course-section-heading > span {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(135deg, #168b84, #6754ba);
    font-weight: 900;
}

.course-section-heading p { margin: 0; color: #6e60b5; font-size: 11px; font-weight: 900; letter-spacing: .16em; }
.course-section-heading h3 { margin: 2px 0 0; color: #1e3040; font-size: 23px; }
.course-section-heading.compact h3 { font-size: 20px; }

.course-instructor-profile {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 28px;
    align-items: center;
}

.course-instructor-photo,
.course-instructor-fallback {
    width: 160px;
    height: 160px;
    border-radius: 26px;
    object-fit: cover;
    background: linear-gradient(145deg, #d7f4f0, #e7e1ff);
    border: 5px solid rgba(255,255,255,.9);
    box-shadow: 0 13px 30px rgba(27,85,104,.14);
}

.course-instructor-media {
    position: relative;
    width: 160px;
    height: 160px;
}

.course-instructor-media .course-instructor-photo,
.course-instructor-media .course-instructor-fallback {
    position: absolute;
    inset: 0;
}

.course-instructor-media .course-instructor-photo {
    z-index: 2;
}

.course-instructor-media.is-photo-error .course-instructor-photo {
    display: none;
}

.course-instructor-fallback { display: grid; place-items: center; color: #176c69; font-size: 54px; font-weight: 900; }
.course-instructor-profile h4 { margin: 0 0 12px; color: #182a3a; font-size: 28px; }
.course-instructor-roles,
.course-readable-list { display: grid; gap: 9px; margin: 0; padding-left: 20px; color: #44596a; line-height: 1.7; }
.course-instructor-roles li::marker,
.course-readable-list li::marker { color: #4d9e98; }
.course-empty-note { color: #7b8795; line-height: 1.7; }

.course-two-up { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

.course-action-card {
    position: sticky;
    top: 18px;
    display: grid;
    gap: 14px;
    padding: 26px;
}

.course-action-eyebrow { margin: 0; color: #6e7e8e; font-size: 13px; font-weight: 900; }
.course-action-price { color: #c24136; font-size: 32px; }
.course-action-status { justify-self: start; padding: 7px 12px; border-radius: 999px; background: #def5ed; color: #14705c; font-weight: 900; }
.course-action-card dl { display: grid; gap: 0; margin: 4px 0; }
.course-action-card dl div { display: grid; gap: 4px; padding: 13px 0; border-bottom: 1px solid #deeaee; }
.course-action-card dt { color: #758392; font-size: 12px; font-weight: 900; }
.course-action-card dd { margin: 0; color: #243646; font-weight: 800; line-height: 1.5; }
.course-primary-action,
.course-back-action { width: 100%; text-align: center; justify-content: center; }
.course-source-note { margin: 0; color: #7a8792; font-size: 12px; line-height: 1.6; }

.room-detail-main {
    display: grid;
    gap: 18px;
}

.room-photo-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.room-gallery-item {
    overflow: hidden;
    min-height: 180px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: #edf3f5;
}

.room-gallery-item img,
.room-card-cover img,
.room-photo-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.room-card-cover {
    display: block;
    height: 150px;
    margin: -18px -18px 14px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.room-calendar {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 22px;
    background:
        radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.92), transparent 28%),
        radial-gradient(circle at 88% 14%, rgba(132, 226, 255, 0.32), transparent 31%),
        linear-gradient(145deg, rgba(235, 251, 255, 0.88), rgba(216, 239, 249, 0.56) 48%, rgba(238, 229, 255, 0.68));
    box-shadow:
        0 24px 60px rgba(35, 91, 119, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1px 0 rgba(113, 174, 204, 0.2);
    backdrop-filter: blur(22px) saturate(145%);
    -webkit-backdrop-filter: blur(22px) saturate(145%);
}

.room-calendar::before {
    position: absolute;
    top: -80px;
    right: 9%;
    width: 230px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.52);
    filter: blur(18px);
    content: "";
    pointer-events: none;
}

.room-calendar-title {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.54);
    background: rgba(255, 255, 255, 0.2);
}

.room-calendar-nav {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    padding: 18px 20px 14px;
    background: rgba(255, 255, 255, 0.3);
}

.room-calendar-nav strong { color: #183d52; font-size: 19px; letter-spacing: 0.04em; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9); }
.room-calendar-nav a { padding: 7px 10px; border: 1px solid rgba(255, 255, 255, 0.72); border-radius: 999px; background: rgba(255, 255, 255, 0.38); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 5px 14px rgba(42, 105, 133, 0.1); color: #166b80; font-weight: 900; text-decoration: none; }
.room-calendar-nav a:hover { background: rgba(255, 255, 255, 0.74); transform: translateY(-1px); }
.room-calendar-nav a:last-child { text-align: right; }
.room-calendar-day > a { display: inline-grid; place-items: center; width: 31px; height: 31px; margin-bottom: 4px; border: 1px solid rgba(255, 255, 255, 0.82); border-radius: 10px; background: linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(211, 242, 251, 0.42)); box-shadow: inset 0 1px 1px #fff, 0 4px 10px rgba(48, 112, 139, 0.1); color: #173e52; font-weight: 900; text-decoration: none; transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease; }
.room-calendar-day > a:hover { background: linear-gradient(145deg, #8de6f0, #63c7df); box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 7px 16px rgba(23, 120, 145, 0.25); color: #073a4a; transform: translateY(-2px); }

.room-calendar-title span { color: #426779; font-size: 13px; }
.room-calendar-title i { display: inline-block; width: 10px; height: 10px; margin-right: 5px; border: 1px solid rgba(255,255,255,.9); border-radius: 50%; background: linear-gradient(145deg, #ffb291, #e85b67); box-shadow: 0 0 0 3px rgba(232, 91, 103, 0.12), 0 2px 7px rgba(171, 61, 74, 0.24); }
.room-calendar-weekdays,
.room-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.room-calendar-weekdays span { position: relative; padding: 11px 9px; border-top: 1px solid rgba(255, 255, 255, 0.68); border-bottom: 3px solid currentColor; text-align: center; font-size: 12px; font-weight: 950; letter-spacing: 0.08em; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9); }
.room-calendar-weekdays span:nth-child(1) { background: rgba(244, 103, 126, 0.12); color: #a3314b; }
.room-calendar-weekdays span:nth-child(2) { background: rgba(73, 105, 191, 0.11); color: #334f9b; }
.room-calendar-weekdays span:nth-child(3) { background: rgba(39, 153, 117, 0.11); color: #176a53; }
.room-calendar-weekdays span:nth-child(4) { background: rgba(230, 161, 52, 0.13); color: #8a5000; }
.room-calendar-weekdays span:nth-child(5) { background: rgba(139, 93, 190, 0.11); color: #654198; }
.room-calendar-weekdays span:nth-child(6) { background: rgba(28, 151, 174, 0.11); color: #086a7c; }
.room-calendar-weekdays span:nth-child(7) { background: rgba(59, 119, 190, 0.12); color: #285a9a; }
.room-calendar-day { position: relative; min-height: 88px; padding: 9px; border-top: 1px solid rgba(255, 255, 255, 0.65); border-right: 1px solid rgba(130, 190, 213, 0.2); background: rgba(255, 255, 255, 0.17); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.room-calendar-day.week-tone-a { background: linear-gradient(145deg, rgba(214, 246, 250, 0.48), rgba(186, 231, 241, 0.3)); }
.room-calendar-day.week-tone-b { background: linear-gradient(145deg, rgba(239, 225, 255, 0.5), rgba(216, 199, 244, 0.3)); }
.room-calendar-day.week-tone-a:nth-child(7n + 1) { box-shadow: inset 4px 0 rgba(63, 177, 194, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.48); }
.room-calendar-day.week-tone-b:nth-child(7n + 1) { box-shadow: inset 4px 0 rgba(137, 92, 183, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.48); }
.room-calendar-day:nth-child(7n) { border-right: 0; }
.room-calendar-day strong { display: block; margin-bottom: 5px; }
.room-calendar-day small { display: block; margin-top: 4px; padding: 4px 6px; border: 1px solid rgba(255, 255, 255, 0.78); border-radius: 8px; background: linear-gradient(145deg, rgba(255, 218, 211, 0.88), rgba(255, 186, 194, 0.62)); box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 3px 8px rgba(171, 61, 74, 0.11); color: #8e3544; font-size: 10px; font-weight: 800; }
.room-calendar-day.is-other-month { color: rgba(80, 112, 127, 0.44); opacity: 0.52; }
.room-calendar-day.is-today > a,
.room-calendar-day.is-today strong { outline: 2px solid rgba(38, 170, 188, 0.65); outline-offset: 2px; color: #0e7182; }
.room-calendar-day.is-booked { background: linear-gradient(145deg, rgba(255, 244, 240, 0.38), rgba(255, 214, 220, 0.28)); box-shadow: inset 4px 0 rgba(229, 91, 104, 0.76), inset 0 1px 0 rgba(255, 255, 255, 0.65); }

.room-highlight-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 12px;
}

.room-highlight-grid article {
    display: grid;
    gap: 6px;
    min-height: 92px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 15px;
    background: linear-gradient(145deg, rgba(255,255,255,.84), rgba(219,244,248,.55));
    box-shadow: inset 0 1px 0 #fff, 0 10px 24px rgba(40, 96, 119, 0.09);
}

.room-highlight-grid article:nth-child(2) { background: linear-gradient(145deg, rgba(255,255,255,.86), rgba(225,232,255,.62)); }
.room-highlight-grid article:nth-child(3) { background: linear-gradient(145deg, rgba(255,255,255,.86), rgba(229,246,226,.62)); }
.room-highlight-grid article:nth-child(4) { background: linear-gradient(145deg, rgba(255,255,255,.86), rgba(255,236,218,.62)); }

.room-highlight-grid span,
.room-info-grid .detail-item span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.room-highlight-grid strong {
    color: var(--ink);
    font-size: 24px;
    line-height: 1.2;
}

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

.room-crystal-card {
    position: relative;
    overflow: hidden;
    min-height: 230px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.86);
    border-radius: 20px;
    background:
        radial-gradient(circle at 96% 0, rgba(255,255,255,.8), transparent 34%),
        linear-gradient(145deg, rgba(236, 251, 253, 0.86), rgba(210, 239, 246, 0.55));
    box-shadow: inset 0 1px 0 #fff, 0 16px 35px rgba(40, 96, 119, 0.11);
    backdrop-filter: blur(16px) saturate(135%);
    -webkit-backdrop-filter: blur(16px) saturate(135%);
}

.room-crystal-card::after {
    position: absolute;
    top: -45px;
    right: -35px;
    width: 130px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255,255,255,.4);
    filter: blur(12px);
    content: "";
    pointer-events: none;
}

.room-equipment-card { background: radial-gradient(circle at 96% 0, rgba(255,255,255,.8), transparent 34%), linear-gradient(145deg, rgba(241, 236, 255, 0.88), rgba(221, 205, 248, 0.54)); }
.room-policy-card { background: radial-gradient(circle at 96% 0, rgba(255,255,255,.8), transparent 34%), linear-gradient(145deg, rgba(237, 249, 234, 0.9), rgba(210, 239, 210, 0.56)); }
.room-contact-card { background: radial-gradient(circle at 96% 0, rgba(255,255,255,.8), transparent 34%), linear-gradient(145deg, rgba(255, 246, 234, 0.9), rgba(250, 222, 197, 0.56)); }

.room-card-heading { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.room-card-heading > span { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.9); border-radius: 12px; background: rgba(255,255,255,.58); box-shadow: inset 0 1px 0 #fff, 0 5px 12px rgba(46,93,116,.11); color: #187283; font-weight: 950; }
.room-card-heading small { display: block; margin-bottom: 2px; color: #63808f; font-size: 10px; font-weight: 900; letter-spacing: .14em; }
.room-card-heading h2 { margin: 0; color: var(--ink); font-size: 20px; }
.room-detail-list { position: relative; z-index: 1; display: grid; gap: 0; margin: 0; }
.room-detail-list > div { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid rgba(255,255,255,.74); }
.room-detail-list dt { color: #5b7482; font-size: 13px; font-weight: 900; }
.room-detail-list dd { margin: 0; color: var(--ink); font-weight: 800; line-height: 1.55; }
.room-equipment-chips { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 9px; }
.room-equipment-chips span { padding: 8px 11px; border: 1px solid rgba(255,255,255,.82); border-radius: 999px; background: rgba(255,255,255,.56); box-shadow: inset 0 1px 0 #fff, 0 4px 10px rgba(91,60,135,.08); color: #5f438a; font-size: 13px; font-weight: 900; }
.room-crystal-card > p { position: relative; z-index: 1; margin: 18px 0 0; color: #5f7380; line-height: 1.65; }
.room-policy-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.room-policy-grid > div { padding: 14px; border: 1px solid rgba(255,255,255,.78); border-radius: 14px; background: rgba(255,255,255,.44); }
.room-policy-grid span { color: #42734c; font-size: 12px; font-weight: 950; }
.room-policy-grid p { margin: 7px 0 0; color: var(--ink); line-height: 1.6; }
.room-contact-person { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 15px; border: 1px solid rgba(255,255,255,.8); border-radius: 15px; background: rgba(255,255,255,.5); }
.room-contact-person strong { font-size: 18px; }
.room-contact-person a { padding: 8px 12px; border-radius: 999px; background: #fff; color: #9a5424; font-weight: 900; text-decoration: none; }

.room-detail-side {
    align-self: start;
}

.room-map-card {
    display: grid;
    gap: 8px;
    min-height: 180px;
    padding: 18px;
    border: 1px solid #c9dbe6;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(15, 143, 131, 0.16), rgba(15, 143, 131, 0.02)),
        repeating-linear-gradient(45deg, #f8fbfc 0, #f8fbfc 13px, #edf4f7 13px, #edf4f7 14px);
    color: var(--ink);
    text-decoration: none;
}

.room-map-card span {
    color: var(--accent);
    font-size: 13px;
    font-weight: 900;
}

.room-map-card strong {
    align-self: center;
    font-size: 18px;
    line-height: 1.4;
}

.room-map-card small {
    color: var(--brand);
    font-weight: 900;
}

.solid-link {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 0 16px;
    border-radius: 6px;
    background: var(--brand);
    color: #ffffff;
}

.auth-panel h2 {
    margin-top: 0;
}

.auth-form,
.subscription-form {
    display: grid;
    gap: 14px;
}

.demo-login-panel {
    display: grid;
    gap: 18px;
    width: min(560px, 100%);
    padding: clamp(28px, 4vw, 46px);
    border-radius: 28px;
    background:
        radial-gradient(circle at 100% 0%, rgba(18, 132, 117, 0.1), transparent 18rem),
        rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 60px rgba(26, 66, 84, 0.12);
}

.demo-login-panel > .eyebrow {
    margin-bottom: -10px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.14em;
}

.demo-login-panel h2 {
    margin: 0;
    font-size: clamp(32px, 4vw, 44px);
    letter-spacing: -0.04em;
}

.demo-login-panel > p {
    max-width: 460px;
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.demo-login-panel .auth-form {
    width: 100%;
    max-width: 460px;
    gap: 18px;
}

.demo-login-panel .auth-form label {
    display: grid;
    gap: 8px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 850;
}

.demo-login-panel .auth-form input {
    width: 100%;
    min-height: 54px;
    padding-inline: 16px;
    font-size: 16px;
    box-sizing: border-box;
}

.demo-login-panel .auth-form button {
    justify-self: start;
    min-width: 160px;
    min-height: 52px;
    padding-inline: 26px;
    border-radius: 999px;
    box-shadow: 0 14px 28px rgba(22, 75, 108, 0.18);
}

.demo-login-panel .panel-note {
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-size: 13px;
}

@media (max-width: 560px) {
    .demo-login-panel {
        gap: 16px;
        padding: 24px 20px;
        border-radius: 22px;
    }

    .demo-login-panel .auth-form button {
        width: 100%;
    }
}

.form-error {
    color: #c0392b;
    font-weight: 700;
}

.form-success {
    color: #1f7a4d;
    font-weight: 700;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.category-grid label {
    display: grid;
    gap: 6px;
    min-height: 72px;
    color: var(--muted);
    font-weight: 700;
}

.category-grid select {
    width: 100%;
}

.notification-panel {
    width: min(720px, 100%);
    margin: 16px auto 0;
    padding: 20px 24px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.notification-panel h2 {
    margin-top: 0;
}

.notification-list {
    list-style: none;
    display: grid;
    gap: 12px;
    padding: 0;
    margin: 16px 0 0;
}

.notification-list li {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid #e4ebf2;
    border-radius: 8px;
}

.notification-list a {
    color: #17202a;
    font-weight: 800;
    text-decoration: none;
}

.notification-list span {
    color: var(--muted);
    font-size: 14px;
}

.recommendation-panel {
    width: min(980px, 100%);
}

.recommendation-list {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.recommendation-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    padding: 16px;
    border: 1px solid #e4ebf2;
    border-radius: 8px;
    background: #ffffff;
}

.recommendation-score {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin-bottom: 8px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: #0f655c;
    font-size: 13px;
    font-weight: 900;
}

.recommendation-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.recommendation-card h3 a {
    color: var(--ink);
    text-decoration: none;
}

.recommendation-card p,
.recommendation-card strong {
    display: block;
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 14px;
}

.recommendation-reasons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.recommendation-reasons span {
    padding: 5px 9px;
    border-radius: 999px;
    background: #eef6fb;
    color: var(--brand);
    font-size: 13px;
    font-weight: 900;
}

.profile-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 14px;
}

.profile-form label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-weight: 700;
}

.profile-notes {
    grid-column: 1 / -1;
}

textarea {
    min-height: 92px;
    resize: vertical;
    border-radius: 6px;
    border: 1px solid #c7d0da;
    padding: 10px 12px;
    font: inherit;
}

.profile-form button {
    justify-self: start;
}

.provider-hero {
    margin-bottom: 18px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.provider-panel {
    margin-bottom: 18px;
}

.provider-org-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.provider-org-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: #0f655c;
    font-size: 13px;
    font-weight: 900;
}

.provider-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 14px;
}

.course-editor-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 20px 0 18px;
    padding: 16px 18px;
    border: 1px solid rgba(120,170,190,.28);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(232,248,247,.9), rgba(241,237,255,.82));
}

.course-editor-intro > div:first-child { display: grid; gap: 4px; }
.course-editor-intro strong { color: #193746; font-size: 17px; }
.course-editor-intro span { color: #607583; font-size: 13px; }
.course-editor-steps { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.course-editor-steps span { padding: 6px 9px; border-radius: 999px; background: rgba(255,255,255,.72); color: #29766f; font-size: 11px; font-weight: 900; }

.course-editor-form {
    grid-template-columns: 1fr;
    gap: 18px;
}

.course-editor-section {
    margin: 0;
    padding: 22px;
    border: 1px solid rgba(255,255,255,.88);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(237,250,252,.96), rgba(216,239,245,.62));
    box-shadow: inset 0 1px 0 #fff, 0 14px 34px rgba(42,87,108,.09);
}

.course-editor-section legend {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 10px;
    width: calc(100% - 12px);
    padding: 0 6px 12px;
}

.course-editor-section legend > span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 13px;
    background: rgba(255,255,255,.72);
    box-shadow: 0 5px 14px rgba(46,91,109,.1);
    color: #167783;
    font-weight: 950;
}

.course-editor-section legend strong { color: #1d3442; font-size: 19px; }
.course-editor-section legend small { justify-self: end; color: #617985; font-size: 12px; font-weight: 800; }
.course-editor-schedule { background: linear-gradient(145deg, rgba(241,237,255,.96), rgba(220,211,248,.62)); }
.course-editor-commerce { background: linear-gradient(145deg, rgba(255,248,231,.96), rgba(248,228,194,.64)); }
.course-editor-teacher { background: linear-gradient(145deg, rgba(236,249,240,.96), rgba(211,238,220,.62)); }
.course-editor-content { background: linear-gradient(145deg, rgba(238,246,255,.96), rgba(211,229,248,.64)); }
.course-editor-publish { background: linear-gradient(145deg, rgba(255,240,244,.96), rgba(248,216,226,.62)); }

.course-editor-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.course-editor-grid label { min-width: 0; }
.course-editor-grid label em { margin-left: 4px; color: #b43b35; font-size: 11px; font-style: normal; }
.course-editor-span-2 { grid-column: span 2; }
.course-editor-span-all { grid-column: 1 / -1; }
.course-editor-form input[readonly] { background: rgba(236,242,245,.76); color: #667984; }
.course-editor-form textarea { min-height: 112px; resize: vertical; line-height: 1.65; }
.course-editor-form textarea.course-editor-syllabus { min-height: 180px; }
.course-editor-help { margin: 0; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.58); color: #5f7681; font-size: 12px; line-height: 1.6; }
.course-editor-checks { display: flex; flex-wrap: wrap; gap: 12px; }
.course-editor-checks .check-row { min-width: 180px; background: rgba(255,255,255,.58); }
.course-editor-publish-note { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.58); }
.course-editor-publish-note .check-row { min-width: 230px; background: rgba(255,255,255,.72); }
.course-editor-publish-note p { margin: 0; color: #6a7781; font-size: 12px; line-height: 1.55; }
.course-editor-actions { position: sticky; z-index: 6; bottom: 12px; justify-content: flex-end; padding: 13px 15px; border: 1px solid rgba(255,255,255,.86); border-radius: 17px; background: rgba(245,251,252,.88); box-shadow: 0 14px 30px rgba(32,72,91,.16); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }

.room-editor-form {
    grid-template-columns: 1fr;
    gap: 18px;
}

.room-editor-section {
    margin: 0;
    padding: 22px;
    border: 1px solid rgba(255,255,255,.86);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(238,251,253,.92), rgba(211,239,246,.58));
    box-shadow: inset 0 1px 0 #fff, 0 14px 32px rgba(41,93,116,.1);
}

.room-editor-section legend {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 10px;
    width: calc(100% - 12px);
    padding: 0 6px 10px;
}

.room-editor-section legend > span {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 12px;
    background: rgba(255,255,255,.66);
    box-shadow: inset 0 1px 0 #fff, 0 4px 12px rgba(44,92,112,.1);
    color: #167183;
    font-weight: 950;
}

.room-editor-section legend strong { color: var(--ink); font-size: 19px; }
.room-editor-section legend small { justify-self: end; color: #607986; font-size: 12px; font-weight: 800; }
.room-editor-location { background: linear-gradient(145deg, rgba(240,236,255,.92), rgba(218,205,248,.58)); }
.room-editor-amenities { background: linear-gradient(145deg, rgba(239,250,235,.94), rgba(211,238,211,.6)); }
.room-editor-rules { background: linear-gradient(145deg, rgba(255,247,235,.94), rgba(250,225,201,.6)); }
.room-editor-publish { background: linear-gradient(145deg, rgba(255,239,242,.94), rgba(248,214,223,.58)); }
.room-editor-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.room-editor-grid label { min-width: 0; }
.room-editor-span-2 { grid-column: span 2; }
.room-editor-span-all { grid-column: 1 / -1; }
.room-editor-form input[readonly] { background: rgba(235,241,244,.72); color: #647681; }
.room-editor-form textarea { min-height: 105px; resize: vertical; }
.room-photo-manager-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.room-photo-manager-heading strong { color: var(--ink); font-size: 16px; }
.room-photo-manager-heading span { color: #68508e; font-size: 12px; font-weight: 900; }
.room-publish-check { max-width: 320px; background: rgba(255,255,255,.58); }
.room-editor-actions { position: sticky; z-index: 5; bottom: 12px; justify-content: flex-end; padding: 12px 14px; border: 1px solid rgba(255,255,255,.82); border-radius: 16px; background: rgba(245,251,252,.86); box-shadow: 0 12px 28px rgba(31,71,91,.16); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }

.provider-form label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-weight: 800;
}

.provider-wide {
    grid-column: 1 / -1;
}

.room-photo-manager {
    margin: 0;
    padding: 14px;
    border: 1px solid #dbe4ee;
    border-radius: 8px;
}

.room-photo-manager legend { padding: 0 6px; color: var(--ink); font-weight: 900; }
.room-photo-manager > p { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.room-photo-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.room-photo-field { display: grid; gap: 8px; }
.room-photo-preview { display: grid; place-items: center; height: 150px; overflow: hidden; border: 1px dashed #bdccd4; border-radius: 8px; background: #f7fafb; color: var(--muted); font-size: 12px; }
.room-photo-field input[type="file"] { width: 100%; }

.check-row {
    display: flex !important;
    align-items: center;
    min-height: 46px;
    padding: 0 12px;
    border: 1px solid #dbe4ee;
    border-radius: 6px;
    background: var(--surface);
}

.check-row input {
    min-height: auto;
    width: 18px;
    height: 18px;
    margin: 0 8px 0 0;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

.provider-table td:first-child span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.table-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.compact-button {
    min-height: 34px;
    padding: 0 10px;
    font-size: 14px;
}

.disabled-link {
    border-color: #cbd5df;
    background: #eef3f7;
    color: var(--muted);
    cursor: default;
}

.inline-admin-form {
    display: grid;
    grid-template-columns: minmax(110px, auto) minmax(160px, 1fr) auto;
    gap: 8px;
    align-items: center;
    min-width: 360px;
}

.inline-admin-form select,
.inline-admin-form input {
    min-height: 34px;
    padding: 6px 9px;
    font-size: 14px;
}

.room-search-panel {
    grid-template-columns: 1fr;
}

.room-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 14px;
    align-items: end;
}

.room-search-fields,
.room-availability-fields {
    display: grid;
    gap: 10px;
}

.room-search-fields {
    grid-column: 1 / -1;
    grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(128px, 1fr));
}

.room-availability-fields {
    grid-template-columns: repeat(4, minmax(118px, 1fr));
    min-height: 58px;
    padding: 8px 10px;
    border: 1px solid #e2e9f0;
    border-radius: 8px;
    background: var(--surface);
}

.room-search-form label {
    display: grid;
    gap: 5px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.room-search-form button {
    min-width: 104px;
    height: 44px;
}

.room-card .badges span:nth-child(2) {
    max-width: 100%;
}

.room-card-footer {
    position: absolute;
    left: 18px;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.room-card-footer .course-card-actions {
    position: static;
    flex: 0 0 auto;
}

.room-reserve-link {
    min-height: 34px;
    margin-bottom: 0;
}

.space-console {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.space-console-sidebar {
    position: sticky;
    top: 18px;
    display: grid;
    gap: 14px;
}

.space-provider-card {
    display: grid;
    gap: 8px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.space-provider-card span {
    color: var(--accent);
    font-size: 13px;
    font-weight: 900;
}

.space-provider-card strong {
    color: var(--ink);
    font-size: 22px;
    line-height: 1.2;
}

.space-provider-card small {
    color: var(--muted);
    font-weight: 800;
}

.space-console-menu {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.space-console-menu a {
    border-radius: 7px;
    padding: 11px 12px;
    color: var(--brand);
    font-weight: 900;
    text-decoration: none;
}

.space-console-menu a:hover,
.space-console-menu a.is-active {
    background: var(--accent-soft);
    color: #0f655c;
}

.space-console-main {
    min-width: 0;
}

.admin-toolbar,
.admin-panel {
    width: 100%;
    min-width: 0;
    margin-bottom: 16px;
    padding: 18px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.admin-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-panel h2 {
    margin: 0 0 12px;
    font-size: 20px;
}

.panel-note {
    margin: -4px 0 14px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.bi-toolbar {
    justify-content: space-between;
}

.bi-filter {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: 10px;
}

.bi-filter label {
    display: grid;
    gap: 5px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.bi-filter input {
    min-width: 160px;
}

.admin-export-actions,
.role-form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-export-actions .button-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #ffffff;
}

.role-form select {
    min-width: 120px;
}

.role-form button {
    min-height: 38px;
}

.module-control-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.module-control-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(24, 36, 49, 0.05);
}

.module-control-card.is-disabled {
    background: #f8fafc;
}

.module-control-head,
.module-control-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.module-control-mark {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    border-radius: 8px;
    background: var(--brand);
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
}

.module-control-head h2 {
    margin: 0 0 6px;
}

.module-control-card p {
    margin: 0;
    color: var(--muted);
    font-weight: 700;
}

.module-control-card ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.module-control-card li {
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: #0f655c;
    font-size: 13px;
    font-weight: 900;
}

.module-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    color: var(--brand);
    font-weight: 900;
}

.module-switch input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.module-save-toolbar {
    justify-content: space-between;
}

.bi-grid {
    display: grid;
    gap: 14px;
}

.metrics-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin-bottom: 16px;
}

.admin-summary-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
}

.admin-summary-row .bi-metric {
    min-height: 112px;
}

.review-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.review-actions form {
    margin: 0;
}

.bi-metric {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 118px;
    padding: 18px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(24, 36, 49, 0.05);
}

.bi-metric-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #e4f4ef;
    color: #0f766e;
    font-weight: 950;
    font-size: 20px;
}

.bi-metric div {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.bi-metric strong {
    color: var(--brand);
    font-size: 30px;
    line-height: 1;
}

.bi-metric span {
    color: var(--ink);
    font-weight: 900;
}

.bi-metric small {
    color: var(--muted);
    font-weight: 700;
}

.bi-two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.bi-bars {
    display: grid;
    gap: 12px;
}

.bi-bar-row {
    display: grid;
    grid-template-columns: minmax(150px, 1.2fr) minmax(120px, 1fr) 46px;
    align-items: center;
    gap: 12px;
}

.bi-bar-label {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.bi-bar-label strong,
.bi-bar-label span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bi-bar-label strong {
    color: var(--ink);
    font-size: 15px;
}

.bi-bar-label span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.bi-bar-track {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #e7edf3;
}

.bi-bar-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), var(--brand));
}

.bi-bar-row b {
    color: var(--brand);
    text-align: right;
}

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

.bi-insights p {
    margin: 0;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid #e2e9f0;
    border-radius: 8px;
    color: var(--muted);
}

.bi-insights strong {
    color: var(--ink);
}

.dashboard-panel {
    display: grid;
    gap: 14px;
}

.dashboard-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.dashboard-panel-head h2 {
    margin-bottom: 8px;
}

.dashboard-view-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    padding: 4px;
    border: 1px solid #d9e4ee;
    border-radius: 8px;
    background: var(--surface);
}

.dashboard-view-toggle button {
    min-height: 32px;
    padding: 0 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.dashboard-view-toggle button.is-active {
    background: var(--brand);
    color: #ffffff;
}

.dashboard-view {
    display: none;
}

.dashboard-view.is-active {
    display: block;
}

.dashboard-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
    gap: 12px;
}

.dashboard-card {
    display: grid;
    gap: 8px;
    min-height: 156px;
    padding: 14px;
    border: 1px solid #dfe8f1;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff, #f7fafc);
}

.dashboard-card-ring {
    display: grid;
    place-items: center;
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, #ffffff 0 54%, transparent 55%),
        conic-gradient(var(--brand) calc(var(--value) * 1%), #e7edf3 0);
}

.dashboard-card-ring span {
    color: var(--brand);
    font-weight: 950;
    font-size: 17px;
}

.dashboard-card strong {
    color: var(--ink);
    font-size: 15px;
    line-height: 1.35;
}

.dashboard-card small {
    color: var(--muted);
    font-weight: 750;
    line-height: 1.45;
}

.skill-trend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.skill-trend-grid article {
    display: grid;
    gap: 8px;
    min-height: 148px;
    padding: 14px;
    border: 1px solid #dfe8f1;
    border-radius: 8px;
    background: var(--surface);
}

.skill-trend-grid span {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #e4f4ef;
    color: #0f766e;
    font-weight: 950;
}

.skill-trend-grid strong {
    color: var(--ink);
    font-size: 16px;
}

.skill-trend-grid p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 720;
    line-height: 1.55;
}

.compact-empty {
    min-height: 80px;
    padding-bottom: 18px;
}

.table-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    font-size: 14px;
}

th,
td {
    padding: 10px;
    border-bottom: 1px solid #e4ebf2;
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--muted);
    background: var(--surface);
    font-weight: 800;
}

.status-ok {
    color: #1f7a4d;
    font-weight: 800;
}

.status-error {
    color: #c0392b;
    font-weight: 800;
}

.status-muted {
    color: #7b8794;
    font-weight: 800;
}

.roadmap-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.roadmap-badge.done {
    background: #e4f4f1;
    color: #0f655c;
}

.roadmap-badge.partial {
    background: #fff4e5;
    color: #a65010;
}

.roadmap-badge.planned {
    background: #eef3f7;
    color: #637082;
}

.architecture-progress-panel {
    display: grid;
    gap: 14px;
}

.architecture-progress-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.architecture-progress-head h2 {
    margin: 0 0 6px;
}

.architecture-progress-head strong {
    color: var(--brand);
    font-size: 42px;
    line-height: 1;
}

.architecture-progress-track {
    height: 16px;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e9f0;
}

.architecture-progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), var(--brand));
}

.architecture-progress-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.architecture-progress-stats span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

@media (max-width: 900px) {
    .topbar {
        align-items: flex-start;
        flex-direction: column;
        min-height: 214px;
    }

    .top-actions,
    .member-nav,
    .module-nav {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .app-shell {
        height: auto;
    }

    .search-panel {
        grid-template-columns: 1fr 1fr;
    }

    .search-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .metrics-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .module-control-grid {
        grid-template-columns: 1fr;
    }

    .role-grid,
    .content-grid,
    .realm-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .portal-topbar,
    .portal-hero,
    .realm-story {
        grid-template-columns: 1fr;
    }

    .portal-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .portal-orbit {
        min-height: 360px;
    }

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

    .course-editor-form { grid-template-columns: 1fr; }

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

    .course-editor-grid .course-editor-span-2 { grid-column: 1 / -1; }

    .room-editor-form {
        grid-template-columns: 1fr;
    }

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

    .bi-two-col,
    .bi-insights,
    .course-detail-panel {
        grid-template-columns: 1fr;
    }

    .course-detail-hero,
    .course-content-layout { grid-template-columns: 1fr; }

    .course-cover,
    .course-cover-graphic { min-height: 240px; max-height: 380px; }

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

    .course-action-card { position: static; }

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

    .room-info-grid {
        grid-template-columns: 1fr;
    }

    .room-info-grid .detail-item {
        grid-column: auto;
    }

    .admin-layout,
    .admin-layout.is-collapsed {
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr);
    }

    .admin-sidebar {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 12px;
        padding: 14px 18px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .admin-collapse {
        display: none;
    }

    .admin-tree {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        margin-top: 0;
    }

    .admin-tree-title,
    .admin-sidebar-foot {
        display: none;
    }

    .admin-tree-group {
        border: 0;
        background: transparent;
    }

    .admin-tree-group summary {
        border: 1px solid #e5edf4;
        border-radius: 8px;
        background: #ffffff;
    }

    .admin-tree-group summary::after,
    .admin-tree-links {
        display: none;
    }

    .admin-tree-group[open] .admin-tree-links {
        display: flex;
        flex-wrap: wrap;
        padding: 8px 0 0;
    }

    .admin-tree a {
        padding: 9px 11px;
    }

    .admin-content {
        padding: 20px 16px 30px;
    }

    .architecture-progress-head {
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .course-detail-shell { gap: 12px; }

    .course-detail-hero-copy { padding: 22px; }

    .course-detail-hero h2 { font-size: 27px; }

    .course-lead,
    .course-readable-copy { font-size: 15px; }

    .course-fact-grid,
    .course-two-up { grid-template-columns: 1fr; }

    .course-fact-grid .detail-item { min-height: 0; }

    .course-instructor-profile { grid-template-columns: 1fr; }

    .course-instructor-photo,
    .course-instructor-fallback { width: 132px; height: 132px; }

    .course-instructor-media { width: 132px; height: 132px; }

    .course-content-main > .crystal-course-card,
    .course-two-up > .crystal-course-card,
    .course-action-card { padding: 20px; }

    .room-editor-grid {
        grid-template-columns: 1fr;
    }

    .room-editor-span-2,
    .room-editor-span-all {
        grid-column: auto;
    }

    .room-editor-section {
        padding: 16px;
    }

    .room-editor-section legend {
        grid-template-columns: auto 1fr;
    }

    .room-editor-section legend small {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .room-photo-manager-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .room-editor-actions {
        position: static;
    }

    .room-highlight-grid,
    .room-photo-gallery,
    .room-photo-fields {
        grid-template-columns: 1fr;
    }

    .room-policy-grid {
        grid-template-columns: 1fr;
    }

    .room-detail-list > div,
    .room-contact-person {
        grid-template-columns: 1fr;
    }

    .room-calendar-day {
        min-height: 54px;
        padding: 5px;
    }

    .room-calendar-day small {
        font-size: 8px;
    }
    .topbar {
        min-height: 254px;
    }

    .app-shell {
        height: auto;
    }

    .search-panel {
        grid-template-columns: 1fr;
    }

    .brand-symbol {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }

    .summary {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-form {
        grid-template-columns: 1fr;
    }

    .metrics-grid {
        grid-template-columns: 1fr 1fr;
    }

    .role-grid,
    .content-grid,
    .realm-grid,
    .provider-form {
        grid-template-columns: 1fr;
    }

    .course-editor-intro { align-items: flex-start; flex-direction: column; }

    .course-editor-steps { justify-content: flex-start; }

    .course-editor-grid { grid-template-columns: 1fr; }

    .course-editor-grid .course-editor-span-2,
    .course-editor-grid .course-editor-span-all { grid-column: auto; }

    .course-editor-section { padding: 17px; border-radius: 18px; }

    .course-editor-section legend { grid-template-columns: auto 1fr; }

    .course-editor-section legend small { grid-column: 2; justify-self: start; }

    .course-editor-publish-note { align-items: stretch; flex-direction: column; }

    .course-editor-publish-note .check-row { min-width: 0; }

    .course-editor-actions { position: static; }

    .room-search-form {
        grid-template-columns: 1fr;
    }

    .room-search-fields,
    .room-availability-fields {
        grid-template-columns: 1fr;
    }

    .space-console {
        grid-template-columns: 1fr;
    }

    .space-console-sidebar {
        position: static;
    }

    .role-gateway,
    .public-panel,
    .portal-hero {
        padding: 18px;
    }

    .public-nav {
        width: 100%;
        flex-wrap: wrap;
    }

    .portal-hero-copy h1 {
        font-size: clamp(38px, 9vw, 54px);
    }

    .portal-hero-art {
        min-height: 250px;
        max-width: 250px;
        width: min(100%, 250px);
        margin: 0 auto;
    }

    .portal-hero-art strong {
        font-size: 38px;
    }

    .portal-hero-art small {
        font-size: 8px;
    }

    .realm-word {
        min-width: 52px;
        min-height: 30px;
        padding: 0 9px;
        font-size: 11px;
    }

    .portal-orbit {
        min-height: 520px;
    }

    .orbit-core {
        width: 128px;
        height: 128px;
        margin: -64px;
    }

    .orbit-node {
        width: calc(100% - 36px);
        left: 18px !important;
        right: auto !important;
    }

    .node-search { top: 18px; }
    .node-create { top: 120px; }
    .node-talent { top: auto; bottom: 120px; }
    .node-space { bottom: 18px; }

    .realm-flow {
        grid-template-columns: 1fr 1fr;
    }

    .bi-bar-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .bi-bar-row b {
        text-align: left;
    }
}

/* Final cascade for the shared visual system. */
body {
    color: var(--ink);
    background:
        radial-gradient(circle at 8% 0%, rgba(111,212,199,.13), transparent 25rem),
        radial-gradient(circle at 92% 10%, rgba(143,126,213,.1), transparent 28rem),
        linear-gradient(180deg, #fbfdfd 0, #f3f8fa 260px, #edf3f6 100%);
}

.topbar {
    min-height: 132px;
    padding-block: 22px;
    border-color: rgba(184,205,214,.72);
    background: rgba(255,255,255,.92);
    box-shadow: 0 8px 28px rgba(29,66,85,.05);
}

.app-shell { width: min(1360px, calc(100% - 40px)); padding-top: 30px; }

.brand-symbol,
.portal-brand-symbol,
.admin-mini-mark {
    background: linear-gradient(145deg, #123c5b, #0e6f72);
    box-shadow: 0 12px 28px rgba(15,68,83,.18), inset 0 1px 0 rgba(255,255,255,.18);
}

.public-nav,
.member-nav { min-height: 44px; border-radius: 14px; background: rgba(248,251,252,.88); }

.public-panel,
.provider-hero,
.admin-panel,
.auth-panel { border-radius: var(--radius-lg); border-color: rgba(180,205,214,.68); background: var(--panel); box-shadow: var(--shadow-soft); }

.public-panel,
.provider-hero { padding: clamp(20px, 2.5vw, 32px); }

.provider-hero {
    background: radial-gradient(circle at 96% 0%, rgba(117,207,194,.16), transparent 18rem), linear-gradient(145deg, rgba(255,255,255,.98), rgba(241,249,250,.94));
}

button,
.button-link,
.solid-link,
.portal-action-link { min-height: 42px; border-radius: 12px; }

input,
select,
textarea { min-height: 46px; border-color: #cedde3; border-radius: 12px; background: rgba(255,255,255,.95); color: var(--ink); }

.search-panel { padding: 18px; border-radius: 20px; border-color: rgba(180,205,214,.68); background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(233,247,246,.92)); box-shadow: var(--shadow-soft); }
.summary { min-height: 58px; margin-block: 16px; padding: 14px 18px; border-radius: 16px; background: rgba(255,255,255,.84); box-shadow: var(--shadow-soft); }
.course-list { gap: 18px; }
.course-card { border-radius: 20px; border-color: rgba(180,205,214,.68); background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(248,251,252,.95)); box-shadow: var(--shadow-soft); }
.course-date { border-radius: 10px; }
.badges span { border-radius: 999px; }

.table-wrap,
.table-scroll { border: 1px solid rgba(190,208,216,.74); border-radius: 16px; background: rgba(255,255,255,.8); }
.data-table thead th,
.table-scroll table thead th { color: #38505f; background: #edf5f6; }
.data-table tbody tr:nth-child(even),
.table-scroll table tbody tr:nth-child(even) { background: rgba(241,247,248,.64); }

.admin-layout { background: #f2f7f9; }
.admin-sidebar { background: linear-gradient(180deg, #fbfdfd, #f3f8f9); }
.admin-sidebar-nav a { border-radius: 12px; }
.admin-sidebar-nav a.is-active { background: linear-gradient(135deg, #dff2ef, #e9e4fa); color: #155f60; }
.admin-content { background: radial-gradient(circle at 100% 0%, rgba(129,118,203,.07), transparent 24rem), #f3f7f9; }
.admin-panel { padding: 22px; }

.portal-topbar { background: rgba(255,255,255,.92); }
.portal-hero,
.realm-story { border-radius: 28px; }
.portal-hero { box-shadow: var(--shadow); }
.portal-action-link { border-radius: 16px; box-shadow: var(--shadow-soft); }
.realm-card,
.role-card,
.content-card { border-radius: 20px; box-shadow: var(--shadow-soft); }

.space-console-sidebar,
.space-provider-card { border-radius: 20px; }
.space-console-menu a { border-radius: 12px; }
.empty { border-radius: 18px; background: rgba(255,255,255,.74); }

@media (max-width: 900px) {
    .app-shell { width: min(100% - 28px, 1360px); }
    .topbar { min-height: 0; }
}

@media (max-width: 560px) {
    .app-shell { width: min(100% - 20px, 1360px); padding-top: 18px; }
    .topbar { padding: 18px; }
    .public-panel,
    .provider-hero,
    .admin-panel { border-radius: 17px; }
    .search-panel { padding: 14px; border-radius: 16px; }
    .course-card { border-radius: 17px; }
}
.admin-panel .course-list > a.crystal-course-card {
    color: inherit;
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.admin-panel .course-list > a.crystal-course-card:hover {
    transform: translateY(-2px);
    border-color: rgba(28, 91, 105, 0.42);
    box-shadow: 0 12px 28px rgba(22, 56, 70, 0.12);
}

.admin-panel .course-list > a.crystal-course-card:focus-visible {
    outline: 3px solid rgba(28, 91, 105, 0.3);
    outline-offset: 3px;
}

.member-dashboard-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 30px;
    border: 1px solid rgba(30, 75, 90, 0.16);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(235, 247, 249, 0.96), rgba(248, 244, 232, 0.9));
}

.member-dashboard-hero span,
.member-module-card > div > span {
    color: #356b76;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.member-dashboard-hero h1 {
    margin: 6px 0 8px;
}

.member-dashboard-hero p,
.member-module-card p {
    margin: 0;
    color: #52646e;
    line-height: 1.7;
}

.member-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.member-stat-grid a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 82px;
    padding: 18px 20px;
    color: inherit;
    text-decoration: none;
    border: 1px solid rgba(30, 75, 90, 0.15);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
}

.member-stat-grid strong {
    color: #1f6170;
    font-size: 1.8rem;
}

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

.member-module-card {
    padding: 24px;
    border: 1px solid rgba(30, 75, 90, 0.15);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 32px rgba(35, 60, 72, 0.07);
}

.member-module-card.souke {
    grid-column: 1 / -1;
}

.member-module-card h2 {
    margin: 6px 0 12px;
}

.member-module-card dl {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0;
}

.member-module-card dl div {
    padding: 12px;
    border-radius: 14px;
    background: #f4f8f8;
}

.member-module-card dt {
    color: #6a7d85;
    font-size: 0.76rem;
}

.member-module-card dd {
    margin: 5px 0 0;
    font-weight: 700;
}

.member-module-card nav {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 18px;
}

.member-module-card nav a {
    padding: 9px 13px;
    color: #215c68;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid rgba(33, 92, 104, 0.2);
    border-radius: 999px;
    background: #f4fafb;
}

@media (max-width: 760px) {
    .member-dashboard-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .member-stat-grid,
    .member-module-grid,
    .member-module-card dl {
        grid-template-columns: 1fr;
    }

    .member-module-card.souke {
        grid-column: auto;
    }
}
