/* styles.css */
:root{color-scheme:dark;font-family:Inter,"Segoe UI Variable Text","Segoe UI",system-ui,sans-serif;background:#0c102a;color:#f5f4ff;--bg:#0c102a;--panel:#171c3b;--panel2:#1e2448;--line:rgba(194,196,255,.13);--muted:#a8aed1;--violet:#aca0ff;--violet2:#8070ef;--green:#8df1c9;--shadow:0 24px 65px rgba(3,5,26,.28)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-width:320px;background:radial-gradient(circle at 67% -3%,rgba(89,79,191,.17),transparent 39rem),var(--bg);line-height:1.5}button,input,select{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}button:disabled{opacity:.6;cursor:wait}input,select{color:#f5f4ff;background:#101633;border:1px solid #353d69;border-radius:12px;padding:13px 15px;outline:none}input:focus,select:focus,button:focus-visible,a:focus-visible{outline:2px solid #9f93ff;outline-offset:2px}input::placeholder{color:#8189ae}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:absolute;left:10px;top:-60px;z-index:100;background:#fff;color:#111;padding:10px}.skip-link:focus{top:10px}.wrap{width:min(1220px,calc(100% - 48px));margin:auto}.ambient{position:absolute;z-index:-1;pointer-events:none;border-radius:50%;filter:blur(64px)}.ambient-one{height:440px;width:440px;top:170px;right:5%;background:rgba(89,81,207,.13)}.ambient-two{height:400px;width:400px;top:1050px;left:-200px;background:rgba(55,134,181,.07)}
.topbar{height:82px;display:flex;align-items:center;justify-content:space-between;gap:32px;padding:0 max(24px,calc((100vw - 1220px)/2));border-bottom:1px solid var(--line);background:rgba(12,16,42,.85);backdrop-filter:blur(18px);position:sticky;top:0;z-index:40}.brand{display:inline-flex;align-items:center;gap:12px;font-weight:850;font-size:1.34rem;letter-spacing:-.04em;white-space:nowrap}.brand small{display:block;font-size:.62rem;line-height:1.05;letter-spacing:.11em;text-transform:uppercase;color:var(--muted);font-weight:700}.brand-mark{display:grid;place-items:center;height:40px;width:40px;border-radius:13px;background:linear-gradient(135deg,#8071e7,#b196f4);color:#fff;box-shadow:0 9px 22px rgba(125,106,235,.29);font-size:26px}.top-nav,.top-actions{display:flex;align-items:center;gap:28px}.top-nav a{color:#bdc1df;font-size:.92rem;font-weight:600}.top-nav a:hover{color:#fff}.top-actions{gap:12px}.language-select{min-height:43px;padding:8px 13px;background:#181d3b;border-color:var(--line)}.button{display:inline-flex;align-items:center;justify-content:center;gap:11px;min-height:46px;padding:11px 20px;border-radius:12px;border:1px solid transparent;font-weight:750;transition:transform .2s ease,background .2s ease,border-color .2s ease}.button:hover{transform:translateY(-2px)}.button-primary{background:linear-gradient(135deg,#b6a7ff,#8574f1);color:#15143a;box-shadow:0 11px 28px rgba(107,88,222,.24)}.button-primary:hover{background:linear-gradient(135deg,#cabdff,#9584fa)}.button-ghost{background:rgba(157,142,255,.12);border-color:rgba(180,164,255,.24);color:#e3dcff}.button-outline{background:rgba(255,255,255,.025);border-color:#42496d;color:#eeeaff}.full{width:100%}
.hero{min-height:690px;display:grid;grid-template-columns:1.1fr .9fr;align-items:center;gap:20px;padding:76px 0 82px}.eyebrow,.kicker{display:inline-flex;align-items:center;gap:9px;color:#afa3ff;letter-spacing:.12em;text-transform:uppercase;font-size:.76rem;font-weight:850}.live-dot{width:8px;height:8px;border-radius:50%;background:#9aebc2;box-shadow:0 0 14px #9aebc2}.hero h1{font-size:clamp(3.1rem,5.7vw,5.5rem);line-height:1.04;letter-spacing:-.07em;margin:27px 0 23px;max-width:710px}.hero-copy>p{font-size:1.15rem;line-height:1.75;color:var(--muted);max-width:620px;margin:0}.hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:32px}.hero-stats{display:flex;gap:38px;margin-top:66px}.hero-stats div{display:flex;flex-direction:column}.hero-stats strong{font-size:1.48rem;letter-spacing:-.05em;color:#fff}.hero-stats span{font-size:.8rem;color:var(--muted)}.hero-visual{height:500px;position:relative;display:grid;place-items:center}.orbit{position:absolute;border:1px dashed rgba(169,157,255,.19);border-radius:50%}.orbit-a{width:370px;height:370px}.orbit-b{width:485px;height:485px}.visual-center{height:225px;width:225px;display:flex;align-items:center;justify-content:center;flex-direction:column;border-radius:34px;background:linear-gradient(145deg,#262c5c,#171b3f);border:1px solid #6a63bc;box-shadow:0 32px 100px rgba(80,71,185,.25),inset 0 0 60px rgba(153,135,255,.13);transform:rotate(-8deg)}.visual-center>span{font-size:4.2rem;color:#c1b3ff;line-height:1}.visual-center strong{font-size:1.6rem;letter-spacing:-.05em}.visual-center small{color:#b5b4d7}.floating-card{position:absolute;display:flex;align-items:center;gap:12px;padding:12px 17px;background:rgba(29,34,70,.93);border:1px solid rgba(192,187,255,.26);border-radius:15px;box-shadow:var(--shadow);white-space:nowrap}.floating-card>span{font-size:1.4rem}.floating-card b,.floating-card small{display:block}.floating-card b{font-size:.89rem}.floating-card small{font-size:.71rem;color:var(--muted)}.card-book{top:48px;left:8px;transform:rotate(-5deg)}.card-progress{top:102px;right:-15px;transform:rotate(6deg)}.card-progress>span{color:var(--green);font-size:1.8rem}.card-star{bottom:65px;right:13px;transform:rotate(-3deg)}.card-star>span{color:#ffd67d;font-size:1.9rem}
.section{padding-top:96px;padding-bottom:96px}.section-heading{max-width:680px;margin-bottom:36px}.section h2{font-size:clamp(2.25rem,3.8vw,3.6rem);line-height:1.1;letter-spacing:-.055em;margin:16px 0}.section p{color:var(--muted)}.section-heading p{font-size:1.04rem}.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.feature-card{min-height:190px;padding:24px;display:grid;grid-template-columns:96px minmax(0,1fr);align-items:center;gap:20px;border:1px solid var(--line);border-radius:21px;background:linear-gradient(145deg,rgba(33,39,77,.88),rgba(23,28,59,.85));transition:transform .2s ease,border-color .2s ease}.feature-card:hover{transform:translateY(-5px);border-color:rgba(176,159,255,.43)}.feature-icon{height:96px;width:96px;display:grid;place-items:center;border-radius:24px;font-size:3rem;background:var(--icon-bg)}.feature-copy{min-width:0}.feature-card h3{font-size:1.12rem;line-height:1.3;margin:0 0 9px}.feature-card p{line-height:1.62;font-size:.9rem;margin:0}.accent-violet{--icon-bg:rgba(160,138,255,.18)}.accent-blue{--icon-bg:rgba(114,191,255,.17)}.accent-orange{--icon-bg:rgba(255,183,104,.17)}.accent-green{--icon-bg:rgba(134,237,182,.16)}.accent-pink{--icon-bg:rgba(253,146,188,.15)}.accent-cyan{--icon-bg:rgba(130,229,239,.14)}
.demo-section{background:linear-gradient(115deg,#171d43,#1b1d49 52%,#12193b);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.demo-layout{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:80px}.demo-layout>div:first-child>p{font-size:1.07rem;line-height:1.7}.demo-badges{display:grid;gap:13px;margin-top:34px;color:#dcd8fb;font-size:.92rem}.demo-badges span:first-letter{color:var(--violet)}.demo-card{background:#252a57;padding:29px;border:1px solid #4b518a;border-radius:22px;box-shadow:var(--shadow)}.demo-card-top{display:flex;justify-content:space-between;color:#c5c0f2;font-size:.78rem;font-weight:750;letter-spacing:.02em}.demo-question{font-size:1.43rem;font-weight:750;line-height:1.35;margin:26px 0}.demo-choices{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.demo-choice{padding:14px 12px;background:#1a2047;color:#eeeaff;border:1px solid #464b7d;border-radius:12px;min-height:55px;text-align:left}.demo-choice:hover{background:#303665}.demo-choice.correct{border-color:#8ce6b9;background:#1f514e}.demo-choice.wrong{border-color:#f29baa;background:#69384f}.demo-feedback{min-height:25px;margin:18px 0 12px!important}.login-section{display:grid;grid-template-columns:1fr minmax(320px,440px);gap:90px;align-items:center}.login-intro>p{font-size:1.08rem;line-height:1.7}.login-note{display:flex;align-items:center;gap:12px;margin-top:32px;padding:16px 20px;border:1px solid var(--line);border-radius:13px;color:#c7cae6;background:#171c3a;font-size:.9rem}.login-card{background:#1c2146;border:1px solid #3b416c;border-radius:24px;padding:31px;box-shadow:var(--shadow);display:grid;gap:10px}.login-card h3{font-size:1.45rem;margin:0 0 10px}.login-card label{font-size:.85rem;color:#d6d5ee;font-weight:650;margin-top:8px}.login-card .button{margin-top:13px}.form-message{min-height:22px;font-size:.84rem;color:#ffc7d0;margin:0!important}.footer{border-top:1px solid var(--line);padding:28px 0;color:#8e95b8;font-size:.83rem}.footer-inner{display:flex;justify-content:space-between;gap:20px}.footer-inner span:first-child{color:#cbc3ff;font-weight:800}
.workspace{display:grid;grid-template-columns:270px minmax(0,1fr);min-height:calc(100vh - 82px)}.workspace-sidebar{display:flex;flex-direction:column;gap:25px;background:#141935;border-right:1px solid var(--line);padding:27px 18px;min-height:calc(100vh - 82px)}.workspace-sidebar .brand{padding-left:7px}.sidebar-group{display:grid;gap:10px}.sidebar-label{color:#838bae;font-size:.68rem;letter-spacing:.14em;font-weight:850;padding-left:10px}.school-select{width:100%;font-size:.86rem;padding:12px}.module-nav{display:grid;align-content:start;gap:5px;overflow:auto}.nav-heading{color:#828bad;letter-spacing:.11em;font-size:.67rem;font-weight:850;text-transform:uppercase;margin:17px 10px 5px}.nav-item{display:flex;align-items:center;gap:11px;width:100%;border:0;background:transparent;text-align:left;color:#b8bedf;border-radius:11px;padding:10px 12px;font-size:.86rem;font-weight:650}.nav-item:hover,.nav-item.active{background:#292f5c;color:#fff}.nav-item span:first-child{font-size:1.13rem}.sidebar-bottom{margin-top:auto;display:grid;gap:13px}.user-badge{display:grid;gap:3px;padding:14px;background:#20264c;border:1px solid var(--line);border-radius:12px;font-size:.85rem;overflow-wrap:anywhere}.user-badge small{color:#abb0ce}.workspace-main{min-width:0;padding:38px 24px;background:radial-gradient(circle at 92% 0,rgba(110,94,235,.10),transparent 40rem),#0e132e}.workspace-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px}.workspace-toolbar h1{font-size:clamp(2rem,3vw,3.1rem);margin:4px 0 0;letter-spacing:-.055em}.workspace-message{min-height:20px;color:#d5d7ec;font-size:.87rem}.workspace-message.error{color:#ffb4c3}.workspace-content{min-width:0}.welcome-panel{display:grid;grid-template-columns:1fr auto;gap:18px;align-items:center;padding:25px;border:1px solid #57599b;border-radius:20px;background:linear-gradient(125deg,#363a77,#212757);margin:22px 0 30px}.welcome-panel h2{font-size:1.55rem;margin:0 0 5px}.welcome-panel p{color:#d0d1eb;margin:0}.welcome-panel .welcome-glyph{font-size:3rem}.workspace-groups{display:grid;gap:30px}.group-title{font-size:1.16rem;margin:0 0 13px}.module-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.module-card{width:100%;text-align:left;border:1px solid var(--line);border-radius:16px;background:#1b2143;color:#f3f2ff;padding:19px;display:grid;grid-template-columns:42px 1fr;gap:12px;align-items:center;min-height:99px;transition:.2s ease}.module-card:hover{transform:translateY(-3px);border-color:#8d84d5;background:#252b57}.module-card .glyph{display:grid;place-items:center;border-radius:11px;width:42px;height:42px;background:rgba(168,152,255,.14);font-size:1.37rem}.module-card b,.module-card small{display:block}.module-card b{font-size:.9rem}.module-card small{font-size:.76rem;color:#aeb4d3;margin-top:3px}.data-panel{background:#191e40;border:1px solid var(--line);border-radius:18px;margin-top:20px;overflow:hidden}.data-toolbar{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:20px 22px;border-bottom:1px solid var(--line)}.data-toolbar h2{font-size:1.2rem;margin:0}.data-toolbar p{color:var(--muted);font-size:.81rem;margin:2px 0 0}.toolbar-actions{display:flex;gap:9px;align-items:center}.search-input{min-width:210px;font-size:.85rem;padding:10px 13px}.table-wrap{overflow:auto}.data-table{width:100%;border-collapse:collapse;font-size:.84rem;min-width:650px}.data-table th,.data-table td{padding:13px 17px;text-align:left;border-bottom:1px solid rgba(194,196,255,.09);vertical-align:top}.data-table th{color:#aeb5d5;font-size:.71rem;letter-spacing:.06em;text-transform:uppercase;background:#1e2447}.data-table tr:hover td{background:#22284e}.empty-state{padding:42px 22px;color:#abb2d3;text-align:center}.editor-panel{padding:22px;border-top:1px solid var(--line);display:grid;gap:18px}.editor-panel h3{margin:0}.editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.editor-field{display:grid;gap:6px}.editor-field label{font-size:.77rem;color:#cbd0ec;font-weight:700}.editor-field input,.editor-field select{width:100%;font-size:.85rem}.editor-actions{display:flex;gap:10px}.back-link{background:transparent;border:0;color:#b8afff;font-weight:750;padding:0;font-size:.84rem}.stat-row{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:20px}.stat-card{border:1px solid var(--line);border-radius:15px;background:#1b2142;padding:18px}.stat-card strong{display:block;font-size:1.75rem}.stat-card span{font-size:.78rem;color:#b0b6d3}.loading-state{padding:42px;text-align:center;color:#bbc1e1}.pill{font-size:.68rem;padding:4px 9px;border-radius:99px;background:rgba(143,235,198,.14);color:#a0f3d0}.inline-actions{display:flex;gap:8px}
@media(max-width:1050px){.hero{grid-template-columns:1fr .8fr}.hero-visual{transform:scale(.82);transform-origin:center}.feature-grid,.module-grid{grid-template-columns:repeat(2,1fr)}.demo-layout{gap:40px}.workspace{grid-template-columns:235px minmax(0,1fr)}.workspace-main{padding:28px}}
@media(max-width:760px){.topbar{height:auto;min-height:72px;padding:10px 20px;gap:12px;flex-wrap:wrap}.top-nav{display:none}.top-actions{margin-left:auto}.top-actions .button{display:none}.wrap{width:min(100% - 34px,620px)}.hero{display:block;min-height:0;padding:70px 0 20px}.hero h1{font-size:clamp(3rem,10vw,4.2rem)}.hero-visual{height:390px;transform:scale(.72);margin-top:10px}.hero-stats{margin-top:40px;gap:26px}.section{padding-top:68px;padding-bottom:68px}.feature-grid,.demo-layout,.login-section{grid-template-columns:1fr}.demo-layout,.login-section{gap:34px}.workspace{display:block}.workspace-sidebar{min-height:auto;padding:15px;gap:14px}.workspace-sidebar>.brand{display:none}.sidebar-group{max-width:400px}.module-nav{display:flex;gap:5px;overflow:auto}.nav-heading{display:none}.nav-item{white-space:nowrap;width:auto}.sidebar-bottom{display:flex;align-items:center;margin-top:0}.user-badge{flex:1}.sidebar-bottom .button{width:auto}.workspace-main{padding:22px 16px}.workspace-toolbar{align-items:flex-start}.workspace-toolbar .button{padding:9px 12px}.module-grid{grid-template-columns:repeat(2,1fr)}.data-toolbar{flex-direction:column;align-items:stretch}.toolbar-actions{width:100%}.search-input{width:100%;min-width:0}.stat-row{grid-template-columns:repeat(2,1fr)}}
@media(max-width:490px){.brand{font-size:1.1rem}.brand-mark{height:35px;width:35px}.language-select{max-width:98px;font-size:.75rem}.hero-actions{display:grid}.hero-actions .button{width:100%}.hero-stats{justify-content:space-between;gap:8px}.hero-visual{margin-left:-70px}.feature-grid,.module-grid,.editor-grid{grid-template-columns:1fr}.demo-card,.login-card{padding:21px}.footer-inner{flex-wrap:wrap}.workspace-toolbar h1{font-size:1.75rem}.welcome-panel{grid-template-columns:1fr}.welcome-glyph{display:none}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition-duration:.01ms!important;animation-duration:.01ms!important}}
.editor-field textarea{width:100%;min-height:105px;resize:vertical;color:#f5f4ff;background:#101633;border:1px solid #353d69;border-radius:12px;padding:13px 15px;font:inherit}.editor-field textarea:focus{outline:2px solid #9f93ff;outline-offset:2px}.practice-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.practice-heading strong{color:#b8afff}.practice-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.practice-feedback{padding:17px;border-radius:13px;border:1px solid var(--line)}.practice-feedback.correct{background:rgba(88,210,150,.12);border-color:rgba(88,210,150,.35)}.practice-feedback.wrong{background:rgba(246,135,143,.12);border-color:rgba(246,135,143,.35)}.practice-feedback p{margin:8px 0 0;color:#d1d4ed}@media(max-width:490px){.practice-choices{grid-template-columns:1fr}.practice-heading{align-items:flex-start;flex-direction:column}}

.topbar .brand{min-width:0;max-width:min(440px,48vw)}
.topbar .brand-mark{position:relative;overflow:hidden;flex-shrink:0;background:#20264c;box-shadow:none}
.topbar .brand-mark img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.topbar .brand-copy{min-width:0}
.topbar .brand-copy strong{display:block;font-size:inherit;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.topbar .brand-copy small{margin-top:4px}
@media(max-width:760px){.topbar .brand{max-width:calc(100% - 65px)}}
/* Signed-in workspace layout */
.topbar.workspace-active{padding-inline:24px;gap:24px}
.topbar.workspace-active .top-actions{margin-left:auto}
.workspace-search{width:min(520px,45vw);margin-inline:auto;min-width:0}
.workspace-search input{width:100%;height:44px;padding:10px 16px;font-size:.9rem}
.language-picker{position:relative;user-select:none}
.language-trigger{display:flex;align-items:center;justify-content:space-between;gap:17px;min-height:43px;padding:8px 14px;color:#f5f4ff;background:#181d3b;border:1px solid var(--line);border-radius:12px;font-weight:650;white-space:nowrap}
.language-trigger::after{content:"";width:8px;height:8px;margin-top:-4px;border-right:1.5px solid #b7bedf;border-bottom:1.5px solid #b7bedf;transform:rotate(45deg)}
.language-trigger:hover,.language-trigger[aria-expanded="true"]{background:#252b50;border-color:#747bab}
.language-menu{position:absolute;top:calc(100% + 7px);right:0;min-width:100%;padding:5px;background:#181d3b;border:1px solid #4a527f;border-radius:12px;box-shadow:0 18px 40px rgba(3,5,26,.42);z-index:50}
.language-menu button{display:block;width:100%;padding:9px 11px;border:0;border-radius:8px;background:transparent;color:#e9e8ff;text-align:left;white-space:nowrap;font-size:.85rem;user-select:none}
.language-menu button:hover,.language-menu button:focus-visible,.language-menu button[aria-checked="true"]{background:#30365e;color:#fff}
.editor-grid.academic-year-grid{grid-template-columns:minmax(0,1.2fr) repeat(2,minmax(0,1fr))}
.academic-year-grid .editor-field,.academic-year-grid input{min-width:0}
.workspace-sidebar{position:fixed;top:82px;bottom:0;left:0;width:270px;height:auto;min-height:0;overflow:hidden;z-index:20}
.workspace-sidebar>.brand{display:none}
.workspace-sidebar .module-nav{flex:1;min-height:0;overflow-y:auto}
.workspace-main{grid-column:2}
.topbar.workspace-active ~ main .workspace-main{padding-bottom:120px}
.topbar.workspace-active ~ .footer{position:fixed;left:270px;right:0;bottom:0;height:82px;display:flex;align-items:center;margin:0;padding:0 24px;background:#0c102a;z-index:30}
.topbar.workspace-active ~ .footer .footer-inner{width:100%;max-width:1220px}
@media(min-width:761px) and (max-width:1050px){
  .workspace-sidebar{width:235px}
  .topbar.workspace-active ~ .footer{left:235px}
}
@media(max-width:760px){
  .topbar.workspace-active{padding:10px 20px;gap:10px}
  .topbar.workspace-active .workspace-search{order:3;width:100%;margin:0}
  .workspace-sidebar{position:static;width:auto;height:auto;min-height:0;overflow:visible}
  .workspace-sidebar .module-nav{overflow-x:auto;overflow-y:hidden}
  .workspace-main{grid-column:auto}
  .topbar.workspace-active ~ main .workspace-main{padding-bottom:94px}
  .topbar.workspace-active ~ .footer{left:0;height:72px;padding:0 16px}
  .editor-grid.academic-year-grid{grid-template-columns:1fr}
}
.insight-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.insight-panel{padding:24px}.insight-panel h2{margin:0 0 4px;font-size:1.1rem}.insight-panel p{color:var(--muted);font-size:.85rem}.insight-row{margin-top:20px}.insight-row>div:first-child{display:flex;justify-content:space-between;gap:10px;font-size:.86rem}.insight-row strong{font-size:.8rem;color:#dad6ff}.insight-track{height:10px;border-radius:99px;background:#30365c;overflow:hidden;margin-top:8px}.insight-track span{display:block;height:100%;background:linear-gradient(90deg,#8174f1,#a9e8d3);border-radius:99px}@media(max-width:760px){.insight-grid{grid-template-columns:1fr}}
.read-filters{display:flex;align-items:end;gap:12px;flex-wrap:wrap;padding:16px 22px;border-bottom:1px solid var(--line)}.read-filters .editor-field{min-width:180px;flex:1}.read-filters select{width:100%}.read-filters .button{margin-bottom:1px}

@media(max-width:490px){.feature-card{grid-template-columns:76px minmax(0,1fr);gap:14px;padding:18px;min-height:160px}.feature-icon{width:76px;height:76px;border-radius:18px;font-size:2.4rem}}
.icon-definitions{position:absolute;width:0;height:0;overflow:hidden;pointer-events:none}
.fluent-svg{display:inline-block;width:1em;height:1em;fill:currentColor;vertical-align:-.12em;flex:none}
.feature-icon{color:var(--icon-color,#c8bfff)}
.accent-violet{--icon-color:#cbc1ff}.accent-blue{--icon-color:#acd3ff}.accent-orange{--icon-color:#f4c9a5}.accent-green{--icon-color:#b4e8cd}.accent-pink{--icon-color:#edbfd3}.accent-cyan{--icon-color:#aae4e8}
.feature-icon .fluent-svg{font-size:3.2rem}
.brand-mark .fluent-svg{font-size:1.5rem}
.visual-center .fluent-svg{font-size:4.2rem}
.floating-card .fluent-svg{font-size:1.5rem}
.demo-badges .fluent-svg,.login-note .fluent-svg{color:#b9adff;font-size:1.2rem}
.group-title .fluent-svg,.data-toolbar h2 .fluent-svg,.editor-panel h3 .fluent-svg{margin-right:.35em;color:#b9adff}
.stat-card .fluent-svg{color:#b9adff}
.footer .fluent-svg{color:#b9adff}
@media(max-width:490px){.feature-icon .fluent-svg{font-size:2.5rem}}

.position-option { display:flex; align-items:center; gap:10px; margin:8px 0; }
.position-option input[type=checkbox] { width:18px; height:18px; margin:0; }

.workspace.choosing-school{grid-template-columns:1fr}.choosing-school .workspace-sidebar{display:none}.choosing-school .workspace-main{grid-column:1;max-width:none;width:100%;margin:0}.school-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:24px;margin:24px 0}.school-card{padding:0;text-align:left;overflow:hidden;background:#1b2142;color:inherit;border:1px solid var(--line);border-radius:20px;cursor:pointer;transition:transform .18s}.school-card:hover{transform:translateY(-4px)}.school-card img{width:100%;height:170px;object-fit:cover;display:block}.school-card-copy{display:grid;gap:8px;padding:22px}.school-card-copy strong{font-size:1.2rem}.school-card-copy small{color:#b8afff}#schoolBack{margin-bottom:18px}.school-card:focus-visible{outline:3px solid #b8afff;outline-offset:3px}

.school-cards{grid-template-columns:repeat(auto-fit,minmax(min(100%,370px),370px));gap:18px}.school-card{height:118px;padding:12px;border-radius:18px;display:grid;grid-template-columns:88px minmax(0,1fr);column-gap:12px;align-items:center}.school-card-image{position:relative;width:88px;height:88px;border-radius:18px;background:rgba(255,255,255,.06);overflow:hidden;display:grid;place-items:center}.school-card .school-card-image img{position:absolute;inset:0;width:88px;height:88px;object-fit:cover}.school-card-glyph{color:#b8afff;display:grid;place-items:center}.school-card-glyph .fluent-svg{width:35px;height:35px}.school-card-copy{padding:0;gap:4px;min-width:0}.school-card-copy strong{font-size:18px;font-weight:600}.school-card-copy>span{font-size:13px;color:#b0b6d3}.school-card-copy small{font-size:12px}.school-card-copy>*{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.workspace{grid-template-columns:350px minmax(0,1fr)}.workspace-sidebar{width:350px;padding:14px 18px}.workspace-sidebar>.sidebar-group{display:none}.school-pane-identity{display:flex;flex-direction:column;align-items:center;gap:7px;margin:14px 0 18px;padding:10px 8px 22px;border-bottom:1px solid var(--line);text-align:center}.school-pane-image{position:relative;width:126px;height:126px;border:2px solid #b8afff;border-radius:24px;overflow:hidden;background:rgba(255,255,255,.06);display:grid;place-items:center}.school-pane-image .fluent-svg{width:48px;height:48px;color:#b8afff}.school-pane-image img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.school-pane-identity strong{font-size:18px;font-weight:600;margin-top:7px}.school-pane-identity small{font-size:12px;color:#b0b6d3}.school-nav-section summary{list-style:none;cursor:pointer}.school-nav-section summary::-webkit-details-marker{display:none}.section-chevron{margin-left:auto}.school-nav-section[open] .section-chevron{transform:rotate(180deg)}.school-nav-section>button{padding-left:42px;font-size:13px}@media(max-width:760px){.workspace-sidebar{width:auto}.workspace-sidebar .module-nav{display:block;max-height:55vh;overflow-y:auto}.school-pane-identity{margin-top:0}.school-pane-image{width:88px;height:88px}}

.profile-avatar{width:42px;height:42px;flex-shrink:0;border-radius:50%;border:2px solid #b8afff;background:#352a60;color:#fff;padding:0;overflow:hidden;display:grid;place-items:center;font-weight:700;font-size:19px;cursor:pointer}.profile-avatar img{width:100%;height:100%;object-fit:cover}.profile-dialog{width:min(680px,calc(100% - 32px));max-height:85vh;overflow:auto;padding:26px;border:1px solid var(--line);border-radius:20px;background:#1b2142;color:#edf0ff}.profile-dialog::backdrop{background:rgba(0,0,0,.65)}.profile-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:22px}.profile-dialog-heading h2{margin:0}.profile-close{background:transparent;color:inherit;border:0;border-radius:8px;font-size:20px;width:36px;height:36px;cursor:pointer}.profile-close:hover{background:#850e20}.profile-dialog input{color:inherit}.profile-dialog .editor-grid{grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:560px){.profile-dialog .editor-grid{grid-template-columns:1fr}}

.module-card{grid-template-columns:44px minmax(0,1fr)}
.module-card>.fluent-svg{width:2.74rem;height:2.74rem;vertical-align:0}
.institution-tabs{margin-bottom:1.5rem;gap:.65rem}
.school-card-copy>.institution-badge{font-size:10px;line-height:1.3;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#c9c1ff}
.kindergarten-card{background:linear-gradient(125deg,#183c3b,#23394a);border-color:#407b70}
.kindergarten-card .school-card-image{background:rgba(110,231,183,.12)}
.kindergarten-card .school-card-glyph,.kindergarten-card .school-card-copy small{color:#a7f3d0}
.kindergarten-card .school-card-copy>.institution-badge{color:#a7f3d0}
.kindergarten-card .school-card-copy>span:not(.institution-badge){color:#c5ded8}
.kindergarten-card:focus-visible{outline-color:#a7f3d0}
.button-primary.kindergarten-action{background:linear-gradient(135deg,#a7f3d0,#6ee7b7);color:#123b31}
.mobile-menu-toggle{display:none}
@media(max-width:1050px){
  .workspace{display:block;grid-template-columns:minmax(0,1fr)}
  .workspace .mobile-menu-toggle{display:flex;align-items:center;gap:10px;width:calc(100% - 32px);margin:16px;border-radius:12px;text-align:left}
  .workspace .mobile-menu-toggle .fluent-svg{width:20px;height:20px}
  .workspace .workspace-sidebar{display:none;position:static;width:calc(100% - 32px);height:auto;min-height:0;margin:0 16px 16px;padding:16px;border:1px solid var(--line);border-radius:16px;overflow:auto;max-height:60vh}
  .workspace.mobile-menu-open .workspace-sidebar{display:flex;flex-direction:column}
  .workspace.choosing-school .workspace-sidebar,.workspace.choosing-school .mobile-menu-toggle{display:none}
  .workspace-sidebar>.brand{display:none}
  .workspace-sidebar .module-nav{display:block;overflow:visible;max-height:none}
  .workspace-sidebar .nav-item{width:100%;white-space:normal}
  .workspace-main{grid-column:auto;min-width:0;padding:18px 16px}
  .topbar.workspace-active{height:auto;min-height:72px;padding:12px 16px;gap:12px;flex-wrap:wrap}
  .topbar.workspace-active .brand{max-width:calc(100% - 64px)}
  .topbar.workspace-active .workspace-search{order:3;width:100%;margin:0}
  .topbar.workspace-active ~ main .workspace-main{padding-bottom:24px}
  .topbar.workspace-active ~ .footer{position:static;left:auto;height:auto;min-height:64px;padding:16px}
  .workspace .editor-actions{flex-wrap:wrap}
  .workspace-toolbar h1{font-size:clamp(1.6rem,5vw,2.4rem);overflow-wrap:anywhere}
  .data-panel{max-width:100%;overflow-x:auto}
}
.institution-tabs .fluent-svg{width:1.25rem;height:1.25rem;vertical-align:middle;margin-right:.4rem}
.portal-tools{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:14px 0}
.portal-tools label,.portal-daily-form label{display:flex;flex-direction:column;gap:8px}
.portal-child-card,.portal-daily-form{background:var(--surface,#fff);border:1px solid rgba(128,110,180,.25);border-radius:22px;padding:20px;margin:16px 0;color:inherit}
.portal-child-identity{display:flex;align-items:center;gap:18px}.portal-child-identity h3,.portal-child-identity p{margin:5px 0}
.portal-child-image{width:80px;min-width:80px;height:80px;background:rgba(126,99,215,.12);border-radius:18px;display:grid;place-items:center}.portal-child-image .fluent-svg{width:36px;height:36px}
.portal-child-card dl{display:grid;grid-template-columns:minmax(110px,1fr) 2fr;gap:8px}.portal-child-card dd{margin:0;overflow-wrap:anywhere;white-space:pre-wrap}
.portal-daily-form{display:grid;gap:14px}.portal-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.portal-wide{grid-column:1/-1}
.portal-daily-form :is(input,select,textarea),.portal-tools input{padding:12px;border:1px solid rgba(128,110,180,.4);border-radius:10px;font:inherit;background:inherit;color:inherit;max-width:100%;min-width:0}
.portal-daily-form textarea{min-height:90px}.portal-daily-form button,.portal-child-card button,.portal-tools button,#portalLinks button{padding:12px 18px;border-radius:12px;border:1px solid #7552ce;background:transparent;color:inherit;font:inherit;cursor:pointer}.portal-error{color:#b22735}.portal-pending{white-space:pre-wrap}
@media(max-width:480px){.portal-field-grid{grid-template-columns:1fr}.portal-child-card,.portal-daily-form{padding:14px}.portal-child-card dl{grid-template-columns:1fr}.portal-child-card dt{font-weight:600}}

@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
  :is(.module-card,.school-card,.stat-card,.feature-card,.demo-card,.floating-card){transition:transform .4s cubic-bezier(.175,.885,.32,1.275),background .4s,border-color .4s,box-shadow .4s;transform-style:preserve-3d}
  :is(.module-card,.school-card,.stat-card,.feature-card,.demo-card,.floating-card):hover{box-shadow:0 16px 32px rgba(0,0,0,.2);border-color:rgba(184,175,255,.45)}
}

/* showcase.css */
/* The public story has its own palette; signed-in workspaces retain their theme. */
body.marketing-mode{background:#fbf9f5;color:#29213c;color-scheme:light}
body.marketing-mode .topbar{background:rgba(251,249,245,.92);border-color:#e8e2ed;height:88px;gap:26px}
body.marketing-mode .topbar .brand{max-width:230px;color:#29213c;font-weight:650}
body.marketing-mode .brand small{color:#746880;letter-spacing:.09em;font-size:.58rem}
body.marketing-mode .topbar .brand-mark{background:transparent;border-radius:0;width:37px;height:37px}
body.marketing-mode .topbar .brand-mark img{object-fit:contain}
body.marketing-mode .top-nav{gap:26px}
body.marketing-mode .top-nav a{color:#5b5268;font-size:.84rem;font-weight:600}
body.marketing-mode .top-nav a:hover{color:#6942d5}
body.marketing-mode .language-trigger{background:transparent;color:#50465f;border:0;padding:8px;font-size:.78rem;gap:12px}
body.marketing-mode .language-trigger::after{border-color:#766685}
body.marketing-mode .language-menu{background:#fff;border-color:#e5ddee;max-height:65vh;overflow:auto;box-shadow:0 14px 36px #29213c18}
body.marketing-mode .language-menu button{color:#514260}
body.marketing-mode .language-menu button:hover,body.marketing-mode .language-menu button[aria-checked=true]{background:#f1eafb;color:#6942d5}
body.marketing-mode #headerLogin{border-radius:100px;background:#6942d5;border:1px solid #6942d5;color:white;font-size:.82rem;padding:11px 23px;box-shadow:none}
body.marketing-mode #headerLogin:hover{background:#5230b3;transform:translateY(-2px)}
.public-menu{display:none;width:38px;height:38px;border:1px solid #ddd4e7;border-radius:50%;background:transparent;align-items:center;justify-content:center;flex-direction:column;gap:5px}
.public-menu span{width:15px;height:1.5px;background:#39294c;transition:transform .2s}
.public-menu[aria-expanded=true] span:first-child{transform:translateY(3.25px) rotate(45deg)}
.public-menu[aria-expanded=true] span:last-child{transform:translateY(-3.25px) rotate(-45deg)}
.topbar.workspace-active .public-menu{display:none!important}
#publicView{--ink:#29213c;--copy:#70667d;--purple:#6942d5;--purple-dark:#5130ae;--soft:#f1eafa;--edge:#e8e1ee;overflow:clip}
.shell{width:min(1220px,calc(100% - 64px));margin-inline:auto}
#publicView section[id]{scroll-margin-top:110px}
#publicView p{color:var(--copy);line-height:1.85}
.site-eyebrow{display:inline-flex;align-items:center;gap:9px;font-size:.65rem;letter-spacing:.12em;font-weight:750;color:#7d6199;line-height:1.7}
.status-dot{width:7px;height:7px;background:#a491c6;border-radius:50%;box-shadow:0 0 0 4px #efebf6}
.story-hero{display:grid;grid-template-columns:1fr 1fr;gap:42px;align-items:center;min-height:715px;padding-block:70px 86px}
.hero-editorial{position:relative;z-index:2;padding-bottom:22px}
.hero-editorial h1{font-size:clamp(2.6rem,4.05vw,3.65rem);font-weight:650;line-height:1.17;letter-spacing:-.065em;margin:26px 0;position:relative}
.serif-title,#publicView h2 em{font-family:Georgia,'Times New Roman',serif;font-weight:400;font-style:italic;color:#6942d5;letter-spacing:-.055em}
.title-spark{width:41px;height:41px;stroke:#bea5dc;stroke-width:2;position:absolute;right:12px;top:-27px;transform:rotate(10deg)}
.hero-lead{font-size:1rem;max-width:450px;margin-bottom:28px}
.story-actions{display:flex;gap:24px;align-items:center;flex-wrap:wrap}
.story-button{display:inline-flex;justify-content:center;align-items:center;gap:22px;min-height:48px;border:1px solid transparent;border-radius:100px;padding:13px 24px;font-size:.82rem;line-height:1.4;font-weight:650;transition:background .2s,transform .2s,box-shadow .2s;color:var(--purple)}
.story-button:hover{transform:translateY(-3px)}
.story-button.primary{background:var(--purple);color:white;border-color:var(--purple);box-shadow:0 7px 20px #6942d518}
.story-button.primary:hover{background:var(--purple-dark);box-shadow:0 9px 26px #6942d52a}
.story-button.text-button{padding-inline:0;border-radius:0;gap:8px;color:#625271;font-size:.75rem}
.text-button .fluent-svg{font-size:1.15rem}
.hero-note{display:flex;align-items:center;gap:12px;color:#887b92;font-size:.67rem;margin-top:35px}
.mini-icons{display:flex;padding-left:0}
.mini-icons .fluent-svg{font-size:13px;box-sizing:content-box;width:13px;height:13px;padding:9px;background:#efe8f5;border:2px solid #fbf9f5;border-radius:50%;margin-left:-7px;color:#8c71aa}
.mini-icons .fluent-svg:first-child{margin-left:0}
.hero-scene{position:relative;min-width:0;padding:10px 0 55px 12px}
.scene-frame{position:relative;border-radius:105px 14px 100px 14px;overflow:hidden;aspect-ratio:1.13;background:#e0d3eb;transform:rotate(2deg)}
.scene-frame>img{width:100%;height:100%;object-fit:cover;object-position:56% 50%;display:block;transform:scale(1.035) rotate(-2deg)}
.scene-frame::after{content:'';position:absolute;inset:50% 0 0;background:linear-gradient(transparent,#23173490);pointer-events:none}
.scene-caption{position:absolute;bottom:45px;left:30px;right:20px;display:flex;align-items:center;gap:8px;z-index:1;color:#fff;font-size:.69rem;transform:rotate(-2deg)}
.caption-dot{width:6px;height:6px;border-radius:50%;background:#f3d888}
.scene-sticker{position:absolute;top:-10px;right:15px;width:87px;height:87px;transform:rotate(8deg);filter:drop-shadow(0 6px 12px #32204116)}
.scene-sticker svg{width:100%;height:100%;fill:#f1d994}
.scene-sticker svg path:last-child{fill:none;stroke:#827443;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.scene-card{position:absolute;bottom:24px;left:-36px;display:flex;gap:14px;align-items:center;background:#fffefa;box-shadow:0 18px 45px #392b471c;border:1px solid #e9e0eb;border-radius:16px;padding:20px 25px;transform:rotate(-3deg);animation:gentle-float 6s ease-in-out 2}
.scene-card small{display:block;color:#9a8ba8;font-size:.54rem;letter-spacing:.07em}
.scene-card strong{display:block;color:#463350;font-size:.89rem;font-weight:650;margin:5px 0}
.scene-card div>span{display:block;color:#8c7b95;font-size:.66rem}
.soft-icon{display:grid;place-items:center;width:43px;height:43px;border-radius:12px;flex:none;color:#7b5f9c;background:#ede3f8;font-size:1.5rem}
.soft-icon.mint{background:#e4f0e7;color:#699171}
.connection-strip{border-block:1px solid #e9e3ed;background:#f5f1f8}
.connection-strip>.shell{display:flex;align-items:center;justify-content:space-between;gap:28px;min-height:86px;color:#766481;font-size:.77rem}
.connection-strip>.shell>span{display:flex;align-items:center;gap:9px;white-space:nowrap}
.connection-strip>.shell>span:first-child{color:#a294ad;font-size:.69rem}
.connection-strip .fluent-svg{font-size:1.4rem;color:#a28bb6}
.connection-strip a{display:flex;gap:15px;color:#6942d5;font-size:.69rem;font-weight:650}
.chapter{padding-block:112px}
.chapter-heading{max-width:620px;margin-bottom:40px}
#publicView h2{font-size:clamp(2rem,3.3vw,3.1rem);font-weight:550;letter-spacing:-.055em;line-height:1.19;margin:20px 0}
.chapter-heading>p{font-size:.9rem;max-width:510px}
.role-tabs{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:28px}
.role-tabs button,.day-controls button{display:inline-flex;gap:9px;align-items:center;min-height:43px;border:1px solid var(--edge);border-radius:100px;padding:11px 19px;background:transparent;color:#7c6c88;font-size:.77rem;transition:.2s}
.role-tabs button[aria-selected=true]{background:var(--purple);border-color:var(--purple);color:#fff}
.role-tabs button:hover{border-color:#a48bc8}
.role-tabs .fluent-svg{font-size:1.1rem}
.role-panel{display:grid;grid-template-columns:1.1fr .9fr;border:1px solid #e4dbea;border-radius:24px;background:#f4eff8;overflow:hidden;min-height:345px}
.role-editorial{padding:45px 48px}
.role-kicker{font-size:.58rem;letter-spacing:.12em;color:#9c81b4;font-weight:650}
.role-editorial h3{font-size:1.85rem;line-height:1.25;letter-spacing:-.04em;font-weight:550;margin:14px 0 16px;max-width:410px}
.role-editorial p{font-size:.84rem;max-width:420px}
.role-benefits{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}
.role-benefits span{font-size:.63rem;color:#765b8d;padding:6px 10px;border-radius:6px;background:#e9ddf2}
.role-visual{display:flex;align-items:center;justify-content:center;padding:35px;background:radial-gradient(ellipse at center,#e6d9f1,transparent 75%);position:relative}
.role-preview{background:#fffefa;width:100%;max-width:350px;padding:25px;border:1px solid #e8dcef;border-radius:18px;box-shadow:0 14px 30px #5f3c8610;transform:rotate(2deg)}
.preview-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;font-size:.75rem;color:#6c4e83;font-weight:650;margin-bottom:19px}
.preview-heading .fluent-svg{font-size:1.3rem;color:#b69cc9}
.preview-row{display:flex;align-items:center;gap:11px;border-top:1px solid #eee7f1;padding:14px 0;font-size:.67rem;color:#897792}
.preview-row .soft-icon{width:31px;height:31px;border-radius:9px;font-size:1.1rem}
.preview-row b{display:block;font-size:.72rem;color:#5a426e;margin-bottom:3px;font-weight:650}
.preview-row small{font-size:.61rem;line-height:1.5}
.preview-row:last-child{padding-bottom:0}
.day-chapter{background:#efe9f5;padding-block:100px;border-block:1px solid #e5daee}
.day-layout{display:grid;grid-template-columns:1fr 1fr;gap:100px;align-items:center}
.day-copy p{font-size:.9rem;max-width:410px}
.day-controls{display:grid;gap:9px;margin:28px 0}
.day-controls button{border-color:transparent;border-radius:10px;justify-content:flex-start;padding:12px 15px;max-width:350px;gap:15px;text-align:start}
.day-controls button>span:first-child{font-size:.7rem;color:#a795b5;font-variant-numeric:tabular-nums}
.day-controls button[aria-selected=true]{background:#fffcff;border-color:#e0d5e9;box-shadow:0 4px 12px #59417006;color:#6942d5}
.day-controls button[aria-selected=true]>span:first-child{color:#6942d5}
.day-controls button>span:last-child{margin-inline-start:auto}
.sample-note{color:#8c7d96;font-size:.61rem;display:flex;gap:8px;align-items:center}
.day-stage{min-width:0;background:#fffdfa;border:1px solid #dcd0e6;border-radius:20px;box-shadow:0 25px 70px #4b295918;transform:rotate(-1deg);overflow:hidden}
.day-stage-heading{display:flex;align-items:center;gap:18px;padding:20px 24px;border-bottom:1px solid #eee6f1}
.stage-brand{font-size:.75rem;display:flex;gap:8px;align-items:center;font-weight:650;color:#493054}
.stage-brand img{object-fit:contain}
.stage-label{font-size:.57rem;color:#a08aac;margin-inline-start:auto}
.stage-dots{color:#bcacc8;font-size:.8rem;letter-spacing:.1em}
.day-preview{padding:28px;min-height:390px}
.day-preview-top{display:flex;align-items:center;gap:12px;margin-bottom:25px}
.day-preview-top .soft-icon{width:48px;height:48px}
.day-preview-top h3{font-size:1.1rem;margin:0;color:#493054;font-weight:600}
.day-preview-top p{font-size:.65rem;margin:3px 0}
.day-event{display:grid;grid-template-columns:38px 1fr;gap:16px;position:relative;padding-bottom:24px}
.day-event::before{content:'';position:absolute;left:18px;top:36px;width:1px;bottom:0;background:#e8dfef}
.day-event:last-of-type::before{display:none}
.event-icon{width:38px;height:38px;display:grid;place-items:center;background:#f1e9f6;border:1px solid #e7dcef;border-radius:12px;font-size:1.15rem;color:#a48abb;z-index:1}
.day-event b{display:block;font-size:.72rem;font-weight:650;color:#5f4674}
.day-event p{font-size:.67rem;margin:4px 0 0;line-height:1.65!important}
.event-time{font-size:.57rem;color:#ab98b8;display:block;margin-bottom:4px}
.day-summary{background:#f2ecf8;border-radius:12px;padding:14px 17px;color:#856299;font-size:.68rem;line-height:1.6;display:flex;align-items:center;gap:10px}
.catalog-heading{display:grid;grid-template-columns:1.2fr .8fr;gap:55px;align-items:end;margin-bottom:35px}
.catalog-heading>p{font-size:.88rem;max-width:395px;margin-bottom:22px}
.catalog-tools{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap}
.feature-filters{display:flex;gap:5px;flex-wrap:wrap}
.feature-filters button{background:transparent;border:1px solid transparent;padding:9px 13px;border-radius:100px;font-size:.68rem;color:#8e7f99;white-space:nowrap}
.feature-filters button[aria-pressed=true]{background:#eee5f7;color:#6942d5;border-color:#e4d7f0}
.feature-filters button:hover{color:#6942d5}
.catalog-search{display:flex;gap:6px;align-items:center;border-bottom:1px solid #ded3e6;padding:5px 0;width:200px;color:#a696b2}
.catalog-search input{background:transparent;border:0;color:#6a547c;padding:7px 3px;width:100%;font-size:.72rem;border-radius:4px;min-width:0}
.catalog-search input::placeholder{color:#a38fb0}
.catalog-search .fluent-svg{font-size:1rem}
.catalog-count{font-size:.61rem;margin-block:15px 20px;color:#a091ab!important}
.catalog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.catalog-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;text-align:start;background:#fffefb;border:1px solid #e6dfeb;border-radius:18px;padding:25px;color:#4b345f;min-height:227px;transition:transform .25s,box-shadow .25s,border-color .25s}
.catalog-card:hover{transform:translateY(-6px);border-color:#c7b0de;box-shadow:0 16px 32px #543b6d0c}
.catalog-card .soft-icon{margin-bottom:17px;width:41px;height:41px;font-size:1.45rem}
.catalog-card[data-group=care] .soft-icon{background:#e9efe5;color:#8b9f7b}
.catalog-card[data-group=learning] .soft-icon{background:#f8efdc;color:#b59a66}
.catalog-card[data-group=family] .soft-icon{background:#f5e8ed;color:#b48b9c}
.catalog-card[data-group=management] .soft-icon{background:#e8ecf6;color:#8d9ac0}
.catalog-card[data-group=people] .soft-icon{background:#f2e6dc;color:#b29b82}
.catalog-card h3{font-size:.94rem;font-weight:600;margin:0 0 8px;letter-spacing:-.015em}
.catalog-card p{font-size:.75rem;margin:0 0 15px;line-height:1.75!important}
.catalog-card .card-arrow{position:absolute;top:28px;right:25px;color:#c3aed2;font-size:1.1rem}
.catalog-card .card-meta{font-size:.55rem;letter-spacing:.075em;color:#b09cbf;margin-top:auto;font-weight:650}
.expand-catalog{display:flex;margin:30px auto 0;background:transparent;border-color:#dacee6;color:#765292;padding-inline:27px;font-size:.72rem}
.catalog-empty{grid-column:1/-1;text-align:center;border:1px dashed #dacfdf;border-radius:15px;padding:40px;font-size:.82rem;color:#8a759c}
.insight-chapter{background:#322047;color:#faf6ff;padding-block:100px;overflow:hidden}
.insight-layout{display:grid;grid-template-columns:.9fr 1.1fr;align-items:center;gap:90px}
.insight-chapter .site-eyebrow{color:#bd9fd4}
#publicView .insight-chapter h2 em{color:#d8b8ed}
#publicView .insight-chapter p{color:#c1accf;font-size:.89rem;max-width:470px}
.insight-points{display:grid;gap:17px;margin:25px 0 30px;color:#dbcbe6;font-size:.74rem}
.insight-points>div{display:flex;align-items:center;gap:12px}
.insight-points .fluent-svg{font-size:1.35rem;color:#c9a8df}
.light-button{color:#eee0f8;border-color:#72518e;background:transparent;font-size:.72rem}
.insight-art{position:relative;aspect-ratio:1;max-width:430px;width:100%;display:grid;place-items:center}
.orbit-label{display:grid;place-items:center;width:145px;height:145px;border-radius:50%;background:#503569;border:1px solid #795097;color:#e4d0f2;font-size:1.6rem;letter-spacing:-.03em;box-shadow:0 0 80px #8d5a9933;z-index:1}
.insight-orbit{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);border-radius:50%;border:1px solid #78518e}
.ring-one{width:70%;height:70%;border-style:dashed;border-color:#725084}
.ring-two{width:95%;height:95%;border-color:#573462}
.orbit-icon{position:absolute;display:grid;place-items:center;width:59px;height:59px;border-radius:18px;background:#493059;color:#d9bee8;border:1px solid #79548a;font-size:1.8rem;box-shadow:0 9px 25px #1d10264d}
.oi-one{top:6%;left:30%;transform:rotate(-12deg)}.oi-two{top:33%;right:0;transform:rotate(10deg)}.oi-three{bottom:11%;right:20%;transform:rotate(-6deg)}.oi-four{top:54%;left:0;transform:rotate(10deg)}
.orbit-star{position:absolute;bottom:10%;left:24%;width:34px;stroke:#bb94cd;stroke-width:1.5;transform:rotate(20deg)}
.platform-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:21px;margin-top:40px}
.platform-grid article{border:1px solid #e5ddea;background:#fffefa;border-radius:19px;padding:32px;display:flex;align-items:flex-start;flex-direction:column}
.platform-grid article.platform-web{background:#f1eafa;border-color:#dac9ed}
.platform-glyph{font-size:2.2rem;color:#a991bd;line-height:1;margin-bottom:17px;font-family:'Segoe UI',sans-serif}
.platform-label{color:#b49cc5;font-size:.62rem;letter-spacing:.08em}
.platform-grid h3{font-size:1.2rem;letter-spacing:-.035em;font-weight:550;line-height:1.4;margin:15px 0 12px}
.platform-grid p{font-size:.75rem;margin:0 0 22px}
.platform-tag,.platform-link{font-size:.61rem;color:#9c81b4;margin-top:auto;border-top:1px solid #e7dfee;padding-top:15px;width:100%;display:flex;justify-content:space-between;gap:12px}
.platform-link{color:#6942d5;font-weight:650}
.demo-story{border-top:1px solid #e8e0eb;display:grid;grid-template-columns:1.05fr .95fr;gap:90px;align-items:center}
.demo-story-copy>p{font-size:.8rem;max-width:420px}
#publicView .demo-badges{display:grid;gap:13px;font-size:.72rem;color:#8b779c;margin-top:25px}
#publicView .demo-badges>span{display:flex;align-items:center;gap:10px}
#publicView .demo-badges .fluent-svg{color:#a68bba}
#publicView .demo-card{background:#f3edf9;border:1px solid #dccdec;box-shadow:0 15px 45px #693d8110;padding:32px;border-radius:23px;transform:none!important}
#publicView .demo-card-top{color:#a48fb5;font-size:.66rem;border-bottom:1px solid #ded1e9;padding-bottom:16px}
#publicView .demo-question{font-size:2rem;color:#644683;margin:23px 0;font-weight:550}
#publicView .demo-choice{background:#fffcff;color:#7a6194;border-color:#ded1e9;border-radius:13px;font-size:1rem;font-weight:550;padding:14px}
#publicView .demo-choice:hover:not(:disabled){background:#ebe1f6;border-color:#b798d5}
#publicView .demo-choice.correct{background:#e7f2e6;border-color:#a8c3a2;color:#5d8455}
#publicView .demo-choice.wrong{background:#f8e7e9;border-color:#d5a9b0;color:#b16e7a}
#publicView .demo-choice:disabled{opacity:1;cursor:default}
#publicView .demo-feedback{font-size:.72rem;color:#927aa5;min-height:22px;margin:18px 0 0}
#publicView .button-primary{background:#6942d5;color:white;border:1px solid #6942d5;box-shadow:none;border-radius:100px}
#publicView .button-primary:hover{background:#5230b3}
#publicView #demoNext{font-size:.73rem;margin-top:15px}
.faq-chapter{border-top:1px solid #e7dfeb;display:grid;grid-template-columns:.85fr 1.15fr;gap:85px}
.brochure-link{display:inline-flex;align-items:center;gap:20px;font-size:.73rem;color:#8b65a6;padding-bottom:7px;border-bottom:1px solid #ddd0e5;margin-top:8px}
.faq-list details{border-bottom:1px solid #e7deed;padding:22px 0}
.faq-list details:first-child{padding-top:0}
.faq-list summary{list-style:none;position:relative;padding-right:30px;cursor:pointer;font-size:.88rem;color:#5e4670;font-weight:550;line-height:1.5}
.faq-list summary::-webkit-details-marker{display:none}
.faq-list summary::after{content:'+';position:absolute;right:1px;top:0;color:#ab8ebb;font-size:1.2rem;font-weight:400}
.faq-list details[open] summary::after{content:'−'}
.faq-list p{font-size:.78rem;margin-bottom:0}
.closing-chapter{position:relative;text-align:center;padding-block:93px;background:#eee5f5;overflow:hidden;border-block:1px solid #e0d3eb}
.closing-chapter h2{font-size:clamp(2.2rem,4vw,3.6rem)!important;margin-top:18px!important}
.closing-chapter p{font-size:.84rem;max-width:480px;margin:25px auto}
.closing-chapter .story-actions{justify-content:center}
.closing-star{position:absolute;font-size:240px;left:-90px;bottom:-110px;line-height:1;color:#dfcdec;transform:rotate(18deg);pointer-events:none}
#publicView .login-section{display:grid;grid-template-columns:1fr .85fr;gap:100px;align-items:center;padding-block:100px}
#publicView .login-intro>p{font-size:.83rem;max-width:430px}
#publicView .login-note{background:transparent;padding:0;margin-top:27px;max-width:380px;font-size:.65rem;color:#a089b1;display:flex;gap:11px;align-items:center}
#publicView .login-note .fluent-svg{color:#a98abb;font-size:1.3rem}
#publicView .login-card{background:#fffefa;border-color:#e1d5e9;box-shadow:0 12px 36px #54307008;border-radius:20px;padding:35px}
#publicView .login-card h3{font-size:1.25rem;margin:14px 0 26px;color:#5b4070;font-weight:550}
#publicView .login-card label{font-size:.7rem;color:#9b81ad;margin-bottom:7px}
#publicView .login-card input{background:#faf7fc;border-color:#e5daed;color:#5a3e70;font-size:.85rem;padding:12px;margin-bottom:17px;border-radius:10px}
#publicView .login-card button{margin-top:10px;font-size:.8rem;min-height:45px}
#publicView .form-message{color:#a56383;font-size:.72rem}
.feature-dialog{width:min(680px,calc(100% - 32px));max-height:calc(100dvh - 48px);padding:0;border:1px solid #d4bee5;border-radius:23px;background:#fffefa;color:#49335b;box-shadow:0 35px 100px #28103c40;overflow:auto}
.feature-dialog::backdrop{background:#21112e70;backdrop-filter:blur(6px)}
.dialog-shell{position:relative;padding:42px}
.dialog-close{position:absolute;top:15px;right:15px;display:grid;place-items:center;width:35px;height:35px;background:#f3ebf8;color:#a07db8;border:1px solid #e1d0ec;border-radius:50%;font-size:.85rem}
.dialog-close:hover{background:#ede0f6;color:#6e428d}
.dialog-category{display:flex;gap:11px;align-items:center;font-size:.62rem;letter-spacing:.07em;color:#a084b4;padding-right:20px}
.dialog-category .soft-icon{width:40px;height:40px;font-size:1.25rem}
#publicView .feature-dialog h2{font-size:2rem;margin:22px 0 14px;line-height:1.25}
.dialog-description{font-size:.84rem;margin-bottom:26px}
.dialog-points{display:grid;gap:17px}
.dialog-point{display:grid;grid-template-columns:25px 1fr;gap:10px;border-top:1px solid #ede3f2;padding-top:17px}
.dialog-point>span{font-size:.63rem;color:#b398c6;padding-top:3px}
.dialog-point h3{font-size:.88rem;font-weight:600;margin:0 0 6px;color:#795691}
.dialog-point p{font-size:.75rem;margin:0;line-height:1.7!important}
.dialog-benefit{background:#f1e9f8;border-radius:12px;padding:19px;margin:25px 0;font-size:.74rem;line-height:1.7;color:#9575ad}
.dialog-benefit strong{display:block;color:#85609d;margin-bottom:5px;font-size:.79rem}
.dialog-brochure{display:flex;gap:15px;align-items:center;justify-content:space-between;font-size:.7rem;color:#9879ae}
body.marketing-mode .footer{background:#fbf9f5;border-color:#e3d9ea;padding:25px 0;color:#9882a8}
body.marketing-mode .footer-inner{font-size:.64rem;gap:24px;flex-wrap:wrap}
.footer-brand{display:flex;align-items:center;gap:9px;font-size:1.03rem;letter-spacing:-.04em;color:#71578a}
.footer-brand img{object-fit:contain}
.footer-inner .public-footer-link{margin-inline-start:auto}
body:not(.marketing-mode) .public-footer-link{display:none}
body:not(.marketing-mode) .footer-brand{color:inherit}
.site-enter{animation:site-enter .45s ease both}
@keyframes site-enter{from{opacity:.2;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}
@keyframes gentle-float{0%,100%{transform:rotate(-3deg) translateY(0)}50%{transform:rotate(-2deg) translateY(-7px)}}
html[dir=rtl] .scene-card{left:auto;right:-25px}
html[dir=rtl] .catalog-card .card-arrow{right:auto;left:25px}
html[dir=rtl] .faq-list summary{padding-right:0;padding-left:30px}
html[dir=rtl] .faq-list summary::after{right:auto;left:1px}
@media(min-width:1500px){.story-hero{min-height:775px}.hero-editorial h1{font-size:3.65rem}}
@media(max-width:1100px){.shell{width:calc(100% - 48px)}.story-hero{gap:25px;min-height:650px}.hero-editorial h1{font-size:3rem}.scene-card{padding:17px;left:-20px;bottom:32px}.scene-card strong{font-size:.78rem}.scene-card small{font-size:.48rem}.title-spark{right:-8px}.day-layout,.insight-layout,.demo-story,.faq-chapter,#publicView .login-section{gap:45px}.catalog-tools{display:block}.catalog-search{margin-top:15px}.role-editorial{padding:35px}.role-visual{padding:25px}.connection-strip>.shell{gap:20px}.connection-strip>.shell>span:first-child{display:none}}
@media(max-width:850px){body.marketing-mode .topbar{padding-inline:24px;gap:16px}body.marketing-mode .top-nav{gap:15px}body.marketing-mode .top-nav a{font-size:.75rem}.story-hero{gap:23px}.hero-editorial h1{font-size:2.7rem}.hero-lead{font-size:.88rem}.hero-note{font-size:.61rem}.story-actions{gap:15px}.story-button{font-size:.75rem;padding:12px 20px}.story-button.text-button{font-size:.67rem}.scene-caption{bottom:38px;left:24px;font-size:.6rem}.scene-card{left:-25px;bottom:14px}.scene-card div>span{font-size:.59rem}.scene-card .soft-icon{width:35px;height:35px}.catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.platform-grid article{padding:24px}.role-panel{grid-template-columns:1fr 1fr}.role-editorial h3{font-size:1.55rem}.role-editorial p{font-size:.78rem}.role-preview{padding:20px}.day-preview{padding:23px}.day-stage-heading{padding-inline:20px;gap:10px}.stage-label{font-size:.52rem}.platform-grid h3{font-size:1.08rem}}
@media(max-width:760px){
  .shell{width:calc(100% - 36px)}
  body.marketing-mode .topbar{height:74px;min-height:74px;padding:10px 18px;flex-wrap:nowrap;gap:10px}
  body.marketing-mode .topbar .brand{font-size:1.18rem;max-width:170px;gap:8px}
  body.marketing-mode .topbar .brand-mark{width:32px;height:32px}
  body.marketing-mode .topbar .brand small{font-size:.48rem;letter-spacing:.06em}
  body.marketing-mode .top-actions{margin-left:auto;gap:8px}
  body.marketing-mode #headerLogin{display:inline-flex;font-size:.71rem;padding:9px 16px;min-height:37px}
  body.marketing-mode .language-trigger{font-size:.64rem;padding-inline:5px;gap:8px;min-height:37px}
  body.marketing-mode .language-trigger::after{width:6px;height:6px}
  .public-menu{display:flex}
  body.marketing-mode .top-nav{display:none;position:absolute;top:73px;left:0;right:0;background:#fbf9ff;border-bottom:1px solid #ddd1e6;padding:22px;box-shadow:0 15px 35px #32233b0d;align-items:stretch;gap:0}
  body.marketing-mode .top-nav.nav-open{display:flex;flex-direction:column}
  body.marketing-mode .top-nav a{font-size:.86rem;padding:12px}
  .story-hero{grid-template-columns:1fr;padding-block:48px 38px;gap:25px;min-height:0}
  .hero-editorial{padding-bottom:0}
  .hero-editorial h1{font-size:clamp(2.3rem,7.5vw,3.5rem);margin-block:21px;max-width:620px}
  .hero-lead{max-width:560px;font-size:.9rem;margin-bottom:23px}
  .title-spark{right:12px;top:-18px;width:30px;height:30px}
  .hero-note{margin-top:24px;font-size:.62rem}
  .hero-scene{padding:10px 5px 44px 17px;max-width:570px;width:100%;justify-self:center}
  .scene-frame{aspect-ratio:1.38;border-radius:80px 12px 80px 12px}
  .scene-caption{bottom:36px;left:22px;font-size:.62rem}
  .scene-card{bottom:10px;left:0;max-width:95%;padding:15px 21px;gap:12px}
  .scene-card strong{font-size:.83rem}.scene-card small{font-size:.48rem}.scene-card div>span{font-size:.6rem}
  .scene-sticker{width:72px;height:72px;right:12px;top:-1px}
  .connection-strip>.shell{min-height:72px;gap:15px;justify-content:center;font-size:.68rem;flex-wrap:wrap;padding-block:18px}
  .connection-strip>.shell>a{display:none}.connection-strip .fluent-svg{font-size:1.2rem}
  .chapter{padding-block:70px}
  #publicView h2{font-size:clamp(1.95rem,6vw,2.75rem)}
  .chapter-heading{margin-bottom:29px}.chapter-heading>p{font-size:.81rem}
  .site-eyebrow{font-size:.57rem;letter-spacing:.09em}
  .role-tabs{gap:7px}.role-tabs button{font-size:.66rem;padding:10px 13px;gap:6px;min-height:40px}
  .role-panel{grid-template-columns:1fr}.role-editorial{padding:30px}.role-editorial h3{font-size:1.7rem;max-width:100%}
  .role-editorial p{font-size:.8rem;max-width:100%}.role-visual{padding:10px 30px 30px}
  .role-preview{max-width:100%;padding:24px;transform:rotate(1deg)}
  .day-chapter{padding-block:70px}.day-layout{grid-template-columns:1fr;gap:35px}.day-copy p{max-width:100%;font-size:.8rem}
  .day-controls{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-block:23px 18px}
  .day-controls button{font-size:.68rem;padding:11px 12px;gap:10px;border-color:#e5daed}
  .day-controls button>span:last-child{display:none}.sample-note{font-size:.58rem}
  .day-stage{max-width:560px;width:100%;justify-self:center;transform:none}
  .day-preview{min-height:350px;padding:26px}.stage-label{font-size:.57rem}
  .catalog-heading{display:block;margin-bottom:25px}.catalog-heading>p{max-width:100%;font-size:.8rem}
  .catalog-tools{display:block}.feature-filters{gap:4px}.feature-filters button{font-size:.63rem;padding:8px 11px}
  .catalog-search{width:100%;margin-top:20px;padding:4px 2px;max-width:380px}
  .catalog-count{font-size:.6rem}.catalog-grid{gap:13px}.catalog-card{padding:22px;min-height:225px}
  .catalog-card h3{font-size:.89rem}.catalog-card p{font-size:.71rem}.catalog-card .card-arrow{right:20px;top:25px}
  .insight-chapter{padding-block:70px}.insight-layout{grid-template-columns:1fr;gap:30px}.insight-art{order:2;width:min(340px,95%);justify-self:center}
  .insight-points{font-size:.71rem}.insight-chapter p{font-size:.8rem!important}.orbit-label{width:125px;height:125px;font-size:1.4rem}
  .orbit-icon{width:50px;height:50px;font-size:1.5rem;border-radius:14px}
  .platform-grid{grid-template-columns:1fr;gap:14px;margin-top:30px}.platform-grid article{padding:27px}
  .platform-grid h3{font-size:1.28rem}.platform-grid p{font-size:.79rem}.platform-glyph{font-size:2rem}
  .demo-story{grid-template-columns:1fr;gap:30px}.demo-story-copy>p{font-size:.78rem}.demo-badges{font-size:.68rem!important}
  #publicView .demo-card{padding:28px;max-width:100%;width:100%}
  .faq-chapter{grid-template-columns:1fr;gap:34px}.faq-list summary{font-size:.82rem}.faq-list p{font-size:.76rem}
  .closing-chapter{padding-block:70px}.closing-chapter h2{font-size:clamp(2.05rem,6.8vw,3.3rem)!important}.closing-chapter p{font-size:.79rem}
  .closing-chapter .story-actions{gap:18px}.closing-star{font-size:170px;left:-90px;bottom:-70px}
  #publicView .login-section{grid-template-columns:1fr;gap:28px;padding-block:70px}.login-intro p{max-width:100%!important}
  #publicView .login-card{padding:28px}.dialog-shell{padding:30px 25px}.feature-dialog{border-radius:18px}
  #publicView .feature-dialog h2{font-size:1.6rem}.dialog-description{font-size:.77rem}.dialog-point p{font-size:.73rem}
  body.marketing-mode .footer-inner{gap:15px;justify-content:space-between;font-size:.59rem}
  .footer-brand{font-size:.92rem}.footer-inner .public-footer-link{margin-inline-start:0}
  #publicView section[id]{scroll-margin-top:88px}
}
@media(max-width:420px){
  body.marketing-mode .topbar{padding-inline:14px}.topbar .brand-copy small{display:none!important}body.marketing-mode .topbar .brand{gap:7px;font-size:1.09rem}body.marketing-mode .language-trigger{max-width:87px;font-size:.59rem}.public-menu{width:33px;height:33px}.top-actions{gap:5px!important}body.marketing-mode #headerLogin{padding:9px 13px;font-size:.66rem}
  .catalog-grid{grid-template-columns:1fr}.catalog-card{min-height:190px;padding:23px}.catalog-card h3{font-size:1rem}.catalog-card p{font-size:.78rem}.catalog-card .soft-icon{margin-bottom:14px}
  .story-actions{gap:13px}.story-button{font-size:.7rem;padding:12px 19px}.story-button.text-button{font-size:.65rem;padding-inline:0}.hero-editorial h1{font-size:clamp(1.8rem,8.7vw,2.2rem)}.hero-lead{font-size:.85rem}
  .hero-note{font-size:.57rem;gap:9px}.scene-card{padding:13px 15px}.scene-card strong{font-size:.75rem}.scene-card small{font-size:.44rem}.scene-card div>span{font-size:.56rem}
  .role-tabs button{font-size:.62rem;padding:9px 11px}.role-tabs .fluent-svg{font-size:.95rem}.role-editorial{padding:26px}.role-editorial h3{font-size:1.5rem}.role-visual{padding-inline:25px}
  .connection-strip>.shell{gap:20px;font-size:.61rem}.connection-strip .fluent-svg{font-size:1.05rem}.day-controls button{font-size:.63rem}.day-preview{padding:23px}.stage-label{font-size:.5rem}
  .scene-frame{aspect-ratio:1.18}.hero-scene{padding-left:11px}.scene-caption{font-size:.56rem;bottom:35px}.scene-sticker{width:62px;height:62px}
  .footer-inner>span:nth-child(2){display:none}.dialog-brochure{font-size:.64rem}
}
@media(prefers-reduced-motion:reduce){.scene-card,.site-enter{animation:none!important}.story-button,.catalog-card,.public-menu span{transition:none!important}}
/* Native Arabic reading order, including timeline, dialogs and mobile navigation. */
html[dir=rtl] .day-event::before{left:auto;right:18px}
html[dir=rtl] .dialog-close{right:auto;left:15px}
html[dir=rtl] .dialog-category{padding-right:0;padding-left:20px}
html[dir=rtl] body.marketing-mode .top-actions{margin-left:0;margin-right:auto}
html[dir=rtl] body.marketing-mode .language-menu{right:auto;left:0}
html[dir=rtl] .title-spark{right:auto;left:12px}
html[dir=rtl] .mini-icons .fluent-svg{margin-left:0;margin-right:-7px}
html[dir=rtl] .mini-icons .fluent-svg:first-child{margin-right:0}
html[dir=rtl] .hero-editorial h1{letter-spacing:0;line-height:1.4}
html[dir=rtl] #publicView h2{letter-spacing:0;line-height:1.5}
html[lang=ar] .serif-title,html[lang=ar] #publicView h2 em{font-family:'Segoe UI',Tahoma,Arial,sans-serif;font-style:normal;letter-spacing:0}
html[lang=ar] .site-eyebrow,html[lang=ar] .role-kicker,html[lang=ar] .card-meta,html[lang=ar] .dialog-category{letter-spacing:0}
html[lang=zh] .serif-title,html[lang=zh] #publicView h2 em{font-family:'Microsoft YaHei','PingFang SC',system-ui,sans-serif;font-style:normal;letter-spacing:0}
html[lang=zh] #publicView h2{line-height:1.4;letter-spacing:0}

/* parity.css */
dialog.profile-dialog{border-radius:26px;max-width:min(680px,calc(100vw - 32px));padding:26px}
dialog.profile-dialog::backdrop{background:rgb(12 10 24 / .28);backdrop-filter:blur(3px)}
.profile-photo-choice{display:flex;flex-direction:column;align-items:center;gap:12px;margin:20px 0}
.profile-photo-choice img,.profile-photo-choice .profile-photo-fallback{width:232px;height:232px;border-radius:50%;object-fit:cover;display:grid;place-items:center;background:var(--panel,#181d3b);color:var(--accent,#b9a2ff);font-size:56px}
.photo-actions,.period-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.period-choice,.teacher-choice{display:flex;align-items:center;gap:14px;text-align:left;width:100%;min-height:72px;padding:14px 16px;border-radius:16px;border:1px solid var(--line);background:var(--panel,#181d3b);color:inherit}
.period-choice>span,.teacher-choice>span{flex:1}.period-choice strong,.teacher-choice strong{display:block}.period-choice small{display:block;opacity:.75;margin-top:4px}.teacher-choice strong{color:var(--accent,#b9a2ff);margin-top:6px}
.period-current{font-size:.78rem;border-radius:8px;padding:4px 8px;background:rgb(127 92 231 / .16);color:var(--accent,#b9a2ff)}
.period-list{display:grid;gap:12px;margin:18px 0}.period-row{padding:16px;border:1px solid var(--line);border-radius:16px;background:var(--panel,#181d3b)}.period-row h3{margin:0 0 5px}.period-row p{margin:0 0 12px;opacity:.8}
.check-row{display:flex!important;align-items:center!important;gap:10px}.check-row input[type=checkbox]{width:18px!important;height:18px;flex:none;margin:0}
.kg-primary-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:12px 0 18px}.kg-primary-toolbar .group-new{flex:0 0 40%;min-height:48px}.kg-empty{min-height:280px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:16px}.kg-empty p{color:#f47587;text-transform:lowercase;margin:0}.kg-empty button{min-height:48px}.module-card{min-height:88px}
.google-bridge{min-height:100vh;display:grid;place-items:center;padding:24px}.google-bridge-card{width:min(420px,100%);border:1px solid var(--line);background:var(--panel,#181d3b);padding:32px;border-radius:24px;text-align:center}.google-bridge-card #googleButton{display:flex;justify-content:center}
#googleLogin{display:flex;justify-content:center;min-height:44px;margin-top:16px}.profile-language-select{min-height:48px;border-radius:14px}
label:has(>input[type=checkbox]){display:flex;align-items:center;gap:10px}label>input[type=checkbox]{width:18px;height:18px;margin:0;flex:none}
#backHome,#backSchools,#schoolBack{display:none!important}
.director-overview{margin:20px 0 28px}.director-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.director-metric{display:flex;flex-direction:column;justify-content:space-between;gap:16px;min-height:124px;text-align:start;border:1px solid var(--line);border-radius:16px;padding:16px;background:var(--panel,#181d3b);color:inherit}.director-metric span{font-size:.87rem}.director-metric strong{align-self:flex-end;font-size:2rem;color:var(--accent,#b9a2ff)}.director-metric:hover:not(:disabled){border-color:var(--accent,#b9a2ff)}.director-metric:disabled{opacity:.55;cursor:default}.dialog-heading{display:flex;gap:16px;align-items:center;justify-content:space-between}.dialog-heading h2{margin:0}.dialog-close{background:transparent;color:inherit;border:0;border-radius:8px;min-width:44px;min-height:44px;font-size:20px}.dialog-close:hover{background:#8b172a;color:white}.institution-dialog form{display:grid;gap:16px;margin:20px 0}.institution-dialog label{display:grid;gap:7px}.institution-dialog input,.institution-dialog select{max-width:100%;min-width:0}.institution-photo{display:flex;align-items:center;gap:18px}.institution-photo img{width:85px;height:85px;object-fit:contain;border-radius:14px}.workflow-error{color:#ffb4c3;white-space:pre-wrap}.child-identity{display:flex;gap:14px;align-items:center;padding:10px;min-width:170px}.child-identity svg{width:38px;height:38px;flex-shrink:0;color:var(--accent,#b9a2ff)}.child-identity strong,.child-identity small{display:block}.child-identity small{opacity:.7}.previous-institution{grid-column:1/-1;border:1px solid var(--line);padding:16px;border-radius:14px}.previous-institution summary{cursor:pointer;font-weight:600}.previous-institution[open]{display:grid;gap:16px}.account-policy{display:flex;gap:14px;flex-wrap:wrap;justify-content:center;padding:18px 0;font-size:.82rem}.account-policy a{color:var(--accent,#b9a2ff)}.institution-dialog .period-actions{margin-block:12px}.institution-dialog .period-actions button,.institution-dialog [data-years],.institution-dialog [data-periods],.previous-institution button{border:1px solid var(--line);background:var(--panel,#181d3b);color:inherit;border-radius:10px;padding:10px 14px}.institution-dialog section+section{border-top:1px solid var(--line);padding-top:14px}.institution-dialog section p{overflow-wrap:anywhere}.kg-primary-toolbar label{min-width:0}.data-panel:has(.child-identity){overflow-x:auto}.data-panel:has(.child-identity) table{width:100%;border-collapse:collapse}.data-panel:has(.child-identity) td,.data-panel:has(.child-identity) th{padding:10px;border-bottom:1px solid var(--line);text-align:start}
@media(max-width:600px){.director-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.director-metric{min-height:112px;padding:13px}.institution-photo{flex-wrap:wrap}.institution-dialog .editor-grid{grid-template-columns:1fr}}
/* Keep the signed-in search beside the avatar at every viewport width. */
.topbar.workspace-active{height:82px;min-height:82px;flex-wrap:nowrap;gap:12px}
.topbar.workspace-active .brand{flex:1;min-width:0}
.topbar.workspace-active .top-actions{flex-shrink:0;gap:12px;margin-inline-start:auto}
.topbar.workspace-active .workspace-search{order:0;flex:0 0 150px;width:150px;min-width:150px;max-width:150px;margin:0}
.topbar.workspace-active .workspace-search input{width:150px;padding-inline:10px}
.topbar.workspace-active ~ #accountPolicy{display:none}
.topbar.workspace-active ~ .footer{position:fixed;left:270px;right:0;bottom:0;height:72px;min-height:72px;margin:0;padding:0 24px;display:flex;align-items:center;background:var(--bg,#0c102a);border-top:1px solid var(--line);z-index:30}
.topbar.workspace-active ~ main .workspace-main{padding-bottom:96px}
body:has(#workspaceView:not([hidden]).choosing-school){height:100dvh;overflow:hidden}
body:has(#workspaceView:not([hidden]).choosing-school) #main{height:calc(100dvh - 154px);min-height:0}
#workspaceView.choosing-school{height:100%;min-height:0}
#workspaceView.choosing-school .workspace-main{height:100%;min-height:0;display:flex;flex-direction:column;padding:24px 16px 88px;overflow:hidden}
.choosing-school .workspace-toolbar{flex-shrink:0}
.choosing-school .workspace-toolbar h1{font-size:clamp(1.4rem,3.2vw,2.4rem)}
.choosing-school .workspace-message{flex-shrink:0;min-height:0;margin:8px 0}
.choosing-school #workspaceContent{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.choosing-school .school-cards{flex:1;min-height:0;overflow:auto;align-content:start;margin:0;padding:16px 0}
.choosing-school .school-cards:empty{display:none}
.choosing-school .empty-state{flex:1;min-height:0;display:grid;place-items:center;padding:16px}
body:has(#workspaceView:not([hidden]).choosing-school) .footer{left:0}
@media(max-width:1050px){.topbar.workspace-active ~ .footer{left:0;padding-inline:16px}}

/* theme.css */
/* All application surfaces follow the public home page palette. */
:root{color-scheme:light;color:#29213c;background:#fbf9f5;--bg:#fbf9f5;--surface:#fff;--panel:#fff;--panel2:#f2edf8;--line:#e8e1ee;--muted:#70667d;--accent:#6942d5;--violet:#6942d5;--violet2:#5130ae;--green:#28765c;--shadow:0 16px 40px #29213c12}
body{background:var(--bg);color:#29213c}
body .topbar,body .topbar.workspace-active{background:rgba(251,249,245,.96);border-color:var(--line);color:#29213c}
body .brand,body .brand-copy strong{color:#29213c}body .brand small{color:var(--muted)}
body .brand-mark{background:transparent;box-shadow:none}
body .topbar .brand-mark img{object-fit:contain}
body .workspace-main,body .workspace-sidebar{background:var(--bg);color:#29213c}
body .workspace-sidebar{border-color:var(--line)}
body input,body select,body textarea,body .editor-field textarea,body .portal-daily-form :is(input,select,textarea),body .portal-tools input{background:#fff;color:#29213c;border:1px solid #ddd4e7;color-scheme:light}
body input::placeholder,body textarea::placeholder{color:#8b8096}
body :is(input,select,textarea,button,a):focus-visible{outline-color:#6942d5}
body .button-primary,body .button-primary.kindergarten-action{background:#6942d5;border-color:#6942d5;color:#fff;box-shadow:none}
body .button-primary:hover{background:#5130ae;border-color:#5130ae}
body .button-outline,body .button-ghost{background:#fff;color:#514260;border-color:#ddd4e7}
body .button-outline:hover,body .button-ghost:hover{background:#f1eafa;border-color:#bca6e4}
body .profile-avatar{background:#f1eafa;color:#6942d5;border-color:#bca6e4}
body .language-trigger,body .language-menu{background:#fff;color:#514260;border-color:#ddd4e7}
body .language-trigger::after{border-color:#766685}
body .language-menu button{color:#514260}body .language-menu button:hover,body .language-menu button[aria-checked=true]{background:#f1eafa;color:#6942d5}
body .nav-item{color:#70667d}body .nav-item:hover,body .nav-item.active{background:#f1eafa;color:#6942d5}
body .nav-heading,body .sidebar-label,body .workspace-message,body .editor-field label{color:var(--muted)}
body .workspace-message.error,body .workflow-error,body .portal-error{color:#a92644}
body :is(.module-card,.school-card,.stat-card,.data-panel,.user-badge,.period-row,.period-choice,.teacher-choice,.director-metric,.google-bridge-card,.portal-child-card,.portal-daily-form){background:#fff;color:#29213c;border-color:var(--line)}
body .module-card:hover,body .school-card:hover,body .director-metric:hover:not(:disabled){background:#fcfaff;border-color:#bca6e4}
body .module-card small,body .school-card-copy>span,body .school-card-copy small,body .stat-card span,body .data-toolbar p,body .empty-state,body .loading-state,body .user-badge small{color:var(--muted)}
body .module-card .glyph,body .school-card-image,body .kindergarten-card .school-card-image,body .portal-child-image{background:#f1eafa;color:#6942d5}
body .school-card-glyph,body .kindergarten-card .school-card-glyph,body .kindergarten-card .school-card-copy small,body .school-card-copy>.institution-badge,body .kindergarten-card .school-card-copy>.institution-badge{color:#6942d5}
body .kindergarten-card .school-card-copy>span:not(.institution-badge){color:var(--muted)}
body .data-table th{background:#f5f0fa;color:#70667d}body .data-table th,body .data-table td{border-color:var(--line)}
body .data-table tr:hover td{background:#fcfaff}body .welcome-panel{background:#f1eafa;border-color:#ded2ed;color:#29213c}body .welcome-panel p{color:var(--muted)}
body dialog,body dialog.profile-dialog{background:#fff;color:#29213c;border:1px solid var(--line);box-shadow:var(--shadow)}
body dialog::backdrop{background:#29213c40;backdrop-filter:blur(3px)}
body .institution-dialog :is(.period-actions button,[data-years],[data-periods]),body .previous-institution button{background:#f5f0fa;color:#514260;border-color:var(--line)}
body .period-current,body .pill{background:#eee7fa;color:#6942d5}
body .practice-heading strong,body .back-link,body .child-identity svg,body .director-metric strong,body .school-card:focus-visible{color:#6942d5}
body .practice-feedback.correct{background:#edf7f0;border-color:#aad3b7}body .practice-feedback.wrong{background:#fff0f2;border-color:#e4b2bc}body .practice-feedback p{color:var(--muted)}
body .insight-track{background:#f1eafa}body .insight-track span{background:#6942d5}
body .topbar.workspace-active ~ .footer{background:var(--bg);color:var(--muted);border-color:var(--line)}
.choosing-school .institution-create{display:flex;justify-content:center;margin:20px 0 0;padding:0;background:transparent;border:0}
.choosing-school .empty-state{align-content:center;gap:0}
.choosing-school .empty-state p{margin:0;color:var(--muted)}
#workspaceView.choosing-school .workspace-main{padding-bottom:24px}
.choosing-school #workspaceContent>.institution-create{flex-shrink:0;margin:16px 0}
body .google-bridge{background:var(--bg)}
body .eyebrow,body .kicker,body .insight-row strong,body .school-pane-image .fluent-svg,body .group-title .fluent-svg,body .data-toolbar h2 .fluent-svg,body .editor-panel h3 .fluent-svg,body .stat-card .fluent-svg,body .footer .fluent-svg{color:#6942d5}
body .school-pane-identity small{color:var(--muted)}
body .school-pane-image{background:#f1eafa;border-color:#bca6e4}
body .language-trigger:hover,body .language-trigger[aria-expanded=true]{background:#f1eafa;border-color:#bca6e4}
body .profile-close:hover{color:#fff}
body .kg-empty p,body .form-message{color:#a92644}
body .institution-create-dialog .data-panel{margin:0;border:0;border-radius:0;overflow:visible}
body .institution-create-dialog .editor-panel{padding:0;border:0}
body .institution-create-dialog .editor-grid{grid-template-columns:1fr}
body dialog.institution-create-dialog{width:min(440px,calc(100% - 32px))}
body .institution-create-dialog .editor-actions .button{flex:1;min-width:0}
body .institution-create-dialog h3{font-size:1.5rem}
body .institution-create-dialog .workspace-message{margin:0}
body dialog.profile-dialog:has(form){width:min(440px,calc(100% - 32px))}
body dialog.profile-dialog form .editor-grid,body dialog.profile-dialog form.editor-grid,body .workspace-content form.editor-panel .editor-grid{grid-template-columns:1fr}
body dialog.profile-dialog form .editor-actions,body .workspace-content form.editor-panel .editor-actions{display:flex;flex-wrap:wrap;gap:10px;grid-column:1/-1}
body dialog.profile-dialog form .editor-actions>button,body .workspace-content form.editor-panel .editor-actions>button{flex:1 1 calc(50% - 5px);min-width:0}
body .workspace-content form.editor-panel{width:min(440px,100%);margin-inline:auto}
body dialog.record-flyout{width:min(440px,calc(100% - 32px))}
body .record-flyout .data-panel{margin:0;border:0;border-radius:0}
body .record-flyout .editor-panel,body .record-flyout .portal-daily-form{padding:0;border:0;margin:0}
body .record-flyout .portal-field-grid{grid-template-columns:1fr}
body .record-flyout .editor-actions{display:flex;flex-wrap:wrap;gap:10px}
body .record-flyout .editor-actions>button{flex:1;min-width:0}
body .workspace-header-button{white-space:nowrap;padding:10px 14px;flex-shrink:0}
@media(max-width:640px){body .topbar.workspace-active .top-actions{flex-wrap:wrap;justify-content:flex-end}body .workspace-header-button{padding:8px 10px;font-size:.8rem}}
body #refreshButton{width:42px;height:42px;padding:0;display:grid;place-items:center;font-size:24px;line-height:1}
:root{--workspace-sidebar-width:350px}
body button.refresh-icon{width:42px;height:42px;min-width:42px;padding:0;display:grid;place-items:center;font-size:24px;line-height:1;flex:0 0 42px!important}
@media(min-width:1051px){body .workspace:not(.choosing-school){grid-template-columns:var(--workspace-sidebar-width) minmax(0,1fr)}body .workspace-sidebar{width:var(--workspace-sidebar-width)}body .topbar.workspace-active ~ .footer{left:var(--workspace-sidebar-width)}}

/* workspace-design.css */
/* Selected Almanac design: quiet workspace, compact overview and aligned forms. */
:root {
  --workspace-sidebar-width: 240px;
  --workspace-header-height: 74px;
  --workspace-footer-height: 56px;
  --workspace-text: #29213c;
  --workspace-muted: #70667d;
  --workspace-border: #e8e1ee;
}

body .topbar.workspace-active {
  height: var(--workspace-header-height);
  min-height: var(--workspace-header-height);
  padding: 0 24px 0 16px;
  gap: 20px;
  background: #fbf9f5;
  backdrop-filter: none;
}
body .topbar.workspace-active .brand { font-size: 17px; letter-spacing: -.025em; gap: 12px; }
body .topbar.workspace-active .brand small { font-size: 10px; line-height: 1.4; letter-spacing: .035em; }
body .topbar.workspace-active .brand-mark { border-radius: 11px; }
body .topbar.workspace-active .brand-mark:has(>.fluent-svg) { background: #252044; color: #fff; }
body .topbar.workspace-active .top-actions { gap: 12px; }
body .topbar.workspace-active :is(.workspace-search input,#refreshButton,.profile-avatar) { height: 42px; }
body .topbar.workspace-active .workspace-search input { font-size: 13px; border-radius: 10px; padding-inline: 12px; }
body #workspaceView:not(.choosing-school) { min-height: calc(100dvh - var(--workspace-header-height)); }
body:has(#workspaceView:not([hidden]).choosing-school) #main { height: calc(100dvh - var(--workspace-header-height) - var(--workspace-footer-height)); }
body #workspaceView.choosing-school .workspace-main { padding: 26px 24px 20px; }
body .workspace-sidebar {
  top: var(--workspace-header-height);
  bottom: 0;
  width: var(--workspace-sidebar-width);
  padding: 16px 12px;
  gap: 16px;
  background: #fff;
}
body .workspace-sidebar .module-nav { display: grid; align-content: start; gap: 7px; }
body .workspace-sidebar .nav-item {
  min-height: 44px;
  padding: 11px 12px;
  gap: 10px;
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
  color: #635a73;
}
body .workspace-sidebar .nav-item span:first-child { display: flex; width: 18px; align-items: center; }
body .workspace-sidebar .nav-item .fluent-svg { width: 18px; height: 18px; }
body .workspace-sidebar .nav-item:hover { background: #f8f5fc; color: #6942d5; }
body .workspace-sidebar .nav-item.active { background: #f0e9fb; color: #6942d5; }
body .workspace-sidebar .sidebar-bottom { margin-top: auto; padding: 8px 4px 0; }
body .workspace-sidebar #logoutButton { font-size: 13px; min-height: 42px; border-radius: 9px; font-weight: 600; }
body .workspace-main { padding: 30px 28px 88px; background: #fbf9f5; }
body .topbar.workspace-active ~ main .workspace-main { padding-bottom: calc(var(--workspace-footer-height) + 28px); }
body .workspace-toolbar { align-items: end; gap: 24px; margin-bottom: 24px; }
body .workspace-toolbar h1 { margin: 7px 0 0; font-size: 28px; line-height: 1.25; letter-spacing: -.035em; font-weight: 750; }
body .workspace-toolbar .kicker { font-size: 10px; letter-spacing: .13em; }
body .workspace-message:empty { display: none; }
body .workspace-message:not(:empty) { margin: 0 0 20px; min-height: 0; }
body .topbar.workspace-active ~ .footer {
  left: var(--workspace-sidebar-width);
  height: var(--workspace-footer-height);
  min-height: var(--workspace-footer-height);
  padding: 0 28px;
  background: #fbf9f5;
}
body .topbar.workspace-active ~ .footer .footer-inner { align-items: center; font-size: 12px; gap: 20px; }
body .topbar.workspace-active ~ .footer .footer-brand { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 500; }
body .topbar.workspace-active ~ .footer .footer-brand img { width: 28px; height: 28px; }
body .topbar.workspace-active ~ .footer .footer-inner>[data-i18n=footerText] { display: none; }
body .topbar.workspace-active ~ .footer .footer-inner>span:last-child { margin-inline-start: auto; }
body #workspaceView :is(.button,.module-card,.school-card,.stat-card):hover { transform: none; box-shadow: none; }
body #workspaceView .button { min-height: 42px; font-size: 13px; font-weight: 600; border-radius: 9px; }
body .workspace-overview .director-overview { margin: 0; }
body #workspaceOverviewTools { flex: 1; min-width: 0; }
body .overview-tools { display: flex; justify-content: flex-end; align-items: center; gap: 14px; flex-wrap: wrap; }
body .overview-tools label { display: flex; align-items: center; gap: 10px; color: #635a73; font-size: 13px; }
body .overview-tools select { min-width: 160px; max-width: 240px; min-height: 40px; padding: 8px 12px; font-size: 13px; border-radius: 9px; }
body .overview-tools>button { padding: 9px 12px; border: 1px solid #ddd4e7; border-radius: 9px; color: #514260; background: #fff; font-size: 13px; }
body .overview-date { display: block; text-align: end; font-size: 12px; color: #514260; font-weight: 600; }
body .overview-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); padding: 20px 0; background: #fff; border: 1px solid var(--workspace-border); border-radius: 12px; }
body .overview-stat { display: flex; align-items: center; gap: 14px; padding: 0 20px; border: 0; border-inline-end: 1px solid var(--workspace-border); background: transparent; color: var(--workspace-text); text-align: start; min-width: 0; }
body .overview-stat:last-child { border-inline-end: 0; }
body .overview-stat:hover:not(:disabled) .overview-stat-copy>span { color: #6942d5; }
body .overview-stat:disabled { opacity: .6; cursor: default; }
body .overview-stat-icon { display: grid; place-items: center; flex: 0 0 48px; height: 48px; border-radius: 50%; background: #f3edfc; color: #6942d5; }
body .overview-stat-icon .fluent-svg { width: 26px; height: 26px; }
body .overview-stat-copy { display: grid; gap: 2px; min-width: 0; }
body .overview-stat-copy>span { font-size: 13px; color: #635a73; }
body .overview-stat-copy strong { font-size: 26px; line-height: 1.2; color: #6942d5; font-weight: 700; }
body .overview-today { margin-top: 24px; padding: 22px; border: 1px solid var(--workspace-border); background: #fff; border-radius: 12px; }
body .overview-today h2 { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 17px; line-height: 1.5; font-weight: 650; }
body .overview-today h2 .fluent-svg { color: #6942d5; width: 24px; height: 24px; }
body .overview-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 230px; padding: 28px 16px 12px; text-align: center; }
body .overview-empty-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #f3edfc; margin-bottom: 18px; color: #514260; }
body .overview-empty-icon .fluent-svg { width: 32px; height: 32px; }
body .overview-empty strong { font-size: 15px; font-weight: 650; }
body .overview-empty p { margin: 7px 0 16px; font-size: 13px; color: #8b8096; }
body .overview-link { display: inline-flex; align-items: center; gap: 10px; border: 0; background: transparent; color: #6942d5; padding: 6px; font-size: 13px; font-weight: 600; }
body .overview-link:hover { color: #5130ae; text-decoration: underline; }
body .overview-more { margin-top: 20px; font-size: 13px; color: #635a73; }
body .overview-more-heading { margin: 0; padding: 8px 0; font-size: inherit; font-weight: 400; color: inherit; }
body .overview-secondary,body .overview-daily-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0 20px; margin-top: 10px; }
body .overview-indicator { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--workspace-border); background: transparent; text-align: start; color: #635a73; font-size: 12px; }
body .overview-indicator strong { color: #29213c; font-size: 18px; }
body .overview-indicator:hover:not(:disabled) { color: #6942d5; }
body .overview-indicator:disabled { opacity: .6; cursor: default; }
body .overview-agenda { margin-top: 18px; }
body .overview-agenda-row { display: flex; align-items: center; gap: 20px; width: 100%; padding: 14px 0; border: 0; border-bottom: 1px solid var(--workspace-border); background: transparent; color: #29213c; text-align: start; }
body .overview-agenda-row>time { font-size: 13px; color: #6942d5; min-width: 44px; }
body .overview-agenda-row strong,body .overview-agenda-row small { display: block; }
body .overview-agenda-row strong { font-size: 14px; font-weight: 600; }
body .overview-agenda-row small { margin-top: 3px; font-size: 12px; color: var(--workspace-muted); }
body #workspaceView :is(.data-panel,.module-card,.school-card,.portal-child-card) { border-radius: 12px; }
body #workspaceView .data-toolbar { padding: 18px 20px; }
body #workspaceView .data-toolbar h2 { font-size: 17px; }
body #workspaceView .data-table th { background: #faf8fc; font-size: 11px; text-transform: none; letter-spacing: 0; }
body #workspaceView .data-table td { font-size: 13px; }

body .periods-page { margin-top: 0; padding: 22px; }
body .periods-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
body .periods-toolbar .period-actions { display: flex; align-items: center; gap: 10px; margin: 0; }
body .periods-toolbar .check-row { display: flex; align-items: center; gap: 8px; color: #70667d; font-size: 13px; }
body .periods-toolbar input[type=checkbox] { width: 18px; height: 18px; margin: 0; accent-color: #6942d5; }
body .periods-page>.workspace-message:not(:empty) { margin: 18px 0; }
body .periods-page .period-list { margin-top: 20px; }
body .periods-page .period-row { padding: 18px; border-radius: 10px; }
body .period-row-heading { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
body .period-row-heading h2 { margin: 0; font-size: 16px; font-weight: 650; }
body .periods-page .period-row>p { margin: 7px 0 16px; color: #70667d; font-size: 13px; }
body .periods-page .period-row .period-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; }
body .periods-page .empty-state { display: grid; place-items: center; min-height: 220px; font-size: 14px; }
body .period-table-wrap { max-width: 100%; overflow-x: auto; }
body .periods-table { width: 100%; min-width: 840px; border-collapse: separate; border-spacing: 0 8px; text-align: start; }
body .periods-table th { padding: 8px 16px; text-align: start; font-size: 12px; color: #70667d; font-weight: 600; }
body .periods-table td { padding: 14px 16px; background: #faf8fc; border-block: 1px solid #e8e1ee; vertical-align: middle; font-size: 13px; }
body .periods-table td:first-child { border-inline-start: 1px solid #e8e1ee; border-start-start-radius: 9px; border-end-start-radius: 9px; }
body .periods-table td:last-child { border-inline-end: 1px solid #e8e1ee; border-start-end-radius: 9px; border-end-end-radius: 9px; }
body .periods-table tbody tr:not(.period-table-empty):hover td { background: #f3eefb; }
body .periods-table .period-name { min-width: 180px; width: 30%; overflow-wrap: anywhere; }
body .periods-table .period-name strong { display: block; font-size: 14px; font-weight: 650; }
body .periods-table .period-name small { display: block; margin-top: 4px; color: #70667d; font-size: 11px; }
body .periods-table .period-date { white-space: nowrap; color: #635a73; font-variant-numeric: tabular-nums; }
body .period-status { display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 6px; font-size: 11px; white-space: nowrap; }
body .period-status.is-active { color: #514260; background: #eee9f3; }
body .period-status.is-archived { color: #70667d; background: #eeeef0; }
body .periods-table .period-actions-cell { min-width: 290px; }
body .periods-table .period-actions { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; margin: 0; }
body #workspaceView .periods-table .period-actions .button { min-height: 34px; padding: 7px 10px; font-size: 12px; border-radius: 7px; white-space: nowrap; }
body .periods-table .period-table-empty td { background: #fff; border: 0; padding: 0; }
body .periods-field-table { table-layout: fixed; min-width: 960px; }
body .periods-field-table col { width: 11%; }
body .periods-field-table .period-name-col { width: 18%; }
body .periods-field-table .period-range-col { width: 24%; }
body .periods-field-table .period-status-col { width: 14%; }
body .periods-field-table .period-name { min-width: 0; width: auto; }
body .periods-field-table td.period-editable { padding: 0; }
body .periods-field-table .period-cell-button { display: flex; align-items: center; width: 100%; min-height: 68px; padding: 14px 16px; border: 0; border-radius: 8px; background: transparent; color: inherit; font: inherit; text-align: start; cursor: pointer; }
body .periods-field-table .period-cell-button:hover { background: #ede5fa; }
body .periods-field-table .period-cell-button:focus-visible { outline: 2px solid #7041dc; outline-offset: -3px; }
body .periods-field-table .period-cell-button:disabled { cursor: wait; opacity: .65; }
body .periods-field-table .period-number { text-align: end; font-variant-numeric: tabular-nums; }
body .period-editor [hidden] { display: none !important; }
body .complaint-editor { width: min(440px,calc(100vw - 32px)); max-height: calc(100dvh - 48px); overflow-y: auto; }
body .complaint-editor .editor-grid { grid-template-columns: 1fr; }
body .complaint-editor [hidden] { display: none !important; }
body .complaint-editor .editor-actions { display: flex; gap: 8px; }
body .complaint-search { display: flex; gap: 8px; align-items: end; }
body .complaint-search label { min-width: 0; flex: 1; }
body .complaints-filter { display: grid; gap: 6px; max-width: 280px; margin-block: 16px; }
body .complaints-page .data-table { min-width: 700px; }
body .complaints-page td small { display: block; margin-top: 4px; color: #70667d; }
body .complaint-open { border: 0; background: transparent; color: #6035c7; padding: 8px 0; font: inherit; font-weight: 600; text-align: start; cursor: pointer; }
body .complaint-open:focus-visible { outline: 2px solid #7041dc; outline-offset: 3px; }
body .complaint-description { white-space: pre-wrap; overflow-wrap: anywhere; }
@media(max-width:520px) { body .periods-page { padding: 18px; } }

/* Shared input rhythm covers both labelled fields and labels wrapping controls. */
body dialog.profile-dialog { padding: 26px; border-radius: 14px; box-shadow: 0 18px 60px #29213c24; }
body dialog.profile-dialog:has(form) { width: min(440px,calc(100% - 32px)); }
body dialog.profile-dialog :is(h2,h3) { margin: 0; font-size: 22px; line-height: 1.35; letter-spacing: -.025em; font-weight: 700; }
body .profile-dialog-heading,body .dialog-heading { align-items: center; margin: 0 0 24px; gap: 16px; }
body .dialog-header-actions { display: flex; gap: 8px; align-items: center; }
body dialog .profile-close,body dialog .dialog-close { width: 36px; height: 36px; min-width: 36px; min-height: 36px; padding: 0; background: transparent; border: 0; color: #29213c; flex: 0 0 36px; font-size: 20px; }
body dialog :is(.profile-close,.dialog-close):hover { background: #850e20; color: #fff; }
body dialog button.refresh-icon { width: 36px; height: 36px; min-width: 36px; min-height: 36px; flex-basis: 36px!important; font-size: 22px; border-radius: 9px; }
body dialog .editor-panel { padding: 0; margin: 0; border: 0; gap: 20px; }
body dialog .editor-panel>.profile-dialog-heading { margin-bottom: 0; }
body dialog .editor-grid,body dialog form.editor-grid,body dialog .portal-field-grid { grid-template-columns: minmax(0,1fr); gap: 18px; min-width: 0; }
body dialog fieldset.editor-grid { margin: 0; padding: 0; border: 0; }
body dialog :is(.editor-field,.editor-grid>label,.portal-field-grid>label),body dialog form>label:not(.check-row):not(.position-option) { display: grid; gap: 8px; min-width: 0; font-size: 13px; line-height: 1.5; color: #514260; font-weight: 500; }
body dialog .editor-field label { font-size: 13px; font-weight: 500; color: #514260; }
body dialog :is(input,select,textarea):not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]) { display: block; width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid #ddd4e7; border-radius: 9px; font: inherit; font-size: 14px; color: #29213c; background: #fff; }
body dialog textarea { min-height: 100px!important; resize: vertical; }
body dialog .check-row,body dialog .position-option,body dialog label:has(>input[type=checkbox]) { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #514260; font-weight: 400; }
body dialog input[type=checkbox],body dialog input[type=radio] { width: 18px; height: 18px; min-height: 18px; margin: 0; padding: 0; accent-color: #6942d5; flex: 0 0 18px; }
body dialog .editor-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2px; padding-top: 18px; border-top: 1px solid var(--workspace-border); }
body dialog .editor-actions>.button:not(.refresh-icon) { flex: 1 1 calc(50% - 5px); min-width: 0; min-height: 44px; padding: 10px 14px; border-radius: 9px; font-size: 14px; font-weight: 600; }
body dialog .button:hover { transform: none; }
body dialog :is([role=status],.workflow-error,.workspace-message):empty { display: none; }
body dialog .period-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
body dialog .period-choice { padding: 14px 16px; border-radius: 10px; }

/* Record editors share the children/parents field and action spacing. */
body dialog.profile-dialog form,
body #workspaceView form.editor-panel { display:grid;gap:20px;min-width:0; }
body dialog.profile-dialog { max-height:calc(100dvh - 32px);overflow-y:auto; }
body #workspaceView form.editor-panel { padding:24px; }
body #workspaceView form.editor-panel :is(h2,h3) { margin:0;font-size:22px;line-height:1.35;letter-spacing:-.025em; }
body #workspaceView form.editor-panel .editor-grid { grid-template-columns:repeat(2,minmax(0,1fr));gap:18px; }
body #workspaceView form.editor-panel fieldset.editor-grid { margin:0;padding:0;border:0;min-width:0; }
body #workspaceView form.editor-panel :is(.editor-field,.editor-grid>label),
body #workspaceView form.editor-panel>label,
body dialog.profile-dialog label:has(> :is(input,select,textarea)):not(:has(>input[type=checkbox])):not(:has(>input[type=radio])) { display:grid;gap:8px;min-width:0;font-size:13px;font-weight:500;line-height:1.5;color:#514260; }
body #workspaceView form.editor-panel :is(input,select,textarea):not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]) { box-sizing:border-box;width:100%;min-width:0;min-height:44px;padding:10px 12px;border:1px solid #ddd4e7;border-radius:9px;background:white;color:#29213c;font:inherit;font-size:14px; }
body #workspaceView form.editor-panel textarea { min-height:100px;resize:vertical; }
body :is(dialog.profile-dialog,#workspaceView form.editor-panel) :is(input,select,textarea):focus-visible { outline:2px solid #7041dc;outline-offset:2px; }
body :is(dialog.profile-dialog,#workspaceView form.editor-panel) :is(input,select,textarea):is(:disabled,[readonly]) { background:#f6f3f9;color:#70667d; }
body #workspaceView form.editor-panel label:has(>input:is([type=checkbox],[type=radio])) { display:flex;align-items:center;gap:10px;font-weight:400; }
body #workspaceView form.editor-panel input:is([type=checkbox],[type=radio]) { width:18px;height:18px;margin:0;accent-color:#6942d5;flex:0 0 18px; }
body dialog.profile-dialog :is(form,.editor-actions,.period-actions,.photo-actions)>button:not([class]),
body #workspaceView form.editor-panel button:not([class]) { min-height:44px;padding:10px 14px;border:1px solid #ddd4e7;border-radius:9px;background:white;color:#514260;font-family:inherit;font-size:14px;font-weight:600;cursor:pointer; }
body dialog.profile-dialog form>button[type=submit]:not([class]),
body #workspaceView form.editor-panel button[type=submit]:not([class]) { background:#6942d5;border-color:#6942d5;color:white; }
body dialog.profile-dialog button:not([class]):hover,
body #workspaceView form.editor-panel button:not([class]):hover { background:#f1ebfb; }
body dialog.profile-dialog form>button[type=submit]:not([class]):hover,
body #workspaceView form.editor-panel button[type=submit]:not([class]):hover { background:#5634b9; }
body :is(dialog.profile-dialog,#workspaceView form.editor-panel) button:disabled { opacity:.5;cursor:default; }
body #workspaceView form.editor-panel .editor-actions { display:flex;flex-wrap:wrap;gap:10px;padding-top:18px;border-top:1px solid var(--workspace-border); }
body #workspaceView form.editor-panel .editor-actions>.button { flex:1 1 160px;min-height:44px;padding:10px 14px;font-size:14px;border-radius:9px; }
body :is(dialog.profile-dialog,#workspaceView form.editor-panel) [hidden] { display:none!important; }
@media(max-width:600px) {
  body #workspaceView form.editor-panel { padding:20px; }
  body #workspaceView form.editor-panel .editor-grid { grid-template-columns:minmax(0,1fr); }
}

@media(min-width:1051px) {
  body .workspace:not(.choosing-school) { grid-template-columns: var(--workspace-sidebar-width) minmax(0,1fr); }
  body .topbar.workspace-active:has(~main .workspace:not(.choosing-school)) .brand { flex: 0 0 calc(var(--workspace-sidebar-width) - 16px); max-width: calc(var(--workspace-sidebar-width) - 16px); height: var(--workspace-header-height); padding-inline-end: 12px; border-inline-end: 1px solid var(--workspace-border); }
}
@media(min-width:1051px) and (max-width:1300px) {
  body .overview-tools { gap: 10px; }
  body .overview-tools .overview-date { flex-basis: 100%; font-size: 11px; }
  body .overview-stat { padding-inline: 16px; gap: 10px; }
  body .overview-stat-icon { flex-basis: 42px; height: 42px; }
}
@media(max-width:1050px) {
  body .workspace-main { padding: 24px 20px 80px; }
  body .topbar.workspace-active ~ .footer { left: 0; padding-inline: 20px; }
  body .workspace .workspace-sidebar { background: #fff; padding: 12px; }
  body .workspace .mobile-menu-toggle { min-height: 40px; margin-bottom: 0; font-size: 13px; }
  body .topbar.workspace-active .brand { max-width: calc(100% - 238px); }
  body .topbar.workspace-active .brand small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body .overview-tools .overview-date { font-size: 11px; }
}
@media(max-width:720px) {
  body .workspace-toolbar { flex-wrap: wrap; align-items: start; gap: 16px; margin-bottom: 20px; }
  body .workspace-toolbar h1 { font-size: 26px; }
  body #workspaceOverviewTools { flex-basis: 100%; }
  body .overview-tools { justify-content: flex-start; }
  body .overview-date { text-align: start; font-size: 11px; font-weight: 500; }
  body .overview-tools select { max-width: 200px; min-width: 145px; }
  body .overview-summary { padding-block: 16px; }
  body .overview-stat { flex-direction: column; align-items: start; padding: 0 14px; gap: 10px; }
  body .overview-stat-icon { flex-basis: auto; width: 38px; height: 38px; }
  body .overview-stat-icon .fluent-svg { width: 22px; height: 22px; }
  body .overview-stat-copy>span { font-size: 12px; }
  body .overview-stat-copy strong { font-size: 24px; }
  body .overview-today { padding: 18px; margin-top: 18px; }
  body .overview-secondary,body .overview-daily-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:520px) {
  :root { --workspace-header-height: 114px; }
  body .topbar.workspace-active { height: auto; min-height: 74px; padding: 12px 16px; gap: 12px; flex-wrap: wrap; }
  body .topbar.workspace-active .brand { flex: 1 1 100%; max-width: 100%; }
  body .topbar.workspace-active .top-actions { margin: 0; flex: 1 1 100%; min-width: 0; max-width: 100%; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
  body .topbar.workspace-active .workspace-search { order: 0; }
  body .topbar.workspace-active .brand-mark { width: 36px; height: 36px; }
  body .topbar.workspace-active .brand { font-size: 15px; }
  body .workspace-main { padding-inline: 16px; }
  body #workspaceView.choosing-school .workspace-main { padding: 22px 16px 16px; }
  body .topbar.workspace-active ~ .footer { padding-inline: 16px; }
  body .overview-empty { padding-inline: 4px; min-height: 220px; }
  body dialog.profile-dialog { padding: 22px; }
  body dialog.profile-dialog :is(h2,h3) { font-size: 21px; }
}
@media(max-width:360px) {
  body:has(.topbar.workspace-active #headerCreateInstitution:not([hidden])) { --workspace-header-height: 164px; }
}

/* Page titles share the module glyph used by the navigation cards. */
body #workspaceTitle.workspace-title-with-icon { display:flex; align-items:center; gap:12px; }
body #workspaceTitle.workspace-title-with-icon > .fluent-svg { width:32px; height:32px; flex:none; color:#6942d5; }
body #workspaceTitle.workspace-title-with-icon > span { min-width:0; }
@media (max-width:600px) {
  body #workspaceTitle.workspace-title-with-icon { gap:9px; }
  body #workspaceTitle.workspace-title-with-icon > .fluent-svg { width:26px; height:26px; }
}

body dialog .editor-heading-with-icon { display:flex; align-items:center; gap:10px; }
body dialog .editor-heading-with-icon > .fluent-svg { width:28px; height:28px; flex:none; color:#6942d5; }
body dialog .editor-heading-with-icon > span { min-width:0; }

body .people-list, body .record-list { width:100%; border-collapse:collapse; }
body .people-list th, body .people-list td, body .record-list th, body .record-list td { padding:12px 14px; text-align:left; vertical-align:middle; }
body .people-list th:nth-child(1), body .people-list th:nth-child(2) { width:60px; }
body .record-list { min-width:680px; }
body .record-list th:first-child { width:60px; }
body .record-list td { overflow-wrap:anywhere; }
body .record-list th:not(:first-child), body .record-list td:not(:first-child) { min-width:110px; }
body .record-list.people-list th:nth-child(2), body .record-list.people-list td:nth-child(2) { min-width:60px; }
body .record-list th:last-child, body .record-list td:last-child { min-width:190px; }
body #workspaceView .table-wrap, body dialog .table-wrap { max-width:100%; overflow-x:auto; }
body #workspaceView .data-table th, body #workspaceView .data-table td,
body dialog .data-table th, body dialog .data-table td { padding:12px 14px; vertical-align:middle; min-width:100px; overflow-wrap:anywhere; }
body #workspaceView .data-table button:not(.button):not(.complaint-open),
body dialog .data-table button:not(.button):not(.complaint-open) { display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:7px 11px;margin:2px;border:1px solid #ddd4e7;border-radius:9px;background:white;color:#514260;font-family:inherit;font-size:13px;font-weight:600;cursor:pointer; }
body #workspaceView .data-table [data-edit] { background:#6942d5;border-color:#6942d5;color:white; }
body #workspaceView .data-table [data-edit]:hover { background:#5634b9; }
body #workspaceView .data-table button:focus-visible, body dialog .data-table button:focus-visible { outline:2px solid #7041dc;outline-offset:2px; }
body #workspaceView .data-table button:disabled, body dialog .data-table button:disabled { opacity:.5;cursor:default; }
body .child-list-photo { width:42px; height:42px; display:grid; place-items:center; position:relative; border-radius:12px; background:#f1ebfb; color:#6942d5; overflow:hidden; }
body .child-list-photo > .fluent-svg { width:28px; height:28px; }
body .child-list-photo > img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
body .child-row-actions { display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
body .child-row-actions .button { min-height:34px; padding:7px 11px; border-radius:9px; font-size:13px; white-space:nowrap; }
body .child-row-actions [data-edit] { background:#6942d5; border-color:#6942d5; color:white; }
body .child-row-actions [data-edit]:hover { background:#5634b9; }
body .child-row-actions [data-archive] { color:#8a3345; border-color:#e6cbd2; }
body .record-list .child-clickable-cell { cursor:pointer; transition:box-shadow .15s; }
body .record-list .child-clickable-cell:hover { box-shadow:inset 0 0 0 999px #6942d50b; }
body .record-list .child-clickable-cell:focus-visible { outline:2px solid #6942d5; outline-offset:-3px; }
body .child-cell-flyout { width:min(480px,94vw); }
body .child-cell-flyout .dialog-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; }
body .child-cell-value { white-space:pre-wrap; overflow-wrap:anywhere; }
/* Shared status palette for workspace lists, including tables inside dialogs. */
body .status-badge[data-status] { --record-tint:#f3edfc; }
body .status-badge:is([data-status="draft"],[data-status="new"]) { --record-tint:#fff1df; }
body .status-badge:is([data-status="final"],[data-status="approved"],[data-status="resolved"],[data-status="completed"],[data-status="signed"],[data-status="present"]) { --record-tint:#eaf6ec; }
body .status-badge:is([data-status="archived"],[data-status="inactive"],[data-status="cancelled"],[data-status="withdrawn"]) { --record-tint:#eeeef0; }
body .status-badge:is([data-status="calculated"],[data-status="submitted"],[data-status="assigned"],[data-status="scheduled"]) { --record-tint:#e9f1fc; }
body .status-badge:is([data-status="review"],[data-status="pending"],[data-status="closing"]) { --record-tint:#f1eafa; }
body .status-badge:is([data-status="preparation"],[data-status="waiting"],[data-status="late"],[data-status="returned"]) { --record-tint:#faf2d9; }
body .status-badge:is([data-status="active"],[data-status="current"],[data-status="open"],[data-status="excused"]) { --record-tint:#e5f6f3; }
body .status-badge:is([data-status="rejected"],[data-status="absent"],[data-status="overdue"]) { --record-tint:#fbeaec; }
body .status-badge[data-status="closed"] { --record-tint:#e8edf3; }

body .interactive-record-table .record-cell { cursor:pointer; transition:box-shadow .15s; }
body .interactive-record-table .record-cell:hover { box-shadow:inset 0 0 0 999px #6942d50b; }
body .interactive-record-table .record-cell:focus-visible { outline:2px solid #6942d5; outline-offset:-3px; }
body .table-cell-flyout { width:min(520px,94vw); }
body .table-cell-flyout .dialog-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; }
body .table-cell-value { white-space:pre-wrap; overflow-wrap:anywhere; }
body dialog.single-field-editor { width:min(520px,94vw); }
body dialog.single-field-editor .editor-grid { grid-template-columns:minmax(0,1fr); }
body dialog.single-field-editor [hidden] { display:none!important; }
/* Admission workflow follows the existing workspace theme and responsive forms. */
.admission-dialog{width:min(920px,94vw);max-height:90vh;overflow:auto}
.admission-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 24px}
.admission-details dt{font-size:.85rem;opacity:.72}.admission-details dd{margin:5px 0 0;overflow-wrap:anywhere}
.admission-child-search{margin-bottom:20px;display:grid;gap:10px}
.admission-child-search [data-search-results]{display:flex;flex-wrap:wrap;gap:8px}
.admission-print-frame{position:fixed;width:1px;height:1px;left:-10000px;top:0;border:0}
.admission-dialog [hidden]{display:none!important}
@media(max-width:640px){.admission-details{grid-template-columns:1fr}.admission-dialog .editor-actions{flex-wrap:wrap}}

.table-pagination{justify-content:space-between;flex-wrap:wrap;padding:16px}.feature-scope-note{padding:14px;border:1px solid #ded5ed;border-radius:12px;background:#faf7ff;color:#4b345f}

body :is(.record-list,.interactive-record-table) .status-badge { display:inline-flex; align-items:center; gap:4px; padding:5px 11px; border:1px solid #0000000d; border-radius:999px; background:var(--record-tint,#f3edfc)!important; color:#332c40; font-size:13px; font-weight:600; line-height:1.5; white-space:nowrap; }
body .child-history-dialog { width:min(1100px,96vw); }
body .child-history-dialog .dialog-heading { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; }
body .child-history-event { padding:18px 0; border-bottom:1px solid #e8e0ef; }
body .child-history-meta { color:#675b75; font-size:13px; }
body .history-values td { white-space:pre-wrap; }
body .history-values th,body .history-values td { width:33%; }
body .child-history-evidence { white-space:pre-wrap; }
body .rooty-panel { max-width:980px; padding:24px; }
body #workspaceView.workspace-rooty .workspace-toolbar { display:none; }
body #workspaceView.workspace-rooty .workspace-main { padding-top:20px; }
body #workspaceView.workspace-rooty .workspace-message:empty { display:none; }
body .rooty-panel > h2 { margin-top:0; }
body .rooty-prompts { display:flex; flex-wrap:wrap; gap:10px; margin-block:18px; }
body .rooty-chat { display:grid; gap:12px; max-height:55vh; overflow:auto; margin-block:20px; }
body .rooty-message { padding:16px; border:1px solid #e8e0ef; border-radius:14px; background:#faf7fd; }
body .rooty-message p { white-space:pre-wrap; overflow-wrap:anywhere; margin-block:8px 0; }
body .rooty-panel textarea { display:block; width:100%; box-sizing:border-box; margin-block:8px 14px; padding:12px; border:1px solid #cfc4dc; border-radius:10px; font:inherit; resize:vertical; }
body .rooty-panel [data-error] { color:#a71932; }
/* Support keeps the form, ticket list and conversation in separate padded cards. */
body #workspaceView .support-page { display: grid; gap: 24px; max-width: 1040px; margin-top: 24px; min-width: 0; }
body #workspaceView .support-page > .data-panel { margin: 0; }
body #workspaceView .support-intro { margin: 0; max-width: 76ch; color: var(--muted); line-height: 1.65; }
body #workspaceView .support-notice:empty { display: none; }
body #workspaceView .support-notice { margin: 0; padding: 12px 16px; border: 1px solid var(--workspace-border); border-radius: 10px; overflow-wrap: anywhere; }
body #workspaceView .support-create { display: grid; gap: 20px; padding: 24px; }
body #workspaceView .support-create h2 { margin: 0; font-size: 17px; }
body #workspaceView .support-create label { display: grid; gap: 8px; min-width: 0; font-size: 14px; font-weight: 600; }
body #workspaceView .support-create :is(input,textarea) { display: block; box-sizing: border-box; width: 100%; min-width: 0; min-height: 44px; padding: 12px 14px; border: 1px solid #ddd4e7; border-radius: 9px; background: #fff; color: #29213c; font: inherit; font-size: 14px; }
body #workspaceView .support-create textarea { min-height: 160px; resize: vertical; line-height: 1.6; }
body #workspaceView .support-create :is(input,textarea):focus-visible { outline: 2px solid #7041dc; outline-offset: 2px; }
body #workspaceView .support-create .editor-actions { display: flex; justify-content: flex-end; margin: 0; padding-top: 18px; border-top: 1px solid var(--workspace-border); }
body #workspaceView .support-list .data-toolbar { flex-wrap: wrap; }
body #workspaceView .support-list [data-list] > p { margin: 0; padding: 24px; color: var(--muted); }
body #workspaceView .support-list [data-list] > p:only-child { padding: 40px 24px; text-align: center; }
body #workspaceView .support-detail:empty { display: none; }
body #workspaceView .support-detail > article { margin: 0; padding: 24px; }
body #workspaceView .support-detail > article > h3 { margin-top: 0; overflow-wrap: anywhere; }
body #workspaceView .support-detail > article > section { margin-top: 16px; padding: 18px; }
@media (max-width: 640px) {
 body #workspaceView .support-page { gap: 18px; margin-top: 18px; }
 body #workspaceView .support-create, body #workspaceView .support-detail > article { padding: 18px; }
 body #workspaceView .support-create .editor-actions > button { width: 100%; }
}
body #workspaceView .nav-item .support-unread-badge { margin-inline-start: auto; flex: 0 0 auto; min-width: 24px; padding: 2px 7px; border-radius: 999px; background: #7041dc; color: #fff; text-align: center; font-size: 12px; line-height: 20px; font-weight: 700; }
body #workspaceView .nav-item .support-unread-badge[hidden] { display: none; }

/* contract-editor.css */
.template-page .workspace-message{padding-inline:18px}
.template-editor{margin-top:20px;border:1px solid #ddd4e7;border-radius:14px;background:white;overflow:hidden}
.template-meta{padding:20px;gap:16px}.template-meta>label{display:grid;gap:8px;font-size:13px;color:#514260}.template-meta .check-row,.template-meta .editor-actions{grid-column:1/-1}
.template-status{padding:0 20px;color:#6942d5;font-size:13px;min-height:20px}
.template-ribbon{display:flex;flex-wrap:wrap;gap:12px 0;padding:14px;background:#f8f5fc;border-block:1px solid #e8e1ee;align-items:stretch}
.ribbon-group{display:flex;flex-direction:column;gap:12px;min-width:0;padding:0 14px;border-inline-end:1px solid #d8cfe4}
.ribbon-group:first-child{padding-inline-start:0}.ribbon-group:last-child{border-inline-end:0;padding-inline-end:0}
.ribbon-group-controls{display:flex;flex-wrap:wrap;align-items:center;align-content:flex-start;gap:6px;flex:1}
.ribbon-group-caption{display:block;text-align:center;color:#70667d;font:500 11px system-ui;line-height:1.4;margin-top:auto}
.ribbon-group-text{max-width:420px}.ribbon-group-text [data-format]{width:145px}.ribbon-group-text [data-font]{width:135px}.ribbon-group-text [data-size]{width:58px}
.ribbon-group-alignment,.ribbon-group-lists,.ribbon-group-tables{max-width:196px}
.ribbon-group-history{max-width:112px}.ribbon-group-alignment [data-line]{width:100%}
.ribbon-group-pages{min-width:78px}.ribbon-group-view [data-zoom]{width:82px}
@media(max-width:600px){.template-ribbon{gap:12px}.ribbon-group{padding:10px;max-width:100%;border:1px solid #e3dbea;border-radius:8px;flex:1 1 140px}.ribbon-group:first-child,.ribbon-group:last-child{padding:10px;border:1px solid #e3dbea}.ribbon-group-text{flex-basis:100%}.ribbon-group-text [data-format],.ribbon-group-text [data-font]{flex:1 1 100px;width:auto}.ribbon-group-controls{justify-content:flex-start}}
.template-ribbon button,.template-ribbon select{min-height:34px;padding:7px 10px;font:600 12px system-ui;border:1px solid #ddd4e7;border-radius:6px;background:white;color:#514260;cursor:pointer;max-width:180px}
.template-ribbon button:hover,.template-ribbon button[aria-pressed=true]{background:#eee5fc;border-color:#6942d5;color:#5634b9}
.editor-glyph{width:20px;height:20px;flex:none;vertical-align:middle;pointer-events:none}
.template-ribbon button[data-command]{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;padding:7px}
.template-page .button,.template-meta .button,.template-search .button,.template-placeholders>.button{display:inline-flex;align-items:center;justify-content:center;gap:7px}
.template-ribbon label{display:flex;gap:5px;align-items:center;font-size:12px}.template-ribbon input[type=color]{width:32px;height:30px;padding:2px;border:1px solid #ddd4e7;background:white}
.template-search{display:flex;flex-wrap:wrap;gap:10px;padding:14px;align-items:center}.template-search input{min-width:120px;flex:1 1 150px}
.template-workbench{display:grid;grid-template-columns:230px minmax(0,1fr);border-top:1px solid #e8e1ee;background:#eae7ee}
.template-placeholders{padding:16px;background:white;max-height:900px;overflow:auto}.template-placeholders h3{font-size:15px;margin:0 0 14px}.template-placeholders input{width:100%;min-width:0;margin-bottom:10px}
.template-placeholders button{display:block;width:100%;padding:10px;margin-bottom:6px;border:1px solid #e8e1ee;border-radius:7px;background:#faf8fc;color:#514260;text-align:start;font:13px system-ui;cursor:pointer}.template-placeholders button:hover{border-color:#6942d5;background:#f1ebfb}.template-placeholders small{display:block;color:#70667d;font-size:10px;margin-top:4px;overflow-wrap:anywhere}
.template-paper-scroll{overflow:auto;padding:24px;max-height:1000px}.template-paper{width:210mm;min-height:297mm;padding:18mm;background:white;margin:0 auto;box-shadow:0 2px 12px #29213c22;color:#111;font:11pt Arial,sans-serif;line-height:1.45}
.template-paper .tiptap{outline:none;min-height:250mm}.template-paper p,.contract-document p{margin:0 0 8pt;line-height:1.45}.template-paper h1,.contract-document h1{font-size:18pt;margin:0 0 14pt}.template-paper h2,.contract-document h2{font-size:13pt;margin:16pt 0 8pt}.template-paper h3,.contract-document h3{font-size:12pt}.template-paper ul,.template-paper ol,.contract-document ul,.contract-document ol{padding-left:24pt;margin:8pt 0;list-style:revert}.template-paper li{margin-bottom:4pt}
.template-paper table,.contract-document table{border-collapse:collapse;table-layout:fixed;width:100%;margin:12pt 0}.template-paper td,.template-paper th,.contract-document td,.contract-document th{border:1px solid #888;padding:7pt;vertical-align:top;min-width:40px;position:relative;overflow-wrap:anywhere}.template-paper blockquote,.contract-document blockquote{margin:12pt;border-left:2px solid #aaa;padding-left:10pt}
.contract-placeholder{background:#eee5fc;border-radius:3px;padding:2px 4px;color:#5634b9;white-space:normal;overflow-wrap:anywhere}.contract-page-break{border-top:2px dashed #bbb;margin:30px 0;break-before:page}.template-paper .selectedCell:after{content:'';position:absolute;inset:0;pointer-events:none;background:#6942d522}.template-paper .column-resize-handle{position:absolute;right:-2px;top:0;bottom:0;width:4px;background:#6942d5}.template-paper .resize-cursor{cursor:col-resize}
.template-legal{padding:18px;color:#70667d;font-size:13px}.template-legal a{color:#6942d5}.contract-document{background:white;color:#111;font:11pt Arial,sans-serif;line-height:1.45;padding:24px;overflow:auto}.contract-preview{margin:16px 0}.contract-preview summary{cursor:pointer;color:#6942d5}
body dialog.template-preview,body dialog.template-history{width:min(900px,calc(100% - 32px));max-width:900px}
.template-ribbon button:focus-visible,.template-placeholders button:focus-visible{outline:2px solid #6942d5;outline-offset:2px}
.template-placeholders [hidden]{display:none}.template-editor[hidden]{display:none}
@media(max-width:900px){.template-workbench{grid-template-columns:minmax(0,1fr)}.template-placeholders{max-height:230px;border-bottom:1px solid #e8e1ee}.template-placeholders [data-field-list]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.template-paper-scroll{padding:14px}.template-meta{grid-template-columns:minmax(0,1fr)}.template-ribbon{position:static}}

/* lesson-workspace.css */
/* The main application navigation stays in place; this outline is the second pane. */
body .workspace-main:has(.lesson-workspace){padding-inline:0;background:#f7f4fb}
body .workspace-main:has(.lesson-workspace)>.workspace-toolbar{padding-inline:24px;margin-bottom:16px}
body .workspace-main:has(.lesson-workspace)>#workspaceMessage{margin-inline:24px}
.lesson-workspace{display:grid;grid-template-columns:270px minmax(0,1fr);align-items:start;min-height:calc(100dvh - 190px);border-block-start:1px solid #e7dfef}
.lesson-outline{position:sticky;top:92px;display:flex;flex-direction:column;max-height:calc(100dvh - 112px);min-height:420px;background:#fdfbff;border-inline-end:1px solid #e4daef;overflow:hidden}
.lesson-outline>header{padding:20px 16px 14px;border-block-end:1px solid #ebe4f1}
.lesson-back{border:0;padding:0;background:transparent;color:#78668b;font-size:12px;font-weight:600;cursor:pointer}
.lesson-back:hover{color:#653fc4}.lesson-outline h2{font-size:22px;line-height:1.3;margin:12px 0 18px;overflow-wrap:anywhere;color:#30223e}
.lesson-outline-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:12px}.lesson-outline-tools h3{font-size:13px;margin:0;margin-inline-end:auto;color:#675572;letter-spacing:.02em}
body .lesson-outline-tools .button{padding:7px 9px;min-height:32px;border-radius:8px;font-size:11px;gap:4px;white-space:nowrap}
.lesson-refresh .editor-glyph{width:15px;height:15px}.lesson-outline [data-search]{width:100%;border:1px solid #ddd3e8;border-radius:9px;background:#fff;font-size:12px;padding:10px 11px;color:#33273e}
.lesson-topic-list{overflow-y:auto;min-height:0;padding:12px 10px 20px;flex:1}
.lesson-topic{border:1px solid transparent;border-radius:10px;margin-bottom:6px;overflow:hidden}.lesson-topic[open]{border-color:#e3d8f0;background:#fff}
.lesson-topic>summary{display:flex;align-items:center;gap:9px;list-style:none;padding:12px 10px;cursor:pointer;font-weight:650;font-size:13px;color:#493754;user-select:none}
.lesson-topic>summary::-webkit-details-marker{display:none}.lesson-topic>summary:hover{background:#f1eafb}.lesson-topic>summary:focus-visible{outline:2px solid #7142d7;outline-offset:-2px}
.lesson-topic-chevron{font-size:23px;line-height:16px;color:#8e72aa;transition:transform .15s;flex-shrink:0}.lesson-topic[open] .lesson-topic-chevron{transform:rotate(90deg)}
.lesson-topic-name{flex:1;min-width:0;overflow-wrap:anywhere}.lesson-topic-count{font-size:11px;color:#8e7c9d;background:#f0eaf6;border-radius:20px;padding:2px 7px;flex-shrink:0}
.lesson-topic-content{padding:0 8px 10px}.lesson-items{display:grid;gap:4px;padding-block:4px 8px}
.lesson-item{display:flex;align-items:flex-start;gap:9px;border:1px solid transparent;border-radius:8px;width:100%;padding:10px 9px;background:transparent;color:#62516f;text-align:start;font-family:inherit;font-size:12px;font-weight:500;line-height:1.5;cursor:pointer}
.lesson-item .editor-glyph{width:17px;height:17px;flex-shrink:0;margin-top:2px;color:#a28ab6}.lesson-item>span{min-width:0;overflow-wrap:anywhere}
.lesson-item:hover{background:#f5f0fc;color:#6334bc}.lesson-item.selected{background:#eee5fc;border-color:#dac7f6;color:#6539bc}.lesson-item.selected .editor-glyph{color:#7749ca}
.lesson-item:focus-visible,.lesson-back:focus-visible{outline:2px solid #7142d7;outline-offset:1px}
.lesson-topic-rename{display:block;margin-inline-start:auto;border:0;background:transparent;color:#8b74a0;font-size:10px;padding:2px 5px;cursor:pointer}.lesson-topic-rename:hover{color:#6334bc;text-decoration:underline}
body .lesson-topic-content .lesson-add{width:100%;font-size:12px;min-height:34px;padding:7px 10px;border-style:dashed;border-color:#d3c1e8;background:#fcfaff;justify-content:center}
.lesson-topic-empty,.lesson-muted{font-size:12px;line-height:1.6;color:#97869f;padding:6px 9px;margin:0}
.lesson-outline-message{font-size:12px;line-height:1.5;color:#a63550;white-space:pre-wrap;padding:0 16px;margin:0 0 12px}
.lesson-topic-form{padding:14px 16px;border-bottom:1px solid #e5daef;background:#f5eefc}.lesson-topic-form[hidden]{display:none}
.lesson-topic-form label{display:grid;gap:7px;font-size:12px;color:#6b557c}.lesson-topic-form input{width:100%;padding:9px;border:1px solid #d4c1e6;border-radius:7px}
.lesson-topic-form>div{display:flex;gap:7px;margin-top:10px}.lesson-topic-form .button{font-size:11px;padding:7px 12px}.lesson-topic-form [role=status]{font-size:12px;color:#ad3450;margin:7px 0 0}
.lesson-editor-pane{min-width:0;padding:20px 24px 36px}.lesson-editor-pane .lesson-document{margin-top:0;border-radius:12px;border-color:#e1d6eb;box-shadow:0 3px 18px #54307b07}
.lesson-document-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:20px 22px;border-bottom:1px solid #eee7f3;background:#fff}
.lesson-document-header h2{font-size:21px;line-height:1.4;margin:4px 0 6px;overflow-wrap:anywhere;color:#362442}.lesson-eyebrow{font-size:11px;letter-spacing:.04em;color:#9b86ad}
.lesson-save-state{font-size:11px;color:#9a86aa}.lesson-document-header .editor-actions{gap:8px;flex-shrink:0;display:flex;flex-wrap:wrap}.lesson-document-header .button{display:inline-flex;align-items:center;gap:7px;min-height:38px;padding:8px 12px;font-size:12px}
.lesson-meta{display:grid;grid-template-columns:minmax(0,2fr) minmax(170px,1fr);gap:16px;padding:18px 22px 12px}.lesson-meta label,.lesson-extra-fields label{display:grid;gap:7px;color:#7d668e;font-size:12px}
.lesson-meta input,.lesson-meta select,.lesson-extra-fields input,.lesson-extra-fields textarea{width:100%;border:1px solid #dfd4e9;border-radius:8px;padding:10px 12px;font:inherit;color:#3f2d4e;background:#fff;min-width:0}
.lesson-meta input:focus,.lesson-meta select:focus,.lesson-extra-fields :is(input,textarea):focus{outline:2px solid #c4a8ed;border-color:#a87ada}
.lesson-status{font-size:12px;color:#6846a1;min-height:18px;margin:0;padding:0 22px 12px;white-space:pre-wrap}.lesson-status.error{color:#ac3452}
.lesson-document .template-ribbon{position:static;gap:10px 0;padding:12px 16px;background:#faf7fe}.lesson-document .ribbon-group{padding-inline:10px;gap:7px}.lesson-document .ribbon-group-controls{gap:4px}.lesson-document .ribbon-group-caption{font-size:10px}
.lesson-document .template-ribbon button{width:29px;height:29px}.lesson-document .template-ribbon select{font-size:11px;min-height:29px}.lesson-document .template-ribbon [data-font]{max-width:120px}.lesson-document .template-ribbon [data-format]{max-width:95px}
.lesson-paper-scroll{background:#eeeaf3;padding:24px;max-height:none;min-height:560px;overflow:auto}
.lesson-document .lesson-paper{width:min(210mm,100%);min-width:320px;min-height:650px;padding:clamp(20px,4vw,54px)}
.lesson-paper .tiptap{min-height:550px;overflow-wrap:anywhere}.lesson-paper .tiptap p.is-editor-empty:first-child:before{color:#b1a5ba}
.lesson-extra{padding:18px 22px;border-top:1px solid #e7deee}.lesson-extra>summary{cursor:pointer;font-size:13px;font-weight:650;color:#76588e}.lesson-extra-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:18px}.lesson-extra-fields label:has(textarea){grid-column:1/-1}
.lesson-materials{padding:18px 22px 24px;border-top:1px solid #e7deee}.lesson-materials>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.lesson-materials h3{font-size:14px;margin:0;color:#674978}.lesson-materials .button{font-size:12px;padding:8px 12px}.lesson-materials [data-materials]{display:flex;flex-wrap:wrap;gap:8px}.lesson-materials .lesson-material{text-align:start;overflow-wrap:anywhere;white-space:normal}
.lesson-welcome{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:540px;padding:40px;text-align:center;border:1px dashed #ded1ed;border-radius:12px;background:#fbf9fd;color:#b29cc4}
.lesson-welcome>.editor-glyph{width:48px;height:48px;stroke-width:1.1;color:#b59cc9}.lesson-welcome h2{font-size:22px;font-weight:550;color:#80668f;margin:20px 0 10px}.lesson-welcome p{max-width:370px;font-size:13px;line-height:1.8;color:#a28dae}
body .lesson-related-action{display:inline-flex;align-items:center;justify-content:center;gap:7px;vertical-align:middle;min-height:40px;margin-inline-start:6px;border:1px solid #d8c9ef;border-radius:9px;background:#f8f4ff;color:#7146be;padding:8px 14px;font-size:12px;font-weight:650;cursor:pointer}
body .lesson-related-action:hover{background:#eee4ff;border-color:#b99be4;color:#5928a5}.lesson-related-action .editor-glyph{width:16px;height:16px}
body .lesson-related-action:focus-visible{outline:2px solid #7644ce;outline-offset:2px}
@media(min-width:1500px){.lesson-workspace{grid-template-columns:285px minmax(0,1fr)}}
@media(max-width:1150px){.lesson-workspace{grid-template-columns:235px minmax(0,1fr)}.lesson-editor-pane{padding:16px 14px}.lesson-document-header{flex-wrap:wrap}.lesson-meta{grid-template-columns:1fr}.lesson-extra-fields{grid-template-columns:1fr 1fr}}
@media(max-width:800px){.lesson-workspace{grid-template-columns:minmax(0,1fr)}.lesson-outline{position:static;max-height:360px;min-height:180px;border-inline-end:0;border-bottom:1px solid #e4daef}.lesson-outline>header{padding:14px 16px}.lesson-outline h2{margin:8px 0;font-size:19px}.lesson-outline-tools{margin-bottom:8px}.lesson-editor-pane{padding:14px 10px}.lesson-paper-scroll{padding:12px}.lesson-document .lesson-paper{min-width:280px;padding:22px}.lesson-extra-fields{grid-template-columns:1fr}.lesson-document-header,.lesson-meta,.lesson-extra,.lesson-materials{padding-inline:16px}.lesson-welcome{min-height:300px}.lesson-document .template-ribbon{padding:10px;max-height:220px;overflow:auto}.lesson-related-action{margin-block:3px}}

.lesson-media{display:block;max-width:100%;height:auto;margin:12px auto}.lesson-media-block{margin:12px 0;padding:2px}.lesson-media-block.ProseMirror-selectednode{outline:2px solid #7046dc}.lesson-media-dialog{max-width:620px}.lesson-media-dialog input{width:100%}

/* rooty-widget.css */
.rooty-widget { --rooty-accent:#7041dc; --rooty-line:#e8e1ee; --rooty-text:#29213c; --rooty-safe-left:env(safe-area-inset-left,0px); --rooty-safe-right:env(safe-area-inset-right,0px); --rooty-safe-top:env(safe-area-inset-top,0px); --rooty-safe-bottom:env(safe-area-inset-bottom,0px); color:var(--rooty-text); font:14px/1.5 "Segoe UI",sans-serif; }
.rooty-widget [hidden] { display:none!important; }
.rooty-widget button,.rooty-widget input { font:inherit; }
.rooty-widget button { cursor:pointer; }
.rooty-widget button:disabled { opacity:.55;cursor:default; }
.rooty-widget :is(button,input):focus-visible { outline:2px solid var(--rooty-accent);outline-offset:3px; }
.rooty-launcher { position:fixed;z-index:1702;right:max(22px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));width:86px;height:80px;display:grid;place-items:center;border:0;border-radius:20px;background:transparent;padding:5px; }
.rooty-widget .rooty-launcher { cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none; }
.rooty-launcher img { pointer-events:none;-webkit-user-drag:none; }
.rooty-widget[data-dragging=true] .rooty-launcher { cursor:grabbing; }
.rooty-widget[data-dragging=true] .rooty-mascot { animation:none!important;transform:none!important; }
.rooty-mascot { position:relative;display:block;width:76px;aspect-ratio:1386/1135;transform-origin:50% 75%;filter:drop-shadow(0 3px 4px #29213c22); }
.rooty-mascot img { display:block;width:100%;height:100%;object-fit:contain; }
.rooty-launcher:hover .rooty-mascot { transform:rotate(-5deg) translateY(-2px); }
.rooty-eyelid { position:absolute;top:25.6%;width:6.75%;height:12%;background:#080e11;border-radius:50%;transform:scaleY(0);animation:rooty-blink 11s infinite; }
.rooty-eye-left { left:36.8%; }.rooty-eye-right { left:56.6%; }
.rooty-node-glow { position:absolute;pointer-events:none;width:2px;height:2px;border-radius:50%;transform:translate(-50%,-50%); }
.rooty-widget[data-state=thinking] .rooty-node-glow { animation:rooty-node 1.8s ease-in-out infinite; }
@keyframes rooty-node { 0%,70%,100% {box-shadow:0 0 0 0 transparent}35% {box-shadow:0 0 4px 2px #00c6ce99} }
.rooty-launcher-badge,.rooty-drawer-tabs [data-rooty-count] { display:inline-grid;place-items:center;min-width:24px;height:24px;padding:0 5px;border-radius:50px;background:var(--rooty-accent);color:#fff;font-size:12px;font-weight:700; }
.rooty-launcher-badge { position:absolute;right:0;top:0;min-width:28px;height:28px;border:2px solid #fbf9f5;box-shadow:0 2px 7px #7041dc30; }
.rooty-flyout { position:fixed;z-index:1703;right:max(22px,env(safe-area-inset-right));bottom:112px;width:min(330px,calc(100vw - 32px));box-sizing:border-box;padding:18px;border:1px solid var(--rooty-line);border-radius:15px;background:#fff;box-shadow:0 8px 28px #29213c12; }
.rooty-flyout::after { content:"";position:absolute;bottom:-8px;left:calc(var(--rooty-arrow-left,calc(100% - 39px)) - 7px);width:14px;height:14px;border-right:1px solid var(--rooty-line);border-bottom:1px solid var(--rooty-line);background:#fff;transform:rotate(45deg); }
.rooty-flyout[data-placement=below]::after { top:-8px;bottom:auto;transform:rotate(225deg); }
.rooty-flyout-header { display:flex;align-items:center;gap:12px;justify-content:space-between; }
.rooty-flyout-header strong { font-size:19px; }.rooty-flyout p { margin:6px 0 14px;color:#70667d; }
.rooty-flyout-actions { display:flex;flex-wrap:wrap;gap:8px; }.rooty-flyout-actions .button { flex:1 1 130px;min-height:42px;padding:9px 12px;font-size:13px; }
.rooty-close { display:grid;place-items:center;width:34px;height:34px;margin-inline-start:auto;border:0;border-radius:7px;background:transparent;color:#70667d;font-size:18px!important; }
.rooty-close:hover { background:#870f24;color:white; }
.rooty-drawer { position:fixed;z-index:1701;top:0;bottom:0;right:0;display:flex;flex-direction:column;width:min(420px,100vw);box-sizing:border-box;background:#fff;border-inline-start:1px solid var(--rooty-line);box-shadow:-5px 0 24px #29213c0a; }
.rooty-drawer-header { display:flex;align-items:center;gap:12px;padding:22px 22px 10px; }.rooty-drawer-header img { object-fit:contain; }.rooty-drawer-header h2 { margin:0;font-size:22px; }
.rooty-preferences { display:flex;gap:18px;justify-content:flex-end;padding:0 22px 12px;color:#70667d;font-size:12px; }
.rooty-preference { display:flex;align-items:center;gap:6px;cursor:pointer; }.rooty-preference input { width:15px;height:15px;accent-color:var(--rooty-accent); }
.rooty-drawer-tabs { display:flex;margin:0 22px;border-bottom:1px solid var(--rooty-line); }.rooty-drawer-tabs button { display:flex;align-items:center;justify-content:center;gap:7px;flex:1;border:0;border-bottom:3px solid transparent;background:transparent;color:#70667d;padding:13px 6px; }
.rooty-drawer-tabs button[aria-selected=true] { color:var(--rooty-accent);border-bottom-color:var(--rooty-accent);font-weight:650; }
.rooty-drawer-body { min-height:0;flex:1;overflow:auto;overscroll-behavior:contain;padding:20px 22px;scrollbar-gutter:stable; }
.rooty-drawer-footer { padding:12px 110px max(30px,env(safe-area-inset-bottom)) 22px;min-height:90px;box-sizing:border-box;border-top:1px solid var(--rooty-line);display:flex;align-items:flex-start; }
.rooty-drawer-footer button { padding:8px 0;border:0;background:none;color:var(--rooty-accent);text-align:start; }
.rooty-widget .rooty-panel { max-width:none;margin:0;padding:0;border:0;border-radius:0;background:transparent;overflow:visible; }
.rooty-widget .rooty-panel>h2 { display:none; }.rooty-widget .rooty-panel>p:first-of-type { margin:0 0 16px;color:#70667d;font-size:13px; }
.rooty-widget .rooty-panel>p[data-configuration] { font-size:12px;color:#70667d; }.rooty-widget .rooty-panel [data-configuration]:empty { display:none; }
.rooty-widget .rooty-prompts { display:flex;gap:8px;flex-wrap:wrap;margin:16px 0; }.rooty-widget .rooty-prompts .button { padding:8px 10px;min-height:36px;font-size:12px;line-height:1.4;text-align:start; }
.rooty-widget .rooty-chat { display:grid;gap:14px;max-height:none;overflow:visible;margin:16px 0; }.rooty-widget .rooty-message { padding:12px 14px;border:1px solid var(--rooty-line);border-radius:11px;background:#faf7fd; }.rooty-widget .rooty-message p { margin:5px 0 0;white-space:pre-wrap;overflow-wrap:anywhere; }
.rooty-widget .rooty-panel form label { display:grid;gap:8px;font-size:13px; }.rooty-widget .rooty-panel textarea { box-sizing:border-box;width:100%;margin:0;min-height:105px;padding:12px;resize:vertical;border:1px solid #cfc4dc;border-radius:9px;color:var(--rooty-text);background:#fff;font:inherit; }
.rooty-widget .rooty-panel .editor-actions { display:flex;gap:8px;flex-wrap:wrap;margin:12px 0; }.rooty-widget .rooty-panel .editor-actions .button { flex:1;padding:10px;font-size:13px; }
.rooty-widget [data-thinking] { color:var(--rooty-accent);font-size:13px; }.rooty-widget .rooty-panel>small { display:block;color:#70667d;font-size:11px; }.rooty-widget [data-error],.rooty-support-error { color:#9e2139;white-space:pre-wrap;overflow-wrap:anywhere; }.rooty-support-error:empty { display:none; }
.rooty-support-tools { display:flex;gap:14px;align-items:center;flex-wrap:wrap;border-bottom:1px solid var(--rooty-line);padding-bottom:12px;margin-bottom:12px; }
.rooty-support-tools button { padding:4px 0;border:0;background:none;color:var(--rooty-accent);font-size:12px; }
.rooty-ticket-list { display:grid; }.rooty-ticket-list>button { display:grid;gap:6px;padding:16px 0;border:0;border-bottom:1px solid var(--rooty-line);background:transparent;text-align:start;color:var(--rooty-text); }.rooty-ticket-list>button:hover strong { color:var(--rooty-accent); }.rooty-ticket-list strong { font-size:14px;overflow-wrap:anywhere; }.rooty-ticket-list span { overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;color:#70667d;font-size:13px; }.rooty-ticket-list small,.rooty-ticket-meta { font-size:11px;color:#70667d; }
.rooty-ticket-heading { font-size:17px;margin:14px 0 4px;overflow-wrap:anywhere; }.rooty-ticket-messages { display:grid;gap:16px;margin-top:20px; }.rooty-ticket-messages article { padding:0 0 16px;border-bottom:1px solid var(--rooty-line); }.rooty-ticket-messages article.from-support>strong { color:var(--rooty-accent); }.rooty-ticket-messages p { white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0; }.rooty-ticket-messages small { color:#70667d;font-size:11px; }.rooty-support-empty { color:#70667d;text-align:center;padding:32px 0; }
.rooty-widget-announcement { position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%); }
.rooty-widget[data-state=thinking] .rooty-mascot { animation:rooty-thinking 1.8s ease-in-out infinite; }.rooty-widget[data-pulse=notification] .rooty-mascot { animation:rooty-notify 1.3s ease-in-out; }.rooty-widget[data-pulse=ready] .rooty-mascot { animation:rooty-nod .8s ease-in-out; }
@keyframes rooty-blink { 0%,46%,49%,100% {transform:scaleY(0)}47%,48% {transform:scaleY(1)} }
@keyframes rooty-notify { 0%,35%,70%,100% {transform:translateY(0) rotate(0)}18%,53% {transform:translateY(-7px) rotate(-4deg);filter:drop-shadow(0 0 7px #00c6ce66)} }
@keyframes rooty-thinking { 0%,100% {filter:drop-shadow(0 0 2px #00c6ce33);transform:translateY(0)}50% {filter:drop-shadow(0 0 9px #00c6ce99);transform:translateY(-2px)} }
@keyframes rooty-nod { 0%,100% {transform:rotate(0)}35% {transform:rotate(5deg) translateY(2px)}65% {transform:rotate(-2deg)} }
.rooty-widget[data-motion=off] .rooty-mascot,.rooty-widget[data-motion=off] .rooty-eyelid,.rooty-widget[data-motion=off] .rooty-node-glow { animation:none!important; }.rooty-widget[data-motion=off] .rooty-launcher:hover .rooty-mascot { transform:none; }
@media(prefers-reduced-motion:reduce) { .rooty-widget .rooty-mascot,.rooty-widget .rooty-eyelid,.rooty-widget .rooty-node-glow { animation:none!important; }.rooty-widget .rooty-mascot { transform:none!important; } }
@media(max-width:640px) { .rooty-launcher { right:12px;bottom:max(12px,env(safe-area-inset-bottom)); }.rooty-flyout { right:12px;bottom:104px; }.rooty-drawer { width:100vw; }.rooty-drawer-header { padding-top:max(18px,env(safe-area-inset-top)); } }
