.consent-panel:not([open]), .consent-reopen[hidden], .consent-close[hidden], #consent-details[hidden] { display: none; }
.consent-panel { position: fixed; z-index: 10020; inset: auto auto 1.5rem 1.5rem; margin: 0; width: min(42rem, calc(100vw - 3rem)); max-width: none; max-height: calc(100dvh - 3rem); overflow-y: auto; overscroll-behavior: contain; padding: 1.75rem; border: 1px solid var(--color-control-border); border-radius: 1.4rem; color: var(--color-paper); background: linear-gradient(140deg, #24122e, #100c18 65%); box-shadow: 0 1rem 4rem #0009; font-size: .95rem; line-height: 1.6; }
#school-consent:has(> .consent-panel.is-initial[open]) { position: fixed; z-index: 10020; inset: auto 0 0; padding: 1.5rem; background: linear-gradient(to top, #000 0%, rgb(0 0 0 / 0%) 100%); }
.consent-panel.is-initial { position: relative; inset: auto; margin: 0 auto; width: min(42rem, 100%); overscroll-behavior: auto; }
.consent-panel h2 { margin: .2rem 2rem .8rem 0; font-size: clamp(1.35rem, 3vw, 1.7rem); line-height: 1.2; letter-spacing: -.035em; }
.consent-panel p { margin: .65rem 0; color: var(--color-muted); }
.consent-panel .consent-eyebrow { font-size: .7rem; font-weight: 700; letter-spacing: .12em; color: var(--color-brand-text); }
.consent-panel a { color: var(--color-paper); text-decoration: underline; text-underline-offset: .2em; }
.consent-panel button, .consent-reopen { font: inherit; cursor: pointer; }
.consent-panel button:focus-visible, .consent-panel input:focus-visible, .consent-panel a:focus-visible, .consent-reopen:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.consent-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; margin-top: 1.15rem; }
.consent-actions > button, #consent-details > button { min-height: 44px; padding: .65rem 1rem; border-radius: 999px; border: 1px solid #8d729e; background: #241730; color: white; font-weight: 700; font-size: .85rem; }
.consent-actions > button { min-width: 0; }
.consent-actions > button:hover, #consent-details > button:hover { background: #43234f; }
.consent-panel button:disabled { cursor: wait; opacity: .6; }
.consent-close { position: sticky; float: right; top: 0; z-index: 1; margin: -.65rem -.65rem 0 0; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: #171020; color: white; font-size: 1.8rem !important; }
.consent-panel { scrollbar-color: #716080 #151020; scrollbar-width: thin; }
.consent-reopen { position: fixed; z-index: 10010; left: 1rem; bottom: 1rem; min-height: 44px; padding: .6rem .9rem; border: 1px solid var(--color-control-border); border-radius: 999px; background: #151020; color: white; box-shadow: 0 .3rem 1rem #0005; font-size: .8rem; }
.consent-reopen__icon { display: inline-block; vertical-align: middle; color: var(--color-brand-text); margin-right: .2rem; }
.consent-category { padding: 1rem 0; border-bottom: 1px solid var(--color-border); }
.consent-category label { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 32px; font-weight: 700; cursor: pointer; }
.consent-category input { flex: none; width: 1.4rem; height: 1.4rem; accent-color: #ad4bcb; }
.consent-category p, .consent-panel .consent-period { font-size: .82rem; }
.consent-panel .consent-status { color: #ffd995; font-size: .85rem; margin-bottom: 0; }
.consent-status:empty { display: none; }
.school-cookie-settings { padding-top: 2rem; }
.school-embed__consent { position: relative; z-index: 2; display: grid; justify-items: center; gap: .7rem; max-width: calc(100% - 2rem); margin: 1rem; padding: 1rem; text-align: center; border-radius: .85rem; background: #100c18ed; color: white; font-size: .85rem; line-height: 1.45; }
.school-embed__consent p { margin: 0; color: white; }
.school-embed__consent a { color: white; text-decoration: underline; }
.school-embed__consent button { border: 1px solid #b8afc4; padding: .65rem 1rem; min-height: 44px; border-radius: 999px; color: white; background: #251530; font: inherit; cursor: pointer; }
.school-embed__consent[hidden] { display: none; }
.school-embed.is-playing > iframe { position: absolute; inset: 0; z-index: 1; }
@media (max-width: 600px) {
    #school-consent:has(> .consent-panel.is-initial[open]) { padding: .65rem; }
    .consent-panel { left: .65rem; bottom: .65rem; width: calc(100vw - 1.3rem); padding: 1.2rem; border-radius: 1.1rem; max-height: calc(100dvh - 1.3rem); font-size: .88rem; }
    .consent-actions > button { padding: .7rem .4rem; }
    .consent-reopen { left: max(.65rem, env(safe-area-inset-left)); bottom: max(.65rem, env(safe-area-inset-bottom)); display: grid; place-items: center; width: 44px; height: 44px; padding: 0; }
    .consent-reopen__icon { width: 22px; height: 22px; margin: 0; }
    .consent-reopen [data-consent-text="reopen"] { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
}
@media (max-width: 360px) {
    .consent-actions { grid-template-columns: 1fr; }
}
