/* Scoped to the founder workspace. Shared learning and tutor pages are unchanged. */
body.founder { background:#f8faf9; --desk-rule:#dce4df; --desk-muted:#53685f; }
.founder * { letter-spacing:0; }
body.founder .intake-main { max-width:1480px; padding:32px 36px 80px; gap:22px; }
.founder .mast { max-width:1480px; padding-inline:36px; }
.founder #deskTabs img { width:18px; height:18px; }
.founder .board-buttons .btn { border-radius:6px; min-height:40px; font-size:13px; }
.founder .chapter-nav { border-bottom:1px solid var(--desk-rule); background:#fff; }
.founder .desk-heading { display:flex; justify-content:space-between; align-items:center; gap:18px; }
.founder .desk-heading h1 { font:400 36px/1.15 var(--serif); margin:3px 0 0; text-align:left; }
.desk-date { margin:0; font:500 12px/1.5 var(--sans); color:var(--desk-muted); }
.desk-session { display:flex; align-items:center; gap:10px; }
.desk-session .small { color:var(--desk-muted); margin:0; }
.desk-glyph { width:18px; height:18px; flex:0 0 18px; display:inline-block; vertical-align:middle; }
.desk-icon { display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; flex:0 0 40px; padding:0; border:1px solid var(--desk-rule); border-radius:6px; background:#fff; color:var(--ink); cursor:pointer; }
.desk-icon:hover { background:#eef4ef; }
.desk-icon:disabled { opacity:.4; cursor:default; }
.desk-icon[hidden] { display:none; }
.founder :is(button,a,input,select,summary,[tabindex]):focus-visible { outline:3px solid #a33d50; outline-offset:3px; }
.founder .tabs { padding:0; gap:8px; border:0; border-bottom:1px solid var(--desk-rule); border-radius:0; background:transparent; }
.founder .tab-btn { border-radius:4px 4px 0 0; min-height:48px; padding:12px 16px; display:inline-flex; align-items:center; gap:8px; border-bottom:3px solid transparent; font-size:14px; }
.founder .tab-btn[aria-selected="true"] { background:#edf3ef; color:var(--ink); border-bottom-color:#0e5d57; }
.founder .tab-btn[aria-selected="true"] .tab-count { background:#dbe8df; color:var(--ink); }
.founder .tab-count { margin-left:0; }
.founder .tab { gap:24px; }
.founder .tool { border-radius:6px; min-height:40px; display:inline-flex; align-items:center; justify-content:center; gap:7px; }
.founder .kpis { grid-template-columns:repeat(5,minmax(0,1fr)); gap:0; padding:6px 0 20px; border-bottom:1px solid var(--desk-rule); }
.founder .kpi { background:transparent; border:0; border-radius:0; border-left:1px solid var(--desk-rule); padding:0 20px; gap:8px; }
.founder .kpi:first-child { border-left:0; padding-left:0; }
.founder .kpi b { font:500 26px/1.1 var(--sans); }
.founder .kpi .eye { font:500 12px/1.4 var(--sans); text-transform:none; color:var(--desk-muted); }
.founder .kpi .note { display:block; font:400 11px/1.4 var(--sans); color:var(--desk-muted); }
.founder .kpi form.balance { display:flex; gap:6px; align-items:center; margin-top:6px; }
.founder .kpi form.balance input { width:84px; font:500 12px/1.2 var(--sans); padding:4px 6px; border:1px solid var(--desk-rule); border-radius:6px; background:transparent; color:inherit; }
.founder .kpi form.balance .tool { padding:4px 10px; font-size:12px; }
.founder .board-actions { position:static; border:0; background:transparent; padding:0; gap:10px; }
.founder #boardSearch,.founder #librarySearch { border:1px solid #b9c9c0; border-radius:6px; font-size:15px; min-height:42px; }
.founder #boardSearch { flex:1 1 240px; }
.founder .board-actions select { border:1px solid var(--desk-rule); border-radius:6px; min-height:42px; padding:8px 28px 8px 10px; background:#fff; color:var(--ink); font:13px var(--sans); max-width:100%; }
.founder #boardNote:empty { display:none; }
.founder .board-buttons { gap:6px; }
.desk-enquiries { border-bottom:1px solid var(--desk-rule); padding:0 0 14px; }
.desk-enquiries summary { cursor:pointer; width:fit-content; font:500 13px/1.5 var(--sans); color:var(--desk-muted); padding:6px 0; }
.desk-enquiries #requestsPanel { padding-top:16px; }
.founder .families-grid { grid-template-columns:minmax(0,1fr) 260px; gap:32px; }
.founder .families-main { gap:28px; }
.founder .section-heading { display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; }
.founder .section-heading h2 { margin:0; font:600 15px/1.5 var(--sans); }
.founder .section-heading > span { font:12px/1.5 var(--mono); color:var(--desk-muted); }
/* A folder is a folder: the icon and the name. Everything that used to crowd
   the tile lives inside it now, one press away. */
.founder .folder-grid { grid-template-columns:repeat(auto-fill,minmax(190px,1fr)); gap:14px; }
.founder .folder-tile { display:flex; flex-direction:column; align-items:flex-start; justify-content:center; border:1px solid var(--desk-rule); border-radius:6px; padding:20px 18px; gap:12px; min-height:112px; width:100%; transition:border-color .15s; box-shadow:none; }
.founder .folder-tile:hover { transform:none; border-color:#759785; }
.founder .folder-tile[aria-pressed="true"] { border-color:var(--oxblood); box-shadow:inset 3px 0 var(--oxblood); }
.founder .folder-icon { width:28px; height:28px; margin:0; opacity:.7; }
.founder .tile-name { font:600 19px/1.25 var(--serif); }
.person-initial { display:inline-grid; place-items:center; width:28px; height:28px; min-width:28px; border-radius:50%; background:#e9eff5; color:#3a5d77; font:600 12px var(--sans); font-style:normal; text-decoration:none; }
/* How each child in a folder signs in, read straight off the folder's own Students box. */
.folder-signins { list-style:none; margin:0 0 14px; padding:0; display:grid; gap:6px; }
.folder-signins li { font:13px/1.5 var(--sans); color:var(--desk-muted); }
.folder-signins b { color:var(--ink); font-weight:600; }
.founder #tutors { position:static; gap:0; border-left:1px solid var(--desk-rule); padding-left:24px; }
.founder .tutor-item { border:0; border-bottom:1px solid var(--desk-rule); border-radius:0; background:transparent; padding:16px 0; gap:5px; position:relative; }
.tutor-grip { position:absolute; right:0; top:17px; opacity:.35; }
.founder .tutor-item .client-name { font:600 15px/1.5 var(--sans); text-decoration:none; padding-right:22px; }
.founder .tutor-item .small { font-size:12px; }
.founder .tutor-item .tool { font-size:12px; min-height:34px; }
.founder .board-sheet,.founder .passcode-card { border-radius:6px; }
.founder .household,.founder .tutor-view { border:0; border-top:2px solid var(--ink); border-radius:0; padding:24px 0 0; background:transparent; }
.founder .view-title { font-size:30px; }
.founder .folder-boxes { grid-template-columns:repeat(4,minmax(0,1fr)); gap:0; border-block:1px solid var(--desk-rule); }
.founder .box { border:0; border-right:1px solid var(--desk-rule); border-radius:0; padding:16px; background:transparent; }
.founder .box:last-child { border-right:0; }
.founder .box[aria-expanded="true"] { background:#eaf1ed; box-shadow:inset 0 -2px #0e5d57; }
.founder .box-title { font-size:14px; }
.founder .box-line { font-size:12px; }
.founder .profiles { gap:24px; }
.founder .profile { border:0; border-top:1px solid var(--desk-rule); border-radius:0; padding:20px 0; background:transparent; }
.founder .profile.tutor { background:transparent; }
.founder .small-tabs { gap:0; }
.founder .small-tabs .tab-btn { font-size:12px; min-height:38px; padding:8px 10px; }
.founder .family.panel,.founder .child-open { border-radius:0; box-shadow:none; }
.founder .lib-card { border-radius:6px; border:1px solid var(--desk-rule); }
.founder .lib-thumb { border-radius:4px; }
.founder .person { border-radius:0; }
.founder #deskNote { color:var(--desk-muted); }
.founder .skip-link { position:fixed; left:16px; top:-100px; padding:10px 18px; background:#fff; z-index:30; }
.founder .skip-link:focus { top:10px; }
@media (max-width:1050px) {
 .founder .families-grid { grid-template-columns:minmax(0,1fr) 220px; gap:20px; }
 .founder #tutors { padding-left:18px; }
 body.founder .intake-main,.founder .mast { padding-inline:24px; }
}
@media (max-width:900px) {
 .founder .families-grid { grid-template-columns:minmax(0,1fr); }
 .founder #tutors { padding-left:0; border-left:0; }
 .founder .folder-boxes { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .founder .kpi { padding-inline:12px; }
}
@media (max-width:600px) {
 body.founder .intake-main { padding:24px 18px 60px; gap:20px; }
 .founder .mast { padding-inline:18px; }
 .founder .desk-heading h1 { font-size:28px; }
 .founder .desk-label { display:none; }
 .desk-session { align-self:flex-start; }
 .desk-session .small { display:none; }
 .founder .kpis { grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px 0; }
 .founder .kpi:nth-child(4) { border-left:0; padding-left:0; }
 .founder .kpi b { font-size:23px; }
 .founder .kpi .eye { font-size:11px; }
 .founder .tab-btn { padding:10px 12px; font-size:13px; }
 .founder #boardSearch { flex-basis:100%; }
 .founder .board-actions select { flex:1; width:40%; }
 .founder .board-buttons { width:100%; }
 .founder .board-buttons .tool { flex:1; font-size:12px; padding-inline:8px; }
 .founder .folder-grid { grid-template-columns:minmax(0,1fr); }
 .founder .profiles { grid-template-columns:minmax(0,1fr); }
 .founder .view-title { font-size:26px; }
}
@media (prefers-reduced-motion:reduce) {
 .founder *,.founder *::before,.founder *::after { scroll-behavior:auto !important; transition:none !important; animation:none !important; }
}
