/* Sol Claro school areas: account hub, student portal, teacher area, administration. */
.scs { padding: clamp(28px, 5vw, 72px) 0 clamp(48px, 7vw, 110px); background: var(--cream-2, #fffaf0); min-height: 70vh; }
.scs-title { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.1; color: var(--ink); margin: 0 0 .5em; }
.scs-muted { color: var(--muted); font-size: 14px; }
.scs-muted a, .scs-hub__foot a { color: var(--gold-2); }

/* hub */
.scs-hub { max-width: 1100px; margin: 0 auto; }
.scs-hub__head { text-align: center; margin-bottom: clamp(24px, 4vw, 48px); }
.scs-hub__head .lead { margin-left: auto; margin-right: auto; }
.scs-doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.scs-door { display: flex; flex-direction: column; gap: 12px; padding: 30px 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.scs-door:hover, .scs-door:focus-visible { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(0,0,0,.35); border-color: var(--gold); }
.scs-door__label { font-family: var(--serif); font-size: 28px; color: var(--ink); }
.scs-door__text { flex: 1; line-height: 1.5; }
.scs-door__go { align-self: flex-start; padding: 8px 18px; border-radius: var(--pill); background: var(--yellow); color: var(--ink); font-weight: 600; font-size: 14px; }
.scs-door--teacher .scs-door__go { background: var(--sand); }
.scs-door--admin .scs-door__go { background: var(--ink); color: var(--white); }
.scs-hub__foot { text-align: center; margin-top: 28px; }

/* cards and login */
.scs-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 34px); margin-bottom: 18px; }
.scs-card--narrow { max-width: 520px; margin: 0 auto; }
.scs-login form p { margin: 0 0 14px; }
.scs-login label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.scs-login input[type=text], .scs-login input[type=password] { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: var(--cream-2); }
.scs-login .login-remember label { display: inline; font-weight: 400; }
.scs-login input[type=submit] { padding: 12px 26px; border: 0; border-radius: var(--pill); background: var(--yellow); color: var(--ink); font-weight: 600; cursor: pointer; }
.scs-login sc-login-form { display: block; margin: 18px 0; }
/* "Sign in with Microsoft" (Microsoft's light button: white, grey border, the four squares) */
.scs-ms-form { margin: 14px 0 6px; }
.scs-ms-btn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 48px; padding: 10px 18px; border: 1px solid #8c8c8c; border-radius: 8px; background: #fff; color: #1f1f1f; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
.scs-ms-btn:hover, .scs-ms-btn:focus-visible { background: #f3f3f3; border-color: #5e5e5e; }
.scs-ms-btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.scs-ms-btn__logo { flex: 0 0 20px; }
.scs-login__or { display: flex; align-items: center; gap: 12px; margin: 22px 0 6px; color: var(--muted); font-size: 14px; }
.scs-login__or::before, .scs-login__or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.scs-login__other { margin-top: 14px; }
.scs-login .scs-notice { margin: 4px 0 14px; }

/* area shell */
.scs-shell { display: grid; grid-template-columns: 250px 1fr; gap: clamp(20px, 3vw, 44px); align-items: start; }
.scs-side { position: sticky; top: calc(var(--header-h) + 20px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 16px; }
.scs-side__area { margin: 0 10px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-2); font-weight: 600; }
.scs-side__who { margin: 4px 10px 16px; font-family: var(--serif); font-size: 22px; color: var(--ink); }
.scs-nav { display: flex; flex-direction: column; gap: 2px; }
.scs-nav a { padding: 10px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 15px; }
.scs-nav a:hover { background: var(--cream); }
.scs-nav a.is-active { background: var(--sand); color: var(--ink); font-weight: 600; }
.scs-side__foot { display: flex; flex-direction: column; gap: 6px; margin: 18px 10px 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.scs-side__foot a { color: var(--muted); }
.scs-main { min-width: 0; }

/* content */
.scs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-bottom: 18px; }
.scs-planned { background: var(--white); border: 1px dashed var(--sand-2); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 16px; }
.scs-planned h3 { margin: 4px 0 6px; font-family: var(--serif); font-weight: 500; font-size: 22px; color: var(--ink); }
.scs-planned p { margin: 0; line-height: 1.5; }
.scs-planned__tag { font-size: 11px !important; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-2); font-weight: 600; }
.scs-planned__tables { margin-top: 10px !important; font-size: 12px; color: var(--muted); }
.scs-planned__tables code { background: var(--cream); padding: 1px 6px; border-radius: 4px; margin-right: 4px; }
.scs-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 18px; }
.scs-kpi { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; }
.scs-kpi__n { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--ink); }
.scs-kpi__l { margin-top: 6px; font-size: 14px; color: var(--muted); }
.scs-dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; margin: 0; }
.scs-dl dt { color: var(--muted); }
.scs-dl dd { margin: 0; color: var(--ink); }
.scs-table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.scs-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.scs-table th, .scs-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.scs-table th { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; background: var(--cream-2); }
.scs-table tr:last-child td { border-bottom: 0; }
.scs-chip { display: inline-block; padding: 2px 10px; margin: 0 4px 4px 0; border-radius: var(--pill); font-size: 12px; font-weight: 600; background: var(--cream); color: var(--ink); }
.scs-chip--student { background: #fff1c2; }
.scs-chip--teacher { background: var(--sand); }
.scs-chip--admin { background: var(--ink); color: var(--white); }

@media (max-width: 860px) {
	.scs-shell { grid-template-columns: 1fr; }
	.scs-side { position: static; }
	.scs-nav { flex-direction: row; flex-wrap: wrap; gap: 6px; }
	.scs-nav a { padding: 8px 12px; background: var(--cream); border-radius: var(--pill); font-size: 14px; }
}

/* data screens (v0.2) */
.scs-h2 { font-family: var(--serif); font-weight: 500; font-size: 28px; color: var(--ink); margin: 0 0 12px; }
.scs-h3 { font-family: var(--serif); font-weight: 500; font-size: 22px; color: var(--ink); margin: 28px 0 10px; }
.scs-small { font-size: 13px; line-height: 1.45; }
.scs-kpi--link { text-decoration: none; transition: border-color .2s; }
.scs-kpi--link:hover { border-color: var(--gold); }
.scs-kpi--alert { background: #fff6d6; border-color: var(--yellow); }
.scs-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.scs-filter input, .scs-filter select { padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: var(--white); min-width: 200px; }
.scs-profile { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; }
.scs-profile .scs-kpi { min-width: 150px; text-align: center; }
.scs-plus { color: #217a3c; font-weight: 600; }
.scs-minus { color: #b42318; font-weight: 600; }
.scs-big { font-family: var(--serif); font-size: 48px; line-height: 1; color: var(--ink); margin: 4px 0 8px !important; }
.scs-status h3 { font-family: var(--serif); font-weight: 500; font-size: 22px; color: var(--ink); margin: 4px 0 6px; }
.scs-status p { margin: 0 0 6px; line-height: 1.5; }
.scs-chip--trial { background: #e7f0ff; }
.scs-chip--purchase { background: #e3f4e8; }
.scs-chip--manual, .scs-chip--import { background: var(--cream); }
.scs-chip--pool { background: #fff1c2; }
.scs-chip--st-lead { background: #e7f0ff; }
.scs-chip--st-trial { background: #efe7ff; }
.scs-chip--st-active { background: #e3f4e8; }
.scs-chip--st-paused, .scs-chip--st-alumni { background: #eee; }
@media (max-width: 860px) { .scs-profile { grid-template-columns: 1fr; } }
/* Backlog round C (item 26): the pool's Place controls sit under the name, so the row fits a laptop (1280 px) without
   scrolling sideways; long contact details wrap. */
.scs-table--pool td.scs-card-head { min-width: 220px; }
.scs-pool-contact { overflow-wrap: anywhere; }
.scs-pool-place { margin-top: 8px; }
.scs-pool-place .scs-inline select { flex: 1 1 140px; width: 100%; max-width: 100%; min-width: 0; } /* never as wide as the longest group name */
.scs-pool-place .scs-more summary { margin-top: 4px; }
/* the pool's sign-up answers (a dl): label and value side by side; never anything else called "prefs" */
dl.scs-prefs { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 2px 12px; margin: 4px 0 0; font-size: 13px; line-height: 1.4; }
dl.scs-prefs dt { color: var(--muted); white-space: nowrap; }
dl.scs-prefs dd { margin: 0; overflow-wrap: anywhere; }
dl.scs-prefs .scs-prefs__times { grid-column: 1 / -1; } /* backlog item 21: "Can come" and its days and times, the full width */
dl.scs-prefs dd.scs-prefs__times { margin-bottom: 2px; overflow-wrap: normal; } /* a line breaks between ranges, never inside one */
@media (max-width: 420px) { dl.scs-prefs { grid-template-columns: minmax(0, 1fr); } dl.scs-prefs dt { margin-top: 4px; } }

/* forms and actions (v0.3) */
.scs-notice { padding: 12px 16px; border-radius: 8px; margin: 0 0 16px; font-weight: 500; }
.scs-notice--ok { background: #e3f4e8; color: #14532d; }
.scs-notice--error { background: #fde8e8; color: #7f1d1d; }
.scs-form label, .scs-fields label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.scs-form input[type=text], .scs-form input[type=email], .scs-form input[type=tel], .scs-form input[type=number], .scs-form input[type=date], .scs-form select,
.scs-inline input, .scs-inline select { padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-weight: 400; background: var(--white); min-width: 0; }
.scs-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 16px; }
.scs-fields .scs-wide { grid-column: 1 / -1; }
.scs-fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px 4px; margin: 6px 0 14px; }
.scs-fieldset legend { font-weight: 600; font-size: 14px; padding: 0 6px; }
.scs-hint { font-weight: 400; color: var(--muted); font-size: 12px; }
label.scs-check { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
label.scs-check { flex-wrap: wrap; } /* step 9b: a hint in a check label goes under its words, not in a narrow column beside them */
label.scs-check > .scs-hint { flex: 1 1 100%; margin: -4px 0 0 24px; }
.scs-inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.scs-inline label.scs-check { margin: 0; }
.scs-grow { flex: 1 1 320px; }
.scs-more summary { cursor: pointer; font-size: 13px; color: var(--muted); margin-top: 6px; }
.scs-more[open] summary { margin-bottom: 6px; }
.scs-action-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.scs-action-grid .scs-card { margin: 0; }
.scs-action-grid button { margin-top: 4px; }
.scs-h3--first { margin-top: 0; }
.scs-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; }
.scs-new > summary { list-style: none; display: inline-flex; cursor: pointer; }
.scs-new > summary::-webkit-details-marker { display: none; }
.scs-new[open] > summary { margin-bottom: 16px; }
details.scs-new:not([open]) { background: transparent; border: 0; padding: 0; }
.scs-steps { margin: 0; padding-left: 20px; line-height: 1.9; }
.scs-steps a { color: var(--gold-2); }
.scs-actions-cell { min-width: 230px; }
.scs-kpi__n small { font-size: 22px; color: var(--muted); }
.scs-edit > summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.scs-edit[open] > summary { margin-bottom: 14px; }
details.scs-edit:not([open]) { padding-top: 14px; padding-bottom: 14px; }
.scs-invite { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.scs-inline-label { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; margin: 0 !important; }
.scs-form textarea { padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-weight: 400; }
.scs-password { margin-top: 10px; }
.scs-chip--inv-paid { background: #e3f4e8; }
.scs-chip--inv-due { background: #fff1c2; }
.scs-chip--inv-overdue { background: #fde2e1; color: #8a1c1c; }
.scs-nowrap { white-space: nowrap; }
.scs-links { white-space: nowrap; font-size: 14px; }
.scs-links a { color: var(--gold-2); font-weight: 600; }
.scs-table--invoices td:nth-child(3) { min-width: 220px; }
.scs-table-wrap + .scs-muted, .scs-table-wrap + p { margin-top: 14px; }
/* Invoice and receipt tables stack into one card per row on phones, so status and links stay in view. */
@media (max-width: 640px) {
	.scs-table--stack thead { display: none; }
	.scs-table--stack tbody tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
	.scs-table--stack tbody tr:last-child { border-bottom: 0; }
	.scs-table--stack td { display: block; padding: 0; border: 0; min-width: 0 !important; }
	.scs-table--invoices td:nth-child(3), .scs-table--invoices td:nth-child(6), .scs-table--receipts td:nth-child(2) { grid-column: 1 / -1; }
	.scs-table--invoices td:nth-child(2), .scs-table--invoices td:nth-child(5), .scs-table--receipts td:nth-child(4) { text-align: right; }
}

/* business: customers, invoices, activities (v0.5) */
.scs-chip--act { display: inline-flex; align-items: center; gap: 6px; background: var(--white); border: 1px solid var(--line); font-weight: 500; }
.scs-dot { display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.scs-chip--org { background: #e7eefb; }
.scs-chip--todo { background: #fde2e1; color: #8a1c1c; }
.scs-chip--inv-void, .scs-chip--inv-uncollectible { background: #eee; color: var(--muted); }
.scs-num { text-align: right !important; white-space: nowrap; font-variant-numeric: tabular-nums; }
.scs-total td { font-weight: 600; background: var(--cream-2); border-top: 1px solid var(--line); }
.scs-kpi__n--money { font-size: 28px; line-height: 1.15; }
.scs-filter input[type=checkbox] { min-width: 0; }
.scs-filter__check { align-self: center; margin: 0 !important; font-size: 14px; }
.scs-filter__clear { align-self: center; font-size: 14px; color: var(--gold-2); }
.scs-sumbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 14px; }
.scs-sumbar__total { margin: 0; flex-basis: 100%; font-size: 14px; color: var(--muted); }
.scs-sumbar__total strong { color: var(--ink); }
.scs-sumbar__item { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text); text-decoration: none; }
.scs-sumbar__item .scs-chip { margin: 0; }
.scs-sumbar__item:hover span { text-decoration: underline; }
.scs-table--classify { min-width: 980px; }
.scs-table--classify td:nth-child(4) { min-width: 170px; }
.scs-classify-cell { width: 270px; min-width: 250px; }
/* activity and "remember" stacked, Save beside them, so the whole form stays in view */
.scs-inline.scs-classify { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "a b" "r b"; gap: 6px; align-items: start; }
.scs-classify select { width: 100%; font-size: 13px; padding: 6px 8px; }
.scs-classify select[name=activity] { grid-area: a; }
.scs-classify select[name=remember] { grid-area: r; }
.scs-classify button { grid-area: b; align-self: start; }
.scs-filter input[type=search] { min-width: 240px; }
.scs-why { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.scs-table--report { min-width: 720px; }
.scs-table--report th.scs-num { white-space: normal; min-width: 96px; }
.scs-table--customers { min-width: 760px; }
.scs-act-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.scs-act-row { padding: 8px 0; border-bottom: 1px solid var(--line); }
.scs-act-row:last-child { border-bottom: 0; }
.scs-act-row .scs-grow { flex: 1 1 220px; }
.scs-act-kind { min-width: 150px; }
.scs-color { width: 42px; height: 36px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); cursor: pointer; }
.scs-w-sm { width: 76px; }

/* scheduling: weekly times, the week, lessons (v0.6) */
.scs-h4 { font-family: var(--serif); font-weight: 500; font-size: 19px; color: var(--ink); margin: 0 0 10px; }
.scs-card--warn { background: #fff6d6; border-color: var(--yellow); }
.scs-checklist { margin: 8px 0 0; padding-left: 20px; line-height: 1.7; }
.scs-checklist a, .scs-soon a { color: var(--ink); }
.scs-strike { text-decoration: line-through; color: var(--muted); }
.scs-off { color: #8a1c1c; font-weight: 600; font-size: 13px; }
.scs-moved { font-size: 12px; color: #2b5c9e; }
.scs-chip--sub { background: #efe7ff; color: #4b2a85; font-weight: 600; }
.scs-chip--ls-scheduled { background: #e3f4e8; }
.scs-chip--ls-held { background: #e7eefb; }
.scs-chip--ls-off { background: #fde2e1; color: #8a1c1c; }
.scs-chip--ntf-sent { background: #e3f4e8; }
.scs-chip--ntf-failed { background: #fde2e1; color: #8a1c1c; }
.scs-chip--ntf-skipped { background: #eee; color: var(--muted); }
.scs-rules { margin: 0 0 6px; }
.scs-rule { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.scs-rule:last-child { border-bottom: 0; }
.scs-rule__main { flex: 1 1 280px; min-width: 0; }
.scs-rule__act > summary { margin-top: 0; }
.scs-rule__act[open] { flex-basis: 100%; order: 1; background: var(--cream-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px 12px; }
.scs-add-rule { margin-top: 10px; }
.scs-add-rule > summary { font-weight: 600; color: var(--gold-2); font-size: 14px; }
.scs-add-rule[open] { background: var(--cream-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px 12px; }
.scs-row--off td { background: #faf8f3; }
.scs-table--lessons td:first-child { min-width: 190px; }
.scs-soon { margin: 0; padding-left: 20px; line-height: 1.8; }
.scs-thisweek h3 a { color: var(--ink); text-decoration: none; }
.scs-thisweek h3 a:hover { text-decoration: underline; }
.scs-attention { margin: 12px 0 0; padding: 10px 12px; background: #fff6d6; border-radius: 8px; font-size: 14px; }
.scs-attention a { color: var(--gold-2); }

.scs-weeknav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 12px; }
.scs-weeknav__title { font-family: var(--serif); font-weight: 500; font-size: 26px; color: var(--ink); margin: 0; }
.scs-weeknav__title .scs-muted { font-family: var(--sans); font-size: 14px; }
.scs-weeknav__links { display: flex; flex-wrap: wrap; gap: 8px; }
.scs-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin: 0 0 18px; }
.scs-day { min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 8px; min-height: 150px; }
.scs-day--today { border-color: var(--gold); box-shadow: inset 0 3px 0 var(--gold); }
.scs-day__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 6px; margin: 0 2px 8px; font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--ink); }
.scs-day__head span { color: var(--muted); font-weight: 400; }
.scs-day__none { margin: 0 2px; font-size: 12px; color: var(--muted); }
.scs-lesson { display: block; margin: 0 0 6px; padding: 8px 9px; border-radius: 8px; border-left: 3px solid var(--gold); background: var(--cream-2); color: var(--text); text-decoration: none; font-size: 12.5px; line-height: 1.35; overflow-wrap: anywhere; transition: background .2s; }
.scs-lesson:hover, .scs-lesson:focus-visible { background: var(--cream); }
.scs-lesson__time, .scs-lesson__group { display: block; font-weight: 600; color: var(--ink); }
.scs-lesson__meta { display: block; color: var(--muted); }
.scs-lesson__meta .scs-chip { margin: 2px 0 0; padding: 0 7px; font-size: 11px; }
.scs-lesson__flag { display: block; margin-top: 3px; font-size: 11.5px; font-weight: 600; color: #8a1c1c; }
.scs-lesson__moved { display: block; margin-top: 3px; font-size: 11.5px; color: #2b5c9e; }
.scs-lesson--sub { border-left-color: #8a63c9; }
.scs-lesson--off { border-left-color: #cfc8b4; background: #f6f4ee; }
.scs-lesson--off .scs-lesson__time, .scs-lesson--off .scs-lesson__group { text-decoration: line-through; color: var(--muted); }
/* Narrower screens: one row per day, the day on the left; phones: stacked. */
@media (max-width: 1180px) {
	.scs-week { grid-template-columns: 1fr; gap: 6px; }
	.scs-day { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 0 12px; align-items: start; min-height: 0; padding: 10px 12px; }
	.scs-day__head { flex-direction: column; justify-content: flex-start; margin: 2px 0 0; font-size: 14px; }
	.scs-day__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; }
	.scs-lesson { margin: 0; font-size: 13px; }
	.scs-day--empty { padding-top: 8px; padding-bottom: 8px; }
}
@media (max-width: 560px) {
	.scs-day { grid-template-columns: 1fr; }
	.scs-day__head { flex-direction: row; justify-content: flex-start; gap: 8px; margin: 0 0 8px; }
	.scs-day--empty .scs-day__head { margin: 0; }
	.scs-day--empty { display: flex; align-items: baseline; gap: 10px; }
	.scs-day__list { grid-template-columns: 1fr; }
	.scs-weeknav__title { font-size: 22px; }
	.scs-weeknav__links .btn { padding: 9px 14px; }
}

/* student portal and teacher area: next class, class lists, groups, trial classes (v0.7) */
.scs-next__off { margin: 0 0 8px !important; padding: 6px 10px; border-radius: 8px; background: #fde2e1; color: #8a1c1c; font-size: 14px; font-weight: 600; }
.scs-next__when { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.scs-next__when span { font-family: var(--sans); font-size: 17px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.scs-next__group, .scs-next__where { margin: 0 0 4px; }
.scs-next__join { margin: 12px 0 4px !important; }
.scs-next__all { margin: 12px 0 0 !important; font-size: 14px; }
.scs-next__all a { color: var(--gold-2); }
.scs-chip--trialclass { background: #efe7ff; color: #4b2a85; }
.scs-chip--warn { background: #fff1c2; color: #7a4b00; }
.scs-card--focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255, 187, 0, .25); }
.scs-warn-text { color: #8a1c1c; font-weight: 600; }
/* a calm note (not a problem): e.g. the 5-minute job on a test site, which runs only when started by hand */
.scs-info-text { margin: 0 0 12px; padding: 8px 12px; border-left: 3px solid #cfc8b4; border-radius: 6px; background: #f6f4ee; color: var(--ink); font-size: 14px; line-height: 1.5; }
.scs-tick-parts { margin: 4px 0 0; padding-left: 18px; }
.scs-tick-parts li { margin: 0; }
.scs-h2--learner { margin-top: 28px; }
.scs-h2--section { margin-top: 34px; }

.scs-agenda { list-style: none; margin: 0 0 18px; padding: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.scs-agenda__item { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 4px 18px; padding: 12px 16px; border-bottom: 1px solid var(--line); border-left: 3px solid var(--gold); }
.scs-agenda__item:last-child { border-bottom: 0; }
.scs-agenda__item.is-trial, .scs-agenda__item.is-sub { border-left-color: #8a63c9; }
.scs-agenda__item.is-off { border-left-color: #cfc8b4; background: #faf8f3; }
.scs-agenda__item.is-off .scs-agenda__day, .scs-agenda__item.is-off .scs-agenda__time, .scs-agenda__item.is-off .scs-agenda__group { text-decoration: line-through; color: var(--muted); }
.scs-agenda--past .scs-agenda__item:not(.is-off) { border-left-color: var(--line); }
.scs-agenda__when { display: flex; flex-direction: column; }
.scs-agenda__day { font-weight: 600; color: var(--ink); }
.scs-agenda__time { color: var(--text); font-variant-numeric: tabular-nums; }
.scs-agenda__what { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.scs-agenda__group { font-weight: 600; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
a.scs-agenda__group:hover, a.scs-agenda__group:focus-visible { text-decoration: underline; }
.scs-agenda__what .scs-chip { align-self: flex-start; margin: 2px 0; }
.scs-agenda__meta { font-size: 14px; color: var(--muted); }
.scs-agenda__note { font-size: 13px; }
.scs-agenda__join { align-self: flex-start; margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--gold-2); }
.scs-agenda--compact .scs-agenda__item { padding: 9px 14px; }
.scs-agenda--today .scs-agenda__time { font-family: var(--serif); font-size: 24px; color: var(--ink); }
.scs-mygroup .scs-h4 { margin-bottom: 8px; }
.scs-mygroup .scs-dl { gap: 6px 16px; font-size: 14px; }
.scs-tgroup__meta { margin: -4px 0 10px; color: var(--muted); font-size: 14px; }
.scs-tgroup__meta .scs-chip { margin: 0 0 0 4px; }
.scs-tgroup__times { margin: 0 0 12px; font-size: 14px; }
.scs-tgroup .scs-h4 { margin-top: 16px; }
.scs-tgroup .scs-agenda { margin-bottom: 0; }
.scs-tgroup h3 a { color: var(--ink); }
.scs-trial { padding: 10px 0; border-bottom: 1px solid var(--line); }
.scs-trial:last-child { border-bottom: 0; padding-bottom: 0; }
.scs-trial__main { margin: 0 0 4px; }
.scs-trial__main a, .scs-table--trials a { color: var(--gold-2); }
.scs-trial__act { gap: 16px; align-items: flex-start; }
.scs-table--roster td:first-child { min-width: 180px; }
@media (max-width: 640px) {
	.scs-agenda__item { grid-template-columns: 1fr; padding: 12px 14px; }
	.scs-agenda__when { flex-direction: row; flex-wrap: wrap; gap: 0 10px; }
	.scs-agenda--today .scs-agenda__time { font-size: 20px; }
	.scs-table--stack.scs-table--roster tbody tr { grid-template-columns: 1fr; }
	.scs-table--roster td:first-child { min-width: 0; }
	.scs-table--roster td.scs-empty { display: none; }
	.scs-table--roster td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); }
}

/* attendance: teacher marking (phone first), manager table, history (v0.8) */
.scs-att-card { margin-top: 18px; }
.scs-att__row { border: 0; margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.scs-att__row:last-of-type { border-bottom: 0; }
.scs-att__who { float: left; width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 0 10px; padding: 0; font-size: 16px; font-weight: 600; color: var(--ink); }
.scs-att__who a { color: var(--ink); }
.scs-att__who .scs-chip { margin: 0; }
.scs-att__reported { clear: both; margin: 0 0 8px; font-size: 13px; color: #2b5c9e; }
.scs-att__opts { clear: both; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.scs-att .scs-att__opt { position: relative; display: block; margin: 0; font-size: 15px; }
.scs-att__opt input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; }
.scs-att__opt span { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 8px 10px; border: 2px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink); font-weight: 600; line-height: 1.2; text-align: center; cursor: pointer; user-select: none; transition: background .15s, border-color .15s, color .15s; }
.scs-att__opt:hover span { border-color: var(--sand-2, #d8c69c); }
.scs-att__opt input:focus-visible + span { outline: 3px solid rgba(255, 187, 0, .55); outline-offset: 2px; }
.scs-att__opt--present input:checked + span { background: #217a3c; border-color: #217a3c; color: #fff; }
.scs-att__opt--absent_no_notice input:checked + span { background: #b42318; border-color: #b42318; color: #fff; }
.scs-att__opt--absent_notice input:checked + span { background: #fff1c2; border-color: #c08a12; color: #5c3d00; }
.scs-att__opt--excused input:checked + span { background: #e7eefb; border-color: #2b5c9e; color: #1d3f6e; }
.scs-att .scs-att__topic { margin: 16px 0 14px; font-size: 14px; }
.scs-att .scs-att__topic input { padding: 12px 14px; font-size: 16px; }
.scs-att__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.scs-att__save { min-height: 50px; padding-left: 30px; padding-right: 30px; font-size: 16px; }
.scs-att__mgr { display: grid; grid-template-columns: minmax(180px, 240px) minmax(0, 1fr); gap: 0 12px; margin-top: 10px; align-items: end; }
.scs-att__mgr label { margin-bottom: 4px; }
.scs-att__mgr select { width: 100%; }
.scs-att__state { grid-column: 1 / -1; margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.scs-att__state--counted { color: #14532d; }
.scs-att__state--owed { color: #8a1c1c; font-weight: 600; }
.scs-att__state--trial, .scs-att__state--pending { color: #4b2a85; }
.scs-att__state--invoice { color: #2b5c9e; }
.scs-att--admin .scs-att__opt span { min-height: 42px; font-size: 14px; }
.scs-att-walkin { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.scs-att-walkin .scs-inline select { max-width: 100%; }
.scs-att-remove { margin-top: 10px; }
.scs-att-list { list-style: none; margin: 0 0 8px; padding: 0; }
.scs-att-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.scs-att-list li:last-child { border-bottom: 0; }
.scs-att-tag { display: inline-block; padding: 1px 10px; border-radius: var(--pill); background: var(--cream); color: var(--ink); font-size: 12px; font-weight: 600; white-space: nowrap; }
.scs-att-tag--present { background: #e3f4e8; color: #14532d; }
.scs-att-tag--absent_no_notice { background: #fde2e1; color: #8a1c1c; }
.scs-att-tag--absent_notice { background: #fff1c2; color: #5c3d00; }
.scs-att-tag--excused { background: #e7eefb; color: #1d3f6e; }
.scs-att-box { margin-top: 10px; }
.scs-att-box > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: var(--pill); background: var(--yellow); color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer; }
.scs-att-box > summary::-webkit-details-marker { display: none; }
.scs-att-box[open] > summary { margin-bottom: 6px; }
.scs-agenda__att { grid-column: 1 / -1; min-width: 0; }
.scs-att-done { color: #217a3c; font-weight: 600; }
.scs-att-done::before { content: "\2713\00a0"; }
.scs-chip--attmissing { background: #fde2e1; color: #8a1c1c; }
.scs-agenda__what .scs-chip--attmissing { align-self: flex-start; }
.scs-chip--shared { background: #e7eefb; color: #1d3f6e; }
.scs-table--atthist td:nth-child(4) { min-width: 240px; }
@media (max-width: 640px) {
	.scs-att__opts { grid-template-columns: 1fr 1fr; gap: 10px; }
	.scs-att__opt span { min-height: 56px; font-size: 16px; }
	.scs-att__mgr { grid-template-columns: 1fr; }
	.scs-att__save { width: 100%; }
	.scs-table--atthist td:nth-child(4) { grid-column: 1 / -1; min-width: 0; }
}

/* students' notices, lessons left, credits (v0.9, step 5b) */
.scs-absence { margin: 8px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.scs-agenda__what .scs-absence { margin-top: 6px; }
.scs-absence__state { flex-basis: 100%; display: flex; flex-direction: column; gap: 2px; margin: 0 !important; padding: 8px 12px; border-radius: 10px; border-left: 4px solid; font-size: 14px; line-height: 1.45; }
.scs-absence__state strong { font-weight: 700; }
.scs-absence__state--free { background: #e3f4e8; border-left-color: #217a3c; color: #14532d; }
.scs-absence__state--late { background: #fff1c2; border-left-color: #c08a12; color: #5c3d00; }
.scs-absence__undohint { font-size: 13px; opacity: .9; }
.scs-absence__note { flex-basis: 100%; margin: 0 !important; font-size: 13px; color: var(--muted); }
.scs-absence__undo { gap: 10px; }
.scs-absence__btn { white-space: nowrap; }
.scs-absence-panel { scroll-margin-top: calc(var(--header-h, 80px) + 16px); }
.scs-absence-panel__when { font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.2; color: var(--ink); margin: 4px 0 6px; }
.scs-absence-panel__what { margin: 0 0 12px; }
.scs-absence-panel__rule { margin: 0 0 10px; padding: 10px 14px; border-radius: 10px; line-height: 1.5; background: var(--cream-2); border-left: 4px solid var(--line); }
.scs-absence-panel__rule--free { background: #e3f4e8; border-left-color: #217a3c; color: #14532d; }
.scs-absence-panel__rule--late { background: #fff1c2; border-left-color: #c08a12; color: #5c3d00; }
.scs-absence-panel__rule--trial { background: #efe7ff; border-left-color: #8a63c9; color: #4b2a85; }
.scs-absence-panel__rule--info { background: transparent; border-left-color: transparent; padding-top: 0; padding-left: 0; color: var(--text); }
.scs-absence-panel__form { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 16px; }
.scs-absence-panel__back { color: var(--gold-2); font-weight: 600; }
.scs-chip--absence { background: #fff1c2; color: #7a4b00; }
.scs-agenda__what .scs-chip--absence { align-self: flex-start; }
.scs-lesson__absence { display: block; margin-top: 3px; font-size: 11.5px; font-weight: 600; color: #7a4b00; }
.scs-absences .scs-att-list { margin-bottom: 4px; }
.scs-past-att { display: inline-block; align-self: flex-start; margin-top: 4px; padding: 1px 10px; border-radius: var(--pill); font-size: 12.5px; font-weight: 600; background: var(--cream); color: var(--ink); }
.scs-past-att--counted { background: #e7eefb; color: #1d3f6e; }
.scs-past-att--free { background: #e3f4e8; color: #14532d; }
.scs-past-att--owed { background: #fde2e1; color: #8a1c1c; }
.scs-past-att--trial { background: #efe7ff; color: #4b2a85; }
.scs-past-att--none { background: #f1efe9; color: var(--muted); }
.scs-left__list { list-style: none; margin: 0 0 8px; padding: 0; }
.scs-left__list li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; }
.scs-left__what { min-width: 0; overflow-wrap: anywhere; color: var(--text); }
.scs-left__sub { display: block; font-size: 12.5px; color: var(--muted); }
.scs-left__n { font-family: var(--serif); font-weight: 500; font-size: 22px; color: var(--ink); font-variant-numeric: tabular-nums; }
.scs-left__note { margin: 8px 0 0 !important; padding: 8px 10px; border-radius: 8px; font-size: 14px; }
.scs-left__note--owed { background: #fde2e1; color: #8a1c1c; font-weight: 600; }
.scs-left__note--trial { background: #efe7ff; color: #4b2a85; }
.scs-left__note--overdue { background: #fff1c2; color: #5c3d00; font-weight: 600; }
.scs-left__note a { color: inherit; text-decoration: underline; }
.scs-usage { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.scs-usage > summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--gold-2); }
.scs-usage[open] > summary { margin-bottom: 6px; }
.scs-usage__list { list-style: none; margin: 0; padding: 0; }
.scs-usage__list li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; line-height: 1.4; }
.scs-usage__list li:last-child { border-bottom: 0; }
.scs-usage__what { min-width: 0; overflow-wrap: anywhere; }
.scs-usage__n { flex: none; font-variant-numeric: tabular-nums; }
.scs-seg { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.scs-seg__item { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid var(--line); border-radius: var(--pill); background: var(--white); color: var(--text); font-size: 14px; text-decoration: none; }
.scs-seg__item:hover { border-color: var(--gold); }
.scs-seg__item.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }
.scs-seg__n { min-width: 22px; padding: 0 6px; border-radius: var(--pill); background: var(--cream); color: var(--ink); font-size: 12px; font-weight: 600; text-align: center; }
.scs-credits-total { margin: 0 0 10px; font-size: 14px; }
.scs-table--credits { min-width: 900px; }
.scs-table--credits td:nth-child(2) { min-width: 300px; }
.scs-credit { display: flex; align-items: baseline; gap: 8px; margin: 0 0 4px; font-size: 13px; line-height: 1.35; }
.scs-credit__n { flex: none; min-width: 30px; padding: 1px 8px; border-radius: var(--pill); background: #e3f4e8; color: #14532d; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.scs-credit--shared .scs-credit__n { background: #e7eefb; color: #1d3f6e; }
.scs-credit--none .scs-credit__n { background: #fde2e1; color: #8a1c1c; }
.scs-credits__uses { display: block; font-size: 13px; color: var(--muted); }
.scs-credits__uses a, .scs-credits__who a { color: var(--ink); }
.scs-credits__flags { margin-top: 4px; }
.scs-credits__flags .scs-chip { margin: 2px 4px 0 0; }
@media (max-width: 640px) {
	.scs-absence-panel__form .btn { width: 100%; justify-content: center; text-align: center; }
	.scs-absence__undo .btn { min-height: 40px; }
	.scs-table--credits { min-width: 0; }
	.scs-table--stack.scs-table--credits tbody tr { grid-template-columns: 1fr; }
	.scs-table--credits td:nth-child(2) { min-width: 0; }
	.scs-table--credits td.scs-num { text-align: left !important; }
	.scs-table--credits td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: 12px; }
	.scs-table--credits tfoot { display: none; } /* the totals line above the table says it */
}

/* learning: materials, homework, private files (v0.10, step 6a) */
.scs-form input[type=url], .scs-form input[type=time], .scs-form input[type=file] { padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-weight: 400; background: var(--white); min-width: 0; }
.scs-form input[type=file] { padding: 8px; background: var(--cream-2); }
.scs-form textarea { width: 100%; box-sizing: border-box; resize: vertical; line-height: 1.45; }
/* Phone forms: 16px text so iOS does not zoom in, full-width fields and big buttons. */
.scs-matform input, .scs-matform textarea, .scs-matform select, .scs-hwform input, .scs-hwform textarea, .scs-hwform select,
.scs-fbform input, .scs-fbform textarea, .scs-hwsubmit__form input, .scs-hwsubmit__form textarea { font-size: 16px; }
.scs-matform, .scs-hwform, .scs-fbform, .scs-hwsubmit__form { max-width: 720px; }
.scs-matform label, .scs-hwform label, .scs-fbform label, .scs-hwsubmit__form label { font-size: 14px; }
.scs-checks { display: flex; flex-wrap: wrap; gap: 4px 18px; padding-bottom: 10px; }
.scs-checks label.scs-check { margin: 0; font-size: 15px; min-height: 34px; }
.scs-hwfiles label.scs-check { margin: 0 0 6px; font-size: 15px; }
.scs-hwfiles details { margin: 0 0 10px; }
.scs-bigbtn { min-height: 48px; padding-left: 26px; padding-right: 26px; font-size: 16px; }
.scs-learn { scroll-margin-top: calc(var(--header-h, 80px) + 16px); }
.scs-learn > .scs-more > summary, .scs-newhw > summary, .scs-addmat > summary { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 16px; border-radius: var(--pill); background: var(--yellow); color: var(--ink); font-size: 14px; font-weight: 600; list-style: none; }
.scs-newhw > summary::-webkit-details-marker, .scs-addmat > summary::-webkit-details-marker { display: none; }
.scs-newhw[open], .scs-addmat[open] { margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.scs-newhw[open] > summary, .scs-addmat[open] > summary { margin-bottom: 12px; background: var(--sand); }
.scs-due-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 150px); gap: 0 12px; }
.scs-due-hint { margin: -6px 0 12px; }
.scs-hwform__foot, .scs-fbform__foot { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; margin-top: 8px; }
.scs-hwnotify { margin: 4px 0 6px; font-size: 15px !important; }
.scs-fbform__row { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 0 12px; }

/* type badges and material rows */
.scs-ftype { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; background: var(--cream); color: var(--ink); font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.scs-ftype--pdf { background: #fde2e1; color: #8a1c1c; }
.scs-ftype--doc { background: #e7eefb; color: #1d3f6e; }
.scs-ftype--ppt { background: #fdebd7; color: #8a4b0f; }
.scs-ftype--xls { background: #e3f4e8; color: #14532d; }
.scs-ftype--img { background: #efe7ff; color: #4b2a85; }
.scs-ftype--audio, .scs-ftype--video { background: #fff1c2; color: #5c3d00; }
.scs-ftype--link { background: #e6f4f8; color: #0f5566; }
.scs-ftype--note { background: #f1efe9; color: #555b67; } /* 5.9:1 (axe, step 10b) */
.scs-mats { list-style: none; margin: 0; padding: 0; }
.scs-mat { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--line); }
.scs-mats > .scs-mat:first-child { border-top: 0; }
.scs-mat__main { flex: 1; min-width: 0; }
.scs-mat__title { margin: 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; line-height: 1.35; }
.scs-mat__title a { color: var(--ink); }
.scs-mat__meta { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.scs-mat__note { margin: 6px 0 0; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.scs-mat__note a, .scs-hwtext a, .scs-sub__body a, .scs-feedback__text a { color: var(--gold-2); text-decoration: underline; }
.scs-mat__act { margin: 6px 0 0; font-size: 14px; }
.scs-mat__act > a, .scs-filelinks a { color: var(--gold-2); font-weight: 600; }
.scs-filelinks { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.scs-mat__ctl { display: flex; flex-wrap: wrap; gap: 0 16px; margin-top: 4px; }
/* A material's open Edit (and Remove…, Delete everywhere…) fits its column on a phone: the fields shrink with it. Round G3 did it for a
   template's material; backlog round G4 for every material (the group page's own Edit was about 6 px wider than its column at 390 px). */
.scs-mat__ctl > details[open] { flex-basis: 100%; min-width: 0; background: var(--cream-2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px 12px; }
.scs-mats--compact .scs-mat { padding: 8px 0; gap: 10px; }
.scs-mats--compact .scs-ftype { width: 36px; height: 36px; font-size: 10px; border-radius: 8px; }
.scs-pins { margin-top: 8px; padding: 8px 12px; border-radius: 10px; background: var(--cream-2); }
.scs-pins__head { margin: 0 0 2px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-2); }

/* homework: lists, due dates, the teacher's page, the inbox, the portal */
.scs-due { display: inline-block; align-self: flex-start; padding: 1px 10px; border-radius: var(--pill); font-size: 12.5px; font-weight: 600; background: var(--cream); color: var(--ink); white-space: nowrap; }
.scs-due--overdue { background: #fde2e1; color: #8a1c1c; }
.scs-due--soon { background: #fff1c2; color: #5c3d00; }
.scs-due--later { background: #e7eefb; color: #1d3f6e; }
.scs-due--none, .scs-due--done { background: #f1efe9; color: var(--muted); }
.scs-chip--hw-draft { background: #f1efe9; color: var(--muted); }
.scs-chip--hw-closed { background: #eee; color: var(--muted); }
.scs-chip--late { background: #fde2e1; color: #8a1c1c; }
.scs-hwlist { list-style: none; margin: 0; padding: 0; }
.scs-hwrow { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 12px 0 12px 12px; border-top: 1px solid var(--line); box-shadow: inset 3px 0 0 transparent; }
.scs-hwlist > .scs-hwrow:first-child { border-top: 0; }
.scs-hwrow.has-check { box-shadow: inset 3px 0 0 var(--yellow); }
.scs-hwrow__title { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.scs-hwrow__meta { flex-basis: 100%; font-size: 13px; color: var(--muted); }
.scs-hwrow .scs-chip { margin: 0; }
.scs-hwpage .scs-dl { margin-bottom: 12px; }
.scs-hwtext { margin: 10px 0 14px; padding: 12px 14px; border-radius: 10px; background: var(--cream-2); line-height: 1.55; overflow-wrap: anywhere; }
.scs-hwpage__act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 12px 0 4px; padding-top: 12px; border-top: 1px solid var(--line); }
.scs-hwpage__act > details[open] { flex-basis: 100%; }
.scs-subs { display: grid; gap: 12px; }
.scs-sub { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.scs-sub--check { border-left-color: var(--yellow); }
.scs-sub--returned { border-left-color: #217a3c; }
.scs-sub--redo { border-left-color: #c08a12; }
.scs-sub--missing { border-left-color: #b42318; }
.scs-sub__head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.scs-sub__head .scs-chip { margin: 0; }
.scs-sub__who { font-size: 16px; color: var(--ink); }
.scs-sub__meta { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.scs-sub__body { margin: 8px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--cream-2); line-height: 1.5; overflow-wrap: anywhere; white-space: normal; }
.scs-sub__file { margin: 8px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.scs-sub__file .scs-filelinks, .scs-feedback__file .scs-filelinks { margin-left: 10px; }
/* backlog item 41: a hand-in's files, one per line */
.scs-sub__files { list-style: none; margin: 8px 0 0; padding: 0; }
.scs-sub__files > .scs-sub__file { margin: 0; padding: 6px 0; border-top: 1px solid var(--line); }
.scs-sub__files > .scs-sub__file:first-child { border-top: 0; padding-top: 0; }
.scs-chip--sub-check { background: #fff1c2; color: #5c3d00; }
.scs-chip--sub-returned { background: #e3f4e8; color: #14532d; }
.scs-chip--sub-redo { background: #fdebd7; color: #8a4b0f; }
.scs-chip--sub-missing { background: #fde2e1; color: #8a1c1c; }
.scs-chip--sub-todo, .scs-chip--sub-none { background: #f1efe9; color: var(--muted); }
.scs-fb { margin-top: 10px; }
.scs-fb > summary { font-weight: 600; color: var(--gold-2); font-size: 14px; }
.scs-fb[open] > summary { margin-bottom: 8px; }
.scs-feedback { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: #e3f4e8; color: #14532d; }
.scs-feedback--redo { background: #fdebd7; color: #5c3d00; }
.scs-feedback__head, .scs-feedback__grade { margin: 0 0 4px; }
.scs-feedback__grade { font-weight: 700; }
.scs-feedback__text { line-height: 1.5; overflow-wrap: anywhere; color: var(--text); }
.scs-feedback__file { margin: 6px 0 0; font-size: 14px; }
.scs-inbox__list { list-style: none; margin: 0; padding: 0; }
.scs-inbox__item { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; }
.scs-inbox__list li:first-child .scs-inbox__item { border-top: 0; }
.scs-inbox__item strong { color: var(--ink); }
.scs-inbox__item:hover .scs-inbox__what, .scs-inbox__item:focus-visible .scs-inbox__what { text-decoration: underline; }
.scs-inbox__what { color: var(--gold-2); font-weight: 600; overflow-wrap: anywhere; }
.scs-inbox__meta { flex-basis: 100%; font-size: 13px; color: var(--muted); }
.scs-inbox__meta .scs-chip { margin: 0 0 0 4px; }
.scs-newhw-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 8px; }
.scs-hwline { margin: -6px 0 18px; }
.scs-hwline a { display: inline-flex; padding: 8px 16px; border-radius: var(--pill); background: var(--white); border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 14px; text-decoration: none; }
.scs-hwline--todo a { background: #fff1c2; border-color: var(--yellow); }
.scs-hwcards { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.scs-hwcard__link { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--yellow); border-radius: var(--radius); color: var(--text); text-decoration: none; }
.scs-hwcard__link:hover, .scs-hwcard__link:focus-visible { border-color: var(--gold); }
.scs-hwcard--submitted .scs-hwcard__link { border-left-color: #2b5c9e; }
.scs-hwcard--returned .scs-hwcard__link { border-left-color: #217a3c; }
.scs-hwcard--redo .scs-hwcard__link { border-left-color: #c08a12; }
.scs-hwcard--closed .scs-hwcard__link { border-left-color: var(--line); }
.scs-hwcard__title { font-weight: 600; font-size: 16px; color: var(--ink); overflow-wrap: anywhere; }
.scs-hwcard__meta { font-size: 13px; color: var(--muted); }
.scs-hwcard__state { font-size: 13.5px; color: var(--text); }
.scs-hwcard__state--redo { color: #8a4b0f; font-weight: 600; }
.scs-hwcard__state--returned { color: #14532d; font-weight: 600; }
.scs-hwdetail__meta { margin: -4px 0 10px; color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.scs-hwsubmit { border-color: var(--gold); }
.scs-hwlearner + .scs-hwlearner { margin-top: 10px; }
@media (max-width: 640px) {
	.scs-due-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 150px); }
	.scs-fbform__row { grid-template-columns: 1fr; }
	.scs-hwform__foot .btn, .scs-fbform__foot .btn { flex: 1 1 100%; justify-content: center; text-align: center; min-height: 48px; }
	.scs-hwsubmit__form .scs-bigbtn, .scs-matform .scs-bigbtn { display: flex; width: 100%; justify-content: center; }
	.scs-mat { gap: 12px; }
	.scs-ftype { width: 40px; height: 40px; }
	.scs-sub { padding: 12px 14px; }
	.scs-hwpage__act { gap: 8px 14px; }
}
form.is-sending button[type=submit] { opacity: .6; cursor: progress; }
/* backlog item 41: a file field's check before sending (school.js) and the note while files upload */
.scs-filecheck { margin: -4px 0 4px; padding: 10px 12px; border-radius: 8px; background: #fde8e8; color: #7f1d1d; font-size: 14px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.scs-filecheck[hidden] { display: none; }
.scs-uploading { flex-basis: 100%; margin: 6px 0 0; }

/* lesson notes, announcements, progress (v0.11, step 6b) */
/* Phone forms: 16px text so iOS does not zoom in. */
.scs-notes-fields input, .scs-notes-fields textarea, .scs-annform input, .scs-annform textarea, .scs-noteform textarea, .scs-noteform select, .scs-levelform input, .scs-levelform select { font-size: 16px; }
.scs-annform, .scs-noteform, .scs-levelform, .scs-notesform { max-width: 720px; }
.scs-annform label, .scs-noteform label, .scs-levelform label, .scs-notesform label { font-size: 14px; }
.scs-notes-fields { margin: 16px 0 6px; }
.scs-att .scs-notes-fields .scs-att__topic { margin: 0 0 10px; }
.scs-notes-fields textarea { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-weight: 400; background: var(--white); }
.scs-notes-fields__private textarea { background: #f6f3ff; border-color: #d9cdf3; }
.scs-notes-fields .scs-hint { margin-top: 2px; }
.scs-notesform__foot, .scs-annform__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 8px; }
.scs-handover__list, .scs-annlist, .scs-notelist, .scs-levels, .scs-recent, .scs-progress__hw { list-style: none; margin: 0; padding: 0; }
.scs-handover__item { padding: 12px 0; border-top: 1px solid var(--line); }
.scs-handover__list > li:first-child { border-top: 0; padding-top: 4px; }
.scs-handover__when { margin: 0 0 4px; }
.scs-handover__topic { margin: 0 0 6px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.scs-handover__note { margin: 6px 0 0; padding: 8px 12px; border-radius: 10px; background: var(--cream-2); line-height: 1.5; font-size: 14px; overflow-wrap: anywhere; }
.scs-handover__note--private { background: #f6f3ff; }
.scs-handover__label { display: block; margin-bottom: 2px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-2); }
.scs-handover__note--private .scs-handover__label { color: #4b2a85; }
.scs-handover__note a, .scs-did__text a, .scs-ann__body a, .scs-note__body a { color: var(--gold-2); text-decoration: underline; }
.scs-did { margin-top: 8px; padding: 8px 12px; border-radius: 10px; background: #f1f7f2; border-left: 3px solid #8cc49b; }
.scs-did__head { margin: 0 0 2px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #217a3c; }
.scs-did__topic { margin: 0 0 2px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.scs-did__text { font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.scs-lastclass__when { margin: 2px 0 0; }
.scs-lastclass .scs-did { background: transparent; border-left: 0; padding: 0; margin-top: 6px; }
.scs-lastclass .scs-did__head { display: none; }
/* announcements */
.scs-newann > summary { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 16px; border-radius: var(--pill); background: var(--yellow); color: var(--ink); font-size: 14px; font-weight: 600; list-style: none; }
.scs-newann > summary::-webkit-details-marker { display: none; }
.scs-newann[open] { margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.scs-newann[open] > summary { margin-bottom: 12px; background: var(--sand); }
.scs-annemail { margin: 4px 0 6px; font-size: 15px !important; }
.scs-ann { padding: 12px 0; border-top: 1px solid var(--line); }
.scs-annlist > .scs-ann:first-child { border-top: 0; padding-top: 4px; }
.scs-ann--draft { border-top-style: dashed; } /* marked by its "Draft" chip; fading it made its text too pale to read (axe, step 10b) */
.scs-ann__title { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.scs-ann__title .scs-chip { margin: 0 0 0 4px; }
.scs-ann__meta { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.scs-ann__body { margin: 6px 0 0; line-height: 1.55; overflow-wrap: anywhere; }
.scs-ann__ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 6px; }
.scs-ann__ctl > details[open] { flex-basis: 100%; background: var(--cream-2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px 12px; }
/* A draft's "Email it" and Post: one row, the box and its words centred on the button (step 9b, the phone review). */
.scs-ann__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.scs-ann__actions label.scs-check { margin: 0; min-height: 0; }
.scs-ann__actions .btn { margin: 0; }
.scs-annbox { border-left: 4px solid var(--yellow); }
.scs-annbox .scs-ann__title { font-size: 17px; }
.scs-anngroup { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.scs-anngroup .scs-ann { padding: 8px 0; }
.scs-ann-seen { margin: 10px 0 0; }
.scs-anns--today { border-left: 4px solid var(--ink); }
/* progress: levels, attendance, homework, notes */
.scs-progress-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 16px; }
.scs-levelcard__now { margin: 0 0 6px; }
.scs-levels li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 14px; }
.scs-levels li:first-child { border-top: 0; }
.scs-levels li > div { flex-basis: 100%; }
.scs-level-chip { display: inline-block; min-width: 40px; padding: 1px 10px; border-radius: var(--pill); background: #e7eefb; color: #1d3f6e; font-weight: 700; font-size: 13px; text-align: center; }
h2 .scs-level-chip { vertical-align: middle; font-size: 13px; }
.scs-setlevel > summary { font-weight: 600; color: var(--gold-2); font-size: 14px; }
.scs-levelform__row { display: grid; grid-template-columns: minmax(0, 140px) minmax(0, 200px); gap: 0 12px; }
.scs-levelform input[name=lv_level] { text-transform: uppercase; }
.scs-progress__total { margin: 0 0 10px; }
.scs-progress__group { padding: 10px 0; border-top: 1px solid var(--line); }
.scs-progress__group:first-of-type { border-top: 0; padding-top: 0; }
.scs-progress__name { margin: 0 0 2px; color: var(--ink); }
.scs-progress__group > p { margin: 0 0 4px; }
.scs-recent { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 6px; }
.scs-recent li { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.scs-recent__day { color: var(--muted); }
.scs-progress__hw li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 14px; }
.scs-progress__hw li:first-child { border-top: 0; }
.scs-progress__hw a { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.scs-progress__hw .scs-chip { margin: 0; }
.scs-progress__line { margin: 0 0 10px !important; }
.scs-progress-learner + .scs-progress-learner { margin-top: 18px; }
.scs-addnote > summary { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 16px; border-radius: var(--pill); background: var(--yellow); color: var(--ink); font-size: 14px; font-weight: 600; list-style: none; }
.scs-addnote > summary::-webkit-details-marker { display: none; }
.scs-addnote[open] { margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.scs-addnote[open] > summary { margin-bottom: 12px; background: var(--sand); }
.scs-vis label.scs-check { margin: 0 0 6px; font-size: 15px; }
.scs-note { padding: 12px 0 12px 12px; border-top: 1px solid var(--line); box-shadow: inset 3px 0 0 var(--line); }
.scs-notelist > .scs-note:first-child { border-top: 0; }
.scs-note--shared { box-shadow: inset 3px 0 0 #8cc49b; }
.scs-note__meta { margin: 0 0 4px; }
.scs-note__meta .scs-chip { margin: 0 4px 0 0; }
.scs-note__body { line-height: 1.55; overflow-wrap: anywhere; }
.scs-note__ctl { display: flex; flex-wrap: wrap; gap: 0 16px; margin-top: 4px; }
.scs-note__ctl > details[open] { flex-basis: 100%; background: var(--cream-2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px 12px; }
.scs-chip--shared-note { background: #e3f4e8; color: #14532d; }
.scs-chip--staff-note { background: #f1efe9; color: var(--muted); }
.scs-snotes--portal .scs-note { padding-left: 12px; }
.scs-roster__name { color: var(--ink); text-decoration: underline; text-decoration-color: var(--sand-2, #d8c69c); text-underline-offset: 3px; }
@media (max-width: 640px) {
	.scs-notesform__foot .btn, .scs-annform__foot .btn { flex: 1 1 100%; justify-content: center; text-align: center; min-height: 48px; }
	.scs-noteform .scs-bigbtn, .scs-levelform .scs-bigbtn { display: flex; width: 100%; justify-content: center; }
	.scs-levelform__row { grid-template-columns: 1fr 1fr; }
	.scs-progress-grid { grid-template-columns: 1fr; }
}
/* Step 7: notifications, reminders and the calendar */
.scs-chip--ntf-queued { background: #fff3c4; color: #6b4e00; }
.scs-cal__row { display: flex; gap: 8px; align-items: stretch; margin: 10px 0 6px; }
.scs-cal__url { flex: 1 1 auto; min-width: 0; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 14px; background: var(--cream-2, #faf8f3); color: var(--ink); }
.scs-cal__row .btn { flex: 0 0 auto; white-space: nowrap; }
.scs-cal__open { margin: 0 0 8px; font-size: 14px; }
.scs-cal__how { margin: 0 0 10px; font-size: 14px; }
.scs-cal__how > summary { cursor: pointer; color: var(--gold-2); min-height: 32px; display: inline-flex; align-items: center; }
.scs-cal__list { margin: 6px 0 0; padding-left: 20px; line-height: 1.6; }
.scs-cal .scs-hint { display: block; margin: 0 0 10px; }
.scs-cal-teaser p:last-child { margin-bottom: 0; }
.scs-emailprefs__who { margin-bottom: 10px; }
/* Language (step 9a): English, Lietuvių, Español side by side, each a comfortable tap target. */
.scs-langpick__choices { display: flex; flex-wrap: wrap; gap: 0 22px; padding-bottom: 6px; }
.scs-langpick__choices label.scs-check { margin: 0; min-height: 44px; font-size: 16px; }
.scs-langpick__choices input[type=radio] { width: 18px; height: 18px; margin: 0; }
.scs-emailprefs__who label.scs-check { margin: 0 0 6px; font-size: 15px; min-height: 44px; }
.scs-left__buy { margin: 10px 0 0; }
.scs-installment { margin-top: 6px; }
.scs-table--log td { vertical-align: top; }
.scs-table--log .scs-muted { overflow-wrap: anywhere; }
@media (max-width: 640px) {
	.scs-cal__row { flex-direction: column; }
	.scs-cal__row .btn { justify-content: center; min-height: 44px; }
	.scs-table--stack.scs-table--log tbody tr { grid-template-columns: 1fr; }
}

/* Verification pass (28 Nov 2026): readable gold, stacked tables, tap targets, phone forms, the email log's pages */
.scs { --gold-2: #8a6508; } /* gold text at 5:1 on white and on the yellow boxes (the theme's #a87c0a is 3.8:1) */
.scs-chip { font-family: var(--sans, inherit); vertical-align: middle; line-height: 1.5; }
.scs-due--none, .scs-due--done, .scs-chip--hw-draft, .scs-chip--hw-closed, .scs-chip--ntf-skipped, .scs-chip--inv-void, .scs-chip--inv-uncollectible, .scs-past-att--none { color: #4a4a4a; }
.scs-chip--inv-closed { background: #eee; color: #4a4a4a; }
.scs-chip--pk-cancelled, .scs-chip--pk-refunded { background: #eee; color: #4a4a4a; }
.scs-chip--pk-payment_overdue { background: #fde2e1; color: #8a1c1c; }
.scs-fieldset { min-width: 0; }
.scs-action-grid { align-items: start; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.scs-action-grid select, .scs-action-grid input { max-width: 100%; }
.scs-thisweek__all { margin: 10px 0 0; font-size: 14px; }
.scs-thisweek__all a { color: var(--gold-2); font-weight: 600; }
.scs-att__help { margin: 0 0 6px; padding: 8px 12px; border-radius: 8px; background: var(--cream-2); font-size: 13px; line-height: 1.45; color: var(--text); }
.scs-att-box--open { margin-top: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.scs-att-box__head { margin: 0 0 4px; font-weight: 700; color: var(--ink); }
.scs-pay { white-space: nowrap; }
.scs-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 12px 0; }
.scs-pager__where { margin-right: auto; font-size: 14px; color: var(--muted); }
.scs-table--emaillog td { font-size: 13px; }
.scs-agenda__join.btn { align-self: flex-start; margin-top: 6px; color: var(--ink); }
.scs-credit > span:last-child { min-width: 0; }

@media (max-width: 640px) {
	/* Tables as cards: one field per line, with its label (empty fields are left out). */
	.scs-table--cards tbody tr { grid-template-columns: minmax(0, 1fr); }
	.scs-table--cards td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 1px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
	.scs-table--cards td.scs-empty, .scs-table--credits td.scs-empty { display: none; }
	.scs-table--cards td.scs-actions-cell { min-width: 0; }
	/* Step 9b: longer Lithuanian and Spanish labels. A details list keeps its labels to about 40% of the width (the longest
	   label used to squeeze the values into a narrow column); a cell spanning the row (an empty list) spans the whole card;
	   a button wraps instead of running off the screen; the groups list as cards: lesson type and teacher on one line. */
	.scs-table--stack td[colspan] { grid-column: 1 / -1; }
	.scs-main .btn { white-space: normal; max-width: 100%; text-align: center; }
	.scs-table--grouplist tbody tr { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px 14px; }
	.scs-table--grouplist td.scs-card-head { grid-column: 1 / -1; }
	/* A form field inside a card never runs past it (long lesson type names in a select). */
	.scs-table--cards select, .scs-table--cards input[type=text], .scs-table--cards input[type=number] { max-width: 100%; min-width: 0; }
	.scs-table--cards select { width: 100%; }
	/* The new batch's lines: the tick box beside the customer's name, the price and lessons below. */
	.scs-inv-batchform tbody tr { grid-template-columns: 36px minmax(0, 1fr); }
	.scs-inv-batchform td:first-child { grid-column: 1; grid-row: 1; }
	.scs-inv-batchform td:first-child::before, .scs-inv-batchform td:nth-child(2)::before { display: none; }
	.scs-inv-batchform td:nth-child(2) { grid-column: 2; grid-row: 1; font-size: 16px; }
	.scs-inv-batchform td:nth-child(n+3) { grid-column: 1 / -1; }
	/* Step 9b: the cell a manager scans for (the person, the group, the invoice) is the card's heading, without its label. */
	.scs-table--cards td.scs-card-head::before { display: none; }
	.scs-table--cards td.scs-card-head { font-size: 16px; line-height: 1.35; padding-bottom: 2px; }
	.scs-table--cards td.scs-card-head > a:first-child, .scs-table--cards td.scs-card-head > strong:first-child { font-size: 17px; }
	/* A file field as tall as a finger (the Import screen's, homework and materials): its button fills the field. */
	.scs input[type=file] { min-height: 48px; width: 100%; font-size: 15px; box-sizing: border-box; }
	.scs input[type=file]::file-selector-button { min-height: 40px; padding: 0 14px; margin-right: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); font: inherit; font-weight: 600; color: var(--ink); }
	.scs-table--pool, .scs-table--pool td:nth-child(4), .scs-table--customers, .scs-table--report, .scs-table--classify { min-width: 0 !important; }
	.scs-table--pool td:nth-child(4) { min-width: 0; }
	/* The email log: compact rows, when and status on one line. */
	.scs-table--stack.scs-table--emaillog tbody tr { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "when status" "what what" "who who" "about about"; gap: 1px 10px; padding: 8px 12px; }
	.scs-table--emaillog td:nth-child(1) { grid-area: when; color: var(--muted); }
	.scs-table--emaillog td:nth-child(2) { grid-area: what; font-weight: 600; color: var(--ink); }
	.scs-table--emaillog td:nth-child(3) { grid-area: who; }
	.scs-table--emaillog td:nth-child(4) { grid-area: about; }
	.scs-table--emaillog td:nth-child(5) { grid-area: status; text-align: right; }
	.scs-table--emaillog td:nth-child(3) .scs-muted { display: inline; margin-left: 4px; }
	.scs-table--emaillog td .scs-chip { margin: 0; }
	/* Tap targets of at least 44px. */
	.scs .btn--sm, .scs-weeknav__links .btn, .scs-seg__item, .scs-absence-panel__back, .scs-side__foot a { min-height: 44px; display: inline-flex; align-items: center; }
	.scs-more > summary, .scs-cal__how > summary, .scs-usage > summary, .scs-fb > summary, .scs-setlevel > summary, .scs-add-rule > summary { min-height: 44px; display: flex; align-items: center; font-size: 14px; }
	.scs label.scs-check { min-height: 44px; }
	.scs-switch { min-height: 44px; } /* backlog item 46: the notification list's switches */
	.scs-nav a { min-height: 44px; display: inline-flex; align-items: center; }
	/* The area menu: one row that scrolls sideways, so the page starts right away. */
	.scs-shell > * { min-width: 0; } /* a grid item never grows to the menu's full width */
	.scs-side { padding: 12px; min-width: 0; max-width: 100%; }
	.scs-side__who { margin: 2px 6px 10px; font-size: 18px; }
	.scs-nav { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 0 -4px; padding: 0 4px 4px; }
	.scs-nav::-webkit-scrollbar { display: none; }
	.scs-nav a { flex: none; white-space: nowrap; }
	.scs-side__foot { flex-direction: row; flex-wrap: wrap; gap: 0 18px; margin: 8px 6px 0; padding-top: 6px; }
	/* Forms: 16px text so phones do not zoom in, full width. */
	.scs input[type=text], .scs input[type=email], .scs input[type=tel], .scs input[type=number], .scs input[type=date], .scs input[type=time], .scs input[type=url], .scs input[type=search], .scs select, .scs textarea { font-size: 16px; }
	.scs-filter input, .scs-filter select { min-width: 0; flex: 1 1 100%; }
	.scs-inline select, .scs-inline input[type=text], .scs-inline input[type=date] { flex: 1 1 100%; }
	.scs-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.scs-kpis .scs-kpi:last-child:nth-child(odd) { grid-column: 1 / -1; }
	.scs-kpi__n { font-size: 34px; }
	.scs-profile .scs-kpi { min-width: 0; }
	.scs-pager .btn { flex: 1 1 40%; justify-content: center; }
}
.scs-kpi__n--money { white-space: nowrap; }

/* A definition list never pushes past the screen: long values wrap (a folder path, a due date chip). */
.scs-dl { grid-template-columns: max-content minmax(0, 1fr); }
.scs-dl dd { overflow-wrap: anywhere; min-width: 0; }
.scs-dl dd code { white-space: normal; word-break: break-all; }
@media (max-width: 640px) { .scs-dl .scs-due { white-space: normal; } }
@media (max-width: 640px) {
	/* Every fold's summary is a real tap target on phones (Edit, Close, Who was emailed, Delete...). */
	.scs-main details > summary { min-height: 44px; display: flex; align-items: center; }
	.scs-hwpage__act, .scs-ann__ctl, .scs-mat__ctl, .scs-note__ctl { gap: 0 18px; }
}
@media (max-width: 640px) {
	/* The credit history (round G10: per account): compact rows, the change on the left, when, what and the balance beside it. */
	.scs-table--stack.scs-table--ledger tbody tr { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "chg when" "chg what" "chg bal"; gap: 0 12px; padding: 8px 12px; }
	.scs-table--ledger td:nth-child(1) { grid-area: when; font-size: 13px; color: var(--muted); }
	.scs-table--ledger td:nth-child(2) { grid-area: what; font-weight: 600; }
	.scs-table--ledger td:nth-child(3) { grid-area: chg; font-family: var(--serif); font-size: 22px; align-self: center; min-width: 36px; }
	.scs-table--ledger td:nth-child(4) { grid-area: bal; font-size: 13px; }
	/* A student's attendance history: one field per line (the date never runs into the group name). */
	.scs-table--stack.scs-table--atthist tbody tr { grid-template-columns: minmax(0, 1fr); }
	.scs-table--atthist td.scs-nowrap { white-space: normal; font-weight: 600; }
}
@media (max-width: 640px) {
	.scs-kpi__n--money { font-size: 22px; }
	.scs-table--cards td.scs-num { text-align: left !important; }
	.scs-table--cards tfoot { display: none; } /* the totals line above the list says it */
	.scs-classify-cell { width: auto; min-width: 0; }
}
@media (max-width: 640px) {
	.scs-filelinks a, .scs-mat__act > a { display: inline-flex; align-items: center; min-height: 44px; }
}
.scs-cal-teaser a { color: var(--gold-2); font-weight: 600; }
/* Action cards: two columns on a laptop (four cards make two even rows; lesson types fit in the selects). */
.scs-action-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.scs-hwchange > summary { cursor: pointer; margin: 0; color: var(--gold-2); font-family: var(--sans); font-size: 15px; font-weight: 600; }
.scs-hwchange[open] > summary { margin-bottom: 10px; color: var(--ink); }
/* A card that follows a table or list directly (lesson page: roster, then "Homework for this class") keeps its distance. */
.scs-table-wrap + .scs-card, .scs-table-wrap + section.scs-card, .scs-roster + .scs-card { margin-top: 20px; }
.scs-lesson__held, .scs-lesson__missing { display: inline-block; margin-top: 4px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.scs-lesson__held { background: #e3f3e8; color: #1d6b3a; }
.scs-lesson__missing { background: #fde8e6; color: #a3261b; }
@media (max-width: 640px) {
	.scs-table--emaillog td.scs-empty { display: none; }
}

/* The notification center (Administration > Notifications). */
.scs-chip--ntf-on { background: #e3f4e8; color: #1d6b3a; }
.scs-chip--ntf-off { background: #eee; color: #4a4a4a; }
.scs-chip--ntf-ext { background: #e7eefb; color: #1e3a6b; }
.scs-chip--warn { background: #fff3c4; color: #6b4e00; }
.scs-ntf__intro { max-width: 70ch; }
.scs-ntf__jump { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 18px; font-size: 14px; }
.scs-ntf__jump a, .scs-ntf__name a, .scs-ntf__sent a { color: var(--gold-2); font-weight: 600; }
.scs-ntf__group { margin: 26px 0 10px; }
.scs-ntf__group .scs-muted { font-family: var(--sans); font-size: 15px; font-weight: 400; }
.scs-table--ntf { table-layout: fixed; }
.scs-table--ntf td { font-size: 14px; overflow-wrap: anywhere; }
.scs-table--ntf th { white-space: nowrap; }
.scs-table--ntf .scs-ntf__c-name { width: 34%; }
.scs-table--ntf .scs-ntf__c-when { width: 27%; }
.scs-table--ntf .scs-ntf__c-onoff { width: 13%; }
.scs-table--ntf .scs-ntf__c-sent { width: 15%; }
.scs-table--ntf .scs-ntf__c-go { width: 11%; }
.scs-table--ntf td.scs-ntf__go { padding-left: 6px; padding-right: 12px; }
.scs-table--ntf .scs-ntf__name strong { color: var(--ink); }
.scs-table--ntf .scs-ntf__name a { text-decoration: none; }
.scs-table--ntf .scs-ntf__who { margin-top: 4px; }
.scs-table--ntf .scs-ntf__label { font-weight: 600; }
.scs-table--ntf .scs-ntf__onoff .scs-chip { margin: 0; white-space: nowrap; }
.scs-table--ntf .scs-ntf__onoff .scs-chip--ntf-ext { white-space: normal; overflow-wrap: normal; border-radius: 8px; line-height: 1.3; padding: 3px 8px; }
.scs-table--ntf .scs-ntf__sent { overflow-wrap: normal; }
.scs-table--ntf .scs-ntf__go { text-align: right; white-space: nowrap; }
/* Backlog item 46: a switch per email in the list (a form's submit button with role="switch"), and "Switch all on or off…". */
.scs-ntf__sw { margin: 0; }
.scs-switch { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 2px 0; border: 0; background: none; font: inherit; font-size: 12px; font-weight: 600; line-height: 1; color: #4a4a4a; cursor: pointer; }
.scs-switch__track { position: relative; flex: none; width: 36px; height: 20px; border-radius: 999px; background: #bdbdbd; transition: background-color .2s; }
.scs-switch__thumb { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.35); transition: transform .2s; }
.scs-switch.is-on { color: #1d6b3a; }
.scs-switch.is-on .scs-switch__track { background: #2e8b57; }
.scs-switch.is-on .scs-switch__thumb { transform: translateX(16px); }
.scs-switch:hover .scs-switch__track { box-shadow: inset 0 0 0 20px rgba(0,0,0,.08); }
.scs-switch:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { .scs-switch__track, .scs-switch__thumb { transition: none; } }
/* Backlog item 48: "Emails about classes": a switch in the student page's details (its hint under it), and in the portal's Emails
   card one row per learner that is the switch itself (its words on the left, On or Off on the right, a 44px tap target). */
.scs-lessonemails-admin__sw { display: inline-flex; }
.scs-lessonemails-admin__hint { display: block; margin-top: 2px; }
.scs-lessonemails { margin: 0 0 14px; }
.scs-lessonemails__row { margin: 0; }
.scs-switch.scs-lessonemails__btn { display: flex; width: 100%; justify-content: space-between; gap: 12px; min-height: 44px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 400; line-height: 1.35; color: var(--ink); text-align: left; }
.scs-switch.scs-lessonemails__btn.is-on { color: var(--ink); }
.scs-lessonemails__label { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.scs-lessonemails__state { display: inline-flex; align-items: center; gap: 8px; flex: none; font-size: 12px; font-weight: 600; color: #4a4a4a; }
.scs-lessonemails__btn.is-on .scs-lessonemails__state { color: #1d6b3a; }
.scs-lessonemails__always { margin: 8px 0 0; }
.scs-ntf__lessonemails { margin: -4px 0 12px; max-width: 80ch; }
.scs-ntf__all { margin: 0 0 16px; }
.scs-ntf__all > summary { color: var(--gold-2); font-size: 14px; font-weight: 600; }
.scs-ntf__all > p { margin: 8px 0 0; max-width: 70ch; }
.scs-ntf__all-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.scs-ntf__all-btns form { margin: 0; }
.scs-ntf__empty { padding: 14px 18px; }
.scs-ntf__empty p { margin: 0; }
.scs-ntf__cap { margin-top: 12px; }
.scs-ntf__cap label { flex-direction: row; align-items: center; gap: 8px; margin: 0; }
.scs-ntf__title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.scs-ntf__title .scs-chip { margin: 0; font-family: var(--sans); }
.scs-ntf__head .scs-dl { margin-bottom: 12px; }
.scs-ntf__head .scs-dl dd { line-height: 1.5; }
.scs-ntf__langs { margin-bottom: 8px; }
.scs-ntf__lang { flex-direction: column; align-items: flex-start; gap: 0; padding: 7px 14px; border-radius: 12px; line-height: 1.25; }
.scs-ntf__lang-state { font-size: 12px; color: var(--muted); }
.scs-ntf__lang.is-active .scs-ntf__lang-state { color: #ddd; }
.scs-ntf__lang--own:not(.is-active) .scs-ntf__lang-state { color: #1d6b3a; font-weight: 600; }
.scs-ntf__lang--none:not(.is-active) .scs-ntf__lang-state { color: #8a5a00; }
.scs-ntf__variants .scs-seg__item { font-size: 13px; padding: 6px 12px; }
.scs-ntf__state { margin: 4px 0 14px; padding: 9px 12px; border-radius: 8px; background: var(--cream-2); font-size: 14px; line-height: 1.45; }
.scs-ntf__state--own { background: #e9f6ee; }
.scs-ntf__state--none, .scs-ntf__state--draft { background: #fff6dc; }
.scs-ntf__editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); gap: 20px; align-items: start; }
.scs-ntf__textform input[type=text], .scs-ntf__textform textarea, .scs-ntf__textform select, .scs-ntf__rule input[type=text] { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-weight: 400; background: var(--white); }
.scs-ntf__textform textarea { min-height: 300px; line-height: 1.5; font-family: var(--sans); resize: vertical; }
.scs-ntf__button-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 14px; }
.scs-ntf__formfoot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 4px; }
.scs-ntf__previewwith { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.scs-ntf__textform .scs-ntf__previewwith select { width: auto; max-width: 300px; }
.scs-ntf__previewwith select, .scs-ntf__f select, .scs-ntf__f input { padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: var(--white); max-width: 100%; }
.scs-ntf__reset { margin-top: 12px; }
.scs-ntf__help ul { margin: 8px 0 0; padding-left: 20px; font-size: 14px; line-height: 1.55; }
.scs-ntf__phs { position: sticky; top: calc(var(--header-h, 80px) + 16px); max-height: calc(100vh - var(--header-h, 80px) - 40px); overflow: auto; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream-2); }
.scs-ntf__phs-head { margin: 0 0 8px; }
.scs-ntf__phs-sub { margin: 12px 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.scs-ntf__phlist { list-style: none; margin: 0; padding: 0; }
.scs-ntf__phlist li { margin: 0 0 9px; font-size: 13px; line-height: 1.35; }
.scs-ntf__ph { display: inline-flex; align-items: center; min-height: 32px; padding: 3px 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); cursor: pointer; font: inherit; }
.scs-ntf__ph:hover, .scs-ntf__ph:focus-visible { border-color: var(--gold); }
.scs-ntf__ph code { font-size: 13px; color: var(--ink); background: none; }
.scs-ntf__phlist .scs-chip { margin: 0 0 0 4px; font-size: 11px; }
.scs-ntf__phdesc { display: block; margin-top: 3px; color: var(--muted); }
.scs-ntf__pform, .scs-ntf__tform, .scs-ntf__filter { align-items: flex-end; }
.scs-ntf__f { display: flex; flex-direction: column; gap: 3px; margin: 0; font-size: 12px; font-weight: 600; color: var(--muted); min-width: 0; max-width: 100%; }
.scs-ntf__f select { max-width: 280px; }
.scs-ntf__fbtn { display: flex; align-items: center; gap: 10px; }
.scs-ntf__filter .scs-ntf__f input[type=search] { min-width: 200px; }
.scs-ntf__filter .scs-ntf__f--date input { min-width: 0; }
.scs-ntf__frame { display: block; width: 100%; height: 780px; border: 1px solid var(--line); border-radius: var(--radius); background: #faf5e5; }
.scs-ntf__text { white-space: pre-wrap; font-size: 13px; line-height: 1.5; background: var(--cream-2); padding: 12px; border-radius: 8px; overflow-wrap: anywhere; }
.scs-ntf__other { flex-wrap: wrap; }
.scs-ntf__other input[type=email] { padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; font: inherit; min-width: 240px; }
.scs-ntf__sub { margin: 14px 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.scs-ntf__tests, .scs-ntf__changes { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.5; }
.scs-ntf__tests li, .scs-ntf__changes li { margin: 0 0 8px; }
.scs-ntf__tests .scs-chip { margin: 0; }
.scs-ntf__changes li.is-undone strong { text-decoration: line-through; color: var(--muted); }
.scs-ntf__changes .scs-small { display: block; }
.scs-ntf__undo { margin-bottom: 14px; }
.scs-ntf__diff { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 6px; }
.scs-ntf__diff pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12.5px; line-height: 1.45; background: var(--cream-2); padding: 10px; border-radius: 8px; max-height: 360px; overflow: auto; }
.scs-ntf__trigs { display: grid; gap: 6px; }
.scs-ntf__trig { display: flex !important; flex-direction: row !important; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 !important; padding: 6px 0; font-weight: 400 !important; font-size: 15px !important; min-height: 40px; }
.scs-ntf__n { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.scs-ntf__n input { padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.scs-ntf__checks { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 2px 0 10px 26px; }
.scs-ntf__checks label.scs-check { margin: 0; min-height: 34px; font-size: 14px; }
.scs-ntf__rule label.scs-check { font-size: 15px; min-height: 36px; margin-bottom: 2px; }
.scs-ntf__count { margin: 0 0 8px; font-size: 16px; }
.scs-ntf__ruleacts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.scs-moved { padding: 12px 16px; }
.scs-moved p { margin: 0 0 8px; }
@media (max-width: 960px) {
	.scs-ntf__editor { grid-template-columns: minmax(0, 1fr); }
	.scs-ntf__phs { position: static; max-height: none; }
	.scs-ntf__phlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 0 14px; }
}
@media (max-width: 640px) {
	.scs-table--ntf { table-layout: auto; }
	.scs-table--stack.scs-table--ntf tbody tr { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name state" "when when" "sent go"; gap: 6px 10px; padding: 12px 14px; }
	.scs-table--ntf .scs-ntf__name { grid-area: name; width: auto; }
	.scs-table--ntf .scs-ntf__who { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
	.scs-table--ntf .scs-ntf__when { grid-area: when; width: auto; color: var(--text); }
	.scs-table--ntf .scs-ntf__onoff { grid-area: state; text-align: right; }
	.scs-table--ntf .scs-ntf__sent { grid-area: sent; white-space: normal; align-self: center; }
	.scs-table--ntf .scs-ntf__go { grid-area: go; align-self: center; }
	.scs-table--ntf .scs-ntf__go .btn { min-height: 44px; display: inline-flex; align-items: center; }
	.scs-table--ntf .scs-ntf__when::before { content: attr(data-label) ": "; font-weight: 600; color: var(--muted); }
	.scs-ntf__button-row, .scs-ntf__diff { grid-template-columns: minmax(0, 1fr); }
	.scs-ntf__frame { height: 620px; }
	.scs-ntf__textform select, .scs-ntf__textform input[type=text], .scs-ntf__f select, .scs-ntf__f input, .scs-ntf__other input[type=email], .scs-ntf__rule input[type=text], .scs-ntf__n input, .scs-ntf__cap input { min-height: 44px; }
	.scs-ntf__textform .scs-ntf__previewwith select { width: 100%; max-width: 100%; }
	.scs-ntf__filter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
	.scs-ntf__filter .scs-ntf__f:not(.scs-ntf__f--date), .scs-ntf__filter .scs-ntf__fbtn { grid-column: 1 / -1; }
	.scs-ntf__fbtn .btn { min-height: 44px; }
	.scs-ntf__jump { gap: 2px 14px; }
	.scs-ntf__jump a { display: inline-flex; align-items: center; min-height: 40px; }
	.scs-act-row .scs-color { min-width: 44px; min-height: 44px; }
	.scs-ntf__formfoot .btn, .scs-ntf__ruleacts .btn { min-height: 48px; }
	.scs-ntf__formfoot > .btn { flex: 1 1 100%; justify-content: center; text-align: center; }
	.scs-ntf__previewwith { flex: 1 1 100%; }
	.scs-ntf__previewwith .btn { flex: 1 1 100%; justify-content: center; }
	.scs-ntf__previewwith select, .scs-ntf__f, .scs-ntf__f select, .scs-ntf__f input, .scs-ntf__filter .scs-ntf__f input[type=search] { width: 100%; max-width: 100%; min-width: 0; }
	.scs-ntf__pform, .scs-ntf__tform, .scs-ntf__filter { flex-direction: column; align-items: stretch; }
	.scs-ntf__lang { flex: 1 1 calc(33% - 6px); min-width: 0; }
	.scs-ntf__other input[type=email] { min-width: 0; width: 100%; }
	.scs-ntf__ph { min-height: 40px; }
	.scs-ntf__textform textarea { min-height: 260px; }
	.scs-ntf__trig { min-height: 44px; }
	.scs-ntf__checks { margin-left: 8px; }
}

/* Administration > Events (28 Nov 2026): the list, the event editor, the carousel manager, the preview, the portal card. */
.scs-chip--ev-web { background: #e3f4e8; color: #1d6b3a; }
.scs-chip--ev-portal { background: #e7eefb; color: #1e3a6b; }
.scs-chip--ev-spot { background: #fff1c2; color: #6b4e00; }
.scs-chip--event { background: #fff1c2; color: #6b4e00; text-decoration: none; }
.scs-ev__bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 10px; }
.scs-ev__intro { max-width: 70ch; margin: 0 0 20px; }
.scs-ev__import { border-color: var(--yellow); background: #fffbea; }
.scs-evlist { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 12px; }
.scs-evrow { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 16px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.scs-evrow.is-draft { border-style: dashed; background: var(--cream-2); }
.scs-evrow__media { display: block; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: var(--sand); }
.scs-evrow__img { width: 100%; height: 100%; object-fit: cover; }
.scs-evrow__noimg { display: flex; height: 100%; align-items: center; justify-content: center; font-size: 12px; color: var(--muted); }
.scs-evrow__body p { margin: 0 0 4px; }
.scs-evrow__when { font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--gold-2); }
.scs-evrow__title { font-family: var(--serif); font-size: 21px; line-height: 1.2; }
.scs-evrow__title a { color: var(--ink); text-decoration: none; }
.scs-evrow__title a:hover { color: var(--gold-2); }
.scs-evrow__where .scs-chip { margin: 2px 4px 2px 0; }
.scs-evrow__acts { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.scs-evrow__del .scs-inline { justify-content: flex-end; max-width: 260px; text-align: right; }
.scs-ev__past { margin: 6px 0 24px; }
.scs-ev__past > summary { font-size: 15px; font-weight: 600; color: var(--ink); min-height: 44px; display: flex; align-items: center; }
.scs-rollmini { list-style: none; margin: 10px 0 16px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.scs-rollmini li { position: relative; display: flex; flex-direction: column; gap: 4px; font-size: 13px; line-height: 1.3; }
.scs-rollmini li.is-event .scs-rollmini__img { outline: 3px solid var(--yellow); outline-offset: -3px; }
.scs-rollmini__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; }
.scs-rollmini__n { position: absolute; top: 6px; left: 6px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; background: rgba(0,0,0,.72); color: #fff; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.scs-rollmini__lab { color: var(--text); overflow-wrap: anywhere; }

.scs-ev__title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.scs-ev__title .scs-chip { margin: 0; font-family: var(--sans); }
.scs-ev__live { margin: -4px 0 16px; font-size: 15px; }
.scs-ev__live a { color: var(--gold-2); font-weight: 600; }
.scs-evform input[type=text], .scs-evform input[type=url], .scs-evform textarea, .scs-evform select, .scs-crform input[type=text], .scs-crform input[type=url], .scs-crform select { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-weight: 400; background: var(--white); }
.scs-evform input[type=date], .scs-evform input[type=time] { width: 100%; box-sizing: border-box; padding: 9px 11px; min-height: 44px; }
.scs-evform label .scs-hint, .scs-crform label .scs-hint { font-weight: 400; }
.scs-langsw { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
.scs-langsw__b { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 0; min-width: 104px; min-height: 48px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--text); font: inherit; font-size: 14px; line-height: 1.25; cursor: pointer; text-align: left; }
.scs-langsw__b strong { font-size: 15px; color: var(--ink); }
.scs-langsw__state { font-size: 12px; color: var(--muted); }
.scs-langsw__b--ok .scs-langsw__state { color: #1d6b3a; font-weight: 600; }
.scs-langsw__b--need .scs-langsw__state, .scs-langsw__b--part .scs-langsw__state { color: #8a5a00; font-weight: 600; }
.scs-langsw__b.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }
.scs-langsw__b.is-active strong, .scs-langsw__b.is-active .scs-langsw__state { color: var(--white); }
.scs-langpanel { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }
.scs-langpanel__name { margin: 0 0 8px; font-weight: 600; color: var(--ink); }
.scs-js .scs-langpanel { border-top: 0; padding-top: 0; }
.scs-js .scs-langpanel__name { display: none; }
.scs-js[data-lang="en"] [data-l]:not([data-l="en"]), .scs-js[data-lang="lt"] [data-l]:not([data-l="lt"]), .scs-js[data-lang="es"] [data-l]:not([data-l="es"]) { display: none !important; }
.scs-evwhen { grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); }
.scs-evpic { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 18px; align-items: start; }
.scs-evpic__frame { aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--sand); display: flex; align-items: center; justify-content: center; }
.scs-evpic__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scs-evpic__img[hidden], .scs-evpic__none[hidden] { display: none !important; }
.scs-evpic__none { font-size: 14px; color: var(--muted); }
.scs-evpic__ctl p { margin: 0 0 8px; }
.scs-evpic__warn { color: #8a5a00 !important; font-weight: 600 !important; }
.scs-evfocus { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; }
.scs-evfocus legend { margin-bottom: 2px; }
.scs-evfocus .scs-hint { flex-basis: 100%; margin: 0 0 4px; }
.scs-evfocus__opt { margin: 0 !important; min-height: 40px; font-size: 15px; }
.scs-evwhere { font-size: 15px; min-height: 40px; margin-bottom: 2px !important; }
.scs-spots { margin-top: 12px; }
.scs-spots.is-disabled { opacity: .55; }
.scs-spots__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 8px 0 12px; }
.scs-spot { position: relative; display: flex !important; flex-direction: column !important; align-items: stretch !important; gap: 4px !important; margin: 0 !important; padding: 6px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white); cursor: pointer; font-weight: 400 !important; min-height: 92px; }
.scs-spot input { position: absolute; opacity: 0; pointer-events: none; }
.scs-spot__n { font-weight: 700; font-size: 15px; color: var(--ink); }
.scs-spot__img { width: 100%; height: 44px; object-fit: cover; border-radius: 6px; }
.scs-spot__what { font-size: 11px; line-height: 1.25; color: var(--muted); overflow-wrap: anywhere; }
.scs-spot.is-taken { background: #fff8e1; }
.scs-spot.is-taken .scs-spot__what { color: #8a5a00; font-weight: 600; }
.scs-spot:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 2px var(--yellow); background: #fffbea; }
.scs-spot:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.scs-spot--off { justify-content: center; }
.scs-evfrom { max-width: 320px; }
.scs-evtell__groups { display: flex; flex-wrap: wrap; gap: 2px 18px; margin: 0 0 8px 26px; }
.scs-evtell label.scs-check, .scs-evemail { font-size: 15px; min-height: 40px; margin-bottom: 2px; }
.scs-evform__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 6px 0 8px; }
.scs-evform__note { margin: 0 0 22px; }
.scs-evdel { margin: 18px 0; }
[data-scs-preview].is-busy { opacity: .6; cursor: progress; }

.scs-pv { scroll-margin-top: calc(var(--header-h, 80px) + 12px); }
.scs-pv:focus { outline: none; }
.scs-pv__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 8px; }
.scs-pv__bar { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.scs-pv__seg { margin: 0; }
.scs-pv__seg .scs-seg__item { cursor: pointer; font: inherit; font-size: 14px; }
.scs-pv__notes { margin: 8px 0 12px; font-size: 14px; color: var(--text); }
.scs-pv__notes:empty { display: none; }
.scs-pv__notes.is-error { padding: 10px 14px; border-radius: 8px; background: #fde8e8; color: #7f1d1d; font-weight: 500; }
.scs-pv.is-error .scs-pv__frames, .scs-pv.is-error .scs-pv__bar, .scs-pv.is-error .scs-pv__open { display: none; }
.scs-pv__frames { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 16px; align-items: start; }
.scs-pv__dev { margin: 0; min-width: 0; }
.scs-pv__dev figcaption { margin-top: 6px; font-size: 12px; color: var(--muted); }
.scs-pv__scale { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #faf5e5; }
.scs-pv__scale iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; background: #fff; max-width: none !important; }
.scs-pv__dev--phone .scs-pv__scale iframe { width: 390px !important; height: 844px !important; }
.scs-pv__dev--desk .scs-pv__scale iframe { width: 1280px !important; height: 800px !important; }
.scs-pv__dev--phone .scs-pv__scale { border-radius: 18px; border-width: 6px; border-color: #1a1a1a; }
.scs-pv [data-pv-dev] { display: none; }
@media (max-width: 900px) {
	.scs-pv__frames { grid-template-columns: minmax(0, 1fr); }
	.scs-pv [data-pv-dev] { display: inline-flex; }
	.scs-pv[data-dev="phone"] .scs-pv__dev--desk, .scs-pv[data-dev="desk"] .scs-pv__dev--phone { display: none; }
	.scs-pv__dev--phone { max-width: 390px; }
}

.scs-picker { width: min(760px, calc(100vw - 24px)); max-height: calc(100vh - 40px); padding: 18px; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.3); }
.scs-picker::backdrop { background: rgba(0,0,0,.45); }
.scs-picker__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.scs-picker__grid { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.scs-picker__item { display: flex; flex-direction: column; gap: 3px; width: 100%; padding: 0; border: 2px solid transparent; border-radius: 10px; background: none; cursor: pointer; font: inherit; font-size: 11px; color: var(--muted); text-align: left; }
.scs-picker__item img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; }
.scs-picker__item:hover, .scs-picker__item:focus-visible { border-color: var(--gold); outline: none; }

.scs-cr__intro p { margin: 0 0 8px; }
.scs-cr__safety { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 10px; }
.scs-cr__top .scs-cr__langlab { margin: 0 0 4px; font-weight: 600; color: var(--ink); }
.scs-cr__chip { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.scs-ml { margin: 0 0 10px; }
.scs-ml__label { display: block; margin: 0 0 4px; font-size: 13px; font-weight: 600; color: var(--ink); }
.scs-ml__f { display: grid !important; grid-template-columns: 36px minmax(0, 1fr); align-items: center; gap: 8px !important; margin: 0 0 6px !important; }
.scs-ml__lang { font-size: 12px; font-weight: 700; color: var(--muted); }
.scs-js .scs-ml__f { grid-template-columns: minmax(0, 1fr); }
.scs-js .scs-ml__lang { display: none; }
.scs-crlist { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.scs-crslide, .scs-crevent { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
.scs-crslide.is-off { background: var(--cream-2); border-style: dashed; }
.scs-crslide.is-off .scs-crslide__img { opacity: .45; filter: grayscale(.6); }
.scs-crevent { background: #fffbea; border-color: var(--yellow); }
.scs-crslide__head { display: grid; grid-template-columns: 34px 72px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.scs-crslide__n { min-width: 30px; height: 30px; border-radius: 15px; background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }
.scs-crslide.is-off .scs-crslide__n { background: #bbb; }
.scs-crevent .scs-crslide__n { background: var(--yellow); color: var(--ink); }
.scs-crslide__img { width: 72px; height: 54px; object-fit: cover; border-radius: 6px; display: block; }
.scs-crslide__sum { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.scs-crslide__sum strong { color: var(--ink); font-size: 15px; overflow-wrap: anywhere; }
.scs-crslide__sum .scs-small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scs-crslide__ctl { display: flex; align-items: center; gap: 6px; }
.scs-crslide__on { margin: 0 6px 0 0 !important; font-size: 14px; min-height: 44px; }
.scs-crslide__mv { min-width: 44px; min-height: 44px; padding: 0 !important; font-size: 18px; justify-content: center; }
.scs-crslide__mv:disabled { opacity: .35; cursor: default; transform: none; }
.scs-crslide__edit { margin-top: 8px; }
.scs-crslide__edit > summary { min-height: 40px; display: flex; align-items: center; font-weight: 600; color: var(--gold-2); font-size: 14px; }
.scs-crslide__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin: 6px 0 10px; }
.scs-crslide__pic label { margin-bottom: 8px; }
.scs-crcard label.scs-check { font-size: 15px; min-height: 40px; margin-bottom: 2px; }
.scs-crfor { padding: 4px 0 6px; }
.scs-cr__later { background: #fffbea; }
.scs-cr__laterlist { margin: 4px 0 0; padding-left: 20px; }
.scs-cr__laterlist a { color: var(--gold-2); font-weight: 600; }

.scs-events__list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 16px; }
.scs-events__item { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--cream-2); }
.scs-events__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand); }
.scs-events__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scs-events__body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; flex: 1; }
.scs-events__body p { margin: 0; }
.scs-events__when { font-size: 13px; font-weight: 600; color: var(--gold-2); }
.scs-events__title { margin: 2px 0; font-family: var(--serif); font-weight: 500; font-size: 21px; line-height: 1.2; color: var(--ink); }
.scs-events__where { font-size: 14px; color: var(--muted); }
.scs-events__text { font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.scs-events__go { margin-top: auto !important; padding-top: 8px; }

@media (max-width: 760px) {
	.scs-evrow { grid-template-columns: 96px minmax(0, 1fr); gap: 10px 12px; align-items: start; }
	.scs-evrow__acts { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; }
	.scs-evrow__del .scs-inline { justify-content: flex-start; text-align: left; }
	.scs-evrow__del > summary, .scs-evdel > summary, .scs-cr__safety .scs-more > summary { min-height: 44px; display: flex; align-items: center; margin-top: 0; padding: 0 6px; }
	.scs-evwhen { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.scs-evwhen > label:first-child, .scs-evwhen > label:last-child { grid-column: 1 / -1; }
	.scs-evrow__title { font-size: 19px; }
	.scs-evpic { grid-template-columns: minmax(0, 1fr); }
	.scs-spots__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.scs-crslide__head { grid-template-columns: 30px 60px minmax(0, 1fr); }
	.scs-crslide__img { width: 60px; height: 46px; }
	.scs-crslide__ctl { grid-column: 1 / -1; justify-content: flex-end; }
	.scs-crslide__on { margin-right: auto !important; }
	.scs-crslide__grid { grid-template-columns: minmax(0, 1fr); }
	.scs-evform__foot .btn { flex: 1 1 100%; justify-content: center; min-height: 48px; }
	.scs-langsw__b { flex: 1 1 calc(33% - 6px); min-width: 0; }
	.scs-evtell__groups { margin-left: 8px; }
	.scs-ev__bar .btn { flex: 1 1 auto; justify-content: center; min-height: 48px; }
	.scs-evform input[type=text], .scs-evform input[type=url], .scs-evform select, .scs-crform input[type=text], .scs-crform input[type=url], .scs-crform select { min-height: 44px; }
}

/* ---------------------------------------------------------------- Microsoft 365 (Settings > Microsoft 365, adoption, lesson and group cards) */
.scs-h4 { font-size: 16px; font-weight: 700; color: var(--ink); margin: 18px 0 8px; }
.scs-break { word-break: break-all; overflow-wrap: anywhere; }
.scs-ms-mini { margin-bottom: 12px; grid-template-columns: minmax(0, max-content) auto; align-items: center; }
.scs-ms-mini .scs-chip, .scs-ms-step .scs-chip { white-space: nowrap; }
.scs-ms-conn code { font-size: 14px; }
.scs-ms-link { color: var(--gold-2); text-decoration: underline; text-underline-offset: 2px; }
.scs-notice--info { background: #fff6d6; color: #4a3800; border: 1px solid #f2dc8f; }
.scs-ms-test { align-items: flex-end; }
.scs-ms-test label { min-width: 0; }
.scs-ms-test select { max-width: 100%; }
.scs-ms-steps { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; }
.scs-ms-step { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; align-items: start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--cream-2); }
.scs-ms-step .scs-chip { grid-row: span 2; align-self: start; }
.scs-ms-step__label { font-size: 15px; }
.scs-ms-step__fix { font-size: 14px; color: #7f1d1d; }
.scs-ms-step--ok { background: #f2faf4; border-color: #cfe9d6; }
.scs-ms-step--fail { background: #fdf2f2; border-color: #f3caca; }
.scs-ms-switches { display: grid; gap: 4px; }
.scs-ms-switch { align-items: flex-start !important; padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0 !important; }
.scs-ms-switch input { margin-top: 4px; flex: 0 0 auto; }
.scs-ms-switch strong { display: block; font-size: 15px; }
.scs-ms-switch .scs-hint { display: block; margin-top: 2px; }
.scs-ms-switch--sub { padding: 2px 0 10px 28px; border-bottom: 1px solid var(--line); font-size: 14px; }
.scs-ms-switches .btn { justify-self: start; margin-top: 10px; }
.scs-ms-modes { margin: 4px 0 14px; padding-left: 18px; font-size: 14px; line-height: 1.5; }
.scs-ms-modes li { margin: 0 0 4px; }
.scs-ms-mode select { min-width: 0; max-width: 100%; }
.scs-ms-errors { margin: 0 0 12px; padding-left: 18px; font-size: 14px; }
.scs-ms-signins { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.scs-ms-series { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.scs-ms-serie { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--cream-2); }
.scs-ms-serie p { margin: 0 0 6px; }
.scs-ms-serie__title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.scs-ms-serie__actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 16px; }
.scs-ms-pick { margin-top: 4px; }
.scs-ms-pick select { min-width: 0; max-width: 100%; }
.scs-ms-counts { font-size: 17px; margin: 0 0 12px; }
.scs-ms-prev { margin-bottom: 10px; }
.scs-ms-notes { margin: 0 0 12px; padding-left: 18px; }
.scs-ms-notes li { margin: 0 0 4px; }
.scs-teams-card .scs-dl { margin-bottom: 8px; }
@media (max-width: 640px) {
	.scs-table--stack.scs-table--msgroups tbody tr { grid-template-columns: minmax(0, 1fr); }
	.scs-ms-test, .scs-ms-pick, .scs-ms-mode { flex-direction: column; align-items: stretch; }
	.scs-ms-test select, .scs-ms-pick select, .scs-ms-mode select { width: 100%; min-height: 44px; }
	.scs-ms-test .btn, .scs-ms-pick .btn, .scs-ms-mode .btn, .scs-ms-switches .btn { min-height: 44px; justify-content: center; }
	.scs-ms-switch input { width: 20px; height: 20px; }
	.scs-ms-serie__actions { flex-direction: column; }
	.scs-ms-conn.scs-dl, .scs-ms-prev.scs-dl { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
	.scs-ms-conn.scs-dl dd, .scs-ms-prev.scs-dl dd { margin-bottom: 10px; }
	.scs-ms-conn code { font-size: 12.5px; }
	.scs-ms-mini { grid-template-columns: minmax(0, 1fr) auto; }
}

/* ------------------------------------------------------------- Reports, teacher pay, data protection (step 8) */
.scs-seg--reports { margin-bottom: 18px; }
.scs-reportbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; margin: 0 0 16px; }
.scs-reportbar .scs-filter { margin: 0; }
.scs-filter--inline { align-items: center; }
.scs-filter--inline select, .scs-filter--inline input[type=date] { min-width: 0; }
.scs-csv { white-space: nowrap; }
.scs-csv::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 2px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1v9m0 0L4.5 6.5M8 10l3.5-3.5M2 13h12' stroke='black' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1v9m0 0L4.5 6.5M8 10l3.5-3.5M2 13h12' stroke='black' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.scs-only-narrow { display: none; }
.scs-table--earnings { min-width: 0; }
.scs-table--earnings td a { color: inherit; text-decoration: none; }
.scs-table--earnings td a:hover { text-decoration: underline; }
.scs-table--earnings tr.is-selected td { background: #fff6d6; }
.scs-table--earnings th.scs-num { white-space: normal; min-width: 0; }
/* how the paid invoices were paid (card through Stripe, bank transfer recorded in Stripe): secondary to the earnings */
.scs-table--earnings .scs-col-by { color: var(--muted); }
.scs-table--earnings :not(.scs-col-by) + .scs-col-by { border-left: 2px solid var(--line); }
.scs-kpi__sub { display: block; font-size: 13px; }
.scs-paidby-how { margin: -8px 0 16px; max-width: 72ch; }
.scs-monthrow__list li.scs-monthrow__by { color: var(--muted); }
.scs-drill { margin-top: 18px; }
.scs-drill__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 14px; margin: 0 0 10px; }
.scs-drill__head .scs-h3 { margin: 0; }
.scs-drill__links { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.scs-h3 + .scs-table-wrap, .scs-drill__head + .scs-table-wrap { margin-top: 8px; }
.scs-footnote { margin-top: 18px; padding: 14px 18px; border-left: 3px solid var(--sand-2); background: var(--white); border-radius: 0 var(--radius) var(--radius) 0; font-size: 14px; line-height: 1.55; color: var(--text); }
.scs-footnote p { margin: 0 0 8px; }
.scs-footnote p:last-child { margin-bottom: 0; }
.scs-footnote__list { margin: 0 0 8px; padding-left: 18px; }
.scs-monthlist { list-style: none; margin: 0; padding: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.scs-monthlist > li { border-bottom: 1px solid var(--line); }
.scs-monthlist > li:last-child { border-bottom: 0; }
.scs-monthrow > summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; padding: 8px 14px; cursor: pointer; list-style: none; }
.scs-monthrow > summary::-webkit-details-marker { display: none; }
.scs-monthrow > summary::after { content: "▾"; color: var(--muted); font-size: 12px; margin-left: 4px; }
.scs-monthrow[open] > summary::after { content: "▴"; }
.scs-monthrow__what { font-weight: 600; color: var(--ink); }
.scs-monthrow__sum { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }
.scs-monthrow__list { list-style: none; margin: 0; padding: 0 14px 10px; font-size: 14px; }
.scs-monthrow__list li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px dashed var(--line); }
.scs-monthrow__list li span { font-variant-numeric: tabular-nums; white-space: nowrap; }
.scs-monthlist__total { display: flex; justify-content: space-between; padding: 12px 14px; font-weight: 600; color: var(--ink); background: var(--cream-2); border-radius: 0 0 var(--radius) var(--radius); }
.scs-table--prepaid-pkgs tr.is-flagged td { background: #fff8e8; }
/* teacher pay (Reports) */
.scs-paylist { display: grid; gap: 14px; }
.scs-payrow { margin: 0; padding: 18px 20px; }
.scs-payrow.is-paid { border-color: #b9dfc4; }
.scs-payrow__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.scs-payrow__who .scs-h3 a { color: var(--ink); }
.scs-payrow__facts { margin: 4px 0 0; font-size: 14px; color: var(--text); }
.scs-payrow__sum { font-family: var(--serif); font-size: 26px; line-height: 1.1; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.scs-payrow__state { margin: 10px 0 0; font-size: 14px; }
.scs-payrow__mark { margin-top: 12px; }
.scs-payrow__mark input[type=date] { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.scs-payrow__undo { margin-top: 8px; }
.scs-payrow__lessons { margin-top: 10px; }
.scs-payrow__lessons > summary { cursor: pointer; font-size: 14px; color: var(--gold-2); font-weight: 600; }
.scs-paylessons { list-style: none; margin: 10px 0; padding: 0; font-size: 14px; }
.scs-paylessons li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.scs-paylessons li > a { color: var(--ink); }
.scs-paylessons__when { font-variant-numeric: tabular-nums; color: var(--muted); }
.scs-paylessons__pay { margin-left: auto; white-space: nowrap; font-variant-numeric: tabular-nums; }
.scs-chip--paid { background: #e3f4e8; color: #1d5b2f; }
.scs-chip--archived { background: #ececec; color: #555; }
.scs-lockmark { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: var(--pill); background: #eef1f6; color: #3c4a63; font-size: 12px; font-weight: 600; white-space: nowrap; vertical-align: middle; font-family: var(--sans); }
.scs-lockmark::before { content: ""; width: 10px; height: 11px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 11'%3E%3Cpath d='M2 5V3.5a3 3 0 0 1 6 0V5h1v6H1V5zm1.5 0h3V3.5a1.5 1.5 0 0 0-3 0z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 11'%3E%3Cpath d='M2 5V3.5a3 3 0 0 1 6 0V5h1v6H1V5zm1.5 0h3V3.5a1.5 1.5 0 0 0-3 0z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat; }
.scs-lockline { margin: 10px 0 0; padding: 10px 12px; border-radius: 8px; background: #eef1f6; color: #2f3b52; font-size: 14px; }
/* the teacher's "Lessons and pay": one compact row per month */
.scs-paymonths { list-style: none; margin: 0 0 12px; padding: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.scs-paymonths > li { border-bottom: 1px solid var(--line); }
.scs-paymonths > li:last-child { border-bottom: 0; }
.scs-paymonth > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-height: 48px; padding: 10px 14px; cursor: pointer; list-style: none; font-size: 15px; color: var(--ink); }
.scs-paymonth > summary::-webkit-details-marker { display: none; }
.scs-paymonth__line { flex: 1 1 auto; font-variant-numeric: tabular-nums; }
.scs-paymonth__state { margin: 0; white-space: nowrap; }
.scs-paymonth > summary::after { content: "▾"; color: var(--muted); font-size: 12px; }
.scs-paymonth[open] > summary::after { content: "▴"; }
.scs-paymonth > p { margin: 0 14px 8px; }
.scs-paymonth__lessons { list-style: none; margin: 0; padding: 0 14px 10px; font-size: 14px; }
.scs-paymonth__lessons li { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; padding: 7px 0; border-top: 1px dashed var(--line); }
.scs-paymonth__lessons li > a { color: var(--ink); }
.scs-paymonth__when { color: var(--muted); font-variant-numeric: tabular-nums; }
.scs-paymonth__pay { margin-left: auto; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* students and groups */
.scs-grid--reports { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.scs-grid--reports .scs-card { margin-bottom: 0; }
.scs-minitable .scs-table { font-size: 14px; }
.scs-table--mini th, .scs-table--mini td { padding: 7px 10px; vertical-align: middle; }
.scs-table-wrap--flat { border: 0; border-radius: 0; }
.scs-names summary { cursor: pointer; color: var(--gold-2); font-weight: 600; list-style: none; }
.scs-names summary::-webkit-details-marker { display: none; }
.scs-names div { margin-top: 4px; font-size: 13px; text-align: left; white-space: normal; }
.scs-funnel { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.scs-funnel li { position: relative; display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 8px; background: var(--cream-2); overflow: hidden; font-size: 14px; }
.scs-funnel__bar { position: absolute; inset: 0 auto 0 0; background: var(--sand); z-index: 0; }
.scs-funnel__label, .scs-funnel__n { position: relative; z-index: 1; color: var(--ink); }
.scs-funnel__n { font-weight: 600; white-space: nowrap; }
.scs-meter { display: inline-block; width: 60px; height: 8px; border-radius: 4px; background: var(--cream); vertical-align: middle; overflow: hidden; }
.scs-meter span { display: block; height: 100%; background: var(--gold); }
/* for the books */
.scs-books { display: grid; gap: 12px; }
.scs-books__file { display: flex; justify-content: space-between; align-items: center; gap: 12px 18px; margin: 0; padding: 16px 20px; }
.scs-books__file p { margin: 4px 0 0; }
.scs-quick { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 6px 0 8px; font-size: 14px; }
.scs-quick a { color: var(--gold-2); font-weight: 600; }
.scs-quick a.is-active { color: var(--ink); text-decoration: underline; }
/* activity log */
.scs-logfilter { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 12px; align-items: end; }
.scs-logfilter__f { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--ink); }
.scs-logfilter__f select, .scs-logfilter__f input { min-width: 0 !important; width: 100%; }
.scs-logfilter__go { display: flex; align-items: center; gap: 12px; }
.scs-table--auditlog td { font-size: 13.5px; }
.scs-changes { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.scs-changes__f { color: var(--muted); }
.scs-changes__old { color: #8a1c1c; text-decoration: line-through; text-decoration-color: rgba(138,28,28,.35); }
.scs-changes__new { color: var(--ink); overflow-wrap: anywhere; }
.scs-pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-top: 14px; }
/* data protection */
.scs-privacy__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.scs-privacy__block { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.scs-privacy__block > summary { font-size: 14px; font-weight: 600; color: var(--ink); }
.scs-privacy__erase > summary { color: #8a1c1c; }
.scs-privacy form label { display: flex; flex-direction: column; gap: 6px; max-width: 420px; margin: 8px 0 10px; font-size: 14px; font-weight: 600; color: var(--ink); }
.scs-privacy form input[type=text] { padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-weight: 400; }
.scs-warnlist { margin: 6px 0 8px; padding-left: 18px; color: #8a1c1c; font-size: 14px; }
.btn--danger { background: #b42318; color: #fff; border-color: #b42318; }
.btn--danger:hover { background: #8f1c13; border-color: #8f1c13; color: #fff; }
.scs-retention { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.55; }
.scs-retention li { margin-bottom: 4px; }
@media (max-width: 860px) {
	.scs-seg--reports { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin-left: -2px; margin-right: -2px; padding: 0 2px 4px; }
	.scs-seg--reports::-webkit-scrollbar { display: none; }
	.scs-seg--reports .scs-seg__item { flex: none; white-space: nowrap; }
}
@media (max-width: 640px) {
	.scs-only-wide { display: none; }
	.scs-only-narrow { display: block; }
	.scs-reportbar { align-items: stretch; }
	.scs-reportbar .scs-filter--inline { flex: 1 1 100%; }
	.scs-reportbar .scs-filter--inline .scs-inline-label { flex: 1 1 auto; }
	.scs-reportbar .scs-filter--inline select, .scs-reportbar .scs-filter--inline input[type=date] { flex: 1 1 auto; width: 100%; min-height: 44px; }
	.scs-reportbar .scs-csv { flex: 1 1 100%; }
	.scs-filter--inline .btn { min-height: 44px; }
	.scs-payrow { padding: 14px; }
	.scs-payrow__sum { font-size: 22px; }
	.scs-payrow__mark { flex-direction: column; align-items: stretch; }
	.scs-payrow__mark .scs-inline-label { justify-content: space-between; }
	.scs-payrow__mark input[type=date] { min-height: 44px; flex: 1 1 auto; }
	.scs-paylessons__pay, .scs-paymonth__pay { margin-left: 0; }
	.scs-paymonth > summary { padding: 10px 12px; }
	.scs-books__file { flex-direction: column; align-items: stretch; }
	.scs-books__file .scs-csv { justify-content: center; min-height: 44px; }
	.scs-table--stack.scs-table--auditlog tbody tr { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "what when" "who who" "chg chg"; gap: 2px 10px; padding: 10px 12px; }
	.scs-table--auditlog td:nth-child(1) { grid-area: when; color: var(--muted); text-align: right; white-space: normal; }
	.scs-table--auditlog td:nth-child(2) { grid-area: who; color: var(--muted); }
	.scs-table--auditlog td:nth-child(3) { grid-area: what; }
	.scs-table--auditlog td:nth-child(4) { grid-area: chg; }
	.scs-logfilter { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.scs-logfilter__f input, .scs-logfilter__f select { min-height: 44px; }
	.scs-logfilter__go { grid-column: 1 / -1; }
	.scs-logfilter__go .btn { flex: 1 1 auto; min-height: 44px; }
	.scs-privacy__actions .btn { width: 100%; min-height: 44px; }
	.scs-privacy form .btn { width: 100%; min-height: 44px; }
	.scs-names div { text-align: left; }
	.scs-table--stack.scs-table--unpaid tbody tr, .scs-table--stack.scs-table--drill tbody tr, .scs-table--stack.scs-table--groups-report tbody tr { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.scs-table--unpaid td:nth-child(3), .scs-table--drill td:nth-child(3), .scs-table--groups-report td:nth-child(1) { grid-column: 1 / -1; order: -1; }
	.scs-table--unpaid td:nth-child(6) { grid-column: 1 / -1; }
	.scs-table--cards td.scs-num { text-align: left !important; }
}
/* step 8, after the first look at the screens */
.scs-filter--inline .scs-inline-label { white-space: nowrap; }
.scs-table-wrap + .scs-drill__head { margin-top: 24px; }
.scs-table--unpaid th { white-space: nowrap; }
.scs-table--unpaid .scs-chip--act { white-space: nowrap; }
@media (max-width: 640px) { .scs-table--unpaid .scs-chip--act { white-space: normal; max-width: 100%; } } /* step 9b: a long activity name wraps inside its half of the card */
.scs-names > summary { justify-content: flex-end; }
.scs-privacy form label.scs-check { flex-direction: row; align-items: center; gap: 8px; max-width: none; margin: 4px 0 10px; font-weight: 600; }
.scs-privacy__note { margin: 12px 0 0; }
.scs-table--prepaid-pkgs .pp-who { min-width: 260px; }
.scs-table--prepaid-pkgs .pp-note { max-width: 180px; }
.scs-table--prepaid .pp-type { min-width: 220px; }
/* a student page's Progress cards never push the page wider than a phone (step 6b cards, seen on an archived student) */
.scs-progress-grid > * { min-width: 0; }
@media (max-width: 640px) {
	.scs-reportbar .scs-filter--inline { flex-wrap: wrap; }
	.scs-reportbar .scs-filter--inline .scs-inline-label { flex: 1 1 auto; display: flex !important; justify-content: space-between; }
	.scs-reportbar .scs-filter--inline .scs-inline-label input, .scs-reportbar .scs-filter--inline .scs-inline-label select { flex: 1 1 auto; width: auto; min-width: 0; }
	.scs-reportbar .scs-filter--inline > .btn { flex: 0 0 auto; justify-content: center; }
	/* two dates (from, to): one per line, the button under them */
	.scs-reportbar .scs-filter--inline:has(> label:nth-of-type(2)) .scs-inline-label { flex-basis: 100%; }
	.scs-reportbar .scs-filter--inline:has(> label:nth-of-type(2)) .scs-inline-label input { flex: 0 1 72%; }
	.scs-reportbar .scs-filter--inline:has(> label:nth-of-type(2)) > .btn { flex: 1 1 100%; }
	.scs-books .scs-card, .scs-card--form .scs-filter--inline { flex-wrap: wrap; }
	.scs-card--form .scs-filter--inline .scs-inline-label { flex: 1 1 100%; display: flex !important; justify-content: space-between; }
	.scs-card--form .scs-filter--inline .scs-inline-label input { flex: 0 1 70%; min-width: 0; }
	.scs-card--form .scs-filter--inline > .btn { flex: 1 1 100%; justify-content: center; }
	.scs-payrow__lessons > summary::after { content: "▾"; margin-left: 6px; } /* phones drop the marker of a flex summary */
	.scs-payrow__lessons[open] > summary::after { content: "▴"; }
	.scs-levelform__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.scs-levelform__row input { width: 100%; min-width: 0; }
	/* prepaid tables: one compact row each (name and details left, value right) */
	.scs-table--stack.scs-table--prepaid tbody tr, .scs-table--stack.scs-table--prepaid-pkgs tbody tr { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; }
	.scs-table--prepaid .pp-hide, .scs-table--prepaid-pkgs .pp-hide { display: none !important; }
	.scs-table--prepaid .pp-type, .scs-table--prepaid-pkgs .pp-who { min-width: 0; }
	.scs-table--prepaid .pp-value, .scs-table--prepaid-pkgs .pp-value { text-align: right !important; white-space: nowrap; }
	.scs-table--prepaid-pkgs .pp-note { grid-column: 1 / -1; max-width: none; }
	.scs-table--prepaid tfoot tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 14px; }
	.scs-table--prepaid tfoot tr { background: var(--cream-2); border-top: 1px solid var(--line); }
	.scs-table--prepaid tfoot td { display: block; padding: 0; border: 0; background: transparent; }
	.scs-table--prepaid tfoot td.pp-hide { display: none; }
	.scs-only-narrow { display: block; }
}

/* moving the school in (migration 015): Import tab, "to review", other email addresses, "Same person…", possible duplicates,
   payments, multi-select on the Students list */
.scs-chip--review { background: #e8e1fb; color: #3d2a7a; }
.scs-review { background: #f6f2ff; border-color: #cfc2f2; }
.scs-review p { margin: 0 0 10px; }
.scs-hold p { margin: 0; }
.scs-steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.scs-steps__item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.scs-steps__item p { margin: 0 0 6px; }
.scs-steps__title { font-size: 15px; color: var(--ink); }
.scs-steps__list { margin: 0; padding-left: 18px; line-height: 1.6; }
.scs-steps a { color: var(--gold-2); }
.scs-actions-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.scs-h4 { font-size: 15px; font-weight: 600; color: var(--ink); margin: 18px 0 8px; }
.scs-problem--skipped, .scs-problem--stop { font-weight: 600; }
.scs-identity .scs-filter { margin: 10px 0 6px; }
.scs-emails { list-style: none; margin: 8px 0 10px; padding: 0; }
.scs-emails__item { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.scs-emails__item:last-child { border-bottom: 0; }
.scs-emails__addr { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.scs-emails__remove { margin-left: auto; }
.scs-picklist { list-style: none; margin: 8px 0 0; padding: 0; }
.scs-picklist__item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.scs-picklist__item:last-child { border-bottom: 0; }
.scs-merge { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 4px; }
.scs-merge .scs-card { margin-bottom: 0; }
.scs-merge__who--keep { border-color: #9ccfad; background: #f4fbf6; }
.scs-merge__who--other { border-style: dashed; }
.scs-merge__role { margin: 0 0 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.scs-merge__who .scs-dl { margin: 0; }
.scs-merge__moves { margin: 0 0 8px; padding-left: 20px; line-height: 1.7; }
.scs-merge__confirm { margin: 14px 0 6px; font-weight: 600; }
.scs-merge__swap { margin: 10px 0 14px; }
.scs-dupes { list-style: none; margin: 0; padding: 0; }
.scs-dupes__pair { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 18px; align-items: center; }
.scs-dupes__why { grid-column: 1 / -1; margin: 0; }
.scs-dupes__people { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; min-width: 0; }
.scs-dupes__people > div { min-width: 0; overflow-wrap: anywhere; }
.scs-dupes__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.scs-paycheck { list-style: none; margin: 0; padding: 0; }
.scs-paycheck__head p { margin: 0 0 4px; }
.scs-paycheck__acts { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; }
.scs-paycheck__acts .scs-more { flex: 1 1 260px; }
.scs-table--payments td:nth-child(3) { min-width: 180px; }
.scs-bulkbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 10px; padding: 8px 12px; background: var(--cream-2); border: 1px solid var(--line); border-radius: 10px; }
.scs-bulkbar select { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: var(--white); max-width: 100%; }
.scs-bulkbar__all { margin: 0 !important; }
.scs-bulkbar__all { display: inline-flex !important; align-items: center; gap: 6px; }
.scs-bulkbar__all input { width: 20px; height: 20px; margin: 0; }
.scs-pickcol { width: 36px; text-align: center !important; }
.scs-pickcol input, .scs-rowpick input { width: 20px; height: 20px; }
.scs-rowpick { display: inline-flex; align-items: center; margin-right: 8px; vertical-align: middle; }
.scs-bulk__list { margin: 8px 0 14px; padding-left: 20px; line-height: 1.7; }
.scs-merged-login p { margin: 0 0 10px; }
.scs-ms-newgroup { margin-top: 6px; }
.scs-counts { list-style: none; margin: 4px 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.scs-counts li { display: flex; align-items: baseline; gap: 6px; padding: 6px 12px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
.scs-counts__n { font-size: 18px; font-weight: 700; color: var(--ink); }
.scs-counts__l { font-size: 13px; color: var(--muted); }
.scs-import-confirm { margin-top: 16px; margin-bottom: 10px; }
.scs-inuse summary { color: var(--muted); }
.scs-inuse__why { margin: 6px 0; padding-left: 18px; line-height: 1.5; }
@media (max-width: 860px) {
	.scs-merge, .scs-dupes__people { grid-template-columns: 1fr; }
	.scs-dupes__pair { grid-template-columns: 1fr; }
	.scs-dupes__actions { justify-content: flex-start; }
}
@media (max-width: 640px) {
	.scs-table--students thead { display: none; }
	.scs-table--students tbody tr { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 2px 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
	.scs-table--students td { display: block; padding: 0; border: 0; }
	.scs-table--students td.scs-pickcol { grid-row: 1 / span 3; align-self: start; padding-top: 2px; }
	.scs-table--students td:nth-child(2) { grid-column: 2 / 4; min-width: 0; overflow-wrap: anywhere; }
	.scs-table--students td[colspan] { grid-column: 1 / -1; } /* "No students found." spans the card (step 9b) */
	.scs-table--students td:nth-child(3) { grid-column: 2; }
	.scs-table--students td:nth-child(4) { grid-column: 3; text-align: right; }
	.scs-table--students td:nth-child(4)::before { content: attr(data-label) ": "; font-size: 12px; color: var(--muted); }
	.scs-table--students td:nth-child(n+5) { display: none; }
	.scs-emails__remove { margin-left: 0; }
	.scs-bulkbar select { flex: 1 1 180px; }
}
/* ---------------------------------------------------------------- Invoicing from the portal (step 11) */
.scs-chip--inv-draft { background: #e6eef8; color: #1f3d63; }
.scs-chip--testmode { background: #efe6fb; color: #4b2a7a; }
.scs-inv-mode { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; font-size: 14px; line-height: 1.45; }
.scs-inv-mode--test { background: #f4effc; border: 1px solid #d9c9f2; color: #3c2366; }
.scs-inv-mode--off { background: var(--cream); border: 1px solid var(--line); color: var(--ink); }
.scs-inv-sync { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; margin: -4px 0 12px; }
.scs-inv-sync p { margin: 0; }
.scs-inv-sync__line { display: inline-block; margin-right: 10px; }
.scs-inv-who { margin: -4px 0 12px; font-size: 14px; }
.scs-inv-err { color: #8a1c1c; }
.scs-inv-warn { color: #6b4e00; background: #fff6d6; border-radius: 8px; padding: 6px 10px; display: inline-block; font-size: 14px; line-height: 1.45; }
.scs-inv-note { margin: 0 0 14px; padding: 10px 14px; border-left: 4px solid #9db7d8; background: #f3f7fc; border-radius: 0 10px 10px 0; font-size: 14px; line-height: 1.5; }
.scs-inv-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px 20px; }
.scs-inv-head > div:first-child { min-width: 0; flex: 1 1 320px; }
.scs-inv-head .scs-h2 { overflow-wrap: anywhere; }
.scs-inv-head__who { margin: 4px 0; overflow-wrap: anywhere; }
.scs-inv-head .scs-kpi { min-width: 170px; }
.scs-inv-error p { margin: 0 0 8px; }
.scs-inv-doc__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 24px; margin-bottom: 12px; }
.scs-inv-doc__label { margin: 0 0 2px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.scs-inv-doc__bill p, .scs-inv-doc__meta p { margin: 0 0 10px; overflow-wrap: anywhere; }
.scs-inv-doc__text { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.scs-inv-doc__text p { margin: 0 0 4px; overflow-wrap: anywhere; }
.scs-inv-totals { display: grid; grid-template-columns: max-content max-content; justify-content: end; gap: 4px 18px; margin: 12px 0 4px; font-variant-numeric: tabular-nums; }
.scs-inv-totals dt { text-align: right; color: var(--muted); }
.scs-inv-totals dd { margin: 0; text-align: right; }
.scs-inv-totals__total { font-weight: 700; color: var(--ink) !important; font-size: 17px; }
.scs-inv-actions__row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.scs-inv-actions__row form { margin: 0; }
.scs-inv-send { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 6px 0 12px; padding: 12px 14px; background: var(--cream); border-radius: 10px; }
.scs-inv-send .scs-check { margin: 0; font-weight: 400; }
.scs-btn-danger { color: #8a1c1c !important; border-color: #e7b7b4 !important; }
.scs-inv-hist { list-style: none; margin: 0 0 16px; padding: 0; font-size: 14px; }
.scs-inv-hist li { padding: 4px 0; border-top: 1px solid var(--line); }
.scs-inv-hist li:first-child { border-top: 0; }
.scs-inv-plain { margin: 0 0 8px; padding-left: 18px; }
.scs-inv-form .scs-card--form { margin-bottom: 14px; }
.scs-inv-cust { margin: 0 0 6px; overflow-wrap: anywhere; }
.scs-inv-due { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.scs-inv-due .scs-check { margin: 0; font-weight: 400; }
.scs-inv-due input[type=date] { max-width: 200px; }
.scs-inv-info p { margin: 0 0 6px; }
.scs-inv-ofhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.scs-inv-ofhead .scs-h3 { margin-bottom: 8px; }
.scs-inv-drafts { list-style: none; margin: 0 0 10px; padding: 0; font-size: 14px; }
.scs-inv-drafts li { padding: 4px 0; }
.scs-inv-progress { height: 10px; margin: 6px 0 6px; background: var(--cream); border-radius: var(--pill); overflow: hidden; }
.scs-inv-progress span { display: block; height: 100%; background: var(--gold); border-radius: var(--pill); transition: width .3s; }
.scs-inv-step { margin: 6px 0 12px; }
.scs-inv-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.scs-inv-pick { max-height: 320px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px; margin-bottom: 12px; }
.scs-inv-pick .scs-check { display: flex; gap: 8px; margin: 6px 0; font-weight: 400; overflow-wrap: anywhere; }
.scs-inv-pick__h { margin: 8px 0 2px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.scs-inv-batchform select { max-width: 100%; }
.scs-inv-batchform input[type=number] { width: 90px; }
.scs-pool-inv { margin: 2px 0 4px; }
.scs-pool-inv .scs-chip { margin: 0 0 0 4px; }
.scs-table--invlist td .scs-chip--testmode { margin-top: 4px; }
@media (max-width: 640px) {
	.scs-inv-doc__top { grid-template-columns: 1fr; }
	.scs-inv-totals { justify-content: stretch; grid-template-columns: 1fr max-content; }
	.scs-inv-head .scs-kpi { min-width: 0; width: 100%; }
	.scs-inv-sync { flex-direction: column; align-items: flex-start; }
	.scs-inv-batchform input[type=number] { width: 100%; }
}
/* The invoicing list fits a 1280 px screen: the activity is shown, its editor opens on "Change…" (open while to classify). */
.scs-table--invlist.scs-table--classify { min-width: 0; }
.scs-table--invlist td:nth-child(3) { min-width: 150px; }
.scs-table--invlist .scs-classify-cell { width: 200px; min-width: 180px; }
.scs-table--invlist .scs-classify-cell > .scs-chip { margin: 0 0 2px; }
.scs-classify-more { margin: 2px 0 0; }
.scs-classify-more > summary { font-size: 13px; }
.scs-classify-more .scs-inline.scs-classify { margin-top: 6px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "a" "r" "b"; }
.scs-classify-more .scs-classify button { justify-self: start; }
.scs-table--invlist .scs-chip--testmode { display: block; width: max-content; margin: 4px 0 0; }
.scs-inv-taxnote { margin: 0 0 4px; text-align: right; }
@media (max-width: 640px) { .scs-inv-taxnote { text-align: left; } }
.scs-table--invoices td .scs-chip--testmode { margin: 4px 0 0; }
.scs-inv-batchlist .scs-chip, .scs-pool-inv .scs-chip { white-space: nowrap; }
.scs-inv-prices td:nth-child(2) { min-width: 160px; }
.scs-form > .scs-table-wrap + .btn { margin-top: 14px; }
.scs-inv-setrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 6px; }
.scs-inv-setrow form { margin: 0; }
/* Step 11b: the New invoice form's link to the Prices page reads as a link; the "not counted" line under a list's totals. */
.scs-inv-priceslink { margin: 4px 0 10px; }
.scs-inv-priceslink a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 2px; }
.scs-inv-testnote { margin: 4px 0 12px; }

/* Step 9b (translations of the administration): phone rules that must come after every earlier .scs-dl rule. A details
   list keeps its labels to about 40% of the width: a long Lithuanian or Spanish label ("Internetinės pamokos nuoroda")
   used to take most of it and squeeze the values into a narrow column. */
@media (max-width: 640px) {
	.scs-dl { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 6px 14px; }
	.scs-dl dt { overflow-wrap: break-word; min-width: 0; }
}

/* Step 9b: Lithuanian and Spanish words are longer than English ones. On a desktop these tables now fit beside the menu
   without scrolling sideways: their headers, activity chips, links and dates may wrap (English keeps its one-line look),
   the "Edit" column of the notifications is a little wider for "Redaguoti", the credits table no longer insists on 900 px
   on a wide screen, and the invoice list's amount column no longer takes the 170 px meant for the classify table. */
:lang(lt) .scs-table--unpaid th, :lang(es) .scs-table--unpaid th,
:lang(lt) .scs-table--unpaid .scs-chip--act, :lang(es) .scs-table--unpaid .scs-chip--act,
:lang(lt) .scs-table--unpaid td.scs-links, :lang(es) .scs-table--unpaid td.scs-links,
:lang(lt) .scs-table--credits td:nth-child(6) .scs-nowrap, :lang(es) .scs-table--credits td:nth-child(6) .scs-nowrap,
:lang(lt) .scs-table--invlist .scs-chip--testmode, :lang(es) .scs-table--invlist .scs-chip--testmode { white-space: normal; }
:lang(lt) .scs-table--invlist .scs-chip--testmode, :lang(es) .scs-table--invlist .scs-chip--testmode { width: fit-content; border-radius: 8px; line-height: 1.35; padding: 3px 8px; }
:lang(lt) .scs-table--ntf .scs-ntf__c-name { width: 32%; }
:lang(lt) .scs-table--ntf .scs-ntf__c-go { width: 13%; }
.scs-table--invlist.scs-table--classify td:nth-child(4) { min-width: 0; }
@media (min-width: 1200px) {
	.scs-table--credits { min-width: 0; }
	.scs-table--credits td:nth-child(2) { min-width: 200px; }
}

/* Accessibility (step 10b, axe-core): grey text on the yellow alert background reaches 4.5:1 (it was 4.47), links inside running
   text are underlined, so they are told apart by more than their colour; an error notice shows where the focus is. */
.scs-kpi--alert .scs-kpi__l, .scs-attention .scs-muted, .scs-notice--info .scs-muted { color: #5b6170; }
.scs-attention a, .scs-main dd a:not(.btn), .scs-ann__body a { text-decoration: underline; text-underline-offset: 2px; }
.scs-notice[data-scs-focus]:focus { outline: 2px solid #7f1d1d; outline-offset: 2px; }

/* Backlog round A: "Add more lessons" always one click away (a quiet link at the foot of the Lessons left card, a card on
   Profile with the course of each lesson type), and the Lessons left card after a free trial class. */
.scs-left__done { margin: 0 0 6px; }
.scs-left__more { margin: 10px 0 0; font-size: 14px; }
.scs-left__more a, .scs-morelessons__list a { color: var(--gold-2); font-weight: 600; }
.scs-morelessons__list { list-style: none; margin: 10px 0 0; padding: 0; }
.scs-morelessons__list li { padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; overflow-wrap: anywhere; }
@media (max-width: 640px) {
	.scs-left__more a, .scs-morelessons__list a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* Backlog round B1 (items 17 and 25): the group page's "Classes" (one row per class, like a long chip: number, day and
   date, time, minutes, teacher, format, status), the holiday notice with "Add a class at the end", and "Add classes" (one
   class, or a course with its days and times and a numbered preview). Phone first: a row wraps into two or three lines. */
.scs-classrows { list-style: none; margin: 10px 0 8px; padding: 0; display: grid; gap: 6px; }
.scs-classrow { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "n when" "n meta" "n status"; gap: 2px 12px; align-items: baseline; padding: 9px 12px; border-radius: 10px; border-left: 3px solid var(--gold); background: var(--cream-2); color: var(--text); text-decoration: none; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; transition: background .2s; }
.scs-classrow:hover, .scs-classrow:focus-visible { background: var(--cream); }
.scs-classrow__n { grid-area: n; align-self: center; min-width: 3.4em; padding: 3px 8px; border-radius: var(--pill); background: var(--white); border: 1px solid var(--line); font-weight: 700; font-size: 13px; color: var(--ink); text-align: center; font-variant-numeric: tabular-nums; }
.scs-classrow__n--none { color: var(--muted); font-weight: 400; }
.scs-classrow__when { grid-area: when; color: var(--ink); }
.scs-classrow__time { font-variant-numeric: tabular-nums; }
.scs-classrow__meta { grid-area: meta; color: var(--muted); font-size: 13px; }
.scs-classrow__meta .scs-chip { margin: 0 0 0 4px; padding: 0 7px; font-size: 11px; }
.scs-classrow__status { grid-area: status; font-size: 13px; }
.scs-classrow__status .scs-chip { margin: 0; }
.scs-classrow__note { color: var(--muted); font-size: 12.5px; }
.scs-classrow--sub { border-left-color: #8a63c9; }
.scs-classrow--held { border-left-color: #7d9bd0; }
.scs-classrow--off { border-left-color: #cfc8b4; background: #f6f4ee; }
.scs-classrow--off .scs-classrow__when strong, .scs-classrow--off .scs-classrow__time { text-decoration: line-through; color: var(--muted); }
.scs-classes__past > summary { font-weight: 600; font-size: 14px; color: var(--gold-2); }
.scs-classrows--past .scs-classrow { background: var(--white); border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 900px) {
	.scs-classrow { grid-template-columns: 4.2em minmax(170px, 1.1fr) minmax(0, 1.6fr) minmax(0, 1.2fr); grid-template-areas: "n when meta status"; align-items: center; }
	.scs-classrow--plain { grid-template-columns: minmax(170px, 1.1fr) minmax(0, 1.6fr) minmax(0, 1.2fr); grid-template-areas: "when meta status"; }
	.scs-classrow__status { text-align: right; }
}
@media (max-width: 899px) {
	.scs-classrow--plain { grid-template-columns: minmax(0, 1fr); grid-template-areas: "when" "meta" "status"; }
}
.scs-holiday-short { margin: 8px 0 12px; padding: 12px 14px; border-radius: 10px; background: #fff6d6; border: 1px solid var(--yellow); }
.scs-holiday-short p { margin: 0 0 6px; }
.scs-holiday-short__list { list-style: none; margin: 6px 0 0; padding: 0; }
.scs-holiday-short__list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 8px 0; border-top: 1px solid rgba(0, 0, 0, .08); font-size: 14px; }
.scs-addpick { display: grid; gap: 10px; }
.scs-addpick__item { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; background: var(--white); }
.scs-addpick__item > summary { cursor: pointer; font-weight: 600; font-size: 15px; color: var(--gold-2); min-height: 28px; display: flex; align-items: center; }
.scs-addpick__item[open] { background: var(--cream-2); }
.scs-addpick__item[open] > summary { margin-bottom: 6px; }
.scs-dayrows-box { margin-top: 2px; }
.scs-dayrows { display: grid; gap: 0; }
.scs-dayrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 12px; }
.scs-dayrow select, .scs-dayrow input { width: 100%; box-sizing: border-box; }
@media (min-width: 640px) { .scs-dayrow { max-width: 460px; } }
@media (max-width: 479px) {
	/* A phone: the day and its time one under the other, so neither is cut off ("Wednesday", "18:00"). */
	.scs-dayrow { grid-template-columns: minmax(0, 1fr); padding-top: 8px; border-top: 1px solid var(--line); }
	.scs-dayrow:first-child { padding-top: 0; border-top: 0; }
}
.scs-dayrows__add { margin: 0 10px 8px 0; }
.scs-dayrows-box > .scs-hint { display: block; margin: 0 0 8px; }
.scs-course > .btn { margin-top: 4px; }
.scs-preview { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.scs-preview__sum { margin: 0 0 8px; }
.scs-preview__list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 4px; }
.scs-preview__item { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; padding: 7px 10px; border-radius: 8px; background: var(--white); border: 1px solid var(--line); font-size: 14px; }
.scs-preview__n { min-width: 2.2em; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.scs-preview__when { color: var(--ink); }
@media (min-width: 640px) { .scs-preview__when { min-width: 9.5em; } }
.scs-preview__time { font-variant-numeric: tabular-nums; color: var(--muted); }
.scs-preview__item--holiday { background: #f6f4ee; }
.scs-preview__item--holiday .scs-preview__when, .scs-preview__item--holiday .scs-preview__time { text-decoration: line-through; color: var(--muted); }
.scs-preview__note { color: #7a4b00; font-weight: 600; font-size: 13px; }
.scs-preview__item--clash { border-color: #e8a3a0; background: #fdf0ef; }
.scs-preview__clash { flex-basis: 100%; color: #8a1c1c; font-weight: 600; font-size: 13px; }
.scs-preview__save { margin-top: 4px; }
@media (max-width: 640px) {
	.scs-holiday-short__list .btn, .scs-preview__save .btn, .scs-addpick .btn { min-height: 44px; }
}

/* Backlog round B2 (items 13 and 14): a weekly time's note ("Part of a course: 8 classes, last class Thu 31 Dec", or "Ends …,
   before the group ends (…)" with "Run until the group ends"), its one Edit that opens in place, and the offer in a save
   message ("Move them to 13 Jan"). Phone first: the note and its button wrap, the buttons are 44 px tall on a phone. */
.scs-rule__note { margin: 6px 0 0; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.scs-rule__note--course { color: var(--ink); }
.scs-rule__note--early { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 8px 12px; border-radius: 8px; background: #fff6d6; border: 1px solid var(--yellow); color: #4a3800; }
.scs-rule__follow { margin: 0; }
.scs-rule__edit .scs-fields { margin-top: 4px; }
.scs-notice__offer { display: flex; margin: 10px 0 0; }
@media (max-width: 640px) {
	.scs-rule__follow .btn, .scs-rule__edit .btn, .scs-notice__offer .btn { min-height: 44px; }
	.scs-rule__note--early { align-items: stretch; }
}

/* Backlog round C (items 24 and 16): the group page. Phone first, one column in the page's order: the group, its students,
   the notices that need action, the classes, Teams, homework. From 1180 px wide the group and its students sit side by side
   (the students' column a little wider). The members are a list, one row each: name and email, the lessons left that pay
   this group's classes (red when low), and a short warning when their lessons left do not pay here. */
.scs-group-top { margin-bottom: 18px; }
.scs-group-top > .scs-card, .scs-group-side > .scs-card { margin-bottom: 18px; }
.scs-group-side > .scs-card:last-child { margin-bottom: 0; }
.scs-group-card .scs-dl { margin-bottom: 4px; }
.scs-group-card .scs-dl dd { overflow-wrap: anywhere; min-width: 0; }
.scs-group-edit { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
details.scs-group-edit:not([open]) { padding-bottom: 0; }
.scs-group-count { font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--muted); margin-left: 4px; }
.scs-group-sub { margin: 22px 0 6px; }
.scs-group-former { margin: 12px 0 0; }
.scs-group-add { margin-top: 8px; padding-top: 2px; border-top: 1px solid var(--line); }
.scs-card.scs-holiday-short { padding: clamp(20px, 3vw, 34px); margin: 0 0 18px; border-radius: var(--radius); } /* round B1's notice, a card of its own now */
.scs-members { list-style: none; margin: 0; padding: 0; }
.scs-member { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.scs-member:first-child { border-top: 0; padding-top: 2px; }
.scs-member__who { min-width: 0; line-height: 1.4; }
.scs-member__who a { color: var(--ink); }
.scs-member__mail { font-size: 13px; overflow-wrap: anywhere; }
.scs-member__left { text-align: right; line-height: 1.15; }
.scs-member__n { display: block; font-family: var(--serif); font-size: 26px; color: var(--ink); font-variant-numeric: tabular-nums; }
.scs-member__n.scs-minus { color: #b42318; }
.scs-group-students__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; margin-bottom: 8px; }
.scs-group-students__head .scs-h3 { margin-bottom: 0; }
.scs-members__col { margin-left: auto; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-align: right; }
.scs-member__l { display: block; font-size: 11px; color: var(--muted); }
.scs-member__left--invoice { font-size: 13px; color: var(--ink); }
.scs-member__warn { grid-column: 1 / -1; margin: 4px 0 0; padding: 6px 10px; border-radius: 8px; background: #fdf0ef; line-height: 1.35; }
.scs-member__trial { grid-column: 1 / -1; font-size: 14px; }
.scs-member__trial a { color: var(--gold-2); font-weight: 600; }
.scs-member__meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; font-size: 13px; color: var(--muted); }
.scs-member__meta .scs-more summary { margin-top: 0; }
.scs-member__meta .scs-more[open] { flex-basis: 100%; }
.scs-members--trials .scs-member__who { grid-column: 1 / -1; }
@media (min-width: 1180px) {
	.scs-group-top { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr); gap: 18px; align-items: start; }
	.scs-group-top > .scs-card { margin-bottom: 0; }
	.scs-group-top .scs-card { padding: 26px; }
	.scs-group-side .scs-fields { grid-template-columns: minmax(0, 1fr); }
	.scs-group-card .scs-dl { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); } /* a long label wraps instead of squeezing the value */
}
@media (max-width: 640px) {
	.scs-member__meta .scs-more > summary { min-height: 44px; }
	.scs-group-add .btn { min-height: 44px; }
}
/* Backlog round D1. Item 19: bookings for one class only, listed under the trial classes like them, and "Add to one class…"
   folded under "Add a student" (its summary reads like a link, so it is found). Item 20: the portal's "Before you joined",
   the group's earlier homework to read and catch up: plain cards, never the colours of homework that is due. */
.scs-members--oneclass .scs-member__who { grid-column: 1 / -1; }
.scs-chip--oneclass { background: #e6f1ea; color: #1f5b33; }
.scs-oneclass-add { margin-top: 14px; padding-top: 10px; border-top: 1px dashed var(--line); }
.scs-oneclass-add > summary { margin-top: 0; font-size: 14px; font-weight: 600; color: var(--gold-2); }
.scs-oneclass-add[open] > summary { margin-bottom: 8px; }
.scs-hwbefore { margin-top: 6px; }
.scs-hwcard--before .scs-hwcard__link { border-left-color: var(--line); background: #fbfaf7; }
.scs-hwbefore-note { border-left: 4px solid var(--line); }
@media (max-width: 640px) {
	.scs-oneclass-add > summary { min-height: 44px; display: flex; align-items: center; }
}
/* Backlog round D2a (item 18). The placement pool: a tick box before each name (in the card's head on a phone), a touch target of
   40 px that does not make the row taller; the card for several people at once above the list (the classes to choose from, the
   new class's fields under their choice, "Add anyway (agreed with …)" under a person's line). */
.scs-table--pool .scs-rowpick { min-width: 40px; min-height: 40px; justify-content: center; margin: -8px 2px -8px -10px; cursor: pointer; }
.scs-pool-batch .scs-bulk__list li { margin-bottom: 4px; overflow-wrap: anywhere; }
.scs-pool-batch .scs-row--off > a { color: var(--muted); }
.scs-pool-batch__pick { margin: 4px 0 6px; }
.scs-pool-batch__pick select { max-width: 100%; min-width: 0; }
.scs-pool-batch label.scs-check { flex-wrap: nowrap; } /* a long label (Lithuanian, a phone) wraps beside its box, never under it */
.scs-pool-batch label.scs-check > input { flex: 0 0 auto; }
.scs-pool-batch__classes label.scs-check { margin-bottom: 6px; overflow-wrap: anywhere; }
.scs-pool-batch__new { margin: 2px 0 0 26px; }
.scs-pool-batch__classes .scs-hint { margin: 0 0 8px 26px; }
.scs-pool-batch__agree { display: flex; margin: 2px 0 6px; font-size: 14px; }
@media (max-width: 640px) {
	.scs-table--pool td.scs-card-head > .scs-rowpick + a { font-size: 17px; }
	.scs-pool-batch__new, .scs-pool-batch__classes .scs-hint { margin-left: 0; }
	.scs-pool-batch__pick.scs-inline > * { flex: 1 1 100%; min-width: 0; }
	.scs-pool-batch__pick .scs-inline-label select { flex: 1 1 auto; width: 100%; min-width: 0; } /* the group select fits the card */
}
/* Backlog round E (item 11). A student's "Add a package": school.js shows the parts that apply (the invoice list or the typed
   number, Paid and Date) with the hidden attribute, which the form's flex labels would otherwise override; a long invoice in the
   list never widens the card past a phone's screen. */
.scs-pkg-form [hidden] { display: none !important; }
.scs-pkg-form select { width: 100%; max-width: 100%; min-width: 0; }
.scs-pkg-hint { margin: -4px 0 10px; }
/* Backlog round F1. Item 29: a course with more classes than planned (a holiday removed after it was saved) says so in its note on
   the Weekly times card, with "Remove the last class" on the weekly time that holds that class, like the note of a weekly time that
   ends early (wraps, a 44 px button on a phone). Item 34: someone's later row in the placement pool says "Ticked with their row
   above" where its tick box would be, on a line of its own above the name (no touch target). */
.scs-rule__note--over { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 8px 12px; border-radius: 8px; background: #fff6d6; border: 1px solid var(--yellow); color: #4a3800; }
.scs-rule__trim { margin: 0; }
.scs-table--pool .scs-rowpick--same { display: block; min-width: 0; min-height: 0; margin: 0 0 2px; cursor: default; }
@media (max-width: 640px) {
	.scs-rule__trim .btn { min-height: 44px; }
	.scs-rule__note--over { align-items: stretch; }
}
/* Backlog round G2 (item 40). Course templates (administration only): the template's page, its classes as closed details
   ("3 · Ser y estar · 2 materials · 1 homework") that open in place, each homework with its timing; the archived list. The course
   form's preview shows each class's topic and what Save copies. Teachers: a material's line saying how the students see it
   ("Students see it from Tue 8 Dec", held back) with "Show now" / "Hold back" / "Show to students", and a homework that publishes
   by itself says when, with "Hold back"; the group page and the homework tab keep such drafts under a closed "Scheduled (n)".
   The course's description on the group page and in the students' Materials tab. Phone first; buttons 44 px tall on a phone. */
.scs-course-desc { margin: 10px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--cream-2); border: 1px solid var(--line); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.scs-course-desc a { color: var(--gold-2); text-decoration: underline; }
.scs-learn > .scs-course-desc { margin: 0 0 12px; }
.scs-mat__flag { margin: 4px 0 0; font-size: 13px; font-weight: 600; color: #7a4b00; }
.scs-mat__flag--held { color: #8a1c1c; }
.scs-mat__vis { margin: 4px 0 0; }
.scs-hwsched { margin-top: 10px; }
.scs-hwsched > summary { font-weight: 600; color: var(--ink); }
.scs-hwsched-box { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; flex-basis: 100%; margin: 6px 0 0; padding: 8px 12px; border-radius: 8px; background: #fff6d6; border: 1px solid var(--yellow); color: #4a3800; font-size: 13px; }
.scs-hwsched-box .scs-inline { margin: 0; }
.scs-preview__topic { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.scs-preview__tpl { margin: 0 0 8px; padding: 8px 12px; border-radius: 8px; background: var(--cream-2); border: 1px solid var(--line); font-size: 14px; }
.scs-tplhead__act { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 18px; margin: 10px 0 0; }
.scs-tplhead__act > details[open] { flex-basis: 100%; background: var(--cream-2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px 12px; }
.scs-tplhead__act > .scs-inline { margin: 6px 0 0; }
.scs-tplclass { border: 1px solid var(--line); border-radius: 10px; background: var(--white); margin: 0 0 8px; }
.scs-tplclass > summary { cursor: pointer; padding: 10px 14px; min-height: 28px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.scs-tplclass[open] { background: var(--cream-2); }
.scs-tplclass[open] > summary { border-bottom: 1px solid var(--line); }
.scs-tplclass__body { padding: 8px 14px 14px; }
.scs-tplclass__body > .scs-form { margin: 0 0 6px; }
.scs-tplhws { list-style: none; margin: 0 0 8px; padding: 0; }
.scs-tplhw { padding: 8px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.scs-tplhw:first-child { border-top: 0; }
.scs-tplhw__meta { display: block; font-size: 13px; color: var(--muted); }
.scs-tplhw > details[open] { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px 12px; }
.scs-tpltiming label { margin-bottom: 8px; }
.scs-tplclasses__add { margin-top: 6px; }
.scs-tplarchived > summary { font-weight: 600; }
.scs-tplarchived__list { list-style: none; margin: 8px 0 0; padding: 0; }
.scs-tplarchived__list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 8px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.scs-tplarchived__list .scs-inline { margin: 0; }
@media (max-width: 640px) {
	.scs-tplclass > summary { min-height: 44px; display: flex; align-items: center; }
	.scs-mat__vis .btn, .scs-hwsched-box .btn, .scs-tplhead__act .btn, .scs-tplclasses__add .btn, .scs-tplarchived__list .btn { min-height: 44px; }
	.scs-hwsched-box { align-items: stretch; }
}
/* Backlog round G3 (item 40, part 2). The group page's card "Course template": "Save as template…" and "Load a template…", each
   with its preview (the classes with their topics, each homework's timing, what is left out); a template's material Edit, its
   "Duplicate", and each class's "Move up" / "Move down" / "Insert a class after this one". Phone first; buttons 44 px tall on a
   phone. */
.scs-tplgroup .scs-addpick__item > .scs-form { margin-bottom: 0; }
.scs-tplgroup label.scs-check { flex-wrap: nowrap; } /* "Also the group's materials…" wraps beside its box on a phone, never under it */
.scs-preview__meta { color: var(--muted); font-size: 13px; }
.scs-preview__hw { flex-basis: 100%; font-size: 13px; color: var(--ink); overflow-wrap: anywhere; }
.scs-preview__item--had { background: #f6f4ee; }
.scs-preview__out { margin: 0 0 10px; padding: 8px 12px; border-radius: 8px; background: #fff6d6; border: 1px solid var(--yellow); color: #4a3800; font-size: 13px; overflow-wrap: anywhere; }
.scs-preview__out p { margin: 0 0 4px; }
.scs-preview__out p:last-child { margin-bottom: 0; }
.scs-tplclass__order { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--line); }
.scs-tplclass__order .scs-inline { margin: 0; }
.scs-tpllist__act { white-space: nowrap; }
/* A template material's Edit: the hint sits above Save (its panel fits its column like every material's: .scs-mat__ctl above). */
.scs-tplmatedit .scs-hint { display: block; margin: 0 0 8px; }
.scs-tpllist__act .scs-inline { margin: 0; }
@media (max-width: 640px) {
	.scs-tplclass__order .btn, .scs-tpllist__act .btn, .scs-tplgroup .btn { min-height: 44px; }
	.scs-tpllist__act { white-space: normal; }
}
/* Backlog round G5 (item 44): a course keeps its order. The class page's Cancel, Move and Restore forms with "Keep the course in
   order" and their previews, "Move its content on", and the group page's card "Keep the course in order". Item 43: a material's Edit
   keeps each group's name beside its tick box under "Also share with" on a phone (as round G3 did for "Save as template…"). */
.scs-mat__ctl .scs-checks label.scs-check { flex-wrap: nowrap; }
.scs-coform__set { margin: 4px 0 8px; }
.scs-coorder label.scs-check { flex-wrap: nowrap; align-items: flex-start; }
/* The Cancel form's tick boxes and choices: the box beside its words, a long text wrapping beside it and never under it (round G3's
   reason for nowrap), and a hint under the words, as everywhere else (step 9b): two columns, the box and its words, the hint in the
   second column on its own row. */
.scs-coform label.scs-check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 8px; align-items: start; }
.scs-coform label.scs-check > input, .scs-coorder label.scs-check > input { margin-top: 3px; flex: none; }
.scs-coform label.scs-check > .scs-hint { grid-column: 2; margin: 0; }
/* "One class" for a course that is short: the course choice is never as wide as its longest option, so "One class" stays inside its
   card on a phone (as .scs-pool-place does for a group's name). */
.scs-addpick > #add-one { min-width: 0; }
#add-one select[name="for_course"] { width: 100%; max-width: 100%; min-width: 0; }
.scs-coform__day { margin: 0 0 6px 24px; }
.scs-coform__go, .scs-coorder__go { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 6px; }
.scs-coform__go .scs-inline, .scs-coorder__go .scs-inline { margin: 0; }
.scs-coprev { margin-top: 10px; }
.scs-preview__item--moves { background: #fff8dc; }
.scs-coorder__course + .scs-coorder__course { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.scs-coorder__name { margin: 0 0 4px; overflow-wrap: anywhere; }
.scs-coorder__list { list-style: none; margin: 4px 0 0; padding: 0; }
.scs-coorder__list > li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 8px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.scs-coorder__list > li > .scs-coprev { flex-basis: 100%; }
.scs-holiday-short__list .scs-inline label.scs-check { margin: 0 8px 0 0; }
@media (max-width: 640px) {
	.scs-coform__go .btn, .scs-coorder .btn, .scs-holiday-short__list .btn { min-height: 44px; }
	.scs-coform__day { margin-left: 0; }
	.scs-coorder__list > li { align-items: stretch; }
}

/* Backlog item 47 (round G8): credit types (Administration > Credits > Credit types) and a student's lessons left per type. */
/* The Credits page's two views: the switch sits apart from the list's own filters below it. */
.scs-seg--views { margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.scs-ctypes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 14px; align-items: start; }
.scs-ctypes > .scs-card { margin: 0; padding: 18px 20px; min-width: 0; }
.scs-ctype h3 { margin-bottom: 2px; overflow-wrap: anywhere; }
.scs-ctype__facts { margin: 0 0 8px; overflow-wrap: anywhere; }
.scs-ctype__none { margin: 0 0 4px; }
.scs-ctype__products { list-style: none; margin: 0 0 4px; padding: 0; }
.scs-ctype__products > li { margin: 0 0 2px; overflow-wrap: anywhere; }
.scs-chip--product { background: #e7eefb; color: #1d3f6e; white-space: normal; }
.scs-ctype__actions { display: flex; flex-wrap: wrap; gap: 0 18px; align-items: flex-start; }
.scs-ctype__actions > .scs-more { min-width: 0; max-width: 100%; }
.scs-ctype__actions > .scs-more[open] { flex: 1 1 100%; }
.scs-ctype__edit .scs-form, .scs-ctype-add .scs-form { min-width: 0; max-width: 100%; }
.scs-ctype__edit .scs-form input[type=text] { width: 100%; max-width: 100%; box-sizing: border-box; }
.scs-ctype--none { background: var(--cream); }
.scs-ctype-add > summary { cursor: pointer; font-weight: 600; }
.scs-ctype-add[open] > summary { margin-bottom: 12px; }
.scs-ctype-todo { padding: 14px 18px; }
.scs-ctype-todo p { margin: 0 0 6px; }
.scs-ctype-todo__list { margin: 0 0 8px; padding-left: 20px; }
.scs-ctype-todo__list > li { overflow-wrap: anywhere; }
/* The picker: a compact list of tick boxes that opens like a dropdown (inside "Edit"), in one stable order. This type's own
   products are ticked at full strength; one another type has is ticked, switched off and dimmed (its note says whose it is, in
   words and at full strength, so the state never depends on the dimming alone). */
.scs-picker { border: 0; margin: 10px 0; padding: 0; min-width: 0; min-inline-size: 0; width: 100%; max-width: 100%; box-sizing: border-box; background: none; box-shadow: none; border-radius: 0; }
.scs-picker > legend { padding: 0; font-weight: 600; font-size: 14px; }
.scs-picker > .scs-hint { display: block; margin: 2px 0 6px; }
.scs-picker__list { list-style: none; margin: 0; padding: 4px 0; max-height: 264px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.scs-picker__item { margin: 0; }
.scs-picker__item > label.scs-check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 8px; align-items: start; margin: 0; padding: 6px 12px; font-size: 14px; line-height: 1.35; cursor: pointer; }
.scs-picker__item > label.scs-check > input { margin: 2px 0 0; }
.scs-picker__item:hover { background: var(--cream); }
.scs-picker__name { overflow-wrap: anywhere; }
.scs-picker__note { grid-column: 2; font-size: 12px; color: var(--muted); }
.scs-picker__item.is-own .scs-picker__name { font-weight: 600; }
.scs-picker__item.is-taken > label.scs-check { cursor: default; }
.scs-picker__item.is-taken > label.scs-check > input, .scs-picker__item.is-taken .scs-picker__name { opacity: .45; }
.scs-picker__item.is-taken:hover { background: none; }
/* A student's page: lessons left per credit type; "Edit" gives each type a number with - and +. */
.scs-ctleft__list { list-style: none; margin: 0 0 6px; padding: 0; }
.scs-ctleft__list > li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); min-width: 0; }
.scs-ctleft__list > li:first-child { border-top: 0; }
.scs-ctleft__name, .scs-form label.scs-ctleft__name { display: block; flex: 1 1 auto; min-width: 0; font-size: 14px; line-height: 1.35; font-weight: 400; overflow-wrap: anywhere; margin: 0; }
.scs-ctleft__sub { display: block; font-size: 12px; color: var(--muted); }
.scs-ctleft__n { flex: none; min-width: 30px; padding: 1px 8px; border-radius: var(--pill); background: #e3f4e8; color: #14532d; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.scs-ctleft__shared .scs-ctleft__n { background: #e7eefb; color: #1d3f6e; }
.scs-ctleft__list--zero .scs-ctleft__n { background: var(--cream); color: var(--muted); }
.scs-ctleft__form { margin-top: 6px; }
.scs-step { flex: none; display: inline-flex; align-items: center; gap: 4px; }
.scs-step .scs-step__n { width: 64px; min-width: 0; margin: 0; padding: 6px 4px; text-align: center; font-variant-numeric: tabular-nums; }
.scs-action-grid .scs-step__btn, .scs-step__btn { flex: none; width: 36px; height: 36px; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; }
.scs-step__btn:hover { border-color: var(--gold); }
.scs-step__btn[hidden] { display: none; }
.scs-ctleft__list--edit > li.is-changed { background: #fff8dc; }
.scs-ctleft__list--edit > li.is-changed .scs-step__n { font-weight: 700; }
@media (max-width: 640px) {
	.scs-ctypes > .scs-card { padding: 16px 14px; }
	.scs-picker__item > label.scs-check { padding: 10px 12px; min-height: 44px; }
	.scs-step__btn, .scs-action-grid .scs-step__btn { width: 44px; height: 44px; }
	.scs-step .scs-step__n { width: 58px; min-height: 44px; }
	.scs-ctype .btn, .scs-ctype-add .btn { min-height: 44px; }
}
/* Backlog item 47's addendum: the one note of a type counted in credits ("1 credit is a 45-minute lesson; a 90-minute class takes
   2."), shown only where such a type's credits are shown. */
.scs-pernote { font-size: 12px; line-height: 1.35; color: var(--muted); font-weight: 400; }
span.scs-pernote { display: block; }
.scs-ctleft__unit { color: var(--muted); font-size: 12px; white-space: nowrap; }
.scs-credit + .scs-pernote, td > .scs-pernote { margin-top: 2px; }
/* Lukas, 1 Dec (after round G8): each credit type's card shows at its bottom right how many Stripe products feed it (grey when
   none), which opens to the list; the products no type has are one dropdown of their own, with their number, at the top. */
.scs-ctype__actions { align-items: center; }
.scs-ctype__count { display: inline-block; padding: 3px 12px; border-radius: var(--pill); background: #e7eefb; color: #1d3f6e; font-size: 13px; font-weight: 600; line-height: 1.35; white-space: nowrap; }
.scs-ctype__count--none { background: var(--cream); color: var(--muted); font-weight: 400; }
.scs-ctype__count--warn { background: #fde9a8; color: #5c4300; }
.scs-ctype__guess { color: #7a4f00; }
.scs-ctype__actions > .scs-ctype__count--none, .scs-ctype__prods { margin: 6px 0 0 auto; }
.scs-ctype__prods { min-width: 0; max-width: 100%; }
.scs-ctype__prods > summary { display: block; width: max-content; max-width: 100%; margin-left: auto; cursor: pointer; list-style: none; }
.scs-ctype__prods > summary::-webkit-details-marker { display: none; }
.scs-ctype__prods > summary .scs-ctype__count::after { content: '\25B8'; margin-left: 6px; font-size: 11px; }
.scs-ctype__prods[open] > summary .scs-ctype__count::after { content: '\25BE'; }
.scs-ctype__prods > summary:hover .scs-ctype__count { background: #d6e2f7; }
.scs-ctype__prods > summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: var(--pill); }
.scs-ctype__prods[open] { flex: 1 1 100%; }
.scs-ctype__prods > .scs-ctype__products { margin: 8px 0 0; }
.scs-ctype__products > li { display: flex; align-items: flex-start; gap: 6px; } /* "guessed" stays beside its product */
.scs-ctype__products > li > .scs-chip--warn { flex: none; }
.scs-ctype-todo > summary { cursor: pointer; font-weight: 600; }
.scs-ctype-todo > summary .scs-ctype__count { margin-left: 6px; }
.scs-ctype-todo[open] > summary { margin-bottom: 8px; }
.scs-ctype-todo > .scs-hint { display: block; margin: 0 0 6px; }
.scs-ctype-todo--none, .scs-ctype-guess { margin: 0 0 12px; }
@media (max-width: 640px) {
	.scs-ctype__prods > summary .scs-ctype__count, .scs-ctype__actions > .scs-ctype__count--none { padding: 12px 14px; line-height: 20px; }
	.scs-ctype-todo > summary { min-height: 44px; display: flex; align-items: center; flex-wrap: wrap; }
}

/* Help inside the platform (backlog item 6, round G9): the side menu's quiet Help link, and the area's guide
   (SolClaro_School_Markdown: headings, lists, tables in their own sideways-scrolling box, text only). */
.scs-side__foot a.is-active { color: var(--ink); font-weight: 600; }
@media (min-width: 861px) {
	/* The administration's menu (16 tabs) is taller than a laptop's window: it scrolls by itself, so its foot (Help, Switch
	   area, Log out) stays within reach while the menu sticks. The teacher's and the student's menus fit: nothing changes. */
	.scs-side { max-height: calc(100vh - var(--header-h, 80px) - 40px); overflow-y: auto; overscroll-behavior: contain; }
}
.scs-guide__back { margin: 0 0 8px; font-size: 14px; }
.scs-guide__back a { color: var(--gold-2); }
.scs-guide { color: var(--text); font-size: 16px; line-height: 1.6; overflow-wrap: break-word; }
.scs-guide h2 { font-family: var(--serif); font-weight: 500; font-size: 27px; line-height: 1.2; color: var(--ink); margin: 36px 0 12px; }
.scs-guide h3 { font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 1.25; color: var(--ink); margin: 28px 0 10px; }
.scs-guide > h2:first-child, .scs-guide > h3:first-child { margin-top: 0; }
.scs-guide h2, .scs-guide h3, .scs-guide__anchor { scroll-margin-top: calc(var(--header-h, 80px) + 16px); }
.scs-guide__anchor { display: inline-block; width: 0; height: 1em; vertical-align: top; }
.scs-guide p { margin: 0 0 12px; }
.scs-guide ul, .scs-guide ol { margin: 0 0 14px; padding-left: 1.5em; }
.scs-guide li { margin: 0 0 6px; }
.scs-guide li > ul, .scs-guide li > ol { margin: 6px 0 0; }
.scs-guide li > p { margin: 0 0 8px; }
.scs-guide hr { border: 0; border-top: 1px solid var(--line); margin: 30px 0; }
.scs-guide strong { color: var(--ink); }
.scs-guide code { background: var(--cream); padding: 1px 6px; border-radius: 4px; font-size: .9em; overflow-wrap: anywhere; }
.scs-guide a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 2px; }
.scs-guide__table { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; margin: 0 0 16px; border: 1px solid var(--line); border-radius: 8px; }
.scs-guide__table:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.scs-guide__table table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.45; }
.scs-guide__table th, .scs-guide__table td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.scs-guide__table th { background: var(--cream-2); color: var(--ink); font-weight: 600; }
.scs-guide__table tr:last-child td { border-bottom: 0; }
@media (max-width: 640px) {
	.scs-guide { font-size: 15px; }
	.scs-guide h2 { font-size: 23px; }
	.scs-guide h3 { font-size: 19px; }
	.scs-guide__table table { min-width: 540px; } /* readable columns: the table scrolls inside its box, never the page */
}
/* Round G10: a balance below 0 (lessons to pay with the next purchase) reads red; the history per account shows the balance after
   each line. */
.scs-ctleft__n.scs-minus, .scs-ctleft__shared .scs-ctleft__n.scs-minus, .scs-credit--minus .scs-credit__n { background: #fde2e1; color: #8a1c1c; }
.scs-ctleft__back { margin-top: 4px; }
.scs-ctleft__trial { margin: 8px 0 0; }
.scs-ledger__title { margin: 16px 0 6px; font-size: 15px; }
.scs-usage__title { margin: 10px 0 4px; font-size: 13px; font-weight: 600; }
.scs-usage__after { flex: none; min-width: 2.6em; text-align: right; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.scs-usage__after.scs-minus { color: #b42318; }
.scs-left__n { white-space: nowrap; } /* round G10: "15 credits" never breaks; the type's name wraps instead */
.scs-left__n.scs-minus { color: #b42318; font-family: inherit; font-size: 15px; font-weight: 700; } /* "1 lesson to pay": plain words, not a big number */
