@font-face{font-family:Onest;src:url(../design-final/assets/Onest.ttf)}@font-face{font-family:Jura;src:url(../design-final/assets/Jura.ttf)}:root{--bg:#141219;--panel:#1c1923;--surface:#221e2a;--line:#38313f;--text:#f1eaf6;--muted:#b5a9c2;--accent:#d1afe9;--blue:#9bb9ed;--pink:#dab1d1;--green:#a6d4c4;--radius:12px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:400 13px/1.5 Onest,sans-serif}button,input,select,textarea{font:inherit}button,a{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.45;cursor:default}a{color:inherit;text-decoration:none}svg{width:18px;height:18px;stroke-width:1.6;flex-shrink:0}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #b2c5ff;outline-offset:3px}.sidebar{overflow-y:auto;width:220px;position:fixed;inset:0 auto 0 0;background:#18141f;border-right:1px solid var(--line);display:flex;flex-direction:column;padding:28px 16px 18px;z-index:5}.brand{display:block;padding:0 14px 24px}.brand img{width:135px;height:38px;object-fit:contain;object-position:left}.brand span{display:block;font:500 8px Onest;letter-spacing:.18em;color:#ae99c1;margin-top:6px}.studio-switch{display:flex;align-items:center;gap:10px;padding:15px 12px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-bottom:22px}.studio-switch small,.admin-user small{display:block;font-size:10px;color:var(--muted);margin-top:3px}.studio-dot{width:7px;height:7px;border-radius:50%;background:#b393d4}.sidebar nav{display:grid;gap:4px}.nav-link{border:0;background:none;color:#bcaecb;padding:12px 13px;display:flex;align-items:center;gap:12px;border-radius:9px;text-align:left}.nav-link:hover{background:#251d30}.nav-link.active{background:#30223d;color:#ecd8fb;box-shadow:inset 2px 0 #d1a4f0}.nav-link .badge{margin-left:auto;font:500 10px Onest;background:#47314e;padding:1px 6px;border-radius:5px}.side-bottom{margin-top:auto;padding-top:22px}.side-bottom>a{display:flex;align-items:center;gap:7px;font-size:10px;color:#bba3cf;padding:12px}.side-bottom svg{width:13px;height:13px}.admin-user{border-top:1px solid var(--line);padding:18px 10px 0;display:flex;gap:10px;align-items:center}.avatar{width:34px;height:34px;display:grid;place-items:center;background:#45314f;border-radius:11px;font-size:11px;color:#e6caef}.workspace{margin-left:220px;min-width:0}.topbar{height:64px;border-bottom:1px solid var(--line);display:flex;gap:14px;align-items:center;padding:0 32px;color:var(--muted);font-size:11px}.topbar b{font-weight:400;color:#66596f;margin:0 12px}.prototype{margin-left:auto;font-size:10px;color:#a999b6}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border:1px solid var(--line);border-radius:8px;background:#241c2e;color:#d6c4e4;padding:0}.page-head{height:162px;padding:28px 32px;display:flex;align-items:center;justify-content:space-between;gap:24px;position:relative;isolation:isolate;border-bottom:1px solid var(--line);overflow:hidden}.page-head:before{content:'';position:absolute;inset:0;z-index:-1;background:url(../design-assets/backgrounds/ritm-schedule.png) right 15% / 510px auto no-repeat;opacity:.5;mask-image:linear-gradient(90deg,transparent 22%,black 100%)}.eyebrow{font:500 9px Onest;letter-spacing:.18em;color:#bca0d2}h1{font:650 36px/1.1 Jura;margin:8px 0 8px;letter-spacing:-.04em}h2{font:650 25px/1.2 Jura;margin:6px 0 14px}h3{font:600 18px/1.3 Jura;margin:0 0 8px}.page-head p{margin:0;color:var(--muted);font-size:12px}.primary,.secondary,.quiet,.danger{border-radius:8px;min-height:38px;padding:9px 14px;display:inline-flex;align-items:center;justify-content:center;gap:8px;line-height:1.3}.primary{color:#25172e;background:var(--accent);border:1px solid var(--accent);font-weight:500}.primary:hover{background:#e0c0f3}.secondary{color:#e1d0ed;background:#2b2333;border:1px solid #62516f}.secondary:hover{background:#392d43}.quiet{border:1px solid var(--line);color:var(--muted);background:transparent}.danger{background:#3e2936;color:#efc4d7;border:1px solid #825668}main{padding:24px 32px;min-height:calc(100vh - 273px)}footer{padding:14px 32px;border-top:1px solid var(--line);display:flex;justify-content:space-between;color:#8f819d;font-size:10px}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:18px}.toolbar-group{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.date-range{font:650 23px Jura;margin:0 9px 0 4px}.segmented{display:flex;gap:2px;background:#221b2a;border:1px solid var(--line);border-radius:8px;padding:3px}.segmented button{border:0;padding:6px 12px;color:var(--muted);background:none;border-radius:5px;font-size:11px}.segmented button.active{background:#46344f;color:#f1e5f9}input,select,textarea{border:1px solid #504258;border-radius:8px;background:#211a29;color:var(--text);padding:10px 12px;min-height:39px;color-scheme:dark}input::placeholder{color:#92839e}select{max-width:100%}.toolbar select{font-size:11px;min-height:34px;padding:7px 10px}.search{min-width:240px}.summary-line{display:flex;gap:20px;color:var(--muted);font-size:11px;margin:15px 0}.summary-line b{color:#e7d7f1;font-weight:500}.calendar-scroll{overflow:auto;border:1px solid var(--line);border-radius:12px}.calendar{display:grid;grid-template-columns:repeat(7,minmax(125px,1fr));min-width:910px;background:#18151e}.day-col{border-right:1px solid var(--line);min-height:410px}.day-col:last-child{border:0}.day-header{padding:13px 12px;background:#211a29;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:9px}.day-header strong{font:600 25px Jura}.day-header span{color:#afa1be;font-size:10px}.day-header.today{box-shadow:inset 0 2px #d3abeb;background:#2b2036}.day-header.today strong{color:#e8c8f8}.day-events{padding:10px 7px;display:grid;gap:9px}.event{width:100%;text-align:left;border:1px solid #45374e;border-left:2px solid var(--event-color,#b895d9);background:#241c2d;border-radius:8px;padding:11px 9px;color:var(--text)}.event:hover{background:#30233b;border-color:#b897d2}.event time{font:650 18px Jura;display:block;margin-bottom:6px}.event .event-name{font-size:11px;font-weight:500;line-height:1.4;display:block}.event small{display:block;color:#b8a8c6;font-size:9px;line-height:1.5;margin-top:6px}.event .event-bottom{margin-top:9px;display:flex;justify-content:space-between;align-items:center;font-size:9px;color:#ccbadc}.event.cancelled{opacity:.55;background:#1d1923}.event.cancelled .event-name{text-decoration:line-through}.event.closed{background:#1b2225}.fill-track{height:3px;display:block;background:#51405c;border-radius:3px;margin-top:8px}.fill-track i{display:block;height:100%;border-radius:3px;background:var(--event-color,#b895d9)}.empty-day{padding:15px 7px;color:#7f718e;font-size:10px;text-align:center}.legend{display:flex;gap:19px;flex-wrap:wrap;margin-top:16px;font-size:10px;color:#b6a5c3}.legend span{display:flex;gap:7px;align-items:center}.legend i{width:6px;height:6px;border-radius:50%;background:var(--event-color)}.panel{background:var(--panel);border:1px solid var(--line);border-radius:12px;overflow:hidden;margin-bottom:20px}.panel-heading{padding:19px 22px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px}.panel-heading h2{font-size:23px;margin:0}.panel-heading small{color:var(--muted)}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}th{font:500 10px Onest;letter-spacing:.02em;color:#a89ab6;padding:12px 18px;background:#211b29;border-bottom:1px solid var(--line)}td{padding:15px 18px;border-bottom:1px solid #302735;font-size:12px}tr:last-child td{border-bottom:0}tbody tr:hover{background:#241c2d}td small{display:block;color:var(--muted);font-size:10px;margin-top:3px}td .quiet{min-height:30px;font-size:10px;padding:5px 9px}.pill{font-size:10px;padding:4px 8px;background:#382b43;color:#e1c5f2;border-radius:5px;display:inline-block}.pill.ok{color:#baded3;background:#253730}.pill.dim{color:#bdb0c7;background:#302a35}.pill.warn{color:#eac4d6;background:#3d2934}.table-person{display:flex;gap:10px;align-items:center}.table-person .avatar{width:32px;height:32px}.muted{color:var(--muted)}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:22px}.stat{padding:18px 20px;background:#1e1826;border:1px solid var(--line);border-radius:10px}.stat>span{display:block;font-size:11px;color:var(--muted)}.stat strong{display:block;font:650 32px Jura;margin:8px 0 4px}.stat small{font-size:10px;color:#ab98b9}.notice-strip{padding:13px 17px;background:#302135;border:1px solid #65416a;border-radius:9px;margin-bottom:20px;color:#d8badc;font-size:12px;display:flex;align-items:center;gap:12px}.notice-strip .quiet{margin-left:auto}.person-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.teacher{padding:22px;background:var(--panel);border:1px solid var(--line);border-radius:12px}.teacher-top{display:flex;gap:13px;align-items:center;margin-bottom:18px}.teacher .avatar{width:46px;height:46px;font:600 20px Jura}.teacher h3{font-size:21px;margin:0}.teacher small{color:var(--muted);font-size:11px}.teacher p{font-size:12px;color:#b8a6c6;min-height:36px}.teacher .secondary{width:100%;margin-top:12px}.drawer-top{display:flex;justify-content:space-between;align-items:start;margin:0 0 24px;gap:15px}.drawer-top h2{margin:7px 0 0}dialog{color:var(--text);background:#1c1624;border:1px solid #5b426e;padding:27px 28px;box-shadow:-20px 0 90px #0007}#drawer{position:fixed;inset:0 0 0 auto;margin:0;width:480px;max-width:100vw;height:100vh;max-height:100vh;border-radius:18px 0 0 18px;overflow-y:auto}dialog::backdrop{background:#09070ea6;backdrop-filter:blur(3px)}.field{display:block;margin:17px 0;color:#d5c4e2;font-size:12px}.field input,.field select,.field textarea{display:block;width:100%;margin-top:7px}.field textarea{min-height:85px;resize:vertical}.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.two-fields .field{margin:10px 0}.form-actions{display:flex;gap:9px;margin:24px 0 10px;flex-wrap:wrap}.form-actions .primary{flex:1}.helper{font-size:11px;line-height:1.7;color:#b7a2c7;margin:12px 0}.drawer-facts{margin:18px 0}dl>div{display:flex;gap:15px;justify-content:space-between;padding:12px 0;border-bottom:1px solid var(--line)}dt{color:var(--muted);font-size:12px}dd{margin:0;text-align:right;font-size:12px}.drawer-label{display:flex;justify-content:space-between;align-items:center}.drawer-label h3{margin:0}.roster{margin:14px 0;padding:0;list-style:none}.roster li{display:flex;justify-content:space-between;align-items:center;padding:11px 0;border-bottom:1px solid var(--line);gap:12px;font-size:12px}.roster small{display:block;color:var(--muted);font-size:10px}.form-error{color:#efb8cd;font-size:12px;line-height:1.6}.impact{padding:15px;background:#30223b;border:1px solid #654776;border-radius:10px;margin:17px 0}.impact strong{display:block;font:600 20px Jura;margin-bottom:8px}.impact p{font-size:12px;color:#d1bddd;margin:0;line-height:1.7}.toast{position:fixed;bottom:26px;left:calc(50% + 70px);transform:translateX(-50%);background:#d8c0ec;color:#24142d;padding:13px 20px;border-radius:10px;box-shadow:0 8px 35px #0005;z-index:20;font-size:12px;max-width:500px}.empty{padding:45px;text-align:center;color:var(--muted)}.empty h3{color:var(--text)}.check{display:flex;gap:10px;align-items:start;margin:16px 0;font-size:12px}.check input{min-height:unset;margin-top:3px;accent-color:#c394e2}.metric-bar{height:6px;background:#3b2b46;border-radius:5px;margin-top:9px;overflow:hidden}.metric-bar span{display:block;height:100%;background:#ad88c6}.activity{margin:0;padding:0;list-style:none}.activity li{padding:17px 22px;border-bottom:1px solid var(--line)}.activity time{font-size:10px;color:#bba4cd}.activity p{margin:5px 0;color:#ddd0e7;font-size:12px}.activity small{color:#a895b7;font-size:10px}.rules-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}.rule-card{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:23px}.rule-card h2{font-size:24px}.rule-card .field{margin:12px 0}.section-tabs{display:flex;gap:8px;margin-bottom:20px}.section-tabs button{font-size:12px}.section-tabs button.active{background:#493253;color:#f5dffa}.week-summary{font:500 13px Onest;margin-top:20px;color:#b7a5c5}input[type=search]{width:260px}.table-link{border:0;background:transparent;color:#dcb5f2;padding:5px;display:inline-flex;align-items:center;gap:6px}.period-note{color:#ad9abd;font-size:11px;margin-bottom:20px}@media(min-width:1600px){main{max-width:1600px}.calendar{grid-template-columns:repeat(7,minmax(160px,1fr))}.day-col{min-height:530px}.event{padding:14px}.event .event-name{font-size:12px}.event small{font-size:10px}}@media(max-width:1100px){.sidebar{width:184px;padding:22px 10px}.workspace{margin-left:184px}.topbar,main,footer{padding-left:20px;padding-right:20px}.page-head{padding:24px 20px}.person-grid{grid-template-columns:repeat(2,1fr)}.prototype{max-width:170px;font-size:9px}.stats{grid-template-columns:repeat(2,1fr)}}@media(max-width:760px){.sidebar{position:static;width:100%;padding:14px}.brand{padding:0 5px}.brand img{width:105px}.brand span,.studio-switch,.side-bottom{display:none}.sidebar nav{display:flex;overflow:auto;margin-top:12px;gap:5px}.nav-link{white-space:nowrap;padding:10px}.nav-link svg{display:none}.workspace{margin-left:0}.topbar{height:45px}.topbar>span:first-child{display:none}.prototype{margin:0;max-width:none}.page-head{height:145px;gap:10px}.page-head h1{font-size:29px}.page-head .primary{font-size:11px;padding:9px}.stats,.person-grid,.rules-grid{grid-template-columns:1fr}.date-range{font-size:19px}.toolbar{align-items:start}.search{min-width:0}footer{display:block}.toast{left:50%;width:85%}.calendar{min-width:910px}#drawer{width:100%;border-radius:0}.two-fields{gap:9px}.summary-line{gap:12px;flex-wrap:wrap}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

/* The exact application artwork, with its upper ribbon visible at full opacity. */
.page-head{background:#100d19;color:#f1eaf6;height:180px}
.page-head:before{background-position:right top;background-size:600px auto;opacity:1;mask-image:linear-gradient(90deg,transparent 28%,#000 66%)}
.page-head p{color:#d3c7e1}.page-head .eyebrow{color:#cbb1e0}
.page-head .primary{background:#e5c6f6;border-color:#e5c6f6;color:#25172e;box-shadow:0 3px 20px #100d1970}
.theme-toggle{white-space:nowrap;min-height:34px;font-size:11px;padding:6px 10px;gap:7px}
:root[data-theme=dark]{color-scheme:dark}
:root[data-theme=light]{color-scheme:light;--bg:#f6f3f9;--panel:#fff;--surface:#f0eaf5;--line:#ddd4e5;--text:#292033;--muted:#6a5b77;--accent:#704099;--blue:#375991;--pink:#985478;--green:#286451}
[data-theme=light] .sidebar{background:#fff}
[data-theme=light] .brand img{filter:brightness(0) saturate(100%)}
[data-theme=light] .brand span,[data-theme=light] .eyebrow{color:#76558d}
[data-theme=light] .nav-link{color:#665474}
[data-theme=light] .nav-link:hover,[data-theme=light] tbody tr:hover{background:#f4eef8}
[data-theme=light] .nav-link.active{background:#eee1f7;color:#603581;box-shadow:inset 2px 0 #8556a9}
[data-theme=light] .nav-link .badge,[data-theme=light] .avatar{background:#ecdef5;color:#663f82}
[data-theme=light] .side-bottom>a,[data-theme=light] .prototype{color:#766383}
[data-theme=light] .icon-button{background:#f2ebf7;color:#63427d}
[data-theme=light] .primary{background:#704099;border-color:#704099;color:#fff}
[data-theme=light] .primary:hover{background:#603486}
[data-theme=light] .page-head .primary{background:#e5c6f6;border-color:#e5c6f6;color:#25172e}
[data-theme=light] .page-head .eyebrow{color:#cbb1e0}
[data-theme=light] .secondary{color:#663d83;background:#f4edf8;border-color:#c5acd7}
[data-theme=light] .secondary:hover{background:#e9dbf3}
[data-theme=light] .danger{background:#faeaf0;color:#8d385b;border-color:#d8a4b8}
[data-theme=light] .segmented{background:#ebe4f1}
[data-theme=light] .segmented button.active{background:white;color:#623d80;box-shadow:0 1px 4px #4631511a}
[data-theme=light] input,[data-theme=light] select,[data-theme=light] textarea{background:#fff;border-color:#c9bdd3;color:#292033;color-scheme:light}
[data-theme=light] input::placeholder{color:#807088}
[data-theme=light] .summary-line b{color:#45304f}
[data-theme=light] .calendar{background:#fff}
[data-theme=light] .day-header{background:#f3edf7}
[data-theme=light] .day-header span{color:#746280}
[data-theme=light] .day-header.today{background:#eadcf4;box-shadow:inset 0 2px #9667b6}
[data-theme=light] .day-header.today strong{color:#663b86}
[data-theme=light] .event{background:#f7f2fb;border-color:#dfd0ea;border-left-color:var(--event-color)}
[data-theme=light] .event:hover{background:#efe3f7;border-color:#a581bf}
[data-theme=light] .event small,[data-theme=light] .event .event-bottom{color:#705d7e}
[data-theme=light] .event.cancelled{background:#f2eff5;opacity:.7}
[data-theme=light] .event.closed{background:#edf5f1}
[data-theme=light] .fill-track{background:#e2d6eb}
[data-theme=light] .empty-day,[data-theme=light] .legend{color:#756280}
[data-theme=light] th{background:#f3edf7;color:#71607e}
[data-theme=light] td{border-color:#e8e0ee}
[data-theme=light] .pill{background:#efe2f7;color:#71448f}
[data-theme=light] .pill.ok{background:#e4f1eb;color:#32634f}
[data-theme=light] .pill.dim{background:#eeebf1;color:#75677e}
[data-theme=light] .pill.warn{background:#faeaf0;color:#914567}
[data-theme=light] .stat{background:#fff}
[data-theme=light] .stat small,[data-theme=light] .teacher p,[data-theme=light] .helper,[data-theme=light] .week-summary,[data-theme=light] .period-note{color:#756180}
[data-theme=light] .notice-strip{background:#f1e7f6;border-color:#d6bee2;color:#72458a}
[data-theme=light] dialog{background:#fff;border-color:#d4c0e2;box-shadow:-20px 0 90px #28143924}
[data-theme=light] dialog::backdrop{background:#2c183e50}
[data-theme=light] .field{color:#5e426f}
[data-theme=light] .form-error{color:#a1375e}
[data-theme=light] .impact{background:#f4ecf9;border-color:#d3b9e4}
[data-theme=light] .impact p{color:#735884}
[data-theme=light] .metric-bar{background:#eadff1}
[data-theme=light] .activity time,[data-theme=light] .activity small{color:#7a6289}
[data-theme=light] .activity p{color:#50395e}
[data-theme=light] .section-tabs button.active{background:#eee0f6;color:#693c88}
[data-theme=light] .table-link{color:#744895}
[data-theme=light] footer{color:#796887}
@media(max-width:760px){.theme-toggle{margin-left:auto}.theme-toggle span{display:none}.page-head:before{background-size:440px auto;mask-image:linear-gradient(90deg,transparent,#000)}.page-head{height:165px}}

/* Interaction polish: no layout shift; keyboard and reduced motion included. */
.event{position:relative;transition:background-color .18s,border-color .18s,box-shadow .18s,transform .18s}
.event .event-name{font-size:12px;overflow-wrap:anywhere}
.event small,.event .event-bottom{font-size:11px}.event time{font-size:20px}
.day-events{gap:12px}.day-header{gap:6px;padding:13px 9px}.day-header span{font-size:10px}
.toolbar select,.segmented button,.legend,.summary-line{font-size:12px}
th,td small,.helper,.roster small,.teacher small,.field{font-size:12px}td{font-size:13px}
button,a,input,select,textarea{transition:background-color .16s,border-color .16s,box-shadow .16s}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #aebeff;outline-offset:3px}
[data-theme=light] button:focus-visible,[data-theme=light] a:focus-visible,[data-theme=light] input:focus-visible,[data-theme=light] select:focus-visible,[data-theme=light] textarea:focus-visible{outline-color:#744399}
.event:focus-visible{background:#30233b;box-shadow:0 3px 18px #af7cdf26}
[data-theme=light] .event:focus-visible{background:#efe3f7;box-shadow:0 3px 18px #71458f20}
.event.cancelled{opacity:1;color:var(--muted)}
.event.cancelled small,.event.cancelled .event-bottom{color:var(--muted)}
[data-theme=light] .event.cancelled{opacity:1}
@media(hover:hover){
.event:hover{transform:translateY(-2px);border-color:#b996d5;box-shadow:0 5px 18px #af7cdf26}
[data-theme=light] .event:hover{border-color:#aa7fc5;box-shadow:0 5px 18px #71458f20}
.nav-link:hover{box-shadow:inset 2px 0 #9072ad}
.quiet:hover,.icon-button:hover{background:#34273f;color:#f2e6fa;border-color:#8b6a9f}
[data-theme=light] .quiet:hover,[data-theme=light] .icon-button:hover{background:#eee1f7;color:#603581;border-color:#b796cd}
.teacher:hover{border-color:#8d6ba4}.table-link:hover{text-decoration:underline}
}
button:active:not(:disabled){filter:brightness(.94)}
@media(prefers-reduced-motion:reduce){button,a,input,select,textarea,.event{transition:none!important}.event:hover{transform:none}}

/* Pearl / blue direction. Original logo remains a separate sharp SVG. */
.brand{position:relative;isolation:isolate;overflow:hidden;margin:-28px -16px 0;padding:28px 30px 24px;min-height:112px}
.brand:before{content:'';position:absolute;inset:0;z-index:-1;background:url(../design-assets/backgrounds/ritm-schedule.png) right top / 240px auto no-repeat;opacity:.9}
.brand img,.brand span{position:relative;z-index:1}
.brand span{text-shadow:0 1px 8px #100d19}
:root[data-theme=light]{--bg:#f5f8fa;--panel:#fff;--surface:#ecf2f7;--line:#d8e1e8;--text:#263541;--muted:#596b7b;--accent:#315c79}
[data-theme=light] body{background:linear-gradient(125deg,#f8fafb 5%,#f0f7fa 60%,#faf4f5 100%);background-attachment:fixed}
[data-theme=light] .brand:before{background-image:url(../design-assets/backgrounds/ritm-wave-light.png);background-size:auto 125px;background-position:58% center;opacity:1}
[data-theme=light] .brand span{color:#587183;text-shadow:none}
[data-theme=light] .page-head{background:#f8fafb;color:#263541;border-color:#d8e1e8}
[data-theme=light] .page-head:before{background:url(../design-assets/backgrounds/ritm-wave-light.png) right center / auto 310px no-repeat;mask-image:linear-gradient(90deg,transparent 20%,#000 65%);opacity:1}
[data-theme=light] .page-head p{color:#596b7b}
[data-theme=light] .page-head .eyebrow,[data-theme=light] .eyebrow{color:#52758c}
[data-theme=light] .primary,[data-theme=light] .page-head .primary{color:#fff;border-color:#355d79;background:linear-gradient(115deg,#264e6c,#406e8b,#4c647c);box-shadow:0 3px 12px #274a6814}
[data-theme=light] .primary:hover{background:linear-gradient(115deg,#1e425d,#315e7c,#495c76)}
[data-theme=light] .nav-link{color:#586b7a}
[data-theme=light] .nav-link.active{color:#294f69;background:linear-gradient(110deg,#e1eef5,#e9f0f5 65%,#f4eaef);box-shadow:inset 2px 0 #6595b4}
[data-theme=light] .nav-link:hover,[data-theme=light] tbody tr:hover{background:#eef4f7}
[data-theme=light] .secondary,[data-theme=light] .icon-button{background:#edf4f8;color:#355a72;border-color:#c8d9e5}
[data-theme=light] .secondary:hover,[data-theme=light] .quiet:hover,[data-theme=light] .icon-button:hover{background:#e4eff5;border-color:#9dbbd0;color:#294f69}
[data-theme=light] .segmented{background:#e8eff3}
[data-theme=light] .segmented button.active{color:#365d75}
[data-theme=light] .calendar{background:#fff}
[data-theme=light] .day-header,[data-theme=light] th{background:#edf3f6}
[data-theme=light] .day-header span,[data-theme=light] th{color:#5e7282}
[data-theme=light] .day-header.today{background:linear-gradient(120deg,#deedf5,#f3edf1);box-shadow:inset 0 2px #719db8}
[data-theme=light] .day-header.today strong{color:#365d75}
[data-theme=light] .event{background:linear-gradient(125deg,#f6fafc,#eef5f9);border-color:#d7e3eb;border-left-color:var(--event-color)}
[data-theme=light] .event:hover,[data-theme=light] .event:focus-visible{background:linear-gradient(120deg,#e6f3fa,#f5edf2);border-color:#8eafc7;box-shadow:0 5px 18px #3e759326}
[data-theme=light] .event small,[data-theme=light] .event .event-bottom,[data-theme=light] .legend{color:#5c7282}
[data-theme=light] .fill-track{background:#dce6ec}
[data-theme=light] .avatar,[data-theme=light] .pill{background:linear-gradient(120deg,#e1eef5,#eee9f0);color:#41617a}
[data-theme=light] .pill.ok{background:#e4f1eb;color:#32634f}
[data-theme=light] .pill.warn{background:#faeaf0;color:#914567}
[data-theme=light] input,[data-theme=light] select,[data-theme=light] textarea{border-color:#c5d3dd;color:#263541}
[data-theme=light] .field,[data-theme=light] .helper,[data-theme=light] .teacher p,[data-theme=light] .period-note,[data-theme=light] .week-summary{color:#5c7180}
[data-theme=light] .impact,[data-theme=light] .notice-strip{background:#edf5f9;border-color:#bfd4e1;color:#365d75}
[data-theme=light] .impact p,[data-theme=light] .table-link,[data-theme=light] .activity p{color:#42677d}
[data-theme=light] .section-tabs button.active{background:#e3eff6;color:#365d75}
[data-theme=light] button:focus-visible,[data-theme=light] a:focus-visible,[data-theme=light] input:focus-visible,[data-theme=light] select:focus-visible,[data-theme=light] textarea:focus-visible{outline-color:#3b769f}
@media(max-width:1100px){.brand{margin:-22px -10px 0;padding:22px 24px 24px}}
@media(max-width:760px){.brand{margin:-14px -14px 0;padding:20px 19px;min-height:80px}.brand:before{background-position:right top;background-size:220px auto}[data-theme=light] .brand:before{background-size:auto 100px;background-position:right center}}
.brand:before{background-position:right 28px;background-color:#100d19}
[data-theme=light] .brand:before{background-position:58% 24px;background-color:#f8fafb}

/* Shared finish: readable actions, restrained color accents, account entry. */
td .quiet{font-size:12px;min-height:36px;padding:7px 12px}.pill{font-size:11px;padding:5px 9px}
.teacher{position:relative;overflow:hidden;transition:border-color .18s,box-shadow .18s}.teacher:before,.stat:before{content:'';position:absolute;inset:0 0 auto;height:3px;background:linear-gradient(90deg,#82b5d8,#bed6e5 60%,#e5c5d6)}
.stat{position:relative;overflow:hidden}.stat strong{font-variant-numeric:tabular-nums}.teacher .summary-line{align-items:baseline;flex-wrap:wrap;gap:8px}.teacher .summary-line b{font-size:17px;font-family:Jura}
.admin-user{width:100%;background:transparent;border:0;border-top:1px solid var(--line);border-radius:10px;color:var(--text);font:inherit;text-align:left;padding:16px 10px;cursor:pointer;min-height:70px}.admin-user>span:nth-child(2){flex:1}.admin-user>svg{width:15px;height:15px;color:var(--muted)}
.admin-user.active{background:var(--surface)}
.profile-layout{display:grid;grid-template-columns:minmax(240px,310px) minmax(0,1fr);gap:24px;max-width:1060px;margin:0 auto}
.profile-summary{align-self:start}.profile-ribbon{height:92px;background:#100d19 url(../design-assets/backgrounds/ritm-schedule.png) center top / 360px auto no-repeat}
.profile-summary-body{padding:0 24px 22px}.profile-summary .avatar{width:64px;height:64px;font:600 28px Jura;margin-top:-24px;border:4px solid var(--panel);position:relative;border-radius:20px}.profile-summary h2{margin-top:18px}.profile-summary .muted{font-size:12px;line-height:1.9;margin:20px 0}.profile-summary dd{font-size:11px;line-height:1.7}
.profile-section-title{display:flex;align-items:center;gap:12px;margin-bottom:18px}.profile-section-title h2{margin:0}.profile-section-title>svg{color:var(--blue);width:22px;height:22px}
.profile-appearance{margin-top:20px}.theme-choices{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:20px}.theme-choice{padding:12px;background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:12px;text-align:left;position:relative}.theme-choice>span:last-of-type{display:block;margin-top:12px;font-size:12px}.theme-swatch{display:block;height:64px;border-radius:7px;background:#f1f6f9;border:1px solid #dbe5ec;position:relative;overflow:hidden}.theme-swatch:before{content:'';position:absolute;inset:0 0 35px;background:url(../design-assets/backgrounds/ritm-wave-light.png) center / cover}.theme-swatch i,.theme-swatch b{position:absolute;top:38px;height:16px;width:34%;border-radius:3px;background:#dbe9f1;left:10px}.theme-swatch b{left:calc(34% + 18px)}.dark .theme-swatch{background:#15111f;border-color:#50415d}.dark .theme-swatch:before{background-image:url(../design-assets/backgrounds/ritm-schedule.png);background-position:center top}.dark .theme-swatch i,.dark .theme-swatch b{background:#3a2c48}.theme-choice .selected-check{display:none;position:absolute;right:11px;bottom:12px;width:16px;height:16px}.theme-choice[aria-pressed=true]{border-color:#81a9c5;box-shadow:0 0 0 1px #81a9c5}.theme-choice[aria-pressed=true] .selected-check{display:block}
[data-theme=light] .profile-ribbon{background:#f8fafb url(../design-assets/backgrounds/ritm-wave-light.png) center / cover}
[data-theme=light] .metric-bar{background:#e3edf3}[data-theme=light] .metric-bar span{background:linear-gradient(90deg,#709fbc,#a6c6d8,#d2b3c6)}
[data-theme=light] dialog{border-color:#c9d9e3}[data-theme=light] .activity time,[data-theme=light] .activity small,[data-theme=light] .stat small,[data-theme=light] .empty-day,[data-theme=light] footer,[data-theme=light] .side-bottom>a,[data-theme=light] .prototype{color:#647a89}
[data-theme=light] .toast{background:#e5f0f6;color:#294d65;border:1px solid #b9cfde;box-shadow:0 8px 30px #294d6520}
[data-theme=light] .event.cancelled{background:#f2f4f6}
@media(hover:hover){.teacher:hover{border-color:#83a8c0;box-shadow:0 7px 24px #47739112}.admin-user:hover{background:var(--surface)}.theme-choice:hover{border-color:#81a9c5}}
@media(max-width:1000px){.profile-layout{grid-template-columns:1fr}.profile-summary-body dl{max-width:420px}.profile-summary .muted{margin:12px 0}}
@media(max-width:760px){.side-bottom{display:block;margin:8px 0 0;padding:0}.side-bottom>a{display:none}.admin-user{min-height:48px;padding:8px;border-top:0}.admin-user .avatar{width:28px;height:28px}.admin-user small{display:none}.theme-choices{gap:8px}}
@media(prefers-reduced-motion:reduce){.teacher{transition:none}}

/* Two distinct gestures: a low brand arc and a descending header wave. */
.brand:before{background:#100d19 url(../design-assets/backgrounds/ritm-brand-dark.png) center bottom / cover no-repeat;opacity:1}
[data-theme=light] .brand:before{background:#f8fafb url(../design-assets/backgrounds/ritm-brand-light.png) center bottom / cover no-repeat}
.brand{padding-top:18px;padding-bottom:38px}.brand span{margin-top:3px}
.profile-summary-body{padding-top:26px}.profile-summary .avatar{margin-top:0}
@media(max-width:760px){.brand{padding-top:14px;padding-bottom:24px}}
