:root {
    --ink: #17202f;
    --muted: #617086;
    --paper: #fffdf8;
    --line: #e8dfd2;
    --amber: #c6632f;
    --amber-dark: #8d3f20;
    --cyan: #2f8f9d;
    --green: #617c46;
    --night: #101726;
    --white: #ffffff;
    --glass-panel: rgba(255, 253, 248, 0.66);
    --glass-panel-strong: rgba(255, 253, 248, 0.76);
    --glass-panel-soft: rgba(255, 253, 248, 0.54);
    --glass-line: rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 24px 76px rgba(0, 0, 0, 0.2);
    --glass-blur: blur(18px) saturate(1.12);
    --selection-off-bg: rgba(7, 17, 34, 0.58);
    --selection-off-border: rgba(151, 172, 199, 0.46);
    --selection-off-text: rgba(255, 253, 248, 0.96);
    --selection-on-bg: rgba(184, 202, 224, 0.9);
    --selection-on-border: rgba(211, 225, 241, 0.72);
    --selection-on-text: #071122;
    --selection-on-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26), 0 14px 30px rgba(7, 17, 34, 0.16);
}

* {
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: clip;
}

img,
svg,
video,
canvas {
    max-width: 100%;
}

pre,
code {
    overflow-wrap: anywhere;
}

[hidden] {
    display: none !important;
}

body.cv-page {
    margin: 0;
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.55;
    background:
        radial-gradient(circle at 14% 12%, rgba(198, 99, 47, 0.16), transparent 30%),
        radial-gradient(circle at 86% 8%, rgba(47, 143, 157, 0.12), transparent 28%),
        linear-gradient(180deg, #fff8ef 0%, #f8f4ec 46%, #eef5f6 100%);
}

body.home-page,
body.tool-page {
    margin: 0;
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.55;
    background:
        radial-gradient(circle at 18% 14%, rgba(47, 143, 157, 0.16), transparent 28%),
        radial-gradient(circle at 88% 10%, rgba(198, 99, 47, 0.16), transparent 26%),
        linear-gradient(180deg, #f8fbff 0%, #fff8ef 50%, #f2f6ef 100%);
}

body.space-home {
    background: #080d1d;
}

.home-page main {
    position: relative;
    z-index: 1;
    min-height: var(--stars-viewport-height, 100dvh);
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
}

body.starry-page,
body.starry-page.cv-page,
body.starry-page.tool-page {
    min-height: 100vh;
    background: #080d1d;
    isolation: isolate;
}

body.starry-page > :not(.living-stars):not(.living-stars-skins):not(.star-skin-anchor):not(.star-settings):not(.stat-life-help-tooltip):not(.site-nav):not(.education-session-selector) {
    position: relative;
    z-index: 1;
}

.cv-page a {
    color: var(--amber-dark);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.home-page a,
.tool-page a {
    color: var(--amber-dark);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.starry-page .cv-kicker,
.starry-page .tool-card__label,
.starry-page .space-kicker {
    color: var(--amber);
}

.starry-page .cv-hero h1,
.starry-page .tool-header h1,
.starry-page .atelier-card h2,
.starry-page .other-card h2 {
    color: var(--white);
}

.starry-page .cv-lead,
.starry-page .tool-header p,
.starry-page .atelier-card p:not(.tool-card__label),
.starry-page .other-card p:not(.tool-card__label) {
    color: rgba(255, 255, 255, 0.82);
}

.starry-page .cv-contact,
.starry-page .cv-sidebar,
.starry-page .cv-section,
.starry-page .control-panel,
.starry-page .result-panel,
.starry-page .tool-note,
.starry-page .chat-panel,
.starry-page .pseudo-panel {
    border-color: var(--glass-line);
    background: var(--glass-panel);
    box-shadow: var(--glass-shadow);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.starry-page .cv-contact,
.starry-page .cv-sidebar,
.starry-page .control-panel,
.starry-page .result-panel,
.starry-page .chat-panel {
    background: var(--glass-panel-strong);
}

.starry-page .cv-section {
    margin-bottom: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
}

.starry-page .cv-section:first-child {
    padding-top: 24px;
}

.starry-page .cv-footer {
    color: rgba(255, 255, 255, 0.68);
    border-top-color: rgba(255, 255, 255, 0.14);
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px clamp(18px, 5vw, 64px);
    background: rgba(255, 253, 248, 0.82);
    border-bottom: 1px solid rgba(104, 79, 50, 0.16);
    backdrop-filter: blur(16px) saturate(1.08);
    -webkit-backdrop-filter: blur(16px) saturate(1.08);
}

.space-nav {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    color: var(--white);
    background: linear-gradient(180deg, rgba(8, 13, 29, 0.82), rgba(8, 13, 29, 0.36));
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

body.starry-page > .site-nav.space-nav,
.site-nav.space-nav {
    position: fixed;
    z-index: 10;
    transition: transform 180ms ease, opacity 180ms ease, background 180ms ease, border-color 180ms ease;
    will-change: transform;
}

.site-nav.space-nav.is-auto-hidden {
    opacity: 0;
    pointer-events: auto;
    transform: translateY(calc(-100% + 12px));
}

.site-nav-reveal-zone {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 9;
    height: 72px;
    pointer-events: auto;
    background: transparent;
}

body.starry-page > .site-nav.space-nav.is-auto-hidden:hover,
body.starry-page > .site-nav.space-nav.is-auto-hidden:focus-within,
.site-nav.space-nav.is-auto-hidden:hover,
.site-nav.space-nav.is-auto-hidden:focus-within {
    opacity: 1;
    transform: translateY(0);
}

.space-nav .site-nav__brand,
.space-nav .site-nav__links a {
    color: var(--white);
}

.space-nav .site-nav__links a {
    background: transparent;
    color: var(--selection-off-text);
}

.space-nav .site-nav__links a:hover,
.space-nav .site-nav__links a[aria-current="page"] {
    border-color: var(--selection-on-border);
    color: var(--selection-on-text);
    background: var(--selection-on-bg);
}

.site-nav.space-nav + .tool-shell {
    padding-top: clamp(104px, 12vw, 136px);
}

body.atelier-page .site-nav.space-nav + .tool-shell {
    padding-top: clamp(54px, 5.5vw, 72px);
    padding-bottom: clamp(20px, 3vw, 34px);
}

.site-nav.space-nav + .cv-shell .cv-hero {
    padding-top: clamp(104px, 12vw, 150px);
}

.site-nav__brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--ink);
    font-weight: 800;
    letter-spacing: 0;
    text-decoration: none;
}

.site-nav__brand::before {
    content: "";
    display: inline-block;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    background: url("../image/logo-mirror-skate.svg") center / contain no-repeat;
    filter: drop-shadow(0 7px 10px rgba(16, 23, 38, 0.16));
}

.site-nav__brand[data-site-profile-connected="true"]::before {
    display: none;
}

.site-nav__identity {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.site-nav__identity::after {
    content: "";
    position: absolute;
    top: 100%;
    left: -12px;
    width: calc(100% + 24px);
    height: 18px;
}

.site-nav__profile-avatar {
    width: 34px;
    height: 34px;
    display: inline-grid;
    flex: 0 0 34px;
    overflow: hidden;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 18px rgba(7, 17, 34, 0.18);
}

.site-nav__profile-avatar[hidden] {
    display: none;
}

.site-nav__profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.site-nav__brand-name {
    display: inline-block;
    max-width: min(220px, 34vw);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-nav__signout-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(5, 10, 24, 0.68);
    backdrop-filter: blur(10px);
}

.site-nav__signout-modal[hidden] {
    display: none;
}

.site-nav__signout-card {
    width: min(430px, 100%);
    padding: clamp(20px, 5vw, 28px);
    border: 1px solid rgba(151, 172, 199, 0.34);
    border-radius: 8px;
    color: var(--ink);
    background:
        linear-gradient(135deg, rgba(13, 25, 48, 0.98), rgba(8, 13, 29, 0.98)),
        var(--night);
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
}

.site-nav__signout-card strong {
    display: block;
    color: #fff;
    font-size: clamp(22px, 5vw, 30px);
    font-weight: 950;
    letter-spacing: 0;
}

.site-nav__signout-card p {
    margin: 12px 0 22px;
    color: rgba(255, 253, 248, 0.72);
    font-size: 15px;
    font-weight: 650;
    line-height: 1.5;
}

.site-nav__signout-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.site-nav__signout-cancel,
.site-nav__signout-confirm {
    min-height: 46px;
    padding: 12px 16px;
    border: 1px solid rgba(151, 172, 199, 0.34);
    border-radius: 6px;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 900;
}

.site-nav__signout-cancel {
    color: rgba(255, 253, 248, 0.92);
    background: rgba(255, 255, 255, 0.08);
}

.site-nav__signout-confirm {
    border-color: rgba(210, 99, 38, 0.86);
    color: #fff;
    background: var(--accent);
}

.site-nav__signout-cancel:hover,
.site-nav__signout-cancel:focus-visible {
    border-color: rgba(255, 255, 255, 0.54);
    background: rgba(255, 255, 255, 0.14);
}

.site-nav__signout-confirm:hover,
.site-nav__signout-confirm:focus-visible {
    background: #b94f20;
}

.site-nav__signout-confirm:disabled {
    cursor: wait;
    opacity: 0.7;
}

.site-nav__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.site-nav__links a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.site-nav__badge {
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border: 1px solid rgba(151, 172, 199, 0.34);
    border-radius: 999px;
    color: rgba(255, 253, 248, 0.96);
    background: rgba(18, 39, 68, 0.88);
    box-shadow: 0 0 18px rgba(113, 199, 216, 0.18);
    font-size: 11px;
    font-weight: 950;
    line-height: 1;
}

.site-nav__badge[hidden] {
    display: none;
}

.site-nav__links a:hover,
.site-nav__links a[aria-current="page"] {
    border-color: var(--selection-on-border);
    color: var(--selection-on-text);
    background: var(--selection-on-bg);
    font-weight: 950;
    box-shadow: var(--selection-on-shadow);
}

.site-nav__links a:hover .site-nav__badge,
.site-nav__links a[aria-current="page"] .site-nav__badge {
    border-color: rgba(7, 17, 34, 0.18);
    color: var(--selection-on-text);
    background: rgba(255, 253, 248, 0.42);
}

.cv-shell {
    width: min(1120px, calc(100% - clamp(36px, 7vw, 88px)));
    margin: 0 auto;
}

.cv-page.cv-sidebar-drag-active .cv-shell {
    width: calc(100% - clamp(24px, 3vw, 52px));
    max-width: none;
}

.cv-page.cv-sidebar-drag-active .cv-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    width: 100%;
}

.cv-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
    min-height: 440px;
    padding: clamp(34px, 6vw, 70px) 0 34px;
}

.cv-hero-text {
    display: grid;
    align-content: start;
}

.cv-kicker {
    margin: 0 0 12px;
    color: var(--amber-dark);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cv-hero h1 {
    max-width: 820px;
    margin: 0;
    color: var(--night);
    font-size: clamp(42px, 6.4vw, 76px);
    line-height: 1;
    letter-spacing: 0;
}

.cv-lead {
    max-width: 720px;
    margin: 18px 0 0;
    color: #344255;
    font-size: clamp(17px, 1.7vw, 21px);
    line-height: 1.48;
}

.cv-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 15px;
    border: 1px solid rgba(198, 99, 47, 0.35);
    border-radius: 7px;
    color: var(--white);
    background: var(--amber);
    font-weight: 700;
    text-decoration: none;
}

.cv-button.secondary {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.68);
}

.cv-button:disabled,
.cv-button[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.58;
    filter: grayscale(0.25);
}

.cv-photo-wrap {
    justify-self: end;
    width: min(220px, 70vw);
}

.cv-photo {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    pointer-events: none;
    border: 8px solid rgba(255, 255, 255, 0.78);
    border-radius: 8px;
    box-shadow: 0 26px 70px rgba(62, 41, 24, 0.26);
}

.cv-contact {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 32px;
    padding: clamp(15px, 2.4vw, 20px);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.cv-contact > div {
    min-width: 0;
    padding: 2px clamp(6px, 1.4vw, 12px);
}

.cv-contact span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.cv-contact strong,
.cv-contact a {
    color: var(--ink);
    font-size: 15px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.cv-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: clamp(26px, 4vw, 54px);
    align-items: start;
    padding-bottom: 70px;
    transition: gap 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cv-layout.cv-sidebar-lifted {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
}

.cv-layout > :not(.cv-sidebar) {
    min-width: 0;
}

.cv-layout.cv-sidebar-lifted > :not(.cv-sidebar) {
    grid-column: 1;
    width: 100%;
    justify-self: stretch;
}

.cv-page.cv-sidebar-drag-active .cv-main-sections {
    width: 100%;
    max-width: none;
}

.cv-sidebar {
    position: sticky;
    top: 74px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 253, 248, 0.72);
}

.cv-sidebar h2,
.cv-section h2 {
    margin: 0 0 16px;
    color: var(--amber-dark);
    font-size: 15px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.skill-list {
    display: grid;
    gap: 15px;
    margin: 0;
}

.skill-list dt {
    color: var(--night);
    font-weight: 800;
}

.skill-list dd {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.cv-section {
    padding: 30px 0;
    border-top: 1px solid var(--line);
}

.cv-section:first-child {
    border-top: 0;
    padding-top: 0;
}

.cv-section h2 {
    font-size: 16px;
}

.cv-main-sections {
    min-width: 0;
    width: 100%;
}

.cv-focus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0 28px;
}

.cv-focus-grid article {
    min-width: 0;
    padding: 14px 0 16px;
    border-top: 1px solid rgba(7, 17, 34, 0.12);
}

.cv-focus-grid h3 {
    margin: 0;
    color: var(--night);
    font-size: 17px;
}

.cv-focus-grid p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.timeline {
    display: grid;
    gap: 22px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 22px;
}

.timeline-date {
    color: var(--green);
    font-size: 14px;
    font-weight: 800;
}

.timeline-body h3 {
    margin: 0;
    color: var(--night);
    font-size: 22px;
}

.timeline-meta {
    margin: 3px 0 10px;
    color: var(--muted);
    font-weight: 700;
}

.timeline-body ul {
    margin: 0;
    padding-left: 18px;
}

.timeline-body li + li {
    margin-top: 5px;
}

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

.education-item {
    padding-left: 18px;
    border-left: 3px solid rgba(198, 99, 47, 0.35);
}

.education-item h3 {
    margin: 0;
    font-size: 19px;
}

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

.cv-footer {
    padding: 28px 0 42px;
    color: var(--muted);
    border-top: 1px solid var(--line);
}

.home-hero {
    position: relative;
    min-height: min(720px, calc(100vh - 64px));
    display: grid;
    align-items: end;
    overflow: hidden;
    padding: clamp(56px, 10vw, 120px) clamp(18px, 5vw, 72px);
    color: var(--white);
    background:
        radial-gradient(circle at 20% 20%, rgba(53, 199, 208, 0.25), transparent 25%),
        radial-gradient(circle at 80% 30%, rgba(247, 216, 91, 0.14), transparent 22%),
        linear-gradient(135deg, #101726 0%, #17243a 48%, #26324f 100%);
}

.space-hero {
    position: relative;
    min-height: 0;
    overflow: hidden;
    display: grid;
    align-items: center;
    padding: clamp(76px, 7vw, 102px) clamp(18px, 5vw, 74px) clamp(18px, 3vw, 36px);
    color: var(--white);
    background: transparent;
}

.living-stars {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.living-stars {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100vh;
    height: var(--stars-viewport-height, 100dvh);
    pointer-events: none;
}

.living-stars.site-stars-bg {
    inset: 0;
    position: fixed;
}

.space-hero__shade {
    display: none;
}

.space-hero__content {
    position: relative;
    z-index: 2;
    width: min(760px, 100%);
    max-width: 100%;
    min-width: 0;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.52);
}

.living-stars-skins {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100vh;
    height: var(--stars-viewport-height, 100dvh);
    overflow: visible;
    pointer-events: none;
}

.living-stars-skin {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    height: auto;
    max-width: none;
    transform-origin: 50% 58%;
    filter: drop-shadow(0 30px 48px rgba(0, 0, 0, 0.34));
    will-change: transform, opacity;
    pointer-events: none;
    user-select: none;
}

.star-skin-anchor {
    position: absolute;
    right: clamp(-22px, 5vw, 86px);
    bottom: clamp(-34px, -2vw, -12px);
    z-index: 1;
    width: min(27vw, 360px);
    max-width: 48vh;
    aspect-ratio: 0.78;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.star-skin-anchor--site-cat {
    position: fixed;
    right: clamp(18px, 4.4vw, 72px);
    bottom: clamp(16px, 5vh, 68px);
    width: clamp(86px, 10vw, 156px);
    max-width: min(156px, 26vh);
}

.living-stars-skin--site-cat {
    filter:
        drop-shadow(0 22px 38px rgba(0, 0, 0, 0.34))
        drop-shadow(0 0 18px rgba(151, 185, 255, 0.16));
}

.space-kicker {
    max-width: 100%;
    margin: 0 0 10px;
    color: var(--amber);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.space-hero h1 {
    max-width: 980px;
    margin: 0;
    font-size: clamp(42px, 5.2vw, 70px);
    line-height: 0.95;
    letter-spacing: 0;
}

.space-lead {
    max-width: 700px;
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(18px, 1.55vw, 21px);
    overflow-wrap: anywhere;
}

.space-signals {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.space-signals span {
    display: inline-flex;
    align-items: center;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: rgba(255, 255, 255, 0.76);
    background: transparent;
    font-size: 13px;
    font-weight: 850;
}

.home-page .showcase-card {
    color: var(--white);
}

.showcase-section {
    position: relative;
    align-self: end;
    padding: clamp(10px, 1.7vw, 18px) clamp(18px, 5vw, 74px) 0;
    color: var(--white);
    background:
        linear-gradient(180deg, rgba(8, 13, 29, 0.18) 0%, rgba(16, 23, 38, 0.54) 52%, rgba(23, 32, 47, 0.72) 100%);
}

.showcase-heading {
    width: min(760px, 100%);
    margin-bottom: 10px;
}

.showcase-heading h2 {
    margin: 0;
    font-size: clamp(28px, 3.4vw, 40px);
    line-height: 1.02;
}

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

.showcase-carousel {
    min-width: 0;
}

.showcase-carousel__radio,
.showcase-carousel__controls {
    display: none;
}

.showcase-card {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 8px 8px 0 0;
    color: var(--white);
    background:
        radial-gradient(circle at 18% 20%, rgba(245, 195, 106, 0.18), transparent 30%),
        rgba(255, 255, 255, 0.075);
    text-decoration: none;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(16px) saturate(1.1);
    -webkit-backdrop-filter: blur(16px) saturate(1.1);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.showcase-card:hover,
.showcase-card:focus-visible,
.atelier-card:hover,
.atelier-card:focus-visible,
.other-card:hover,
.other-card:focus-visible {
    border-color: rgba(245, 195, 106, 0.42);
    background:
        radial-gradient(circle at 18% 18%, rgba(245, 195, 106, 0.25), transparent 32%),
        rgba(255, 255, 255, 0.105);
    box-shadow: 0 28px 82px rgba(0, 0, 0, 0.22);
    transform: translateY(-4px);
}

.showcase-card:focus-visible,
.atelier-card:focus-visible,
.other-card:focus-visible {
    outline: 3px solid rgba(245, 195, 106, 0.9);
    outline-offset: 4px;
}

.showcase-card.main-card {
    background:
        radial-gradient(circle at 20% 18%, rgba(47, 143, 157, 0.28), transparent 34%),
        radial-gradient(circle at 80% 72%, rgba(198, 99, 47, 0.24), transparent 28%),
        rgba(255, 255, 255, 0.08);
}

.showcase-card__icon {
    width: min(100%, 118px);
    max-height: 104px;
    align-self: center;
    margin: 0 auto auto;
    object-fit: contain;
    filter: drop-shadow(0 22px 26px rgba(0, 0, 0, 0.22));
}

.showcase-card span {
    border: 0;
    color: #f5c36a;
    background: transparent;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.showcase-card h3 {
    margin: 4px 0;
    font-size: 20px;
    line-height: 1.04;
}

.showcase-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
}

.home-hero__content {
    position: relative;
    z-index: 1;
    width: min(880px, 100%);
}

.home-hero h1 {
    margin: 0;
    max-width: 900px;
    font-size: clamp(42px, 7vw, 88px);
    line-height: 0.98;
    letter-spacing: 0;
}

.home-hero p {
    max-width: 720px;
    font-size: clamp(17px, 2vw, 22px);
}

.home-hero__space span {
    position: absolute;
    display: block;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    animation: orbitFloat 16s ease-in-out infinite alternate;
}

.home-hero__space span:nth-child(1) {
    right: 12%;
    top: 14%;
}

.home-hero__space span:nth-child(2) {
    right: 28%;
    top: 34%;
    width: 120px;
    height: 120px;
    animation-duration: 11s;
}

.home-hero__space span:nth-child(3) {
    right: 6%;
    bottom: 16%;
    width: 320px;
    height: 320px;
    animation-duration: 20s;
}

@keyframes orbitFloat {
    from {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.42;
    }

    to {
        transform: translate3d(-34px, 24px, 0) scale(1.08);
        opacity: 0.72;
    }
}

@media (max-height: 820px) and (min-width: 701px) {
    .space-hero {
        padding-top: clamp(58px, 5.2vw, 76px);
        padding-bottom: 12px;
    }

    .space-hero h1 {
        font-size: clamp(42px, 4.6vw, 62px);
    }

    .space-lead {
        max-width: 620px;
        margin-top: 8px;
        font-size: clamp(16px, 1.35vw, 19px);
        line-height: 1.35;
    }

    .space-signals {
        margin-top: 7px;
    }

    .showcase-section {
        padding-top: 8px;
    }

    .showcase-heading {
        margin-bottom: 8px;
    }

    .showcase-heading h2 {
        font-size: clamp(24px, 2.6vw, 32px);
    }

    .showcase-card {
        min-height: 150px;
        padding: 16px;
    }

    .showcase-card__icon {
        width: min(100%, 90px);
        max-height: 84px;
    }
}

.tool-grid {
    width: min(1120px, calc(100% - 32px));
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin: 34px auto 72px;
}

.tool-card {
    min-height: 230px;
    display: flex;
    flex-direction: column;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--glass-panel);
    box-shadow: 0 22px 62px rgba(42, 54, 72, 0.12);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.tool-card h2 {
    margin: 0 0 10px;
    color: var(--night);
    font-size: 22px;
}

.tool-card p {
    color: var(--muted);
}

.tool-card a {
    margin-top: auto;
    font-weight: 800;
}

.tool-card__label {
    margin: 0 0 10px;
    border: 0;
    color: var(--amber-dark);
    background: transparent;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.atelier-page {
    background:
        radial-gradient(circle at 12% 16%, rgba(47, 143, 157, 0.13), transparent 30%),
        radial-gradient(circle at 88% 12%, rgba(198, 99, 47, 0.12), transparent 28%),
        linear-gradient(180deg, #fffdf8 0%, #f3f7f7 100%);
}

.atelier-header {
    max-width: 920px;
}

.atelier-page .tool-shell {
    padding-top: clamp(54px, 5.5vw, 72px);
    padding-bottom: clamp(20px, 3vw, 34px);
}

.atelier-page .tool-header {
    margin-bottom: 14px;
}

.atelier-page .tool-header h1 {
    font-size: clamp(32px, 4.8vw, 52px);
}

.atelier-page .tool-header p {
    margin: 8px 0 0;
    font-size: clamp(14px, 1.35vw, 17px);
}

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

.atelier-card {
    position: relative;
    min-height: clamp(146px, 18vh, 168px);
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(72px, 96px) minmax(0, 1fr);
    align-items: center;
    gap: 10px 14px;
    padding: clamp(12px, 1.35vw, 16px);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 8px;
    color: var(--white);
    background:
        radial-gradient(circle at 20% 18%, rgba(47, 143, 157, 0.24), transparent 32%),
        rgba(255, 255, 255, 0.075);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.16);
    text-decoration: none;
    cursor: pointer;
    backdrop-filter: blur(16px) saturate(1.1);
    -webkit-backdrop-filter: blur(16px) saturate(1.1);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.atelier-card__media {
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    overflow: hidden;
}

.atelier-card__media img {
    width: min(100%, 90px);
    max-height: 90px;
    object-fit: contain;
    filter: drop-shadow(0 18px 24px rgba(16, 23, 38, 0.16));
}

.atelier-card:nth-child(3) .atelier-card__media img {
    width: min(100%, 94px);
}

.atelier-card__body {
    display: block;
    min-width: 0;
}

.atelier-card:nth-child(2) {
    background:
        radial-gradient(circle at 80% 20%, rgba(198, 99, 47, 0.24), transparent 32%),
        rgba(255, 255, 255, 0.075);
}

.atelier-card:nth-child(3) {
    background:
        radial-gradient(circle at 78% 16%, rgba(97, 124, 70, 0.26), transparent 32%),
        rgba(255, 255, 255, 0.075);
}

.atelier-card:nth-child(4) {
    background:
        radial-gradient(circle at 18% 20%, rgba(157, 79, 130, 0.24), transparent 32%),
        radial-gradient(circle at 84% 18%, rgba(47, 143, 157, 0.2), transparent 28%),
        rgba(255, 255, 255, 0.075);
}

.atelier-card:nth-child(5) {
    background:
        radial-gradient(circle at 18% 18%, rgba(245, 195, 106, 0.22), transparent 32%),
        radial-gradient(circle at 84% 72%, rgba(201, 74, 56, 0.18), transparent 28%),
        rgba(255, 255, 255, 0.075);
}

.atelier-card:nth-child(6) {
    background:
        radial-gradient(circle at 20% 16%, rgba(140, 238, 207, 0.2), transparent 32%),
        radial-gradient(circle at 82% 74%, rgba(245, 195, 106, 0.18), transparent 28%),
        rgba(255, 255, 255, 0.075);
}

.atelier-card:nth-child(6) .atelier-card__media img {
    width: min(100%, 82px);
}

.atelier-card h2 {
    margin: 0 0 4px;
    color: var(--white);
    font-size: clamp(18px, 1.7vw, 23px);
    line-height: 1.04;
}

.atelier-card p {
    max-width: 560px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 12.5px;
    line-height: 1.28;
}

.other-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.pseudo-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--glass-panel);
    box-shadow: 0 24px 76px rgba(42, 54, 72, 0.14);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.pseudo-panel {
    display: grid;
    grid-template-columns: minmax(220px, 0.85fr) minmax(260px, 1fr);
    gap: 8px 18px;
    align-items: stretch;
    padding: clamp(10px, 1.35vw, 14px);
}

.pseudo-panel__active {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 0;
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    padding: 0;
    text-align: right;
}

.pseudo-panel__actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.pseudo-panel__active,
.pseudo-panel__editor {
    grid-column: 2;
}

.pseudo-panel__active strong {
    color: var(--night);
    display: block;
    font-size: clamp(19px, 2.4vw, 24px);
    line-height: 1.05;
    margin-top: 4px;
    overflow-wrap: anywhere;
}

.pseudo-panel__editor {
    display: grid;
    gap: 10px;
    align-content: start;
}

.pseudo-panel h2 {
    margin: 0;
    color: var(--night);
    font-size: clamp(20px, 2vw, 27px);
    line-height: 1;
}

.other-card h2 {
    margin: 0;
    color: var(--white);
    font-size: clamp(23px, 1.85vw, 32px);
    line-height: 1.02;
}

.pseudo-panel p,
.pseudo-panel .tool-card__label {
    color: #3b485b;
    margin-bottom: 6px;
}

.pseudo-panel label {
    display: grid;
    gap: 6px;
    color: var(--night);
    font-size: 13px;
    font-weight: 850;
    line-height: 1.15;
}

.pseudo-panel input {
    width: 100%;
    min-width: 0;
    border: 1px solid #d9ccba;
    border-radius: 7px;
    padding: 9px 11px;
    color: var(--night);
    background: rgba(255, 253, 248, 0.94);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
    font-family: inherit;
    font-size: 17px;
    font-weight: 780;
    line-height: 1.15;
    outline: none;
}

.pseudo-panel input:focus {
    border-color: rgba(198, 99, 47, 0.52);
    box-shadow:
        0 0 0 3px rgba(198, 99, 47, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.pseudo-panel .space-button {
    align-self: stretch;
    min-height: 34px;
    padding: 8px 12px;
    color: #101726;
    border: 1px solid rgba(198, 99, 47, 0.28);
    border-radius: 7px;
    background: linear-gradient(180deg, #f6c775 0%, #e8ad4c 100%);
    box-shadow: 0 8px 18px rgba(139, 75, 31, 0.16);
    font-family: inherit;
    font-size: 13px;
    font-weight: 850;
}

.pseudo-panel .space-button:hover,
.pseudo-panel .space-button:focus-visible {
    background: linear-gradient(180deg, #ffd68a 0%, #efb95d 100%);
    color: var(--night);
}

.pseudo-panel .cv-button.secondary {
    min-height: 36px;
    padding: 8px 12px;
    border: 0;
    border-radius: 7px;
    color: var(--amber-dark);
    background: rgba(255, 253, 248, 0.34);
    box-shadow: none;
    justify-content: center;
    font-weight: 900;
    text-decoration: none;
}

.pseudo-panel .cv-button.secondary:hover,
.pseudo-panel .cv-button.secondary:focus-visible {
    color: var(--night);
    background: rgba(255, 253, 248, 0.58);
}

.pseudo-panel__status {
    grid-column: 1 / -1;
    min-height: 16px;
    margin: 0;
    font-weight: 850;
    font-size: 13px;
}

.pseudo-panel__auth {
    grid-column: 1;
    margin-top: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    display: grid;
    grid-template-columns: minmax(0, max-content) auto;
    gap: 8px 14px;
    align-items: center;
    justify-content: start;
}

.pseudo-panel__auth.is-clickable {
    cursor: pointer;
}

.pseudo-panel__auth.is-clickable:hover .cv-button.secondary,
.pseudo-panel__auth.is-clickable:focus-visible .cv-button.secondary {
    background: rgba(255, 253, 248, 0.58);
    color: var(--night);
}

.pseudo-panel__auth strong,
.pseudo-panel__auth span {
    display: block;
}

.pseudo-panel__auth strong {
    color: var(--night);
    font-size: 18px;
    line-height: 1.15;
}

.pseudo-panel__auth span {
    color: #3b485b;
    font-weight: 760;
    font-size: 13px;
    line-height: 1.25;
}

.pseudo-panel__auth-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

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

.other-card {
    position: relative;
    min-height: clamp(128px, 17.8dvh, 164px);
    overflow: hidden;
    display: grid;
    grid-template-columns: clamp(78px, 7vw, 104px) minmax(0, 1fr);
    align-items: center;
    gap: 4px 16px;
    padding: clamp(15px, 1.35vw, 22px);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 8px;
    color: var(--white);
    background:
        radial-gradient(circle at 18% 20%, rgba(245, 195, 106, 0.18), transparent 30%),
        rgba(255, 255, 255, 0.075);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.16);
    text-decoration: none;
    cursor: pointer;
    backdrop-filter: blur(16px) saturate(1.1);
    -webkit-backdrop-filter: blur(16px) saturate(1.1);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.other-card:nth-child(2) {
    background:
        radial-gradient(circle at 80% 18%, rgba(47, 143, 157, 0.24), transparent 30%),
        radial-gradient(circle at 18% 84%, rgba(198, 99, 47, 0.16), transparent 28%),
        rgba(255, 255, 255, 0.075);
}

.other-card:nth-child(3) {
    background:
        radial-gradient(circle at 80% 18%, rgba(97, 124, 70, 0.24), transparent 30%),
        radial-gradient(circle at 18% 84%, rgba(47, 143, 157, 0.16), transparent 28%),
        rgba(255, 255, 255, 0.075);
}

.other-card:nth-child(5):last-child {
    grid-column: span 2;
}

.other-card--muted {
    cursor: default;
    background:
        radial-gradient(circle at 80% 18%, rgba(95, 111, 134, 0.22), transparent 30%),
        rgba(255, 255, 255, 0.06);
}

.other-card img {
    grid-row: 1 / span 3;
    width: min(100%, 82px);
    max-height: 78px;
    align-self: center;
    object-fit: contain;
    filter: drop-shadow(0 18px 24px rgba(16, 23, 38, 0.16));
}

.other-card p {
    color: rgba(255, 255, 255, 0.74);
    margin: 0;
    font-size: clamp(13px, 0.92vw, 15px);
    line-height: 1.28;
}

.other-card p:not(.tool-card__label) {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.atelier-card .tool-card__label,
.other-card .tool-card__label {
    color: var(--amber);
}

.other-card .tool-card__label {
    margin: 0;
    font-size: clamp(12px, 0.78vw, 13px);
    line-height: 1.12;
}

.tool-page .atelier-card,
.tool-page .other-card {
    color: var(--white);
}

.atelier-card:hover,
.atelier-card:focus-visible,
.other-card:hover,
.other-card:focus-visible {
    background:
        radial-gradient(circle at 18% 18%, rgba(245, 195, 106, 0.25), transparent 32%),
        rgba(255, 255, 255, 0.105);
}

.other-card--locked,
.other-card--locked:hover,
.other-card--locked:focus-visible {
    border-color: rgba(255, 255, 255, 0.13);
    background:
        radial-gradient(circle at 80% 18%, rgba(95, 111, 134, 0.22), transparent 30%),
        rgba(255, 255, 255, 0.06);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.16);
    cursor: default;
    transform: none;
}

.other-card--locked:focus-visible {
    outline: 0;
}

.tool-shell {
    width: min(1120px, calc(100% - clamp(36px, 7vw, 88px)));
    margin: 0 auto;
    padding: clamp(36px, 7vw, 82px) 0 72px;
}

.tool-header {
    max-width: 820px;
    margin-bottom: 34px;
}

.tool-header h1 {
    margin: 0;
    color: var(--night);
    font-size: clamp(40px, 7vw, 74px);
    line-height: 0.98;
}

.tool-header p {
    color: #344255;
    font-size: clamp(17px, 2vw, 21px);
}

.other-page .tool-shell {
    width: min(1360px, calc(100% - clamp(36px, 7vw, 96px)));
    padding-top: clamp(10px, 2vw, 24px);
    padding-bottom: clamp(14px, 2vw, 24px);
}

.other-page .tool-header {
    max-width: 960px;
    margin-bottom: 12px;
}

.other-page .tool-header h1 {
    font-size: clamp(32px, 4vw, 46px);
}

.other-page .tool-header p {
    margin-top: 8px;
    font-size: clamp(14px, 1.35vw, 16px);
    line-height: 1.35;
}

.parcours-page {
    overflow: hidden;
    background:
        radial-gradient(circle at 14% 10%, rgba(47, 143, 157, 0.13), transparent 30%),
        radial-gradient(circle at 84% 14%, rgba(97, 124, 70, 0.13), transparent 28%),
        linear-gradient(180deg, #fffdf8 0%, #eef5f6 100%);
}

.parcours-page [hidden] {
    display: none !important;
}

.parcours-shell {
    height: calc(100dvh - 74px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 12px;
    padding: clamp(12px, 2dvh, 18px) 0;
    overflow: hidden;
}

.parcours-header {
    max-width: 920px;
    margin-bottom: 0;
}

.parcours-header .cv-kicker {
    margin-bottom: 4px;
}

.parcours-header h1 {
    font-size: clamp(30px, 4.6vw, 50px);
}

.parcours-header p {
    max-width: 760px;
    margin-top: 6px;
    font-size: clamp(14px, 1.35vw, 16px);
    line-height: 1.28;
}

.parcours-overview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.parcours-axis,
.parcours-note,
.parcours-track,
.parcours-module {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--glass-panel-strong);
    box-shadow: 0 20px 58px rgba(42, 54, 72, 0.11);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.parcours-axis {
    display: grid;
    gap: 9px;
    min-height: 220px;
    padding: 20px;
    color: var(--ink);
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.parcours-axis:hover,
.parcours-axis:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(198, 99, 47, 0.42);
    box-shadow: 0 26px 66px rgba(42, 54, 72, 0.16);
}

.parcours-axis span {
    color: var(--amber-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.parcours-axis h2 {
    margin: 0;
    color: var(--night);
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1;
}

.parcours-axis p,
.parcours-note p,
.parcours-track__header p,
.parcours-module__meta {
    margin: 0;
    color: #445368;
}

.parcours-axis strong {
    align-self: end;
    color: var(--green);
    font-size: 14px;
}

.parcours-note {
    margin-bottom: 24px;
    padding: 18px 20px;
}

.parcours-note .tool-card__label {
    margin-bottom: 6px;
}

.parcours-library {
    display: grid;
    gap: 22px;
}

.parcours-track {
    scroll-margin-top: 92px;
    padding: clamp(18px, 3vw, 28px);
}

.parcours-track__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.parcours-track__header h2 {
    margin: 0 0 8px;
    color: var(--night);
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1;
}

.parcours-track__count {
    flex: 0 0 auto;
    padding: 8px 10px;
    border-radius: 6px;
    color: var(--night);
    background: rgba(245, 195, 106, 0.48);
    font-size: 13px;
}

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

.parcours-module {
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 16px;
}

.parcours-module__meta {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.parcours-module h3 {
    margin: 0;
    color: var(--night);
    font-size: 20px;
    line-height: 1.18;
}

.parcours-docs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.parcours-doc {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid rgba(198, 99, 47, 0.28);
    border-radius: 6px;
    color: var(--amber-dark);
    background: rgba(255, 253, 248, 0.72);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.parcours-doc:hover,
.parcours-doc:focus-visible {
    color: var(--white);
    background: var(--amber);
}

.parcours-app {
    min-height: 0;
    margin-bottom: 0;
}

.parcours-app__start,
.parcours-chapters {
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 14px;
    overflow: hidden;
}

.parcours-app__intro {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 14px;
    padding: clamp(16px, 2vw, 22px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 253, 248, 0.82);
    box-shadow: 0 20px 58px rgba(42, 54, 72, 0.11);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.parcours-app__intro h2 {
    margin: 0 0 8px;
    color: var(--night);
    font-size: clamp(30px, 4vw, 50px);
    line-height: 0.98;
}

.parcours-app__intro p:not(.tool-card__label) {
    max-width: 760px;
    margin: 0;
    color: #344255;
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.35;
}

.parcours-app__intro--compact {
    align-items: center;
}

.parcours-app__intro button,
.parcours-app__picker--summary button {
    align-self: center;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid rgba(198, 99, 47, 0.28);
    border-radius: 8px;
    color: var(--amber-dark);
    background: rgba(255, 255, 255, 0.72);
    font-weight: 900;
    cursor: pointer;
}

.parcours-app__intro button:hover,
.parcours-app__intro button:focus-visible,
.parcours-app__picker--summary button:hover,
.parcours-app__picker--summary button:focus-visible {
    color: var(--white);
    background: var(--amber);
}

.parcours-class-grid,
.parcours-chapter-grid {
    display: grid;
    gap: 12px;
    overflow: hidden;
}

.parcours-class-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    grid-auto-rows: minmax(88px, 1fr);
}

.parcours-chapter-grid {
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    grid-auto-rows: minmax(66px, 1fr);
}

.parcours-class-grid button,
.parcours-chapter-grid button {
    min-height: 0;
    display: grid;
    align-content: end;
    gap: 8px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--night);
    background:
        radial-gradient(circle at 82% 18%, rgba(47, 143, 157, 0.18), transparent 32%),
        rgba(255, 253, 248, 0.84);
    box-shadow: 0 18px 48px rgba(42, 54, 72, 0.1);
    text-align: left;
    cursor: pointer;
}

.parcours-class-grid button:hover,
.parcours-class-grid button:focus-visible,
.parcours-chapter-grid button:hover,
.parcours-chapter-grid button:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(198, 99, 47, 0.38);
    box-shadow: 0 24px 62px rgba(42, 54, 72, 0.15);
}

.parcours-class-grid span,
.parcours-chapter-grid span,
.parcours-class-grid small,
.parcours-chapter-grid small,
.parcours-player-context span,
.parcours-player-context small {
    color: #556277;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.parcours-class-grid strong {
    font-size: clamp(30px, 4.5vw, 50px);
    line-height: 0.95;
}

.parcours-chapter-grid strong {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: clamp(14px, 1.45vw, 18px);
    line-height: 1.08;
}

.parcours-app__shell {
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
    gap: 14px;
    overflow: hidden;
}

.parcours-app__picker,
.parcours-player {
    min-height: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 253, 248, 0.82);
    box-shadow: 0 20px 58px rgba(42, 54, 72, 0.11);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.parcours-app__picker {
    display: grid;
    grid-template-rows: auto auto auto minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    overflow: hidden;
}

.parcours-app__picker--summary {
    grid-template-rows: auto minmax(0, 1fr) auto auto;
}

.parcours-app__device {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--night);
    background: rgba(245, 195, 106, 0.34);
}

.parcours-app__device span,
.parcours-app__picker label,
.parcours-step__count {
    color: #556277;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.parcours-app__device strong {
    font-size: 20px;
    letter-spacing: 0.04em;
}

.parcours-app__picker label {
    display: grid;
    gap: 6px;
}

.parcours-app__picker select,
.parcours-answer-field input {
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(42, 54, 72, 0.18);
    border-radius: 8px;
    color: var(--night);
    background: rgba(255, 255, 255, 0.84);
    font: inherit;
    font-weight: 760;
}

.parcours-app__picker select {
    min-height: 42px;
    padding: 8px 10px;
}

.parcours-levels {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.parcours-levels button,
.parcours-player__footer button {
    min-height: 38px;
    border: 1px solid rgba(198, 99, 47, 0.28);
    border-radius: 8px;
    color: var(--amber-dark);
    background: rgba(255, 255, 255, 0.72);
    font-weight: 900;
    cursor: pointer;
}

.parcours-levels button {
    padding: 6px 10px;
}

.parcours-levels button[aria-pressed="true"],
.parcours-player__footer button:not(:disabled):hover,
.parcours-player__footer button:not(:disabled):focus-visible {
    color: var(--white);
    background: var(--amber);
}

.parcours-player-context {
    display: grid;
    align-content: center;
    gap: 8px;
    min-height: 0;
    padding: 14px;
    border: 1px solid rgba(42, 54, 72, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.62);
}

.parcours-player-context strong {
    color: var(--night);
    font-size: clamp(20px, 2.6vw, 30px);
    line-height: 1;
}

.parcours-player {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    overflow: hidden;
}

.parcours-player__header,
.parcours-player__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(42, 54, 72, 0.12);
}

.parcours-player__header h2 {
    margin: 4px 0 0;
    color: var(--night);
    font-size: clamp(24px, 3.4vw, 42px);
    line-height: 1;
}

.parcours-player__header strong {
    flex: 0 0 auto;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--green);
    background: rgba(97, 124, 70, 0.12);
    font-size: 13px;
}

.parcours-step-frame {
    min-height: 0;
    display: grid;
    align-items: stretch;
    padding: clamp(16px, 3vw, 28px);
    overflow: hidden;
}

.parcours-step {
    min-height: 0;
    display: grid;
    align-content: center;
    gap: clamp(12px, 2dvh, 18px);
    max-width: 820px;
}

.parcours-step h3 {
    margin: 0;
    color: var(--night);
    font-size: clamp(28px, 4.2vw, 54px);
    line-height: 0.98;
}

.parcours-step--ranking {
    align-content: start;
    gap: 7px;
    max-width: 100%;
}

.parcours-step--pollpie {
    gap: 6px;
}

.parcours-step--matchpairs,
.parcours-step--categorize,
.parcours-step--fillblank,
.parcours-step--estimate,
.parcours-step--scale,
.parcours-step--pollsingle,
.parcours-step--pollmultiple,
.parcours-step--pollpie,
.parcours-step--pollbars,
.parcours-step--wordcloud,
.parcours-step--bucketsort,
.parcours-step--allocation,
.parcours-step--letters,
.parcours-step--countdown,
.parcours-step--hotspot,
.parcours-step--coordinates,
.parcours-step--matrix {
    align-content: start;
    gap: 8px;
    max-width: 100%;
}

.parcours-step--ranking h3,
.parcours-step--matchpairs h3,
.parcours-step--categorize h3,
.parcours-step--fillblank h3,
.parcours-step--estimate h3,
.parcours-step--scale h3,
.parcours-step--pollsingle h3,
.parcours-step--pollmultiple h3,
.parcours-step--pollpie h3,
.parcours-step--pollbars h3,
.parcours-step--wordcloud h3,
.parcours-step--bucketsort h3,
.parcours-step--allocation h3,
.parcours-step--letters h3,
.parcours-step--countdown h3,
.parcours-step--hotspot h3,
.parcours-step--coordinates h3,
.parcours-step--matrix h3,
.parcours-step--longtext h3,
.parcours-step--code h3 {
    font-size: clamp(24px, 3vw, 36px);
}

.parcours-step--pollpie h3 {
    font-size: clamp(21px, 2.4vw, 28px);
}

.parcours-step--pollpie .parcours-step__count {
    font-size: 10px;
}

.parcours-step--pollpie .parcours-step__text {
    font-size: clamp(14px, 1.3vw, 16px);
}

.parcours-step--ranking .parcours-step__text,
.parcours-step--matchpairs .parcours-step__text,
.parcours-step--categorize .parcours-step__text,
.parcours-step--fillblank .parcours-step__text,
.parcours-step--estimate .parcours-step__text,
.parcours-step--scale .parcours-step__text,
.parcours-step--pollsingle .parcours-step__text,
.parcours-step--pollmultiple .parcours-step__text,
.parcours-step--pollpie .parcours-step__text,
.parcours-step--pollbars .parcours-step__text,
.parcours-step--wordcloud .parcours-step__text,
.parcours-step--bucketsort .parcours-step__text,
.parcours-step--allocation .parcours-step__text,
.parcours-step--letters .parcours-step__text,
.parcours-step--countdown .parcours-step__text,
.parcours-step--hotspot .parcours-step__text,
.parcours-step--coordinates .parcours-step__text,
.parcours-step--matrix .parcours-step__text,
.parcours-step--longtext .parcours-step__text,
.parcours-step--code .parcours-step__text {
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.2;
}

.parcours-step__text,
.parcours-step li {
    margin: 0;
    color: #344255;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.32;
}

.parcours-step ul {
    display: grid;
    gap: 9px;
    margin: 0;
    padding-left: 1.2em;
}

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

.parcours-content-block {
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid rgba(42, 54, 72, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.62);
}

.parcours-content-block strong,
.parcours-content-block span {
    display: block;
    margin-bottom: 5px;
    color: #556277;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.parcours-content-block p,
.parcours-content-block li,
.parcours-content-block td,
.parcours-content-block th {
    margin: 0;
    color: #344255;
    font-size: 13px;
    line-height: 1.24;
}

.parcours-content-block--definition {
    border-color: rgba(47, 143, 157, 0.24);
    background: rgba(47, 143, 157, 0.11);
}

.parcours-content-block--media {
    border-style: dashed;
    background:
        radial-gradient(circle at 90% 12%, rgba(245, 195, 106, 0.24), transparent 34%),
        rgba(255, 255, 255, 0.58);
}

.parcours-content-block--formula code,
.parcours-content-block--code pre {
    display: block;
    margin: 0;
    overflow: hidden;
    color: var(--night);
    font: 13px/1.3 Consolas, Monaco, monospace;
    white-space: pre-wrap;
}

.parcours-content-block--formula code {
    padding: 8px 9px;
    border-radius: 7px;
    background: rgba(245, 195, 106, 0.24);
}

.parcours-content-block--code pre {
    padding: 9px;
    border-radius: 7px;
    background: rgba(16, 23, 38, 0.08);
}

.parcours-content-block--table {
    grid-column: 1 / -1;
}

.parcours-content-block table {
    width: 100%;
    border-collapse: collapse;
}

.parcours-content-block th,
.parcours-content-block td {
    padding: 5px 6px;
    border-bottom: 1px solid rgba(42, 54, 72, 0.1);
    text-align: left;
}

.parcours-content-block--cards {
    grid-column: 1 / -1;
}

.parcours-content-block--cards > div {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.parcours-content-block--cards article {
    padding: 8px;
    border-radius: 7px;
    background: rgba(244, 239, 230, 0.7);
}

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

.parcours-answer-list label {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    border: 1px solid rgba(42, 54, 72, 0.16);
    border-radius: 8px;
    color: var(--night);
    background: rgba(255, 255, 255, 0.74);
    font-weight: 850;
}

.parcours-answer-list label:has(input:checked) {
    border-color: rgba(47, 143, 157, 0.45);
    background: rgba(47, 143, 157, 0.16);
}

.parcours-ranking {
    display: grid;
    gap: 8px;
}

.parcours-ranking__item {
    min-height: 38px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border: 1px solid rgba(42, 54, 72, 0.16);
    border-radius: 8px;
    color: var(--night);
    background: rgba(255, 255, 255, 0.76);
    cursor: grab;
}

.parcours-ranking__item:active {
    cursor: grabbing;
}

.parcours-ranking__item.is-dragging {
    border-color: rgba(198, 99, 47, 0.44);
    background: rgba(245, 195, 106, 0.28);
    opacity: 0.78;
}

.parcours-ranking__item:focus-visible {
    outline: 3px solid rgba(47, 143, 157, 0.28);
    outline-offset: 2px;
}

.parcours-ranking__item > span {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    color: var(--amber-dark);
    background: rgba(245, 195, 106, 0.32);
    font-size: 12px;
    font-weight: 900;
}

.parcours-ranking__item strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.parcours-ranking__item div {
    display: flex;
    gap: 5px;
}

.parcours-ranking__item button {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(198, 99, 47, 0.24);
    border-radius: 7px;
    color: var(--amber-dark);
    background: rgba(255, 255, 255, 0.74);
    font-weight: 900;
    cursor: pointer;
}

.parcours-ranking__item button:hover,
.parcours-ranking__item button:focus-visible {
    color: var(--white);
    background: var(--amber);
}

.parcours-poll,
.parcours-match,
.parcours-categorize,
.parcours-fillblank,
.parcours-scale,
.parcours-poll-pie,
.parcours-poll-bars,
.parcours-word-cloud,
.parcours-bucket-sort,
.parcours-allocation,
.parcours-letters,
.parcours-countdown,
.parcours-hotspot,
.parcours-coordinate,
.parcours-matrix {
    min-width: 0;
}

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

.parcours-poll label {
    position: relative;
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    padding: 9px 10px;
    border: 1px solid rgba(42, 54, 72, 0.16);
    border-radius: 8px;
    color: var(--night);
    background: rgba(255, 255, 255, 0.74);
    font-weight: 850;
}

.parcours-poll label > * {
    position: relative;
    z-index: 1;
}

.parcours-poll b {
    position: absolute;
    inset: auto auto 0 0;
    z-index: 0;
    width: var(--poll-width);
    height: 5px;
    background: rgba(47, 143, 157, 0.36);
}

.parcours-poll label:has(input:checked) {
    border-color: rgba(47, 143, 157, 0.48);
    background: rgba(47, 143, 157, 0.14);
}

.parcours-poll-pie {
    display: grid;
    grid-template-columns: minmax(106px, 0.3fr) minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.parcours-poll-pie__chart {
    width: min(96px, 18vw);
    aspect-ratio: 1;
    border: 6px solid rgba(255, 255, 255, 0.8);
    border-radius: 999px;
    background: conic-gradient(var(--pie-gradient));
    box-shadow: 0 16px 28px rgba(16, 23, 38, 0.12);
}

.parcours-poll-pie__choices {
    display: grid;
    gap: 5px;
}

.parcours-poll-pie__choices label {
    min-height: 28px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border: 1px solid rgba(42, 54, 72, 0.16);
    border-radius: 8px;
    color: var(--night);
    background: rgba(255, 255, 255, 0.74);
    font-size: 14px;
    font-weight: 850;
    line-height: 1.1;
}

.parcours-poll-pie__choices label:has(input:checked) {
    border-color: rgba(47, 143, 157, 0.48);
    background: rgba(47, 143, 157, 0.14);
}

.parcours-poll-pie__choices input {
    position: absolute;
    opacity: 0;
}

.parcours-poll-pie__choices i {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: var(--pie-color);
}

.parcours-poll-pie__choices span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.parcours-poll-pie__choices small {
    color: #556277;
    font-size: 11px;
    font-weight: 900;
}

.parcours-step--pollpie .parcours-feedback {
    padding: 6px 9px;
    font-size: 13px;
    line-height: 1.15;
}

.parcours-poll-bars {
    display: grid;
    gap: 8px;
}

.parcours-poll-bars label {
    position: relative;
    min-height: 42px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    overflow: hidden;
    padding: 9px 10px;
    border: 1px solid rgba(42, 54, 72, 0.16);
    border-radius: 8px;
    color: var(--night);
    background: rgba(255, 255, 255, 0.74);
    font-weight: 850;
}

.parcours-poll-bars label > * {
    position: relative;
    z-index: 1;
}

.parcours-poll-bars span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.parcours-poll-bars b {
    position: absolute;
    inset: 6px auto 6px 34px;
    z-index: 0;
    width: var(--bar-width);
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(47, 143, 157, 0.22), rgba(245, 195, 106, 0.34));
}

.parcours-poll-bars label:has(input:checked) {
    border-color: rgba(47, 143, 157, 0.5);
    background: rgba(47, 143, 157, 0.14);
}

.parcours-match {
    display: grid;
    gap: 8px;
}

.parcours-match label,
.parcours-categorize label {
    display: grid;
    grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.parcours-match span,
.parcours-categorize span,
.parcours-matrix th {
    color: #556277;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.parcours-match select,
.parcours-categorize select,
.parcours-fillblank input {
    min-height: 38px;
    padding: 7px 9px;
    border: 1px solid rgba(42, 54, 72, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
}

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

.parcours-categorize label {
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid rgba(42, 54, 72, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.68);
}

.parcours-fillblank {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--night);
    font-size: clamp(16px, 1.8vw, 22px);
    font-weight: 850;
}

.parcours-fillblank input {
    width: min(180px, 42vw);
    font: inherit;
}

.parcours-scale {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(42, 54, 72, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.66);
}

.parcours-scale div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #556277;
    font-weight: 850;
}

.parcours-scale output {
    min-width: 54px;
    display: inline-grid;
    place-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--white);
    background: var(--amber);
    font-size: 18px;
    font-weight: 900;
}

.parcours-scale input {
    width: 100%;
    accent-color: var(--amber);
}

.parcours-word-cloud {
    min-height: 92px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 12px;
    padding: 14px;
    border: 1px dashed rgba(47, 143, 157, 0.32);
    border-radius: 8px;
    background: rgba(47, 143, 157, 0.08);
}

.parcours-word-cloud span {
    color: var(--night);
    font-size: var(--word-size);
    font-weight: 900;
}

.parcours-bucket-sort {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.parcours-bucket-sort fieldset {
    min-width: 0;
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 10px;
    border: 1px solid rgba(42, 54, 72, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.68);
}

.parcours-bucket-sort legend {
    max-width: 100%;
    padding: 0;
    color: var(--night);
    font-size: 14px;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.parcours-bucket-sort fieldset > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.parcours-bucket-sort label {
    min-width: 0;
    min-height: 34px;
    display: grid;
}

.parcours-bucket-sort input {
    position: absolute;
    opacity: 0;
}

.parcours-bucket-sort span {
    display: grid;
    place-items: center;
    padding: 7px 8px;
    border: 1px solid rgba(42, 54, 72, 0.16);
    border-radius: 7px;
    color: #556277;
    background: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    font-weight: 900;
    text-align: center;
}

.parcours-bucket-sort input:checked + span {
    color: var(--night);
    border-color: rgba(47, 143, 157, 0.48);
    background: rgba(47, 143, 157, 0.16);
}

.parcours-allocation {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid rgba(42, 54, 72, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.66);
}

.parcours-allocation__head,
.parcours-allocation label {
    display: grid;
    grid-template-columns: minmax(116px, 0.55fr) minmax(0, 1fr) 52px;
    align-items: center;
    gap: 10px;
}

.parcours-allocation__head {
    grid-template-columns: minmax(0, 1fr) auto;
    color: #556277;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.parcours-allocation__head strong {
    min-width: 82px;
    display: inline-grid;
    place-items: center;
    padding: 7px 11px;
    border-radius: 999px;
    color: var(--white);
    background: #2f8f9d;
    font-size: 15px;
    letter-spacing: 0;
    text-transform: none;
}

.parcours-allocation label span {
    min-width: 0;
    color: var(--night);
    font-size: 13px;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.parcours-allocation input {
    width: 100%;
    accent-color: var(--amber);
}

.parcours-allocation output {
    display: inline-grid;
    place-items: center;
    min-height: 30px;
    border-radius: 7px;
    color: var(--amber-dark);
    background: rgba(245, 195, 106, 0.24);
    font-size: 13px;
    font-weight: 900;
}

.parcours-letters,
.parcours-countdown {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(42, 54, 72, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.66);
}

.parcours-letters__tiles,
.parcours-countdown__numbers,
.parcours-letters__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.parcours-letters__tiles button,
.parcours-countdown__numbers span,
.parcours-letters__actions button {
    min-width: 38px;
    min-height: 38px;
    display: inline-grid;
    place-items: center;
    padding: 7px 10px;
    border: 1px solid rgba(42, 54, 72, 0.16);
    border-radius: 8px;
    color: var(--night);
    background: rgba(255, 255, 255, 0.82);
    font-weight: 900;
}

.parcours-letters__tiles button {
    font-size: 20px;
    text-transform: uppercase;
}

.parcours-letters__tiles button:hover,
.parcours-letters__tiles button:focus-visible,
.parcours-letters__actions button:hover,
.parcours-letters__actions button:focus-visible {
    color: var(--white);
    border-color: transparent;
    background: var(--amber);
}

.parcours-countdown__head {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 10px;
}

.parcours-countdown__head span {
    color: #556277;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.parcours-countdown__head strong {
    justify-self: start;
    min-width: 74px;
    display: inline-grid;
    place-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--white);
    background: #2f8f9d;
    font-size: 22px;
    font-weight: 950;
}

.parcours-countdown__numbers span {
    background: rgba(245, 195, 106, 0.22);
}

.parcours-hotspot__stage {
    position: relative;
    width: 100%;
    min-height: 170px;
    overflow: hidden;
    border: 1px solid rgba(42, 54, 72, 0.16);
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(47, 143, 157, 0.15), rgba(245, 195, 106, 0.2)),
        rgba(255, 255, 255, 0.74);
    cursor: crosshair;
}

.parcours-hotspot__stage::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 11%;
    left: 11%;
    height: 3px;
    background: rgba(42, 54, 72, 0.22);
}

.parcours-hotspot__zone,
.parcours-hotspot__marker {
    position: absolute;
    transform: translate(-50%, -50%);
}

.parcours-hotspot__zone {
    z-index: 1;
    min-width: 82px;
    padding: 8px 10px;
    border: 1px solid rgba(42, 54, 72, 0.14);
    border-radius: 999px;
    color: var(--night);
    background: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    font-weight: 900;
    pointer-events: none;
}

.parcours-hotspot__marker {
    z-index: 2;
    width: 20px;
    height: 20px;
    border: 4px solid var(--amber);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 0 0 4px rgba(198, 99, 47, 0.18);
    pointer-events: none;
}

.parcours-coordinate {
    display: grid;
    gap: 8px;
}

.parcours-coordinate__stage {
    position: relative;
    width: 100%;
    min-height: 190px;
    overflow: hidden;
    border: 1px solid rgba(42, 54, 72, 0.16);
    border-radius: 8px;
    background:
        linear-gradient(rgba(42, 54, 72, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(42, 54, 72, 0.08) 1px, transparent 1px),
        rgba(255, 255, 255, 0.76);
    background-size: 10% 10%;
    cursor: crosshair;
}

.parcours-coordinate__axis {
    position: absolute;
    background: rgba(42, 54, 72, 0.28);
    pointer-events: none;
}

.parcours-coordinate__axis--x {
    right: 0;
    bottom: 50%;
    left: 0;
    height: 2px;
}

.parcours-coordinate__axis--y {
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
}

.parcours-coordinate__marker {
    position: absolute;
    z-index: 2;
    width: 22px;
    height: 22px;
    border: 4px solid var(--amber);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 0 0 4px rgba(47, 143, 157, 0.18);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.parcours-coordinate p {
    margin: 0;
    color: #556277;
    font-size: 12px;
    font-weight: 900;
}

.parcours-matrix {
    overflow: visible;
}

.parcours-matrix table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 4px;
    table-layout: fixed;
}

.parcours-matrix th,
.parcours-matrix td {
    padding: 4px 6px;
    text-align: center;
}

.parcours-matrix tbody th {
    width: 26%;
    text-align: left;
}

.parcours-matrix label {
    display: inline-grid;
    place-items: center;
}

.parcours-matrix input {
    position: absolute;
    opacity: 0;
}

.parcours-matrix label span {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(42, 54, 72, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
}

.parcours-matrix input:checked + span {
    border-color: var(--amber);
    background: radial-gradient(circle, var(--amber) 0 38%, rgba(255, 255, 255, 0.9) 42%);
}

.parcours-answer-field {
    display: grid;
    gap: 7px;
    color: #556277;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.parcours-answer-field input,
.parcours-answer-field textarea {
    min-height: 48px;
    padding: 10px 12px;
    font-size: 18px;
    text-transform: none;
    letter-spacing: 0;
}

.parcours-answer-field textarea {
    width: 100%;
    min-height: 112px;
    resize: vertical;
    border: 1px solid rgba(42, 54, 72, 0.16);
    border-radius: 8px;
    color: var(--night);
    background: rgba(255, 255, 255, 0.86);
    font: inherit;
    line-height: 1.35;
}

.parcours-answer-field--code textarea {
    font-family: Consolas, "Liberation Mono", monospace;
    font-size: 15px;
    line-height: 1.45;
}

.parcours-feedback {
    margin: 0;
    padding: 10px 12px;
    border-radius: 8px;
    color: #23472e;
    background: rgba(97, 124, 70, 0.16);
    font-weight: 850;
}

.parcours-feedback[data-state="review"] {
    color: #7a2d17;
    background: rgba(198, 99, 47, 0.16);
}

.parcours-player__footer {
    border-top: 1px solid rgba(42, 54, 72, 0.12);
    border-bottom: 0;
}

.parcours-player__footer button {
    min-width: 112px;
    padding: 8px 12px;
}

.parcours-player__footer button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.parcours-resources {
    padding: 0 18px 16px;
}

.parcours-resources summary {
    cursor: pointer;
    color: var(--amber-dark);
    font-weight: 900;
}

.parcours-resources div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 10px;
}

.parcours-resources a {
    padding: 7px 10px;
    border: 1px solid rgba(198, 99, 47, 0.24);
    border-radius: 8px;
    color: var(--amber-dark);
    background: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 850;
    text-decoration: none;
}

.tool-workbench {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: clamp(18px, 3vw, 28px);
    align-items: start;
}

.control-panel,
.result-panel,
.tool-note,
.chat-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--glass-panel-strong);
    box-shadow: 0 22px 68px rgba(42, 54, 72, 0.13);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.control-panel {
    display: grid;
    gap: 14px;
    padding: 20px;
}

.control-panel label,
.chat-form label,
.chat-room-form label {
    display: grid;
    gap: 7px;
    color: var(--night);
    font-weight: 800;
}

.control-panel input,
.control-panel select,
.control-panel textarea,
.chat-form input,
.chat-form textarea,
.chat-room-form input,
.chat-room-form select {
    width: 100%;
    border: 1px solid #d9ccba;
    border-radius: 7px;
    padding: 10px 11px;
    color: var(--ink);
    background: var(--white);
    font: inherit;
}

.input-area {
    min-height: 190px;
    resize: vertical;
}

.field-help {
    margin: -5px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.result-panel {
    min-width: 0;
    padding: 20px;
}

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

.stat-card {
    min-height: 74px;
    padding: 12px;
    border-radius: 8px;
    background: rgba(244, 239, 230, 0.66);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.stat-card span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.stat-card strong {
    display: block;
    margin-top: 8px;
    color: var(--night);
    font-size: 18px;
    overflow-wrap: anywhere;
}

.output-box {
    width: 100%;
    min-height: 360px;
    border: 1px solid #d9ccba;
    border-radius: 8px;
    padding: 14px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.88);
    font: 14px/1.45 Consolas, Monaco, monospace;
    resize: vertical;
}

.formula-box {
    display: grid;
    gap: 7px;
    margin-bottom: 16px;
}

.formula-box span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.formula-box code {
    display: block;
    overflow-x: clip;
    overflow-wrap: anywhere;
    padding: 14px;
    border-radius: 8px;
    color: var(--night);
    background: rgba(244, 239, 230, 0.72);
    font: 15px/1.4 Consolas, Monaco, monospace;
    white-space: pre-wrap;
}

.math-display {
    min-height: 86px;
    overflow-x: clip;
    overflow-wrap: anywhere;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--night);
    background: rgba(255, 255, 255, 0.9);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(24px, 4vw, 42px);
    line-height: 1.35;
    white-space: normal;
}

.math-display--compact {
    min-height: 0;
    padding: 16px 18px;
    font-size: clamp(18px, 2.5vw, 28px);
}

.math-display math {
    display: block;
    max-width: 100%;
    min-width: 0;
    font-family: Cambria Math, STIX Two Math, Georgia, 'Times New Roman', serif;
    math-style: normal;
}

.math-display mtable {
    column-gap: 0.32em;
    row-gap: 0.12em;
}

.math-display mtd {
    padding: 0 0.12em;
    text-align: left;
}

.math-display mfrac {
    font-size: 0.92em;
}

.copy-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
}

.copy-row code {
    margin: 0;
}

.chart-canvas {
    width: 100%;
    height: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.galton-workbench {
    grid-template-columns: 280px minmax(0, 1fr);
}

.checkbox-field {
    display: flex;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 8px;
}

.checkbox-field input {
    width: auto;
}

.galton-panel {
    display: grid;
    gap: 16px;
}

.galton-canvas {
    width: 100%;
    min-height: 560px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.galton-counts {
    display: grid;
    gap: 6px;
    max-height: 260px;
    overflow: auto;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.galton-counts__header,
.galton-counts__row {
    display: grid;
    grid-template-columns: 54px minmax(118px, 1.2fr) 76px 88px 88px minmax(220px, 1.4fr);
    gap: 10px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 7px;
}

.galton-counts__header {
    position: sticky;
    top: 0;
    z-index: 1;
    color: var(--muted);
    background: rgba(244, 239, 230, 0.78);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.galton-counts__row {
    border-left: 5px solid var(--galton-error-color, rgba(47, 143, 157, 0.72));
    background:
        linear-gradient(90deg, var(--galton-error-bg, rgba(255, 253, 248, 0.72)), rgba(255, 253, 248, 0.78) 58%);
}

.galton-counts__row span {
    color: var(--muted);
}

.galton-counts__row strong {
    color: var(--night);
}

.galton-error-chip {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 24px;
    padding: 3px 8px;
    border: 1px solid color-mix(in srgb, var(--chip-color, #2f8f9d), transparent 50%);
    border-radius: 999px;
    color: var(--night);
    background: color-mix(in srgb, var(--chip-color, #2f8f9d), white 86%);
    font-weight: 800;
}

.statistical-life-page {
    background: #080d1d;
}

.stat-life-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(16px, 3vw, 26px);
    align-items: start;
}

.stat-life-controls {
    order: 2;
    grid-template-columns: repeat(4, minmax(170px, 1fr));
    gap: 13px 14px;
    padding: clamp(16px, 2.2vw, 22px);
}

.stat-life-controls .checkbox-field {
    align-self: end;
    min-height: 42px;
}

.stat-life-controls .coffre-actions,
.stat-life-laws {
    grid-column: 1 / -1;
}

.stat-life-config-section {
    grid-column: 1 / -1;
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px solid rgba(16, 23, 38, 0.13);
    color: var(--amber-dark);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.stat-life-config-section:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.stat-life-controls input[type="range"] {
    accent-color: #8ceecf;
}

.stat-life-control-heading {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-width: 0;
    padding-bottom: 2px;
    border-bottom: 1px dashed rgba(47, 143, 157, 0.4);
    color: var(--night);
    outline: none;
    cursor: default;
    transition: border-color 0.18s ease, color 0.18s ease, text-shadow 0.18s ease;
}

.stat-life-control-heading > span {
    min-width: 0;
}

.stat-life-control-heading:hover,
.stat-life-control-heading:focus-visible {
    border-color: rgba(198, 99, 47, 0.7);
    color: var(--amber-dark);
    text-shadow: 0 0 16px rgba(255, 255, 255, 0.34);
}

.stat-life-help-tooltip {
    position: fixed;
    z-index: 70;
    width: min(310px, calc(100vw - 28px));
    padding: 12px 13px;
    border: 1px solid rgba(140, 238, 207, 0.24);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.88);
    background:
        linear-gradient(180deg, rgba(11, 22, 40, 0.96), rgba(7, 12, 27, 0.92));
    box-shadow: 0 22px 58px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px) saturate(1.12);
    -webkit-backdrop-filter: blur(16px) saturate(1.12);
    pointer-events: none;
    font-size: 12px;
    line-height: 1.38;
}

body.starry-page > .stat-life-help-tooltip {
    position: fixed;
    z-index: 70;
}

.stat-life-help-tooltip[hidden] {
    display: none;
}

.stat-life-help-tooltip strong {
    display: block;
    margin-bottom: 5px;
    color: #8ceecf;
    font-size: 13px;
}

.stat-life-help-tooltip p,
.stat-life-help-tooltip dl {
    margin: 0;
}

.stat-life-help-tooltip p {
    color: rgba(255, 255, 255, 0.78);
}

.stat-life-help-tooltip dl {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 5px 9px;
    margin-top: 9px;
}

.stat-life-help-tooltip dt {
    color: rgba(198, 99, 47, 0.96);
    font-weight: 900;
}

.stat-life-help-tooltip dd {
    min-width: 0;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
}

.stat-life-help-tooltip .stat-life-math {
    display: inline-block;
    max-width: 100%;
    padding: 3px 6px;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.08);
    font: 13px/1.35 "Cambria Math", "STIX Two Math", Georgia, serif;
    white-space: normal;
    overflow-wrap: anywhere;
}

.stat-life-help-tooltip .stat-life-math sub,
.stat-life-help-tooltip .stat-life-math sup {
    font-size: 0.72em;
    line-height: 0;
}

.stat-life-laws {
    display: grid;
    gap: 10px;
}

.stat-life-laws summary {
    cursor: pointer;
}

.stat-life-laws textarea {
    width: 100%;
    min-height: 220px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(5, 10, 22, 0.54);
    resize: vertical;
    font: 12px/1.45 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.stat-life-laws output {
    min-height: 18px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
}

.stat-life-laws output[data-state="error"] {
    color: #ffb8b8;
}

.stat-life-laws output[data-state="ok"] {
    color: #bbffd8;
}

.stat-life-panel {
    order: 1;
    display: grid;
    gap: 14px;
    padding: clamp(12px, 2vw, 18px);
}

.stat-life-canvas {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: clamp(380px, 58vh, 720px);
    max-height: 760px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 8px;
    background: #07101f;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 24px 70px rgba(0, 0, 0, 0.16);
}

.life-zone-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
}

.life-zone-control {
    --life-zone-color: #54aaff;
    --life-zone-glow: rgba(84, 170, 255, 0.72);
    position: relative;
    display: inline-flex;
    border-radius: 999px;
    cursor: pointer;
}

.life-zone-control input[type="color"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.life-zone-control--fertile {
    --life-zone-color: #69f6a0;
    --life-zone-glow: rgba(105, 246, 160, 0.72);
}

.life-zone-control--risk {
    --life-zone-color: #ff5860;
    --life-zone-glow: rgba(255, 88, 96, 0.72);
}

.life-zone-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 5px 9px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.78);
    background: rgba(8, 16, 32, 0.42);
    font-size: 12px;
    font-weight: 800;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.life-zone-control:hover .life-zone-pill,
.life-zone-control:focus-within .life-zone-pill {
    border-color: color-mix(in srgb, var(--life-zone-color), transparent 25%);
    background: rgba(8, 16, 32, 0.62);
    box-shadow: 0 0 18px color-mix(in srgb, var(--life-zone-color), transparent 72%);
}

.life-zone-color-chip .life-zone-pill {
    width: 34px;
    justify-content: center;
    padding-inline: 8px;
}

.life-zone-dot {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 50%;
    background: var(--life-zone-color);
    box-shadow: 0 0 12px var(--life-zone-glow);
}

.stat-life-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 0;
}

.stat-life-stats .life-stat {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(70px, auto);
    gap: 8px;
    align-items: center;
    min-height: 58px;
    padding: 10px 12px;
    background: rgba(8, 16, 32, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-life-stats .life-stat span,
.stat-life-stats .life-stat strong {
    margin: 0;
}

.stat-life-stats .life-stat span {
    color: rgba(255, 255, 255, 0.72);
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.2;
}

.stat-life-stats .life-stat code {
    padding: 3px 6px;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.08);
    font: 12px/1.2 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    white-space: nowrap;
}

.stat-life-stats .life-stat strong {
    justify-self: end;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.15;
    white-space: nowrap;
}

.coffre-page {
    background:
        radial-gradient(circle at 14% 12%, rgba(201, 74, 56, 0.11), transparent 27%),
        radial-gradient(circle at 86% 12%, rgba(47, 143, 157, 0.13), transparent 28%),
        linear-gradient(180deg, #fffdf8 0%, #eef5f6 100%);
}

.coffre-workbench {
    grid-template-columns: 280px minmax(0, 1fr);
}

.coffre-panel {
    display: grid;
    gap: 18px;
}

.coffre-screen {
    min-height: 178px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(16, 23, 38, 0.18);
    border-radius: 8px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 22px 52px rgba(42, 54, 72, 0.14);
    color: var(--white);
    background: #101010;
    transition: background-color 220ms ease, color 220ms ease;
}

.coffre-screen span {
    font-size: clamp(34px, 7vw, 70px);
    font-weight: 900;
    line-height: 1;
}

.coffre-readout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 8px;
    background: rgba(244, 239, 230, 0.72);
}

.coffre-readout span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.coffre-readout strong {
    color: var(--night);
    font-size: 24px;
}

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

.coffre-switch {
    min-height: 112px;
    border: 2px solid transparent;
    border-radius: 8px;
    color: var(--white);
    font: inherit;
    font-size: clamp(15px, 2.2vw, 20px);
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(16, 23, 38, 0.14);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.coffre-switch:hover {
    transform: translateY(-2px);
}

.coffre-switch.is-active {
    border-color: #f5c36a;
    box-shadow: 0 0 0 4px rgba(245, 195, 106, 0.26), 0 18px 34px rgba(16, 23, 38, 0.18);
}

.coffre-switch--red {
    background: #c94a38;
}

.coffre-switch--green {
    background: #617c46;
}

.coffre-switch--blue {
    background: #2f8f9d;
}

.coffre-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.coffre-result {
    min-height: 32px;
    margin: 0;
    color: var(--muted);
    font-size: 20px;
    font-weight: 900;
}

.coffre-result.is-success {
    color: var(--green);
}

.coffre-result.is-error {
    color: #c94a38;
}

.seance-page {
    background:
        radial-gradient(circle at 14% 12%, rgba(47, 143, 157, 0.14), transparent 28%),
        radial-gradient(circle at 86% 14%, rgba(245, 195, 106, 0.12), transparent 26%),
        linear-gradient(180deg, #f8fbff 0%, #fff8ef 50%, #eef5f6 100%);
}

.seance-workbench {
    grid-template-columns: minmax(280px, 0.74fr) minmax(0, 1.26fr);
}

.seance-brief h2 {
    margin: 0 0 10px;
    color: var(--night);
    font-size: 30px;
    line-height: 1.05;
}

.seance-brief p {
    margin: 0;
    color: var(--muted);
}

.seance-meta {
    display: grid;
    gap: 10px;
    margin: 0;
}

.seance-meta div,
.seance-note {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(244, 239, 230, 0.58);
}

.seance-meta dt,
.seance-note h3 {
    margin: 0 0 5px;
    color: var(--amber-dark);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.seance-meta dd {
    margin: 0;
    color: var(--night);
    font-weight: 800;
}

.seance-lab {
    display: grid;
    gap: 18px;
}

.seance-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.seance-steps li {
    min-height: 46px;
    display: grid;
    place-items: center;
    padding: 8px;
    border-radius: 8px;
    color: var(--muted);
    background: rgba(244, 239, 230, 0.68);
    font-size: 13px;
    font-weight: 900;
    text-align: center;
}

.seance-steps li[data-state="active"] {
    color: #101726;
    background: #f5c36a;
}

.seance-steps li[data-state="done"] {
    color: var(--white);
    background: var(--green);
}

.seance-challenge {
    display: none;
    gap: 16px;
}

.seance-challenge.is-active {
    display: grid;
}

.seance-challenge h2 {
    margin: 0;
    color: var(--night);
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1;
}

.seance-challenge > p {
    margin: 0;
    color: var(--muted);
}

.seance-readout,
.seance-stats {
    display: grid;
    gap: 10px;
}

.seance-readout {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 14px 16px;
    border-radius: 8px;
    background: rgba(244, 239, 230, 0.72);
}

.seance-readout span,
.seance-stats span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.seance-readout strong,
.seance-stats strong {
    color: var(--night);
    font-size: 22px;
}

.seance-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.seance-feedback {
    min-height: 30px;
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    font-weight: 900;
}

.seance-feedback[data-state="success"] {
    color: var(--green);
}

.seance-feedback[data-state="error"] {
    color: #c94a38;
}

.seance-feedback[data-state="hint"] {
    color: var(--cyan);
}

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

.seance-color-choice {
    min-height: 92px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    padding: 10px;
    border: 2px solid transparent;
    border-radius: 8px;
    color: var(--night);
    background: rgba(255, 255, 255, 0.74);
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.seance-color-choice span {
    width: 22px;
    height: 22px;
    border: 1px solid rgba(16, 23, 38, 0.18);
    border-radius: 50%;
    background: var(--choice-color);
    box-shadow: 0 0 16px color-mix(in srgb, var(--choice-color), transparent 52%);
}

.seance-color-choice strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.seance-color-choice small {
    color: var(--muted);
    font-weight: 900;
}

.seance-color-choice.is-active {
    border-color: #f5c36a;
    box-shadow: 0 0 0 4px rgba(245, 195, 106, 0.22);
}

.seance-mission-screen {
    min-height: 150px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(16, 23, 38, 0.18);
    border-radius: 8px;
    color: var(--white);
    background: #101010;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 22px 52px rgba(42, 54, 72, 0.14);
    transition: background-color 220ms ease, color 220ms ease;
}

.seance-mission-screen span {
    font-size: clamp(34px, 7vw, 64px);
    font-weight: 900;
    line-height: 1;
}

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

.seance-stats div {
    min-height: 74px;
    padding: 12px;
    border-radius: 8px;
    background: rgba(244, 239, 230, 0.66);
}

.education-page {
    background:
        radial-gradient(circle at 14% 12%, rgba(47, 143, 157, 0.12), transparent 28%),
        radial-gradient(circle at 86% 14%, rgba(245, 195, 106, 0.1), transparent 26%),
        linear-gradient(180deg, #f8fbff 0%, #fff8ef 50%, #eef5f6 100%);
}

.education-shell {
    width: min(1180px, calc(100% - clamp(36px, 7vw, 88px)));
    min-width: 0;
}

body.education-page {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

body[data-education-user="teacher"] .education-shell {
    width: min(1600px, calc(100vw - clamp(18px, 3.2vw, 48px)));
}

body.education-page .site-nav.space-nav {
    display: none;
}

body.education-page > .site-nav-reveal-zone {
    display: none;
}

body.education-page .site-nav.space-nav + .tool-shell.education-shell {
    padding-top: clamp(18px, 3.8dvh, 46px);
    padding-bottom: clamp(18px, 3.8dvh, 42px);
}

body.education-page > .tool-shell.education-shell {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    box-sizing: border-box;
    padding-top: clamp(12px, 2.8dvh, 30px) !important;
    padding-bottom: clamp(12px, 2.8dvh, 30px) !important;
}

body.education-page[data-education-user="teacher"] .site-nav.space-nav {
    display: none;
}

body.education-projecting {
    overflow: hidden;
    padding: 0;
}

body.education-projecting .site-nav,
body.education-projecting .education-header,
body.education-projecting .education-gate,
body.education-projecting .education-sidebar {
    display: none;
}

body.education-projecting .education-shell,
body.education-projecting .education-layout,
body.education-projecting .education-main {
    width: 100%;
    min-height: 100dvh;
    margin: 0;
    padding: 0;
}

body.education-projecting.tool-page,
body.education-projecting.starry-page {
    padding: 0 !important;
}

body.education-projecting .site-nav.space-nav + .tool-shell.education-shell {
    width: 100%;
    padding: 0 !important;
}

body.education-projecting .education-layout {
    display: block;
}

body.education-projecting .education-main {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.education-header {
    max-width: 980px;
    margin-bottom: clamp(14px, 2dvh, 24px);
}

.education-header h1 {
    overflow-wrap: anywhere;
    font-size: clamp(36px, min(6.1vw, 6.4dvh), 62px);
}

.education-header p {
    margin-bottom: 0;
}

body[data-education-user="teacher"] .education-header,
body[data-education-user="teacher"] .education-gate,
body[data-education-mode="training"] .education-header,
body[data-education-mode="training"] .education-gate {
    display: none;
}

body[data-education-user="teacher"] .site-nav.space-nav + .tool-shell.education-shell {
    padding-top: clamp(10px, 1.7dvh, 18px) !important;
    padding-bottom: clamp(10px, 1.7dvh, 18px) !important;
}

.education-gate,
.education-join-panel,
.education-layout {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.education-gate {
    position: relative;
    z-index: 24;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    margin-bottom: clamp(10px, 1.7dvh, 16px);
    padding: clamp(12px, min(2.2vw, 2.4dvh), 20px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.075);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(16px) saturate(1.1);
    -webkit-backdrop-filter: blur(16px) saturate(1.1);
}

.education-gate[hidden] {
    display: none;
}

.education-user {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 14px;
}

.education-user__avatar {
    width: clamp(46px, 5dvh, 54px);
    height: clamp(46px, 5dvh, 54px);
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    color: #101726;
    background: #f5c36a;
    font-weight: 900;
}

.education-user__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.education-user-avatar-preview {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 100%;
    height: 100%;
    line-height: 1;
}

.education-user-avatar-preview .education-avatar-head {
    font-size: 1.45rem;
}

.education-user-avatar-preview .education-avatar-hat {
    top: 0.1rem;
    right: 0.1rem;
    font-size: 1rem;
}

.education-user strong,
.education-user span {
    display: block;
}

.education-user strong {
    font-size: clamp(18px, 2.2dvh, 20px);
}

.education-user span {
    color: rgba(255, 255, 255, 0.72);
    font-weight: 750;
}

.education-gate__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.education-pseudo-edit {
    justify-self: end;
}

.education-pseudo-form {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto auto;
    gap: 8px;
    align-items: end;
    min-width: min(100%, 430px);
}

.education-pseudo-form[hidden] {
    display: none;
}

.education-pseudo-form label {
    display: grid;
    gap: 6px;
    color: var(--white);
    font-size: 12px;
    font-weight: 900;
}

.education-pseudo-form input {
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(245, 195, 106, 0.28);
    border-radius: 8px;
    padding: 10px 11px;
    color: var(--night);
    background: rgba(255, 255, 255, 0.94);
    font: inherit;
    font-weight: 850;
}

.education-join-panel {
    grid-template-columns: minmax(0, 1.18fr) minmax(260px, 0.82fr);
    align-items: stretch;
    margin-bottom: clamp(10px, 1.7dvh, 16px);
}

.education-join-panel[hidden] {
    display: none;
}

.education-join-card {
    display: grid;
    align-content: start;
    gap: clamp(9px, 1.5dvh, 13px);
    padding: clamp(14px, min(2.8vw, 3dvh), 24px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--white);
    background:
        radial-gradient(circle at 18% 16%, rgba(113, 199, 216, 0.18), transparent 34%),
        rgba(255, 255, 255, 0.08);
    box-shadow: var(--glass-shadow);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.education-join-card--teacher,
.education-join-card--training {
    background:
        radial-gradient(circle at 82% 18%, rgba(245, 195, 106, 0.18), transparent 34%),
        rgba(255, 255, 255, 0.07);
}

.education-join-card h2 {
    margin: 0;
    color: var(--white);
    overflow-wrap: anywhere;
    font-size: clamp(32px, min(4.8vw, 5.8dvh), 54px);
    line-height: 0.96;
}

.education-join-card p:not(.tool-card__label),
.education-join-session-title {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 800;
}

.education-join-form {
    display: grid;
    gap: clamp(8px, 1.4dvh, 12px);
}

.education-join-form[hidden] {
    display: none;
}

.education-join-form label {
    display: grid;
    gap: 8px;
    color: var(--white);
    font-weight: 900;
}

.education-join-form input,
.education-join-form select {
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(245, 195, 106, 0.28);
    border-radius: 8px;
    padding: clamp(10px, 1.5dvh, 13px) 14px;
    color: var(--night);
    background: rgba(255, 253, 248, 0.92);
    font: inherit;
    font-size: 20px;
    font-weight: 900;
}

.education-avatar-picker {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(8px, 1.4dvh, 12px);
}

.education-avatar-picker[hidden] {
    display: none;
}

.education-avatar-picker--gate {
    position: absolute;
    z-index: 18;
    top: 0;
    right: 0;
    left: 0;
    grid-template-columns: minmax(168px, 0.34fr) minmax(0, 1fr);
    align-content: start;
    height: min(680px, max(0px, calc(100dvh - 212px)));
    max-height: calc(100dvh - 118px);
    min-height: 0;
    padding: clamp(12px, 1.8dvh, 16px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background:
        radial-gradient(circle at 88% 18%, rgba(245, 195, 106, 0.16), transparent 34%),
        rgba(14, 20, 36, 0.98);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(18px) saturate(1.1);
    -webkit-backdrop-filter: blur(18px) saturate(1.1);
    overflow: hidden;
}

.education-avatar-picker--gate .education-avatar-choice-board__label {
    display: block;
}

.education-avatar-picker--gate .education-avatar-picker__current,
.education-avatar-picker--gate .education-avatar-random,
.education-avatar-picker--gate .education-avatar-done,
.education-avatar-picker--gate .education-avatar-tabs {
    grid-column: 1;
}

.education-avatar-picker--gate .education-avatar-picker__current {
    grid-row: 1;
}

.education-avatar-picker--gate .education-avatar-random {
    grid-row: 2;
}

.education-avatar-picker--gate .education-avatar-done {
    grid-row: 3;
}

.education-avatar-picker--gate .education-avatar-tabs {
    grid-row: 4;
}

.education-avatar-picker--gate .education-avatar-choice-board {
    grid-column: 2;
    grid-row: 1 / span 5;
}

.education-avatar-picker label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.education-avatar-picker__current {
    grid-column: 1 / -1;
    min-width: 0;
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    gap: 8px 10px;
    padding: 8px 10px;
    border: 1px solid rgba(113, 199, 216, 0.24);
    border-radius: 8px;
    background: rgba(3, 7, 18, 0.18);
}

.education-avatar-picker__current-label {
    grid-column: 1 / -1;
    color: rgba(245, 248, 255, 0.68);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.education-avatar-picker__current-avatar {
    position: relative;
    grid-column: 1;
    grid-row: 2 / span 2;
    display: inline-grid;
    place-items: center;
    width: clamp(44px, 7dvh, 56px);
    height: clamp(44px, 7dvh, 56px);
    border: 1px solid rgba(245, 248, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    line-height: 1;
}

.education-avatar-picker__current strong,
.education-avatar-picker__current small {
    min-width: 0;
    overflow-wrap: anywhere;
}

.education-avatar-picker__current strong {
    grid-column: 2 / -1;
    grid-row: 2;
    color: var(--white);
    font-size: clamp(1rem, 2dvh, 1.2rem);
}

.education-avatar-picker__current small {
    grid-column: 2 / -1;
    grid-row: 3;
    color: rgba(245, 248, 255, 0.7);
    font-weight: 800;
}

.education-avatar-choice-board {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(36px, 1fr));
    gap: 5px;
    align-content: start;
}

.education-avatar-choice-board__header {
    grid-column: 1 / -1;
    min-width: 0;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-top: 2px;
}

.education-avatar-choice-board__header strong {
    color: var(--white);
    font-size: clamp(0.98rem, 1.8dvh, 1.12rem);
    font-weight: 900;
}

.education-avatar-choice-board__header small {
    min-width: 0;
    color: rgba(245, 248, 255, 0.62);
    font-size: 0.78rem;
    font-weight: 800;
    text-align: right;
}

.education-avatar-random {
    grid-column: 1 / -1;
    justify-self: start;
    min-height: 36px;
    border: 1px solid rgba(245, 195, 106, 0.36);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--white);
    background: rgba(245, 195, 106, 0.14);
    font: inherit;
    font-size: 0.86rem;
    font-weight: 900;
    cursor: pointer;
}

.education-avatar-random:hover,
.education-avatar-random:focus-visible {
    border-color: rgba(245, 195, 106, 0.68);
    background: rgba(245, 195, 106, 0.22);
    outline: none;
}

.education-avatar-done {
    grid-column: 1 / -1;
    justify-self: stretch;
    min-height: 38px;
    border: 1px solid rgba(245, 195, 106, 0.42);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--night);
    background: rgba(245, 195, 106, 0.94);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.education-avatar-done:hover,
.education-avatar-done:focus-visible {
    border-color: rgba(245, 248, 255, 0.58);
    background: rgba(245, 205, 128, 1);
    outline: none;
}

.education-avatar-tabs {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 3px;
    border: 1px solid rgba(245, 248, 255, 0.14);
    border-radius: 8px;
    background: rgba(3, 7, 18, 0.2);
}

.education-avatar-tabs__button {
    min-height: 38px;
    border: 0;
    border-radius: 6px;
    padding: 8px 10px;
    color: rgba(245, 248, 255, 0.72);
    background: transparent;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 900;
    cursor: pointer;
}

.education-avatar-tabs__button:hover,
.education-avatar-tabs__button:focus-visible {
    color: var(--white);
    background: rgba(245, 195, 106, 0.14);
    outline: none;
}

.education-avatar-tabs__button.is-active {
    color: var(--night);
    background: rgba(245, 195, 106, 0.92);
    box-shadow: 0 8px 20px rgba(3, 7, 18, 0.14);
}

.education-avatar-choice-board__label {
    grid-column: 1 / -1;
    margin-top: 2px;
    color: rgba(245, 195, 106, 0.84);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.education-avatar-choice {
    position: relative;
    min-width: 0;
    aspect-ratio: 1;
    min-height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(245, 195, 106, 0.22);
    border-radius: 8px;
    padding: 5px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 900;
    text-align: center;
    cursor: pointer;
}

.education-avatar-choice:hover,
.education-avatar-choice:focus-visible {
    border-color: rgba(245, 195, 106, 0.62);
    background: rgba(245, 195, 106, 0.14);
    outline: none;
}

.education-avatar-choice.is-active {
    border-color: rgba(113, 199, 216, 0.78);
    background: rgba(113, 199, 216, 0.2);
    box-shadow: 0 0 0 1px rgba(113, 199, 216, 0.26), 0 12px 26px rgba(3, 7, 18, 0.18);
}

.education-avatar-choice > span:last-child {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.education-avatar-choice__preview {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 2.15em;
    height: 2.15em;
    border: 1px solid rgba(245, 248, 255, 0.16);
    border-radius: 999px;
    background: rgba(3, 7, 18, 0.22);
    line-height: 1;
}

.education-avatar-choice-board + .education-avatar-choice-board {
    margin-top: 2px;
}

.education-avatar-choice-board[hidden] {
    display: none;
}

.education-progression-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
    gap: 8px;
    margin: 12px 0;
}

.education-progression-summary > div {
    min-width: 0;
    display: grid;
    gap: 2px;
    padding: 10px 12px;
    border: 1px solid rgba(113, 199, 216, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
}

.education-progression-summary span {
    color: rgba(245, 195, 106, 0.88);
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.education-progression-summary strong,
.education-progression-summary small {
    min-width: 0;
    overflow-wrap: anywhere;
}

.education-progression-summary strong {
    color: var(--white);
    font-size: clamp(1rem, 2dvh, 1.25rem);
    font-weight: 950;
}

.education-progression-summary small {
    color: rgba(245, 248, 255, 0.72);
    font-weight: 800;
}

.education-progression-summary__badges {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-content: start;
    align-items: center;
    gap: 6px;
}

.education-progression-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 9px;
    border: 1px solid rgba(245, 195, 106, 0.28);
    border-radius: 999px;
    color: var(--white);
    background: rgba(245, 195, 106, 0.16);
    font-size: 0.78rem;
    font-weight: 900;
}

.education-session-template-library__body {
    align-items: stretch;
}

.education-session-template-library__list {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
    gap: 8px;
    width: 100%;
}

.education-session-template-card {
    min-width: 0;
    display: grid;
    gap: 4px;
    border: 1px solid rgba(7, 17, 34, 0.14);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--night);
    background: rgba(255, 255, 255, 0.58);
}

.education-session-template-card__main {
    min-width: 0;
    display: grid;
    gap: 4px;
    border: 0;
    padding: 0;
    color: inherit;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.education-session-template-card:hover,
.education-session-template-card:focus-within {
    border-color: rgba(202, 101, 41, 0.48);
    background: rgba(255, 255, 255, 0.82);
}

.education-session-template-card__main:focus-visible {
    outline: none;
}

.education-session-template-card__main span {
    color: var(--clay);
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.education-session-template-card__main strong,
.education-session-template-card__main small {
    overflow-wrap: anywhere;
}

.education-session-template-card__main strong {
    font-weight: 950;
}

.education-session-template-card__main small {
    color: var(--slate);
    font-weight: 850;
}

.education-session-template-card__actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    margin-top: 4px;
}

.education-session-template-card__actions button {
    min-height: 30px;
    border: 1px solid rgba(7, 17, 34, 0.13);
    border-radius: 7px;
    padding: 5px 6px;
    color: #16223a;
    background: rgba(255, 255, 255, 0.68);
    font: inherit;
    font-size: 0.74rem;
    font-weight: 900;
    cursor: pointer;
}

.education-session-template-card__actions button:hover,
.education-session-template-card__actions button:focus-visible {
    border-color: rgba(202, 101, 41, 0.58);
    color: #8d3d1c;
    background: rgba(255, 255, 255, 0.94);
    outline: none;
}

.education-session-template-card__actions button:disabled {
    opacity: 0.42;
    cursor: default;
}

.education-join-form input#education-join-code {
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.education-auth-required {
    min-height: min(520px, calc(100vh - 260px));
    display: grid;
    align-content: center;
    justify-items: start;
    gap: 16px;
    padding: clamp(26px, 6vw, 62px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    color: var(--white);
    background:
        radial-gradient(circle at 16% 20%, rgba(245, 195, 106, 0.16), transparent 32%),
        radial-gradient(circle at 82% 72%, rgba(47, 143, 157, 0.14), transparent 34%),
        rgba(255, 255, 255, 0.075);
    box-shadow: var(--glass-shadow);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.education-auth-required[hidden],
.education-teacher-only[hidden] {
    display: none;
}

.education-auth-required h2 {
    max-width: 820px;
    margin: 0;
    color: var(--white);
    font-size: clamp(36px, 6vw, 72px);
    line-height: 0.98;
}

.education-auth-required p:not(.tool-card__label) {
    max-width: 700px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(17px, 2vw, 22px);
}

.education-layout {
    grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.42fr);
    align-items: start;
    grid-auto-flow: row;
    min-width: 0;
}

body[data-education-user="teacher"] .education-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, clamp(180px, 32dvh, 300px)) minmax(0, 1fr);
    grid-template-areas:
        "main"
        "sidebar"
        "content";
    gap: 8px;
    align-items: flex-start;
    min-height: 0;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
}

body[data-education-user="teacher"] #education-private-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, clamp(180px, 32dvh, 300px)) minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    grid-template-areas:
        "main"
        "sidebar"
        "content";
    min-height: 0;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
}

body[data-education-user="teacher"] #education-content-manager {
    grid-column: 1 / -1;
    grid-area: content;
    grid-row: 3;
    min-height: 0;
    height: 100%;
    margin-top: 6px;
}

body[data-education-competition-role="player"] .education-layout {
    grid-template-columns: minmax(0, 1fr);
}

body[data-education-competition-status="running"] .education-layout,
body[data-education-competition-status="finished"] .education-layout,
body[data-education-competition-role="player"] .education-layout,
body[data-education-solo="active"] .education-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "main";
}

body[data-education-user="teacher"] .education-sidebar {
    grid-area: sidebar;
    grid-row: 2;
    grid-column: 1;
    order: 2;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    height: 100%;
    max-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    align-self: start;
}

body[data-education-user="teacher"] .education-sidebar .education-common-config {
    max-height: 100%;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
}

body[data-education-user="teacher"] .education-main .education-session-home {
    max-height: none;
    min-height: 0;
    overflow: visible;
}

body[data-education-user="teacher"] .education-main {
    grid-area: main;
    grid-row: 1;
    grid-column: 1;
    order: 1;
    width: 100%;
    min-width: 0;
    min-height: 0;
    height: auto;
    max-height: none;
    overflow: visible;
    overscroll-behavior: auto;
}

body[data-education-user="teacher"] .education-content-manager {
    grid-area: content;
    grid-row: 3;
    grid-column: 1 / -1;
    order: 3;
    flex: 1 0 100%;
    align-self: stretch;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

body[data-education-competition-status="running"] .education-main,
body[data-education-competition-status="finished"] .education-main,
body[data-education-competition-role="player"] .education-main,
body[data-education-solo="active"] .education-main {
    grid-area: main;
    max-height: none;
    overflow: visible;
}

body[data-education-competition-status="running"] .education-sidebar,
body[data-education-competition-status="finished"] .education-sidebar,
body[data-education-competition-role="player"] .education-sidebar,
body[data-education-solo="active"] .education-sidebar {
    display: none;
}

body[data-education-competition-status="running"] .education-main > .education-run-panel,
body[data-education-competition-status="finished"] .education-main > .education-run-panel,
body[data-education-competition-role="player"] .education-main > .education-run-panel,
body[data-education-solo="active"] .education-main > .education-run-panel {
    display: none;
}

body[data-education-competition-status="running"] .education-main,
body[data-education-competition-status="finished"] .education-main {
    width: 100%;
    min-width: 0;
}

.education-sidebar {
    position: static;
    top: 18px;
    max-height: none;
    overflow: visible;
}

body[data-education-user="teacher"] .education-sidebar {
    position: static;
}

body[data-education-user="teacher"] .education-sidebar:has(#education-common-config:not([hidden])) > div:first-child {
    display: none;
}

.education-sidebar h2 {
    margin: 0;
    color: var(--night);
    font-size: clamp(26px, 3.4vw, 38px);
    line-height: 1;
}

.education-sidebar-description {
    display: none;
}

.education-sidebar p {
    color: var(--muted);
}

.education-meta {
    display: grid;
    gap: 10px;
    margin: 0;
}

.education-meta div {
    padding: 5px 0 5px 13px;
    border: 0;
    border-left: 3px solid rgba(198, 99, 47, 0.42);
    border-radius: 0;
    background: transparent;
}

.education-common-config,
.education-launch-card,
.education-score-card,
.education-import,
.education-builder {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.education-meta dt,
.education-score-card span {
    margin: 0 0 5px;
    color: var(--amber-dark);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.education-meta dd {
    margin: 0;
    color: var(--night);
    font-weight: 850;
}

.education-session-list {
    display: grid;
    gap: 8px;
}

.education-session-selector .education-session-list {
    gap: clamp(10px, min(1.8vw, 1.6dvh), 18px);
    min-height: 0;
    height: 100%;
    align-content: start;
    grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
    grid-auto-rows: minmax(clamp(86px, 12dvh, 132px), 1fr);
    overflow: visible;
}

.education-session-group {
    display: grid;
    gap: 8px;
}

.education-session-selector .education-session-group {
    align-content: start;
}

.education-session-group + .education-session-group {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.education-session-selector .education-session-group + .education-session-group {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.education-session-group h4 {
    margin: 0;
    color: var(--amber-dark);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.education-session-list button {
    position: relative;
    display: grid;
    gap: 5px;
    padding: 10px 12px;
    border: 1px solid rgba(16, 23, 38, 0.1);
    border-radius: 8px;
    color: var(--night);
    background: rgba(255, 253, 248, 0.68);
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.education-session-list button > * {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.education-session-selector .education-session-list button {
    height: 100%;
    min-height: clamp(68px, 9.4dvh, 104px);
    padding: clamp(10px, 1.35dvh, 14px) 16px;
    align-content: center;
    background: rgba(255, 253, 248, 0.86);
}

.education-session-list button:hover,
.education-session-list button:focus-visible,
.education-session-list button.is-active {
    border-color: var(--selection-on-border);
    background: var(--selection-on-bg);
}

.education-session-list button.is-active {
    border-color: var(--selection-on-border);
    background: var(--selection-on-bg);
    color: var(--selection-on-text);
    box-shadow: var(--selection-on-shadow);
    pointer-events: none;
}

.education-session-list button.is-active::after {
    content: "Sélectionnée";
    position: absolute;
    inset: 0;
    z-index: 0;
    display: grid;
    place-items: end;
    padding: 8px 10px;
    border-radius: inherit;
    color: rgba(17, 24, 39, 0.62);
    background: linear-gradient(90deg, transparent 46%, rgba(231, 228, 221, 0.62));
    font-size: 10px;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.education-session-list button.is-loading {
    cursor: wait;
    opacity: 0.86;
}

.education-session-list button.is-loading::after {
    content: "Ouverture...";
    position: absolute;
    inset: 0;
    z-index: 0;
    display: grid;
    place-items: end;
    padding: 8px 10px;
    border-radius: inherit;
    color: rgba(17, 24, 39, 0.66);
    background: linear-gradient(90deg, transparent 42%, rgba(245, 195, 106, 0.42));
    font-size: 10px;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.education-session-list__type {
    color: var(--amber-dark);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.education-session-list small {
    color: var(--muted);
    font-weight: 800;
}

.education-session-list__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    min-height: 22px;
}

.education-session-list__badges span {
    display: inline-grid;
    place-items: center;
    min-height: 20px;
    padding: 2px 7px;
    border: 1px solid rgba(32, 54, 89, 0.13);
    border-radius: 999px;
    color: #2f3b50;
    background: rgba(247, 248, 250, 0.84);
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.education-session-list__badges span[data-mode="solo"] {
    color: #24456f;
    background: rgba(226, 236, 249, 0.86);
}

.education-session-list__badges span[data-mode="classroom"] {
    color: #24635c;
    background: rgba(220, 241, 235, 0.86);
}

.education-session-list__badges span[data-mode="competition"] {
    color: #6f3b18;
    background: rgba(249, 229, 197, 0.88);
}

.education-session-list__badges span[data-mode="ceremony"] {
    color: #673c6a;
    background: rgba(241, 226, 244, 0.88);
}

.education-session-list__badges span[data-mode="admin"] {
    color: #5d2630;
    background: rgba(248, 224, 228, 0.88);
}

.education-session-list__stats {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 850;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.education-session-selector {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    align-items: stretch;
    padding: clamp(10px, 2.4dvh, 24px) clamp(12px, 3vw, 36px);
    overflow: hidden;
    background: rgba(201, 205, 214, 0.68);
    backdrop-filter: blur(8px) saturate(0.78);
    -webkit-backdrop-filter: blur(8px) saturate(0.78);
}

.education-session-selector[hidden] {
    display: none;
}

html.education-selector-open,
body.education-selector-open {
    overflow: hidden;
}

.education-session-selector__panel {
    width: min(1320px, 100%);
    height: min(780px, calc(100dvh - clamp(20px, 4.8dvh, 48px)));
    max-height: calc(100dvh - clamp(20px, 4.8dvh, 48px));
    margin: 0 auto;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    align-content: stretch;
    gap: clamp(14px, 2dvh, 22px);
    padding: clamp(18px, min(2.4vw, 3dvh), 30px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 8px;
    background:
        radial-gradient(circle at 16% 0%, rgba(245, 195, 106, 0.16), transparent 30%),
        rgba(230, 228, 223, 0.94);
    box-shadow: 0 34px 90px rgba(7, 17, 34, 0.32);
}

.education-session-selector__head {
    display: flex;
    gap: 16px;
    align-items: start;
    justify-content: space-between;
}

.education-session-selector__head h2 {
    margin: 0;
    color: var(--night);
    font-size: clamp(30px, min(5vw, 7dvh), 58px);
    line-height: 0.98;
}

.education-session-selector__empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 22px;
    border: 1px dashed rgba(16, 23, 38, 0.18);
    border-radius: 8px;
    color: var(--muted);
    background: rgba(255, 253, 248, 0.58);
    font-weight: 850;
}

.education-selector-close {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(16, 23, 38, 0.12);
    border-radius: 999px;
    color: rgba(16, 23, 38, 0.72);
    background: rgba(255, 253, 248, 0.78);
    cursor: pointer;
    font: inherit;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.education-selector-close:hover,
.education-selector-close:focus-visible {
    color: var(--night);
    background: var(--white);
}

.education-run-panel {
    min-width: 0;
    border: 1px solid var(--selection-off-border);
    border-radius: 8px;
    color: var(--selection-off-text);
    background: var(--selection-off-bg);
    overflow: visible;
    transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.education-run-panel[open] {
    border-color: var(--selection-on-border);
    color: var(--selection-on-text);
    background: var(--selection-on-bg);
    box-shadow: var(--selection-on-shadow);
}

.education-run-panel[hidden] {
    display: none;
}

.education-run-panel--inline,
.education-run-panel--inline[open] {
    border-color: rgba(15, 35, 70, 0.14);
    color: var(--night);
    background: rgba(255, 253, 248, 0.72);
    box-shadow: 0 18px 42px rgba(7, 17, 34, 0.1);
}

.education-run-panel--inline > summary {
    display: grid;
}

.education-run-panel--inline .education-run-panel__body {
    padding: 12px;
    border-top: 1px solid rgba(7, 17, 34, 0.14);
}

.education-run-panel > summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, auto);
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: inherit;
    cursor: pointer;
    list-style: none;
}

.education-run-panel > summary::-webkit-details-marker {
    display: none;
}

.education-run-panel > summary > span {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.education-run-panel > summary > span::before {
    display: none;
    content: "";
}

.education-run-panel[open] > summary > span::before {
    content: "−";
}

.education-run-panel > summary > small {
    min-width: 0;
    overflow: hidden;
    color: rgba(255, 253, 248, 0.68);
    font-size: 11px;
    font-weight: 850;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.education-run-panel[open] > summary > small {
    color: rgba(7, 17, 34, 0.68);
}

.education-zone-kicker {
    margin: 0 0 8px;
    color: rgba(7, 17, 34, 0.62);
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.education-run-panel__body {
    display: grid;
    gap: 10px;
    min-width: 0;
    padding: 0 12px 12px;
    color: var(--night);
    background: transparent;
}

.education-main > .education-run-panel {
    width: 100%;
}

.education-main > .education-run-panel > summary {
    padding: 14px 16px;
}

.education-main .education-run-panel__body {
    position: relative;
    grid-template-columns: minmax(150px, 0.72fr) repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 7px 10px;
    padding: 8px 16px 14px;
    border-top: 1px solid rgba(7, 17, 34, 0.18);
}

.education-main .education-game-bounds,
.education-main .education-game-status {
    grid-column: 1 / -1;
}

.education-main .education-run-panel__body > .education-filter-help {
    align-self: center;
    margin: 0;
    font-size: 12px;
    line-height: 1.3;
}

.education-main .education-run-panel__body > .education-topic-actions {
    align-self: center;
    justify-content: flex-end;
    padding-bottom: 0;
}

.education-main .education-run-panel__body > .education-path-filter {
    grid-column: 1 / -1;
}

.education-common-config,
.education-launch-card {
    display: grid;
    gap: 8px;
}

.education-main > .education-common-config {
    width: 100%;
    padding: 16px;
    border: 1px solid rgba(15, 35, 70, 0.14);
    border-radius: 8px;
    background: rgba(255, 253, 248, 0.74);
    box-shadow: 0 18px 42px rgba(7, 17, 34, 0.12);
}

.education-common-config--main {
    grid-template-columns: minmax(0, 1fr);
}

.education-main > .education-common-config .education-quick-settings,
.education-main > .education-common-config .education-settings-snapshot,
.education-main > .education-common-config .education-common-config__grid,
.education-main > .education-common-config .education-competition-extra__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.education-main > .education-common-config .education-launch-card {
    padding-top: 10px;
    border-top: 1px solid rgba(15, 35, 70, 0.12);
}

.education-common-config[hidden],
.education-score-card[hidden],
.education-launch-card[hidden],
.education-competition-options[hidden],
.education-mode-picker[hidden] {
    display: none;
}

.education-mode-picker {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.education-mode-picker button {
    display: grid;
    gap: 3px;
    min-height: 64px;
    padding: 11px 12px;
    border: 1px solid rgba(15, 35, 70, 0.18);
    border-radius: 8px;
    color: var(--night);
    background: rgba(255, 255, 255, 0.72);
    cursor: pointer;
    font: inherit;
    text-align: left;
    transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.education-mode-picker button:hover,
.education-mode-picker button:focus-visible,
.education-mode-picker button.is-active {
    border-color: var(--selection-on-border);
    background: var(--selection-on-bg);
    box-shadow: var(--selection-on-shadow);
}

.education-mode-picker button:disabled {
    cursor: not-allowed;
    color: rgba(7, 17, 34, 0.46);
    background: rgba(255, 255, 255, 0.38);
    box-shadow: none;
    opacity: 0.72;
}

.education-mode-picker button:focus-visible {
    outline: 3px solid rgba(245, 195, 106, 0.42);
    outline-offset: 2px;
}

.education-mode-picker strong {
    font-size: 15px;
    font-weight: 950;
}

.education-mode-picker span {
    color: rgba(7, 17, 34, 0.68);
    font-size: 12px;
    font-weight: 820;
}

.education-mode-guidance {
    margin: -2px 0 2px;
    border-left: 3px solid rgba(198, 99, 47, 0.5);
    padding: 7px 10px;
    color: rgba(7, 17, 34, 0.72);
    background: rgba(255, 255, 255, 0.48);
    font-size: 0.82rem;
    font-weight: 820;
    line-height: 1.32;
}

.education-mode-guidance[hidden] {
    display: none;
}

.education-settings-header {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.education-settings-header .tool-card__label,
.education-settings-header h2,
.education-settings-summary {
    margin: 0;
    min-width: 0;
}

.education-settings-header h2 {
    color: var(--night);
    font-size: 1.12rem;
    font-weight: 950;
    line-height: 1.12;
}

.education-settings-summary {
    overflow: hidden;
    color: rgba(7, 17, 34, 0.66);
    font-size: 0.82rem;
    font-weight: 850;
    line-height: 1.28;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.education-quick-topic,
.education-quick-settings {
    display: grid;
    gap: 8px;
}

.education-quick-settings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.education-flow-presets {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    min-width: 0;
}

.education-flow-presets[hidden] {
    display: none;
}

.education-flow-presets button {
    display: grid;
    gap: 2px;
    min-width: 0;
    min-height: 46px;
    border: 1px solid rgba(15, 35, 70, 0.14);
    border-radius: 8px;
    padding: 8px;
    color: var(--night);
    background: rgba(255, 255, 255, 0.62);
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.education-flow-presets button:hover,
.education-flow-presets button:focus-visible,
.education-flow-presets button.is-active {
    border-color: var(--selection-on-border);
    background: var(--selection-on-bg);
}

.education-flow-presets strong,
.education-flow-presets span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.education-flow-presets strong {
    font-size: 0.82rem;
    font-weight: 950;
}

.education-flow-presets span {
    color: rgba(7, 17, 34, 0.66);
    font-size: 0.7rem;
    font-weight: 850;
}

.education-settings-snapshot {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    min-width: 0;
}

.education-settings-snapshot[hidden] {
    display: none;
}

.education-settings-snapshot__item {
    display: grid;
    gap: 3px;
    min-width: 0;
    min-height: 58px;
    border: 1px solid rgba(15, 35, 70, 0.12);
    border-radius: 8px;
    padding: 8px 9px;
    color: var(--night);
    background: rgba(255, 255, 255, 0.62);
}

button.education-settings-snapshot__item {
    cursor: pointer;
    font: inherit;
    text-align: left;
}

button.education-settings-snapshot__item:hover,
button.education-settings-snapshot__item:focus-visible {
    border-color: var(--selection-on-border);
    background: var(--selection-on-bg);
    box-shadow: var(--selection-on-shadow);
    outline: 0;
}

.education-settings-snapshot__item small,
.education-settings-snapshot__item em {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.education-settings-snapshot__item small {
    color: rgba(7, 17, 34, 0.58);
    font-size: 0.66rem;
    font-weight: 950;
    letter-spacing: 0.05em;
    line-height: 1;
    text-transform: uppercase;
}

.education-settings-snapshot__item strong {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--night);
    font-size: 0.92rem;
    font-weight: 950;
    line-height: 1.08;
}

.education-settings-snapshot__item em {
    color: rgba(7, 17, 34, 0.62);
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 850;
    line-height: 1.1;
}

.education-settings-snapshot__item[data-state="attention"] {
    border-color: rgba(198, 99, 47, 0.22);
    background: rgba(245, 195, 106, 0.16);
}

.education-settings-snapshot__item[data-state="mode"] {
    border-color: rgba(47, 143, 157, 0.22);
    background: rgba(113, 199, 216, 0.14);
}

.education-settings-snapshot__item[data-state="power"] {
    border-color: rgba(104, 76, 180, 0.18);
    background: rgba(122, 103, 184, 0.1);
}

.education-settings-snapshot__item[data-state="score"] {
    border-color: rgba(37, 120, 76, 0.2);
    background: rgba(65, 174, 111, 0.1);
}

.education-launch-card h3 {
    margin: 0;
    color: var(--night);
    font-size: 20px;
}

.education-common-config label,
.education-launch-card label,
.education-advanced-launch label {
    display: grid;
    gap: 7px;
    color: var(--night);
    font-weight: 850;
}

.education-common-config input,
.education-common-config select,
.education-common-config textarea,
.education-launch-card input,
.education-launch-card select,
.education-advanced-launch input,
.education-advanced-launch select {
    width: 100%;
    min-width: 0;
    border: 1px solid #d9ccba;
    border-radius: 7px;
    padding: 10px 11px;
    color: var(--ink);
    background: var(--white);
    font: inherit;
}

.education-common-config textarea {
    min-height: 72px;
    resize: vertical;
}

.education-topic-search {
    display: grid;
    gap: 10px;
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(47, 143, 157, 0.2);
    border-radius: 8px;
    background: rgba(255, 253, 248, 0.64);
}

.education-topic-search[hidden] {
    display: none;
}

.education-topic-search label {
    display: grid;
    gap: 6px;
    min-width: 0;
    color: var(--night);
    font-size: 13px;
    font-weight: 950;
}

.education-topic-search input {
    min-height: 46px;
}

.education-topic-search__actions,
.education-topic-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.education-topic-search__actions .cv-button {
    min-height: 38px;
    padding: 8px 12px;
}

.education-run-topic-library__summary {
    margin: 0;
    color: rgba(7, 17, 34, 0.66);
    font-size: 12px;
    font-weight: 800;
}

.education-topic-suggestions button {
    min-height: 30px;
    max-width: 100%;
    padding: 6px 9px;
    border: 1px solid rgba(15, 35, 70, 0.13);
    border-radius: 7px;
    color: rgba(7, 17, 34, 0.76);
    background: rgba(255, 255, 255, 0.62);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    overflow-wrap: anywhere;
    text-align: left;
}

.education-topic-suggestions button:hover,
.education-topic-suggestions button:focus-visible {
    border-color: rgba(47, 143, 157, 0.34);
    background: rgba(113, 199, 216, 0.16);
}

#education-run-topic-library-list.education-topic-suggestions {
    display: grid;
    gap: 8px;
}

.education-topic-table-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(140px, 0.38fr);
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 56px;
    max-width: 100%;
    padding: 10px 11px;
    border: 1px solid rgba(15, 35, 70, 0.14);
    border-radius: 8px;
    color: var(--night);
    background: rgba(255, 255, 255, 0.74);
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.education-topic-table-row:hover,
.education-topic-table-row:focus-visible {
    border-color: rgba(47, 143, 157, 0.34);
    background: rgba(113, 199, 216, 0.16);
}

.education-topic-table-row__title {
    min-width: 0;
    font-size: 13px;
    font-weight: 950;
    line-height: 1.25;
}

.education-topic-table-row__meta {
    min-width: 0;
    color: rgba(7, 17, 34, 0.62);
    font-size: 12px;
    font-weight: 800;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.education-topic-table-row__separator {
    display: none;
}

.education-topic-table-row__count {
    grid-column: 1 / -1;
    justify-self: end;
    color: rgba(7, 17, 34, 0.72);
    font-size: 12px;
    font-weight: 900;
}

.education-common-config__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    align-items: end;
}

.education-sidebar .education-common-config {
    gap: 8px;
    margin-top: 2px;
    padding: 10px;
    border: 1px solid rgba(15, 35, 70, 0.14);
    border-radius: 8px;
    background: rgba(255, 253, 248, 0.72);
    box-shadow: 0 18px 42px rgba(7, 17, 34, 0.1);
}

.education-sidebar .education-mode-picker {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.education-sidebar .education-mode-picker button {
    min-height: 52px;
    padding: 8px 10px;
}

.education-sidebar .education-mode-picker strong,
.education-sidebar .education-mode-picker span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.education-sidebar .education-topic-search {
    grid-template-columns: minmax(260px, 1fr) auto;
    align-items: end;
    gap: 8px;
    padding: 9px;
}

.education-sidebar .education-topic-search label {
    min-width: 0;
}

.education-sidebar .education-topic-search__actions {
    align-items: end;
    flex-wrap: nowrap;
}

.education-sidebar .education-topic-suggestions {
    grid-column: 1 / -1;
}

.education-sidebar .education-common-config__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}

.education-sidebar .education-competition-options:not([hidden]) {
    display: contents;
}

.education-sidebar .education-quick-settings {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.education-sidebar .education-settings-snapshot {
    grid-template-columns: repeat(auto-fit, minmax(min(132px, 100%), 1fr));
    gap: 6px;
}

.education-sidebar .education-settings-snapshot__item {
    min-height: 48px;
    padding: 7px 8px;
}

.education-sidebar .education-settings-snapshot__item strong {
    font-size: 0.86rem;
}

.education-sidebar .education-settings-snapshot__item em {
    font-size: 0.68rem;
}

.education-sidebar .education-gemini-launch-count-field {
    grid-column: auto;
}

.education-sidebar .education-common-config__grid > label {
    min-width: 0;
}

.education-sidebar .education-advanced-launch label {
    min-width: 0;
    gap: 5px;
    font-size: 13px;
    line-height: 1.25;
}

.education-sidebar .education-advanced-launch summary {
    grid-template-columns: 1fr;
    gap: 3px;
}

.education-sidebar .education-advanced-launch summary small {
    min-width: 0;
    overflow: hidden;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.education-sidebar .education-common-config input,
.education-sidebar .education-common-config select,
.education-sidebar .education-advanced-launch input,
.education-sidebar .education-advanced-launch select {
    min-height: 40px;
    padding: 8px 9px;
}

.education-sidebar .education-advanced-launch .education-common-config__grid {
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    gap: 8px;
    padding: 0 10px 10px;
}

.education-sidebar .education-competition-options label:first-of-type,
.education-sidebar .education-competition-options label:nth-of-type(2),
.education-sidebar .education-competition-options label:nth-of-type(3) {
    grid-column: auto;
}

.education-sidebar .education-competition-extra__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.education-sidebar .education-competition-extra__grid label:nth-of-type(3) {
    grid-column: 1 / -1;
}

.education-common-config .education-launch-card {
    padding: 4px 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.education-advanced-launch {
    border: 1px solid rgba(15, 35, 70, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.44);
}

.education-advanced-launch[open] {
    border-color: rgba(47, 143, 157, 0.22);
    background: rgba(255, 253, 248, 0.68);
    box-shadow: 0 8px 18px rgba(42, 54, 72, 0.06);
}

.education-advanced-launch summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px 11px;
    cursor: pointer;
    list-style: none;
}

.education-advanced-launch summary::-webkit-details-marker {
    display: none;
}

.education-advanced-launch summary span {
    color: var(--night);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.education-advanced-launch summary small {
    color: rgba(7, 17, 34, 0.58);
    font-size: 11px;
    font-weight: 850;
}

.education-advanced-launch[open] summary {
    border-bottom: 1px solid rgba(15, 35, 70, 0.1);
}

.education-advanced-launch .education-common-config__grid {
    padding: 0 11px 12px;
}

.education-common-config__grid.education-advanced-settings {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
}

.education-main > .education-common-config .education-common-config__grid.education-advanced-settings {
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}

.education-sidebar .education-advanced-launch .education-common-config__grid.education-advanced-settings {
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}

.education-settings-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
    gap: 8px;
    align-items: end;
    min-width: 0;
    margin: 0;
    border: 1px solid rgba(15, 35, 70, 0.12);
    border-radius: 8px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.46);
}

.education-settings-group legend,
.education-settings-group__title {
    width: fit-content;
    max-width: 100%;
    padding: 0 5px;
    color: rgba(7, 17, 34, 0.62);
    font-size: 0.68rem;
    font-weight: 950;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
}

.education-settings-group__title {
    grid-column: 1 / -1;
    padding: 0;
}

.education-settings-group--competition {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.education-sidebar .education-competition-options.education-settings-group:not([hidden]) {
    display: grid;
}

.education-common-config input[readonly] {
    color: var(--muted);
    background: rgba(255, 255, 255, 0.62);
}

.education-question-level-field {
    display: none;
    gap: 7px;
    padding: 0 0 10px;
    border: 0;
    border-bottom: 1px solid rgba(7, 17, 34, 0.14);
    border-radius: 0;
    color: var(--night);
    background: transparent;
    font-weight: 850;
}

.education-question-level-field input {
    width: 100%;
    min-width: 0;
    border: 1px solid #d9ccba;
    border-radius: 7px;
    padding: 10px 11px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.62);
    font: inherit;
}

.education-input-addon {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
}

.education-input-addon input {
    border-radius: 7px 0 0 7px;
}

.education-input-addon > span {
    display: grid;
    min-width: 54px;
    place-items: center;
    border: 1px solid #d9ccba;
    border-left: 0;
    border-radius: 0 7px 7px 0;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.58);
    font-size: 12px;
    font-weight: 900;
}

.education-launch-hint {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 820;
    line-height: 1.35;
}

.education-launch-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0;
    color: var(--night);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.2;
}

.education-launch-summary span {
    min-width: 0;
    padding: 4px 7px;
    border: 1px solid rgba(82, 104, 134, 0.15);
    border-radius: 999px;
    background: rgba(255, 253, 248, 0.46);
    overflow-wrap: anywhere;
}

.education-competition-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.education-competition-options label:first-of-type,
.education-competition-options label:nth-of-type(2),
.education-competition-options label:nth-of-type(3) {
    grid-column: 1 / -1;
}

.education-competition-options.education-settings-group--competition {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.education-competition-options.education-settings-group--competition > label:first-of-type,
.education-competition-options.education-settings-group--competition > label:nth-of-type(2),
.education-competition-options.education-settings-group--competition > label:nth-of-type(3) {
    grid-column: auto;
}

.education-competition-extra {
    grid-column: 1 / -1;
    min-width: 0;
    border: 1px solid rgba(15, 35, 70, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.34);
}

.education-competition-extra summary {
    display: block;
    padding: 9px 10px;
    color: var(--night);
    cursor: pointer;
    font-size: 13px;
    font-weight: 900;
    list-style: none;
}

.education-competition-extra summary::-webkit-details-marker {
    display: none;
}

.education-competition-extra summary::after {
    content: "+";
    float: right;
    color: var(--muted);
}

.education-competition-extra[open] summary::after {
    content: "-";
}

.education-competition-extra__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 0 10px 10px;
}

.education-competition-extra__grid label {
    min-width: 0;
}

.education-power-settings {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    align-items: center;
    margin: 0;
    padding: 10px;
    border: 1px solid rgba(15, 35, 70, 0.14);
    border-radius: 8px;
}

.education-power-settings legend {
    padding: 0 5px;
    font-size: 12px;
    font-weight: 900;
}

.education-power-settings label {
    display: inline-flex;
    flex: 0 1 auto;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.education-power-settings input {
    width: auto;
}

.education-advanced-launch .education-question-order-toggle {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    min-height: 48px;
    padding: 10px;
    border: 1px solid rgba(15, 35, 70, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.58);
}

.education-advanced-launch .education-question-order-toggle[hidden] {
    display: none;
}

.education-question-order-toggle input {
    flex: 0 0 auto;
    width: auto;
    margin-top: 2px;
}

.education-question-order-toggle span {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.education-question-order-toggle small {
    color: rgba(7, 17, 34, 0.62);
    font-size: 0.72rem;
    font-weight: 850;
    line-height: 1.15;
}

.education-game-only[hidden] {
    display: none;
}

.education-quiz-only[hidden] {
    display: none;
}

.education-mode-actions,
.education-competition-join {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: end;
}

.education-launch-card .education-mode-actions {
    margin-top: 2px;
}

.education-launch-card .education-game-status:empty {
    display: none;
}

.education-competition-join label {
    flex: 1 1 150px;
}

.education-game-config {
    display: grid;
    gap: 0;
    min-inline-size: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-top: 1px solid rgba(7, 17, 34, 0.14);
    border-radius: 0;
    background: transparent;
    box-sizing: border-box;
}

.education-game-config legend {
    float: left;
    width: 100%;
    margin: 0 0 2px;
    padding: 0;
    color: var(--amber-dark);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.education-game-config legend + * {
    clear: both;
}

.education-game-config > label {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
}

.education-game-config > label input {
    width: auto;
}

.education-path-filter {
    display: grid;
    gap: 12px;
    min-width: 0;
    padding: 14px;
    border: 1px solid rgba(15, 35, 70, 0.14);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 253, 248, 0.76), rgba(203, 223, 246, 0.42)),
        rgba(255, 253, 248, 0.46);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.education-path-filter[hidden] {
    display: none;
}

.education-path-filter__grid,
.education-path-filter__quick {
    display: grid;
    min-width: 0;
    grid-template-columns: repeat(3, minmax(110px, 1fr));
    gap: 10px;
    align-items: stretch;
}

.education-path-filter__refine {
    display: grid;
    gap: 10px;
    min-width: 0;
    border-top: 1px solid rgba(15, 35, 70, 0.12);
    padding-top: 10px;
}

.education-path-filter__refine summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 36px;
    cursor: pointer;
    list-style: none;
}

.education-path-filter__refine summary::-webkit-details-marker {
    display: none;
}

.education-path-filter__refine summary span {
    color: rgba(7, 17, 34, 0.78);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.education-path-filter__refine summary small {
    min-width: 0;
    color: rgba(7, 17, 34, 0.62);
    font-size: 12px;
    font-weight: 850;
    text-align: right;
}

.education-path-filter__quick {
    grid-template-columns: minmax(0, 1fr) minmax(86px, auto);
    align-items: end;
}

.education-path-filter__quick[hidden] {
    display: none;
}

.education-path-filter label {
    display: grid;
    gap: 6px;
    min-width: 0;
    color: var(--night);
    font-size: 13px;
    font-weight: 950;
}

.education-path-filter select,
.education-path-filter input {
    min-width: 0;
    min-height: 46px;
    border-radius: 7px;
}

.education-path-filter__quick .cv-button {
    min-height: 46px;
    padding: 8px 12px;
}

.education-path-filter__group {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 7px;
    min-width: 0;
}

.education-path-filter__group > strong {
    color: rgba(7, 17, 34, 0.74);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.education-path-filter__choices {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
    align-content: start;
}

.education-path-filter__group--chapters .education-path-filter__choices {
    max-height: none;
    overflow: visible;
    padding-right: 0;
}

.education-path-filter__choices button {
    min-height: 32px;
    max-width: 100%;
    padding: 6px 9px;
    border: 1px solid rgba(15, 35, 70, 0.14);
    border-radius: 7px;
    color: rgba(7, 17, 34, 0.74);
    background: rgba(255, 253, 248, 0.68);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 950;
    line-height: 1.1;
    overflow-wrap: anywhere;
    text-align: left;
}

.education-path-filter__choices button:hover,
.education-path-filter__choices button:focus-visible {
    border-color: rgba(47, 143, 157, 0.32);
    color: var(--night);
    background: rgba(113, 199, 216, 0.18);
}

.education-path-filter__choices button.is-active {
    border-color: rgba(204, 101, 43, 0.38);
    color: var(--night);
    background: rgba(245, 195, 106, 0.58);
    box-shadow: 0 8px 20px rgba(204, 101, 43, 0.12);
}

.education-path-filter__summary {
    margin: 0;
    color: rgba(7, 17, 34, 0.68);
    font-size: 13px;
    font-weight: 850;
}

.education-path-filter__summary[data-state="warning"] {
    color: var(--amber-dark);
}

.education-path-filter__summary[data-state="error"] {
    color: #8b2424;
}

.education-toast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 90;
    max-width: min(420px, calc(100vw - 36px));
    padding: 13px 15px;
    border: 1px solid rgba(245, 195, 106, 0.34);
    border-radius: 8px;
    color: var(--night);
    background: rgba(255, 253, 248, 0.94);
    box-shadow: 0 18px 46px rgba(7, 17, 34, 0.24);
    font-weight: 900;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.education-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.education-toast[data-state="success"] {
    border-color: rgba(47, 143, 157, 0.32);
}

.education-toast[data-state="error"] {
    border-color: rgba(139, 36, 36, 0.28);
    color: #8b2424;
    background: rgba(255, 233, 230, 0.96);
}

.education-config-menu {
    position: relative;
    display: block;
    color: var(--night);
}

.education-config-menu[hidden] {
    display: none;
}

.education-config-menu summary {
    display: grid;
    grid-template-columns: minmax(0, 0.38fr) minmax(0, 0.62fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 8px 0;
    color: inherit;
    cursor: pointer;
    list-style: none;
}

.education-config-menu summary::-webkit-details-marker {
    display: none;
}

.education-config-menu summary span {
    color: var(--night);
    font-size: 13px;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.education-config-menu summary small {
    min-width: 0;
    overflow: hidden;
    color: rgba(7, 17, 34, 0.68);
    font-size: 13px;
    font-weight: 850;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.education-config-menu summary::after {
    width: 9px;
    height: 9px;
    border-right: 2px solid rgba(7, 17, 34, 0.62);
    border-bottom: 2px solid rgba(7, 17, 34, 0.62);
    content: "";
    transform: rotate(45deg) translateY(-2px);
}

.education-config-menu[open] summary::after {
    transform: rotate(225deg) translateY(-1px);
}

.education-config-menu__content {
    display: grid;
    gap: 8px;
    padding: 0 0 12px;
}

.education-config-menu[open] .education-config-menu__content {
    max-height: min(34vh, 270px);
    overflow: auto;
    padding-right: 4px;
}

.education-main .education-config-menu[open] {
    z-index: 8;
}

.education-main .education-config-menu[open] .education-config-menu__content {
    position: absolute;
    top: calc(100% - 1px);
    left: 0;
    right: 0;
    z-index: 12;
    width: min(420px, calc(100vw - 48px));
    min-width: min(320px, calc(100vw - 48px));
    max-height: min(46vh, 360px);
    padding: 12px;
    border: 1px solid rgba(15, 35, 70, 0.16);
    border-radius: 0 0 8px 8px;
    background: rgba(255, 253, 248, 0.98);
    box-shadow: 0 18px 42px rgba(7, 17, 34, 0.18);
}

.education-main .education-config-menu:nth-of-type(even)[open] .education-config-menu__content {
    right: 0;
    left: auto;
}

.education-config-menu__content--inline {
    grid-template-columns: repeat(auto-fit, minmax(140px, max-content));
    gap: 10px 18px;
}

.education-gemini-box {
    grid-template-columns: minmax(0, 1fr) minmax(82px, 120px);
    align-items: end;
}

.education-gemini-box label:first-child,
.education-gemini-box button,
.education-gemini-box p {
    grid-column: 1 / -1;
}

.education-gemini-box textarea {
    min-height: 92px;
    resize: vertical;
}

.education-config-menu__content--inline label,
.education-game-bounds label {
    display: grid;
    gap: 7px;
    color: var(--night);
    font-weight: 850;
}

.education-topic-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding-bottom: 2px;
}

.education-topic-actions button {
    min-height: 32px;
    padding: 6px 9px;
    border: 1px solid var(--selection-off-border);
    border-radius: 7px;
    color: var(--selection-off-text);
    background: var(--selection-off-bg);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
}

.education-topic-actions button:hover,
.education-topic-actions button:focus-visible {
    border-color: var(--selection-on-border);
    color: var(--selection-on-text);
    background: var(--selection-on-bg);
}

.education-filter-help {
    margin: 0 0 -2px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 820;
}

.education-filter-chips {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
}

.education-filter-chips label {
    display: grid;
    grid-template-columns: auto minmax(120px, 0.28fr) minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 9px 11px;
    border: 1px solid var(--selection-off-border);
    border-radius: 7px;
    color: var(--selection-off-text);
    background: var(--selection-off-bg);
    cursor: pointer;
    font-size: 14px;
    font-weight: 900;
}

.education-config-menu .education-filter-chips label {
    min-height: 38px;
    padding: 8px 0;
    border: 0;
    border-top: 1px solid rgba(7, 17, 34, 0.1);
    border-radius: 0;
    color: var(--night);
    background: transparent;
}

.education-filter-chips input {
    width: auto;
    min-width: 18px;
    min-height: 18px;
}

.education-filter-chips small {
    min-width: 0;
    overflow: hidden;
    color: rgba(255, 253, 248, 0.68);
    font-size: 13px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.education-config-menu .education-filter-chips small {
    color: rgba(7, 17, 34, 0.62);
}

.education-filter-chips label:has(input:checked) {
    border-color: var(--selection-on-border);
    color: var(--selection-on-text);
    background: var(--selection-on-bg);
    box-shadow: var(--selection-on-shadow);
}

.education-config-menu .education-filter-chips label:has(input:checked) {
    border-color: rgba(7, 17, 34, 0.14);
    color: var(--night);
    background: rgba(255, 253, 248, 0.28);
    box-shadow: none;
}

.education-filter-chips label:has(input:checked) small {
    color: rgba(7, 17, 34, 0.68);
}

.education-level-select {
    position: relative;
}

.education-level-select summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid var(--selection-off-border);
    border-radius: 7px;
    color: var(--selection-off-text);
    background: var(--selection-off-bg);
    cursor: pointer;
    font-size: 13px;
    font-weight: 900;
}

.education-level-select summary::after {
    width: 8px;
    height: 8px;
    border-right: 2px solid rgba(255, 253, 248, 0.78);
    border-bottom: 2px solid rgba(255, 253, 248, 0.78);
    content: "";
    transform: rotate(45deg) translateY(-2px);
}

.education-level-select[open] summary {
    border-color: var(--selection-on-border);
    border-radius: 7px 7px 0 0;
    color: var(--selection-on-text);
    background: var(--selection-on-bg);
}

.education-level-select[open] summary::after {
    border-color: rgba(7, 17, 34, 0.7);
}

.education-level-list {
    display: grid;
    gap: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.education-level-group {
    gap: 5px;
}

.education-level-children {
    display: grid;
    gap: 0;
    margin-left: 16px;
    padding-left: 10px;
    border-left: 2px solid rgba(47, 143, 157, 0.18);
}

.education-level-row--depth-0 {
    border-color: rgba(7, 17, 34, 0.1);
    background: transparent;
}

.education-level-row--depth-1 {
    background: transparent;
}

.education-level-list label.is-inherited {
    color: rgba(92, 104, 126, 0.78);
    background: rgba(255, 255, 255, 0.22);
    cursor: not-allowed;
}

.education-level-list label.is-inherited span,
.education-level-list label.is-inherited small {
    color: rgba(92, 104, 126, 0.7);
}

.education-topic-list {
    display: grid;
    gap: 0;
}

.education-topic-group {
    display: grid;
    gap: 0;
    overflow: hidden;
    border: 0;
    border-top: 1px solid rgba(7, 17, 34, 0.12);
    border-radius: 0;
    background: transparent;
}

.education-topic-group summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    padding: 8px 0;
    color: var(--night);
    background: transparent;
    cursor: pointer;
    list-style: none;
}

.education-topic-group summary::-webkit-details-marker {
    display: none;
}

.education-topic-group summary::after {
    width: 9px;
    height: 9px;
    border-right: 2px solid rgba(7, 17, 34, 0.62);
    border-bottom: 2px solid rgba(7, 17, 34, 0.62);
    content: "";
    transform: rotate(45deg) translateY(-2px);
}

.education-topic-group[open] summary::after {
    transform: rotate(225deg) translateY(-1px);
}

.education-topic-group[open] {
    border-color: rgba(7, 17, 34, 0.16);
    background: transparent;
    box-shadow: none;
}

.education-topic-group[open] summary {
    color: var(--selection-on-text);
}

.education-topic-group strong {
    color: inherit;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.education-topic-group summary small {
    color: rgba(7, 17, 34, 0.62);
    font-size: 12px;
    font-weight: 850;
}

.education-topic-group[open] summary small {
    color: rgba(7, 17, 34, 0.68);
}

.education-topic-group label {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    padding: 6px 0;
    border-top: 1px solid rgba(7, 17, 34, 0.08);
    border-radius: 0;
    background: transparent;
    font-size: 13px;
}

.education-topic-list .education-topic-group {
    padding-right: 2px;
}

.education-topic-list .education-topic-group[open] {
    padding-bottom: 4px;
}

.education-topic-list .education-topic-group label {
    grid-template-columns: auto minmax(76px, 0.24fr) minmax(0, 1fr);
}

.education-topic-group summary + label,
.education-topic-group label + label {
    margin: 0;
}

.education-topic-group label:last-child {
    margin-bottom: 4px;
}

.education-topic-group label input {
    width: auto;
}

.education-topic-group label span {
    color: var(--night);
    font-weight: 950;
}

.education-topic-group label small {
    min-width: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.education-game-bounds {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.education-game-status {
    min-height: 20px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
}

.education-game-status[data-state="success"] {
    color: #2b7e5c;
}

.education-game-status[data-state="error"] {
    color: #c94a38;
}

.education-game-standby {
    display: grid;
    align-content: center;
    min-height: min(620px, calc(100vh - 170px));
    padding: clamp(22px, 5vw, 48px);
    border: 1px solid rgba(16, 23, 38, 0.1);
    border-radius: 8px;
    color: var(--night);
    background:
        radial-gradient(circle at 18% 18%, rgba(245, 195, 106, 0.18), transparent 34%),
        rgba(255, 253, 248, 0.74);
    box-shadow: 0 22px 62px rgba(16, 23, 38, 0.12);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.education-game-standby .tool-card__label {
    color: var(--amber-dark);
}

.education-game-standby h2 {
    margin: 0;
    color: var(--night);
    font-size: clamp(34px, 6vw, 72px);
    line-height: 0.98;
}

.education-game-standby p:not(.tool-card__label) {
    max-width: 650px;
    color: var(--muted);
    font-size: clamp(17px, 2.2vw, 22px);
}

.education-mini-game {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-height: 260px;
    overflow: hidden;
    border: 1px solid rgba(113, 199, 216, 0.24);
    border-radius: 8px;
    background: #071020;
    box-shadow: inset 0 0 0 1px rgba(245, 248, 255, 0.04), 0 18px 48px rgba(6, 11, 26, 0.22);
}

.education-mini-game-preview {
    display: grid;
    gap: 12px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(7, 17, 34, 0.12);
}

.education-mini-game-preview[hidden] {
    display: none;
}

.education-mini-game-preview__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.education-mini-game-preview h3 {
    margin: 2px 0 0;
    color: var(--night);
    font-size: 1.1rem;
}

.education-mini-game-preview__controls {
    display: grid;
    justify-items: end;
    gap: 6px;
}

.education-mini-game-preview__buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.education-mini-game-preview__buttons button {
    max-width: 160px;
    min-height: 32px;
    display: grid;
    gap: 1px;
    align-content: center;
    padding: 5px 10px;
    border: 1px solid rgba(7, 17, 34, 0.14);
    border-radius: 7px;
    color: var(--night);
    background: rgba(255, 255, 255, 0.7);
    font-weight: 700;
    cursor: pointer;
}

.education-mini-game-preview__button-label,
.education-mini-game-preview__button-meta {
    display: block;
    line-height: 1.12;
    overflow-wrap: anywhere;
}

.education-mini-game-preview__button-meta {
    color: rgba(7, 17, 34, 0.58);
    font-size: 0.68rem;
    font-weight: 800;
}

.education-mini-game-preview__buttons button:hover,
.education-mini-game-preview__buttons button:focus-visible,
.education-mini-game-preview__buttons button.is-active {
    border-color: rgba(47, 132, 151, 0.42);
    color: #0f6172;
    background: rgba(113, 199, 216, 0.2);
}

.education-mini-game-preview__buttons button:hover .education-mini-game-preview__button-meta,
.education-mini-game-preview__buttons button:focus-visible .education-mini-game-preview__button-meta,
.education-mini-game-preview__buttons button.is-active .education-mini-game-preview__button-meta {
    color: #0f6172;
}

.education-mini-game-preview__status {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.education-mini-game-preview__catalog {
    margin: -4px 0 0;
    color: #285161;
    font-size: 0.78rem;
}

.education-mini-game-preview__stage {
    width: 100%;
    height: clamp(210px, 28vw, 310px);
}

.star-survival {
    width: 100%;
    max-width: 100%;
    background: #071020;
}

.education-mini-game--between {
    min-height: 210px;
    height: clamp(210px, 26vw, 300px);
    margin-top: 10px;
}

.education-mini-game--scene,
.education-mini-game--window {
    min-height: 210px;
    height: 100%;
    margin: 0;
}

.education-mini-game--window {
    height: clamp(210px, 26vw, 300px);
}

.education-mini-game__summary {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 4;
    min-height: 28px;
    display: inline-grid;
    place-items: center;
    max-width: calc(100% - 24px);
    padding: 5px 9px;
    border: 1px solid rgba(245, 195, 106, 0.3);
    border-radius: 7px;
    background: rgba(7, 16, 32, 0.72);
    color: #f5c36a;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-game-scene-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 8;
    display: grid;
    justify-items: end;
    gap: 6px;
    color: #f7fbff;
    font-size: 12px;
    font-weight: 850;
    pointer-events: auto;
}

.mini-game-scene-controls__bar {
    display: flex;
    gap: 6px;
}

.mini-game-scene-controls__button,
.mini-game-scene-controls__action,
.mini-game-scene-controls__difficulty select {
    min-height: 30px;
    border: 1px solid rgba(245, 248, 255, 0.2);
    border-radius: 7px;
    color: #f7fbff;
    background: rgba(7, 16, 32, 0.68);
    box-shadow: 0 10px 24px rgba(6, 11, 26, 0.18);
    font: inherit;
}

.mini-game-scene-controls__button,
.mini-game-scene-controls__action {
    display: inline-grid;
    place-items: center;
    padding: 5px 9px;
    cursor: pointer;
}

.mini-game-scene-controls__button:hover,
.mini-game-scene-controls__button:focus-visible,
.mini-game-scene-controls__action:hover,
.mini-game-scene-controls__action:focus-visible,
.mini-game-scene-controls__difficulty select:focus-visible {
    outline: none;
    border-color: rgba(245, 195, 106, 0.68);
    background: rgba(20, 35, 54, 0.86);
}

.mini-game-scene-controls__panel {
    width: min(220px, calc(100vw - 32px));
    display: grid;
    gap: 7px;
    padding: 9px;
    border: 1px solid rgba(245, 248, 255, 0.18);
    border-radius: 8px;
    background: rgba(7, 16, 32, 0.86);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(5px);
}

.mini-game-scene-controls__panel[hidden] {
    display: none;
}

.mini-game-scene-controls__state {
    overflow: hidden;
    color: rgba(245, 248, 255, 0.86);
    font-size: 0.78rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-game-scene-controls__score {
    min-height: 28px;
    display: inline-grid;
    place-items: center;
    padding: 5px 8px;
    border: 1px solid rgba(245, 195, 106, 0.24);
    border-radius: 7px;
    color: #f5c36a;
    background: rgba(245, 195, 106, 0.08);
    font-size: 0.8rem;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.mini-game-scene-controls__difficulty {
    display: grid;
    gap: 4px;
    color: rgba(245, 248, 255, 0.72);
    font-size: 0.72rem;
    text-transform: uppercase;
}

.mini-game-scene-controls__difficulty select {
    width: 100%;
    padding: 5px 8px;
    color-scheme: dark;
}

.star-survival--standby {
    width: min(100%, 760px);
    height: clamp(280px, 34vw, 390px);
    margin-top: clamp(18px, 3vw, 28px);
}

.star-survival--preview {
    width: 100%;
    height: clamp(210px, 28vw, 310px);
}

.star-survival--between {
    min-height: 210px;
}

.star-survival__canvas {
    width: 100%;
    height: 100%;
    display: block;
    touch-action: none;
    cursor: crosshair;
}

.star-survival__canvas:focus-visible {
    outline: 3px solid rgba(245, 195, 106, 0.78);
    outline-offset: -5px;
}

.star-survival__assistive {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.star-survival__hud {
    position: absolute;
    top: 10px;
    right: 10px;
    left: 10px;
    z-index: 2;
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 8px;
    pointer-events: none;
}

.star-survival.has-mini-game-scene-controls .star-survival__hud {
    top: 48px;
}

.star-survival__hud-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.star-survival__metric,
.star-survival__tempo,
.star-survival__status {
    min-height: 28px;
    display: inline-grid;
    place-items: center;
    padding: 5px 8px;
    border: 1px solid rgba(245, 248, 255, 0.16);
    border-radius: 7px;
    color: var(--white);
    background: rgba(6, 11, 26, 0.58);
    box-shadow: 0 8px 22px rgba(6, 11, 26, 0.2);
    font-size: 12px;
    font-weight: 950;
    line-height: 1;
    white-space: nowrap;
}

.star-survival__metric:first-child {
    color: #7df0aa;
}

.star-survival__target {
    color: #f5c36a;
    max-width: min(56vw, 360px);
    justify-content: start;
    overflow: hidden;
    text-overflow: ellipsis;
}

.star-survival__tempo {
    color: var(--cyan-soft);
}

.star-survival__status {
    color: var(--amber);
}

.star-survival__gameover {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    place-items: center;
    gap: 10px;
    align-content: center;
    padding: 18px;
    color: var(--white);
    background: rgba(7, 16, 32, 0.72);
    backdrop-filter: blur(4px);
}

.star-survival__gameover[hidden] {
    display: none;
}

.star-survival__gameover strong {
    font-size: clamp(1.1rem, 2.4vw, 1.6rem);
    line-height: 1.1;
}

.star-survival__gameover-summary {
    color: rgba(245, 248, 255, 0.78);
    font-size: 0.88rem;
    font-weight: 800;
    text-align: center;
}

.star-survival__gameover-controls {
    display: flex;
    align-items: end;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.star-survival__gameover label {
    display: grid;
    gap: 4px;
    color: rgba(245, 248, 255, 0.76);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.star-survival__gameover select,
.star-survival__gameover button {
    min-height: 34px;
    border: 1px solid rgba(245, 195, 106, 0.34);
    border-radius: 7px;
    color: var(--white);
    background: rgba(6, 11, 26, 0.86);
    font-weight: 900;
}

.star-survival__gameover select {
    padding: 0 28px 0 10px;
}

.star-survival__gameover button {
    padding: 0 14px;
    cursor: pointer;
}

.star-survival__gameover button:hover,
.star-survival__gameover button:focus-visible {
    border-color: rgba(245, 195, 106, 0.72);
    background: rgba(245, 195, 106, 0.18);
}

.spark-memory {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 210px;
    overflow: hidden;
    border: 1px solid rgba(113, 199, 216, 0.24);
    border-radius: 8px;
    background:
        radial-gradient(circle at 20% 20%, rgba(113, 199, 216, 0.18), transparent 28%),
        radial-gradient(circle at 80% 72%, rgba(245, 195, 106, 0.14), transparent 32%),
        #071020;
    box-shadow: inset 0 0 0 1px rgba(245, 248, 255, 0.04), 0 18px 48px rgba(6, 11, 26, 0.22);
}

.spark-memory--preview {
    width: 100%;
    height: clamp(210px, 28vw, 310px);
}

.spark-memory--between {
    min-height: 210px;
    height: clamp(210px, 26vw, 300px);
    margin-top: 10px;
}

.spark-memory__grid {
    width: min(78%, 310px);
    aspect-ratio: 1;
    display: grid;
    grid-template-columns: repeat(var(--spark-memory-columns, 2), minmax(0, 1fr));
    gap: clamp(10px, 2vw, 16px);
}

.spark-memory__pad {
    position: relative;
    display: grid;
    place-items: center;
    border: 1px solid rgba(245, 248, 255, 0.24);
    border-radius: 8px;
    background: rgba(245, 248, 255, 0.08);
    color: rgba(245, 248, 255, 0.72);
    cursor: pointer;
    touch-action: manipulation;
    transition: transform 120ms ease, background 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.spark-memory__key {
    position: absolute;
    top: 8px;
    right: 9px;
    min-width: 1.3em;
    color: rgba(245, 248, 255, 0.74);
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    pointer-events: none;
}

.spark-memory__pad--0 {
    box-shadow: inset 0 0 26px rgba(113, 199, 216, 0.18);
}

.spark-memory__pad--1 {
    box-shadow: inset 0 0 26px rgba(126, 231, 167, 0.16);
}

.spark-memory__pad--2 {
    box-shadow: inset 0 0 26px rgba(245, 195, 106, 0.16);
}

.spark-memory__pad--3 {
    box-shadow: inset 0 0 26px rgba(214, 98, 98, 0.16);
}

.spark-memory__pad--4 {
    box-shadow: inset 0 0 26px rgba(167, 139, 250, 0.16);
}

.spark-memory__pad--5 {
    box-shadow: inset 0 0 26px rgba(251, 146, 60, 0.16);
}

.spark-memory__pad--6 {
    box-shadow: inset 0 0 26px rgba(45, 212, 191, 0.16);
}

.spark-memory__pad--7 {
    box-shadow: inset 0 0 26px rgba(248, 113, 113, 0.16);
}

.spark-memory__pad--8 {
    box-shadow: inset 0 0 26px rgba(147, 197, 253, 0.16);
}

.spark-memory__pad:hover,
.spark-memory__pad:focus-visible {
    transform: translateY(-1px) scale(1.03);
    background: rgba(113, 199, 216, 0.42);
    box-shadow: 0 0 28px rgba(113, 199, 216, 0.36);
    outline: none;
}

.spark-memory__pad.is-active {
    transform: translateY(-1px) scale(1.03);
    border-color: rgba(245, 195, 106, 0.72);
    background: rgba(245, 195, 106, 0.42);
    box-shadow: 0 0 30px rgba(245, 195, 106, 0.38);
    outline: none;
}

.spark-memory__pad.is-hit {
    transform: translateY(-1px) scale(1.03);
    border-color: rgba(126, 231, 167, 0.72);
    background: rgba(126, 231, 167, 0.38);
    box-shadow: 0 0 30px rgba(126, 231, 167, 0.34);
    outline: none;
}

.spark-memory__pad.is-error {
    background: rgba(214, 98, 98, 0.48);
    box-shadow: 0 0 28px rgba(214, 98, 98, 0.38);
}

.spark-memory.is-showing-sequence .spark-memory__pad {
    border-color: rgba(245, 248, 255, 0.16);
    background: rgba(7, 16, 32, 0.78);
    color: rgba(245, 248, 255, 0.5);
}

.spark-memory.is-showing-sequence .spark-memory__key {
    opacity: 0.55;
}

.spark-memory.is-showing-sequence .spark-memory__pad.is-active {
    border-color: rgba(245, 195, 106, 0.72);
    background: rgba(245, 195, 106, 0.42);
    box-shadow: 0 0 30px rgba(245, 195, 106, 0.38);
}

.spark-memory.is-input-ready .spark-memory__pad:not(.is-hit):not(.is-error),
.spark-memory.is-playing .spark-memory__pad:not(.is-hit):not(.is-error) {
    background: rgba(245, 248, 255, 0.14);
}

.spark-memory.is-observing .spark-memory__pad {
    cursor: default;
}

.spark-memory.is-observing:not(.is-showing-sequence) .spark-memory__pad:hover {
    background: rgba(245, 248, 255, 0.08);
    transform: none;
    box-shadow: inset 0 0 26px rgba(113, 199, 216, 0.12);
}

.spark-memory__prompt {
    position: absolute;
    inset: clamp(14px, 3vw, 28px);
    z-index: 4;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    border: 1px solid rgba(245, 248, 255, 0.24);
    border-radius: 8px;
    padding: 18px;
    color: rgba(245, 248, 255, 0.94);
    background: rgba(7, 16, 32, 0.88);
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.28);
    cursor: pointer;
}

.spark-memory__prompt[hidden] {
    display: none;
}

.spark-memory__prompt strong {
    font-size: clamp(1.15rem, 2.4vw, 1.65rem);
}

.spark-memory__prompt span {
    color: rgba(245, 248, 255, 0.7);
    font-weight: 800;
}

.spark-memory.is-prompting .spark-memory__grid {
    filter: saturate(0.74) brightness(0.72);
}

.spark-memory__hud {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: rgba(245, 248, 255, 0.86);
    font-size: 0.82rem;
    font-weight: 800;
}

.spark-memory__assistive {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.signal-reflex {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 210px;
    overflow: hidden;
    border: 1px solid rgba(126, 231, 167, 0.24);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(113, 199, 216, 0.13), rgba(126, 231, 167, 0.08)),
        #08131d;
    box-shadow: inset 0 0 0 1px rgba(245, 248, 255, 0.04), 0 18px 48px rgba(6, 11, 26, 0.22);
}

.signal-reflex--preview {
    width: 100%;
    height: clamp(210px, 28vw, 310px);
}

.signal-reflex--between {
    min-height: 210px;
    height: clamp(210px, 26vw, 300px);
    margin-top: 10px;
}

.signal-reflex__grid {
    width: min(74%, 280px);
    aspect-ratio: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(8px, 1.7vw, 13px);
}

.signal-reflex__cell {
    border: 1px solid rgba(245, 248, 255, 0.2);
    border-radius: 8px;
    background: rgba(245, 248, 255, 0.07);
    cursor: pointer;
    touch-action: manipulation;
    transition: transform 90ms ease, background 90ms ease, box-shadow 90ms ease;
}

.signal-reflex__cell:hover,
.signal-reflex__cell:focus-visible {
    outline: none;
    background: rgba(245, 248, 255, 0.13);
}

.signal-reflex__cell.is-active {
    transform: scale(1.05);
    background: rgba(126, 231, 167, 0.48);
    box-shadow: 0 0 30px rgba(126, 231, 167, 0.42);
}

.signal-reflex__cell.is-hit {
    background: rgba(113, 199, 216, 0.52);
    box-shadow: 0 0 28px rgba(113, 199, 216, 0.38);
}

.signal-reflex__cell.is-miss {
    background: rgba(214, 98, 98, 0.52);
    box-shadow: 0 0 28px rgba(214, 98, 98, 0.36);
}

.signal-reflex__timer {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 48px;
    height: 6px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(245, 248, 255, 0.14);
}

.signal-reflex__timer i {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #7ee7a7, #f5c36a, #d66262);
    transform-origin: left center;
}

.signal-reflex__timer.is-running i {
    animation: signal-reflex-timer var(--signal-reflex-ms, 860ms) linear forwards;
}

@keyframes signal-reflex-timer {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}

.signal-reflex__hud {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: rgba(245, 248, 255, 0.86);
    font-size: 0.82rem;
    font-weight: 800;
}

.signal-reflex__assistive {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.pulse-timing {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 210px;
    overflow: hidden;
    border: 1px solid rgba(245, 195, 106, 0.25);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(245, 195, 106, 0.12), rgba(113, 199, 216, 0.08)),
        #08111a;
    box-shadow: inset 0 0 0 1px rgba(245, 248, 255, 0.04), 0 18px 48px rgba(6, 11, 26, 0.22);
}

.pulse-timing--preview {
    width: 100%;
    height: clamp(210px, 28vw, 310px);
}

.pulse-timing--between {
    min-height: 210px;
    height: clamp(210px, 26vw, 300px);
    margin-top: 10px;
}

.pulse-timing__stage {
    width: min(78%, 420px);
    padding-bottom: 56px;
    display: grid;
    justify-items: center;
}

.pulse-timing__dial {
    position: relative;
    width: clamp(150px, 30vw, 220px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
}

.pulse-timing__readout {
    min-width: min(230px, 90%);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 7px 10px;
    border: 1px solid rgba(245, 248, 255, 0.16);
    border-radius: 8px;
    color: rgba(245, 248, 255, 0.82);
    background: rgba(7, 17, 34, 0.58);
    box-shadow: inset 0 0 0 1px rgba(245, 248, 255, 0.035);
}

.pulse-timing__readout strong {
    min-width: 0;
    overflow: hidden;
    color: #f5c36a;
    font-size: 0.92rem;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pulse-timing__readout span {
    color: rgba(245, 248, 255, 0.64);
    font-size: 0.72rem;
    font-weight: 850;
}

.pulse-timing__rail {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid rgba(245, 248, 255, 0.2);
    border-radius: 50%;
    background:
        radial-gradient(circle, #08111a 0 52%, rgba(8, 17, 26, 0.72) 53%, transparent 55%),
        conic-gradient(from -90deg,
            rgba(245, 248, 255, 0.12) 0deg var(--pulse-target-start, 148deg),
            rgba(126, 231, 167, 0.88) var(--pulse-target-start, 148deg) var(--pulse-target-end, 212deg),
            rgba(245, 248, 255, 0.12) var(--pulse-target-end, 212deg) 360deg);
    box-shadow:
        inset 0 0 24px rgba(6, 11, 26, 0.42),
        0 0 32px rgba(245, 195, 106, 0.12);
}

.pulse-timing__target {
    display: none;
}

.pulse-timing__marker {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 5px;
    height: 42%;
    border-radius: 999px;
    background: #f5c36a;
    box-shadow: 0 0 22px rgba(245, 195, 106, 0.62);
    transform: translate(-50%, -100%) rotate(var(--pulse-marker-angle, 0deg));
    transform-origin: 50% 100%;
}

.pulse-timing__marker::after {
    content: "";
    position: absolute;
    left: 50%;
    top: -7px;
    width: 15px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #fff0c8;
    box-shadow: 0 0 20px rgba(245, 195, 106, 0.7);
    transform: translateX(-50%);
}

.pulse-timing__marker.is-running {
    animation: pulseTimingSweep var(--pulse-period, 1200ms) linear infinite;
}

.pulse-timing__trigger {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: clamp(58px, 9vw, 76px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border: 1px solid rgba(245, 248, 255, 0.24);
    border-radius: 50%;
    color: #071122;
    background: #f5c36a;
    box-shadow: 0 12px 30px rgba(245, 195, 106, 0.28);
    cursor: pointer;
    touch-action: manipulation;
    font-size: 0.82rem;
    font-weight: 950;
    letter-spacing: 0;
    line-height: 1;
    transform: translate(-50%, -50%);
    transition: transform 100ms ease, background 100ms ease, box-shadow 100ms ease;
}

.pulse-timing__trigger span {
    display: grid;
    place-items: center;
    width: 74%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
}

.pulse-timing__trigger:hover,
.pulse-timing__trigger:focus-visible {
    outline: none;
    transform: translate(-50%, -52%) scale(1.03);
    background: #ffe1a3;
}

.pulse-timing.is-hit .pulse-timing__trigger {
    background: #7ee7a7;
    box-shadow: 0 0 28px rgba(126, 231, 167, 0.42);
}

.pulse-timing.is-miss .pulse-timing__trigger {
    color: var(--white);
    background: #d66262;
    box-shadow: 0 0 28px rgba(214, 98, 98, 0.38);
}

.pulse-timing__feedback {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.pulse-timing__float {
    position: absolute;
    left: 50%;
    top: 38%;
    transform: translate(-50%, 0);
    min-width: 54px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(7, 17, 34, 0.72);
    color: var(--white);
    font-weight: 900;
    text-align: center;
    box-shadow: 0 12px 28px rgba(7, 17, 34, 0.2);
    animation: pulseTimingFloat 1050ms ease forwards;
}

.pulse-timing__float.is-positive {
    color: #7ee7a7;
}

.pulse-timing__float.is-negative {
    color: #ffaaa3;
}

.pulse-timing__hud {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    align-items: center;
    gap: 7px;
    color: rgba(245, 248, 255, 0.86);
    font-size: 0.74rem;
    font-weight: 800;
}

.pulse-timing__chip,
.pulse-timing__state {
    min-width: 0;
    min-height: 42px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 2px;
    padding: 6px 8px;
    border: 1px solid rgba(245, 248, 255, 0.14);
    border-radius: 7px;
    background: rgba(7, 17, 34, 0.64);
    box-shadow: inset 0 0 0 1px rgba(245, 248, 255, 0.035);
    line-height: 1.05;
}

.pulse-timing__chip small {
    color: rgba(245, 248, 255, 0.58);
    font-size: 0.62rem;
    font-weight: 800;
}

.pulse-timing__chip strong {
    color: #f7fbff;
    font-size: 0.9rem;
    font-weight: 950;
}

.pulse-timing__chip.is-score strong {
    color: #f5c36a;
}

.pulse-timing__state {
    min-width: 58px;
    color: #071122;
    background: #f5c36a;
    font-size: 0.78rem;
    font-weight: 950;
}

.pulse-timing__assistive {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

@keyframes pulseTimingSweep {
    0% {
        transform: translate(-50%, -100%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -100%) rotate(360deg);
    }
}

@keyframes pulseTimingFloat {
    0% {
        opacity: 0;
        transform: translate(-50%, 10px) scale(0.92);
    }

    18% {
        opacity: 1;
        transform: translate(-50%, -10px) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -52px) scale(0.96);
    }
}

.comet-lanes {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 220px;
    overflow: hidden;
    border: 1px solid rgba(113, 199, 216, 0.26);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(113, 199, 216, 0.12), rgba(214, 98, 98, 0.08)),
        #071122;
    box-shadow: inset 0 0 0 1px rgba(245, 248, 255, 0.04), 0 18px 48px rgba(6, 11, 26, 0.22);
}

.comet-lanes--preview {
    width: 100%;
    height: clamp(220px, 28vw, 320px);
}

.comet-lanes--between {
    min-height: 220px;
    height: clamp(220px, 26vw, 310px);
    margin-top: 10px;
}

.comet-lanes__grid {
    width: min(78%, 420px);
    height: min(70%, 230px);
    margin-bottom: 56px;
    display: grid;
    grid-template-columns: repeat(var(--comet-lanes-count, 5), minmax(42px, 1fr));
    grid-template-rows: repeat(var(--comet-lanes-rows, 5), minmax(28px, 1fr));
    gap: 7px;
}

.comet-lanes__cell {
    position: relative;
    min-height: 0;
    display: grid;
    place-items: center;
    border: 1px solid rgba(245, 248, 255, 0.13);
    border-radius: 8px;
    background: rgba(245, 248, 255, 0.06);
    color: rgba(245, 248, 255, 0.9);
    cursor: pointer;
    touch-action: manipulation;
    transition: transform 100ms ease, border-color 100ms ease, background 100ms ease, box-shadow 100ms ease;
}

.comet-lanes__icon {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 22px;
    aspect-ratio: 1;
    color: currentColor;
    font-size: 0.95rem;
    font-weight: 950;
    line-height: 1;
}

.comet-lanes__cell:hover,
.comet-lanes__cell:focus-visible {
    outline: none;
    border-color: rgba(245, 195, 106, 0.5);
    background: rgba(245, 195, 106, 0.1);
}

.comet-lanes__cell::before,
.comet-lanes__cell::after {
    content: "";
    position: absolute;
    inset: 50% auto auto 50%;
    width: 16px;
    aspect-ratio: 1;
    border-radius: 50%;
    opacity: 0;
    transform: translate(-50%, -50%);
}

.comet-lanes__cell.is-player-lane {
    border-color: rgba(245, 195, 106, 0.22);
    background: rgba(245, 195, 106, 0.055);
}

.comet-lanes__cell.is-bottom-row {
    box-shadow: inset 0 -2px 0 rgba(245, 195, 106, 0.26);
}

.comet-lanes__cell.is-top-row {
    box-shadow: inset 0 2px 0 rgba(113, 199, 216, 0.18);
}

.comet-lanes__cell.is-hazard::before {
    opacity: 1;
    width: 24px;
    height: 14px;
    aspect-ratio: auto;
    border-radius: 999px 45% 45% 999px;
    background: linear-gradient(90deg, #ffb579 0 18%, #ff6b6b 44%, #9d2435 100%);
    box-shadow:
        -12px 0 0 -6px rgba(245, 195, 106, 0.8),
        -18px 0 0 -9px rgba(255, 255, 255, 0.5),
        0 0 18px rgba(214, 98, 98, 0.5);
    transform: translate(-50%, -50%) rotate(8deg);
}

.comet-lanes__cell.is-hazard .comet-lanes__icon {
    color: #fff7ed;
    text-shadow: 0 1px 7px rgba(76, 17, 26, 0.72);
}

.comet-lanes__cell.is-bonus::before {
    opacity: 1;
    width: 22px;
    display: grid;
    place-items: center;
    background: #7ee7a7;
    color: #071122;
    font-size: 1rem;
    font-weight: 950;
    line-height: 1;
    box-shadow: 0 0 18px rgba(126, 231, 167, 0.5), 0 0 0 4px rgba(126, 231, 167, 0.08);
}

.comet-lanes__cell.is-bonus .comet-lanes__icon {
    color: #071122;
}

.comet-lanes__cell.is-player::after {
    width: 0;
    height: 0;
    aspect-ratio: auto;
    opacity: 1;
    border-right: 12px solid transparent;
    border-bottom: 24px solid #f5c36a;
    border-left: 12px solid transparent;
    border-radius: 3px;
    filter: drop-shadow(0 0 12px rgba(245, 195, 106, 0.7));
    transform: translate(-50%, -56%);
}

.comet-lanes__cell.is-player .comet-lanes__icon {
    color: #071122;
    transform: translateY(2px);
}

.comet-lanes__hud {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    align-items: center;
    gap: 7px;
    color: rgba(245, 248, 255, 0.86);
    font-size: 0.74rem;
    font-weight: 800;
}

.comet-lanes__chip,
.comet-lanes__state {
    min-width: 0;
    min-height: 42px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 2px;
    padding: 6px 8px;
    border: 1px solid rgba(245, 248, 255, 0.14);
    border-radius: 7px;
    background: rgba(7, 17, 34, 0.64);
    box-shadow: inset 0 0 0 1px rgba(245, 248, 255, 0.035);
    line-height: 1.05;
}

.comet-lanes__chip small {
    color: rgba(245, 248, 255, 0.58);
    font-size: 0.62rem;
    font-weight: 800;
}

.comet-lanes__chip strong {
    color: #f7fbff;
    font-size: 0.9rem;
    font-weight: 950;
}

.comet-lanes__chip.is-score strong {
    color: #f5c36a;
}

.comet-lanes__state {
    min-width: 58px;
    color: #071122;
    background: #7ee7a7;
    font-size: 0.78rem;
    font-weight: 950;
}

.comet-lanes__assistive {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.path-sequence {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 220px;
    overflow: hidden;
    border-radius: 7px;
    background:
        radial-gradient(circle at 28% 22%, rgba(126, 231, 167, 0.22), transparent 28%),
        radial-gradient(circle at 76% 76%, rgba(245, 195, 106, 0.16), transparent 26%),
        linear-gradient(145deg, rgba(8, 14, 30, 0.96), rgba(19, 46, 55, 0.92));
    color: #f7fbff;
    touch-action: manipulation;
}

.path-sequence--preview {
    width: 100%;
    height: clamp(220px, 28vw, 320px);
}

.path-sequence--between {
    min-height: 220px;
    height: clamp(220px, 26vw, 310px);
    margin-top: 10px;
}

.path-sequence__stage {
    width: min(82%, 420px);
    display: grid;
    gap: clamp(16px, 3vw, 24px);
    justify-items: center;
}

.path-sequence__trace {
    min-height: 34px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.path-sequence__trace span {
    width: 30px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border: 1px solid rgba(245, 248, 255, 0.22);
    border-radius: 7px;
    color: rgba(245, 248, 255, 0.72);
    background: rgba(245, 248, 255, 0.08);
}

.path-sequence__trace span.is-done {
    color: #10231b;
    background: #7ee7a7;
}

.path-sequence__pad {
    width: min(220px, 70vw);
    display: grid;
    grid-template-columns: repeat(3, 58px);
    grid-template-rows: repeat(3, 58px);
    justify-content: center;
    gap: 8px;
}

.path-sequence__button {
    display: grid;
    place-items: center;
    border: 1px solid rgba(245, 248, 255, 0.2);
    border-radius: 7px;
    color: #f7fbff;
    background: rgba(245, 248, 255, 0.1);
    font: 700 1.1rem/1 var(--font-main);
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.path-sequence__button--up {
    grid-column: 2;
    grid-row: 1;
}

.path-sequence__button--left {
    grid-column: 1;
    grid-row: 2;
}

.path-sequence__button--right {
    grid-column: 3;
    grid-row: 2;
}

.path-sequence__button--down {
    grid-column: 2;
    grid-row: 3;
}

.path-sequence__button:hover {
    outline: none;
    border-color: rgba(245, 195, 106, 0.46);
    background: rgba(245, 195, 106, 0.16);
}

.path-sequence__button.is-active {
    outline: none;
    transform: translateY(-1px) scale(1.04);
    color: #172314;
    background: #f5c36a;
    box-shadow: 0 0 24px rgba(245, 195, 106, 0.48);
}

.path-sequence__button:focus-visible {
    outline: 2px solid rgba(245, 195, 106, 0.82);
    outline-offset: 2px;
}

.path-sequence__hud {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: rgba(245, 248, 255, 0.78);
    font-size: 0.78rem;
}

.path-sequence__assistive {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.education-mini-game.star-survival,
.education-mini-game.spark-memory,
.education-mini-game.signal-reflex,
.education-mini-game.pulse-timing,
.education-mini-game.comet-lanes,
.education-mini-game.path-sequence {
    border-width: 0;
}

.mini-games-shell {
    max-width: 1180px;
}

.mini-games-featured {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    margin-top: 18px;
    border: 1px solid rgba(7, 17, 34, 0.12);
    border-radius: 8px;
    padding: clamp(14px, 2.2vw, 18px);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 18px 42px rgba(7, 17, 34, 0.08);
}

.mini-games-featured h2,
.mini-games-featured p {
    margin: 0;
}

.mini-games-featured h2 {
    margin-top: 4px;
    color: #071122;
    font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.mini-games-featured p:not(.tool-card__label) {
    margin-top: 6px;
    color: rgba(7, 17, 34, 0.68);
    line-height: 1.45;
}

.mini-games-featured__action {
    min-width: 174px;
    min-height: 48px;
    justify-content: center;
    text-align: center;
}

.mini-games-layout {
    display: grid;
    grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
    gap: clamp(16px, 2.4vw, 28px);
    align-items: start;
}

.mini-games-list,
.mini-games-play-panel {
    border: 1px solid rgba(7, 17, 34, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 18px 42px rgba(7, 17, 34, 0.08);
}

.mini-games-list {
    padding: 18px;
    position: sticky;
    top: 84px;
}

.mini-games-list h2,
.mini-games-play-panel h2,
.mini-games-help h3,
.mini-games-embed h3 {
    margin: 0;
}

.mini-games-list__items {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.mini-games-list__items button {
    display: grid;
    gap: 5px;
    width: 100%;
    border: 1px solid rgba(7, 17, 34, 0.12);
    border-radius: 8px;
    padding: 11px 12px;
    background: rgba(255, 255, 255, 0.74);
    color: #071122;
    text-align: left;
    cursor: pointer;
}

.mini-games-list__items button span {
    color: rgba(7, 17, 34, 0.68);
    font-size: 0.88rem;
    line-height: 1.35;
}

.mini-games-list__items button:hover,
.mini-games-list__items button:focus-visible,
.mini-games-list__items button.is-active {
    border-color: rgba(43, 126, 92, 0.42);
    background: rgba(229, 246, 238, 0.9);
}

.mini-games-play-panel {
    position: relative;
    display: grid;
    gap: 16px;
    padding: clamp(16px, 2.4vw, 24px);
    overflow: hidden;
}

.mini-games-play-panel__head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: start;
}

.mini-games-play-panel__head p {
    margin-bottom: 0;
}

.mini-games-play-panel__head label {
    min-width: 160px;
}

.mini-games-score-panel {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.mini-games-score-panel > div {
    min-width: 0;
    border-radius: 8px;
    padding: 10px 12px;
    background: rgba(7, 17, 34, 0.06);
}

.mini-games-score-panel span {
    display: block;
    color: rgba(7, 17, 34, 0.62);
    font-size: 0.78rem;
}

.mini-games-score-panel strong {
    display: block;
    overflow-wrap: anywhere;
    font-size: clamp(1.05rem, 1.6vw, 1.35rem);
}

.mini-games-control-panel {
    display: grid;
    grid-template-columns: minmax(150px, 0.55fr) minmax(240px, 1fr);
    gap: 8px;
    align-items: center;
}

.mini-games-control-panel__state {
    min-width: 0;
    border: 1px solid rgba(7, 17, 34, 0.12);
    border-radius: 8px;
    padding: 8px 12px;
    background: rgba(7, 17, 34, 0.05);
}

.mini-games-control-panel__state span {
    display: block;
    color: rgba(7, 17, 34, 0.62);
    font-size: 0.74rem;
}

.mini-games-control-panel__state strong {
    display: block;
    overflow-wrap: anywhere;
    color: #071122;
    font-size: 0.98rem;
}

.mini-games-control-panel__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.mini-games-control-panel button,
.mini-games-settings-panel select {
    min-height: 38px;
    border: 1px solid rgba(7, 17, 34, 0.18);
    border-radius: 8px;
    padding: 8px 12px;
    color: #071122;
    background: rgba(255, 255, 255, 0.76);
    font: inherit;
    font-weight: 850;
    cursor: pointer;
}

.mini-games-control-panel button:hover,
.mini-games-control-panel button:focus-visible,
.mini-games-control-panel button[aria-pressed="true"] {
    border-color: rgba(43, 126, 92, 0.45);
    background: rgba(229, 246, 238, 0.96);
}

.mini-games-control-panel button:disabled {
    cursor: not-allowed;
    opacity: 0.56;
}

.mini-games-settings-panel {
    display: grid;
    grid-template-columns: minmax(180px, 0.8fr) minmax(150px, 0.45fr) minmax(240px, 1.2fr);
    gap: 12px;
    align-items: start;
    border: 1px solid rgba(7, 17, 34, 0.12);
    border-radius: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.72);
}

.mini-games-settings-panel[hidden] {
    display: none;
}

.mini-games-settings-panel h3,
.mini-games-settings-panel p,
.mini-games-settings-panel dl {
    margin: 0;
}

.mini-games-settings-panel p {
    margin-top: 4px;
    color: rgba(7, 17, 34, 0.66);
    font-size: 0.9rem;
    line-height: 1.4;
}

.mini-games-settings-panel label {
    display: grid;
    gap: 6px;
    color: rgba(7, 17, 34, 0.66);
    font-size: 0.82rem;
    font-weight: 800;
}

.mini-games-settings-panel select {
    width: 100%;
    font-size: 0.95rem;
}

.mini-games-settings-panel dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.mini-games-settings-panel dl > div {
    min-width: 0;
    border-radius: 8px;
    padding: 8px 10px;
    background: rgba(7, 17, 34, 0.05);
}

.mini-games-settings-panel dt {
    color: rgba(7, 17, 34, 0.62);
    font-size: 0.72rem;
}

.mini-games-settings-panel dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: #071122;
    font-weight: 850;
}

.education-mini-game.is-paused {
    filter: saturate(0.72);
}

.mini-games-stage {
    position: relative;
    min-height: 330px;
    display: grid;
}

.mini-games-stage .education-mini-game {
    align-self: stretch;
    min-height: 330px;
}

.mini-games-feedback {
    pointer-events: none;
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.mini-games-floating-score {
    position: absolute;
    left: 50%;
    top: 46%;
    translate: -50% -50%;
    z-index: 5;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(7, 17, 34, 0.82);
    color: #fff;
    font-weight: 800;
    animation: mini-game-score-float 1.1s ease-out forwards;
}

.mini-games-floating-score.is-positive {
    background: rgba(43, 126, 92, 0.9);
}

.mini-games-floating-score.is-negative {
    background: rgba(190, 61, 61, 0.9);
}

.mini-games-shared-score {
    display: grid;
    gap: 12px;
    border-top: 1px solid rgba(7, 17, 34, 0.12);
    padding-top: 14px;
}

.mini-games-shared-score[hidden] {
    display: none;
}

.mini-games-shared-score h3,
.mini-games-shared-score p {
    margin: 0;
}

.mini-games-shared-score p {
    color: rgba(7, 17, 34, 0.66);
}

.mini-games-shared-score__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}

.mini-games-shared-score__grid > div {
    min-width: 0;
    border-radius: 8px;
    padding: 11px 12px;
    background: rgba(7, 17, 34, 0.05);
}

.mini-games-shared-score__grid strong {
    display: block;
    margin-bottom: 8px;
}

.mini-games-shared-score ol {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mini-games-shared-score li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    color: rgba(7, 17, 34, 0.72);
    font-size: 0.9rem;
}

.mini-games-shared-score li span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-games-shared-score li b {
    color: #071122;
}

@keyframes mini-game-score-float {
    0% {
        opacity: 0;
        transform: translateY(16px) scale(0.92);
    }
    18% {
        opacity: 1;
        transform: translateY(-8px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(38px) scale(0.96);
    }
}

@media (max-width: 820px) {
    .mini-games-featured {
        grid-template-columns: 1fr;
    }

    .mini-games-featured__action {
        width: 100%;
    }

    .mini-games-layout {
        grid-template-columns: 1fr;
    }

    .mini-games-list {
        position: static;
    }

    .mini-games-play-panel__head {
        display: grid;
    }

    .mini-games-score-panel {
        grid-template-columns: 1fr;
    }

    .mini-games-control-panel,
    .mini-games-settings-panel,
    .mini-games-shared-score__grid {
        grid-template-columns: 1fr;
    }

    .mini-games-control-panel__actions {
        justify-content: stretch;
    }

    .mini-games-control-panel__actions button {
        flex: 1 1 140px;
    }

    .mini-games-settings-panel dl {
        grid-template-columns: 1fr;
    }

    .mini-games-stage,
    .mini-games-stage .education-mini-game {
        min-height: 300px;
    }
}

.mini-games-help,
.mini-games-embed {
    display: grid;
    gap: 8px;
    border-top: 1px solid rgba(7, 17, 34, 0.12);
    padding-top: 14px;
}

.mini-games-help p {
    margin: 0;
    color: rgba(7, 17, 34, 0.72);
}

.mini-games-embed pre {
    margin: 0;
    max-width: 100%;
    overflow: auto;
    border-radius: 8px;
    padding: 12px;
    background: #071122;
    color: #e8f1ff;
    font-size: 0.86rem;
}

.education-score-card {
    display: grid;
    gap: 5px;
    padding-top: 16px;
    border-top: 1px solid rgba(7, 17, 34, 0.14);
}

.education-score-card strong {
    color: var(--night);
    font-size: 30px;
    line-height: 1;
}

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

.education-import {
    display: grid;
    gap: 10px;
    padding-top: 4px;
    border-top: 0;
}

.education-builder {
    display: grid;
    gap: 10px;
    padding-top: 4px;
    border-top: 0;
}

.education-import summary,
.education-builder summary {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 6px 0;
    color: var(--night);
    cursor: pointer;
    list-style: none;
    font-weight: 900;
}

.education-import summary::-webkit-details-marker,
.education-builder summary::-webkit-details-marker {
    display: none;
}

.education-import summary::before,
.education-builder summary::before {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 999px;
    color: rgba(7, 17, 34, 0.72);
    background: rgba(255, 253, 248, 0.44);
    content: "+";
    font-size: 16px;
    line-height: 1;
}

.education-import[open] summary::before,
.education-builder[open] summary::before {
    content: "-";
}

.education-import summary:hover,
.education-import summary:focus-visible,
.education-builder summary:hover,
.education-builder summary:focus-visible {
    color: var(--amber-dark);
}

.education-import label,
.education-builder label {
    display: grid;
    gap: 7px;
    min-width: 0;
    color: var(--night);
    font-weight: 850;
}

.education-import input,
.education-import textarea,
.education-builder input,
.education-builder select,
.education-builder textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid #d9ccba;
    border-radius: 7px;
    padding: 10px 11px;
    color: var(--ink);
    background: var(--white);
    font: inherit;
}

.education-builder-help {
    color: var(--slate);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.35;
}

.education-import textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.45;
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 13px;
}

.education-import-paste {
    margin-top: 2px;
}

.education-import-shortcuts,
.education-import-actions,
.education-import-url-row {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.education-import-shortcuts {
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
}

.education-import-actions {
    grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr));
}

.education-import-url-row {
    grid-template-columns: minmax(0, 1fr) minmax(96px, auto);
    align-items: end;
}

.education-import-shortcuts .cv-button,
.education-import-actions .cv-button,
.education-import-url-row .cv-button {
    justify-content: center;
    width: 100%;
    min-height: 38px;
    min-width: 0;
    overflow-wrap: anywhere;
    white-space: normal;
}

@media (max-width: 640px) {
    .education-import-url-row {
        grid-template-columns: 1fr;
    }
}

.education-builder textarea {
    resize: vertical;
}

.education-import a {
    color: var(--cyan);
    font-weight: 900;
}

.education-import > .cv-button {
    width: 100%;
}

.education-import p,
.education-builder p {
    min-height: 22px;
    margin: 0;
    font-weight: 850;
}

.education-import #education-import-status {
    display: flex;
    align-items: center;
    min-width: 0;
    max-width: 100%;
    min-height: 0;
    border: 1px solid transparent;
    border-radius: 7px;
    padding: 0;
    color: rgba(7, 17, 34, 0.72);
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.education-import #education-import-status:not(:empty) {
    min-height: 38px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.62);
}

.education-import .education-import-help {
    min-height: 0;
    color: rgba(7, 17, 34, 0.68);
    font-size: 13px;
    line-height: 1.45;
}

.education-import p[data-state="success"] {
    border-color: rgba(55, 132, 78, 0.24);
    background: rgba(232, 247, 235, 0.68);
    color: var(--green);
}

.education-import p[data-state="error"] {
    border-color: rgba(201, 74, 56, 0.24);
    background: rgba(254, 226, 226, 0.7);
    color: #c94a38;
}

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

.education-builder-wide,
.education-builder-actions,
.education-builder-preview,
.education-builder-form[data-builder-type="open"] .education-builder-field--open,
.education-builder-form[data-builder-type="letters"] .education-builder-field--accepted,
.education-builder-form[data-builder-type="info"] .education-builder-field--info,
.education-builder-form[data-builder-type="pin"] .education-builder-field--pin,
.education-builder-form[data-builder-type="drop-pin"] .education-builder-field--pin {
    grid-column: 1 / -1;
}

.education-builder-field--open,
.education-builder-field--info,
.education-builder-field--pin,
.education-builder-field--poll,
.education-builder-field--text,
.education-builder-field--range {
    display: none !important;
}

.education-builder-form[data-builder-type="open"] .education-builder-field--open,
.education-builder-form[data-builder-type="letters"] .education-builder-field--accepted,
.education-builder-form[data-builder-type="info"] .education-builder-field--info,
.education-builder-form[data-builder-type="pin"] .education-builder-field--pin,
.education-builder-form[data-builder-type="drop-pin"] .education-builder-field--pin,
.education-builder-form[data-builder-type="poll"] .education-builder-field--poll,
.education-builder-form[data-builder-type="open"] .education-builder-field--text,
.education-builder-form[data-builder-type="wordcloud"] .education-builder-field--text,
.education-builder-form[data-builder-type="number"] .education-builder-field--range-tolerance,
.education-builder-form[data-builder-type="number"] .education-builder-field--range-unit,
.education-builder-form[data-builder-type="countdown"] .education-builder-field--range-min,
.education-builder-form[data-builder-type="countdown"] .education-builder-field--range-tolerance,
.education-builder-form[data-builder-type="slider"] .education-builder-field--range,
.education-builder-form[data-builder-type="scale"] .education-builder-field--range,
.education-builder-form[data-builder-type="nps"] .education-builder-field--range {
    display: grid !important;
}

.education-builder-field--media {
    display: grid;
}

.education-builder-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
}

.education-builder-toggle input {
    width: auto;
    min-width: 18px;
}

.education-builder-form[data-builder-type="open"] .education-builder-field--choices,
.education-builder-form[data-builder-type="pin"] .education-builder-field--choices,
.education-builder-form[data-builder-type="drop-pin"] .education-builder-field--choices,
.education-builder-form[data-builder-type="info"] .education-builder-field--choices,
.education-builder-form[data-builder-type="scale"] .education-builder-field--choices,
.education-builder-form[data-builder-type="number"] .education-builder-field--choices,
.education-builder-form[data-builder-type="slider"] .education-builder-field--choices,
.education-builder-form[data-builder-type="nps"] .education-builder-field--choices,
.education-builder-form[data-builder-type="wordcloud"] .education-builder-field--choices,
.education-builder-form[data-builder-type="truefalse"] .education-builder-field--choices {
    display: none !important;
}

.education-builder-form[data-builder-type="matching"] .education-builder-field--correct,
.education-builder-form[data-builder-type="open"] .education-builder-field--correct,
.education-builder-form[data-builder-type="pin"] .education-builder-field--correct,
.education-builder-form[data-builder-type="drop-pin"] .education-builder-field--correct,
.education-builder-form[data-builder-type="info"] .education-builder-field--correct,
.education-builder-form[data-builder-type="poll"] .education-builder-field--correct,
.education-builder-form[data-builder-type="wordcloud"] .education-builder-field--correct,
.education-builder-form[data-builder-type="nps"] .education-builder-field--correct {
    display: none !important;
}

.education-builder-form[data-builder-type="poll"] .education-builder-field--points,
.education-builder-form[data-builder-type="wordcloud"] .education-builder-field--points,
.education-builder-form[data-builder-type="drop-pin"] .education-builder-field--points,
.education-builder-form[data-builder-type="info"] .education-builder-field--points,
.education-builder-form[data-builder-type="nps"] .education-builder-field--points {
    display: none !important;
}

.education-builder-form[data-builder-type="drop-pin"] .education-builder-field--pin-target {
    display: none !important;
}

.education-builder-pin-preview {
    gap: 7px;
}

.education-builder-pin-preview__stage {
    position: relative;
    display: grid;
    min-height: 120px;
    max-height: min(30vh, 260px);
    aspect-ratio: 16 / 9;
    overflow: hidden;
    place-items: center;
    border: 1px solid rgba(7, 17, 34, 0.16);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.22)),
        rgba(7, 17, 34, 0.08);
    cursor: crosshair;
}

.education-builder-pin-preview[data-empty="true"] .education-builder-pin-preview__stage {
    cursor: default;
}

.education-builder-pin-preview__stage img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.education-builder-pin-preview__stage::before {
    content: "Aperçu";
    position: absolute;
    inset: auto 12px 10px;
    color: rgba(65, 82, 108, 0.82);
    font-size: 0.78rem;
    font-weight: 900;
    text-align: center;
    pointer-events: none;
}

.education-builder-pin-preview[data-empty="false"] .education-builder-pin-preview__stage::before {
    content: "";
}

.education-builder-pin-preview [data-builder-pin-marker] {
    position: absolute;
    display: block;
    translate: -50% -50%;
    border: 2px solid rgba(206, 96, 37, 0.96);
    border-radius: 999px;
    background: rgba(245, 195, 106, 0.2);
    box-shadow: 0 0 0 3px rgba(7, 17, 34, 0.18), 0 10px 24px rgba(7, 17, 34, 0.22);
    pointer-events: none;
}

.education-builder-pin-preview [data-builder-pin-marker]::after {
    content: "";
    position: absolute;
    inset: 50% auto auto 50%;
    width: 7px;
    height: 7px;
    translate: -50% -50%;
    border-radius: 999px;
    background: #ce6025;
}

.education-builder-pin-preview p {
    margin: 0;
    color: rgba(65, 82, 108, 0.88);
    font-size: 0.82rem;
    font-weight: 850;
}

.education-builder-form[data-builder-type="nps"] .education-builder-field--range-tolerance,
.education-builder-form[data-builder-type="nps"] .education-builder-field--range-unit {
    display: none !important;
}

.education-builder-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
    gap: 8px;
}

.education-builder-actions .cv-button {
    width: 100%;
    min-width: 0;
    padding-inline: 10px;
}

.education-builder-preview {
    display: grid;
    gap: 8px;
}

.education-builder-preview ol {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.education-builder-preview li {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 9px;
    align-items: start;
    border-radius: 8px;
    padding-left: 2px;
}

.education-builder-preview li[data-builder-editing="true"] {
    padding: 6px;
    border: 1px solid rgba(206, 96, 37, 0.34);
    background: rgba(245, 195, 106, 0.12);
}

.education-builder-preview li > span {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 8px;
    color: #071122;
    background: rgba(245, 195, 106, 0.78);
    font-weight: 950;
}

.education-builder-preview__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 5px;
}

.education-builder-preview__actions button {
    display: inline-grid;
    width: 30px;
    min-height: 30px;
    place-items: center;
    border: 1px solid rgba(7, 17, 34, 0.16);
    border-radius: 7px;
    padding: 0;
    color: #16223a;
    background: rgba(255, 255, 255, 0.72);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 850;
    cursor: pointer;
}

.education-builder-preview__actions button:hover,
.education-builder-preview__actions button:focus-visible {
    border-color: rgba(206, 96, 37, 0.62);
    color: #8d3d1c;
    background: rgba(255, 255, 255, 0.94);
}

.education-builder-preview__actions button:disabled {
    opacity: 0.42;
    cursor: default;
}

.education-builder-preview strong,
.education-builder-preview small {
    display: block;
}

.education-builder-preview strong {
    color: var(--night);
    overflow-wrap: anywhere;
}

.education-builder-preview small {
    color: rgba(65, 82, 108, 0.86);
    font-weight: 850;
}

.education-builder-preview .education-content-status-badge {
    display: inline-flex;
    width: fit-content;
    margin-top: 4px;
}

.education-builder p[data-state="success"] {
    color: var(--green);
}

.education-builder p[data-state="error"] {
    color: #c94a38;
}

.education-main {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.education-prep-map {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.education-prep-map[hidden] {
    display: none;
}

.education-prep-map button {
    display: grid;
    gap: 5px;
    min-width: 0;
    min-height: 74px;
    border: 1px solid rgba(15, 35, 70, 0.12);
    border-radius: 8px;
    padding: 12px;
    color: var(--night);
    background: rgba(255, 253, 248, 0.76);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.education-prep-map button:hover,
.education-prep-map button:focus-visible {
    border-color: rgba(47, 143, 157, 0.42);
    box-shadow: 0 12px 32px rgba(42, 54, 72, 0.1);
}

.education-prep-map button[data-prep-state="ready"] {
    border-color: rgba(47, 143, 157, 0.2);
    background: linear-gradient(180deg, rgba(255, 253, 248, 0.82), rgba(113, 199, 216, 0.12));
}

.education-prep-map button[data-prep-state="warning"] {
    border-color: rgba(245, 195, 106, 0.46);
    background: linear-gradient(180deg, rgba(255, 253, 248, 0.86), rgba(245, 195, 106, 0.16));
}

.education-prep-map button[data-prep-state="error"] {
    border-color: rgba(201, 74, 56, 0.34);
    background: linear-gradient(180deg, rgba(255, 253, 248, 0.86), rgba(201, 74, 56, 0.1));
}

.education-prep-map span {
    color: var(--amber-dark);
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.education-prep-map strong,
.education-prep-map small {
    min-width: 0;
    overflow-wrap: anywhere;
}

.education-prep-map strong {
    color: var(--night);
    font-size: 0.98rem;
    line-height: 1.16;
}

.education-prep-map small {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 850;
    line-height: 1.25;
}

.education-session-home {
    position: relative;
    display: grid;
    gap: 20px;
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.education-session-home[hidden] {
    display: none;
}

.education-session-home:hover,
.education-session-home:focus-visible {
    border-color: rgba(245, 195, 106, 0.62);
    box-shadow: 0 22px 68px rgba(42, 54, 72, 0.13), inset 0 0 0 1px rgba(245, 195, 106, 0.28);
}

.education-session-home:focus-visible {
    outline: 3px solid rgba(245, 195, 106, 0.56);
    outline-offset: 4px;
}

.education-session-home__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.42fr);
    gap: clamp(16px, 3vw, 28px);
    align-items: start;
}

.education-session-home h2 {
    margin: 0 0 12px;
    color: var(--night);
    font-size: clamp(36px, 6vw, 72px);
    line-height: 0.96;
}

.education-session-home p:not(.tool-card__label) {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    font-size: clamp(16px, 2vw, 21px);
}

.education-session-config-zone {
    display: grid;
    gap: 10px;
}

.education-session-home__action {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-width: 0;
    min-height: 40px;
    border: 1px solid rgba(47, 143, 157, 0.18);
    border-radius: 8px;
    padding: 8px 10px;
    color: rgba(7, 17, 34, 0.72);
    background: rgba(113, 199, 216, 0.12);
}

.education-session-home__action span,
.education-session-home__action strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.education-session-home__action span {
    color: rgba(7, 17, 34, 0.56);
    font-size: 0.68rem;
    font-weight: 950;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.education-session-home__action strong {
    justify-self: end;
    border: 1px solid rgba(47, 143, 157, 0.2);
    border-radius: 999px;
    padding: 5px 9px;
    color: #206976;
    background: rgba(255, 255, 255, 0.62);
    font-size: 0.74rem;
    font-weight: 950;
}

body[data-education-user="teacher"] .education-main {
    gap: 8px;
}

body[data-education-user="teacher"] .education-prep-map {
    gap: 6px;
}

body[data-education-user="teacher"] .education-prep-map button {
    gap: 3px;
    min-height: 48px;
    padding: 8px 10px;
}

body[data-education-user="teacher"] .education-prep-map span {
    font-size: 0.62rem;
    letter-spacing: 0.05em;
}

body[data-education-user="teacher"] .education-prep-map strong {
    font-size: 0.86rem;
    line-height: 1.08;
}

body[data-education-user="teacher"] .education-prep-map small {
    font-size: 0.7rem;
    line-height: 1.12;
}

body[data-education-user="teacher"] .education-prep-map strong,
body[data-education-user="teacher"] .education-prep-map small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow-wrap: normal;
}

body[data-education-user="teacher"] .education-session-home {
    gap: 8px;
    max-height: none;
    overflow: visible;
}

body[data-education-user="teacher"] .education-session-home__head {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
    gap: 10px;
    align-items: start;
}

body[data-education-user="teacher"] .education-session-home h2 {
    margin-bottom: 4px;
    font-size: clamp(22px, 2.4vw, 34px);
    line-height: 1.02;
}

body[data-education-user="teacher"] .education-session-home p:not(.tool-card__label):not(.education-zone-kicker) {
    display: -webkit-box;
    max-width: none;
    overflow: hidden;
    color: rgba(7, 17, 34, 0.68);
    font-size: 0.88rem;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

body[data-education-user="teacher"] .education-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

body[data-education-user="teacher"] .education-meta div {
    min-width: 0;
    border: 1px solid rgba(15, 35, 70, 0.1);
    border-left: 3px solid rgba(198, 99, 47, 0.38);
    border-radius: 7px;
    padding: 5px 8px;
    background: rgba(255, 255, 255, 0.48);
}

body[data-education-user="teacher"] .education-meta dt {
    margin-bottom: 3px;
    font-size: 0.6rem;
    letter-spacing: 0.05em;
}

body[data-education-user="teacher"] .education-meta dd {
    overflow: hidden;
    font-size: 0.82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body[data-education-user="teacher"] .education-session-config-zone {
    gap: 6px;
}

body[data-education-user="teacher"] .education-session-home__action {
    min-height: 34px;
    padding: 6px 8px;
}

body[data-education-user="teacher"] .education-session-home__action span {
    font-size: 0.6rem;
    letter-spacing: 0.05em;
}

body[data-education-user="teacher"] .education-session-home__action strong {
    padding: 4px 8px;
    font-size: 0.68rem;
}

body[data-education-mode="training"] .education-main {
    gap: 10px;
}

body[data-education-mode="training"] .education-session-home {
    gap: 12px;
    padding-bottom: 28px;
}

body[data-education-mode="training"] .education-session-home__head {
    grid-template-columns: minmax(0, 1fr) minmax(180px, 0.34fr);
    gap: 16px;
}

body[data-education-mode="training"] .education-session-home h2 {
    margin-bottom: 8px;
    font-size: clamp(28px, 5.8dvh, 44px);
}

body[data-education-mode="training"] .education-session-home p:not(.tool-card__label) {
    font-size: clamp(14px, 2.15dvh, 17px);
}

body[data-education-mode="training"] .education-meta {
    gap: 6px;
}

body[data-education-mode="training"] .education-meta div {
    padding: 2px 0 2px 10px;
}

body[data-education-solo="active"] .education-session-home {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    padding-bottom: 18px;
}

body[data-education-solo="active"] .education-session-home__head {
    display: block;
    flex: 1 1 280px;
    min-width: 0;
}

body[data-education-solo="active"] .education-session-home h2 {
    margin: 0;
    font-size: clamp(22px, 4.8dvh, 34px);
}

body[data-education-solo="active"] .education-session-home p:not(.tool-card__label),
body[data-education-solo="active"] .education-meta {
    display: none;
}

body[data-education-solo="active"] .education-session-config-zone {
    flex: 0 1 280px;
    min-width: min(100%, 220px);
}

body[data-education-solo="active"] .education-score-card {
    padding-top: 0;
    border-top: 0;
}

body[data-education-solo="active"] .education-score-card strong {
    font-size: clamp(22px, 4.4dvh, 30px);
}

.education-competition {
    display: grid;
    gap: 18px;
    padding: clamp(18px, 4vw, 34px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    color: var(--white);
    background:
        radial-gradient(circle at 18% 12%, rgba(113, 199, 216, 0.18), transparent 34%),
        rgba(6, 11, 26, 0.82);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.24);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.education-competition[hidden] {
    display: none;
}

.education-competition__top {
    display: flex;
    gap: 18px;
    align-items: start;
    justify-content: space-between;
}

.education-competition__top h2 {
    margin: 0;
    color: var(--white);
    font-size: clamp(30px, 5vw, 58px);
    line-height: 1;
}

.education-competition__top span,
.education-competition-lobby p,
.education-muted {
    color: rgba(245, 248, 255, 0.78);
    font-weight: 800;
}

.education-wait-dots {
    display: inline-grid;
    grid-template-columns: repeat(3, 0.42em);
    margin-left: 0.08em;
    white-space: nowrap;
    vertical-align: baseline;
}

.education-wait-dots i {
    display: inline-block;
    font-style: normal;
    opacity: 0.18;
    animation: education-wait-dot 1.18s steps(1, end) infinite;
}

.education-wait-dots i:nth-child(2) {
    animation-delay: 0.2s;
}

.education-wait-dots i:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes education-wait-dot {
    0%,
    18% {
        opacity: 0.18;
    }

    19%,
    100% {
        opacity: 1;
    }
}

.education-competition__code {
    display: grid;
    justify-items: end;
    gap: 8px;
}

@keyframes education-timer-warning {
    0%,
    100% {
        transform: scale(calc(1 + var(--timer-urgency, 0) * 0.02));
        box-shadow: 0 0 calc(10px + var(--timer-urgency, 0) * 20px) rgba(201, 74, 56, 0.2);
    }

    50% {
        transform: scale(calc(1 + var(--timer-urgency, 0) * 0.1));
        box-shadow: 0 0 calc(18px + var(--timer-urgency, 0) * 32px) rgba(201, 74, 56, 0.34);
    }
}

.education-competition__code strong,
.education-competition__code time {
    padding: 10px 14px;
    border: 1px solid rgba(113, 199, 216, 0.42);
    border-radius: 8px;
    color: var(--cyan-soft);
    background: rgba(113, 199, 216, 0.12);
}

.education-competition__code strong {
    font-size: clamp(28px, 5vw, 54px);
    letter-spacing: 0.08em;
}

.education-competition__code time {
    min-width: 112px;
    color: var(--white);
    font-size: clamp(18px, 2.4vw, 30px);
    font-weight: 950;
    line-height: 1;
    text-align: center;
    transform-origin: center;
    transition: color 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.education-competition__code time.is-urgent {
    color: #fff7f3;
    border-color: rgba(201, 74, 56, 0.62);
    background: rgba(201, 74, 56, 0.24);
    animation: education-timer-warning var(--timer-pulse-duration, 0.85s) ease-in-out infinite;
}

.education-competition__code time[data-state="done"] {
    color: #ffd2c9;
    border-color: rgba(201, 74, 56, 0.42);
    background: rgba(201, 74, 56, 0.16);
}

.education-competition-lobby,
.education-competition-question,
.education-competition-answer {
    display: grid;
    gap: 12px;
}

.education-competition[data-status="running"],
.education-competition[data-status="finished"] {
    align-items: start;
}

.education-competition[data-status="running"][data-question-type="panel-dilemma"] {
    min-height: 0;
    grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
    grid-template-areas:
        "top top"
        "body board"
        "answer powers"
        "actions actions";
    gap: 12px;
    padding: clamp(14px, 2vw, 22px);
}

.education-competition[data-status="running"][data-question-type="panel-dilemma"] .education-competition__top {
    grid-area: top;
    align-items: center;
}

.education-competition[data-status="running"][data-question-type="panel-dilemma"] .education-competition__top h2 {
    font-size: clamp(24px, 3.2vw, 42px);
}

.education-competition[data-status="running"][data-question-type="panel-dilemma"] .education-competition__top span {
    display: block;
    max-width: 62ch;
    font-size: clamp(13px, 1.35vw, 18px);
    line-height: 1.25;
}

.education-competition[data-status="running"][data-question-type="panel-dilemma"] .education-competition__code {
    grid-template-columns: minmax(96px, auto) minmax(88px, auto);
    align-items: center;
}

.education-competition[data-status="running"][data-question-type="panel-dilemma"] .education-competition__code strong {
    font-size: clamp(26px, 4vw, 46px);
}

.education-competition[data-status="running"][data-question-type="panel-dilemma"] .education-competition__code time {
    min-width: 0;
    font-size: clamp(20px, 2.5vw, 32px);
}

.education-competition[data-status="running"][data-question-type="panel-dilemma"] .education-competition-question {
    grid-area: body;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 12px;
}

.education-competition[data-status="running"][data-question-type="panel-dilemma"] .education-competition-progress,
.education-competition[data-status="running"][data-question-type="panel-dilemma"] .education-classroom-question-card {
    grid-column: 1;
}

.education-competition[data-status="running"][data-question-type="panel-dilemma"] .education-panel-dilemma-tracker--live {
    grid-column: 1;
    max-height: none;
    overflow: visible;
}

.education-competition[data-status="running"][data-question-type="panel-dilemma"] #education-competition-board {
    grid-area: board;
    position: static;
    max-height: none;
    overflow: visible;
}

.education-competition[data-status="running"][data-question-type="panel-dilemma"] .education-competition-answer {
    grid-area: answer;
    max-width: none;
}

.education-competition[data-status="running"][data-question-type="panel-dilemma"] .education-competition-host-actions {
    grid-area: actions;
}

.education-competition[data-status="running"][data-question-type="panel-dilemma"] #education-competition-host-powers {
    grid-area: powers;
}

.education-competition[data-status="running"][data-question-type="panel-dilemma"] .education-classroom-question-card {
    padding: clamp(14px, 2vw, 22px);
}

.education-competition[data-status="running"][data-question-type="panel-dilemma"] .education-classroom-question-card h3 {
    font-size: clamp(30px, 4.2vw, 58px);
    line-height: 1.02;
}

.education-competition[data-status="running"][data-question-type="panel-dilemma"] .education-panel-dilemma__flow p {
    font-size: clamp(17px, 1.7vw, 25px);
    line-height: 1.28;
}

.education-competition-question {
    min-width: 0;
}

.education-competition-question .education-classroom-question-card h3 {
    overflow-wrap: anywhere;
    font-size: clamp(1.9rem, 4.1vw, 3.4rem);
}

.education-competition-question .education-classroom-choice,
.education-competition-question .education-classroom-order li {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: clamp(1.05rem, 1.75vw, 1.45rem);
}

.education-competition-progress {
    display: grid;
    grid-template-columns: auto auto minmax(72px, 1fr) minmax(0, auto);
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid rgba(113, 199, 216, 0.22);
    border-radius: 8px;
    color: var(--white);
    background: rgba(113, 199, 216, 0.12);
}

.education-competition-progress span,
.education-competition-progress small {
    min-width: 0;
    color: rgba(245, 248, 255, 0.72);
    font-weight: 850;
    overflow-wrap: anywhere;
}

.education-competition-progress strong {
    color: var(--amber);
    font-size: 1.4rem;
    font-weight: 950;
    white-space: nowrap;
}

.education-competition-progress__bar {
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
}

.education-competition-progress__bar i {
    width: var(--answer-progress, 0%);
    height: 100%;
    display: block;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--cyan-soft), var(--amber));
    transition: width 260ms ease;
}

.education-competition-progress-roster {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
}

.education-competition-progress-roster div {
    min-width: 0;
    display: grid;
    gap: 2px;
    padding: 7px 9px;
    border: 1px solid rgba(245, 248, 255, 0.1);
    border-radius: 8px;
    background: rgba(3, 7, 18, 0.14);
}

.education-competition-progress-roster dt,
.education-competition-progress-roster dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.education-competition-progress-roster dt {
    color: rgba(245, 195, 106, 0.86);
    font-size: 0.68rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.education-competition-progress-roster dd {
    color: rgba(245, 248, 255, 0.82);
    font-size: 0.84rem;
    font-weight: 850;
}

.education-competition-powers {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(245, 195, 106, 0.3);
    border-radius: 8px;
    color: var(--night);
    background: rgba(255, 253, 248, 0.78);
}

.education-competition-powers[hidden] {
    display: none;
}

.education-competition-powers span {
    color: var(--amber-dark);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.education-competition-powers > div:not(.education-power-poll) {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.education-competition-powers button {
    min-height: 34px;
    border: 1px solid rgba(47, 143, 157, 0.28);
    border-radius: 7px;
    padding: 7px 10px;
    color: var(--night);
    background: rgba(113, 199, 216, 0.2);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 950;
}

.education-competition-powers button:disabled {
    cursor: not-allowed;
    opacity: 0.48;
}

.education-live-host-tools,
.education-live-next-picker,
.education-competition-rename,
.education-competition-participant-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 8px;
}

.education-live-host-tools label,
.education-live-next-picker {
    color: rgba(16, 23, 38, 0.68);
    font-size: 0.82rem;
    font-weight: 900;
}

.education-live-host-tools input,
.education-live-next-picker select,
.education-competition-rename input,
.education-competition-participant-control input,
.education-competition-participant-control select {
    width: 100%;
    min-height: 34px;
    box-sizing: border-box;
    border: 1px solid rgba(16, 23, 38, 0.14);
    border-radius: 8px;
    color: var(--night);
    background: rgba(255, 253, 248, 0.92);
    font: inherit;
    font-weight: 900;
}

.education-live-next-picker {
    grid-template-columns: minmax(0, 1fr);
}

.education-competition-rename {
    min-width: 0;
}

.education-competition-participant-control {
    grid-template-columns: auto minmax(8ch, 1fr) minmax(7ch, 0.75fr) minmax(7ch, 0.75fr) auto;
    min-width: min(100%, 430px);
}

.education-competition-participant-control__avatar {
    align-self: center;
    font-size: 0.95rem;
}

.education-competition-rename input,
.education-competition-participant-control input,
.education-competition-participant-control select {
    min-width: 0;
    padding: 6px 8px;
}

.education-competition-rename button,
.education-competition-participant-control button {
    padding: 0 10px;
}

.education-power-poll {
    display: grid;
    gap: 7px;
}

.education-power-poll div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.education-power-poll span {
    overflow: hidden;
    color: var(--night);
    text-overflow: ellipsis;
    text-transform: none;
    letter-spacing: 0;
}

.education-power-poll strong {
    color: var(--night);
}

.education-power-poll i {
    grid-column: 1 / -1;
    display: block;
    height: 7px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--turquoise) var(--poll), rgba(16, 23, 38, 0.12) var(--poll));
}

.education-competition-lobby strong {
    color: var(--amber);
    font-size: 22px;
    letter-spacing: 0.08em;
}

@keyframes education-lobby-drift {
    0% {
        transform: translate(-50%, -50%) scale(var(--scale, 1));
    }

    50% {
        transform: translate(calc(-50% + var(--dx, 18px)), calc(-50% + var(--dy, -14px))) scale(calc(var(--scale, 1) * 1.04));
    }

    100% {
        transform: translate(-50%, -50%) scale(var(--scale, 1));
    }
}

@keyframes education-lobby-spin {
    to {
        transform: rotate(360deg);
    }
}

.education-lobby-panel {
    min-height: clamp(300px, 45vh, 520px);
    display: grid;
    grid-template-rows: auto minmax(220px, 1fr);
    gap: 14px;
    position: relative;
    overflow: hidden;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background:
        radial-gradient(circle at 16% 20%, rgba(113, 199, 216, 0.22), transparent 32%),
        radial-gradient(circle at 78% 68%, rgba(245, 195, 106, 0.16), transparent 32%),
        rgba(255, 255, 255, 0.08);
}

.education-lobby-panel--awards {
    grid-template-rows: auto auto minmax(170px, 1fr);
}

.education-lobby-head {
    position: relative;
    z-index: 2;
    max-width: calc(100% - 92px);
}

.education-lobby-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
}

.education-lobby-stats span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 28px;
    padding: 4px 9px;
    border: 1px solid rgba(113, 199, 216, 0.22);
    border-radius: 999px;
    color: rgba(245, 248, 255, 0.8);
    background: rgba(6, 11, 26, 0.26);
    font-size: 12px;
    font-weight: 900;
}

.education-lobby-stats span[data-state="paused"] {
    border-color: rgba(245, 195, 106, 0.28);
    color: rgba(255, 235, 197, 0.86);
}

.education-lobby-stats span[data-state="host"] {
    border-color: rgba(121, 207, 168, 0.34);
    color: rgba(214, 255, 234, 0.9);
    background: rgba(43, 126, 92, 0.18);
}

.education-lobby-stats b {
    color: var(--amber);
}

.education-lobby-paused {
    display: block;
    margin-top: 6px;
    color: rgba(245, 248, 255, 0.62);
    font-size: 12px;
    font-weight: 800;
}

.education-lobby-start-hint {
    display: block;
    margin-top: 6px;
    color: #f5c36a;
    font-size: 13px;
    font-weight: 900;
}

.education-lobby-wait {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 3;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(245, 195, 106, 0.28);
    border-radius: 999px;
    background: rgba(6, 11, 26, 0.42);
    box-shadow: 0 0 26px rgba(113, 199, 216, 0.16);
}

.education-lobby-wait span {
    width: 30px;
    height: 30px;
    display: block;
    border: 2px solid rgba(245, 195, 106, 0.26);
    border-top-color: var(--amber);
    border-right-color: var(--cyan-soft);
    border-radius: 999px;
    animation: education-lobby-spin 4.8s linear infinite;
}

.education-lobby-awards {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 10px;
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(245, 195, 106, 0.26);
    border-radius: 8px;
    background: rgba(3, 7, 18, 0.34);
}

.education-lobby-awards header {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.education-lobby-awards header > *,
.education-lobby-awards li > * {
    min-width: 0;
}

.education-lobby-awards header span {
    color: rgba(245, 195, 106, 0.92);
    font-size: 0.74rem;
    font-weight: 950;
    line-height: 1.12;
    overflow-wrap: anywhere;
    text-transform: uppercase;
}

.education-lobby-awards header strong {
    color: var(--white);
    font-size: 1.04rem;
    line-height: 1.12;
    overflow-wrap: anywhere;
}

.education-lobby-awards header small {
    color: rgba(245, 248, 255, 0.72);
    font-weight: 850;
    line-height: 1.22;
    overflow-wrap: anywhere;
}

.education-lobby-awards ol {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    gap: 8px;
    max-height: min(34vh, 240px);
    margin: 0;
    padding: 0 4px 0 0;
    overflow-y: auto;
    list-style: none;
}

.education-lobby-awards li {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 42px;
    padding: 7px 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
}

.education-lobby-awards li[data-state="more"] {
    border-color: rgba(113, 199, 216, 0.24);
    background: rgba(113, 199, 216, 0.1);
}

.education-lobby-awards li > span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 28px;
    border-radius: 7px;
    color: var(--night);
    background: rgba(245, 195, 106, 0.9);
    font-size: 0.78rem;
    font-weight: 950;
}

.education-lobby-awards li > strong {
    min-width: 0;
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 950;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.education-lobby-sky {
    position: relative;
    min-height: 220px;
    z-index: 1;
    border: 1px solid rgba(113, 199, 216, 0.14);
    border-radius: 8px;
    background:
        radial-gradient(circle at 24% 28%, rgba(245, 248, 255, 0.1), transparent 4px),
        radial-gradient(circle at 72% 38%, rgba(245, 248, 255, 0.12), transparent 3px),
        radial-gradient(circle at 48% 76%, rgba(113, 199, 216, 0.1), transparent 4px),
        rgba(3, 7, 18, 0.26);
}

.education-lobby-sky > span,
.education-lobby-sky em {
    position: absolute;
    left: var(--x, 50%);
    top: var(--y, 50%);
    transform: translate(-50%, -50%) scale(var(--scale, 1));
}

.education-lobby-sky > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    border: 1px solid rgba(113, 199, 216, 0.28);
    border-radius: 999px;
    color: var(--white);
    background: rgba(113, 199, 216, 0.18);
    box-shadow: 0 0 24px rgba(113, 199, 216, var(--lobby-glow, 0.18));
    font-weight: 950;
    white-space: nowrap;
    animation: education-lobby-drift var(--drift, 14s) ease-in-out var(--delay, 0s) infinite;
}

.education-lobby-sky.is-engine-driven > span {
    animation: none;
}

.education-participant-avatar,
.education-lobby-avatar,
.education-race-avatar {
    position: relative;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 2.15em;
    height: 2.15em;
    border: 1px solid rgba(245, 248, 255, 0.16);
    border-radius: 999px;
    background:
        radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.28), transparent 24%),
        linear-gradient(145deg, rgba(113, 199, 216, 0.22), rgba(245, 195, 106, 0.14)),
        rgba(3, 7, 18, 0.28);
    box-shadow: inset 0 -0.18em 0.45em rgba(3, 7, 18, 0.24);
    line-height: 1;
}

.education-lobby-avatar {
    font-size: 1.05rem;
}

.education-race-avatar {
    font-size: 1rem;
}

.education-avatar-head {
    position: relative;
    z-index: 1;
    font-size: 1.15em;
    transform: translateY(0.03em);
}

.education-avatar-hat {
    position: absolute;
    top: -0.72em;
    right: -0.52em;
    z-index: 2;
    font-size: 0.92em;
    transform: rotate(10deg);
    filter: drop-shadow(0 2px 3px rgba(3, 7, 18, 0.38));
}

[data-avatar-head-sprite] .education-avatar-head,
[data-avatar-hat-sprite] .education-avatar-hat {
    overflow: hidden;
    color: transparent;
    text-indent: -999px;
    white-space: nowrap;
    background-repeat: no-repeat;
}

[data-avatar-head-sprite] .education-avatar-head {
    --avatar-head-cell: 1.42em;
    --avatar-head-x: 0;
    --avatar-head-y: 0;
    width: var(--avatar-head-cell);
    height: var(--avatar-head-cell);
    background-image: url("/image/seances/avatar-heads.png");
    background-size: calc(var(--avatar-head-cell) * 8) calc(var(--avatar-head-cell) * 6);
    background-position:
        calc(var(--avatar-head-x) * var(--avatar-head-cell) * -1)
        calc(var(--avatar-head-y) * var(--avatar-head-cell) * -1);
}

[data-avatar-hat-sprite] .education-avatar-hat {
    --avatar-hat-cell: 1.05em;
    --avatar-hat-x: 0;
    --avatar-hat-y: 0;
    width: var(--avatar-hat-cell);
    height: var(--avatar-hat-cell);
    background-image: url("/image/seances/avatar-hats.png");
    background-size: calc(var(--avatar-hat-cell) * 8) calc(var(--avatar-hat-cell) * 3);
    background-position:
        calc(var(--avatar-hat-x) * var(--avatar-hat-cell) * -1)
        calc(var(--avatar-hat-y) * var(--avatar-hat-cell) * -1);
}

[data-avatar-head-sprite="animal-cat"] { --avatar-head-x: 0; --avatar-head-y: 0; }
[data-avatar-head-sprite="animal-dog"] { --avatar-head-x: 1; --avatar-head-y: 0; }
[data-avatar-head-sprite="animal-fox"] { --avatar-head-x: 2; --avatar-head-y: 0; }
[data-avatar-head-sprite="animal-owl"] { --avatar-head-x: 3; --avatar-head-y: 0; }
[data-avatar-head-sprite="animal-frog"] { --avatar-head-x: 4; --avatar-head-y: 0; }
[data-avatar-head-sprite="animal-panda"] { --avatar-head-x: 5; --avatar-head-y: 0; }
[data-avatar-head-sprite="animal-rabbit"] { --avatar-head-x: 6; --avatar-head-y: 0; }
[data-avatar-head-sprite="animal-lion"] { --avatar-head-x: 7; --avatar-head-y: 0; }
[data-avatar-head-sprite="animal-turtle"] { --avatar-head-x: 0; --avatar-head-y: 1; }
[data-avatar-head-sprite="animal-koala"] { --avatar-head-x: 1; --avatar-head-y: 1; }
[data-avatar-head-sprite="animal-monkey"] { --avatar-head-x: 2; --avatar-head-y: 1; }
[data-avatar-head-sprite="animal-bear"] { --avatar-head-x: 3; --avatar-head-y: 1; }
[data-avatar-head-sprite="animal-penguin"] { --avatar-head-x: 4; --avatar-head-y: 1; }
[data-avatar-head-sprite="animal-chick"] { --avatar-head-x: 5; --avatar-head-y: 1; }
[data-avatar-head-sprite="cartoon-robot"] { --avatar-head-x: 6; --avatar-head-y: 1; }
[data-avatar-head-sprite="cartoon-smile"] { --avatar-head-x: 7; --avatar-head-y: 1; }
[data-avatar-head-sprite="cartoon-wink"] { --avatar-head-x: 0; --avatar-head-y: 2; }
[data-avatar-head-sprite="cartoon-starface"] { --avatar-head-x: 1; --avatar-head-y: 2; }
[data-avatar-head-sprite="cartoon-alien"] { --avatar-head-x: 2; --avatar-head-y: 2; }
[data-avatar-head-sprite="cartoon-cardboard"] { --avatar-head-x: 3; --avatar-head-y: 2; }
[data-avatar-head-sprite="cartoon-masked"] { --avatar-head-x: 4; --avatar-head-y: 2; }
[data-avatar-head-sprite="cartoon-paperbag"] { --avatar-head-x: 5; --avatar-head-y: 2; }
[data-avatar-head-sprite="cartoon-sleepy"] { --avatar-head-x: 6; --avatar-head-y: 2; }
[data-avatar-head-sprite="school-brain"] { --avatar-head-x: 7; --avatar-head-y: 2; }
[data-avatar-head-sprite="school-calculator"] { --avatar-head-x: 0; --avatar-head-y: 3; }
[data-avatar-head-sprite="school-book"] { --avatar-head-x: 1; --avatar-head-y: 3; }
[data-avatar-head-sprite="school-notebook"] { --avatar-head-x: 2; --avatar-head-y: 3; }
[data-avatar-head-sprite="school-pencil"] { --avatar-head-x: 3; --avatar-head-y: 3; }
[data-avatar-head-sprite="school-ruler"] { --avatar-head-x: 4; --avatar-head-y: 3; }
[data-avatar-head-sprite="school-protractor"] { --avatar-head-x: 5; --avatar-head-y: 3; }
[data-avatar-head-sprite="school-backpack"] { --avatar-head-x: 6; --avatar-head-y: 3; }
[data-avatar-head-sprite="school-microscope"] { --avatar-head-x: 7; --avatar-head-y: 3; }
[data-avatar-head-sprite="school-testtube"] { --avatar-head-x: 0; --avatar-head-y: 4; }
[data-avatar-head-sprite="school-palette"] { --avatar-head-x: 1; --avatar-head-y: 4; }
[data-avatar-head-sprite="object-rocket"] { --avatar-head-x: 2; --avatar-head-y: 4; }
[data-avatar-head-sprite="object-star"] { --avatar-head-x: 3; --avatar-head-y: 4; }
[data-avatar-head-sprite="object-globe"] { --avatar-head-x: 4; --avatar-head-y: 4; }
[data-avatar-head-sprite="object-abacus"] { --avatar-head-x: 5; --avatar-head-y: 4; }
[data-avatar-head-sprite="object-dice"] { --avatar-head-x: 6; --avatar-head-y: 4; }
[data-avatar-head-sprite="object-trophy"] { --avatar-head-x: 7; --avatar-head-y: 4; }
[data-avatar-head-sprite="object-stopwatch"] { --avatar-head-x: 0; --avatar-head-y: 5; }
[data-avatar-head-sprite="object-lightbulb"] { --avatar-head-x: 1; --avatar-head-y: 5; }

[data-avatar-hat-sprite="hat-cap"] { --avatar-hat-x: 1; --avatar-hat-y: 0; }
[data-avatar-hat-sprite="hat-crown"] { --avatar-hat-x: 2; --avatar-hat-y: 0; }
[data-avatar-hat-sprite="hat-graduate"] { --avatar-hat-x: 3; --avatar-hat-y: 0; }
[data-avatar-hat-sprite="accessory-glasses"] { --avatar-hat-x: 4; --avatar-hat-y: 0; }
[data-avatar-hat-sprite="hat-wizard"] { --avatar-hat-x: 5; --avatar-hat-y: 0; }
[data-avatar-hat-sprite="hat-helmet"] { --avatar-hat-x: 6; --avatar-hat-y: 0; }
[data-avatar-hat-sprite="accessory-bow"] { --avatar-hat-x: 7; --avatar-hat-y: 0; }
[data-avatar-hat-sprite="hat-party"] { --avatar-hat-x: 0; --avatar-hat-y: 1; }
[data-avatar-hat-sprite="accessory-headphones"] { --avatar-hat-x: 1; --avatar-hat-y: 1; }
[data-avatar-hat-sprite="accessory-medal"] { --avatar-hat-x: 2; --avatar-hat-y: 1; }
[data-avatar-hat-sprite="accessory-compass"] { --avatar-hat-x: 3; --avatar-hat-y: 1; }
[data-avatar-hat-sprite="accessory-backpack"] { --avatar-hat-x: 4; --avatar-hat-y: 1; }
[data-avatar-hat-sprite="accessory-shield"] { --avatar-hat-x: 5; --avatar-hat-y: 1; }
[data-avatar-hat-sprite="accessory-scarf"] { --avatar-hat-x: 6; --avatar-hat-y: 1; }
[data-avatar-hat-sprite="accessory-briefcase"] { --avatar-hat-x: 7; --avatar-hat-y: 1; }
[data-avatar-hat-sprite="accessory-painter"] { --avatar-hat-x: 0; --avatar-hat-y: 2; }
[data-avatar-hat-sprite="accessory-lab"] { --avatar-hat-x: 1; --avatar-hat-y: 2; }
[data-avatar-hat-sprite="accessory-lightning"] { --avatar-hat-x: 2; --avatar-hat-y: 2; }

[data-avatar-head="calculator"],
[data-avatar-head="abacus"],
[data-avatar-head="ruler"],
[data-avatar-head="protractor"],
[data-avatar-head="testtube"],
[data-avatar-head="notebook"],
[data-avatar-head="backpackhead"],
[data-avatar-head="microscope"],
[data-avatar-head="pencil"],
[data-avatar-head="book"] {
    background:
        radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.3), transparent 24%),
        linear-gradient(145deg, rgba(245, 195, 106, 0.24), rgba(113, 199, 216, 0.18)),
        rgba(3, 7, 18, 0.28);
}

[data-avatar-head="cardboard"],
[data-avatar-head="masked"],
[data-avatar-head="paperbag"],
[data-avatar-head="sleepy"],
[data-avatar-head="smile"],
[data-avatar-head="wink"],
[data-avatar-head="starface"] {
    background:
        radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.34), transparent 25%),
        linear-gradient(145deg, rgba(245, 195, 106, 0.26), rgba(213, 101, 42, 0.2)),
        rgba(3, 7, 18, 0.28);
}

[data-avatar-head="bear"],
[data-avatar-head="cat"],
[data-avatar-head="chick"],
[data-avatar-head="dog"],
[data-avatar-head="fox"],
[data-avatar-head="frog"],
[data-avatar-head="koala"],
[data-avatar-head="lion"],
[data-avatar-head="monkey"],
[data-avatar-head="owl"],
[data-avatar-head="panda"],
[data-avatar-head="penguin"],
[data-avatar-head="rabbit"],
[data-avatar-head="turtle"] {
    background:
        radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.3), transparent 24%),
        linear-gradient(145deg, rgba(113, 199, 216, 0.22), rgba(147, 197, 114, 0.18)),
        rgba(3, 7, 18, 0.28);
}

.admin-shell {
    max-width: 1180px;
}

.connection-shell {
    min-height: calc(100dvh - 96px);
    display: grid;
    align-content: center;
    max-width: 720px;
}

.admin-gate,
.admin-panel {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(18px) saturate(1.08);
}

.admin-gate {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
    padding: 18px 22px;
}

.connection-gate {
    display: grid;
    gap: 22px;
    margin: 0;
    padding: clamp(22px, 4vw, 34px);
}

.connection-gate .admin-identity {
    align-items: center;
}

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

.connection-actions:has(.cv-button[hidden]) {
    grid-template-columns: minmax(0, 1fr);
}

.connection-actions .cv-button {
    justify-content: center;
    width: 100%;
    min-height: 54px;
}

.admin-identity {
    display: flex;
    align-items: center;
    gap: 14px;
}

.admin-identity strong,
.admin-identity span {
    display: block;
}

.admin-identity strong {
    color: #111827;
    font-size: 1.05rem;
}

.admin-identity span {
    color: #5f6f86;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.admin-section {
    border: 1px solid var(--selection-off-border);
    border-radius: 8px;
    background: var(--selection-off-bg);
    overflow: hidden;
    transition: border-color 160ms ease, background 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.admin-section[open] {
    border-color: var(--selection-on-border);
    background: var(--selection-on-bg);
    box-shadow: var(--selection-on-shadow);
}

.admin-section.is-dragging {
    opacity: 0.58;
    transform: scale(0.992);
}

.admin-section.is-drag-over {
    border-color: rgba(203, 223, 246, 0.86);
    box-shadow: inset 0 0 0 2px rgba(203, 223, 246, 0.34);
}

.admin-section summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    color: var(--selection-off-text);
    cursor: grab;
    list-style: none;
    user-select: none;
    touch-action: none;
}

.admin-section[open] summary {
    color: var(--selection-on-text);
}

.admin-section summary:active {
    cursor: grabbing;
}

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

.admin-section summary span {
    display: inline-flex;
    align-items: center;
    color: inherit;
    font-weight: 950;
}

.admin-section summary span::before {
    display: none;
    content: "";
}

.admin-section[open] summary span::before {
    content: "−";
}

.admin-section summary small {
    color: rgba(232, 240, 249, 0.78);
    font-weight: 900;
    text-align: right;
}

.admin-section[open] summary small {
    color: #31455f;
}

.admin-section-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 0 18px 18px;
}

.admin-section-grid > .admin-panel {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    padding: 20px 0;
}

.admin-section-grid > .admin-panel + .admin-panel {
    border-top: 1px solid rgba(7, 17, 34, 0.22);
}

.admin-section-grid > .admin-panel p {
    color: #31455f;
    max-width: 760px;
}

.admin-section-grid > .admin-panel .admin-form {
    max-width: none;
}

.admin-panel {
    padding: 22px;
}

.admin-panel--wide {
    grid-column: 1 / -1;
}

.admin-panel h2 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 1.35rem;
}

.admin-panel p {
    color: #5f6f86;
}

.onwork-shell {
    width: min(1360px, calc(100% - clamp(36px, 7vw, 96px)));
}

.onwork-content {
    display: grid;
    gap: 16px;
}

.onwork-page .admin-gate {
    margin-bottom: 16px;
}

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

.other-card.onwork-card {
    min-height: clamp(154px, 20dvh, 210px);
}

.other-card .onwork-card__status {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    min-height: 0;
    padding: 5px 8px;
    border-radius: 999px;
    color: #101726;
    background: rgba(246, 199, 117, 0.88);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.1;
    -webkit-line-clamp: unset;
}

.cv-button.is-disabled,
.cv-button[aria-disabled="true"],
.other-card.is-disabled,
.other-card[aria-disabled="true"] {
    opacity: 0.56;
    cursor: not-allowed;
    pointer-events: none;
}

.admin-form {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.admin-form label {
    display: grid;
    gap: 6px;
    color: #111827;
    font-weight: 800;
}

.admin-form .admin-toggle-field {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(17, 24, 39, 0.16);
    border-radius: 7px;
    padding: 10px 12px;
    color: #111827;
    background: rgba(255, 255, 255, 0.78);
    font: inherit;
}

.admin-form .admin-toggle-field input {
    width: auto;
    min-height: 0;
}

.admin-form textarea {
    min-height: 230px;
    resize: vertical;
    font: 0.82rem/1.45 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.admin-daily-gemini-preview {
    padding: 14px 16px;
    border-left: 3px solid var(--accent);
    border-radius: 0 8px 8px 0;
    background: rgba(7, 17, 34, 0.08);
}

.admin-daily-gemini-preview blockquote {
    margin: 0;
    color: var(--ink);
    font-size: 18px;
    font-weight: 850;
    line-height: 1.28;
}

.admin-daily-gemini-preview p,
.admin-daily-gemini-preview small {
    margin: 8px 0 0;
    color: var(--muted);
}

.admin-database-form textarea {
    min-height: 320px;
}

.admin-database-form.is-error {
    padding: 12px;
    border: 1px solid rgba(185, 28, 28, 0.38);
    border-radius: 8px;
    background: rgba(254, 226, 226, 0.72);
}

.admin-database-form.is-error textarea,
.admin-database-form.is-error select {
    border-color: rgba(185, 28, 28, 0.68);
    background: rgba(255, 247, 247, 0.96);
}

.admin-database-summary {
    margin: 0;
    color: #31455f;
    font-weight: 800;
}

.admin-database-grid {
    display: grid;
    gap: 10px;
    max-width: 100%;
    overflow: hidden;
}

.admin-database-grid table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    overflow: hidden;
    border: 1px solid rgba(7, 17, 34, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.56);
}

.admin-database-grid th,
.admin-database-grid td {
    min-width: 0;
    padding: 9px;
    border-bottom: 1px solid rgba(7, 17, 34, 0.1);
    border-right: 1px solid rgba(7, 17, 34, 0.08);
    vertical-align: top;
    overflow-wrap: anywhere;
}

.admin-database-grid tr:last-child th,
.admin-database-grid tr:last-child td {
    border-bottom: 0;
}

.admin-database-grid th {
    color: #172033;
    background: rgba(255, 253, 248, 0.7);
    font-size: 0.82rem;
    text-align: left;
}

.admin-database-grid th span,
.admin-database-grid th small {
    display: block;
}

.admin-database-grid th small {
    margin-top: 3px;
    color: #5f6d80;
    font-size: 0.72rem;
    line-height: 1.25;
}

.admin-database-grid input,
.admin-database-grid textarea {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding: 8px;
    border: 1px solid rgba(7, 17, 34, 0.14);
    border-radius: 6px;
    color: #111827;
    background: rgba(255, 255, 255, 0.82);
    font: inherit;
    font-size: 0.82rem;
}

.admin-database-grid textarea {
    min-height: 58px;
    max-height: 180px;
    resize: vertical;
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.admin-database-grid input:disabled,
.admin-database-grid textarea:disabled {
    color: #344258;
    background: rgba(238, 242, 247, 0.72);
}

.admin-database-note {
    margin: 0;
    padding: 10px 12px;
    border: 1px solid rgba(37, 99, 235, 0.22);
    border-radius: 8px;
    color: #1e3a8a;
    background: rgba(219, 234, 254, 0.7);
    font-weight: 800;
}

.admin-status-line {
    min-height: 20px;
    margin: 0;
    font-weight: 700;
}

.admin-status-line[data-state="ok"] {
    color: #14532d;
    font-weight: 900;
}

.admin-status-line[data-state="error"] {
    display: block;
    padding: 10px 12px;
    border: 1px solid rgba(185, 28, 28, 0.42);
    border-radius: 8px;
    color: #7f1d1d;
    background: rgba(254, 226, 226, 0.92);
    font-weight: 900;
}

.admin-results {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.admin-feature-page {
    gap: 24px;
}

.admin-feature-create {
    display: grid;
    grid-template-columns: minmax(170px, 0.8fr) minmax(180px, 1fr) minmax(150px, 0.8fr) minmax(150px, 0.8fr) auto;
    gap: 16px;
    align-items: end;
    padding: 18px;
    border: 1px solid rgba(47, 143, 157, 0.18);
    border-radius: 8px;
    background: rgba(113, 199, 216, 0.12);
}

.admin-feature-create h3 {
    margin: 0;
    color: var(--night);
    font-size: 18px;
    line-height: 1.25;
}

.admin-feature-create label,
.admin-feature-custom-editor label {
    display: grid;
    gap: 8px;
    color: var(--night);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.admin-feature-create input,
.admin-feature-create select,
.admin-feature-create textarea,
.admin-feature-custom-editor input,
.admin-feature-custom-editor textarea {
    width: 100%;
    min-height: 42px;
    border: 1px solid #d9ccba;
    border-radius: 7px;
    padding: 10px 12px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.9);
    font: inherit;
    font-size: 14px;
    letter-spacing: 0;
    text-transform: none;
}

.admin-feature-create textarea,
.admin-feature-custom-editor textarea {
    resize: vertical;
}

.admin-feature-create__wide {
    grid-column: span 2;
}

.admin-feature-toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 1.25fr) minmax(190px, 0.75fr) minmax(210px, 0.85fr) auto;
    gap: 14px;
    align-items: end;
    margin-bottom: 10px;
    padding: 18px 0 12px;
    border-top: 1px solid rgba(7, 17, 34, 0.16);
    border-bottom: 1px solid rgba(7, 17, 34, 0.1);
    background: transparent;
}

.admin-feature-toolbar label {
    display: grid;
    gap: 8px;
    color: var(--night);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.admin-feature-filter {
    position: relative;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.admin-feature-filter summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid var(--selection-off-border);
    border-radius: 8px;
    color: var(--selection-off-text);
    background: var(--selection-off-bg);
    cursor: pointer;
    list-style: none;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.admin-feature-filter summary::-webkit-details-marker {
    display: none;
}

.admin-feature-filter summary span {
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.admin-feature-filter summary small {
    max-width: 150px;
    overflow: hidden;
    color: rgba(255, 253, 248, 0.72);
    font-size: 12px;
    font-weight: 850;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-feature-filter[open] summary,
.admin-feature-filter:has(input:checked) summary {
    border-color: var(--selection-on-border);
    color: var(--selection-on-text);
    background: var(--selection-on-bg);
    box-shadow: var(--selection-on-shadow);
}

.admin-feature-filter[open] summary small,
.admin-feature-filter:has(input:checked) summary small {
    color: rgba(7, 17, 34, 0.68);
}

.admin-feature-filter-list {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    left: 0;
    z-index: 30;
    display: grid;
    max-height: min(360px, 54vh);
    overflow: auto;
    padding: 4px 0;
    border: 1px solid rgba(211, 225, 241, 0.72);
    border-radius: 8px;
    background: rgba(184, 202, 224, 0.98);
    box-shadow: 0 18px 40px rgba(7, 17, 34, 0.22);
}

.admin-feature-filter label {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    min-height: 40px;
    padding: 9px 12px;
    border: 0;
    border-radius: 0;
    color: var(--night);
    background: transparent;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
}

.admin-feature-filter label + label {
    border-top: 1px solid rgba(7, 17, 34, 0.12);
}

.admin-feature-filter label:hover,
.admin-feature-filter label:focus-within {
    background: rgba(255, 253, 248, 0.22);
}

.admin-feature-filter label:has(input:checked) {
    color: var(--selection-on-text);
    background: rgba(255, 253, 248, 0.36);
    box-shadow: inset 3px 0 0 rgba(7, 17, 34, 0.72);
}

.admin-feature-filter input {
    width: 14px;
    height: 14px;
    margin: 0;
    accent-color: var(--cyan);
}

.admin-feature-toolbar input,
.admin-feature-toolbar select {
    width: 100%;
    min-height: 42px;
    border: 1px solid #d9ccba;
    border-radius: 7px;
    padding: 10px 12px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.88);
    font: inherit;
    font-size: 14px;
    letter-spacing: 0;
    text-transform: none;
}

.admin-feature-count {
    margin: 14px 0 16px;
    color: #5f6f86;
    font-weight: 800;
    line-height: 1.35;
}

.admin-feature-map,
.admin-feature-group {
    display: grid;
    gap: 12px;
}

.admin-feature-group > div {
    display: grid;
    gap: 0;
    border-top: 1px solid rgba(7, 17, 34, 0.14);
}

.admin-feature-group h3 {
    margin: 0;
    color: var(--amber-dark);
    font-size: 13px;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-feature-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    padding: 12px 2px;
    border-bottom: 1px solid rgba(7, 17, 34, 0.14);
    background: transparent;
}

.admin-feature-light {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    border-radius: 999px;
    background: rgba(113, 199, 216, 0.74);
    box-shadow: 0 0 10px rgba(113, 199, 216, 0.18);
}

.admin-feature-card.is-tested .admin-feature-light {
    background: #39c982;
    box-shadow:
        0 0 8px rgba(57, 201, 130, 0.68),
        0 0 20px rgba(57, 201, 130, 0.3);
}

.admin-feature-card.is-broken .admin-feature-light {
    background: #ff4d5c;
    box-shadow:
        0 0 8px rgba(255, 77, 92, 0.9),
        0 0 22px rgba(255, 77, 92, 0.52),
        0 0 42px rgba(245, 195, 106, 0.22);
    animation: admin-feature-glow 2.6s ease-in-out infinite;
}

.admin-feature-card.is-broken {
    border-color: rgba(255, 77, 92, 0.36);
    background: linear-gradient(90deg, rgba(255, 77, 92, 0.08), transparent 58%);
}

.admin-feature-card.has-archived-note {
    opacity: 0.76;
}

@keyframes admin-feature-glow {
    0%,
    100% {
        opacity: 0.82;
        transform: scale(0.94);
    }

    50% {
        opacity: 1;
        transform: scale(1.08);
    }
}

.admin-feature-body {
    display: grid;
    gap: 8px;
}

.admin-feature-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.admin-feature-title-line {
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
}

.admin-feature-body strong {
    color: var(--night);
    font-size: 17px;
}

.admin-feature-status-toggle,
.admin-feature-status-select,
.admin-feature-status-badge {
    min-width: 106px;
    border: 1px solid var(--selection-off-border);
    border-radius: 8px;
    padding: 8px 11px;
    color: var(--selection-off-text);
    background: var(--selection-off-bg);
    font: inherit;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.admin-feature-status-badge {
    display: inline-flex;
    justify-content: center;
    cursor: default;
}

.admin-feature-status-select {
    appearance: auto;
    min-height: 38px;
}

.admin-feature-status-toggle:hover,
.admin-feature-status-toggle:focus-visible,
.admin-feature-status-select:hover,
.admin-feature-status-select:focus-visible {
    border-color: var(--selection-on-border);
    box-shadow: 0 0 0 3px rgba(113, 199, 216, 0.2);
}

.admin-feature-status-toggle[aria-pressed="true"],
.admin-feature-card.is-tested .admin-feature-status-select {
    border-color: var(--selection-on-border);
    color: var(--selection-on-text);
    background: var(--selection-on-bg);
    box-shadow: var(--selection-on-shadow);
}

.admin-feature-card.is-broken .admin-feature-status-toggle,
.admin-feature-card.is-broken .admin-feature-status-select,
.admin-feature-card.is-broken .admin-feature-status-badge {
    border-color: rgba(255, 77, 92, 0.48);
    color: #7f1d1d;
    background: rgba(254, 226, 226, 0.94);
}

.admin-feature-body p {
    margin: 0;
    color: #4d5f76;
    line-height: 1.38;
}

.admin-feature-body nav {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.admin-feature-body nav a {
    border: 1px solid rgba(47, 143, 157, 0.18);
    border-radius: 999px;
    padding: 4px 8px;
    color: var(--night);
    background: rgba(113, 199, 216, 0.18);
    font-size: 11px;
    font-weight: 900;
    text-decoration: none;
}

.admin-feature-body nav span {
    color: #5f6f86;
    font-size: 12px;
    font-weight: 800;
}

.admin-feature-custom-editor {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(7, 17, 34, 0.14);
    background: transparent;
}

.admin-feature-custom-editor label:nth-child(3),
.admin-feature-custom-editor label:nth-child(4) {
    grid-column: 1 / -1;
}

.admin-feature-body label {
    display: grid;
    gap: 8px;
    color: var(--night);
    font-weight: 850;
}

.admin-feature-note-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(108px, auto);
    gap: 8px;
    align-items: stretch;
}

.admin-feature-body select,
.admin-feature-body textarea {
    min-height: 44px;
    border: 1px solid #d9ccba;
    border-radius: 7px;
    padding: 10px 12px;
    color: var(--ink);
    background: var(--white);
    font: inherit;
    resize: vertical;
}

.admin-feature-body select {
    min-height: 0;
    padding: 10px 12px;
    font-weight: 850;
}

.admin-feature-note-row textarea {
    resize: vertical;
}

.admin-feature-note-row select[hidden] {
    display: none;
}

.admin-feature-card.has-archived-note .admin-feature-note-row textarea,
.admin-feature-card.has-archived-note .admin-feature-note-row select {
    color: rgba(92, 104, 126, 0.72);
    background: rgba(255, 253, 248, 0.42);
}

.admin-feature-body select:disabled {
    opacity: 0.62;
}

.admin-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px;
    border: 1px solid rgba(17, 24, 39, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.56);
}

.admin-result span {
    display: inline-block;
    margin-bottom: 4px;
    color: #a34120;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.admin-result h3 {
    margin: 0;
    color: #111827;
}

.admin-result p,
.admin-result small,
.admin-empty {
    margin: 3px 0 0;
    color: #5f6f86;
}

.admin-result__open-evaluation {
    display: block;
    color: #35435a;
    font-weight: 800;
}

.admin-result__text-answer {
    display: block;
    color: #4f5f76;
    font-weight: 700;
}

.admin-result__collected-answer {
    display: block;
    color: #31455f;
    font-weight: 800;
}

.admin-result-progression {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    align-items: center;
    margin-top: 7px;
}

.admin-result-progression strong {
    color: #111827;
    font-size: 0.78rem;
}

.admin-result-progression small {
    margin: 0;
}

.admin-result-progression__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.admin-result-progression__badges b {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border: 1px solid rgba(163, 65, 32, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    color: #a34120;
    font-size: 0.72rem;
    font-weight: 900;
}

.admin-device-list {
    display: grid;
    gap: 10px;
}

.admin-device {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid rgba(17, 24, 39, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.56);
}

.admin-device strong {
    color: #111827;
}

.admin-device span,
.admin-device small {
    color: #5f6f86;
    overflow-wrap: anywhere;
}

.admin-version-info {
    display: grid;
    gap: 8px;
}

.admin-version-row {
    display: grid;
    grid-template-columns: minmax(90px, 0.45fr) minmax(0, 1fr);
    gap: 10px;
    align-items: baseline;
    padding: 9px 10px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.52);
}

.admin-version-row span {
    color: #5f6f86;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-version-row strong {
    min-width: 0;
    color: #111827;
    overflow-wrap: anywhere;
}

@media (max-width: 860px) {
    .admin-gate,
    .admin-result {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-feature-create,
    .admin-feature-toolbar {
        grid-template-columns: 1fr;
    }

    .admin-feature-filter-list {
        position: static;
        margin-top: 8px;
        border-radius: 0 0 8px 8px;
        box-shadow: none;
    }

    .admin-feature-create__wide,
    .admin-feature-custom-editor label:nth-child(3),
    .admin-feature-custom-editor label:nth-child(4) {
        grid-column: auto;
    }

    .admin-feature-custom-editor {
        grid-template-columns: 1fr;
    }

    .admin-section-grid,
    .admin-grid {
        grid-template-columns: 1fr;
    }

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

    .admin-section summary small {
        text-align: left;
    }

    .admin-feature-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .admin-feature-body {
        grid-column: 1 / -1;
    }
}

.education-lobby-sky em {
    color: rgba(245, 248, 255, 0.72);
    font-style: normal;
    font-weight: 850;
}

.education-lobby-link {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 6px;
    margin: 0;
    color: rgba(245, 248, 255, 0.78);
    font-size: 13px;
    font-weight: 850;
}

.education-lobby-link input {
    width: min(100%, 520px);
    min-height: 42px;
    border-color: rgba(113, 199, 216, 0.28);
    color: var(--white);
    background: rgba(3, 7, 18, 0.58);
    font-size: 14px;
}

.education-lobby-share {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: end;
}

.education-lobby-share .cv-button {
    min-height: 42px;
    white-space: nowrap;
}

.education-lobby-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0 52px 0 0;
    list-style: none;
}

.education-lobby-list li {
    padding: 8px 10px;
    border: 1px solid rgba(113, 199, 216, 0.22);
    border-radius: 999px;
    color: var(--white);
    background: rgba(113, 199, 216, 0.14);
    font-weight: 900;
}

.education-lobby-count {
    position: absolute;
    right: 12px;
    bottom: 12px;
    min-width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(245, 195, 106, 0.4);
    border-radius: 999px;
    color: var(--night);
    background: var(--amber);
    font-weight: 950;
}

.education-competition-question .education-classroom-help,
.education-competition-question .education-classroom-operators {
    color: rgba(245, 248, 255, 0.76);
}

.education-competition-answer {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
}

.education-competition-answer[hidden] {
    display: none;
}

#education-competition-answer-status {
    margin: 0;
    color: rgba(245, 248, 255, 0.76);
    font-weight: 850;
}

#education-competition-answer-status[data-state="busy"] {
    color: var(--cyan-soft);
}

#education-competition-answer-status[data-state="success"] {
    color: var(--mint);
}

#education-competition-answer-status[data-state="error"] {
    color: #ffd2c9;
}

.education-competition-answer .education-question {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.9);
}

.education-competition-answer .education-question textarea {
    min-height: 92px;
    resize: vertical;
}

.education-competition-answer .education-question small {
    max-width: 68ch;
}

.education-competition-answer .education-panel-answer-card {
    gap: 10px;
}

.education-competition-answer .education-panel-answer-card strong {
    display: block;
    padding: 10px 12px;
    border-left: 4px solid var(--accent);
    border-radius: 6px;
    color: var(--night);
    background: rgba(245, 195, 106, 0.18);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    line-height: 1.15;
}

.education-choice-list--competition {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.education-choice-list--competition .education-choice {
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    min-height: 70px;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 253, 248, 0.92);
    font-size: 1.2rem;
}

.education-choice-list--competition .education-choice input {
    width: 22px;
    height: 22px;
    margin: 0;
}

.education-choice-list--competition .education-choice b {
    width: 2.25em;
    height: 2.25em;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: var(--night);
    background: rgba(245, 195, 106, 0.82);
    font-size: 0.86em;
    font-weight: 950;
    line-height: 1;
}

@media (min-width: 980px) {
    .education-competition[data-status="running"],
    .education-competition[data-status="finished"] {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 0.36fr);
    }

    .education-competition[data-status="running"] .education-competition__top,
    .education-competition[data-status="finished"] .education-competition__top,
    .education-competition[data-status="running"] .education-competition-host-actions,
    .education-competition[data-status="finished"] .education-competition-host-actions {
        grid-column: 1 / -1;
    }

    .education-competition[data-status="running"] .education-competition-question,
    .education-competition[data-status="running"] .education-competition-answer,
    .education-competition[data-status="running"] .education-classroom-solution,
    .education-competition[data-status="finished"] .education-competition-question,
    .education-competition[data-status="finished"] .education-competition-answer,
    .education-competition[data-status="finished"] .education-classroom-solution {
        grid-column: 1;
    }

    .education-competition[data-status="running"] #education-competition-board,
    .education-competition[data-status="finished"] #education-competition-board {
        grid-column: 2;
        grid-row: 2 / span 4;
        position: sticky;
        top: 18px;
    }

    .education-competition[data-status="running"][data-question-type="panel-dilemma"] {
        grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
        grid-template-rows: auto auto auto auto;
        grid-template-areas:
            "top top"
            "body board"
            "answer powers"
            "actions actions";
        max-height: none;
        overflow: visible;
    }

    .education-competition[data-status="running"][data-question-type="panel-dilemma"] .education-competition-question {
        min-height: 0;
        max-height: none;
        overflow: visible;
    }

    .education-competition[data-status="running"][data-question-type="panel-dilemma"] .education-competition__top,
    .education-competition[data-status="running"][data-question-type="panel-dilemma"] .education-competition-host-actions {
        grid-column: auto;
    }

    .education-competition[data-status="running"][data-question-type="panel-dilemma"] .education-competition-question,
    .education-competition[data-status="running"][data-question-type="panel-dilemma"] .education-competition-answer,
    .education-competition[data-status="running"][data-question-type="panel-dilemma"] .education-classroom-solution {
        grid-column: auto;
    }

    .education-competition[data-status="running"][data-question-type="panel-dilemma"] #education-competition-board {
        grid-column: auto;
        grid-row: auto;
        position: static;
        top: auto;
        align-self: start;
        max-height: none;
    }

    .education-competition[data-status="running"][data-question-type="panel-dilemma"] #education-competition-host-powers {
        grid-column: auto;
        grid-row: auto;
        align-self: start;
    }
}

.education-competition-waiting {
    display: grid;
    gap: 8px;
    padding: 18px;
    border: 1px solid rgba(245, 195, 106, 0.28);
    border-radius: 8px;
    color: var(--white);
    background: rgba(6, 11, 26, 0.48);
}

.education-competition-waiting span {
    color: var(--amber);
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.education-competition-waiting h3,
.education-competition-waiting p {
    margin: 0;
}

.education-competition-waiting__answer {
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.education-competition-waiting__answer b {
    color: var(--amber);
}

.education-competition-waiting strong {
    color: var(--amber);
    font-size: clamp(22px, 4vw, 32px);
}

.education-competition-report {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
}

.education-competition-report > strong {
    color: var(--white);
}

.education-competition-report > p {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.education-competition-report-summary span {
    padding: 6px 10px;
    border: 1px solid rgba(245, 195, 106, 0.24);
    border-radius: 999px;
    color: rgba(255, 253, 248, 0.9);
    background: rgba(245, 195, 106, 0.12);
}

.education-competition-report > div {
    display: grid;
    gap: 8px;
}

.education-competition-report article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 12px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    color: var(--white);
    background: rgba(3, 7, 18, 0.28);
}

.education-competition-report span,
.education-competition-report b {
    font-weight: 950;
}

.education-competition-report small {
    grid-column: 1 / -1;
    color: rgba(245, 248, 255, 0.78);
    font-weight: 850;
}

.education-award-results {
    display: grid;
    gap: 12px;
}

.education-award-results__head {
    display: grid;
    gap: 4px;
}

.education-award-results__head span,
.education-award-result-card header span,
.education-award-result-winner span {
    color: rgba(245, 195, 106, 0.92);
    font-size: 0.78rem;
    font-weight: 950;
    text-transform: uppercase;
}

.education-award-results__head strong {
    color: var(--white);
    font-size: 1.35rem;
    line-height: 1.15;
}

.education-award-results__head small {
    color: rgba(245, 248, 255, 0.76);
    font-weight: 850;
}

.education-award-result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    gap: 10px;
}

.education-award-result-card {
    display: grid;
    gap: 10px;
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(245, 195, 106, 0.28);
    border-radius: 8px;
    color: var(--white);
    background: rgba(3, 7, 18, 0.38);
}

.education-award-result-card[data-award-state="awarded"] {
    border-color: rgba(43, 126, 92, 0.72);
    background: rgba(43, 126, 92, 0.2);
}

.education-award-result-card h4,
.education-award-result-card p {
    margin: 0;
}

.education-award-result-card h4 {
    color: var(--white);
    font-size: 1.05rem;
    line-height: 1.2;
}

.education-award-result-winner {
    display: grid;
    gap: 3px;
    min-height: 66px;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
}

.education-award-result-winner strong {
    color: var(--white);
    font-size: 1.18rem;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.education-award-result-winner small,
.education-award-result-empty {
    color: rgba(245, 248, 255, 0.76);
    font-weight: 850;
}

.education-award-podium {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.education-award-podium li {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
}

.education-award-podium li > * {
    min-width: 0;
}

.education-award-podium li.is-winner {
    border-color: rgba(43, 126, 92, 0.84);
    background: rgba(43, 126, 92, 0.3);
}

.education-award-podium span,
.education-award-podium small {
    color: rgba(245, 248, 255, 0.76);
    font-weight: 850;
    line-height: 1.15;
}

.education-award-podium strong {
    min-width: 0;
    color: var(--white);
    overflow-wrap: anywhere;
}

.education-award-result-details {
    display: grid;
    gap: 10px;
}

.education-award-result-details summary {
    cursor: pointer;
    color: var(--amber);
    font-weight: 950;
}

.education-award-vote-table {
    --award-vote-participant-width: 112px;
    --award-vote-fixed-width: 330px;
    max-width: 100%;
    overflow-x: auto;
    overflow-inline: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
    border: 1px solid rgba(245, 195, 106, 0.22);
    border-radius: 8px;
    background: rgba(3, 7, 18, 0.26);
}

.education-award-vote-table table {
    width: max(100%, calc((var(--award-vote-columns, 4) * var(--award-vote-participant-width)) + var(--award-vote-fixed-width)));
    min-width: max(760px, calc((var(--award-vote-columns, 4) * var(--award-vote-participant-width)) + var(--award-vote-fixed-width)));
    border-collapse: collapse;
    table-layout: fixed;
}

.education-award-vote-table th,
.education-award-vote-table td {
    padding: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 253, 248, 0.9);
    text-align: center;
    vertical-align: middle;
    overflow-wrap: anywhere;
}

.education-award-vote-table th:first-child {
    text-align: left;
    position: sticky;
    left: 0;
    z-index: 2;
    width: 190px;
    background: rgba(9, 17, 34, 0.96);
}

.education-award-vote-table th:last-child,
.education-award-vote-table td:last-child {
    position: sticky;
    right: 0;
    z-index: 2;
    width: 140px;
    background: rgba(9, 17, 34, 0.96);
}

.education-award-vote-table thead th {
    z-index: 3;
}

.education-award-vote-table thead th:first-child,
.education-award-vote-table thead th:last-child {
    z-index: 4;
}

.education-award-vote-table tbody tr:last-child th,
.education-award-vote-table tbody tr:last-child td {
    border-bottom: 0;
}

.education-award-vote-table td.is-winner {
    color: var(--white);
    background: rgba(43, 126, 92, 0.42);
    font-weight: 950;
}

.education-award-table-winner {
    color: #b7e4b0;
    font-weight: 950;
    background: rgba(9, 17, 34, 0.96);
}

.education-award-config {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(245, 195, 106, 0.28);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
}

.education-award-config[hidden] {
    display: none;
}

.education-award-config header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.education-award-config h3 {
    margin: 2px 0 0;
    color: var(--white);
    font-size: 1.05rem;
}

.education-award-equity {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    color: var(--white);
    font-weight: 900;
}

.education-award-rule {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(140px, 0.4fr);
    gap: 10px;
    align-items: end;
}

.education-award-rule label[hidden] {
    display: none;
}

.education-award-list {
    display: grid;
    gap: 8px;
}

.education-award-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.education-award-row > span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    color: rgba(255, 253, 248, 0.9);
    background: rgba(245, 195, 106, 0.14);
    font-weight: 950;
}

.education-award-name-input {
    min-width: 0;
}

.education-award-remove {
    max-width: 100%;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    font-weight: 850;
    line-height: 1.1;
    overflow-wrap: anywhere;
    cursor: pointer;
}

@media (max-width: 640px) {
    .education-mode-picker,
    .education-main > .education-common-config .education-quick-settings,
    .education-main > .education-common-config .education-common-config__grid,
    .education-main > .education-common-config .education-competition-extra__grid,
    .education-award-rule,
    .education-content-editor {
        grid-template-columns: 1fr;
    }

    .education-content-item > summary {
        grid-template-columns: 30px minmax(0, 1fr);
    }

    .education-content-item > summary small {
        grid-column: 2;
        text-align: left;
    }

    .education-award-config header {
        align-items: flex-start;
        flex-direction: column;
    }

    .education-award-row {
        grid-template-columns: 30px minmax(0, 1fr);
    }

    .education-award-remove {
        grid-column: 2;
        justify-self: start;
    }
}

.education-content-manager {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    grid-column: 1 / -1;
    gap: 14px;
    width: 100%;
    min-width: 0;
    min-height: 0;
    box-sizing: border-box;
    position: relative;
    z-index: 0;
    scroll-margin-top: clamp(76px, 8vw, 104px);
    padding: 16px;
    border: 1px solid rgba(15, 35, 70, 0.14);
    border-radius: 8px;
    background: rgba(255, 253, 248, 0.72);
    overflow: hidden;
}

body[data-education-user="teacher"] #education-content-manager {
    grid-area: content;
    grid-row: 3;
    grid-column: 1 / -1;
    align-self: stretch;
}

.education-content-manager[hidden] {
    display: none;
}

.education-content-manager header {
    display: flex;
    gap: 12px;
    align-items: start;
    justify-content: space-between;
    min-width: 0;
}

.education-content-manager h2 {
    margin: 0;
    color: var(--night);
    font-size: 1.1rem;
}

.education-content-manager header span {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 850;
}

.education-content-manager header span[data-state="success"] {
    color: #27623f;
}

.education-content-manager header span[data-state="error"] {
    color: #842727;
}

.education-content-list {
    display: grid;
    gap: 8px;
    min-width: 0;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 4px;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
}

.education-session-metadata {
    min-width: 0;
    border: 1px solid rgba(15, 35, 70, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.58);
    overflow: hidden;
}

.education-session-metadata > summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 42px;
    padding: 9px 10px;
    cursor: pointer;
    list-style: none;
}

.education-session-metadata > summary::-webkit-details-marker {
    display: none;
}

.education-session-metadata > summary span {
    color: rgba(7, 17, 34, 0.58);
    font-size: 0.68rem;
    font-weight: 950;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.education-session-metadata > summary strong,
.education-session-metadata > summary small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.education-session-metadata > summary strong {
    color: var(--night);
    font-size: 0.95rem;
}

.education-session-metadata > summary small {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 850;
}

.education-session-metadata__body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    gap: 8px;
    padding: 0 10px 10px;
}

.education-session-metadata__wide {
    grid-column: 1 / -1;
}

.education-session-metadata label {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.education-session-metadata label span {
    color: rgba(7, 17, 34, 0.66);
    font-size: 0.68rem;
    font-weight: 950;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.education-session-metadata input,
.education-session-metadata textarea {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    border: 1px solid rgba(15, 35, 70, 0.16);
    border-radius: 7px;
    padding: 9px 10px;
    color: var(--night);
    background: rgba(255, 255, 255, 0.82);
    font: inherit;
    font-weight: 800;
}

.education-session-metadata textarea {
    resize: vertical;
}

.education-content-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    gap: 8px;
    align-items: start;
    min-width: 0;
}

.education-content-actions__group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(92px, 100%), 1fr));
    gap: 6px;
    align-items: end;
    align-content: start;
    min-width: 0;
    padding: 8px;
    border: 1px solid rgba(15, 35, 70, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.54);
}

.education-content-actions__group > span,
.education-content-actions__group > summary > span {
    grid-column: 1 / -1;
    color: rgba(7, 17, 34, 0.58);
    font-size: 0.68rem;
    font-weight: 950;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
}

.education-content-actions__group[data-content-action-group="create"] {
    grid-template-columns: repeat(auto-fit, minmax(min(92px, 100%), 1fr));
}

.education-content-actions__group[data-content-action-group="export"] {
    grid-template-columns: minmax(0, 1fr);
}

.education-content-actions__group--details {
    padding: 0;
    overflow: hidden;
}

.education-content-actions__group--details > summary {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    min-height: 40px;
    padding: 0 8px;
    cursor: pointer;
    list-style: none;
}

.education-content-actions__group--details > summary::-webkit-details-marker {
    display: none;
}

.education-content-actions__group--details > summary > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.education-content-actions__group--details > summary > strong {
    flex: 0 0 auto;
    max-width: 54%;
    overflow: hidden;
    padding: 4px 7px;
    border: 1px solid rgba(15, 35, 70, 0.08);
    border-radius: 999px;
    color: var(--night);
    background: rgba(255, 255, 255, 0.78);
    font-size: 0.74rem;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.education-content-actions__body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(92px, 100%), 1fr));
    gap: 6px;
    min-width: 0;
    padding: 0 8px 8px;
}

.education-content-actions__group--details:not([open]) .education-content-actions__body {
    display: none;
}

.education-content-actions__group[data-content-action-group="awards"],
.education-content-actions__group[data-content-action-group="rules"] {
    grid-template-columns: minmax(0, 1fr);
}

.education-content-actions__group.education-content-award-rulebar {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr) minmax(96px, 0.45fr);
}

.education-content-award-rulebar label {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.education-content-award-rulebar label[hidden] {
    display: none;
}

.education-content-award-rulebar small {
    color: rgba(7, 17, 34, 0.58);
    font-size: 0.68rem;
    font-weight: 950;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
}

.education-content-award-rulebar select,
.education-content-award-rulebar input {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    border: 1px solid #d9ccba;
    border-radius: 7px;
    padding: 8px 10px;
    color: var(--ink);
    background: var(--white);
    font: inherit;
}

.education-content-actions .cv-button {
    justify-content: center;
    width: 100%;
    min-height: 34px;
    min-width: 0;
    padding: 0 8px;
    font-size: 0.78rem;
    overflow-wrap: anywhere;
    white-space: normal;
}

.education-content-filter {
    display: grid;
    grid-template-columns: minmax(min(300px, 100%), 1fr) minmax(min(190px, 100%), 0.48fr) minmax(min(310px, 100%), 0.86fr) auto minmax(118px, auto);
    gap: 8px;
    align-items: end;
    min-width: 0;
    padding: 8px;
    border: 1px solid rgba(15, 35, 70, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.56);
}

.education-content-filter label {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.education-content-filter label > span {
    color: rgba(7, 17, 34, 0.58);
    font-size: 0.68rem;
    font-weight: 950;
    letter-spacing: 0.05em;
    line-height: 1;
    text-transform: uppercase;
}

.education-content-filter input,
.education-content-filter select,
.education-content-filter button {
    min-width: 0;
    min-height: 36px;
    border: 1px solid rgba(15, 35, 70, 0.12);
    border-radius: 7px;
    padding: 0 10px;
    color: var(--night);
    background: rgba(255, 255, 255, 0.78);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 850;
    line-height: 1.15;
}

.education-content-filter button {
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.education-content-filter__quick-panel {
    display: grid;
    min-width: 0;
}

.education-content-filter__quick-panel > summary {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    min-height: 36px;
    border: 1px solid rgba(15, 35, 70, 0.12);
    border-radius: 7px;
    padding: 0 9px;
    color: rgba(7, 17, 34, 0.72);
    background: rgba(255, 255, 255, 0.72);
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 900;
    list-style: none;
}

.education-content-filter__quick-panel > summary::-webkit-details-marker {
    display: none;
}

.education-content-filter__quick-panel > summary span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.education-content-filter__quick-panel > summary strong {
    flex: 0 0 auto;
    max-width: 54%;
    overflow: hidden;
    color: #174f59;
    font-size: 0.72rem;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.education-content-filter__shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: end;
    min-width: 0;
    padding-top: 5px;
}

.education-content-filter__quick-panel:not([open]) .education-content-filter__shortcuts {
    display: none;
}

.education-content-filter__shortcuts button {
    display: inline-flex;
    flex: 1 1 76px;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-height: 36px;
    padding: 0 8px;
    color: rgba(7, 17, 34, 0.72);
    background: rgba(255, 255, 255, 0.64);
    font-size: 0.76rem;
    font-weight: 900;
}

.education-content-filter__shortcuts button.is-active {
    border-color: rgba(47, 143, 157, 0.42);
    color: #174f59;
    background: rgba(113, 199, 216, 0.2);
}

.education-content-filter__shortcuts strong {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    min-height: 22px;
    border-radius: 999px;
    color: #174f59;
    background: rgba(113, 199, 216, 0.18);
    font-size: 0.68rem;
    font-weight: 950;
}

.education-content-filter small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    min-width: 0;
    border: 1px solid rgba(47, 143, 157, 0.12);
    border-radius: 7px;
    padding: 0 10px;
    color: rgba(7, 17, 34, 0.66);
    background: rgba(113, 199, 216, 0.12);
    font-size: 0.76rem;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.education-content-filter small strong {
    color: #206976;
    font-weight: 950;
}

.education-content-filter[data-active="true"] {
    border-color: rgba(47, 143, 157, 0.24);
    background: rgba(113, 199, 216, 0.12);
}

.education-content-filter__empty {
    margin: 0;
    border: 1px dashed rgba(15, 35, 70, 0.18);
    border-radius: 8px;
    padding: 10px;
    color: rgba(7, 17, 34, 0.68);
    background: rgba(255, 255, 255, 0.48);
    font-size: 0.84rem;
    font-weight: 850;
}

.education-content-selection {
    display: grid;
    grid-template-columns: minmax(210px, 0.5fr) minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    min-width: 0;
    position: sticky;
    top: 0;
    z-index: 12;
    border: 1px solid rgba(15, 35, 70, 0.1);
    border-radius: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 20px rgba(42, 54, 72, 0.08);
    backdrop-filter: blur(10px);
}

.education-content-selection__summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1px 7px;
    align-items: center;
    min-width: 0;
}

.education-content-selection__summary strong {
    grid-row: 1 / 3;
    display: inline-grid;
    place-items: center;
    min-width: 32px;
    min-height: 32px;
    border-radius: 999px;
    color: #206976;
    background: rgba(113, 199, 216, 0.18);
    font-size: 0.84rem;
    font-weight: 950;
}

.education-content-selection__summary span,
.education-content-selection__summary small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.education-content-selection__summary span {
    color: var(--night);
    font-size: 0.8rem;
    font-weight: 950;
}

.education-content-selection__summary small {
    color: rgba(7, 17, 34, 0.62);
    font-size: 0.72rem;
    font-weight: 850;
}

.education-content-selection__actions {
    display: grid;
    grid-template-columns: minmax(190px, 0.82fr) minmax(260px, 1.18fr) minmax(134px, 0.42fr);
    gap: 6px;
    align-items: stretch;
    min-width: 0;
}

.education-content-selection__group {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
    min-width: 0;
    border: 1px solid rgba(15, 35, 70, 0.08);
    border-radius: 8px;
    padding: 5px;
    background: rgba(7, 17, 34, 0.035);
}

.education-content-selection__group-label {
    flex: 0 0 auto;
    padding: 0 4px;
    color: rgba(7, 17, 34, 0.52);
    font-size: 0.66rem;
    font-weight: 950;
    letter-spacing: 0.05em;
    line-height: 1;
    text-transform: uppercase;
}

.education-content-selection__group[data-content-selection-group="replace"] {
    background: rgba(113, 199, 216, 0.08);
}

.education-content-selection__group[data-content-selection-group="danger"] {
    background: rgba(181, 73, 59, 0.045);
}

.education-content-selection button {
    flex: 1 1 92px;
    min-height: 34px;
    min-width: 0;
    border: 1px solid rgba(15, 35, 70, 0.12);
    border-radius: 7px;
    padding: 0 10px;
    color: var(--night);
    background: rgba(255, 255, 255, 0.66);
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1.12;
    overflow-wrap: anywhere;
    cursor: pointer;
}

.education-content-selection button:disabled {
    cursor: not-allowed;
    opacity: 0.48;
}

.education-content-selection [data-content-replace-visible-label] {
    border-color: rgba(32, 105, 118, 0.24);
    color: #174f59;
    background: rgba(113, 199, 216, 0.16);
}

.education-content-selection [data-content-select-action="delete"] {
    border-color: rgba(181, 73, 59, 0.18);
    color: #8f2f24;
    background: rgba(181, 73, 59, 0.08);
}

@media (max-width: 900px) {
    .education-content-actions {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 1120px) {
    .education-content-filter {
        grid-template-columns: minmax(0, 1fr) minmax(170px, 0.42fr) minmax(104px, auto);
    }

    .education-content-filter__shortcuts {
        grid-column: 1 / -1;
    }

    .education-content-filter small {
        justify-self: stretch;
    }

    .education-content-selection {
        grid-template-columns: minmax(0, 1fr);
    }

    .education-content-selection__actions {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 760px) {
    .onwork-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .onwork-card {
        min-height: 0;
    }
}

@media (max-width: 760px) {
    .education-content-filter {
        grid-template-columns: minmax(0, 1fr);
    }

    .education-content-filter small {
        justify-content: flex-start;
    }

    .education-content-selection {
        grid-template-columns: minmax(0, 1fr);
        position: static;
        box-shadow: none;
        backdrop-filter: none;
    }

    .education-content-selection__actions {
        justify-content: flex-start;
    }

    .education-content-selection__group {
        align-items: stretch;
    }

    .education-content-media-panel > div {
        grid-template-columns: minmax(0, 1fr);
    }
}

.education-content-defaults {
    display: grid;
    grid-template-columns: minmax(170px, 0.58fr) minmax(260px, 1fr) minmax(220px, 0.78fr);
    gap: 6px;
    align-items: stretch;
    padding: 7px;
    border: 1px solid rgba(15, 35, 70, 0.1);
    border-radius: 8px;
    background: rgba(7, 17, 34, 0.04);
}

.education-content-defaults__summary,
.education-content-defaults__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
    min-width: 0;
}

.education-content-defaults__summary {
    align-content: center;
}

.education-content-defaults__meta {
    justify-content: flex-end;
}

.education-content-defaults span,
.education-content-defaults .education-content-status-badge {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-width: 0;
    min-height: 26px;
    border: 1px solid rgba(15, 35, 70, 0.1);
    border-radius: 999px;
    padding: 0 8px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.62);
    font-size: 0.75rem;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.education-content-defaults .education-content-defaults__label {
    color: var(--night);
    background: rgba(245, 195, 106, 0.22);
}

.education-content-defaults .education-content-defaults__actions {
    gap: 5px;
    border-color: rgba(47, 143, 157, 0.18);
    background: rgba(113, 199, 216, 0.1);
}

.education-content-defaults__controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(136px, 100%), 1fr));
    min-width: 0;
    gap: 5px;
}

.education-content-defaults__controls label {
    display: grid;
    grid-template-columns: minmax(72px, 0.82fr) minmax(58px, 1fr);
    align-items: center;
    min-width: 0;
    gap: 6px;
    border: 1px solid rgba(15, 35, 70, 0.1);
    border-radius: 8px;
    padding: 5px 6px;
    background: rgba(255, 255, 255, 0.76);
}

.education-content-defaults__controls label > span {
    display: block;
    min-height: 0;
    border: 0;
    border-radius: 0;
    padding: 0;
    color: var(--muted);
    background: transparent;
    font-size: 0.68rem;
    line-height: 1.1;
}

.education-content-defaults__controls input,
.education-content-defaults__controls select {
    width: 100%;
    min-width: 0;
    min-height: 28px;
    border: 1px solid rgba(15, 35, 70, 0.14);
    border-radius: 6px;
    padding: 4px 6px;
    color: var(--night);
    background: #fff;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 900;
}

.education-content-defaults__actions:empty {
    display: none;
}

.education-content-defaults__actions button {
    min-height: 24px;
    border: 1px solid rgba(47, 143, 157, 0.24);
    border-radius: 999px;
    padding: 3px 8px;
    color: var(--night);
    background: rgba(255, 255, 255, 0.78);
    cursor: pointer;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 900;
}

.education-content-defaults__actions button:hover,
.education-content-defaults__actions button:focus-visible {
    border-color: rgba(47, 143, 157, 0.46);
    background: rgba(113, 199, 216, 0.18);
}

@media (max-width: 1120px) {
    .education-content-defaults {
        grid-template-columns: minmax(0, 1fr);
    }

    .education-content-defaults__meta {
        justify-content: flex-start;
    }
}

.education-content-launch-plan {
    display: grid;
    gap: 8px;
    min-width: 0;
    border: 1px solid rgba(47, 143, 157, 0.16);
    border-radius: 8px;
    padding: 10px;
    background: rgba(113, 199, 216, 0.1);
}

.education-content-launch-plan header {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
}

.education-content-launch-plan header div {
    display: grid;
    gap: 2px;
    min-width: min(260px, 100%);
}

.education-content-launch-plan header span {
    color: rgba(7, 17, 34, 0.58);
    font-size: 0.68rem;
    font-weight: 950;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.education-content-launch-plan header strong {
    color: var(--night);
    font-size: 0.98rem;
    font-weight: 950;
}

.education-content-launch-plan header small {
    color: rgba(7, 17, 34, 0.62);
    font-size: 0.76rem;
    font-weight: 850;
}

.education-content-launch-plan__topic {
    width: fit-content;
    max-width: 100%;
    border: 1px solid rgba(47, 143, 157, 0.18);
    border-radius: 999px;
    padding: 3px 8px;
    color: #206976;
    background: rgba(113, 199, 216, 0.14);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.education-content-launch-plan header button {
    min-height: 32px;
    border: 1px solid rgba(15, 35, 70, 0.14);
    border-radius: 7px;
    padding: 0 10px;
    color: var(--night);
    background: rgba(255, 255, 255, 0.72);
    font-size: 0.76rem;
    font-weight: 900;
    cursor: pointer;
}

.education-content-launch-plan__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
    min-width: 0;
}

.education-content-launch-plan__actions button {
    min-width: 0;
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.education-content-launch-plan ol {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.education-content-launch-plan li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 2px 7px;
    align-items: center;
    min-width: 0;
    border: 1px solid rgba(15, 35, 70, 0.1);
    border-radius: 8px;
    padding: 7px 8px;
    background: rgba(255, 255, 255, 0.64);
}

.education-content-launch-plan li > span {
    grid-row: 1 / 3;
    display: inline-grid;
    place-items: center;
    min-width: 30px;
    min-height: 30px;
    border-radius: 999px;
    color: #206976;
    background: rgba(113, 199, 216, 0.2);
    font-size: 0.72rem;
    font-weight: 950;
}

.education-content-launch-plan li strong,
.education-content-launch-plan li small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.education-content-launch-plan li strong {
    color: var(--night);
    font-size: 0.8rem;
    font-weight: 950;
}

.education-content-launch-plan li small {
    color: rgba(7, 17, 34, 0.62);
    font-size: 0.72rem;
    font-weight: 830;
}

.education-content-launch-plan li[data-state="gemini"] > span,
.education-content-launch-plan li[data-state="more"] > span {
    color: #8d5b00;
    background: rgba(245, 195, 106, 0.18);
}

.education-content-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 24px;
    border: 1px solid rgba(15, 35, 70, 0.12);
    border-radius: 999px;
    padding: 0 8px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.68);
    font-size: 0.72rem;
    font-weight: 950;
    line-height: 1;
    white-space: nowrap;
}

button.education-content-status-badge {
    cursor: pointer;
    font: inherit;
}

button.education-content-status-badge:hover,
button.education-content-status-badge:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(113, 199, 216, 0.22);
}

.education-content-status-badge[data-state="ready"] {
    border-color: rgba(37, 120, 76, 0.24);
    color: #1e6f48;
    background: rgba(65, 174, 111, 0.12);
}

.education-content-status-badge[data-state="warning"] {
    border-color: rgba(169, 113, 18, 0.28);
    color: #8d5b00;
    background: rgba(245, 195, 106, 0.18);
}

.education-content-status-badge[data-state="error"] {
    border-color: rgba(136, 37, 37, 0.28);
    color: #8a2b2b;
    background: rgba(255, 103, 103, 0.12);
}

.education-content-issue-line {
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    color: rgba(7, 17, 34, 0.66);
    font-size: 0.68rem;
    font-weight: 850;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.education-content-issue-line[data-state="warning"] {
    color: #8d5b00;
}

.education-content-issue-line[data-state="error"] {
    color: #842727;
}

.education-content-add-type {
    display: grid;
    gap: 4px;
    min-width: min(220px, 100%);
    color: var(--night);
    font-size: 0.74rem;
    font-weight: 900;
}

.education-content-actions__group .education-content-add-type {
    min-width: 0;
}

.education-content-add-type select {
    min-height: 38px;
    min-width: 0;
}

.education-content-bulk {
    display: grid;
    min-width: 0;
    border: 1px solid rgba(15, 35, 70, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.58);
}

.education-content-bulk summary {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    min-height: 38px;
    padding: 0 10px;
    cursor: pointer;
    list-style: none;
}

.education-content-bulk summary::-webkit-details-marker {
    display: none;
}

.education-content-bulk summary span {
    min-width: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.education-content-bulk summary strong {
    flex: 0 0 auto;
    max-width: 58%;
    overflow: hidden;
    padding: 5px 8px;
    border: 1px solid rgba(15, 35, 70, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--night);
    font-size: 0.78rem;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.education-content-bulk__body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
    gap: 8px;
    align-items: end;
    min-width: 0;
    padding: 0 10px 10px;
}

.education-content-bulk:not([open]) .education-content-bulk__body {
    display: none;
}

.education-content-bulk label {
    display: grid;
    gap: 5px;
    min-width: 0;
    color: var(--night);
    font-size: 0.78rem;
    font-weight: 900;
}

.education-content-bulk input,
.education-content-bulk select {
    width: 100%;
    min-width: 0;
}

.education-content-bulk .cv-button {
    width: 100%;
    min-height: 42px;
    white-space: normal;
}

.education-content-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 850;
}

.education-content-toggle input {
    width: auto;
}

.education-content-records {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.education-content-compact {
    --education-content-compact-row-height: 116px;
    --education-content-compact-control-height: 32px;
    --education-content-compact-row-padding: 10px;
    --education-content-compact-cell-height: calc(var(--education-content-compact-row-height) - (var(--education-content-compact-row-padding) * 2));
    --education-content-compact-surface: rgba(255, 255, 255, 0.68);
    --education-content-compact-surface-quiet: rgba(246, 242, 234, 0.62);
    --education-content-compact-border: rgba(15, 35, 70, 0.12);
    --education-content-compact-border-strong: rgba(47, 143, 157, 0.32);
    display: grid;
    gap: 8px;
    min-width: 0;
    width: 100%;
}

.education-content-compact__head,
.education-content-compact__row {
    display: grid;
    grid-template-columns: 30px 66px minmax(80px, 0.25fr) minmax(0, 1.14fr) minmax(0, 1.18fr) minmax(112px, 0.46fr) minmax(136px, 0.4fr);
    gap: 6px;
    align-items: stretch;
    min-width: 0;
}

.education-content-compact__head {
    position: sticky;
    top: 0;
    z-index: 11;
    padding: 0 10px;
    border: 1px solid rgba(15, 35, 70, 0.1);
    border-radius: 8px;
    color: rgba(7, 17, 34, 0.62);
    background: linear-gradient(180deg, rgba(255, 253, 248, 0.97), rgba(248, 244, 236, 0.94));
    box-shadow: 0 8px 18px rgba(42, 54, 72, 0.07);
    backdrop-filter: blur(10px);
    font-size: 0.72rem;
    font-weight: 950;
    text-transform: uppercase;
}

.education-content-compact__head > [role="columnheader"] {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 34px;
    overflow: hidden;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.education-content-compact__row {
    min-height: var(--education-content-compact-row-height);
    padding: var(--education-content-compact-row-padding);
    border: 1px solid var(--education-content-compact-border);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(250, 248, 244, 0.82));
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.82) inset, 0 6px 14px rgba(42, 54, 72, 0.05);
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.education-content-compact__row:hover {
    border-color: rgba(47, 143, 157, 0.22);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 248, 244, 0.88));
}

.education-content-compact__row.is-content-dragging {
    opacity: 0.68;
    border-color: rgba(47, 143, 157, 0.48);
    box-shadow: 0 0 0 2px rgba(113, 199, 216, 0.18), 0 14px 30px rgba(42, 54, 72, 0.12);
}

.education-content-compact__row[data-content-drop-target] {
    border-color: rgba(210, 103, 45, 0.5);
}

.education-content-compact__row[data-content-drop-target="before"] {
    box-shadow: 0 -4px 0 rgba(210, 103, 45, 0.36), 0 6px 14px rgba(42, 54, 72, 0.06);
}

.education-content-compact__row[data-content-drop-target="after"] {
    box-shadow: 0 4px 0 rgba(210, 103, 45, 0.36), 0 6px 14px rgba(42, 54, 72, 0.06);
}

@supports selector(:has(*)) {
    .education-content-compact__row:not(:has(.education-content-compact__details[open])) {
        height: var(--education-content-compact-row-height);
        overflow: clip;
    }
}

.education-content-compact__row[data-content-state="warning"],
.education-content-item[data-content-state="warning"] {
    border-color: rgba(169, 113, 18, 0.26);
}

.education-content-compact__row[data-content-state="error"],
.education-content-item[data-content-state="error"] {
    border-color: rgba(136, 37, 37, 0.28);
}

.education-content-compact__row[data-content-focus="true"],
.education-content-item[data-content-focus="true"],
.education-content-award-row[data-content-focus="true"] {
    border-color: rgba(47, 143, 157, 0.46);
    box-shadow: 0 0 0 2px rgba(113, 199, 216, 0.2), 0 14px 34px rgba(42, 54, 72, 0.12);
}

.education-content-compact__row > *,
.education-content-compact label,
.education-content-compact__answers,
.education-content-compact__settings {
    min-width: 0;
}

.education-content-compact__row > [role="cell"] {
    min-height: 0;
    align-self: stretch;
    overflow-wrap: anywhere;
}

.education-content-compact__type,
.education-content-compact__prompt,
.education-content-compact__answers,
.education-content-compact__settings,
.education-content-compact__actions {
    box-sizing: border-box;
    height: var(--education-content-compact-cell-height);
    min-height: var(--education-content-compact-cell-height);
    border: 1px solid rgba(15, 35, 70, 0.08);
    border-radius: 8px;
    padding: 6px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.42);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.66) inset;
}

.education-content-compact label,
.education-content-compact__answers,
.education-content-compact__settings {
    display: grid;
    gap: 5px;
    align-content: start;
}

.education-content-compact label > span,
.education-content-compact__answers > span {
    color: rgba(7, 17, 34, 0.62);
    font-size: 0.7rem;
    font-weight: 950;
    text-transform: uppercase;
}

.education-content-compact input,
.education-content-compact select,
.education-content-compact textarea {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: var(--education-content-compact-control-height);
    border: 1px solid var(--education-content-compact-border);
    border-radius: 7px;
    padding: 7px 8px;
    color: var(--ink);
    background: var(--education-content-compact-surface);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72) inset;
    font: inherit;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.education-content-compact input:hover,
.education-content-compact select:hover,
.education-content-compact textarea:hover {
    border-color: rgba(15, 35, 70, 0.22);
    background: rgba(255, 255, 255, 0.84);
}

.education-content-compact input:focus,
.education-content-compact select:focus,
.education-content-compact textarea:focus {
    border-color: var(--education-content-compact-border-strong);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 0 0 2px rgba(113, 199, 216, 0.18);
    outline: none;
}

.education-content-compact select {
    appearance: none;
    padding-right: 28px;
    background-color: var(--education-content-compact-surface);
    background-image:
        linear-gradient(45deg, transparent 50%, rgba(7, 17, 34, 0.58) 50%),
        linear-gradient(135deg, rgba(7, 17, 34, 0.58) 50%, transparent 50%);
    background-position:
        calc(100% - 14px) 50%,
        calc(100% - 9px) 50%;
    background-repeat: no-repeat;
    background-size: 5px 5px, 5px 5px;
}

.education-content-compact input[type="number"] {
    appearance: textfield;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.education-content-compact input[type="number"]::-webkit-outer-spin-button,
.education-content-compact input[type="number"]::-webkit-inner-spin-button {
    margin: 0;
    appearance: none;
}

.education-content-compact textarea {
    height: 48px;
    min-height: 48px;
    max-height: 48px;
    overflow: hidden;
    resize: none;
}

.education-content-compact__type {
    grid-template-rows: var(--education-content-compact-control-height) 18px 18px;
}

.education-content-compact__prompt {
    grid-template-rows: 48px 22px 20px;
}

.education-content-compact__answers,
.education-content-compact__actions {
    grid-template-rows: minmax(0, 1fr);
}

.education-content-compact__prompt:has(.education-content-compact-media) {
    grid-template-columns: minmax(0, 1fr) minmax(58px, 72px);
    align-items: start;
}

.education-content-compact__prompt:has(.education-content-compact-media) > span:first-child {
    grid-column: 1 / -1;
}

.education-content-compact__prompt:has(.education-content-compact-media) textarea,
.education-content-compact__prompt:has(.education-content-compact-media) .education-content-context-preview,
.education-content-compact__prompt:has(.education-content-compact-media) .education-content-line-badges {
    grid-column: 1;
}

.education-content-compact__prompt:has(.education-content-compact-media) .education-content-compact-media {
    grid-column: 2;
    grid-row: 2 / span 2;
    align-self: start;
}

@media (min-width: 821px) {
    .education-content-compact__row {
        padding: 8px;
    }

    .education-content-compact label,
    .education-content-compact__answers,
    .education-content-compact__settings {
        gap: 3px;
    }

    .education-content-compact__row > label > span,
    .education-content-compact__row > .education-content-compact__answers > span {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .education-content-compact input,
    .education-content-compact select,
    .education-content-compact textarea {
        padding: 6px 7px;
    }

    .education-content-compact textarea {
        height: 46px;
        min-height: 46px;
        max-height: 46px;
    }
}

.education-content-compact small {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 850;
}

.education-content-setting-note {
    display: block;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 850;
    line-height: 1.25;
}

.education-content-setting-note--override {
    color: #8d5b00;
}

.education-content-compact__row > label > small {
    display: none;
}

.education-content-compact__settings .education-content-setting-note {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: stretch;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-height: 16px;
    border: 1px solid rgba(15, 35, 70, 0.08);
    border-radius: 999px;
    padding: 1px 3px;
    overflow: hidden;
    color: rgba(7, 17, 34, 0.58);
    background: rgba(255, 255, 255, 0.58);
    font-size: 0.56rem;
    font-weight: 950;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.education-content-compact__settings .education-content-setting-note--override {
    border-color: rgba(169, 113, 18, 0.18);
    color: #8d5b00;
    background: rgba(245, 195, 106, 0.18);
}

.education-content-toggle .education-content-setting-note {
    flex-basis: 100%;
}

.education-content-compact__settings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: min-content;
    gap: 4px;
    align-content: start;
}

.education-content-compact__settings > label:not(.education-content-toggle) {
    grid-template-rows: 12px var(--education-content-compact-control-height) 16px;
    gap: 3px;
    min-height: 64px;
}

.education-content-compact__settings .education-content-toggle {
    grid-column: 1 / -1;
    margin-top: 0;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    min-height: 22px;
    border: 1px solid rgba(15, 35, 70, 0.08);
    border-radius: 7px;
    padding: 2px 5px;
    overflow: hidden;
    color: rgba(7, 17, 34, 0.68);
    background: rgba(255, 255, 255, 0.5);
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.education-content-select-cell {
    display: grid;
    place-items: center;
    min-height: 34px;
}

.education-content-select-cell input {
    width: 18px;
    height: 18px;
}

.education-content-compact input[type="checkbox"],
.education-content-compact input[type="radio"] {
    appearance: none;
    display: inline-grid;
    flex: 0 0 auto;
    place-content: center;
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
    border: 1px solid rgba(15, 35, 70, 0.24);
    border-radius: 5px;
    padding: 0;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
    cursor: pointer;
}

.education-content-compact input[type="radio"] {
    border-radius: 999px;
}

.education-content-compact input[type="checkbox"]::before,
.education-content-compact input[type="radio"]::before {
    content: "";
    width: 8px;
    height: 8px;
    transform: scale(0);
    background: #206976;
    transition: transform 0.12s ease;
}

.education-content-compact input[type="checkbox"]::before {
    clip-path: polygon(14% 52%, 32% 36%, 46% 53%, 75% 20%, 91% 36%, 47% 82%);
}

.education-content-compact input[type="radio"]::before {
    border-radius: 999px;
}

.education-content-compact input[type="checkbox"]:checked,
.education-content-compact input[type="radio"]:checked {
    border-color: rgba(15, 35, 70, 0.24);
    background: rgba(255, 255, 255, 0.84);
}

.education-content-compact input[type="checkbox"]:checked::before,
.education-content-compact input[type="radio"]:checked::before {
    transform: scale(1);
}

.education-content-choice-editor {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.education-content-answer-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
    width: 100%;
    min-width: 0;
    min-height: 42px;
    max-height: 66px;
    overflow: hidden;
    border: 1px solid rgba(15, 35, 70, 0.12);
    border-radius: 8px;
    padding: 6px;
    color: var(--night);
    background: rgba(255, 255, 255, 0.62);
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.education-content-answer-summary span {
    display: inline-flex;
    flex: 1 1 calc(50% - 5px);
    align-items: center;
    gap: 5px;
    max-width: calc(50% - 3px);
    min-height: 24px;
    overflow: hidden;
    border: 1px solid rgba(15, 35, 70, 0.1);
    border-radius: 999px;
    padding: 2px 7px 2px 4px;
    color: rgba(7, 17, 34, 0.74);
    background: rgba(244, 239, 230, 0.6);
    font-size: 0.74rem;
    font-weight: 850;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.education-content-answer-summary b {
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    color: var(--night);
    background: rgba(255, 255, 255, 0.82);
    font-size: 0.68rem;
    font-weight: 950;
}

.education-content-answer-summary small {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 950;
}

.education-content-answer-summary small[data-content-choice-summary-meta] {
    flex: 1 0 100%;
    min-width: 0;
    overflow: hidden;
    color: rgba(7, 17, 34, 0.68);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.education-content-main-answer {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.education-content-main-answer__pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    min-width: 0;
}

.education-content-type-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    max-height: 50px;
    overflow: hidden;
    min-width: 0;
}

.education-content-type-summary span,
.education-content-type-summary button {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    min-height: 22px;
    border: 1px solid rgba(15, 35, 70, 0.1);
    border-radius: 999px;
    padding: 2px 7px;
    color: rgba(7, 17, 34, 0.72);
    background: rgba(244, 239, 230, 0.56);
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1.1;
}

.education-content-type-summary span {
    flex: 1 1 calc(50% - 4px);
    max-width: calc(50% - 2px);
    gap: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.education-content-type-summary span[data-state="target"] {
    border-color: rgba(47, 143, 157, 0.2);
    color: #206976;
    background: rgba(113, 199, 216, 0.13);
}

.education-content-type-summary b {
    flex: 0 0 auto;
    color: rgba(7, 17, 34, 0.86);
    font-weight: 950;
}

.education-content-type-summary button {
    flex: 0 0 auto;
    cursor: pointer;
}

.education-content-type-summary button:hover,
.education-content-type-summary button:focus-visible {
    border-color: rgba(47, 143, 157, 0.32);
    background: rgba(255, 255, 255, 0.74);
    outline: none;
}

.education-content-capabilities {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    min-width: 0;
    margin-top: 5px;
}

.education-content-inspector > .education-content-capabilities {
    padding: 0 14px 10px;
}

.education-content-capabilities span {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    border: 1px solid rgba(15, 35, 70, 0.1);
    border-radius: 999px;
    padding: 2px 7px;
    color: rgba(7, 17, 34, 0.74);
    background: rgba(255, 255, 255, 0.56);
    font-size: 0.66rem;
    font-weight: 950;
    line-height: 1;
    white-space: nowrap;
}

.education-content-capabilities span[data-state="score"] {
    border-color: rgba(41, 138, 91, 0.24);
    color: #1f6b49;
    background: rgba(91, 184, 125, 0.13);
}

.education-content-capabilities span[data-state="review"] {
    border-color: rgba(206, 96, 37, 0.32);
    color: #91401d;
    background: rgba(245, 195, 106, 0.18);
}

.education-content-capabilities span[data-state="media"],
.education-content-capabilities span[data-state="time"],
.education-content-capabilities span[data-state="collect"] {
    border-color: rgba(47, 143, 157, 0.22);
    color: #206976;
    background: rgba(113, 199, 216, 0.13);
}

.education-content-choice-inline {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 26px;
    gap: 4px;
    align-content: start;
    min-width: 0;
    height: 100%;
    max-height: 86px;
    overflow: hidden;
}

.education-content-choice-inline__row {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) 22px;
    gap: 4px;
    align-items: center;
    box-sizing: border-box;
    min-width: 0;
    height: 26px;
    min-height: 26px;
    border: 1px solid rgba(15, 35, 70, 0.09);
    border-radius: 7px;
    padding: 2px 4px 2px 3px;
    background: var(--education-content-compact-surface-quiet);
}

.education-content-choice-marker {
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    color: var(--night);
    background: rgba(245, 195, 106, 0.24);
    font-size: 0.66rem;
    font-weight: 950;
}

.education-content-choice-inline input[data-content-choice-text] {
    height: 20px;
    min-height: 20px;
    border: 0;
    border-radius: 5px;
    padding: 2px 4px;
    background: transparent;
    box-shadow: none;
    font-size: 0.74rem;
    font-weight: 850;
}

.education-content-choice-inline input[data-content-choice-text]:focus {
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 0 0 2px rgba(113, 199, 216, 0.16);
}

.education-content-choice-direct-correct,
.education-content-choice-inline__poll {
    display: inline-flex;
    gap: 4px;
    justify-content: center;
    align-items: center;
    width: 22px;
    min-height: 22px;
    color: rgba(7, 17, 34, 0.74);
    font-size: 0.7rem;
    font-weight: 950;
    white-space: nowrap;
}

.education-content-choice-direct-correct {
    position: relative;
    border-radius: 999px;
}

.education-content-choice-direct-correct input {
    position: absolute;
    inset: 0;
    width: 100%;
    min-width: 100%;
    height: 100%;
    min-height: 100%;
    padding: 0;
    margin: 0;
    opacity: 0;
}

.education-content-choice-direct-correct span {
    display: grid;
    place-items: center;
    box-sizing: border-box;
    width: 22px;
    height: 22px;
    border: 1px solid rgba(15, 35, 70, 0.12);
    border-radius: 999px;
    color: #206976;
    background: rgba(255, 255, 255, 0.66);
    font-size: 0.78rem;
    line-height: 1;
}

.education-content-choice-direct-correct span::before {
    content: "";
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
}

.education-content-choice-direct-correct input:checked + span::before {
    content: "✓";
}

.education-content-choice-direct-correct:focus-within span {
    border-color: rgba(47, 143, 157, 0.34);
    box-shadow: 0 0 0 2px rgba(113, 199, 216, 0.16);
}

.education-content-choice-inline__footer {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px;
    align-items: center;
    min-width: 0;
    height: 28px;
    min-height: 28px;
    overflow: hidden;
}

.education-content-choice-inline__footer small[data-content-choice-summary-meta] {
    min-width: 0;
    overflow: hidden;
    color: rgba(7, 17, 34, 0.68);
    font-size: 0.7rem;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.education-content-choice-inline__actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: flex-end;
    min-width: 0;
}

.education-content-choice-inline__footer button {
    display: inline-grid;
    place-items: center;
    width: 28px;
    min-height: 28px;
    border: 1px solid rgba(15, 35, 70, 0.12);
    border-radius: 7px;
    padding: 0;
    color: var(--night);
    background: rgba(255, 255, 255, 0.68);
    font-size: 0.72rem;
    font-weight: 950;
    line-height: 1;
    cursor: pointer;
}

.education-content-choice-inline__footer button:hover,
.education-content-choice-inline__footer button:focus-visible {
    border-color: rgba(47, 143, 157, 0.32);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 0 0 2px rgba(113, 199, 216, 0.14);
    outline: none;
}

@media (max-width: 520px) {
    .education-content-choice-inline {
        grid-template-columns: minmax(0, 1fr);
    }
}

.education-content-line-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    max-height: 48px;
    overflow: hidden;
}

.education-content-line-badges span {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    border: 1px solid rgba(15, 35, 70, 0.1);
    border-radius: 999px;
    padding: 1px 6px;
    color: rgba(7, 17, 34, 0.68);
    background: rgba(255, 255, 255, 0.58);
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.education-content-line-badges span[data-state="media"] {
    border-color: rgba(47, 143, 157, 0.22);
    color: #206976;
    background: rgba(113, 199, 216, 0.14);
}

.education-content-line-badges span[data-state="note"] {
    border-color: rgba(198, 99, 47, 0.18);
    color: #7a331c;
    background: rgba(245, 195, 106, 0.12);
}

.education-content-line-badges span[data-state="source"] {
    border-color: rgba(198, 99, 47, 0.2);
    color: #7a331c;
    background: rgba(245, 195, 106, 0.16);
}

.education-content-line-badges span[data-state="override"] {
    border-color: rgba(169, 113, 18, 0.22);
    color: #8d5b00;
    background: rgba(245, 195, 106, 0.16);
}

.education-content-context-preview {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 5px;
    width: 100%;
    min-width: 0;
    min-height: 20px;
    max-height: 22px;
    overflow: hidden;
    border: 1px solid rgba(198, 99, 47, 0.2);
    border-radius: 8px;
    padding: 1px 6px;
    color: #7a331c;
    background: rgba(245, 195, 106, 0.12);
    cursor: pointer;
    font: inherit;
    font-size: 0.66rem;
    font-weight: 900;
    line-height: 1;
    text-align: left;
}

.education-content-context-preview:hover,
.education-content-context-preview:focus-visible {
    border-color: rgba(198, 99, 47, 0.38);
    background: rgba(245, 195, 106, 0.2);
    outline: none;
}

.education-content-context-preview b,
.education-content-context-preview span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.education-content-context-preview b {
    font-size: 0.58rem;
    letter-spacing: 0;
    text-transform: uppercase;
}

.education-content-compact-media {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 6px;
    width: 100%;
    min-width: 0;
    min-height: 36px;
    border: 1px solid rgba(47, 143, 157, 0.2);
    border-radius: 8px;
    padding: 4px 6px;
    color: #206976;
    background: rgba(113, 199, 216, 0.12);
    cursor: pointer;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 950;
    text-align: left;
}

.education-content-compact-media:hover,
.education-content-compact-media:focus-visible {
    border-color: rgba(47, 143, 157, 0.42);
    background: rgba(113, 199, 216, 0.2);
    outline: none;
}

.education-content-compact-media img,
.education-content-compact-media__icon {
    width: 44px;
    height: 30px;
    border-radius: 6px;
}

.education-content-compact-media img {
    display: block;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.68);
}

.education-content-compact-media__icon {
    display: grid;
    place-items: center;
    border: 1px solid rgba(47, 143, 157, 0.18);
    background: rgba(255, 255, 255, 0.68);
    font-size: 0.62rem;
    line-height: 1;
    text-transform: uppercase;
}

.education-content-compact-media > span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.education-content-compact .education-content-choice-editor {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
}

.education-content-choice-row {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) auto auto;
    gap: 6px;
    align-items: end;
    min-width: 0;
}

.education-content-compact .education-content-choice-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 4px;
    align-items: center;
}

.education-content-compact .education-content-choice-row label {
    gap: 2px;
}

.education-content-compact .education-content-choice-row label > span {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.education-content-choice-correct {
    display: flex;
    gap: 5px;
    align-items: center;
    min-height: 34px;
    color: var(--night);
    font-size: 0.78rem;
    font-weight: 900;
}

.education-content-choice-correct input {
    width: auto;
}

.education-content-choice-editor button {
    min-height: 32px;
    border: 1px solid rgba(15, 35, 70, 0.12);
    border-radius: 7px;
    padding: 0 8px;
    color: var(--night);
    background: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    font-weight: 900;
    cursor: pointer;
}

.education-content-compact .education-content-choice-editor button {
    grid-column: 1 / -1;
    min-height: 28px;
}

.education-content-choice-panel,
.education-content-type-settings,
.education-content-media-panel,
.education-content-notes-panel {
    min-width: 0;
    margin: 0;
    border: 1px solid rgba(15, 35, 70, 0.1);
    border-radius: 8px;
    padding: 8px;
    background: rgba(113, 199, 216, 0.08);
}

.education-content-choice-panel,
.education-content-type-settings,
.education-content-notes-panel {
    background: rgba(255, 255, 255, 0.54);
}

.education-content-choice-panel legend,
.education-content-type-settings legend,
.education-content-media-panel legend,
.education-content-notes-panel legend {
    padding: 0 5px;
    color: var(--night);
    font-size: 0.74rem;
    font-weight: 950;
}

.education-content-media-panel > div {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.education-content-media-panel small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
}

.education-content-media-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
    min-width: 0;
    margin-top: 8px;
}

.education-content-media-preview figure {
    display: grid;
    gap: 5px;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(15, 35, 70, 0.1);
    border-radius: 8px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.68);
}

.education-content-media-preview__image {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
    border: 0;
    border-radius: 6px;
    padding: 0;
    background: rgba(7, 17, 34, 0.08);
    cursor: default;
}

.education-content-media-preview [data-content-pin-preview] .education-content-media-preview__image {
    cursor: crosshair;
}

.education-content-media-preview img,
.education-content-media-preview video,
.education-content-media-preview iframe {
    display: block;
    width: 100%;
    min-width: 0;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 6px;
    background: rgba(7, 17, 34, 0.08);
    object-fit: cover;
}

.education-content-media-preview__image img {
    object-fit: contain;
}

.education-content-media-preview [data-content-pin-marker] {
    position: absolute;
    display: block;
    translate: -50% -50%;
    border: 2px solid rgba(206, 96, 37, 0.96);
    border-radius: 999px;
    background: rgba(245, 195, 106, 0.2);
    box-shadow: 0 0 0 3px rgba(7, 17, 34, 0.18), 0 10px 24px rgba(7, 17, 34, 0.22);
    pointer-events: none;
}

.education-content-media-preview [data-content-pin-marker]::after {
    content: "";
    position: absolute;
    inset: 50% auto auto 50%;
    width: 7px;
    height: 7px;
    translate: -50% -50%;
    border-radius: 999px;
    background: #ce6025;
}

.education-content-media-preview a {
    display: grid;
    place-items: center;
    min-height: 86px;
    border-radius: 6px;
    color: #206976;
    background: rgba(113, 199, 216, 0.14);
    font-weight: 950;
    text-align: center;
}

.education-content-media-preview figcaption {
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
}

.education-content-type-settings > div,
.education-content-notes-panel > div {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.education-content-type-settings textarea,
.education-content-notes-panel textarea {
    min-height: 70px;
}

.education-content-compact__details {
    grid-column: 1 / -1;
    min-width: 0;
    width: calc(100% + (var(--education-content-compact-row-padding) * 2));
    max-width: calc(100% + (var(--education-content-compact-row-padding) * 2));
    margin: 2px calc(var(--education-content-compact-row-padding) * -1) 0;
    border: 1px solid rgba(15, 35, 70, 0.1);
    border-radius: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.56);
    box-shadow: 0 10px 26px rgba(42, 54, 72, 0.08);
}

.education-content-compact__details:not([open]) {
    display: none;
}

.education-content-compact__details summary {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border: 1px solid rgba(15, 35, 70, 0.1);
    border-radius: 7px;
    padding: 0 10px;
    cursor: pointer;
    color: rgba(7, 17, 34, 0.72);
    background: rgba(255, 255, 255, 0.68);
    font-size: 0.78rem;
    font-weight: 950;
}

.education-content-compact__details summary:hover,
.education-content-compact__details summary:focus-visible {
    border-color: rgba(47, 143, 157, 0.28);
    outline: none;
}

.education-content-detail-drawer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.education-content-inspector {
    display: grid;
    gap: 8px;
    min-width: 0;
    border: 1px solid rgba(47, 143, 157, 0.18);
    border-radius: 8px;
    padding: 10px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(244, 250, 250, 0.7));
    box-shadow: 0 8px 22px rgba(42, 54, 72, 0.06);
}

.education-content-inspector header {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
}

.education-content-inspector header div {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.education-content-inspector header span {
    color: #206976;
    font-size: 0.7rem;
    font-weight: 950;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.education-content-inspector header strong,
.education-content-inspector header small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.education-content-inspector header strong {
    color: var(--night);
    font-size: 0.95rem;
    font-weight: 950;
}

.education-content-inspector header small {
    color: rgba(7, 17, 34, 0.62);
    font-size: 0.76rem;
    font-weight: 850;
}

.education-content-inspector header button {
    flex: 0 0 auto;
    min-height: 30px;
    border: 1px solid rgba(15, 35, 70, 0.12);
    border-radius: 999px;
    padding: 0 10px;
    color: var(--night);
    background: rgba(255, 255, 255, 0.78);
    cursor: pointer;
    font: inherit;
    font-size: 0.74rem;
    font-weight: 900;
}

.education-content-inspector .education-content-detail-drawer {
    margin-top: 0;
}

.education-content-detail-drawer > .education-content-choice-panel,
.education-content-detail-drawer > .education-content-media-panel,
.education-content-detail-drawer > .education-content-notes-panel {
    grid-column: 1 / -1;
}

.education-content-rank {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    color: var(--night);
    background: rgba(245, 195, 106, 0.18);
    font-weight: 950;
}

.education-content-order-cell {
    display: grid;
    grid-template-columns: minmax(34px, 1fr) 22px;
    gap: 4px;
    align-items: center;
    min-width: 0;
    align-self: start;
}

.education-content-compact .education-content-order-input {
    min-height: 34px;
    padding: 5px 4px;
    text-align: center;
    font-weight: 950;
    background: rgba(245, 195, 106, 0.18);
}

.education-content-drag-handle {
    display: inline-grid;
    place-items: center;
    min-width: 0;
    min-height: 34px;
    padding: 0;
    border: 1px solid rgba(15, 35, 70, 0.12);
    border-radius: 8px;
    color: rgba(7, 17, 34, 0.62);
    background: rgba(255, 255, 255, 0.58);
    cursor: grab;
    touch-action: none;
}

.education-content-drag-handle:active {
    cursor: grabbing;
}

.education-content-drag-handle:hover,
.education-content-drag-handle:focus-visible {
    border-color: rgba(47, 143, 157, 0.32);
    color: #206976;
    background: rgba(113, 199, 216, 0.14);
    outline: none;
}

.education-content-type,
.education-content-muted {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 850;
    line-height: 1.3;
}

.education-content-item {
    border: 1px solid rgba(15, 35, 70, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    overflow: hidden;
}

.education-content-item > summary {
    display: grid;
    grid-template-columns: 38px minmax(0, 1.3fr) minmax(180px, 0.7fr);
    gap: 10px;
    align-items: center;
    min-height: 58px;
    padding: 10px 12px;
    cursor: pointer;
    list-style: none;
}

.education-content-item > summary::-webkit-details-marker {
    display: none;
}

.education-content-item > summary > span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    color: var(--night);
    background: rgba(245, 195, 106, 0.18);
    font-weight: 950;
}

.education-content-item > summary strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.education-content-item > summary small {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 850;
    text-align: right;
}

.education-content-editor {
    display: grid;
    grid-template-columns: minmax(150px, 0.8fr) minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(112px, 0.45fr);
    gap: 10px;
    padding: 12px;
    border-top: 1px solid rgba(15, 35, 70, 0.1);
}

.education-content-field {
    display: grid;
    gap: 6px;
    min-width: 0;
    align-content: start;
}

.education-content-field > span:first-child,
.education-content-award-row label > span,
.education-content-field--actions > span:first-child {
    color: rgba(7, 17, 34, 0.62);
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.education-content-field input,
.education-content-field select,
.education-content-field textarea,
.education-content-award-row input {
    width: 100%;
    min-width: 0;
    border: 1px solid #d9ccba;
    border-radius: 7px;
    padding: 9px 10px;
    color: var(--ink);
    background: var(--white);
    font: inherit;
}

.education-content-field textarea {
    resize: vertical;
}

.education-content-field small {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 850;
}

.education-content-field--prompt {
    grid-column: span 3;
}

.education-content-field--choices,
.education-content-field--answer,
.education-content-field--media,
.education-content-field--notes,
.education-content-field--description,
.education-content-field--help,
.education-content-field--feedback,
.education-content-field--explanation {
    grid-column: span 2;
}

.education-content-field--powers,
.education-content-field--actions {
    grid-column: span 1;
}

.education-content-award-row {
    display: grid;
    grid-template-columns: 42px minmax(180px, 1fr) minmax(180px, 1fr) minmax(120px, 0.4fr);
    gap: 10px;
    align-items: center;
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(15, 35, 70, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
}

.education-content-award-row > * {
    min-width: 0;
}

.education-content-award-row label {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.education-content-award-row .education-content-muted {
    overflow-wrap: anywhere;
    line-height: 1.25;
}

@media (max-width: 820px) {
    .education-content-compact__head {
        display: none;
        position: static;
        box-shadow: none;
        backdrop-filter: none;
    }

    .education-content-compact__row {
        grid-template-columns: 30px 66px minmax(0, 1fr);
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    @supports selector(:has(*)) {
        .education-content-compact__row:not(:has(.education-content-compact__details[open])) {
            height: auto;
            overflow: visible;
        }
    }

    .education-content-compact__row > :not(.education-content-rank):not(.education-content-order-cell):not(.education-content-select-cell) {
        grid-column: 3;
    }

    .education-content-compact__type,
    .education-content-compact__prompt,
    .education-content-compact__answers,
    .education-content-compact__settings,
    .education-content-compact__actions {
        height: auto;
        min-height: 0;
    }

    .education-content-compact__type,
    .education-content-compact__prompt {
        grid-template-rows: auto;
    }

    .education-content-compact__prompt {
        gap: 6px;
    }

    .education-content-compact__answers,
    .education-content-compact__settings,
    .education-content-compact__actions {
        min-height: 84px;
    }

    .education-content-compact__details {
        grid-column: 1 / -1;
    }

    .education-content-detail-drawer,
    .education-content-choice-row,
    .education-content-type-settings > div,
    .education-content-media-panel > div,
    .education-content-notes-panel > div {
        grid-template-columns: 1fr;
    }

    .education-content-item > summary {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .education-content-item > summary small {
        grid-column: 2;
        text-align: left;
    }

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

    .education-content-field,
    .education-content-field--prompt,
    .education-content-field--choices,
    .education-content-field--answer,
    .education-content-field--media,
    .education-content-field--notes,
    .education-content-field--description,
    .education-content-field--help,
    .education-content-field--feedback,
    .education-content-field--explanation,
    .education-content-field--powers,
    .education-content-field--actions {
        grid-column: 1 / -1;
    }

    .education-content-award-row {
        grid-template-columns: 38px minmax(0, 1fr);
        align-items: start;
    }

    .education-content-award-row > .education-content-muted,
    .education-content-award-row > .education-content-row-actions {
        grid-column: 2;
    }
}

.education-content-row-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(30px, 1fr));
    gap: 6px;
}

.education-content-compact .education-content-row-actions {
    grid-template-columns: repeat(auto-fit, minmax(30px, 1fr));
    grid-auto-rows: minmax(28px, 1fr);
    gap: 3px;
    align-content: start;
    height: 100%;
}

@media (max-width: 820px) {
    .education-content-compact .education-content-row-actions {
        grid-template-columns: repeat(4, minmax(30px, 1fr));
    }
}

.education-content-row-actions button {
    display: inline-grid;
    place-items: center;
    justify-self: stretch;
    width: 100%;
    min-height: 36px;
    padding: 0;
    border: 1px solid rgba(15, 35, 70, 0.14);
    border-radius: 8px;
    color: var(--night);
    background: rgba(255, 255, 255, 0.66);
    font-size: 1.05rem;
    font-weight: 850;
    line-height: 1;
    overflow: hidden;
    cursor: pointer;
}

.education-content-compact .education-content-row-actions button {
    min-height: 28px;
    font-size: 0.92rem;
}

.education-content-row-actions button:disabled {
    cursor: not-allowed;
    opacity: 0.46;
}

.education-content-row-actions [data-content-media-action][data-state="active"] {
    border-color: rgba(47, 143, 157, 0.28);
    color: #206976;
    background: rgba(113, 199, 216, 0.16);
}

.education-content-row-actions .education-content-delete {
    border: 1px solid rgba(136, 37, 37, 0.24);
    color: #842727;
    background: rgba(136, 37, 37, 0.08);
}

.education-content-empty {
    margin: 0;
    color: var(--muted);
    font-weight: 850;
}

.education-award-vote-form {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
}

.education-award-vote-form legend {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.education-award-vote-form label {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid rgba(245, 195, 106, 0.28);
    border-radius: 8px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    font-weight: 900;
    cursor: pointer;
}

.education-award-vote-form label input {
    flex: 0 0 auto;
}

.education-award-vote-form label span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.education-award-vote-form label:has(input:checked) {
    border-color: rgba(245, 195, 106, 0.82);
    background: rgba(245, 195, 106, 0.18);
}

.education-competition .education-classroom-scoreboard {
    grid-template-columns: minmax(0, 1fr);
}

.education-competition-leaderboard-placeholder {
    margin: 0;
    padding: 12px 14px;
    border: 1px solid rgba(245, 195, 106, 0.26);
    border-radius: 8px;
    color: rgba(255, 253, 248, 0.86);
    background: rgba(245, 195, 106, 0.1);
    font-weight: 850;
}

.education-player-score {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    padding: 12px 14px;
    border: 1px solid rgba(245, 195, 106, 0.36);
    border-radius: 8px;
    color: var(--white);
    background: rgba(245, 195, 106, 0.13);
}

.education-player-score span,
.education-player-score small {
    color: rgba(245, 248, 255, 0.78);
    font-weight: 850;
}

.education-player-score strong {
    color: var(--amber);
    font-size: clamp(22px, 4vw, 34px);
    text-align: center;
}

.education-race {
    display: grid;
    gap: 10px;
}

.education-race-player {
    grid-template-columns: minmax(120px, 0.34fr) minmax(150px, 1fr) auto;
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.education-race-player strong {
    color: var(--white);
}

.education-race-player.is-self {
    border-color: rgba(245, 195, 106, 0.42);
    background: rgba(245, 195, 106, 0.14);
}

.education-race-player > div:first-child {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
}

.education-race-player .education-competition-participant-control {
    align-items: stretch;
}

.education-race-player span,
.education-race-player small {
    color: rgba(245, 248, 255, 0.76);
    font-weight: 850;
}

.education-race-track {
    position: relative;
    height: 16px;
    overflow: hidden;
    border: 1px solid rgba(113, 199, 216, 0.2);
    border-radius: 999px;
    background: rgba(3, 7, 18, 0.44);
}

.education-race-track::after {
    position: absolute;
    inset: 0 10px auto auto;
    width: 2px;
    height: 100%;
    content: "";
    background: rgba(245, 248, 255, 0.52);
}

.education-race-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--race-progress, 0%);
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(113, 199, 216, 0.24), rgba(245, 195, 106, 0.6));
    transition: width 480ms ease;
}

.education-race-runner {
    position: absolute;
    top: 50%;
    left: var(--race-progress, 0%);
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 253, 248, 0.92);
    border-radius: 999px;
    background: var(--amber);
    box-shadow: 0 0 16px rgba(245, 195, 106, 0.42);
    transform: translate(-50%, -50%);
    transition: left 480ms ease;
}

.education-classroom {
    display: grid;
    gap: 18px;
    min-height: min(760px, calc(100vh - 140px));
}

body.education-projecting .education-classroom {
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    gap: clamp(12px, 2vh, 22px);
    padding: clamp(18px, 3vw, 42px);
    overflow: hidden;
    box-sizing: border-box;
    background:
        radial-gradient(circle at 20% 14%, rgba(47, 143, 157, 0.2), transparent 30%),
        radial-gradient(circle at 82% 12%, rgba(245, 195, 106, 0.14), transparent 28%),
        rgba(6, 12, 26, 0.94);
}

body.education-projecting .education-classroom:has(.education-classroom-solution:not([hidden])) {
    grid-template-rows: auto auto minmax(118px, auto) auto;
}

.education-classroom[hidden] {
    display: none;
}

.education-classroom:fullscreen {
    width: 100%;
    min-height: 100vh;
    padding: clamp(22px, 4vw, 54px);
    overflow: auto;
    background: radial-gradient(circle at 24% 18%, rgba(47, 143, 157, 0.16), transparent 32%), #071020;
}

.education-classroom__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
}

body.education-projecting .education-classroom__top {
    color: var(--white);
}

.education-classroom__top span,
.education-classroom-mode {
    color: var(--amber-dark);
    font-size: 13px;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.education-classroom__top h2 {
    margin: 4px 0 0;
    color: var(--night);
    font-size: clamp(28px, 4vw, 52px);
    line-height: 0.98;
}

.education-classroom-flow {
    display: block;
    max-width: min(780px, 70vw);
    margin-top: 8px;
    color: rgba(91, 109, 132, 0.92);
    font-size: clamp(0.92rem, 1.35vw, 1.15rem);
    font-weight: 850;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

body.education-projecting .education-classroom__top h2 {
    max-width: calc(100vw - 270px);
    overflow: hidden;
    color: var(--white);
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.education-projecting .education-classroom-flow {
    max-width: calc(100vw - 300px);
    color: rgba(245, 248, 255, 0.72);
}

.education-classroom__top strong {
    min-width: 132px;
    padding: 12px 16px;
    border: 1px solid rgba(47, 143, 157, 0.18);
    border-radius: 8px;
    color: var(--night);
    background: rgba(113, 199, 216, 0.2);
    font-size: clamp(30px, 5vw, 64px);
    line-height: 1;
    text-align: center;
    transform-origin: center;
    transition: color 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

body.education-projecting .education-classroom__top strong {
    color: var(--white);
    background: rgba(113, 199, 216, 0.16);
    white-space: nowrap;
}

.education-classroom__top strong.is-urgent {
    color: #fff7f3;
    border-color: rgba(201, 74, 56, 0.62);
    background: rgba(201, 74, 56, 0.24);
    animation: education-timer-warning var(--timer-pulse-duration, 0.85s) ease-in-out infinite;
}

.education-classroom__top strong[data-state="done"] {
    color: #8b2424;
    background: rgba(201, 74, 56, 0.15);
}

body.education-projecting .education-classroom__top strong[data-state="done"] {
    color: #ffd2c9;
}

.education-classroom-question {
    min-height: 0;
}

body.education-projecting .education-classroom-question {
    display: grid;
    align-items: center;
}

.education-classroom-question article {
    display: grid;
    gap: clamp(14px, 2vw, 24px);
    padding: clamp(18px, 4vw, 38px);
    border: 1px solid rgba(16, 23, 38, 0.1);
    border-radius: 8px;
    background: rgba(255, 253, 248, 0.78);
}

body.education-projecting .education-classroom-question article {
    min-height: min(58dvh, 620px);
    align-content: center;
    overflow: auto;
    background: rgba(255, 253, 248, 0.84);
    backdrop-filter: blur(18px) saturate(1.1);
    -webkit-backdrop-filter: blur(18px) saturate(1.1);
}

body.education-projecting .education-classroom:has(.education-classroom-solution:not([hidden])) .education-classroom-question article {
    min-height: 0;
    gap: clamp(8px, 1.2vw, 14px);
    padding: clamp(14px, 2.2vw, 24px);
}

body.education-projecting .education-classroom:has(.education-classroom-solution:not([hidden])) .education-classroom-question h3 {
    font-size: clamp(34px, 4.2vw, 60px);
}

body.education-projecting .education-classroom:has(.education-classroom-solution:not([hidden])) .education-classroom-help,
body.education-projecting .education-classroom:has(.education-classroom-solution:not([hidden])) .education-classroom-operators {
    font-size: clamp(17px, 1.7vw, 22px);
}

body.education-projecting .education-classroom:has(.education-classroom-solution:not([hidden])) .education-classroom-tiles span {
    min-width: clamp(44px, 5.6vw, 78px);
    min-height: clamp(44px, 5.6vw, 78px);
    font-size: clamp(26px, 4.2vw, 54px);
}

.education-classroom-question h3 {
    margin: 0;
    color: var(--night);
    font-size: clamp(34px, 5.6vw, 78px);
    line-height: 1;
}

body.education-projecting .education-classroom-question h3 {
    font-size: clamp(42px, 5.2vw, 86px);
}

.education-classroom-help,
.education-classroom-operators {
    margin: 0;
    color: var(--muted);
    font-size: clamp(18px, 2vw, 26px);
    font-weight: 800;
}

body.education-projecting .education-classroom-mode,
body.education-projecting .education-classroom-target {
    white-space: nowrap;
}

body.education-projecting .education-classroom-help,
body.education-projecting .education-classroom-operators {
    white-space: normal;
    overflow-wrap: anywhere;
}

.education-classroom-target {
    display: inline-grid;
    grid-auto-flow: column;
    align-items: center;
    justify-content: start;
    gap: 14px;
    justify-self: start;
    padding: 12px 18px;
    border-radius: 8px;
    color: var(--night);
    background: rgba(47, 143, 157, 0.16);
    font-size: clamp(24px, 4vw, 50px);
    font-weight: 950;
}

.education-classroom-target strong {
    font-size: 1.45em;
}

.education-classroom-tiles {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(8px, 1.4vw, 16px);
}

body.education-projecting .education-classroom-tiles {
    justify-content: center;
}

.education-classroom-tiles span {
    min-width: clamp(48px, 7vw, 92px);
    min-height: clamp(48px, 7vw, 92px);
    display: grid;
    place-items: center;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--night);
    background: rgba(245, 195, 106, 0.3);
    box-shadow: 0 16px 32px rgba(16, 23, 38, 0.09);
    font-size: clamp(28px, 5vw, 68px);
    font-weight: 950;
    line-height: 1;
}

body.education-projecting .education-classroom-tiles span {
    min-width: clamp(58px, 7.2vw, 104px);
    min-height: clamp(58px, 7.2vw, 104px);
}

.education-classroom-tiles--letters span {
    text-transform: uppercase;
}

.education-classroom-choice-list,
.education-classroom-order,
.education-classroom-matching {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.education-classroom-choice-list {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.education-classroom-matching {
    grid-template-columns: minmax(0, 1fr) minmax(180px, 0.72fr);
}

.education-classroom-matching ol,
.education-classroom-matching ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.education-classroom-choice,
.education-classroom-order li,
.education-classroom-matching li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(16, 23, 38, 0.1);
    border-radius: 8px;
    color: var(--night);
    background: rgba(255, 255, 255, 0.68);
    font-size: 1.25rem;
    font-weight: 850;
    line-height: 1.18;
    overflow-wrap: anywhere;
}

.education-classroom-choice b,
.education-classroom-order li b,
.education-classroom-matching li b {
    width: 2.1em;
    min-width: 2.1em;
    height: 2.1em;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #071020;
    background: rgba(245, 195, 106, 0.82);
    font-size: 0.78em;
    font-weight: 950;
    line-height: 1;
}

body.education-projecting .education-classroom-choice-list,
body.education-projecting .education-classroom-order {
    gap: 16px;
}

body.education-projecting .education-classroom-choice-list {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

body.education-projecting .education-classroom-choice,
body.education-projecting .education-classroom-order li {
    padding: 18px 20px;
    font-size: 1.75rem;
}

body.education-projecting .education-classroom:has(.education-classroom-solution:not([hidden])) .education-classroom-choice,
body.education-projecting .education-classroom:has(.education-classroom-solution:not([hidden])) .education-classroom-order li {
    padding: 12px 14px;
    font-size: 1.2rem;
}

.education-panel-dilemma {
    display: grid;
    grid-template-columns: minmax(118px, 0.22fr) minmax(0, 1fr);
    gap: clamp(14px, 2vw, 24px);
    align-items: stretch;
}

.education-panel-dilemma__target,
.education-panel-dilemma__flow,
.education-panel-dilemma__examples {
    border: 1px solid rgba(16, 23, 38, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.66);
}

.education-panel-dilemma__target {
    display: grid;
    place-items: center;
    min-width: 0;
    overflow: hidden;
    padding: clamp(16px, 2vw, 26px);
    color: var(--night);
    text-align: center;
}

.education-panel-dilemma__target span,
.education-panel-dilemma__target small,
.education-panel-dilemma__examples span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.education-panel-dilemma__target strong {
    color: var(--amber-dark);
    max-width: 100%;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 0.95;
    white-space: nowrap;
}

body.education-projecting .education-panel-dilemma__target strong {
    font-size: clamp(42px, 6vw, 78px);
}

.education-panel-dilemma__flow {
    display: grid;
    gap: 10px;
    padding: clamp(16px, 2vw, 26px);
}

.education-panel-dilemma__flow p {
    margin: 0;
    color: var(--night);
    font-size: clamp(17px, 1.65vw, 25px);
    font-weight: 850;
    line-height: 1.14;
}

.education-panel-dilemma__examples {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 12px 14px;
}

.education-panel-dilemma__examples b {
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--night);
    background: rgba(245, 195, 106, 0.22);
    font-size: 0.92rem;
    font-weight: 850;
}

.education-competition[data-question-type="panel-dilemma"] .education-classroom-question-card {
    padding: clamp(14px, 2vw, 22px);
}

.education-competition[data-question-type="panel-dilemma"] .education-classroom-question-card h3 {
    margin-bottom: 12px;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 0.98;
}

.education-competition[data-question-type="panel-dilemma"] .education-panel-dilemma {
    grid-template-columns: minmax(96px, 0.18fr) minmax(0, 1fr);
    gap: 12px;
}

.education-competition[data-question-type="panel-dilemma"] .education-panel-dilemma__target,
.education-competition[data-question-type="panel-dilemma"] .education-panel-dilemma__flow {
    padding: 12px 14px;
}

.education-competition[data-question-type="panel-dilemma"] .education-panel-dilemma__target strong {
    font-size: clamp(30px, 4vw, 52px);
}

.education-competition[data-question-type="panel-dilemma"] .education-panel-dilemma__flow {
    align-content: center;
}

.education-competition[data-question-type="panel-dilemma"] .education-panel-dilemma__flow p {
    font-size: clamp(15px, 1.35vw, 20px);
    line-height: 1.15;
}

.education-competition[data-question-type="panel-dilemma"] .education-panel-dilemma__examples {
    padding: 10px 12px;
}

.education-competition[data-question-type="panel-dilemma"] .education-panel-dilemma__examples b {
    padding: 6px 8px;
    font-size: 0.84rem;
}

.education-panel-dilemma-tracker {
    display: grid;
    gap: 12px;
    padding: clamp(14px, 2vw, 22px);
    border: 1px solid rgba(16, 23, 38, 0.12);
    border-radius: 8px;
    background: rgba(255, 253, 248, 0.78);
}

.education-panel-dilemma-tracker > header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.education-panel-dilemma-tracker > header div {
    display: grid;
    gap: 2px;
}

.education-panel-dilemma-tracker > header strong {
    color: var(--night);
    font-size: 1rem;
    font-weight: 950;
}

.education-panel-dilemma-tracker > header span {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 850;
}

.education-panel-dilemma-tracker > header small {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 850;
    text-align: right;
}

.education-panel-dilemma-tracker > footer {
    display: grid;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(16, 23, 38, 0.1);
}

.education-panel-dilemma-tracker > footer > strong {
    color: var(--night);
    font-size: 0.86rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.education-panel-dilemma-tracker--live {
    background: rgba(186, 210, 235, 0.54);
}

.education-panel-dilemma-phase {
    display: grid;
    gap: 3px;
    padding: 9px 0 10px 12px;
    border-left: 4px solid rgba(201, 95, 42, 0.72);
    color: var(--night);
}

.education-panel-dilemma-phase span {
    color: var(--amber-dark);
    font-size: 0.74rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.education-panel-dilemma-phase strong {
    font-size: clamp(1rem, 1.35vw, 1.28rem);
    font-weight: 950;
    line-height: 1.1;
}

.education-panel-dilemma-phase small {
    max-width: 72ch;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 850;
    line-height: 1.35;
}

.education-panel-dilemma-phase[data-panel-dilemma-phase="vote"],
.education-panel-dilemma-phase[data-panel-dilemma-phase="ready"] {
    border-left-color: rgba(43, 126, 92, 0.75);
}

.education-panel-dilemma-phase[data-panel-dilemma-phase="wait-proposals"] {
    border-left-color: rgba(82, 104, 134, 0.72);
}

.education-panel-dilemma-phase[data-panel-dilemma-phase="paused-votes"] {
    border-left-color: rgba(214, 96, 42, 0.78);
}

.education-panel-dilemma-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.education-panel-dilemma-steps li {
    min-width: 0;
    padding: 7px 8px;
    border: 1px solid rgba(82, 104, 134, 0.18);
    border-radius: 8px;
    color: var(--muted);
    background: rgba(255, 253, 248, 0.48);
    font-size: 0.78rem;
    font-weight: 950;
    text-align: center;
}

.education-panel-dilemma-steps li[data-state="current"] {
    color: var(--night);
    border-color: rgba(201, 95, 42, 0.36);
    background: rgba(245, 195, 106, 0.48);
}

.education-panel-dilemma-steps li[data-state="paused"] {
    color: var(--night);
    border-color: rgba(214, 96, 42, 0.34);
    background: rgba(248, 181, 124, 0.42);
}

.education-panel-dilemma-steps li[data-state="done"] {
    color: var(--night);
    border-color: rgba(43, 126, 92, 0.26);
    background: rgba(207, 238, 224, 0.64);
}

.education-panel-dilemma-steps span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.education-panel-dilemma-todo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid rgba(82, 104, 134, 0.18);
    border-radius: 8px;
    color: var(--night);
    background: rgba(255, 253, 248, 0.58);
    font-size: 0.86rem;
    font-weight: 850;
}

.education-panel-dilemma-todo b {
    color: var(--amber-dark);
    font-size: 0.75rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.education-panel-dilemma-todo[data-state="vote"] {
    border-color: rgba(43, 126, 92, 0.18);
    background: rgba(224, 242, 232, 0.54);
}

.education-panel-dilemma-todo[data-state="paused"] {
    border-color: rgba(214, 96, 42, 0.22);
    background: rgba(255, 232, 208, 0.62);
}

.education-panel-dilemma-todo[data-state="ready"] {
    border-color: rgba(43, 126, 92, 0.24);
    background: rgba(207, 238, 224, 0.62);
}

.education-panel-dilemma-rows {
    display: grid;
    gap: 10px;
}

.education-panel-dilemma-row {
    display: grid;
    grid-template-columns: minmax(112px, 0.32fr) minmax(0, 1fr) minmax(72px, auto);
    gap: 10px;
    align-items: center;
    padding: 10px;
    border: 1px solid rgba(16, 23, 38, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.68);
}

.education-panel-dilemma-row.is-winner {
    border-color: rgba(201, 95, 42, 0.42);
    background: rgba(245, 195, 106, 0.24);
}

.education-panel-dilemma-row header {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.education-panel-dilemma-row header strong {
    min-width: 0;
    overflow: hidden;
    color: var(--night);
    font-size: 0.98rem;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.education-panel-dilemma-row header span {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 850;
}

.education-panel-dilemma-row header b {
    margin-right: 6px;
    color: var(--amber-dark);
}

.education-panel-dilemma-row .education-panel-dilemma-proposal {
    min-width: 0;
    margin: 0;
    color: var(--night);
    font-weight: 850;
    overflow-wrap: anywhere;
}

.education-panel-dilemma-row > small {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 850;
    text-align: right;
}

.education-panel-host-votes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 168px), 1fr));
    gap: 8px;
}

.education-panel-host-votes article {
    display: grid;
    gap: 7px;
    padding: 8px;
    border: 1px solid rgba(16, 23, 38, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.58);
}

.education-panel-host-votes span {
    min-width: 0;
    overflow: hidden;
    color: var(--night);
    font-size: 0.82rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.education-panel-host-votes div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.education-panel-host-votes button,
.education-live-host-tools button,
.education-live-next-picker select,
.education-competition-rename button,
.education-competition-participant-control button {
    min-height: 34px;
    border: 1px solid rgba(201, 95, 42, 0.28);
    border-radius: 8px;
    color: var(--night);
    background: rgba(255, 253, 248, 0.86);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.education-panel-host-votes button.is-selected {
    border-color: rgba(201, 95, 42, 0.68);
    background: rgba(245, 195, 106, 0.64);
}

.education-panel-dilemma-row textarea,
.education-panel-dilemma-row input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(16, 23, 38, 0.14);
    border-radius: 8px;
    color: var(--night);
    background: rgba(255, 255, 255, 0.84);
    font: inherit;
    font-weight: 750;
}

.education-panel-dilemma-row textarea {
    min-height: 52px;
    resize: vertical;
    padding: 9px 10px;
}

.education-panel-dilemma-votes {
    display: grid;
    grid-template-columns: repeat(2, minmax(72px, 1fr));
    gap: 8px;
}

.education-panel-dilemma-votes label {
    display: grid;
    gap: 4px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 950;
    text-transform: uppercase;
}

.education-panel-dilemma-votes input {
    min-height: 40px;
    padding: 8px;
    text-align: center;
}

.education-panel-vote-form {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    border: 0;
}

.education-panel-vote-form legend {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.education-question small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 800;
}

.education-panel-vote-form article,
.education-panel-live-results article {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid rgba(16, 23, 38, 0.12);
    border-radius: 8px;
    background: rgba(255, 253, 248, 0.82);
}

.education-panel-vote-form article strong,
.education-panel-live-results article strong {
    color: var(--night);
    font-weight: 950;
}

.education-panel-vote-form article p,
.education-panel-live-results article p {
    margin: 0;
    color: rgba(16, 23, 38, 0.78);
    font-weight: 750;
}

.education-panel-vote-form article > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.education-panel-vote-form label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid rgba(201, 95, 42, 0.28);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--night);
    font-weight: 950;
    cursor: pointer;
    transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.education-panel-vote-form label:has(input:checked) {
    border-color: rgba(201, 95, 42, 0.72);
    background: rgba(245, 195, 106, 0.34);
}

.education-panel-vote-form label:hover {
    transform: translateY(-1px);
}

.education-panel-live-results {
    display: grid;
    gap: 10px;
}

.education-panel-live-results article {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.education-panel-live-results article.is-winner {
    border-color: rgba(201, 95, 42, 0.45);
    background: rgba(245, 195, 106, 0.24);
}

.education-panel-live-results article small {
    color: var(--muted);
    font-weight: 850;
}

@media (max-width: 760px) {
    .education-prep-map {
        grid-template-columns: 1fr;
    }

    .education-content-bulk__body {
        grid-template-columns: 1fr;
    }

    .education-classroom-choice-list {
        grid-template-columns: 1fr;
    }

    .education-classroom-choice,
    .education-classroom-order li {
        font-size: 1rem;
    }

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

    .education-panel-dilemma-row {
        grid-template-columns: 1fr;
    }

    .education-panel-live-results article {
        grid-template-columns: 1fr;
    }
}

.education-classroom-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

body.education-projecting .education-classroom-actions {
    display: grid;
    grid-template-columns: max-content max-content max-content;
    justify-content: center;
    gap: clamp(10px, 1.4vw, 18px);
}

body.education-projecting .education-classroom-actions .cv-button {
    min-width: clamp(180px, 18vw, 270px);
    white-space: nowrap;
}

.education-classroom-spotlight {
    min-height: 30px;
    margin: 0;
    color: var(--night);
    font-size: 22px;
    font-weight: 900;
}

body.education-projecting .education-classroom-spotlight,
body.education-projecting .education-classroom-board {
    display: none;
}

.education-classroom-solution {
    display: grid;
    gap: 8px;
    padding: clamp(16px, 3vw, 24px);
    border: 1px solid rgba(43, 126, 92, 0.22);
    border-radius: 8px;
    color: var(--night);
    background: rgba(43, 126, 92, 0.13);
}

body.education-projecting .education-classroom-solution {
    min-height: clamp(118px, 17dvh, 190px);
    align-content: center;
    overflow: hidden;
    color: var(--white);
    background: rgba(43, 126, 92, 0.86);
}

.education-classroom-solution[hidden] {
    display: none;
}

.education-classroom-solution strong {
    color: var(--green);
    font-size: 13px;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.education-classroom-solution span {
    font-size: clamp(28px, 4vw, 52px);
    font-weight: 950;
    line-height: 1.04;
}

body.education-projecting .education-classroom-solution span {
    font-size: clamp(32px, 4.8vw, 64px);
    line-height: 0.98;
}

.education-classroom-solution p {
    margin: 0;
    color: var(--muted);
    font-weight: 850;
}

body.education-projecting .education-classroom-solution strong,
body.education-projecting .education-classroom-solution span,
body.education-projecting .education-classroom-solution p {
    color: var(--white);
}

.education-classroom-review {
    max-height: min(58dvh, 620px);
    overflow: auto;
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.education-classroom-review li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 12px 14px;
    border: 1px solid rgba(245, 248, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
}

.education-classroom-review li > span {
    width: 2.4em;
    height: 2.4em;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: var(--night);
    background: var(--amber);
    font-size: 1rem;
    font-weight: 950;
    line-height: 1;
}

.education-classroom-review li div {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.education-classroom-review li strong {
    color: rgba(245, 248, 255, 0.72);
    font-size: 0.78rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.education-classroom-review li b {
    color: var(--white);
    font-size: 1.25rem;
    line-height: 1.16;
    overflow-wrap: anywhere;
}

.education-classroom-review li p {
    color: rgba(245, 248, 255, 0.78);
    font-size: 0.98rem;
    line-height: 1.28;
    overflow-wrap: anywhere;
}

.education-collection-review {
    max-height: none;
    overflow: visible;
}

.education-collection-cloud {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin-top: 4px;
    padding: 10px;
    border: 1px solid rgba(113, 199, 216, 0.2);
    border-radius: 8px;
    background: rgba(6, 11, 26, 0.18);
}

.education-collection-cloud span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--white);
    font-size: calc(0.9rem + (var(--word-weight, 1) - 1) * 0.16rem);
    font-weight: 950;
    line-height: 1.05;
}

.education-collection-cloud span[data-weight="2"] {
    --word-weight: 2;
}

.education-collection-cloud span[data-weight="3"] {
    --word-weight: 3;
}

.education-collection-cloud span[data-weight="4"] {
    --word-weight: 4;
}

.education-collection-cloud small {
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    color: var(--night);
    background: var(--amber);
    font-size: 0.72rem;
    font-weight: 950;
}

.education-collection-pins {
    position: relative;
    width: min(100%, 520px);
    aspect-ratio: 16 / 9;
    margin: 6px 0 0;
    overflow: hidden;
    border: 1px solid rgba(113, 199, 216, 0.22);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(113, 199, 216, 0.16), rgba(245, 195, 106, 0.13)),
        rgba(6, 11, 26, 0.2);
}

.education-collection-pins img,
.education-collection-pins__stage {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.education-collection-pins img {
    object-fit: cover;
    opacity: 0.58;
}

.education-collection-pins__stage i,
.education-collection-pins__stage b {
    position: absolute;
    left: var(--pin-x, 50%);
    top: var(--pin-y, 50%);
    transform: translate(-50%, -50%);
    border-radius: 999px;
}

.education-collection-pins__stage i {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    background: var(--amber);
    box-shadow: 0 0 0 4px rgba(198, 99, 47, 0.16);
}

.education-collection-pins__stage b {
    left: var(--pin-center-x, 50%);
    top: var(--pin-center-y, 50%);
    width: 28px;
    height: 28px;
    border: 3px solid var(--white);
    background: rgba(113, 199, 216, 0.5);
    box-shadow: 0 0 0 5px rgba(113, 199, 216, 0.18);
}

body.education-projecting .education-classroom-review {
    max-height: min(62dvh, 690px);
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

body.education-projecting .education-classroom-review li b {
    font-size: 1.45rem;
}

.education-classroom-board {
    display: grid;
    gap: 12px;
}

.education-classroom-board > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.education-classroom-board h3 {
    margin: 0;
    color: var(--night);
    font-size: 24px;
}

.education-classroom-scoreboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
}

.education-classroom-player {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    align-items: center;
    gap: 7px;
    padding: 10px;
    border: 1px solid rgba(16, 23, 38, 0.1);
    border-radius: 8px;
    color: var(--night);
    background: rgba(255, 253, 248, 0.72);
}

.cv-page [data-cv-draggable] {
    touch-action: none;
    user-select: none;
    cursor: grab;
}

@media (hover: hover) and (pointer: fine) and (min-width: 861px) {
    .starry-page :where(
        article,
        header,
        section,
        aside,
        div,
        li,
        figure
    ):not(
        .site-nav,
        .site-nav *,
        .site-nav-reveal-zone,
        .star-settings,
        .star-settings *,
        .living-stars,
        .living-stars-skins,
        .living-stars-skins *,
        .stat-life-help-tooltip,
        .stat-life-help-tooltip *,
        .stat-life-layout,
        .stat-life-layout *,
        .stat-life-panel,
        .stat-life-panel *,
        .stat-life-canvas,
        .life-zone-legend,
        .life-zone-legend *,
        .stat-life-stats,
        .stat-life-stats *,
        .stat-life-simulation,
        .stat-life-simulation *,
        .galton-board,
        .galton-board *,
        [data-cv-draggable],
        [data-cv-draggable] *,
        [data-panel-drag="false"],
        [data-panel-drag="false"] *,
        form,
        form *,
        details,
        details *,
        [data-mini-game],
        [data-mini-game] *,
        [data-star-survival],
        [data-star-survival] *
    ) {
        user-select: none;
    }

    .starry-page :where(
        article,
        header,
        section,
        aside,
        div,
        li,
        figure
    ) :where(a, button, input, textarea, select, label, summary, canvas, iframe, video, audio, p, h1, h2, h3, h4, h5, h6, span, strong, em, small, code, time, [contenteditable], [role="button"], [role="link"], [role="tab"], [role="switch"], [role="menuitem"], [onclick], [data-action], [tabindex]:not([tabindex="-1"])) {
        user-select: auto;
        cursor: auto;
    }

}

.starry-page .is-panel-lifted {
    cursor: grabbing;
    opacity: 0.95;
    filter: saturate(1.04);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.24), 0 0 0 1px rgba(245, 195, 106, 0.2);
    transform-origin: center center;
    will-change: transform, left, top;
}

.starry-page.panel-drag-active {
    cursor: grabbing;
}

.cv-page [data-cv-draggable] a,
.cv-page [data-cv-draggable] button,
.cv-page [data-cv-draggable] input,
.cv-page [data-cv-draggable] textarea,
.cv-page [data-cv-draggable] select {
    touch-action: auto;
    user-select: auto;
    cursor: auto;
}

.cv-page [data-cv-draggable].is-cv-lifted {
    cursor: grabbing;
    opacity: 0.94;
    filter: saturate(1.05);
    box-shadow: 0 28px 72px rgba(0, 0, 0, 0.24), 0 0 0 1px rgba(244, 196, 108, 0.2);
    transform-origin: center center;
    will-change: transform, left, top;
}

.cv-page .cv-photo-wrap[data-cv-draggable].is-cv-lifted {
    border-radius: 50%;
}

.cv-page.cv-drag-active {
    cursor: grabbing;
}

.cv-page .cv-section.is-cv-reflowing,
.cv-page .cv-sidebar.is-cv-reflowing,
.cv-page .cv-contact.is-cv-reflowing,
.cv-page .cv-photo-wrap.is-cv-reflowing {
    will-change: transform;
}

.education-classroom-player.is-spotlight {
    border-color: rgba(245, 195, 106, 0.82);
    box-shadow: 0 0 0 3px rgba(245, 195, 106, 0.18);
}

.education-classroom-player strong,
.education-classroom-player span {
    display: block;
}

.education-classroom-player strong {
    font-size: 16px;
    line-height: 1.05;
}

.education-classroom-player span {
    color: var(--amber-dark);
    font-weight: 950;
}

.education-classroom-player button {
    min-width: 42px;
    height: 34px;
    border: 1px solid rgba(47, 143, 157, 0.2);
    border-radius: 8px;
    color: var(--night);
    background: rgba(113, 199, 216, 0.22);
    cursor: pointer;
    font: inherit;
    font-weight: 950;
}

.education-main fieldset {
    min-width: 0;
    display: grid;
    gap: 18px;
    margin: 0;
    padding: 0;
    border: 0;
}

.education-main fieldset:disabled {
    opacity: 0.58;
}

.education-questions {
    display: grid;
    gap: 16px;
}

.education-question {
    display: grid;
    gap: 14px;
    padding: clamp(16px, 3vw, 24px);
    border: 1px solid rgba(16, 23, 38, 0.1);
    border-radius: 8px;
    background: rgba(255, 253, 248, 0.76);
}

.education-question header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--amber-dark);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.education-question h2 {
    margin: 0;
    color: var(--night);
    font-size: clamp(22px, 3vw, 34px);
    line-height: 1.08;
}

.education-question p {
    margin: 0;
    color: var(--muted);
}

.education-question-media {
    width: min(100%, 720px);
    margin: 0;
}

.education-question-media img,
.education-question-media video,
.education-question-media iframe {
    display: block;
    width: 100%;
    max-height: min(54dvh, 420px);
    border: 1px solid rgba(16, 23, 38, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.7);
    object-fit: contain;
}

.education-question-media iframe {
    aspect-ratio: 16 / 9;
    height: auto;
}

.education-choice-list {
    display: grid;
    gap: 10px;
}

.education-choice,
.education-number,
.education-range,
.education-word,
.education-expression,
.education-open-answer,
.education-pin-answer {
    display: grid;
    gap: 8px;
    color: var(--night);
    font-weight: 850;
}

.education-choice {
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(16, 23, 38, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.66);
    line-height: 1.18;
    overflow-wrap: anywhere;
}

.education-choice input {
    margin: 0;
    accent-color: var(--cyan);
}

.education-choice b {
    width: 2.1em;
    min-width: 2.1em;
    height: 2.1em;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #071020;
    background: rgba(245, 195, 106, 0.82);
    font-size: 0.78em;
    font-weight: 950;
    line-height: 1;
    text-transform: lowercase;
}

.education-number input,
.education-word input,
.education-expression input,
.education-open-answer textarea {
    width: 100%;
    border: 1px solid #d9ccba;
    border-radius: 7px;
    padding: 11px 12px;
    color: var(--ink);
    background: var(--white);
    font: inherit;
}

.education-open-answer textarea {
    min-height: clamp(96px, 16dvh, 150px);
    resize: vertical;
}

.education-open-answer--short textarea {
    min-height: clamp(68px, 10dvh, 96px);
}

.education-range input {
    width: 100%;
    accent-color: var(--cyan);
}

.education-range strong {
    color: var(--amber-dark);
}

.education-order {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.education-order li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) 56px 56px;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid rgba(16, 23, 38, 0.1);
    border-radius: 8px;
    color: var(--night);
    background: rgba(255, 255, 255, 0.66);
    font-weight: 850;
}

.education-order li b {
    color: rgba(47, 143, 157, 0.62);
    cursor: grab;
    font-size: 18px;
    line-height: 1;
}

.education-order li.is-dragging {
    opacity: 0.42;
}

.education-order li.is-drop-target {
    border-color: rgba(245, 195, 106, 0.86);
    background: rgba(245, 195, 106, 0.2);
}

.education-order button {
    width: 56px;
    height: 36px;
    border: 1px solid rgba(47, 143, 157, 0.22);
    border-radius: 8px;
    color: var(--night);
    background: rgba(113, 199, 216, 0.22);
    cursor: pointer;
    font: inherit;
    font-weight: 900;
}

.education-matching {
    display: grid;
    gap: 10px;
}

.education-matching label {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(150px, 0.8fr);
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(16, 23, 38, 0.1);
    border-radius: 8px;
    color: var(--night);
    background: rgba(255, 255, 255, 0.66);
    font-weight: 850;
}

.education-matching select {
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(47, 143, 157, 0.22);
    border-radius: 8px;
    padding: 9px 10px;
    color: var(--night);
    background: rgba(255, 253, 248, 0.94);
    font: inherit;
    font-weight: 850;
}

.education-info-slide {
    display: grid;
    gap: clamp(8px, 1.4vw, 14px);
    padding: clamp(14px, 2.5vw, 24px);
    border: 1px solid rgba(47, 143, 157, 0.18);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(113, 199, 216, 0.18));
    color: var(--night);
}

.education-info-slide p {
    margin: 0;
    max-width: 72ch;
    font-size: clamp(1rem, 1.7vw, 1.35rem);
    line-height: 1.45;
}

.education-info-slide span {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 850;
}

.education-letter-tiles,
.education-number-tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.education-letter-tiles span,
.education-number-tiles span,
.education-countdown-target {
    min-width: 42px;
    min-height: 42px;
    display: grid;
    place-items: center;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--night);
    background: rgba(245, 195, 106, 0.24);
    font-size: 20px;
    font-weight: 900;
}

.education-letter-tiles span {
    text-transform: uppercase;
}

.education-countdown-target {
    display: inline-grid;
    grid-auto-flow: column;
    gap: 8px;
    justify-self: start;
    background: rgba(47, 143, 157, 0.16);
}

.education-pin-answer [data-pin-target] {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(16, 23, 38, 0.12);
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.74);
    cursor: crosshair;
}

.education-pin-answer img,
.education-pin-preview img,
.education-pin-solution img {
    display: block;
    width: 100%;
    max-height: min(46dvh, 430px);
    object-fit: contain;
    background: rgba(7, 17, 34, 0.06);
}

.education-pin-answer [data-pin-marker] {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid var(--amber);
    border-radius: 999px;
    box-shadow: 0 0 0 4px rgba(7, 17, 34, 0.46), 0 0 22px rgba(245, 195, 106, 0.56);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.education-pin-answer small {
    color: rgba(65, 82, 108, 0.86);
    font-weight: 850;
}

.education-pin-preview {
    margin: 0;
}

.education-pin-solution {
    position: relative;
    width: min(100%, 680px);
    margin: 8px 0 0;
    overflow: hidden;
    border: 1px solid rgba(245, 248, 255, 0.2);
    border-radius: 8px;
    background: rgba(7, 17, 34, 0.08);
}

.education-pin-solution__target {
    position: absolute;
    left: var(--pin-x, 50%);
    top: var(--pin-y, 50%);
    width: max(22px, min(var(--pin-radius-size, 16%), 46%));
    aspect-ratio: 1;
    border: 3px solid var(--amber);
    border-radius: 999px;
    box-shadow: 0 0 0 4px rgba(7, 17, 34, 0.5), 0 0 24px rgba(245, 195, 106, 0.58);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.education-pin-solution__target i {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    aspect-ratio: 1;
    border-radius: 999px;
    background: var(--amber);
    box-shadow: 0 0 14px rgba(245, 195, 106, 0.76);
    transform: translate(-50%, -50%);
}

.education-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.education-result {
    display: grid;
    gap: 12px;
}

.education-result:empty {
    display: none;
}

.education-result h2 {
    margin: 0;
    color: var(--night);
    font-size: 30px;
}

.education-result__score {
    margin: 0;
    color: var(--amber-dark);
    font-size: 28px;
    font-weight: 900;
}

.education-result__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.education-result ol {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.education-result li {
    display: grid;
    gap: 4px;
    padding: 12px;
    border-left: 4px solid #f5c36a;
    border-radius: 8px;
    color: var(--night);
    background: rgba(244, 239, 230, 0.66);
}

.education-result li[data-state="success"] {
    border-left-color: var(--green);
}

.education-result li span {
    color: var(--amber-dark);
    font-weight: 900;
}

.education-result li p {
    margin: 0;
    color: var(--muted);
}

.troll-easter-egg {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 40;
    width: min(260px, calc(100vw - 48px));
    padding: 16px;
    border: 1px solid rgba(198, 99, 47, 0.42);
    border-radius: 8px;
    color: var(--night);
    background: rgba(255, 253, 248, 0.94);
    box-shadow: 0 22px 70px rgba(16, 23, 38, 0.24);
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px) rotate(-2deg);
}

.troll-easter-egg.visible {
    animation: trollPop 2600ms ease both;
}

.troll-face {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 8px;
    border-radius: 50%;
    color: var(--white);
    background: var(--amber);
    font-weight: 900;
}

.troll-easter-egg p {
    margin: 0;
    color: var(--ink);
    font-weight: 800;
}

@keyframes trollPop {
    0% {
        opacity: 0;
        transform: translateY(18px) rotate(-2deg) scale(0.94);
    }

    18%,
    82% {
        opacity: 1;
        transform: translateY(0) rotate(1deg) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(18px) rotate(3deg) scale(0.96);
    }
}

.tool-note {
    margin-top: 22px;
    padding: 20px;
}

.tool-note h2 {
    margin: 0 0 8px;
    color: var(--amber-dark);
    font-size: 16px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.chat-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 22px;
    align-items: start;
}

.chat-panel {
    overflow: hidden;
}

.chat-identity {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(12, 22, 42, 0.38);
    color: rgba(255, 255, 255, 0.9);
}

.chat-identity__avatar,
.chat-message__avatar {
    width: 42px;
    height: 42px;
    overflow: hidden;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: rgba(84, 170, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 18px rgba(84, 170, 255, 0.2);
    color: #ffffff;
    font-weight: 900;
}

.chat-identity__avatar img,
.chat-message__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-identity__text {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.chat-identity__text strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-identity__text span {
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
}

.chat-identity__actions {
    display: flex;
    justify-content: end;
}

.chat-identity__actions .cv-button {
    white-space: nowrap;
}

.chat-status {
    padding: 12px 16px;
    color: var(--muted);
    background: rgba(244, 239, 230, 0.74);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.chat-ai-picker {
    display: grid;
    gap: 10px;
    padding: 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 1px solid rgba(10, 18, 35, 0.08);
    background:
        linear-gradient(135deg, rgba(255, 248, 232, 0.72), rgba(238, 247, 249, 0.78)),
        rgba(255, 255, 255, 0.62);
}

.chat-ai-picker[hidden] {
    display: none !important;
}

.chat-ai-picker__main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.chat-ai-picker__main strong {
    display: block;
    color: var(--ink);
    font-size: 13px;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.chat-ai-picker__main span {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.chat-ai-picker__choices {
    display: inline-grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    padding: 4px;
    border: 1px solid rgba(10, 18, 35, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
}

.chat-ai-picker__choices button {
    min-height: 34px;
    min-width: 74px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 950;
}

.chat-ai-picker__choices button:hover,
.chat-ai-picker__choices button:focus-visible {
    color: var(--ink);
    background: rgba(198, 99, 47, 0.1);
}

.chat-ai-picker__choices button.is-active {
    color: #ffffff;
    background: #0a1223;
    box-shadow: 0 8px 18px rgba(7, 15, 30, 0.18);
}

.chat-ai-picker__endpoint {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.chat-ai-picker__endpoint summary {
    width: max-content;
    max-width: 100%;
    cursor: pointer;
    color: #7a331c;
    font-weight: 950;
}

.chat-ai-picker__endpoint label {
    display: grid;
    gap: 5px;
    margin-top: 8px;
}

.chat-ai-picker__endpoint input,
.chat-ai-picker__endpoint select {
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(10, 18, 35, 0.16);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.86);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
}

.chat-messages {
    height: 420px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.42);
}

.chat-message {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    width: min(78%, 640px);
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 14px 34px rgba(7, 15, 30, 0.08);
}

.chat-message--other {
    margin-right: auto;
}

.chat-message--mine {
    grid-template-columns: minmax(0, 1fr) auto;
    margin-left: auto;
    border-color: rgba(53, 199, 208, 0.38);
    background: rgba(240, 252, 253, 0.9);
}

.chat-message--gemini {
    margin-right: auto;
    border-color: rgba(198, 99, 47, 0.32);
    background: rgba(255, 248, 232, 0.92);
}

.chat-message--gemini .chat-message__avatar {
    color: #7a331c;
    background:
        radial-gradient(circle at 32% 28%, rgba(245, 195, 106, 0.62), transparent 42%),
        rgba(198, 99, 47, 0.14);
}

.chat-message--gemini .chat-message__meta small {
    color: #7a331c;
    background: rgba(245, 195, 106, 0.26);
}

.chat-message--mine .chat-message__avatar {
    grid-column: 2;
    grid-row: 1;
}

.chat-message--mine .chat-message__body {
    grid-column: 1;
    grid-row: 1;
}

.chat-message header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 13px;
}

.chat-message__body {
    min-width: 0;
}

.chat-message--mine header {
    text-align: right;
}

.chat-message__meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-message__meta small {
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(10, 18, 35, 0.08);
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.chat-message__delete {
    border: 0;
    border-radius: 999px;
    background: rgba(139, 36, 36, 0.1);
    color: #8b2424;
    cursor: pointer;
    font-size: 11px;
    font-weight: 900;
    padding: 3px 8px;
}

.chat-message__delete:hover,
.chat-message__delete:focus-visible {
    background: rgba(139, 36, 36, 0.18);
}

.chat-message p {
    margin: 7px 0 0;
    white-space: pre-wrap;
}

.chat-form {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
    border-top: 1px solid var(--line);
}

.chat-form__message {
    grid-column: span 1;
}

.chat-form textarea {
    min-height: 78px;
    resize: vertical;
}

.chat-form textarea:disabled,
.chat-form button:disabled {
    opacity: 0.58;
    cursor: not-allowed;
}

.chat-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chat-note {
    margin-top: 0;
}

.chat-room-panel {
    margin-top: 0;
    display: grid;
    gap: 14px;
}

.chat-room-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.chat-room-header h2 {
    margin: 0;
}

.chat-room-header span {
    min-width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(47, 143, 157, 0.16);
    color: var(--cyan);
    font-weight: 900;
}

.chat-room-form {
    display: grid;
    gap: 10px;
}

.chat-room-form .cv-button {
    justify-self: start;
}

.chat-room-list {
    display: grid;
    gap: 8px;
}

.chat-room-button {
    position: relative;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 3px;
    padding: 11px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.58);
    color: var(--ink);
    font: inherit;
    cursor: pointer;
    text-align: left;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.chat-room-button:hover,
.chat-room-button:focus-visible {
    border-color: rgba(47, 143, 157, 0.38);
    background: rgba(255, 255, 255, 0.76);
    transform: translateY(-1px);
}

.chat-room-button--active {
    border-color: var(--selection-on-border);
    color: var(--selection-on-text);
    background: var(--selection-on-bg);
    box-shadow: var(--selection-on-shadow);
}

.chat-room-button--mixed {
    border-color: rgba(245, 195, 106, 0.3);
    background:
        radial-gradient(circle at 12% 18%, rgba(245, 195, 106, 0.2), transparent 36%),
        rgba(255, 255, 255, 0.6);
}

.chat-room-button--gemini {
    border-color: rgba(198, 99, 47, 0.28);
    background:
        linear-gradient(135deg, rgba(255, 248, 232, 0.78), rgba(238, 247, 249, 0.7)),
        rgba(255, 255, 255, 0.64);
}

.chat-room-button--gemini span::after {
    content: 'AI';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    min-height: 18px;
    margin-left: 8px;
    padding: 1px 6px;
    border-radius: 999px;
    color: #7a331c;
    background: rgba(245, 195, 106, 0.26);
    font-size: 10px;
    font-weight: 900;
}

.chat-room-button--admin {
    border-color: rgba(113, 199, 216, 0.36);
    background:
        radial-gradient(circle at 90% 12%, rgba(113, 199, 216, 0.22), transparent 34%),
        rgba(255, 255, 255, 0.62);
}

.chat-room-unread {
    position: absolute;
    top: 7px;
    right: 8px;
    min-width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(113, 199, 216, 0.42);
    border-radius: 999px;
    color: #eef9ff;
    background: #071122;
    box-shadow:
        0 0 10px rgba(113, 199, 216, 0.32),
        inset 0 0 8px rgba(113, 199, 216, 0.2);
    font-size: 11px;
    font-weight: 950;
    line-height: 1;
}

.chat-room-button span {
    padding-right: 28px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 900;
}

.chat-room-button small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    line-height: 1.2;
}

.chat-admin-tools {
    display: grid;
    gap: 9px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.chat-admin-tools[hidden] {
    display: none !important;
}

.chat-admin-tools h3 {
    margin: 0;
    color: var(--amber-dark);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.chat-admin-notice {
    margin: 0;
    padding: 10px 11px;
    border: 1px solid rgba(198, 99, 47, 0.2);
    border-radius: 8px;
    color: rgba(16, 23, 38, 0.78);
    background: rgba(255, 253, 248, 0.48);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.chat-admin-tools .cv-button {
    width: 100%;
    justify-content: center;
}

.chat-admin-tools .cv-button.danger {
    border-color: rgba(139, 36, 36, 0.28);
    color: #8b2424;
}

@media (max-width: 980px) {
    body[data-education-user="teacher"] .education-layout {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "main"
            "sidebar"
            "content";
    }

    body[data-education-user="teacher"] #education-private-content {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "main"
            "sidebar"
            "content";
    }

    body[data-education-user="teacher"] .education-sidebar {
        grid-row: 2;
        grid-column: 1;
    }

    body[data-education-user="teacher"] .education-main {
        grid-row: 1;
        grid-column: 1;
    }

    body[data-education-user="teacher"] #education-content-manager,
    body[data-education-user="teacher"] .education-content-manager {
        grid-row: 3;
        grid-column: 1;
    }

    body[data-education-user="teacher"][data-education-competition-status="running"] .education-layout,
    body[data-education-user="teacher"][data-education-competition-status="finished"] .education-layout,
    body[data-education-user="teacher"][data-education-competition-role="player"] .education-layout,
    body[data-education-user="teacher"][data-education-solo="active"] .education-layout {
        grid-template-areas: "main";
    }

    body[data-education-user="teacher"][data-education-competition-status="running"] #education-private-content,
    body[data-education-user="teacher"][data-education-competition-status="finished"] #education-private-content,
    body[data-education-user="teacher"][data-education-competition-role="player"] #education-private-content,
    body[data-education-user="teacher"][data-education-solo="active"] #education-private-content {
        grid-template-areas: "main";
    }

    body[data-education-user="teacher"][data-education-competition-status="running"] .education-main,
    body[data-education-user="teacher"][data-education-competition-status="finished"] .education-main,
    body[data-education-user="teacher"][data-education-competition-role="player"] .education-main,
    body[data-education-user="teacher"][data-education-solo="active"] .education-main {
        grid-row: 1;
        grid-column: 1;
    }
}

@media (max-width: 920px) {
    body[data-education-user="teacher"] .education-sidebar,
    body[data-education-user="teacher"] .education-main {
        flex-basis: 100%;
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 860px) {
    .cv-hero,
    .cv-layout,
    .timeline-item,
    .tool-workbench,
    .stat-life-layout,
    .chat-layout,
    .education-join-panel,
    .education-layout,
    .showcase-grid,
    .atelier-duo,
    .other-layout,
    .other-grid,
    .parcours-app__shell,
    .parcours-overview,
    .parcours-modules {
        grid-template-columns: 1fr;
    }

    .parcours-shell {
        height: calc(100dvh - 74px);
        gap: 8px;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .parcours-header .cv-kicker {
        margin-bottom: 2px;
        font-size: 11px;
    }

    .parcours-header h1 {
        font-size: clamp(24px, 9vw, 34px);
        line-height: 0.95;
    }

    .parcours-header p {
        display: none;
    }

    .parcours-app__start,
    .parcours-chapters {
        gap: 8px;
    }

    .parcours-app__intro {
        flex-direction: column;
        gap: 8px;
        padding: 10px;
    }

    .parcours-app__intro h2 {
        margin-bottom: 4px;
        font-size: clamp(22px, 7vw, 30px);
    }

    .parcours-app__intro p:not(.tool-card__label) {
        font-size: 13px;
        line-height: 1.2;
    }

    .parcours-app__device {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        padding: 8px 10px;
    }

    .parcours-class-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: minmax(68px, 1fr);
        gap: 8px;
    }

    .parcours-chapter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-auto-rows: minmax(46px, 1fr);
        gap: 6px;
    }

    .parcours-class-grid button,
    .parcours-chapter-grid button {
        gap: 4px;
        padding: 9px;
    }

    .parcours-class-grid span,
    .parcours-chapter-grid span,
    .parcours-class-grid small,
    .parcours-chapter-grid small,
    .parcours-player-context span,
    .parcours-player-context small {
        font-size: 9px;
        letter-spacing: 0.04em;
    }

    .parcours-class-grid strong {
        font-size: clamp(22px, 8vw, 30px);
    }

    .parcours-chapter-grid strong {
        font-size: 10px;
        line-height: 1.05;
    }

    .parcours-app__shell {
        height: 100%;
        min-height: 0;
        overflow: hidden;
    }

    .parcours-app__picker,
    .parcours-app__picker--summary {
        display: none;
    }

    .parcours-player {
        overflow: hidden;
    }

    .parcours-player__header,
    .parcours-player__footer {
        gap: 8px;
        padding: 10px;
    }

    .parcours-player__header h2 {
        font-size: clamp(20px, 7vw, 30px);
    }

    .parcours-player__header strong {
        padding: 6px 8px;
        font-size: 11px;
    }

    .parcours-step-frame {
        min-height: 0;
        padding: 12px;
    }

    .parcours-step {
        gap: 10px;
    }

    .parcours-step h3 {
        font-size: clamp(23px, 8vw, 34px);
    }

    .parcours-step__text,
    .parcours-step li {
        font-size: 15px;
        line-height: 1.24;
    }

    .parcours-content-blocks,
    .parcours-content-block--cards > div {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .parcours-content-block {
        padding: 8px;
    }

    .parcours-content-block p,
    .parcours-content-block li,
    .parcours-content-block td,
    .parcours-content-block th,
    .parcours-content-block--formula code,
    .parcours-content-block--code pre {
        font-size: 11px;
        line-height: 1.18;
    }

    .parcours-answer-list {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .parcours-answer-list label,
    .parcours-answer-field input {
        min-height: 40px;
        padding: 8px 10px;
    }

    .parcours-ranking {
        gap: 6px;
    }

    .parcours-ranking__item {
        min-height: 38px;
        grid-template-columns: 28px minmax(0, 1fr) auto;
        gap: 7px;
        padding: 6px 8px;
    }

    .parcours-ranking__item > span {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }

    .parcours-ranking__item button {
        width: 26px;
        height: 26px;
    }

    .parcours-poll {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .parcours-poll-pie {
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 9px;
    }

    .parcours-poll-pie__chart {
        width: 92px;
        border-width: 5px;
    }

    .parcours-poll-pie__choices {
        gap: 5px;
    }

    .parcours-poll-pie__choices label {
        min-height: 32px;
        padding: 5px 7px;
        font-size: 12px;
    }

    .parcours-poll-bars {
        gap: 6px;
    }

    .parcours-poll-bars label {
        min-height: 36px;
        padding: 7px 8px;
        font-size: 12px;
    }

    .parcours-categorize {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .parcours-match label {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .parcours-categorize label {
        grid-template-columns: minmax(92px, 0.72fr) minmax(0, 1fr);
        gap: 6px;
        padding: 7px 8px;
    }

    .parcours-categorize select {
        min-height: 34px;
        padding: 6px 7px;
    }

    .parcours-fillblank {
        gap: 6px;
        font-size: 15px;
    }

    .parcours-fillblank input {
        width: 100%;
        min-height: 36px;
    }

    .parcours-hotspot__stage {
        min-height: 140px;
    }

    .parcours-coordinate__stage {
        min-height: 150px;
    }

    .parcours-hotspot__zone {
        min-width: 68px;
        padding: 6px 8px;
        font-size: 10px;
    }

    .parcours-matrix th,
    .parcours-matrix td {
        padding: 4px 2px;
    }

    .parcours-matrix th {
        font-size: 8px;
        letter-spacing: 0;
    }

    .parcours-matrix tbody th {
        width: 26%;
        font-size: 9px;
    }

    .parcours-matrix label span {
        width: 20px;
        height: 20px;
    }

    .parcours-player__footer button {
        min-width: 0;
        min-height: 34px;
        padding: 7px 9px;
    }

    .parcours-answer-field textarea {
        min-height: 90px;
        font-size: 14px;
    }

    .parcours-resources {
        padding: 0 10px 10px;
    }

    .education-gate {
        grid-template-columns: 1fr;
    }

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

    .pseudo-panel__auth,
    .pseudo-panel__active,
    .pseudo-panel__editor {
        grid-column: auto;
    }

    .pseudo-panel__auth {
        grid-template-columns: 1fr;
    }

    .pseudo-panel__auth-actions,
    .pseudo-panel__actions,
    .pseudo-panel .cv-button.secondary,
    .pseudo-panel .space-button {
        width: 100%;
    }

    .pseudo-panel__actions {
        justify-content: stretch;
    }

    .pseudo-panel__status {
        grid-column: auto;
    }

    .education-session-home__head,
    .education-common-config__grid,
    .education-main .education-run-panel__body,
    .education-run-panel > summary,
    .education-path-filter__grid,
    .education-path-filter__quick,
    .education-competition-options {
        grid-template-columns: 1fr;
    }

    .education-run-panel > summary > small {
        text-align: left;
        white-space: normal;
    }

    .education-sidebar .education-mode-picker,
    .education-sidebar .education-topic-search {
        grid-template-columns: 1fr;
    }

    .education-sidebar .education-topic-search__actions {
        flex-wrap: wrap;
    }

    .education-main .education-config-menu[open] .education-config-menu__content {
        right: 0;
        left: 0;
        width: auto;
        min-width: 0;
        max-height: min(52vh, 420px);
    }

    .education-classroom__top,
    .education-classroom-player {
        grid-template-columns: 1fr;
    }

    .education-race-player {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .education-race-player > div:first-child {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .education-race-player .education-competition-participant-control {
        grid-column: 2;
        grid-template-columns: auto minmax(0, 1fr);
        width: 100%;
        min-width: 0;
    }

    .education-race-player .education-competition-participant-control__avatar {
        grid-row: 1 / span 4;
    }

    .education-race-player .education-competition-participant-control input,
    .education-race-player .education-competition-participant-control select {
        grid-column: 2;
    }

    .education-race-player .education-competition-participant-control button {
        grid-column: 2;
    }

    .education-race-player > small {
        justify-self: start;
    }

    .education-classroom__top strong {
        justify-self: start;
    }

    .education-competition__code {
        justify-items: start;
    }

    .education-gate__actions {
        justify-content: flex-start;
    }

    .education-pseudo-form {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .education-sidebar {
        position: static;
    }

    .cv-hero {
        min-height: auto;
    }

    .cv-photo-wrap {
        justify-self: start;
        width: min(220px, 70vw);
    }

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

    .cv-sidebar {
        position: static;
    }

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

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

    .stat-life-controls {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .chat-identity {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .chat-identity__actions {
        grid-column: 1 / -1;
        justify-content: start;
    }

    .chat-ai-picker__main {
        grid-template-columns: 1fr;
    }

    .chat-ai-picker__choices {
        width: 100%;
    }

    .chat-ai-picker__choices button {
        min-width: 0;
    }

    .chat-message {
        width: min(92%, 640px);
    }

    .coffre-switches {
        grid-template-columns: 1fr;
    }

    .seance-color-grid,
    .seance-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .copy-row {
        grid-template-columns: 1fr;
    }

    .education-lobby-share {
        grid-template-columns: 1fr;
    }

    .galton-counts__header,
    .galton-counts__row {
        grid-template-columns: 54px minmax(0, 1fr) 72px;
    }

    .galton-counts__header span:last-child,
    .galton-counts__row span:last-child {
        grid-column: 1 / -1;
    }

    .space-hint {
        position: relative;
        right: auto;
        bottom: auto;
        z-index: 2;
        margin-top: 28px;
    }

    .star-skin-anchor {
        right: -13vw;
        bottom: 3vh;
        width: min(44vw, 360px);
        opacity: 0.72;
    }
}

@media (max-width: 700px) {
    body.home-page,
    body.tool-page,
    body.cv-page,
    body.starry-page {
        max-width: 100%;
        overflow-x: clip;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .site-nav.space-nav {
        top: max(10px, env(safe-area-inset-top, 0px));
        right: 10px;
        bottom: auto;
        left: 10px;
        width: calc(100vw - 20px);
        max-width: calc(100vw - 20px);
        box-sizing: border-box;
        align-items: center;
        flex-direction: row;
        gap: 6px;
        padding: 6px;
        border: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: 16px;
        background: rgba(8, 13, 29, 0.9);
        box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
    }

    .site-nav__brand {
        display: none;
        width: 0;
        height: 0;
        flex: 0 0 0;
        justify-content: center;
        gap: 0;
        overflow: hidden;
        color: transparent;
        font-size: 0;
    }

    .site-nav__brand::before {
        width: 29px;
        height: 29px;
        flex: 0 0 29px;
    }

    .site-nav__links {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        flex: 1;
        width: 100%;
        min-width: 0;
        gap: 4px;
    }

    .site-nav__links a {
        min-height: 38px;
        justify-content: center;
        padding: 5px 4px;
        border-radius: 10px;
        font-size: 12px;
        line-height: 1.05;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .site-nav.space-nav + .tool-shell {
        padding-top: 76px;
        padding-bottom: 34px;
    }

    .site-nav.space-nav + .cv-shell .cv-hero {
        padding-top: 92px;
    }

    .cv-shell,
    .tool-shell {
        width: min(1120px, calc(100vw - 32px));
        max-width: calc(100vw - 32px);
        margin-right: 16px;
        margin-left: 16px;
    }

    body.education-page .site-nav.space-nav + .tool-shell.education-shell,
    .tool-shell.education-shell {
        width: calc(100% - 16px);
        max-width: calc(100% - 16px);
        margin-right: 8px;
        margin-left: 8px;
        min-width: 0;
        overflow-x: clip;
        padding-top: max(14px, env(safe-area-inset-top, 0px));
        padding-bottom: max(20px, env(safe-area-inset-bottom, 0px));
    }

    .education-header,
    .education-gate,
    .education-join-panel,
    .education-join-card,
    .education-layout,
    .education-main {
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .education-header h1,
    .education-header p,
    .education-user,
    .education-user strong,
    .education-user span,
    .education-join-card h2,
    .education-join-card p {
        min-width: 0;
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .education-header h1 {
        max-width: 12ch;
        font-size: clamp(28px, 8vw, 36px);
        line-height: 1;
    }

    .education-header p {
        font-size: clamp(14px, 3.8vw, 16px);
        line-height: 1.32;
    }

    .education-gate,
    .education-join-panel {
        gap: 10px;
    }

    body.education-page[data-education-auto-join] #education-training-card {
        display: none;
    }

    body.education-page[data-education-auto-join] .education-header {
        gap: 6px;
    }

    body.education-page[data-education-auto-join] .education-header h1 {
        max-width: none;
        font-size: clamp(28px, 8vw, 34px);
    }

    body.education-page[data-education-auto-join] .education-header p {
        display: none;
    }

    .education-gate {
        grid-template-columns: minmax(0, 1fr);
        gap: 7px;
        padding: 10px;
    }

    .education-user {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 10px;
    }

    .education-user span {
        line-height: 1.25;
    }

    .education-user__avatar {
        width: 38px;
        height: 38px;
    }

    .education-gate__actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        gap: 7px;
    }

    .education-avatar-picker {
        grid-template-columns: 1fr;
    }

    .education-avatar-picker--gate {
        position: absolute;
        z-index: 90;
        top: 0;
        right: 0;
        bottom: auto;
        left: 0;
        width: auto;
        height: auto;
        max-height: calc(100dvh - 118px);
        min-height: 0;
        transform: none;
        padding: 10px;
        gap: 8px;
        align-content: start;
        overflow: hidden;
    }

    .education-avatar-picker--gate label {
        position: static;
        width: auto;
        height: auto;
        margin: 0;
        padding: 0;
        display: grid;
        gap: 6px;
        overflow: visible;
        clip: auto;
        white-space: normal;
        color: var(--white);
        font-weight: 900;
    }

    .education-avatar-picker--gate label select {
        min-height: 34px;
    }

    .education-avatar-picker__current {
        grid-template-columns: auto minmax(0, 1fr);
        min-height: 58px;
        padding: 7px 9px;
    }

    .education-avatar-picker__current-label {
        grid-column: 1 / -1;
    }

    .education-avatar-picker__current-avatar {
        width: 42px;
        height: 42px;
    }

    .education-avatar-picker__current strong {
        font-size: 0.96rem;
        line-height: 1.15;
    }

    .education-avatar-picker__current small {
        display: none;
    }

    .education-avatar-random {
        width: 100%;
        justify-self: stretch;
        min-height: 34px;
        padding: 7px 10px;
    }

    .education-avatar-done {
        min-height: 34px;
        padding: 7px 10px;
    }

    .education-avatar-tabs__button {
        min-height: 34px;
        padding: 7px 8px;
    }

    .education-avatar-picker--gate .education-avatar-tabs,
    .education-avatar-choice-board {
        display: none;
    }

    .education-builder-preview li {
        grid-template-columns: 28px minmax(0, 1fr);
    }

    .education-builder-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .education-builder-preview__actions {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        justify-content: stretch;
    }

    .education-gate__actions .cv-button {
        min-height: 34px;
        padding: 6px 8px;
    }

    .education-join-card {
        gap: 7px;
        padding: 12px;
    }

    .education-join-card h2 {
        max-width: none;
        font-size: clamp(26px, 6.8vw, 30px);
        line-height: 1.02;
    }

    .education-join-card p:not(.tool-card__label),
    .education-join-form label {
        font-size: clamp(14px, 3.7vw, 16px);
        line-height: 1.28;
    }

    .education-join-form input {
        padding: 8px 11px;
        font-size: clamp(17px, 4.5vw, 18px);
    }

    .education-sidebar .education-topic-suggestions button:nth-of-type(n+4),
    .education-sidebar .education-settings-snapshot__item:nth-child(n+5),
    .education-sidebar .education-advanced-launch {
        display: none;
    }

    .education-sidebar .education-topic-search,
    .education-sidebar .education-settings-snapshot,
    .education-sidebar .education-quick-settings {
        gap: 6px;
    }

    .education-sidebar .education-topic-search {
        padding: 10px;
    }

    .education-sidebar .education-topic-search input {
        min-height: 40px;
    }

    .education-sidebar .education-topic-suggestions button {
        min-height: 30px;
        padding: 5px 9px;
    }

    .education-sidebar .education-settings-snapshot__item {
        min-height: 48px;
        padding: 6px 8px;
    }

    .education-launch-card {
        gap: 6px;
    }

    .education-launch-hint,
    .education-launch-summary {
        margin: 0;
    }

    .education-sidebar .education-launch-card:not([hidden]) {
        position: fixed;
        z-index: 72;
        right: 8px;
        bottom: max(8px, env(safe-area-inset-bottom, 0px));
        left: 8px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px;
        padding: 8px 10px;
        border: 1px solid rgba(16, 23, 38, 0.14);
        border-radius: 8px;
        background: rgba(255, 253, 248, 0.94);
        box-shadow: 0 18px 46px rgba(3, 7, 18, 0.24);
        backdrop-filter: blur(14px) saturate(1.08);
        -webkit-backdrop-filter: blur(14px) saturate(1.08);
    }

    .education-sidebar .education-launch-card .education-launch-hint {
        color: var(--night);
        font-size: 0.82rem;
        font-weight: 900;
        line-height: 1.2;
    }

    .education-sidebar .education-launch-card .education-launch-summary,
    .education-sidebar .education-launch-card .education-game-status {
        display: none;
    }

    .education-sidebar .education-launch-card .education-mode-actions {
        justify-content: end;
        margin: 0;
    }

    .education-sidebar .education-launch-card .education-mode-actions .cv-button {
        min-height: 38px;
        padding: 8px 12px;
        white-space: nowrap;
    }

    body.atelier-page .site-nav__brand {
        display: none;
    }

    body.atelier-page .site-nav__links {
        width: 100%;
    }

    body.atelier-page .tool-shell,
    body.atelier-page .atelier-duo,
    body.atelier-page .atelier-card {
        max-width: calc(100vw - 20px);
    }

    body.atelier-page .atelier-card {
        width: calc(100vw - 20px);
        box-sizing: border-box;
    }

    .space-hero {
        min-height: 0;
        align-items: center;
        padding: 82px 14px 24px;
    }

    .space-hero__content {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .space-kicker {
        font-size: 11px;
        line-height: 1.35;
        letter-spacing: 0.08em;
    }

    .star-skin-anchor--hero-cat {
        right: -42px;
        bottom: -18px;
        width: min(34vw, 132px);
        max-width: 132px;
    }

    .star-skin-anchor--site-cat {
        right: 12px;
        bottom: 14px;
        width: clamp(66px, 18vw, 96px);
        max-width: 22vh;
    }

    .living-stars-skin--site-cat,
    .living-stars-skin--cat {
        opacity: 0.78;
    }

    .space-hero h1 {
        font-size: clamp(38px, 12vw, 56px);
    }

    .space-lead {
        margin-top: 10px;
        font-size: 15px;
        line-height: 1.38;
    }

    .space-signals {
        gap: 6px;
        margin-top: 10px;
    }

    .space-signals span {
        min-height: 0;
        padding: 0;
        font-size: 12px;
    }

    .showcase-section {
        padding: 10px 10px 0;
    }

    .showcase-heading {
        margin-bottom: 10px;
    }

    .showcase-heading h2 {
        font-size: clamp(24px, 8vw, 34px);
    }

    .showcase-card,
    .atelier-card,
    .other-card {
        min-height: 0;
        padding: 14px;
    }

    .showcase-card__icon,
    .atelier-card img,
    .other-card img {
        width: min(72vw, 160px);
        max-height: 150px;
    }

    .showcase-carousel {
        position: relative;
        overflow: hidden;
        border-radius: 8px 8px 0 0;
        touch-action: pan-y;
    }

    .showcase-grid {
        display: flex;
        grid-template-columns: none;
        gap: 0;
        transition: transform 220ms ease;
        will-change: transform;
    }

    #showcase-slide-tools:checked ~ .showcase-grid {
        transform: translateX(-100%);
    }

    #showcase-slide-spaces:checked ~ .showcase-grid {
        transform: translateX(-200%);
    }

    .showcase-card {
        flex: 0 0 100%;
        display: grid;
        grid-template-columns: 64px minmax(0, 1fr);
        align-items: center;
        gap: 5px 11px;
        border-radius: 8px 8px 0 0;
    }

    .showcase-card__icon {
        grid-row: 1 / span 3;
        width: 64px;
        max-height: 64px;
        align-self: center;
        margin: 0;
    }

    .showcase-card h3,
    .showcase-card p,
    .showcase-card span {
        min-width: 0;
    }

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

    .showcase-card p {
        font-size: 13px;
        line-height: 1.32;
    }

    .showcase-carousel__controls {
        position: absolute;
        top: 10px;
        right: 10px;
        z-index: 3;
        display: flex;
        gap: 7px;
        align-items: center;
        padding: 6px;
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 999px;
        background: rgba(8, 13, 29, 0.58);
        backdrop-filter: blur(12px);
    }

    .showcase-carousel__controls label {
        width: 10px;
        height: 10px;
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.48);
        border-radius: 999px;
        color: transparent;
        background: rgba(255, 255, 255, 0.24);
        cursor: pointer;
        text-indent: 120%;
        white-space: nowrap;
    }

    #showcase-slide-profile:checked ~ .showcase-carousel__controls label[for="showcase-slide-profile"],
    #showcase-slide-tools:checked ~ .showcase-carousel__controls label[for="showcase-slide-tools"],
    #showcase-slide-spaces:checked ~ .showcase-carousel__controls label[for="showcase-slide-spaces"] {
        border-color: #f5c36a;
        background: #f5c36a;
    }

    .atelier-page .tool-shell {
        padding-top: 62px;
        padding-bottom: 20px;
    }

    .atelier-page .tool-header p {
        margin: 6px 0 0;
    }

    .atelier-duo {
        gap: 8px;
    }

    .atelier-card {
        display: grid;
        grid-template-columns: 54px minmax(0, 1fr);
        align-items: center;
        gap: 7px 10px;
    }

    .atelier-card__media {
        grid-row: 1 / span 3;
        min-height: 0;
        margin: 0;
    }

    .atelier-card__media img,
    .atelier-card:nth-child(3) .atelier-card__media img,
    .atelier-card:nth-child(6) .atelier-card__media img {
        width: 54px;
        max-height: 54px;
    }

    .atelier-card__body,
    .atelier-card .tool-card__label,
    .atelier-card h2,
    .atelier-card p {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .atelier-card h2 {
        margin: 0 0 4px;
        font-size: clamp(19px, 6vw, 25px);
    }

    .atelier-card p {
        margin: 0;
        font-size: 12px;
        line-height: 1.26;
    }

    .tool-header {
        margin-bottom: 14px;
    }

    .tool-header h1 {
        font-size: clamp(30px, 10vw, 42px);
    }

    .control-panel,
    .result-panel,
    .tool-note,
    .chat-panel,
    .pseudo-panel,
    .parcours-note,
    .parcours-track,
    .parcours-module,
    .education-gate,
    .education-question {
        padding: 16px;
    }

    .other-page .tool-shell {
        padding-top: 76px;
    }

    .other-page .tool-header {
        margin-bottom: 12px;
    }

    .other-page .tool-header p {
        margin: 8px 0 0;
    }

    body.other-page .site-nav.space-nav {
        right: 16px;
        left: 16px;
        width: calc(100vw - 32px);
        max-width: calc(100vw - 32px);
        overflow: hidden;
    }

    body.other-page .site-nav.space-nav .site-nav__brand {
        display: none !important;
    }

    body.other-page .site-nav.space-nav .site-nav__links {
        width: 100%;
        max-width: 100%;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        overflow: hidden;
    }

    body.other-page .tool-shell {
        width: calc(100vw - 32px);
        max-width: calc(100vw - 32px);
        margin-right: 16px;
        margin-left: 16px;
        overflow-x: clip;
        overflow-y: visible;
    }

    body.other-page .tool-header,
    body.other-page .pseudo-panel,
    body.other-page .other-card {
        max-width: 100%;
        min-width: 0;
    }

    body.other-page .tool-header p,
    body.other-page .other-card h2,
    body.other-page .other-card p {
        max-width: 100%;
        overflow: visible;
        overflow-wrap: anywhere;
        text-overflow: clip;
    }

    body.other-page .other-card:nth-child(5):last-child {
        grid-column: auto;
    }

    .pseudo-panel {
        gap: 10px;
    }

    .pseudo-panel h2 {
        font-size: clamp(24px, 8vw, 34px);
    }

    .pseudo-panel__auth,
    .pseudo-panel__active {
        padding: 0;
        border: 0;
    }

    .other-grid {
        gap: 10px;
    }

    .other-card {
        display: grid;
        grid-template-columns: 74px minmax(0, 1fr);
        align-items: center;
        gap: 8px 12px;
    }

    .other-card img {
        grid-row: 1 / span 3;
        width: 74px;
        max-height: 74px;
        align-self: center;
    }

    .other-card h2,
    .other-card p {
        min-width: 0;
    }

    .other-card p:not(.tool-card__label) {
        display: block;
        -webkit-line-clamp: unset;
    }

    .parcours-axis {
        min-height: 0;
        padding: 16px;
    }

    .parcours-track__header {
        display: grid;
    }

    .parcours-track__count {
        justify-self: start;
    }

    .chat-messages {
        height: min(420px, 55vh);
    }

    .chat-message {
        width: 100%;
    }

    .education-user {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .education-user__avatar {
        width: 46px;
        height: 46px;
    }

    .education-order li {
        grid-template-columns: auto minmax(0, 1fr) 44px 44px;
    }

    .education-order button {
        width: 44px;
        font-size: 13px;
    }

    .education-matching label,
    .education-classroom-matching {
        grid-template-columns: 1fr;
    }

    .education-classroom {
        min-height: auto;
    }

    .education-classroom-actions {
        display: grid;
    }

    .education-classroom-player {
        align-items: stretch;
    }
}

@media (max-width: 560px) {
    .site-nav:not(.space-nav) {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-nav:not(.space-nav) .site-nav__links {
        justify-content: flex-start;
    }

    .cv-contact {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 14px;
    }

    .cv-contact > div {
        padding: 0;
    }

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

    .stat-life-controls,
    .stat-life-stats,
    .seance-steps,
    .seance-color-grid,
    .seance-stats {
        grid-template-columns: 1fr;
    }

    .stat-life-canvas {
        aspect-ratio: 4 / 5;
        min-height: min(520px, 78vh);
    }

    .home-hero {
        min-height: 640px;
    }

}

/* Daily news card: sober variant aligned with the main site typography. */
.daily-gemini-card {
    width: min(560px, 100%);
    margin: clamp(10px, 1.4vw, 16px) 0 0;
    padding: 12px 14px;
    border: 1px solid rgba(151, 172, 199, 0.22);
    border-left: 3px solid var(--accent);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(16, 23, 38, 0.58);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

.daily-gemini-card::before {
    content: none;
}

.daily-gemini-card blockquote {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(15px, 1.2vw, 18px);
    font-weight: 850;
    line-height: 1.32;
    display: -webkit-box;
    overflow: hidden;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.daily-gemini-card__author {
    margin-top: 6px;
    color: var(--amber);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.daily-gemini-card__author::before {
    content: "";
}

@media (max-height: 820px) and (min-width: 701px) {
    .daily-gemini-card {
        width: min(500px, 100%);
        margin: 8px 0 0;
        padding: 10px 12px;
    }

    .daily-gemini-card blockquote {
        font-size: 15px;
        line-height: 1.24;
        -webkit-line-clamp: 2;
    }

    .daily-gemini-card__author {
        margin-top: 4px;
        font-size: 10px;
    }
}

@media (max-width: 700px) {
    .daily-gemini-card {
        margin: 10px 0 0;
        padding: 11px 12px;
    }

    .daily-gemini-card blockquote {
        font-size: 15px;
        line-height: 1.25;
        -webkit-line-clamp: 3;
    }
}

.error-page {
    min-height: 100vh;
}

.error-shell {
    width: min(920px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    align-items: center;
    padding: 96px 0 48px;
}

.error-panel {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(7, 12, 28, 0.82);
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(18px);
    padding: clamp(28px, 6vw, 64px);
}

.error-panel h1 {
    max-width: 760px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(2.4rem, 7vw, 5.8rem);
    line-height: 0.94;
}

.error-panel p {
    max-width: 680px;
    color: rgba(245, 247, 255, 0.78);
    font-size: 1.04rem;
}

.error-request {
    display: inline-flex;
    max-width: 100%;
    gap: 8px;
    align-items: center;
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(245, 247, 255, 0.72);
}

.error-request strong {
    min-width: 0;
    overflow-wrap: anywhere;
    color: #ffffff;
}

.error-actions,
.error-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.error-suggestions {
    margin-top: 12px;
}
