* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; background: var(--prax-bg); }
body { margin: 0; min-height: 100vh; color: var(--prax-ivory); background: radial-gradient(circle at 80% 4%, rgba(155,202,208,.045), transparent 26rem), var(--prax-bg); }
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
.child-header { min-height: 70px; padding: 12px clamp(16px,4vw,44px); display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--prax-line); background: rgba(11,24,51,.95); }
.child-brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.child-brand > span:last-child { display: grid; gap: 2px; }
.child-brand strong { font: 650 17px/1 Georgia, serif; letter-spacing: .13em; }
.child-brand small { color: var(--prax-muted); font-size: 8px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.child-mark { width: 34px; height: 34px; display: grid; place-items: center; position: relative; border: 1px solid var(--prax-brass); border-radius: 50%; }
.child-mark::before { content: ""; position: absolute; inset: 6px; border: 1px dashed rgba(155,202,208,.5); border-radius: 50%; }
.child-mark i { width: 5px; height: 5px; border-radius: 50%; background: var(--prax-brass-light); }
.profile-menu { position: relative; }
.profile-menu > button { min-height: 38px; display: flex; align-items: center; gap: 7px; padding: 4px 9px 4px 4px; color: var(--prax-ivory); background: var(--prax-surface); border: 1px solid rgba(197,160,90,.28); border-radius: 999px; }
#profile-monogram { width: 28px; height: 28px; display: grid; place-items: center; color: var(--prax-brass-light); background: var(--prax-raised); border: 1px solid var(--prax-brass); border-radius: 50%; font: 700 11px Georgia, serif; }
#profile-name { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 700; }
#profile-actions { position: absolute; right: 0; top: calc(100% + 7px); min-width: 130px; z-index: 5; padding: 5px; background: var(--prax-raised); border: 1px solid var(--prax-line-strong); border-radius: 8px; box-shadow: var(--prax-shadow); }
#profile-actions button { width: 100%; padding: 9px; color: #ffb2aa; text-align: left; background: transparent; border: 0; border-radius: 5px; }
.login-shell { min-height: calc(100vh - 70px); padding: 44px 16px; display: grid; place-items: start center; }
.login-panel { width: min(100%, 470px); padding: 24px; background: var(--prax-surface); border: 1px solid var(--prax-line); border-radius: 14px; box-shadow: var(--prax-shadow); }
.eyebrow { margin: 0 0 7px; color: var(--prax-brass-light); font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
h1, h2 { font-family: Georgia, serif; }
.login-panel h1, .library-heading h1 { margin: 0; font-size: clamp(27px,5vw,38px); font-weight: 600; }
.login-panel > p:last-of-type { color: var(--prax-muted); line-height: 1.5; }
.login-panel form { display: grid; gap: 12px; margin-top: 20px; }
.login-panel label { display: grid; gap: 7px; color: var(--prax-secondary); font-size: 12px; font-weight: 700; }
input { width: 100%; min-height: 48px; padding: 11px 13px; color: var(--prax-ivory); background: var(--prax-bg); border: 1px solid var(--prax-line-strong); border-radius: 9px; outline: 0; }
input:focus { border-color: var(--prax-teal); box-shadow: 0 0 0 3px rgba(103,169,163,.18); }
.primary-action { min-height: 48px; margin-top: 4px; color: #061311; background: var(--prax-teal); border: 0; border-radius: 9px; font-weight: 800; }
button:focus-visible { outline: 2px solid var(--prax-teal-light); outline-offset: 2px; }
button:disabled { opacity: .45; }
.library-shell { max-width: 1240px; margin: 0 auto; padding: 28px clamp(16px,3vw,28px) 48px; }
.library-heading { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 12px; margin-bottom: 12px; }
.library-tools { display: flex; align-items: center; gap: 10px; color: var(--prax-muted); font-size: 11px; }
.library-tools button { padding: 8px 11px; color: var(--prax-secondary); background: var(--prax-surface); border: 1px solid var(--prax-line); border-radius: 8px; }
.search-wrap { max-width: 520px; margin: 0 0 16px; display: flex; align-items: center; gap: 9px; padding-left: 13px; color: var(--prax-muted); background: var(--prax-surface); border: 1px solid var(--prax-line); border-radius: 9px; }
.search-wrap input { min-height: 42px; padding-left: 0; background: transparent; border: 0; box-shadow: none; }
.today-guide { min-width: 0; padding: 7px 10px; background: var(--prax-surface); border: 1px solid var(--prax-line); border-radius: 8px; }
.today-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.today-summary { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--prax-secondary); font-size: 11px; font-weight: 500; letter-spacing: 0; }
.today-head button { padding: 2px 0; color: var(--prax-teal-light); background: none; border: 0; font-size: 11px; font-weight: 700; letter-spacing: 0; cursor: pointer; }
.today-rulers { display: grid; gap: 7px; margin-top: 7px; }
.today-ruler strong { display: block; margin-bottom: 3px; color: var(--prax-ivory); font-size: 12px; }
.today-timeline { display: flex; align-items: center; gap: 7px; color: var(--prax-muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.today-line { position: relative; flex: 1; height: 13px; min-width: 35px; }
.today-line::before { content: ""; position: absolute; top: 8px; left: 0; right: 0; height: 1px; background: rgba(197,160,90,.32); }
.today-cat { position: absolute; top: 0; width: 19px; height: 12px; transform: translateX(-50%); overflow: visible; }
.today-cat path { fill: #050b16; stroke: var(--prax-brass-light); stroke-width: 1.4; stroke-linejoin: round; }
.today-next, .today-rest, .today-none { margin: 7px 0 0; color: var(--prax-secondary); font-size: 11px; }
.today-rest { color: var(--prax-ivory); }
.today-expanded { display: grid; gap: 4px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--prax-line); color: var(--prax-muted); font-size: 11px; }
.today-expanded div { display: flex; justify-content: space-between; gap: 12px; }
.child-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 165px), 1fr)); gap: 9px; }
.child-card-grid .prax-video-copy { padding: 7px 9px 8px; }
.child-card-grid .prax-video-title { font-size: 12px; }
#library-home .prax-video-source, #library-home .prax-video-meta { display: none; }
#library-home .prax-video-title { min-height: 0; }
#playlists-section { margin-bottom: 16px; }
.playlist-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 13px; }
.playlist-block { min-width: 0; }
.playlist-row-heading { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.playlist-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0; border: 0; color: var(--prax-ivory); background: none; font-size: 13px; font-weight: 700; cursor: pointer; }
.playlist-row-heading small { color: var(--prax-muted); font-size: 10px; white-space: nowrap; }
.playlist-view-all { margin-left: auto; padding: 2px 0 2px 7px; border: 0; color: var(--prax-teal-light); background: none; font-size: 11px; white-space: nowrap; cursor: pointer; }
.playlist-title:focus-visible, .playlist-view-all:focus-visible { outline: 2px solid var(--prax-teal-light); outline-offset: 2px; }
.playlist-video-rail { display: flex; min-width: 0; max-width: 100%; gap: 7px; overflow-x: auto; padding-bottom: 5px; scroll-snap-type: x proximity; }
.playlist-video-rail .prax-video-card { width: 145px; flex: 0 0 145px; scroll-snap-align: start; }
.playlist-video-rail .prax-video-copy { padding: 5px 7px 6px; }
.playlist-video-rail .prax-video-title { font-size: 11px; }
.playlist-video-rail.expanded { display: grid; grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); overflow: visible; scroll-snap-type: none; }
.playlist-video-rail.expanded .prax-video-card { width: 100%; }
#loose-heading { margin: 0 0 9px; padding-top: 13px; border-top: 1px solid var(--prax-line); }
#loose-heading > span { color: var(--prax-muted); font-size: 11px; }
.collection-section:not([hidden]) + .collection-section { margin-top: 16px; }
.collection-section > h2, .detail-contents-heading h2 { margin: 0 0 13px; color: var(--prax-ivory); font: 700 17px/1.3 system-ui, sans-serif; }
.browse-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.browse-heading h2 { margin: 0; color: var(--prax-ivory); font: 700 17px/1.3 system-ui, sans-serif; }
.category-tabs { display: flex; gap: 5px; overflow-x: auto; margin-bottom: 13px; padding: 1px 1px 7px; scrollbar-width: thin; }
.category-tabs:empty { display: none; }
.category-tabs button { flex: 0 0 auto; min-height: 34px; padding: 6px 11px; color: var(--prax-secondary); background: var(--prax-surface); border: 1px solid var(--prax-line); border-radius: 7px; font-size: 12px; cursor: pointer; }
.category-tabs button[aria-selected="true"] { color: var(--prax-bg); background: var(--prax-teal-light); border-color: var(--prax-teal-light); font-weight: 750; }
.category-tabs button:focus-visible { outline: 2px solid var(--prax-brass-light); outline-offset: 2px; }
.playlist-rail, .detail-preview { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 9px; scroll-snap-type: x proximity; }
.playlist-tile { width: 260px; min-height: 76px; flex: 0 0 auto; display: grid; grid-template-columns: 42px 1fr auto; grid-template-rows: auto auto; align-content: center; align-items: center; gap: 3px 11px; padding: 12px; color: var(--prax-ivory); text-align: left; background: var(--prax-surface); border: 1px solid var(--prax-line); border-radius: 10px; cursor: pointer; scroll-snap-align: start; }
.playlist-symbol { grid-row: span 2; width: 38px; height: 29px; display: grid; place-items: center; color: var(--prax-brass-light); background: var(--prax-raised); border: 1px solid var(--prax-brass); border-radius: 5px; }
.playlist-tile strong, .category-tile strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.playlist-tile small, .category-tile small { color: var(--prax-muted); font-size: 11px; }
.collection-arrow { grid-column: 3; grid-row: 1 / 3; color: var(--prax-teal-light); font-size: 22px; }
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.category-tile { min-height: 94px; display: grid; justify-items: start; align-content: space-between; gap: 8px; min-width: 0; padding: 13px; color: var(--prax-ivory); text-align: left; background: var(--prax-raised); border: 1px solid color-mix(in srgb, var(--prax-teal) 28%, var(--prax-line)); border-radius: 9px; cursor: pointer; }
.category-symbol { color: var(--prax-teal-light); font-size: 17px; line-height: 1; }
.playlist-tile:focus-visible, .category-tile:focus-visible, .detail-back:focus-visible, .compact-video-row:focus-visible { outline: 2px solid var(--prax-teal-light); outline-offset: 2px; }
.collection-detail { padding-top: 8px; }
.detail-back { margin: 0 0 19px; padding: 6px 0; color: var(--prax-teal-light); background: none; border: 0; cursor: pointer; font-weight: 650; }
.detail-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 15px; }
.detail-heading h1 { margin: 0; overflow-wrap: anywhere; font: 600 clamp(24px, 4vw, 33px)/1.2 Georgia, serif; }
.detail-heading > span, .detail-contents-heading > span { color: var(--prax-muted); font-size: 12px; white-space: nowrap; }
.detail-preview .prax-video-card { width: clamp(190px, 24vw, 255px); flex: 0 0 auto; scroll-snap-align: start; }
.detail-contents-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 27px 0 11px; }
.detail-contents-heading h2 { margin: 0; }
.detail-contents { overflow: hidden; border: 1px solid var(--prax-line); border-radius: 9px; }
.compact-video-row { width: 100%; min-height: 62px; display: flex; align-items: center; gap: 11px; padding: 8px 11px; color: var(--prax-ivory); text-align: left; background: var(--prax-surface); border: 0; cursor: pointer; }
.compact-video-row + .compact-video-row { border-top: 1px solid var(--prax-line); }
.compact-video-row:hover { background: var(--prax-raised); }
.row-sequence { width: 22px; flex: 0 0 22px; color: var(--prax-brass-light); text-align: right; font-size: 12px; font-variant-numeric: tabular-nums; }
.row-art { width: 72px; height: 41px; flex: 0 0 72px; display: grid; place-items: center; color: var(--prax-brass-light); background: radial-gradient(circle at 65% 35%, rgba(103,169,163,.18), transparent 50%), var(--prax-raised); border: 1px solid var(--prax-line); border-radius: 5px; font-size: 15px; font-weight: 750; }
.row-art img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.row-copy { min-width: 0; display: grid; gap: 4px; }
.row-copy strong { font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }
.row-copy small { color: var(--prax-muted); font-size: 10px; }
.row-arrow { margin-left: auto; color: var(--prax-teal-light); font-size: 20px; }
.empty-library { max-width: 560px; display: flex; align-items: center; gap: 14px; padding: 17px; background: var(--prax-surface); border: 1px solid var(--prax-line); border-radius: 10px; }
.empty-library strong { font-size: 14px; }.empty-library p { margin: 4px 0 0; color: var(--prax-muted); font-size: 12px; }
.notice { padding: 10px 12px; margin: 12px 0; border-radius: 8px; font-size: 12px; line-height: 1.5; }
.notice.error { color: #ffb2aa; background: rgba(213,134,125,.10); border: 1px solid rgba(213,134,125,.24); }
.notice.boundary { color: var(--prax-brass-light); background: rgba(197,160,90,.09); border: 1px solid rgba(197,160,90,.25); }
.player-dialog { width: min(760px, calc(100% - 24px)); max-height: calc(100vh - 24px); padding: 0; color: var(--prax-ivory); background: var(--prax-bg); border: 1px solid var(--prax-line-strong); border-radius: 13px; box-shadow: 0 28px 90px rgba(0,0,0,.55); }
.consent-dialog { width: min(510px, calc(100% - 24px)); max-height: calc(100vh - 24px); padding: 22px; color: var(--prax-ivory); background: var(--prax-bg); border: 1px solid var(--prax-line-strong); border-radius: 12px; box-shadow: 0 28px 90px rgba(0,0,0,.55); line-height: 1.5; }
.consent-dialog::backdrop { background: rgba(0,0,0,.82); }
.consent-dialog h2 { margin: 0 0 10px; font: 600 22px/1.2 Georgia, serif; }
.consent-dialog p { font-size: 12px; color: var(--prax-secondary); }
.consent-dialog a { color: var(--prax-teal-light); }
.consent-dialog label { display: flex; align-items: flex-start; gap: 9px; margin: 15px 0; font-size: 12px; }
.consent-dialog input[type="checkbox"] { width: 16px; min-width: 16px; height: 16px; min-height: 16px; margin-top: 2px; padding: 0; accent-color: var(--prax-teal-light); }
.consent-dialog button { width: 100%; }
.player-dialog::backdrop { background: rgba(0,0,0,.76); }
.player-header { min-height: 52px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 9px 13px; border-bottom: 1px solid var(--prax-line); }
.player-header button { justify-self: start; color: var(--prax-secondary); background: transparent; border: 0; }.player-header strong { font: 650 12px Georgia, serif; letter-spacing: .11em; }.player-header > span { justify-self: end; color: var(--prax-teal-light); font-size: 10px; }
.player-stage { aspect-ratio: 16 / 9; display: grid; place-items: center; background: #000; }.player-stage iframe { width: 100%; height: 100%; border: 0; }.player-stage .child-mark { width: 52px; height: 52px; }
.player-copy { padding: 14px 16px 18px; background: var(--prax-surface); }.player-copy p { margin: 0 0 8px; color: var(--prax-muted); font-size: 10px; }.player-copy p span:first-child { color: var(--prax-brass-light); }.player-copy h2 { margin: 0; font-size: 19px; }
.playback-rates { margin-top: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }.playback-rates > strong { color: var(--prax-secondary); font-size: 11px; }.playback-rates > div { display: flex; gap: 6px; flex-wrap: wrap; }.playback-rates button { min-width: 46px; min-height: 34px; padding: 6px 9px; color: var(--prax-secondary); background: var(--prax-bg); border: 1px solid var(--prax-line-strong); border-radius: 7px; }.playback-rates button[aria-pressed="true"] { color: var(--prax-bg); background: var(--prax-teal-light); }.playback-rates small { width: 100%; color: var(--prax-muted); }
@media (max-width: 900px) {
  .library-heading { grid-template-columns: minmax(0, 1fr) auto; }
  .today-guide { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 600px) {
  .child-brand small { display: none; }.child-header { padding: 11px 16px; gap: 8px; }
  .child-brand { gap: 7px; min-width: 0; }.child-brand strong { font-size: 15px; letter-spacing: .08em; }
  .child-mark { width: 29px; height: 29px; flex: 0 0 29px; }.profile-menu { min-width: 0; }
  .today-head { gap: 3px 7px; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-preview .prax-video-card { width: calc((100vw - 40px) / 2.15); }
  .detail-heading { align-items: flex-start; flex-direction: column; gap: 7px; }
  .library-heading { align-items: flex-start; }.library-tools { flex-direction: column-reverse; align-items: flex-end; gap: 5px; }
  #profile-name { max-width: 88px; }.player-dialog { width: 100%; max-width: none; margin: auto 0 0; border-radius: 13px 13px 0 0; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
