:root {
  color-scheme: light;
  --navy: #164b38;
  --navy-soft: #103b2c;
  --ink: #1d2922;
  --muted: #667068;
  --line: #dfe4dc;
  --paper: #f4f7f3;
  --white: #ffffff;
  --mint: #d7f477;
  --blue: #164b38;
  --blue-soft: #edf3e6;
  --orange: #f2a66f;
  --green: #27613d;
  font-family: "Aptos", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
.icon { width: 1.15em; height: 1.15em; display: inline-block; flex: 0 0 auto; fill: none; vertical-align: -.16em; }
.icon-solid { fill: currentColor; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: var(--paper); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(111,158,72,.42); outline-offset: 3px; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
.loading { min-height: 100vh; display: grid; place-items: center; color: var(--muted); font-weight: 700; }
.school-shell { min-height: 100vh; display: grid; grid-template-columns: 252px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 27px 18px 20px; background: var(--navy); color: #fff; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 11px; font: 800 1rem "Aptos Display", "Segoe UI", sans-serif; letter-spacing: -.04em; }
.brand-mark { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 12px; background: var(--mint); color: var(--navy); font-size: 1.15rem; }
.brand small { display: block; margin-top: 1px; color: #bdcfbd; font: 700 .58rem "DM Sans", sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.school-selector { display: flex; align-items: center; gap: 10px; margin: 31px 0 26px; padding: 13px 12px; border: 1px solid rgba(255,255,255,.09); border-radius: 13px; background: rgba(255,255,255,.06); }
.school-avatar { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 10px; background: rgba(215,244,119,.14); color: var(--mint); font-weight: 800; }
.school-selector span:nth-child(2) { min-width: 0; font-size: .73rem; font-weight: 700; }
.school-selector small { display: block; margin-top: 2px; color: #bdcfbd; font-size: .63rem; font-weight: 500; }
.nav-caption { margin: 0 12px 9px; color: #71809a; font-size: .61rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.side-nav-container { min-height: 0; flex: 1; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #527362 transparent; }
.nav-organize { display: flex; align-items: center; justify-content: space-between; margin: 0 6px 8px; color: #b0c4b6; font-size: .63rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.nav-organize button { min-height: 30px; padding: 3px 8px; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; background: rgba(255,255,255,.07); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: 0; text-transform: none; }
.nav-organize button:hover { background: rgba(255,255,255,.14); }
.side-nav { display: grid; align-content: start; gap: 7px; padding: 0 1px 9px; }
.nav-folder { min-width: 0; padding: 4px; border: 1px solid transparent; border-radius: 12px; transition: background .15s,border-color .15s,opacity .15s; }
.nav-folder.is-drop-target { border-color: rgba(215,244,119,.65); background: rgba(215,244,119,.09); }
.nav-folder.is-dragging,.nav-item-row.is-dragging { opacity: .48; }
.nav-folder-heading { display: flex; align-items: center; gap: 4px; min-width: 0; }
.nav-folder-toggle { display: flex; min-width: 0; min-height: 38px; flex: 1; align-items: center; gap: 8px; padding: 0 7px; border: 0; border-radius: 8px; background: transparent; color: #d3e2d5; text-align: left; }
.nav-folder-toggle:hover { background: rgba(255,255,255,.07); }
.nav-folder-toggle strong { overflow: hidden; flex: 1; font-size: .68rem; letter-spacing: .04em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.nav-folder-chevron { width: 12px; color: #b0c4b6; }
.nav-folder-count { min-width: 19px; padding: 2px 5px; border-radius: 99px; background: rgba(255,255,255,.1); color: #d3e2d5; font-size: .59rem; text-align: center; }
.nav-folder-drag-handle,.nav-folder-actions button { width: 29px; height: 29px; flex: 0 0 auto; border: 0; border-radius: 7px; background: transparent; color: #c3d3c7; font-size: 1rem; }
.nav-folder-drag-handle { cursor: grab; }
.nav-folder-actions { display: flex; }
.nav-folder-actions button:hover,.nav-folder-drag-handle:hover { background: rgba(255,255,255,.1); color: #fff; }
.nav-folder-items { display: grid; gap: 3px; padding: 1px 0 3px; }
.nav-folder-items[hidden] { display: none; }
.nav-item-row { display: flex; min-width: 0; align-items: center; gap: 2px; }
.side-nav a { min-width: 0; min-height: 41px; flex: 1; display: flex; align-items: center; gap: 10px; padding: 0 8px; border: 1px solid transparent; border-radius: 9px; color: #d0dfd4; font-size: .78rem; font-weight: 650; transition: background .18s ease, color .18s ease, transform .18s ease; cursor: grab; }
.side-nav a:active { cursor: grabbing; }
.nav-item-label { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-nav a:hover { background: rgba(255,255,255,.07); color: #fff; transform: translateX(2px); }
.side-nav a[aria-current="page"] { background: rgba(215,244,119,.14); color: #fff; }
.nav-folder-empty { padding: 8px 10px 8px 34px; color: #a7bcae; font-size: .68rem; font-style: italic; }
.sidebar-folder-dialog { width: min(390px,calc(100vw - 32px)); padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink); box-shadow: 0 18px 55px #10271d38; }
.sidebar-folder-dialog::backdrop { background: #0c2019a6; backdrop-filter: blur(2px); }
.sidebar-folder-dialog form { display: grid; gap: 14px; }
.sidebar-folder-dialog h2 { margin: 0; font-size: 1.05rem; }
.sidebar-folder-dialog .form-footer { margin-top: 0; }
.nav-icon { width: 20px; color: #bdcfbd; font-size: 1rem; text-align: center; }
.nav-icon .icon { width: 18px; height: 18px; vertical-align: middle; }
.side-nav a[aria-current="page"] .nav-icon { color: var(--mint); }
.sidebar-bottom { margin-top: auto; }
.help-card { margin: 18px 0 14px; padding: 15px; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; background: linear-gradient(145deg,#286447,#1b533b); }
.help-card strong { display: block; color: #fff; font-size: .76rem; }
.help-card p { margin: 6px 0 11px; color: #d5e0d5; font-size: .67rem; line-height: 1.5; }
.help-card a { color: var(--mint); font-size: .69rem; font-weight: 800; }
.profile-row { display: flex; align-items: center; gap: 10px; padding: 12px 8px 0; border-top: 1px solid rgba(255,255,255,.09); }
.profile-trigger { min-width: 0; display: flex; flex: 1; align-items: center; gap: 10px; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.profile-trigger:hover .profile-info { color: var(--mint); }
.profile-trigger:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 8px; }
.profile-avatar { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 50%; background: #f1c59b; color: #50351f; font-weight: 800; }
.profile-avatar svg, .profile-avatar img { width: 100%; height: 100%; display: block; border-radius: 50%; object-fit: cover; object-position: center center; }
.avatar-editor { display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: center; gap: 20px; }
.avatar-preview { width: 120px; height: 120px; overflow: hidden; border-radius: 26px; background: var(--blue-soft); }
.avatar-preview svg, .avatar-preview img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center center; }
.avatar-presets { margin-top: 18px; }
.avatar-presets > strong { display: block; margin-bottom: 10px; font-size: .78rem; }
.avatar-choice-grid { display: grid; grid-template-columns: repeat(5, minmax(54px, 1fr)); gap: 9px; }
.avatar-choice { aspect-ratio: 1; padding: 3px; border: 2px solid transparent; border-radius: 14px; background: var(--blue-soft); cursor: pointer; }
.avatar-choice:hover, .avatar-choice.is-selected { border-color: var(--green); }
.avatar-choice img { width: 100%; height: 100%; display: block; border-radius: 10px; object-fit: cover; }
.avatar-identity-button { margin-top: 12px; padding: 0; border: 0; background: transparent; color: var(--green); font: inherit; font-size: .75rem; font-weight: 800; cursor: pointer; }
.avatar-identity-button:hover { text-decoration: underline; }
.avatar-remove-button { display: block; margin-top: 8px; padding: 0; border: 0; background: transparent; color: #a44747; font: inherit; font-size: .75rem; font-weight: 800; cursor: pointer; }
.avatar-remove-button:hover { text-decoration: underline; }
.camera-tools { margin-top: 2px; }
.camera-capture { width: min(440px, calc(100vw - 32px)); position: fixed; z-index: 20; top: 50%; left: 50%; margin: 0; padding: 16px; border: 1px solid rgba(255,255,255,.2); border-radius: 20px; background: #162033; box-shadow: 0 24px 70px rgba(8,15,28,.45); transform: translate(-50%, -50%); }
.camera-capture::before { content: ""; position: fixed; z-index: -1; top: 50%; left: 50%; width: 100vw; height: 100vh; background: rgba(8,15,28,.68); transform: translate(-50%, -50%); }
.camera-stage { position: relative; overflow: hidden; border-radius: 14px; background: #101522; }
.camera-capture video { width: 100%; aspect-ratio: 1 / 1; display: block; background: #101522; object-fit: cover; transform: scaleX(-1); }
.camera-guide { position: absolute; top: 15%; left: 22%; width: 56%; height: 70%; border: 3px solid rgba(215,244,119,.9); border-radius: 48% 48% 42% 42%; box-shadow: 0 0 0 999px rgba(8,15,28,.16); pointer-events: none; }
.camera-capture .field-help { color: #d7e2d7; }
.camera-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.camera-actions .button { margin: 0; }
@media (max-width: 640px) { .avatar-editor { grid-template-columns: 1fr; } }
.profile-info { min-width: 0; flex: 1; color: #fff; font-size: .72rem; font-weight: 700; }
.profile-info small { display: block; margin-top: 3px; color: #bdcfbd; font-size: .62rem; font-weight: 500; }
.logout { width: 31px; height: 31px; border: 0; border-radius: 9px; background: transparent; color: #a9b5c8; }
.logout:hover { background: rgba(255,255,255,.08); color: white; }
.main-area { min-width: 0; padding: 0 36px 46px; }
.topbar { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); }
.breadcrumbs { color: var(--muted); font-size: .73rem; }
.breadcrumbs strong { color: var(--ink); font-weight: 700; }
.top-actions { display: flex; align-items: center; gap: 11px; }
.dev-stopwatch { display: grid; grid-template-columns: auto auto auto auto; align-items: center; gap: 2px 7px; padding: 5px 7px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.dev-stopwatch-caption { grid-column: 1 / -1; color: var(--muted); font-size: .48rem; font-weight: 800; letter-spacing: .08em; }
.dev-stopwatch strong { color: var(--ink); font: 750 .76rem/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; font-variant-numeric: tabular-nums; }
.dev-stopwatch-status { min-width: 59px; color: var(--muted); font-size: .57rem; }
.dev-stopwatch-control { width: 25px; height: 25px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 7px; background: #f8faf7; color: var(--ink); font-size: .75rem; cursor: pointer; }
.dev-stopwatch-control:hover { border-color: #b7c8a9; background: #eff5e8; }
.icon-button { width: 38px; height: 38px; position: relative; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: #65728a; }
.notice-dot { width: 6px; height: 6px; position: absolute; top: 8px; right: 8px; border-radius: 50%; background: var(--orange); }
.today { color: var(--muted); font-size: 1rem; }
.content { width: min(100%, 1240px); margin: 0 auto; padding-top: 30px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.page-heading h1 { margin: 0; font: 800 clamp(1.55rem,2.4vw,2.1rem)/1.2 "Aptos Display","Segoe UI",sans-serif; letter-spacing: -.055em; }
.page-heading p { margin: 7px 0 0; color: var(--muted); font-size: .9rem; }
.heading-actions { display: flex; gap: 9px; }
.heading-actions[hidden] { display: none; }
.button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 14px; border: 1px solid transparent; border-radius: 10px; background: var(--blue); color: white; font-size: .72rem; font-weight: 750; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-1px); box-shadow: 0 8px 17px rgba(22,75,56,.2); }
.button.secondary { border-color: var(--line); background: white; color: #46536b; }
.danger-action { color: #a53d3d; margin-left: 6px; }
.button.dark { background: var(--navy); }
.button:disabled { cursor: wait; opacity: .6; }
.welcome { min-height: 190px; position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; overflow: hidden; margin-bottom: 21px; padding: 28px 34px; border-radius: 19px; background: linear-gradient(105deg,#182744,#2d3f66); color: #fff; }
.welcome::after { content: ""; width: 270px; height: 270px; position: absolute; right: 11%; top: -110px; border: 1px solid rgba(120,225,197,.2); border-radius: 50%; box-shadow: 0 0 0 28px rgba(120,225,197,.04),0 0 0 60px rgba(120,225,197,.035); }
.welcome-copy { position: relative; z-index: 1; max-width: 530px; }
.welcome-label { margin: 0 0 10px; color: var(--mint); font-size: .64rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.welcome h2 { margin: 0 0 8px; font: 800 clamp(1.45rem,3vw,2.15rem)/1.12 "Aptos Display","Segoe UI",sans-serif; letter-spacing: -.055em; }
.welcome p:last-child { margin: 0; color: #c1ccdf; font-size: .76rem; }
.welcome-art { position: relative; z-index: 1; width: 90px; height: 90px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.17); border-radius: 27px; background: rgba(255,255,255,.08); color: var(--mint); font-size: 2.4rem; transform: rotate(7deg); }
.stat-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; margin-bottom: 22px; }
.stat { min-height: 116px; padding: 17px 18px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.stat-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: .68rem; font-weight: 650; }
.stat-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; background: var(--blue-soft); color: var(--blue); font-size: .92rem; }
.stat-icon .icon { width: 18px; height: 18px; }
.stat:nth-child(2) .stat-icon { background: #e7f4e9; color: #27613d; }
.stat:nth-child(3) .stat-icon { background: #fff2e8; color: #c8753b; }
.stat:nth-child(4) .stat-icon { background: #f2ebff; color: #845bc1; }
.stat strong { display: block; margin-top: 11px; font: 800 1.7rem "Aptos Display","Segoe UI",sans-serif; letter-spacing: -.06em; }
.stat small { margin-left: 6px; color: #8793a7; font: 500 .65rem "DM Sans",sans-serif; letter-spacing: 0; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(280px,.8fr); gap: 16px; }
.panel { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.panel-heading h2 { margin: 0; font: 750 .95rem "Aptos Display","Segoe UI",sans-serif; letter-spacing: -.025em; }
.panel-heading p { margin: 4px 0 0; color: var(--muted); font-size: .68rem; }
.link-button { padding: 0; border: 0; background: transparent; color: var(--blue); font-size: .68rem; font-weight: 800; }
.class-list,.event-list,.record-list { display: grid; gap: 9px; }
.class-item { display: flex; align-items: center; gap: 12px; padding: 11px; border: 1px solid #e8ebe4; border-radius: 12px; }
.class-mark { width: 37px; height: 37px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 12px; background: #e9f1d8; color: #45632e; font-weight: 850; }
.class-item:nth-child(3n+2) .class-mark { background: #f0edff; color: #7658c0; }
.class-item:nth-child(3n) .class-mark { background: #fff2e8; color: #c8753b; }
.class-detail { min-width: 0; flex: 1; }
.class-detail strong { display: block; overflow: hidden; font-size: .74rem; text-overflow: ellipsis; white-space: nowrap; }
.class-detail small { display: block; margin-top: 3px; color: var(--muted); font-size: .63rem; }
.class-count { color: var(--muted); font-size: .64rem; white-space: nowrap; }
.event-item { display: flex; gap: 11px; padding: 10px 0; border-bottom: 1px solid #edf0f5; }
.event-item:last-child { border-bottom: 0; }
.date-block { width: 40px; height: 43px; display: grid; flex: 0 0 auto; place-content: center; border-radius: 10px; background: #edf3e6; color: var(--blue); text-align: center; }
.date-block strong { font: 800 .85rem "Aptos Display","Segoe UI",sans-serif; }
.date-block small { margin-top: 1px; font-size: .54rem; font-weight: 800; text-transform: uppercase; }
.event-copy { min-width: 0; padding-top: 2px; }
.event-copy strong { display: block; overflow: hidden; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.event-copy small { display: block; margin-top: 4px; color: var(--muted); font-size: .62rem; }
.action-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(142px,1fr)); gap: 11px; margin-top: 16px; }
.action-tile { min-height: 88px; display: grid; align-content: center; justify-items: start; gap: 8px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: #fff; text-align: left; transition: transform .18s ease,border-color .18s ease; }
.action-tile:hover { transform: translateY(-2px); border-color: #b8cba8; }
.action-tile span:first-child { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 9px; background: var(--blue-soft); color: var(--blue); font-size: .9rem; }
.action-tile strong { font-size: .66rem; }
.section-view[hidden] { display: none; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; }
.toolbar-left,.toolbar-right { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.search { width: min(260px,100%); min-height: 39px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font-size: .71rem; }
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.table-subtitle { display: block; margin-top: 3px; color: var(--muted); font-size: .62rem; font-weight: 500; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 11px 13px; background: #f2f4ee; color: #78877b; font-size: .59rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
td { padding: 12px 13px; border-top: 1px solid #e8ebe4; color: #425447; font-size: .86rem; vertical-align: middle; }
td strong { color: var(--ink); font-weight: 700; }
.empty { padding: 28px 15px; color: var(--muted); font-size: .75rem; text-align: center; }
.badge { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 999px; background: #e7f4e9; color: #27613d; font-size: .59rem; font-weight: 800; }
.badge.gray { background: #f0f2ec; color: #748078; }
.row-action { padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: #425447; font-size: .62rem; font-weight: 750; }
.form-card { margin-bottom: 15px; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.form-card h3 { margin: 0 0 12px; font: 750 .82rem "Aptos Display","Segoe UI",sans-serif; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.field { display: grid; gap: 5px; color: #68756b; font-size: .65rem; font-weight: 700; }
.field small { color: var(--muted); font-size: .62rem; font-weight: 500; line-height: 1.45; }
.field.wide { grid-column: 1 / -1; }
.field input,.field select,.field textarea { width: 100%; min-height: 38px; padding: 8px 10px; border: 1px solid #dfe4dc; border-radius: 8px; background: var(--white); color: var(--ink); font-size: 1rem; }
.field textarea { min-height: 78px; resize: vertical; }
.form-footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.notice { min-height: 20px; margin: 8px 0 0; color: #ad5144; font-size: .68rem; }
.notice.success { color: var(--green); }
.inline-select { min-height: 31px; padding: 4px 7px; border: 1px solid var(--line); border-radius: 7px; background: white; color: var(--ink); font-size: .63rem; }
.content-folder-create { display: flex; align-items: flex-end; gap: 10px; margin-bottom: 16px; }
.content-folder-create .field { width: min(320px,100%); }
.content-folder-create-row { display: flex; flex: 1; align-items: center; gap: 8px; }
.content-folder-create-row input { width: 100%; min-width: 0; min-height: 44px; padding: 8px 11px; border: 1px solid #dfe4dc; border-radius: 9px; background: var(--white); color: var(--ink); font-size: .88rem; }
.content-folders { display: grid; gap: 10px; }
.content-folder { min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fafbf9; transition: background .15s,border-color .15s,box-shadow .15s; }
.content-folder.is-drop-target { border-color: var(--blue); background: #eff7ee; box-shadow: 0 0 0 3px #4b7a5120; }
.content-folder-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.content-folder-toggle { display: flex; min-width: 0; min-height: 42px; align-items: center; gap: 9px; padding: 5px 8px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.content-folder-toggle:hover { background: #edf2eb; }
.content-folder-toggle strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.content-folder-chevron { width: 14px; color: var(--muted); }
.content-folder-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 6px; }
.content-folder-items { display: grid; gap: 9px; padding: 8px 2px 2px; }
.content-folder-items[hidden] { display: none; }
.content-folder-items .content-file { cursor: grab; }
.content-file { padding: 14px; }
.content-file:active { cursor: grabbing; }
.content-file.is-dragging { opacity: .48; }
.content-file-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.content-file-actions .form-footer { margin: 0; }
.content-move-label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .75rem; font-weight: 650; }
.content-folder-empty { margin: 0; padding: 12px; border: 1px dashed #cfd8ce; border-radius: 9px; color: var(--muted); font-size: .78rem; text-align: center; }
.calendar-panel { margin: 0 0 20px; padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.calendar-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.calendar-heading h2,.calendar-agenda h3 { margin: 0; font: 750 .9rem "Aptos Display","Segoe UI",sans-serif; }
.calendar-heading p { margin: 4px 0 0; color: var(--muted); font-size: .67rem; }
.calendar-controls { display: flex; align-items: center; gap: 8px; }
.calendar-controls strong { min-width: 130px; color: var(--ink); font-size: .72rem; text-align: center; text-transform: capitalize; }
.calendar-layout { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(200px,.8fr); gap: 16px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 4px; }
.calendar-weekday { padding: 5px 2px; color: var(--muted); font-size: .58rem; font-weight: 800; text-align: center; text-transform: uppercase; }
.calendar-day { min-width: 0; min-height: 58px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 2px; border: 1px solid #e8ebe4; border-radius: 8px; background: white; color: var(--ink); font-size: .68rem; }
.calendar-day:hover { border-color: #9cb48b; background: #f5f8ee; }
.calendar-day.outside { color: #a7afa7; background: #f7f8f4; }
.calendar-day.selected { border-color: var(--blue); background: var(--blue-soft); box-shadow: inset 0 0 0 1px var(--blue); }
.calendar-day small { max-width: 100%; overflow: hidden; color: var(--blue); font-size: .48rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.calendar-agenda { min-width: 0; padding: 12px; border-radius: 11px; background: #f5f7f1; }
.calendar-agenda h3 { margin-bottom: 9px; font-size: .72rem; text-transform: capitalize; }
.calendar-events { display: grid; gap: 7px; }
.calendar-event { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 9px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.calendar-event strong,.calendar-event small { display: block; }
.calendar-event strong { font-size: .65rem; }
.calendar-event small { margin-top: 4px; color: var(--muted); font-size: .58rem; }
.calendar-message { margin: 0; color: #8a4b34; font-size: .67rem; line-height: 1.5; }
.visually-hidden { width: 1px; height: 1px; position: absolute; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; clip-path: inset(50%); }
.field-help,.report-panel>p { color: var(--muted); font-size: .69rem; line-height: 1.55; }
.report-anonymize { display: flex; align-items: flex-start; gap: 9px; margin-top: 14px; color: var(--ink); font-size: .72rem; line-height: 1.5; }
.report-anonymize input { margin-top: 2px; accent-color: var(--blue); }
.usage-report{margin-top:18px}
.usage-report h3{margin:22px 0 10px;font-size:.95rem}
.usage-controls{display:flex;flex-wrap:wrap;align-items:end;gap:8px}
.usage-controls .field{min-width:120px}
.usage-controls .button{margin:0}
.usage-stat-grid{margin:16px 0 22px}
.usage-report .field-help{margin:8px 0}
.usage-report .table-wrap{max-height:430px;overflow:auto}
.usage-report table{min-width:560px}
.conversation-layout { min-height: 430px; display: grid; grid-template-columns: minmax(210px,.7fr) minmax(0,1.6fr); overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: white; }
.conversation-list { padding: 13px; border-right: 1px solid var(--line); }
.conversation-list h3 { margin: 3px 4px 12px; font: 750 .75rem Manrope,sans-serif; }
.conversation-item { width: 100%; display: block; margin-bottom: 5px; padding: 10px; border: 0; border-radius: 9px; background: white; color: var(--ink); text-align: left; }
.conversation-item:hover,.conversation-item.active { background: #f2f6e8; }
.conversation-item strong { display: block; font-size: .68rem; }
.conversation-item small { display: block; overflow: hidden; margin-top: 4px; color: var(--muted); font-size: .6rem; text-overflow: ellipsis; white-space: nowrap; }
.conversation-contact-results { display: grid; gap: 6px; max-height: 260px; overflow-y: auto; margin: 10px 0; }
.conversation-contact-option { display: grid; gap: 4px; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); text-align: left; cursor: pointer; }
.conversation-contact-option:hover,.conversation-contact-option.selected { border-color: #9fbd83; background: #f2f7ea; }
.conversation-contact-option[hidden] { display: none; }
.conversation-contact-option strong { font-size: .75rem; }
.conversation-contact-option small { overflow: hidden; color: var(--muted); font-size: .66rem; text-overflow: ellipsis; white-space: nowrap; }
.conversation-contact-option:focus-visible { outline: 2px solid #477f45; outline-offset: 2px; }
.conversation-contact-pending { display:grid; gap:4px; padding:10px 12px; border:1px dashed #d2d7ca; border-radius:10px; background:#f7f8f4; color:#687365; }
.conversation-contact-pending strong { font-size:.75rem; }
.conversation-contact-pending small { font-size:.66rem; line-height:1.45; }
.chat-pane { min-width: 0; display: flex; flex-direction: column; }
.chat-head { padding: 15px 17px; border-bottom: 1px solid var(--line); }
.chat-head strong { font-size: .75rem; }
.chat-head small { display: block; margin-top: 3px; color: var(--muted); font-size: .62rem; }
.messages { flex: 1; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; max-height: 345px; padding: 16px; }
.message { width: fit-content; max-width: min(80%,460px); padding: 9px 11px; border-radius: 11px 11px 11px 3px; background: #f2f4ee; color: #34463a; font-size: .68rem; line-height: 1.5; overflow-wrap: anywhere; }
.message.mine { align-self: flex-end; border-radius: 11px 11px 3px 11px; background: #eaf3dc; color: #254c36; }
.message small { display: block; margin-top: 4px; color: #8b95a8; font-size: .53rem; }
.message-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.message-form input { min-width: 0; min-height: 39px; flex: 1; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; font-size: 1rem; }
.status-bar { display: flex; align-items: center; gap: 7px; color: #78877b; font-size: .61rem; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #53a477; }
.toast { position: fixed; right: 22px; bottom: 20px; z-index: 20; max-width: min(400px,calc(100vw - 32px)); padding: 12px 15px; border-radius: 11px; background: var(--navy); color: white; box-shadow: 0 14px 40px rgba(17,26,46,.2); font-size: .72rem; animation: toast-in .2s ease both; }
.toast.error { background: #963f42; }
.mobile-menu { display: none; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media(max-width:1120px) { .school-shell { grid-template-columns: 220px minmax(0,1fr); } .main-area { padding-inline: 24px; } .dashboard-grid { grid-template-columns: 1fr; } }
@media(max-width:760px) {
  .school-shell { display: block; }
  .sidebar { width: 252px; position: fixed; left: 0; z-index: 10; transform: translateX(-105%); transition: transform .22s ease; }
  .sidebar.open { transform: translateX(0); }
  .sidebar-backdrop { position: fixed; inset: 0; z-index: 9; background: rgba(11,19,35,.48); backdrop-filter: blur(2px); }
  .main-area { padding-inline: 16px; }
  .mobile-menu { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink); }
  .topbar { min-height: 64px; flex-wrap: wrap; padding-block: 8px; gap: 6px; }
  .top-actions .today { display: none; }
  .top-actions { gap: 7px; }
  .top-actions .status-bar { display: none; }
  .dev-stopwatch { gap: 2px 5px; padding: 4px 5px; }
  .dev-stopwatch-caption { display: none; }
  .dev-stopwatch-status { min-width: auto; font-size: .52rem; }
  .dev-stopwatch-control { width: 23px; height: 23px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .heading-actions { width: 100%; }
  .stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .stat { min-height: 102px; padding: 13px; }
  .stat strong { font-size: 1.45rem; }
  .welcome { min-height: 166px; padding: 22px; }
  .welcome-art { width: 62px; height: 62px; border-radius: 19px; font-size: 1.8rem; }
  .action-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .conversation-layout { grid-template-columns: 1fr; }
  .conversation-list { max-height: 170px; overflow: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .chat-pane { min-height: 370px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.wide { grid-column: auto; }
  .calendar-heading { align-items: flex-start; flex-direction: column; }
  .calendar-controls { width: 100%; justify-content: space-between; }
  .calendar-layout { grid-template-columns: 1fr; }
  .calendar-day { min-height: 52px; }
}
@media(max-width:420px) { .main-area { padding-inline: 12px; } .top-actions { gap: 6px; } .dev-stopwatch-status { display:none; } .org-chart-toolbar { align-items:stretch; flex-direction:column; } .welcome { align-items: flex-start; } .welcome-art { position: absolute; right: 18px; bottom: 17px; opacity: .6; } .panel { padding: 15px; } .heading-actions .button { flex: 1; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

.curriculum-catalog summary { cursor: pointer; font-weight: 700; }
.curriculum-catalog ul { display: grid; gap: .55rem; padding: 0; list-style: none; }
.curriculum-catalog li { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem .75rem; padding-block: .45rem; }
.curriculum-catalog li small { color: #58657a; }
.curriculum-catalog li button { margin-inline-start: auto; }

.sidebar { overflow-y: auto; height: 100dvh; }
.resource-shortcuts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin: 0 0 24px; }
.resource-shortcuts > a { display: flex; align-items: center; gap: 14px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 16px; transition: border-color .18s,box-shadow .18s; }
.resource-shortcuts > a:hover { border-color: #a5ba8d; box-shadow: 0 6px 20px #163b2510; }
.resource-symbol { width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 13px; background: #edf3e6; color: var(--blue); }
.resource-shortcuts > a:nth-child(2) .resource-symbol { background: #eee7f6; color: #604183; }
.resource-shortcuts strong,.resource-shortcuts small { display: block; }
.resource-shortcuts strong { font-size: .95rem; }
.resource-shortcuts small { color: #667068; font-size: .8rem; line-height: 1.55; margin-top: 5px; }
.resource-shortcuts > a > span:last-child { margin-left: auto; color: #52694c; }
.sidebar .nav-caption { color: #b0c4b6; }
.sidebar .side-nav a { color: #d0dfd4; }
@media (max-width: 760px) { .resource-shortcuts { grid-template-columns: 1fr; }.resource-shortcuts > a { padding: 17px; } }
.side-nav a { font-size: .875rem; }
.heading-actions { flex-wrap: wrap; }
.welcome { background: radial-gradient(ellipse at top right,#317357,transparent 60%),linear-gradient(115deg,#112c25,#184733); }
.welcome p:last-child { color: #e0eae5; font-size: .95rem; }
.panel,.stat,.form-card,.calendar-panel,.table-wrap { box-shadow: 0 2px 5px #142b2210; }
.panel-heading h2,.calendar-heading h2,.form-card h3 { font-size: 1.08rem; }
.panel-heading p,.calendar-heading p,.field small { font-size: .82rem; }
.button,.row-action { font-size: .82rem; }
.row-action { display: inline-flex; align-items: center; min-height: 36px; }
.action-tile strong,.field,.stat-top { font-size: .86rem; }
.action-tile[data-action="remote-lesson"] { background: var(--blue-soft); border-color: #adc4af; }
.field input:not([type="checkbox"]),.field select,.field textarea { min-width: 0; min-height: 44px; }
.field input[type="checkbox"] { width: 1.1rem; min-height: 0; margin: 0 .5rem 0 0; vertical-align: middle; accent-color: var(--blue); }
.curriculum-catalog li { display: grid; grid-template-columns: minmax(0,1fr) auto auto; border-top: 1px solid var(--line); padding-block: .7rem; }
.curriculum-catalog li small { grid-row: 2; }
.curriculum-catalog li .row-action { grid-row: 1 / span 2; }
.curriculum-catalog li button { margin: 0; }
@media (max-width: 760px) {
  .mobile-menu { width: 44px; height: 44px; }
}
@media(max-width:600px) {
  .content-folder-create { align-items: stretch; flex-direction: column; }
  .content-folder-create .field,.content-folder-create-row { width: 100%; }
  .content-file-actions { align-items: flex-start; flex-direction: column; }
  .content-file-actions .form-footer { width: 100%; justify-content: flex-start; }
  .content-folder-heading { align-items: flex-start; flex-direction: column; }
  .content-folder-actions { padding-left: 31px; }
  .button { min-height: 44px; }
  .curriculum-catalog li { display: flex; }
  .curriculum-catalog li strong,.curriculum-catalog li small { flex-basis: 100%; }
}

.school-shell { transition: grid-template-columns .2s ease; }
.sidebar-collapse-toggle { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--navy); font-size: 1.4rem; line-height: 1; }
.sidebar-collapse-toggle:hover { background: var(--blue-soft); }
.nav-folder-compact { display: none; }
.school-shell.sidebar-collapsed { grid-template-columns: 76px minmax(0,1fr); }
.sidebar-collapsed .sidebar { align-items: center; padding-inline: 8px; }
.sidebar-collapsed .brand { justify-content: center; padding: 0; }
.sidebar-collapsed .brand > span:last-child,
.sidebar-collapsed .school-selector > span:nth-child(2),
.sidebar-collapsed .nav-caption,
.sidebar-collapsed .nav-organize,
.sidebar-collapsed .nav-folder-toggle strong,
.sidebar-collapsed .nav-folder-chevron,
.sidebar-collapsed .nav-folder-count,
.sidebar-collapsed .nav-folder-drag-handle,
.sidebar-collapsed .nav-folder-actions,
.sidebar-collapsed .nav-item-label,
.sidebar-collapsed .help-card,
.sidebar-collapsed .profile-info { display: none; }
.sidebar-collapsed .school-selector { justify-content: center; width: 100%; margin: 24px 0 18px; padding: 8px; }
.sidebar-collapsed .side-nav-container { width: 100%; }
.sidebar-collapsed .side-nav { gap: 5px; }
.sidebar-collapsed .nav-folder { padding: 2px; }
.sidebar-collapsed .nav-folder-heading { justify-content: center; }
.sidebar-collapsed .nav-folder-toggle { min-height: 38px; justify-content: center; padding: 0; }
.sidebar-collapsed .nav-folder-compact { display: inline; color: var(--mint); font-size: .8rem; font-weight: 800; }
.sidebar-collapsed .nav-folder-items { gap: 4px; padding-top: 3px; }
.sidebar-collapsed .nav-item-row { justify-content: center; }
.sidebar-collapsed .side-nav a { min-height: 39px; justify-content: center; padding: 0; }
.sidebar-collapsed .nav-icon { flex: 0 0 auto; }
.sidebar-collapsed .profile-row { width: 100%; flex-direction: column; gap: 8px; padding: 12px 0 0; }
.sidebar-collapsed .profile-trigger { flex: 0 0 auto; justify-content: center; }
.sidebar-collapsed .logout { flex: 0 0 auto; }
@media(max-width:1120px) and (min-width:761px) {
  .school-shell.sidebar-collapsed { grid-template-columns: 76px minmax(0,1fr); }
}
@media(max-width:760px) {
  .sidebar-collapse-toggle { display: none; }
  .school-shell.sidebar-collapsed { display: block; }
}

/* Conversas: leitura, composição e navegação */
.chat-description{margin:6px 0 0;color:#627368;font-size:.9rem}.conversation-layout{grid-template-columns:minmax(240px,.7fr) minmax(0,1.6fr);min-height:620px;border-radius:20px;box-shadow:0 10px 35px #173a2310}.conversation-list{background:#f8faf5;padding:18px}.conversation-list h3{font-size:1.05rem;display:flex;justify-content:space-between}.conversation-list h3 span{font-size:.8rem;background:#e5eddc;padding:3px 9px;border-radius:20px}.chat-search-label{display:grid;gap:8px;margin:18px 0;font-size:.8rem;color:#586957}.chat-search-label input{min-width:0;width:100%;padding:12px;border:1px solid #d8e1d0;border-radius:12px;background:white;font:inherit}.conversation-item{display:flex;gap:12px;align-items:center;padding:14px 10px;border:1px solid transparent;border-radius:12px}.conversation-item.active{border-color:#b3ca9b;background:#eaf3df}.conversation-item[hidden]{display:none}.chat-avatar{width:38px;height:38px;display:grid;place-items:center;flex:0 0 auto;background:#164b38;color:#e7f5ca;border-radius:12px;font-size:1rem;font-weight:700}.chat-contact{min-width:0;text-align:left}.chat-contact strong{font-size:.9rem}.chat-contact small{font-size:.75rem;margin-top:3px}.chat-contact>span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:5px;font-size:.8rem;color:#627368}.chat-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:20px}.chat-head strong{font-size:1.05rem}.chat-head small{font-size:.8rem}.chat-sync{margin:0;padding:10px 20px;background:#f4f8ee;font-size:.75rem;color:#53654c}.chat-sync.chat-error{background:#fff1e8;color:#8b4024}.messages{max-height:490px;min-height:240px;padding:22px;gap:14px;background:#fdfefb}.message{font-size:.95rem;padding:13px 16px;max-width:88%;line-height:1.6;box-shadow:0 2px 3px #173a2308}.message.mine{background:#e9f3da}.message-text{white-space:pre-wrap;overflow-wrap:anywhere}.message small{font-size:.7rem;color:#617056}.message-form{display:block;padding:16px 20px;background:white}.message-form textarea{width:100%;min-height:82px;max-height:210px;resize:vertical;padding:12px 14px;border:1px solid #d4dfcc;border-radius:13px;font:inherit;line-height:1.5;background:#fcfdf9}.composer-bottom{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-top:10px}.composer-bottom small{font-size:.7rem;color:#687461;line-height:1.6}.message-form .notice{margin:6px 0 0;min-height:0;font-size:.8rem}.chat-welcome{margin:auto;padding:40px;text-align:center;color:#5d7055;max-width:470px}.chat-welcome>span{display:grid;place-items:center;margin:0 auto 24px;width:70px;height:70px;background:#e8f2d8;border-radius:22px;font-size:2rem}.chat-welcome h2{font-size:1.6rem;letter-spacing:-.04em;color:#264a31}.chat-welcome p{font-size:.95rem;line-height:1.7}.chat-latest{align-self:center;min-height:36px;padding:6px 16px;border:1px solid #c6d8af;border-radius:20px;background:#edf6df;color:#244829}.chat-latest[hidden]{display:none}[data-conversation-list]{max-height:560px;overflow-y:auto}@media(max-width:760px){.conversation-layout{grid-template-columns:1fr}.conversation-list{max-height:290px}.chat-pane{min-height:440px}.messages{max-height:400px;padding:16px}.chat-head{padding:16px}.message-form{padding:14px}.composer-bottom{align-items:flex-end}.message{font-size:.95rem}.chat-welcome{padding:28px}.conversation-list [data-conversation-list]{max-height:170px}.chat-search-label{margin:10px 0}}

/* Recibos persistidos: forma, cor e nome acessível. */
.message-meta{display:flex!important;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.message-receipt{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;font-size:.7rem;color:#596653}.message-receipt svg{width:23px;height:16px;flex:none}.message-receipt.seen,.receipt-seen{color:#075baa}.receipt-legend{display:flex;gap:14px;flex-wrap:wrap;margin:0;padding:7px 20px;font-size:.7rem;color:#596653;background:#f8faf5}.message-receipt.seen{font-weight:700}

.nav-count{min-width:21px;height:21px;display:inline-grid;place-items:center;margin-left:auto;padding:0 6px;border-radius:20px;background:#d7f477;color:#173c2b;font-size:.68rem;font-weight:850}
.student-welcome .welcome-copy h2{max-width:740px}
.student-quick-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin:18px 0 24px}
.student-quick-link{min-width:0;display:grid;grid-template-columns:42px minmax(0,1fr);align-content:center;align-items:center;gap:2px 12px;padding:17px;border:1px solid var(--line);border-radius:16px;background:#fff;color:var(--ink);text-align:left;box-shadow:0 2px 5px #142b2210}
.student-quick-link:hover{border-color:#9bb68d;transform:translateY(-1px)}
.student-quick-link .resource-symbol{grid-row:span 2;width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:var(--blue-soft);color:var(--blue)}
.student-quick-link strong{font-size:.84rem}
.student-quick-link small{color:var(--muted);font-size:.72rem;line-height:1.45}
.student-classes-panel{margin-top:20px}
.library-class-select{max-width:520px;margin:0 0 16px}
.library-topic-filters{margin:0 0 12px}
.library-topic-filters .field{min-width:180px}
.library-status{margin:0 0 8px;color:var(--muted);font-size:.83rem}
.released-topic-list{display:grid;gap:0;margin:0;padding:0;list-style:none}
.released-topic-list>li{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:13px 2px;border-top:1px solid var(--line)}
.released-topic-list[data-library-plan-list]{max-height:62vh;overflow:auto;padding-right:6px}
.released-topic-list>li>span{min-width:0;display:grid;gap:4px}
.released-topic-list small{color:var(--muted);font-size:.75rem;line-height:1.5}
.released-topic-list .row-action{flex:0 0 auto}
.library-release-time{width:min(220px,100%);flex:0 0 auto}
.released-topic-list>li>.library-topic-actions{display:flex;flex-wrap:wrap;gap:6px;flex:0 0 auto}
.library-topic-status{font-weight:700}
.library-pagination{display:flex;align-items:center;justify-content:center;gap:12px;padding-top:12px;color:var(--muted);font-size:.78rem}
.classmates-class-select{max-width:520px;margin:0 0 8px}
.classmates-institution{margin:0 0 12px;color:var(--muted);font-size:.75rem}
.org-chart{display:grid;justify-items:center;gap:0;margin:20px auto 8px;max-width:900px}
.org-step{width:100%;position:relative;display:grid;justify-items:center;gap:8px;padding:0 0 22px}
.org-step:not(:first-child)::before{content:"";position:absolute;top:-22px;left:50%;height:22px;border-left:2px solid #cbd7c5}
.org-role{color:var(--muted);font-size:.69rem;font-weight:800;letter-spacing:.07em;text-align:center;text-transform:uppercase}
.org-level{width:100%;position:relative;display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
.org-node{min-width:min(100%,220px);min-height:54px;display:flex;align-items:center;justify-content:center;gap:10px;padding:10px 14px;border:1px solid #d6e1d0;border-radius:14px;background:#fff;box-shadow:0 3px 10px #142b2208;text-align:center}
.org-node strong{font-size:.83rem;overflow-wrap:anywhere}
.org-node-institution{border-color:#b9d778;background:#f3f9e5;color:#244829}
.org-node-empty,.org-students-step>.org-node-empty{color:var(--muted);font-size:.78rem}
.org-students-step{padding-bottom:0}
.org-students-step .org-role{margin-bottom:3px}
.org-students-step .classmate-list{width:100%;margin:0}
.institution-roles{margin-top:20px;padding-top:16px;border-top:1px solid var(--line)}
.institution-roles h2{margin:0 0 12px;font-size:1.05rem}
.institution-roles .field-help{display:block;margin-top:6px}
.org-chart-toolbar { display:flex; align-items:flex-end; justify-content:space-between; gap:14px; margin:22px 0 16px; }
.org-chart-toolbar .field { width:min(100%,520px); margin:0; }
.org-chart-empty { display:grid; justify-items:start; gap:10px; }
.org-chart-empty h2,.org-chart-empty p { margin:0; }
.org-chart-empty p { color:var(--muted); font-size:.84rem; }
.org-chart .org-node small { color:var(--muted); font-size:.68rem; }
@media(max-width:420px) { .org-chart-toolbar { align-items:stretch; flex-direction:column; } }
.classmate-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:10px;margin:16px 0 0;padding:0;list-style:none}
.classmate-list>li{min-width:0;min-height:68px;display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 2px 6px #142b2208}
.classmate-avatar{width:40px;height:40px;display:grid;place-items:center;flex:0 0 auto;border-radius:13px;background:#e8f2d8;color:#244829;font-weight:800}
.classmate-name{min-width:0;display:grid;gap:3px;margin-right:auto}
.classmate-name strong{overflow-wrap:anywhere;font-size:.84rem}
.classmate-name small{color:var(--muted);font-size:.72rem}
.classmate-list .row-action{flex:0 0 auto}
.institution-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:14px}
.institution-card{min-width:0}
.institution-setup{margin-bottom:16px;padding:20px}
.institution-setup-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.institution-setup-heading h2{margin:5px 0;font-size:1.15rem}
.institution-setup-heading p{margin:0;color:var(--muted);font-size:.8rem}
.institution-setup-heading .eyebrow{color:#547849;font-size:.65rem;font-weight:800;letter-spacing:.1em}
.institution-setup-progress{display:grid;gap:2px;flex:0 0 auto;padding:9px 13px;border-radius:12px;background:#f1f6e8;text-align:center}
.institution-setup-progress strong{color:#315d3d;font-size:.92rem}
.institution-setup-progress small{color:var(--muted);font-size:.62rem}
.institution-setup-track{height:7px;overflow:hidden;margin:16px 0 10px;border-radius:10px;background:#e8ede3}
.institution-setup-track span{display:block;height:100%;border-radius:inherit;background:#5d8e4e;transition:width .25s ease}
.institution-setup-steps{display:grid;gap:7px;margin:0;padding:0;list-style:none}
.institution-setup-step{display:grid;grid-template-columns:25px minmax(0,1fr) auto auto;align-items:center;gap:9px;padding:9px 10px;border:1px solid #e8ece4;border-radius:11px}
.institution-setup-mark{display:grid;width:22px;height:22px;place-items:center;border-radius:50%;background:#eef1eb;color:#71806e;font-weight:800}
.institution-setup-step.complete .institution-setup-mark{background:#e8f2d8;color:#315d3d}
.institution-setup-copy{display:grid;gap:3px;min-width:0}
.institution-setup-copy strong{font-size:.76rem}
.institution-setup-copy small{color:var(--muted);font-size:.68rem}
.institution-setup-status{color:#737f70;font-size:.65rem}
.institution-setup-step.complete .institution-setup-status{color:#386c43;font-weight:700}
.institution-setup-step.optional{background:#fbfcfa}
.institution-setup>.field-help{margin:10px 0 0}
.institution-rename,.institution-assignment{display:flex;align-items:end;gap:9px;margin:12px 0}
.institution-rename .field,.institution-assignment .field{flex:1;min-width:0}
.institution-teachers{display:grid;gap:5px;margin:12px 0;padding-left:20px;color:var(--muted);font-size:.75rem}
@media(max-width:600px){.classmate-list>li{flex-wrap:wrap}.classmate-list .row-action{margin-left:50px}.institution-rename,.institution-assignment{align-items:stretch;flex-direction:column}.institution-rename .row-action,.institution-assignment .button{align-self:flex-end}.institution-setup{padding:15px}.institution-setup-heading{gap:8px}.institution-setup-progress{padding:7px}.institution-setup-step{grid-template-columns:22px minmax(0,1fr) auto;gap:7px;padding:9px 7px}.institution-setup-status{grid-column:2;grid-row:2}.institution-setup-step .row-action{grid-column:3;grid-row:1 / span 2;padding-inline:8px}.institution-setup-copy small{line-height:1.4}.org-node{min-width:min(100%,260px);flex-direction:column}.org-level{gap:7px}.org-step{padding-bottom:18px}.org-step:not(:first-child)::before{top:-18px;height:18px}}
@media(max-width:760px){.student-quick-links{grid-template-columns:1fr}.student-quick-link{min-height:76px}.released-topic-list>li{align-items:flex-start;flex-direction:column}.released-topic-list .row-action{align-self:flex-start}.library-release-time{width:100%}.student-classes-panel{margin-top:14px}}
