/* Kayan visual system: quiet surfaces, clear hierarchy, accessible real controls. */
:root{--navy:#142e42;--ink:#20394b;--quiet:#657987;--accent:#008b7c;--gold:#008b7c;--gold-pale:#e8f5f1;--line:#e5ebef;--shadow:0 4px 16px #142e4205,0 1px 3px #142e4203}
body{background:#f5f7f9;color:var(--ink);font-size:14px;line-height:1.85;-webkit-font-smoothing:antialiased}
h1,h2,h3{letter-spacing:-.4px;font-weight:750}h3{line-height:1.7}
button{min-height:44px;border:1px solid var(--line);border-radius:12px;background:#fff;color:#29485c;font-weight:600;box-shadow:none;transition:background .15s,border-color .15s;line-height:1.7}
button:hover{filter:none;background:#f0f5f7;box-shadow:none}button:active{transform:none;background:#e6eef2}
button.primary,.primary{background:var(--navy);border:1px solid var(--navy);color:#fff;box-shadow:0 3px 8px #142e4210}
button.primary:hover{background:#23465d;border-color:#23465d}button.primary:active{background:#0b2334}
button.subtle{background:#f3f6f8;color:#496375;border-color:#e9eef2;box-shadow:none}
button.danger{color:#a83848;border-color:#f4dce1;background:#fff4f5}
button:disabled{opacity:.5;cursor:wait}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #35aa9b;outline-offset:3px}
input[type=checkbox],input[type=radio]{accent-color:var(--accent)}
input,select,textarea{border-radius:12px;background:#fff;border-color:#dce5eb}
.field{margin-bottom:17px;gap:7px}.field label{font-size:12px;color:#526c7e;font-weight:600}
.field input,.field select,.field textarea{border-radius:12px;background:#fff;font-size:14px;min-height:48px;border-color:#dce5eb;box-shadow:none}
.field input:focus,.field select:focus,.field textarea:focus{background:#fff;border-color:#65b3a7;box-shadow:0 0 0 3px #e9f6f2}
.card,.student-card,.stat,.message,.chart-card{background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow)}
.card{padding:20px}.card-title{margin-bottom:16px}.card-title h3{font-size:15px;font-weight:750}.card-title .ui-icon{color:var(--accent);width:21px;height:21px}
.ui-icon{filter:none;flex-shrink:0}.muted{color:var(--quiet)}
.page-head{margin:22px 0 18px;gap:12px}.page-head h1{font-size:24px;font-weight:800;letter-spacing:-.7px}.page-head h1:after,.page-head h1:before{display:none}.page-head p{font-size:12px;color:var(--quiet)}
.page-head button{padding:10px 14px;border-radius:12px;font-size:12px}
.toolbar{gap:10px}.toolbar.card{padding:12px;border-radius:16px;box-shadow:none}.toolbar input,.toolbar select{font-size:12px;min-height:44px;background:#f9fbfc;border-color:#e6ecef;border-radius:10px}
.workspace-tabs{gap:6px;border:0;background:#eaf0f3;padding:4px;border-radius:13px;margin-top:4px}
.workspace-tabs button{min-height:39px;padding:7px 13px;border:0;color:#657987;font-size:12px;border-radius:10px;box-shadow:none}
.workspace-tabs button.selected{background:#fff;color:#173f50;border:0;box-shadow:0 2px 5px #142e4209}
.topbar.sports-header{background:#132f43;border-bottom:0;box-shadow:0 5px 20px #152c410b;border-radius:0 0 24px 24px;min-height:94px}
.header-brand{font-size:16px;line-height:1.6;gap:10px}.header-brand img{background:transparent;width:48px;height:48px;padding:0;border:1px solid #ffffff20;border-radius:14px;box-shadow:none}
.header-search,.header-help,.mobile-menu{display:grid;place-items:center;width:38px;min-width:38px;min-height:40px;padding:7px;color:#e0efef;border:1px solid #ffffff1f;background:#ffffff08;border-radius:12px;box-shadow:none}
.header-search:hover,.header-help:hover,.mobile-menu:hover{background:#ffffff18}.header-search .ui-icon,.mobile-menu .ui-icon{width:20px;height:20px}
.header-help{font-size:17px}.topbar .avatar{background:#d9e9e6;color:#19483f}.topbar-actions .muted{color:#a9c0ce}.topbar .status-dot{background:#6cd5b7}
.sidebar{background:#fff;color:var(--ink);box-shadow:-8px 0 40px #0b26331a;padding:24px 16px;border-inline-end:1px solid var(--line)}
.sidebar .brand{padding:0 8px 20px;border-bottom:1px solid var(--line);margin-bottom:20px}.sidebar .brand b{color:#19384a;font-size:20px}.sidebar .brand small{color:#657987;font-size:11px}.sidebar .brand .logo{width:48px;height:48px;border-radius:14px;background:#132f43;border:0}
.nav-search>span{font-size:11px;color:#657987}.nav-search input{background:#f6f8fa;border:1px solid #e5ebef;color:#243e52;border-radius:12px;font-size:13px;min-height:46px}.nav-search input::placeholder{color:#657987}
#nav-main,#nav-results{gap:6px}.sidebar .nav button{color:#596f80;background:transparent;border:0;min-height:48px;padding:11px 12px;border-radius:12px}.sidebar .nav button b{font-size:13px;font-weight:550}.sidebar .nav button .ui-icon{color:#657987;width:21px;height:21px}.sidebar .nav button:hover{background:#f6f9fa}
.sidebar .nav button.active{background:#eaf5f1;color:#087467;border:0;box-shadow:none}.sidebar .nav button.active b{font-weight:750}.sidebar .nav button.active .ui-icon{color:#087467}.nav-logout{background:#fff5f5!important;color:#9c4551!important;border:1px solid #f5e4e6!important;font-size:12px}.nav-logout:hover{background:#fceced!important}#nav-empty{color:#657987}
.pill{border-radius:8px;padding:4px 9px;border:0;background:#f0f4f6;color:#607787;font-size:11px;line-height:1.7;font-weight:500;white-space:nowrap}
.pill.positive,.positive{color:#16785e}.pill.positive{background:#eaf7f1}.debt{color:#af374e}.state-pending{background:#fbf3e1;color:#91691c}.state-approved{background:#e6f5ee;color:#1c7354}.state-rejected{background:#fcebef;color:#a33b50}
.belt-chip{display:inline-flex;align-items:center;gap:6px;background:#fff;border:1px solid #e3e9ee;border-radius:8px;font-size:11px;padding:3px 8px;color:#465e70;box-shadow:none;line-height:1.7}
.belt-chip:before{content:'';display:inline-block;width:14px;height:7px;border-radius:2px;background:#e4e9ed;box-shadow:inset 0 0 0 1px #00000010}
.belt-chip.belt-yellow:before{background:#edbd38}.belt-chip.belt-green:before{background:#17a275}.belt-chip.belt-blue:before{background:#238bd5}.belt-chip.belt-red:before{background:#ed3345}.belt-chip.belt-black:before{background:#121b29}.belt-chip.belt-poom:before{background:linear-gradient(#121b29 50%,#ed3345 50%);height:10px}
.fighter-mark{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;display:block;width:100%;height:100%;padding:0!important;margin:0;filter:drop-shadow(0 3px 2px #143e5915)}
.fighter-mark svg,.student-mark .fighter-mark svg{width:100%;height:100%;overflow:visible}
.student-directory{gap:12px}.student-card{position:relative;gap:14px;padding:17px;overflow:hidden}.student-card:after{display:none}.student-card>div:nth-child(2){min-width:0;flex:1}.student-card h3{font-size:15px;font-weight:750;margin:0 0 3px;line-height:1.7}.student-card .muted{font-size:11px;color:#657987;letter-spacing:.3px}.student-card .toolbar{margin:8px 0 0;gap:6px}
.student-mark{display:grid;place-items:center;flex:0 0 72px;width:72px;height:84px;padding:5px 4px;background:#f2f6f8;border:1px solid #e8eff2;border-radius:18px;box-shadow:none}
.student-card>button.student-open{width:42px;min-width:42px;height:44px;padding:0;border:0;background:#f5f8fa;border-radius:13px;color:#657987;align-self:center}.student-open .ui-icon{width:18px;height:18px}
.profile-top{padding:22px;border:0;background:#132f43;color:#fff}.profile-top h2{font-size:22px;font-weight:750;margin-bottom:10px}.profile-top .student-mark{width:84px;height:98px;flex-basis:84px;background:#ffffff12;border-color:#ffffff0a;border-radius:18px}.profile-top .pill{background:#ffffff12;color:#c3d8df}.profile-top .belt-chip{background:#ffffffed;color:#31495a}.profile-top>button{background:#ffffff10;color:#deebef;border-color:#ffffff1f}
.profile-actions{display:flex;gap:10px;margin:0 0 16px;flex-wrap:wrap}.profile-actions>button{flex:1;min-width:85px;font-size:12px}.profile-summary .card{padding:18px}.profile-summary .balance{display:block;font-size:25px;letter-spacing:-.5px;max-width:100%;overflow-wrap:anywhere;line-height:1.6}.profile-summary h3{font-size:13px;color:#657987}.stats-mini>span{padding:8px;background:#f1f8f4;border-radius:10px}.stats-mini>.debt{background:#fdf0f2}.stats-mini b{font-size:23px}
.section-details{padding:0 18px}.section-details>summary{padding:17px 0;font-size:14px;gap:10px}.section-details>summary .ui-icon{width:23px;height:23px;color:#698697;stroke:currentColor}.section-details>summary:after{color:#657987;font-size:22px}.section-details>summary small{font-size:11px}.section-details dl{padding-bottom:15px;font-size:13px}
.family-welcome{position:relative;overflow:hidden;min-height:168px;padding:24px 22px;padding-inline-end:118px;color:#fff;background:linear-gradient(115deg,#193f53,#102b3e);border:0;border-radius:22px;margin-bottom:16px;box-shadow:0 8px 20px #142e4210}
.family-welcome:after{content:'';position:absolute;width:160px;height:160px;left:-48px;top:25px;border:1px solid #ffffff0c;border-radius:50%;pointer-events:none}.family-welcome h2{font-size:23px;font-weight:750;line-height:1.65;margin:9px 0 12px}.family-welcome>small{color:#a8c5cc;font-size:11px}.family-welcome>span{color:#a3beca;font-size:11px}.welcome-art{position:absolute;left:17px;top:28px;width:84px;height:102px;transform:rotate(-4deg);z-index:1}
.family-metrics{display:grid;grid-template-columns:1fr 1fr;gap:12px}.family-metrics .card{padding:17px;display:flex;flex-direction:column;align-items:flex-start;min-width:0;margin-bottom:16px}.family-metrics .card>span{display:flex;align-items:center;gap:7px;font-size:12px;color:#657987}.family-metrics .ui-icon{width:20px;height:20px;color:#008b7c}.family-metrics strong{font-size:25px;letter-spacing:-.6px;line-height:1.5;margin-top:14px;max-width:100%;overflow-wrap:anywhere}.family-metrics strong>small{font-size:11px;font-weight:400;letter-spacing:0}.family-metrics .card>small{font-size:11px;color:#657987}
button.text-link{border:0;background:transparent;box-shadow:none;color:#087d70;font-size:12px;padding:7px 0;min-height:38px;text-align:start}button.text-link:hover{background:transparent;color:#064c47}
.family-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:2px 0 20px}.family-action{display:flex;flex-direction:column;align-items:center;min-width:0;gap:10px;padding:10px 1px;border:0;background:transparent;box-shadow:none}.family-action b{font-size:11px;font-weight:600}.family-action:hover{background:transparent}.tile-icon,.quick-primary .service-tile .tile-icon{display:grid;place-items:center;width:46px;height:46px;flex-shrink:0;border-radius:14px;background:#ebf5f2;color:#168b7a;border:1px solid #e0eeea;box-shadow:none;transform:none}.tile-icon .ui-icon{width:25px;height:25px;stroke-width:1.6;filter:none}
.family-action:nth-child(2) .tile-icon{background:#f4f0e8;color:#9d8154;border-color:#eee7dc}.family-action:nth-child(3) .tile-icon{background:#edf1f8;color:#6683ae;border-color:#e3eaf4}.family-action:nth-child(4) .tile-icon{background:#f1edf5;color:#9477a3;border-color:#e9e1f0}
.family-profile{margin-top:8px}.family-profile>.insurance-card{box-shadow:none;background:#f8fafb;border-radius:14px;margin:0}.family-profile .card-title{margin-bottom:12px}
.manager-welcome{position:relative;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:112px;overflow:hidden;border-radius:20px;padding:21px;color:#fff;background:#153448;border:0;box-shadow:0 7px 18px #142e4209}.manager-welcome>div{position:relative;z-index:1}.manager-welcome small{color:#9ab9c4;font-size:11px}.manager-welcome h2{font-size:21px;font-weight:750;line-height:1.6;margin:7px 0 0}.manager-welcome img{position:absolute;left:0;bottom:0;width:175px;height:112px;object-fit:cover;opacity:.48;mask-image:linear-gradient(90deg,#000 45%,transparent)}
.manager-queue{margin:24px 0 18px}.manager-queue h2{font-size:16px;font-weight:750}.manager-queue .card-title>small{font-size:11px;color:#657987}.queue-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:20px}.queue-item{display:grid;grid-template-columns:1fr auto;gap:9px;padding:15px 12px;border:1px solid var(--line);border-radius:16px;background:#fff;min-width:0;box-shadow:var(--shadow)}.queue-item>span{display:grid;place-items:center;background:#eff7f4;border-radius:9px;width:29px;height:29px;color:#2a9583}.queue-item .ui-icon{width:18px;height:18px}.queue-item:nth-child(2)>span{background:#edf1f8;color:#6a84a6}.queue-item:nth-child(3)>span{background:#f8f2e8;color:#ab8751}.queue-item b{font-size:25px;line-height:1.2;font-weight:750}.queue-item small{grid-column:1/-1;font-size:11px;color:#657987;line-height:1.6;text-align:start}
.today-classes .card-title h3{font-size:15px}.today-classes .list-row{gap:10px;padding:15px 0}.today-classes .list-row>div{min-width:0;flex:1}.today-classes .list-row b{font-size:13px;font-weight:650}.today-classes .list-row small{display:block;font-size:11px;color:#657987;margin-top:3px}.today-classes .time{font-size:12px;color:#617c8e;white-space:nowrap}.today-classes .list-row button{background:#e9f5f0;color:#08735e;border:1px solid #deeee6;font-size:12px;padding:7px 12px;min-height:40px;box-shadow:none}
.manager-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:20px 0}.manager-shortcuts>button{display:flex;align-items:center;gap:10px;min-width:0;padding:14px 12px;text-align:start;background:#fff;border:1px solid var(--line);border-radius:15px}.manager-shortcuts b{font-size:12px;font-weight:600}.manager-shortcuts>button>span:last-child{margin-inline-start:auto;color:#657987}.manager-shortcuts .tile-icon{width:34px;height:36px;flex:0 0 34px;border-radius:10px}.manager-shortcuts .ui-icon{width:20px;height:20px}
.insurance-card{border-inline-start:3px solid #59b09a}.insurance-warning{border-inline-start-color:#d6ab60}.insurance-expired{border-inline-start-color:#cc7f8d}.insurance-card h3{font-size:14px}.insurance-card .toolbar:empty{display:none}.insurance-dates{gap:10px}.insurance-dates>span{background:#f5f8fa;border-radius:10px;padding:10px;font-size:11px}.insurance-dates b{font-size:14px;color:#455f73}.insurance-card .pill{font-size:11px}
.family-attendance{display:grid;gap:10px}.attendance-history{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0}.attendance-history b{font-size:14px}.attendance-history small{display:block;color:#657987;font-size:11px;margin-top:4px}.attendance-pill{padding:6px 10px;font-size:11px;border-radius:8px;white-space:nowrap}.status-present{background:#e6f5ed;color:#1e7756}.status-absent{background:#fcebed;color:#a34357}.status-leave{background:#eaf1fa;color:#476c9f}.status-late{background:#fbf3e3;color:#9b742d}
.exam-card{display:flex;gap:14px;align-items:flex-start}.exam-card h3{font-size:15px}.exam-card small{font-size:12px;color:#657987}.exam-card p:empty{display:none}
.weekdays{gap:5px}.weekdays button{border:0;background:#ecf1f4;color:#657987;font-size:12px;border-radius:10px;min-height:42px;box-shadow:none}.weekdays button.selected,.children button.selected{background:#19394d;color:#fff;border:0;box-shadow:none}.children button{font-size:12px;box-shadow:none}
.class-card{padding:19px}.class-card .time{font-size:14px;font-weight:650;background:#f1f6f8;color:#3c6378;border-radius:9px;padding:6px 10px}.class-card p{font-size:12px;color:#657987}.class-card .toolbar{gap:8px}.class-card .toolbar button{font-size:12px}.class-tags{gap:7px}
.segmented{background:#eaf0f3;border-radius:13px;padding:4px;gap:4px}.segmented button{border-radius:10px;min-height:42px;font-size:12px;color:#657987}.segmented button.selected{background:#fff;color:#193f51;box-shadow:0 2px 5px #142e4209;border-radius:10px}
.list-row{border-bottom-color:#edf1f4}.empty{border:1px dashed #dce5ea;background:#fafcfd;border-radius:16px;padding:30px 18px;color:#657987;font-size:12px}.empty strong{font-size:14px;color:#5e7a8d;margin-bottom:7px}.notice{border:1px solid #efe4cc;background:#fffbf2;color:#91713a;font-size:12px;border-radius:12px}
.table-wrap{border-radius:16px;border-color:var(--line)}th{background:#f7f9fb;color:#657987;font-size:12px;font-weight:500}td{font-size:13px;border-color:#edf1f4}.stat .number{font-size:28px;color:#183d52}.stat .label{font-size:12px}.stat .icon{color:#268b7d}
.chart-card h3{font-size:15px}.message.unread{border-inline-start:3px solid #4ba997}.message{padding:18px}.receipt-amount{background:#f3f7f9;border-radius:12px}.receipt-amount b{font-size:22px;max-width:100%;overflow-wrap:anywhere}.receipt-image{border:1px solid var(--line);border-radius:14px}.chat-thread{background:#f4f7f9;border-radius:16px;padding:14px}.chat-bubble{border-color:#e5edf1;box-shadow:none}.chat-bubble.mine{background:#e8f5ee;border-color:#deeee5}.chat-bubble small{font-size:10px;color:#657987}
.journey-steps{list-style:none;display:flex;padding:0;margin:4px 0 24px;gap:8px;counter-reset:step}.journey-steps li{counter-increment:step;flex:1;color:#657987;font-size:12px;border-bottom:2px solid #edf1f4;padding:8px 0 13px;white-space:nowrap}.journey-steps li:before{content:counter(step,persian);display:inline-grid;place-items:center;background:#edf2f5;border-radius:8px;height:25px;width:25px;margin-inline-end:6px;font-size:11px}.journey-steps [aria-current]{color:#153f50;border-color:#279583;font-weight:750}.journey-steps [aria-current]:before{color:#fff;background:#193f50}
.inline-class,.optional-fields{padding:14px;border-radius:13px;background:#f7f9fb;border:1px solid #e5edf1;margin:16px 0}.inline-class>summary,.optional-fields>summary{font-size:13px;font-weight:600;cursor:pointer;color:#527486}.inline-class[open]>summary,.optional-fields[open]>summary{margin-bottom:17px}.inline-class>.muted{font-size:11px;display:block;margin-top:10px}.class-days{border:1px solid #e3ebef;border-radius:13px;margin:14px 0;padding:13px}.class-days legend{font-size:12px;color:#70899b;padding:0 7px}.class-days .choice-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.class-days .check{font-size:12px;background:#fff}.registration-classes{max-height:260px;overflow-y:auto}.class-choice{border-radius:12px;border-color:#e1e9ee;background:#fff;padding:13px}.class-choice:has(input:checked){background:#eef8f3;border-color:#77bba8;box-shadow:none}.class-choice small{font-size:11px}.class-choice input{accent-color:#168b75}
.review-card{background:#f3f8f7;border:1px solid #dfece6;border-radius:15px;padding:19px;margin-bottom:16px}.review-card h3{margin:0 0 9px;font-size:18px}.review-card dl{display:grid;grid-template-columns:90px minmax(0,1fr);gap:13px;font-size:13px}.review-card dt{color:#657987}.review-card dd{margin:0;font-weight:600}.review-card p{font-size:12px}.class-detail>h3{font-size:15px;margin:20px 0}
.receipt-preview-wrap{display:grid;gap:9px}.receipt-preview-wrap img{max-height:190px;max-width:100%;border:1px solid #e1eaee;border-radius:12px;object-fit:contain;background:#f8fafb}.receipt-preview-wrap small{font-size:11px;color:#657987;word-break:break-word}
input[type=file]{font-size:12px;max-width:100%;width:100%;padding:10px;background:#f8fbfa;border:1px dashed #b9d5cb;border-radius:13px}input[type=file]::file-selector-button{font:inherit;background:#e5f1ec;color:#326b5b;padding:9px 13px;border:0;border-radius:9px;margin-inline-end:9px}
.attendance-control{display:flex;flex-direction:column;gap:15px;align-items:stretch;border:1px solid #e1eaf0;border-radius:15px;background:#fff;padding:16px;margin:12px 0}.attendance-control>b{font-size:14px;font-weight:650}.attendance-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.attendance-options button{font-size:11px;padding:8px 3px;min-height:44px;border:1px solid #e0e8ed;background:#f8fafb;color:#657987;border-radius:10px;box-shadow:none}.attendance-options button[aria-pressed=true]{font-weight:750;box-shadow:inset 0 0 0 1px currentColor}.attendance-options button[aria-pressed=true][data-value="حاضر"]{background:#e5f5ec;color:#1a825b;border-color:#8cc8ae}.attendance-options button[aria-pressed=true][data-value="غایب"]{background:#fae9ec;color:#b34559;border-color:#dea2b0}.attendance-options button[aria-pressed=true][data-value="مرخصی"]{background:#e9f0fa;color:#4779ad;border-color:#9ab9df}.attendance-options button[aria-pressed=true][data-value="تأخیر"]{background:#faf1df;color:#a17b2c;border-color:#d9c393}.attendance-control select{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none;clip-path:inset(50%)}
.permission-card{background:#fff;border-color:#e1e9ef;border-radius:13px}.permission-card legend{font-size:13px;color:#3f6074}.permission-choices label{background:#f5f8fa;border-radius:9px}.permission-group{background:#fafcfd;border-color:#e5ecf0;border-radius:14px}.permission-group>summary{font-size:13px;color:#536e81}.permission-all{color:#22816f}.guide-topic{border-radius:14px;border-color:#e3ebef}.settings-credit{box-shadow:none;border:0;background:transparent;color:#657987}
.footer-note{font-size:10px;color:#657987;margin-top:24px}.form-actions{gap:10px;border-color:#edf2f5;padding-top:17px}.form-actions>button{min-height:46px}
dialog{background:#fff;border:1px solid #e0eaef;border-radius:22px;box-shadow:0 30px 90px #0c27383d;padding:22px}dialog::backdrop{background:#0f263c80;backdrop-filter:blur(4px)}.dialog-title{background:#fff;border-bottom:1px solid #e8eef2;padding-bottom:16px;margin-bottom:20px}.dialog-title h2{font-size:18px;font-weight:750}.dialog-title button[data-action=close]{border:0;background:#f2f6f8;color:#657987;font-size:24px;border-radius:12px;box-shadow:none}
#toast{border-radius:14px;background:#18384c;box-shadow:0 8px 25px #122c4230;font-size:12px}

/* Financial values remain readable within their own column, including 12-digit amounts. */
.stat{min-width:0}.stat>b{max-width:100%;overflow-wrap:anywhere;line-height:1.6}
.finance-toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end}.finance-toolbar>button{grid-column:1/-1;justify-self:start;background:transparent;color:#587284;border:0;padding:5px 0;min-height:34px;font-size:11px}.finance-toolbar label{display:flex;flex-direction:column;gap:5px;font-size:11px;color:#657987;min-width:0}.finance-toolbar input,.finance-toolbar select{width:100%;min-width:0}.finance-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.finance-stats .stat{padding:14px 10px}.finance-stats .stat>span{font-size:11px;color:#657987}.finance-stats .stat>b{font-size:19px;letter-spacing:-.3px}.finance-stats .stat>small{color:#657987;font-size:10px}
.finance-students .student-mark{width:42px;height:46px;flex-basis:42px;border-radius:12px;color:#468d81;background:#eff7f4;border-color:#e4efe9}.finance-students .student-mark .ui-icon{width:24px;height:24px}.finance-students .student-card{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:start;gap:12px 10px;text-align:right}.finance-student-info{min-width:0;overflow-wrap:break-word}.finance-student-info .finance-balance{display:block;font-size:12px}.finance-month{display:grid;gap:2px;margin:10px 0 0;font-size:12px;color:var(--quiet)}.finance-month strong{font-size:14px;color:var(--ink)}.finance-students .finance-student-actions{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:0;gap:8px}.finance-student-actions>button{min-width:0;min-height:44px;padding:8px 11px;font-size:12px;white-space:normal}
/* Public entry uses the same type and control hierarchy; preserve full hero image. */
.login-page{background:#f8fafb}.public-header{background:#fff;height:88px;padding:14px 22px}.public-brand strong{font-size:16px}.public-brand img{border-radius:14px;width:48px;height:48px}.manager-entry{font-size:11px!important;background:#f2f6f8!important;color:#526f83!important;border:1px solid #e5ecf0!important;border-radius:10px!important}
.login-hero{border-bottom:0}.hero-underline{background:#47b8a4;height:3px;width:48px}.public-updates{padding:24px 22px 0}.public-updates>h2{font-size:18px;text-align:start;justify-content:flex-start;font-weight:750;margin-bottom:15px}.public-updates>h2:before,.public-updates>h2:after{display:none}.public-featured{gap:12px}.featured-tile{border-radius:16px;box-shadow:none}.featured-tile b{font-size:13px}.featured-icon{font-size:22px}.login-access{padding:16px 22px 20px}.access-notice{font-size:12px;border:1px solid #e4ecef;background:#fff;border-radius:12px;color:#657987}.role-options{gap:12px}.role-options button{min-height:56px!important;font-size:16px!important;border-radius:13px!important;box-shadow:none!important}.role-options .student-entry{background:#15384b!important;border-color:#15384b!important;color:#fff!important}.role-options .parent-entry{background:#fff!important;border:1px solid #dce6eb!important;color:#426377!important}.role-icon{font-size:21px!important}.role-arrow{font-size:24px!important}.login-box{background:#fff;border-color:#e4ecf0;box-shadow:var(--shadow);border-radius:18px}.login-help{font-size:11px}
@media(max-width:899px){
 .main{padding-bottom:112px;transition:padding-bottom .24s ease}.dock-collapsed .main{padding-bottom:40px}
 .topbar.sports-header{min-height:84px;margin-bottom:20px;border-radius:0 0 22px 22px}.header-brand{font-size:12px;gap:8px}.header-brand img{width:42px;height:42px;border-radius:12px}.topbar-actions{gap:6px}.topbar-actions>div{display:none}.header-search,.mobile-menu{width:35px;min-width:35px;min-height:37px}.header-help{display:none;width:35px;min-width:35px;min-height:37px}
 .page-head h1{font-size:22px}.page-head{margin:21px 0 16px}.card{padding:17px}.card-title h3{font-size:14px}.student-card{padding:15px;gap:11px}.student-mark{width:66px;height:78px;flex-basis:66px;border-radius:16px}.student-card h3{font-size:14px}.student-card .muted{font-size:11px}.student-card>button.student-open{width:40px;min-width:40px}.profile-top{padding:20px}.profile-top h2{font-size:21px}.profile-top .student-mark{width:80px;height:92px;flex-basis:80px}
 .family-metrics .card{padding:15px}.family-metrics strong{font-size:23px}.family-profile>.insurance-card{padding:13px}.insurance-dates b{font-size:13px}.insurance-card .pill{font-size:10px;padding:4px 7px}.insurance-dates>span{padding:8px}.family-welcome h2{font-size:22px}
 .manager-welcome{min-height:106px;padding:20px}.manager-welcome h2{font-size:20px}.queue-item{padding:13px 10px;gap:9px}.queue-item small{font-size:10px}.manager-shortcuts>button{padding:13px 10px;gap:8px}.manager-shortcuts b{font-size:11px}.today-classes .list-row small{font-size:10px}.today-classes .list-row b{font-size:12px}
 .bottom-dock{--dock-peek:24px;left:12px;right:12px;bottom:var(--dock-bottom,0px)}.dock-handle{width:56px;border-radius:13px 13px 0 0;background:#fff;border-color:#e6ecef;box-shadow:none}.dock-handle>span{width:25px;height:3px;background:#b0c1c9}.bottom-dock.collapsed .dock-handle{background:#173b4d;border-color:#173b4d;box-shadow:0 -2px 10px #16374a10}.bottom-dock.collapsed .dock-handle>span{background:#9ecabe}
 .bottom-dock .mobile-bottom{background:#fff;border:1px solid #e1e9ed;border-bottom:0;border-radius:20px 20px 0 0;box-shadow:0 -6px 24px #1b374a0a;padding-top:7px}.bottom-dock .mobile-bottom button{font-size:11px;border-radius:12px;color:#657987;gap:4px;background:transparent;box-shadow:none}.bottom-dock .mobile-bottom button.active{color:#147d69;background:#eaf5f0;border:0;box-shadow:none}.bottom-dock .mobile-bottom .ui-icon{width:22px;height:22px}
 dialog{padding:20px;border-radius:20px}.dialog-title{top:-20px}.dialog-title h2{font-size:17px}.form-actions{flex-wrap:wrap;justify-content:space-between}.form-actions>button{flex:1;min-width:95px}.class-card .toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.class-card .toolbar button{font-size:11px;min-height:43px;padding:8px 6px}.class-card .time{font-size:12px}.class-card p{font-size:11px}.review-card dl{font-size:12px}
 .public-header{height:78px;padding:12px 16px}.public-brand strong{font-size:13px}.public-brand img{width:42px;height:42px}.public-updates{padding:20px 16px 0}.public-updates>h2{font-size:17px}.login-access{padding:14px 16px 18px}
}
@media(min-width:380px) and (max-width:899px){.header-help{display:grid}}
@media(max-width:350px){.header-brand{font-size:11px;gap:6px}.header-brand img{width:36px;height:36px}.header-search,.mobile-menu{width:32px;min-width:32px}.topbar-actions{gap:4px}.student-mark{width:57px;height:70px;flex-basis:57px}.student-card{padding:12px;gap:9px}.student-card h3{font-size:13px}.student-card .toolbar{gap:4px}.student-card .pill,.student-card .belt-chip{font-size:10px;padding:3px 6px}.student-card>button.student-open{width:34px;min-width:34px}.family-welcome{padding:20px 16px;padding-inline-end:92px}.family-welcome h2{font-size:19px}.welcome-art{width:70px;left:12px}.family-actions{gap:4px}.family-action b{font-size:10px}.family-metrics{gap:9px}.family-metrics .card{padding:12px}.family-metrics .card>span{font-size:11px;gap:5px}.family-metrics strong{font-size:21px}.family-metrics .ui-icon{width:18px;height:18px}.queue-grid{gap:8px}.queue-item{padding:12px 8px}.queue-item small{font-size:9px}.queue-item b{font-size:23px}.queue-item>span{width:24px;height:26px}.manager-shortcuts{gap:8px}.manager-shortcuts>button{padding:11px 8px;gap:6px}.manager-shortcuts b{font-size:10px}.manager-shortcuts .tile-icon{width:29px;flex-basis:29px;height:32px}.journey-steps li{font-size:10px}.journey-steps li:before{width:22px;height:22px;margin-inline-end:4px}.review-card dl{grid-template-columns:73px minmax(0,1fr)}.profile-actions{gap:6px}.profile-actions>button{font-size:11px;min-width:75px}}
@media(prefers-reduced-motion:reduce){button,.main,.bottom-dock{transition:none;animation:none}}
@media print{body{background:#fff;color:#111}.manager-queue,.manager-shortcuts,.profile-actions,.family-actions,.header-search{display:none}.card,.student-card,.stat,.chart-card{background:white;box-shadow:none;border-color:#ddd;break-inside:avoid}.main,.dock-collapsed .main{padding-bottom:0!important}.family-welcome,.profile-top{background:white;color:#16364a;box-shadow:none;border:1px solid #ddd}.profile-top .pill{color:#16364a}.attendance-control select{position:static;width:auto;height:auto;opacity:1;clip-path:none}.footer-note{display:none}}

.role-icon .ui-icon{width:23px;height:23px;vertical-align:middle}.featured-icon .ui-icon{width:23px;height:23px}.header-help .ui-icon{width:20px;height:20px}

/* Scoped notification selection and compact account actions. */
.message-roles{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.message-roles .check{padding:9px 12px;border:1px solid var(--line);border-radius:10px;font-size:12px}.message-roles .check:has(input:checked){background:#eaf5f1;border-color:#79b6a7;color:#167a68}.message-tools{margin:9px 0}.message-tools button{font-size:11px;padding:7px 10px}.message-recipients{max-height:260px;overflow:auto;border:1px solid var(--line);border-radius:13px;padding:5px 12px;margin:12px 0}#message-search{width:100%;min-height:44px;padding:10px 12px}.message-recipient{display:flex;align-items:center;gap:11px;padding:12px 2px;border-bottom:1px solid #edf1f4;cursor:pointer}.message-recipient:last-child{border:0}.message-recipient input{width:18px;height:18px;flex-shrink:0}.message-recipient b{font-size:13px;overflow-wrap:anywhere}.message-recipient small{display:block;color:var(--quiet);font-size:11px}.message-recipient[hidden]{display:none}.student-account-actions{margin:20px 0;padding:0 16px}.student-account-actions summary{padding:15px 0;font-size:12px;color:var(--quiet)}.student-account-actions .toolbar{padding-bottom:15px}.tuition-current{display:flex;justify-content:space-between;gap:12px;margin:0 0 14px;font-size:12px;color:var(--quiet)}.tuition-current b{color:var(--ink);overflow-wrap:anywhere}.directory-filters>select{min-width:0;flex:1}.directory-filters>input{width:100%;flex-basis:100%}.receipt-card.deleted{background:#f8fafb}.bill-result-list{max-height:200px;overflow:auto}

.receipt-cleanup-list{max-height:45dvh;overflow:auto;border:1px solid var(--line);border-radius:16px;padding:8px}.receipt-cleanup-list small{display:block;line-height:1.9}.receipt-cleanup-list [hidden]{display:none}.receipt-card .toolbar{flex-wrap:wrap}

/* Visible insurance entry and mixed-installation guidance. */
.manager-insurance{margin:14px 0 20px}.insurance-entry{display:flex;align-items:center;gap:13px;width:100%;padding:17px;text-align:start;background:#e9f5f1;border:1px solid #c7e4da;border-radius:16px;color:#194b43}.insurance-entry .tile-icon{display:grid;place-items:center;flex:0 0 40px;width:40px;height:44px;background:#d3eae2;border-radius:12px}.insurance-entry>span:nth-child(2){display:flex;flex-direction:column;gap:4px;min-width:0}.insurance-entry b{font-size:16px}.insurance-entry small{font-size:11px;font-weight:400;line-height:1.7;color:#507269}.insurance-entry>span:last-child{margin-inline-start:auto;font-size:25px}.server-update-notice{display:flex;flex-direction:column;gap:7px;border:1px solid #ead7b1;align-items:flex-start}.server-update-notice p,.insurance-unavailable p{margin:0;line-height:1.9}.server-update-notice small{font-size:11px}.server-update-notice button{margin-top:4px}.insurance-unavailable{display:grid;gap:14px}.insurance-unavailable h3{margin:0}.header-brand>[dir=ltr],.public-brand>[dir=ltr]{letter-spacing:.2px}@media print{.manager-insurance,.server-update-notice{display:none}}

/* Public home cards are controls, with the existing visual treatment. */
button.featured-tile{font:inherit;text-align:start;border:0;cursor:pointer;min-width:0;display:block}
button.access-notice{font:inherit;display:flex;align-items:center;justify-content:center;width:100%;cursor:pointer}
.featured-tile:focus-visible,.access-notice:focus-visible{outline:3px solid #147b92;outline-offset:3px}
.public-news-list article{overflow-wrap:anywhere}
.public-news-list article p{white-space:pre-wrap}
.public-news-list article a{display:block;margin-top:10px;color:#17667b;text-decoration:underline}
#public-news-dialog{display:grid;gap:14px}
#public-news-dialog article{padding:14px;border:1px solid #e4ecef;border-radius:12px}
