/* Student binder visual layer. Scoped workspace colors preserve saved theme preferences. */
html[data-theme] .sidebar{background:linear-gradient(170deg,#24243e,#34304f);color:#fff;border:0}
html[data-theme] .sidebar .brand strong{font-family:"Avenir Next",system-ui,sans-serif;font-size:18px;font-weight:700}
html[data-theme] .sidebar .nav-item{color:#dedbea;border-radius:10px}
html[data-theme] .sidebar .nav-item.active{background:#575070;color:#fff;box-shadow:inset 3px 0 #c7bef7}
html[data-theme] .sidebar .nav-item:hover{background:#49435f}
html[data-theme] #students{--paper:#fff;--card:#fff;--ink:#29283e;--muted:#6f7183;--line:#e8e9f0;--forest:#60548c;--sage:#7c709b;--sage-soft:#f0edf8;--cream:#f7f8fc;color:var(--ink);background:#f7f8fc;padding:28px;max-width:none}
html[data-theme] #students h1,html[data-theme] #students h2,html[data-theme] #students h3{font-family:"Avenir Next","Segoe UI",system-ui,sans-serif;letter-spacing:-.035em;font-weight:650}
html[data-theme] #students .page-header h1{font-size:32px;margin:4px 0 8px}
html[data-theme] #students>.page-header p:not(.eyebrow){max-width:700px;font-size:13px}
html[data-theme] #students .record-import-toolbar{justify-content:flex-end;margin:0 0 16px}
#students .record-import-toolbar small{display:none}
#students .binder-editor{margin:0 0 20px;border:1px solid var(--line);border-radius:14px;background:#fff}
#students .binder-editor>summary{padding:12px 18px;cursor:pointer;font-weight:600;font-size:13px;min-height:44px}
#students .binder-editor:not([open]){display:none}
#students .binder-editor .student-form{margin:0;box-shadow:none;border:0}
html[data-theme] #students .binder-layout{display:grid;grid-template-columns:minmax(230px,280px) minmax(0,1fr);gap:22px;align-items:start}
#students .binder-roster{min-width:0;background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px}
html[data-theme] #students .student-list-heading{margin:0 0 16px;display:flex;align-items:center;gap:8px}
html[data-theme] #students .student-list-heading h2{font-size:18px;margin:0}
#students #student-count{font-size:12px;color:var(--muted)}
html[data-theme] #students .roster-filters{display:grid;grid-template-columns:1fr;gap:12px;margin:0 0 20px;padding:0;background:none;border:0}
#students .roster-filters label{font-size:12px}
#students .roster-filters input,#students .roster-filters select{width:100%;min-width:0;background:#f8f9fc;border:1px solid var(--line);border-radius:10px;padding:11px;font:inherit;min-height:44px}
html[data-theme] #students .student-grid{display:grid;grid-template-columns:1fr;gap:10px}
html[data-theme] #students .student-card{position:relative;padding:12px;border-radius:12px;background:white;border:1px solid transparent;box-shadow:none;min-width:0}
html[data-theme] #students .student-card.binder-selected{background:#f1eef9;border-color:#dad2ef}
#students .student-card .student-detail,#students .student-card>small,#students .student-card .student-birthday,#students .student-card .preferred-name{display:none}
#students .student-card .student-card-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
#students .student-card .student-avatar{width:36px;height:36px;background:#e6e2f4;color:#615286;font-size:15px;border-radius:12px}
#students .student-card .soft-pill{font-size:10px;padding:3px 8px;background:#edf4ef;color:#49725c}
html[data-theme] #students .student-card h2{font-size:14px;margin:0}
#students .binder-roster-select{padding:0;text-align:left;border:0;background:none;color:inherit;font:inherit;font-weight:700;min-height:44px;width:100%;overflow-wrap:anywhere}
#students .student-grade{font-size:12px;margin:0 0 8px;color:var(--muted)}
#students .student-card .student-actions{margin-top:10px}
#students .student-actions-menu>summary{background:#fff9;font-size:12px;padding:8px 12px;min-height:44px}
#students .binder-record{min-width:0;border:1px solid var(--line);border-radius:20px;background:#fff;overflow:hidden;box-shadow:0 8px 30px #28233e04}
#students .binder-profile{display:flex;align-items:center;gap:18px;padding:28px 30px;border-bottom:1px solid var(--line)}
#students .binder-profile>div{min-width:0;flex:1}
html[data-theme] #students .binder-profile h2{font-size:28px;line-height:1.2;margin:5px 0 8px;overflow-wrap:anywhere}
#students .binder-profile p{margin:0;font-size:13px;color:var(--muted)}
#students .binder-avatar{display:grid;place-items:center;width:68px;height:68px;border-radius:22px;background:#eee8f8;color:#716094;font-size:23px;font-weight:600;flex:none;overflow:hidden}
#students .binder-avatar img{width:100%;height:100%;object-fit:cover}
#students .binder-status{font-size:11px;padding:6px 10px;background:#edf5ef;color:#52745e;border-radius:20px;white-space:nowrap}
#students .binder-page{display:grid;grid-template-columns:126px minmax(0,1fr);min-height:590px}
#students .binder-tabs{display:flex;flex-direction:column;gap:8px;padding:26px 0 26px 12px;background:#fcfcfe;border-right:1px solid var(--line)}
html[data-theme] #students .binder-tabs button{position:relative;min-height:52px;padding:12px 13px;text-align:left;font-size:12px;line-height:1.3;border-radius:12px 0 0 12px;border:1px solid #00000006;border-right:0;background:var(--tab);color:#3d3b50;font-weight:650;box-shadow:none}
#students .binder-tabs button:nth-child(1){--tab:#ede7f8}#students .binder-tabs button:nth-child(2){--tab:#e3effa}#students .binder-tabs button:nth-child(3){--tab:#e8f1e5}#students .binder-tabs button:nth-child(4){--tab:#fff1d9}#students .binder-tabs button:nth-child(5){--tab:#f9e6e9}#students .binder-tabs button:nth-child(6){--tab:#e3f2ef}#students .binder-tabs button:nth-child(7){--tab:#eeeaf5}
html[data-theme] #students .binder-tabs button[aria-selected="true"]{box-shadow:inset 4px 0 #7966a3;font-weight:800;color:#302342}
#students .binder-panels{min-width:0;padding:26px;background:#fff}
#students [hidden]{display:none!important}
#students .binder-section-heading{display:flex;gap:12px;align-items:center;justify-content:space-between;margin:0 0 24px}
html[data-theme] #students .binder-section-heading h2{font-size:22px;margin:4px 0 0}
#students .binder-section-heading button{background:#fff;color:#605185;border:1px solid #ded8e9;border-radius:10px;padding:10px 14px;font:inherit;font-size:12px;min-height:44px}
#students .binder-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
#students .binder-card{min-width:0;border:1px solid var(--line);border-radius:14px;padding:20px;background:#fff;margin-bottom:16px}
#students .binder-card-grid .binder-card{margin:0}
html[data-theme] #students .binder-card h3{font-size:15px;margin:0 0 16px;color:#39364d}
#students .binder-card p,#students .binder-card dl,#students .binder-contact{font-size:13px;line-height:1.7;overflow-wrap:anywhere}
#students .binder-card p{margin:0}
#students .binder-card dl{margin:0}
#students .binder-card dl div+div{margin-top:12px}
#students .binder-card dt{font-size:11px;color:var(--muted)}
#students .binder-card dd{margin:2px 0 0}
#students .binder-contact{display:flex;flex-direction:column;gap:3px}
#students .binder-contact+.binder-contact{margin-top:18px;padding-top:14px;border-top:1px solid var(--line)}
#students .binder-contact a{color:#6d5a96;text-decoration:none}
#students .binder-pastel{background:#f7f5fc;border-color:#eae4f4}
#students .binder-privacy,#students .binder-scope{font-size:11px;line-height:1.7;color:var(--muted);margin:22px 0 0}
#students .binder-scope{padding:12px;background:#f6f7fb;border-radius:10px;margin:0 0 20px}
#students .binder-empty{padding:40px}

#students button:focus-visible,#students summary:focus-visible,#students a:focus-visible{outline:3px solid #9684bd;outline-offset:3px}
html[data-theme] #students .student-attendance-card,html[data-theme] #students .parent-email-card{padding:0;border:0;box-shadow:none;margin:0}
#students .student-attendance-toolbar{flex-wrap:wrap}
#students .student-attendance-row{min-width:0}
@media(min-width:761px) and (max-width:1200px){html[data-theme] #students{padding:20px}html[data-theme] #students .binder-layout{grid-template-columns:220px minmax(0,1fr);gap:16px}#students .binder-card-grid{grid-template-columns:1fr}#students .binder-page{grid-template-columns:1fr}#students .binder-tabs{flex-direction:row;overflow:auto;padding:12px;gap:6px;border-right:0;border-bottom:1px solid var(--line)}html[data-theme] #students .binder-tabs button{border-radius:9px;flex:none;min-height:44px}#students .binder-profile{padding:22px}#students .binder-status{display:none}}
@media(max-width:760px){html[data-theme] #students{padding:16px 12px 100px}html[data-theme] #students .binder-layout{grid-template-columns:1fr;gap:18px}#students .binder-roster{padding:14px}html[data-theme] #students .student-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-height:310px;overflow:auto}html[data-theme] #students .roster-filters{grid-template-columns:repeat(2,minmax(0,1fr))}#students .binder-profile{padding:20px;gap:12px}html[data-theme] #students .binder-profile h2{font-size:24px}#students .binder-avatar{width:50px;height:50px;border-radius:16px;font-size:18px}#students .binder-status{display:none}#students .binder-page{grid-template-columns:1fr}#students .binder-tabs{flex-direction:row;overflow:auto;padding:12px;gap:6px;border-right:0;border-bottom:1px solid var(--line)}html[data-theme] #students .binder-tabs button{border-radius:9px;white-space:nowrap;flex:none;min-height:44px}#students .binder-panels{padding:20px 16px}#students .binder-card-grid{grid-template-columns:1fr}#students .binder-section-heading{flex-wrap:wrap}#students .record-import-toolbar{flex-wrap:wrap}html[data-theme] #students .page-header{align-items:start}.binder-roster-select{scroll-margin:20px}}
@media print{#students .binder-roster,#students .binder-tabs,#students .binder-editor,#students .record-import-toolbar{display:none!important}#students .binder-layout,#students .binder-page{display:block!important}#students .binder-record{border:0}}
html[data-theme] body .sidebar :is(.brand strong,.brand small,.nav-item,.account-footer,.account-footer button,.server-status,.product-badge){color:#dedbea}
html[data-theme] body .sidebar .nav-item.active{color:#fff}
html[data-theme] body .sidebar .nav-item:hover{background:#49435f}
html[data-theme] body #students .primary-button{background:#6b5c91;color:#fff;box-shadow:none}
html[data-theme] body #students .eyebrow{color:#817294!important}
html[data-theme] #students .school-roster-picker{padding:12px 18px;margin:0 0 20px;box-shadow:none;font-size:12px}
html[data-theme] #students .student-card{display:grid;grid-template-columns:36px minmax(0,1fr);column-gap:10px}
#students .student-card .student-card-top{grid-column:1;grid-row:1/3;margin:4px 0 0;align-items:start}
#students .student-card .student-card-top .soft-pill{display:none}
#students .student-card h2{grid-column:2;align-self:center}
#students .student-card .student-grade{grid-column:2;padding:0;margin:0;background:none;line-height:1.4;font-size:11px;border-radius:0;color:#747083}
#students .student-card .student-actions{grid-column:1/-1;margin-top:8px}
@media(min-width:761px){#students .student-grid{max-height:560px;overflow-y:auto;overscroll-behavior:contain}}
