/* Reports Online — flat, compact, light-only (owner's decisions 2026-09-05 and
   2026-10-02): no dark theme, no gradients, no shading. The structure follows
   the legacy Report Robot screens (subject sidebar, numbered steps, tick
   grids); the surface is modern: white cards, thin borders, small radii,
   cells sized to their content and left aligned. */

:root {
    color-scheme: light;

    --navy: #0f172a;
    /* Brand (owner's pick, 2026-10-03): navy "Reports", sky "Online".
       --blue is the primary action colour (navy); --blue-text is the link colour,
       a sky blue dark enough to read on white; --sky marks what is selected. */
    --blue: #14215c;
    --blue-dark: #1d2f7d;
    --blue-line: #dfe5f0;
    --blue-text: #2468cc;
    --blue-soft: #e8f1fd;
    --sky: #3a8ef0;

    --lav: #f3f6fb;
    --lav-line: #e2e8f2;
    --lav-deep: #eaeff8;

    --ink: #111827;
    --ink-soft: #4b5563;
    --ink-faint: #8b93a3;

    --surface: #ffffff;
    --page: #f4f6fa;
    --line: #dfe5f0;
    --line-strong: #c3cbda;
    --grid-line: #3b3b3b;
    --head-bg: #d6e4f7;
    --head-line: #b6cbea;
    --head-ink: #102a56;
    --pastel: #dbe7fd;
    --pastel-line: #b9cdf4;
    --pastel-ink: #1e3a8a;

    --green: #16a34a;
    --green-dark: #15803d;
    --green-bg: #e6f5ea;
    --ac-bg: #e6f5ea;
    --wt-bg: #fff3d1;
    --orange: #e8830b;
    --yellow-hi: #fff9d6;
    --mandatory: #b45309;
    --amber: #92400e;
    --amber-bg: #fff6df;
    --red: #dc2626;
    --red-bg: #fdecea;
    --red-text: #c62828;

    --radius: 8px;
    --radius-lg: 14px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
    --shadow-card: 0 1px 2px rgba(15, 23, 42, .04), 0 6px 16px -8px rgba(15, 23, 42, .10);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, .14);
    --measure: 80rem;
    --brand-navy: #14215c;
    --brand-sky: #3a8ef0;
    --tick-green: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%233aa62a' stroke-width='4' stroke-linecap='round' stroke-linejoin='round' d='M3.5 13.5l5.5 5.5L21 6'/%3E%3C/svg%3E");
    --tick-grey: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23c5cbd8' stroke-width='4' stroke-linecap='round' stroke-linejoin='round' d='M3.5 13.5l5.5 5.5L21 6'/%3E%3C/svg%3E");
    --tick-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round' d='M3.5 13.5l5.5 5.5L21 6'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: var(--ink);
    background: var(--page);
}

a { color: var(--blue-text); text-decoration: none; }
a:hover { text-decoration: underline; }

h1 { font-size: 1.3rem; margin: 0 0 .25rem; color: var(--ink); font-weight: 700; }
h2 { font-size: 1.05rem; margin: 0 0 .5rem; color: var(--ink); }
h3 { font-size: .95rem; margin: .75rem 0 .4rem; color: var(--ink); }
p { margin: 0 0 .9rem; }
.muted { color: var(--ink-soft); }
.small { font-size: .85rem; }

/* ---------- app shell: one row (logo and wordmark, menu, who, Logout) ---------- */

/* The wordmark face, self-hosted (SIL Open Font Licence, fonts/Poppins-OFL.txt). */
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url("../fonts/poppins-700.woff2") format("woff2"); }

.wordmark { font-family: "Poppins", system-ui, sans-serif; line-height: 1; white-space: nowrap; letter-spacing: -.01em; }
.wordmark .w1 { font-weight: 700; color: var(--brand-navy); }
.wordmark .w2 { font-weight: 400; color: var(--brand-sky); }

.appbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.appbar-inner {
    max-width: var(--measure); margin: 0 auto; padding: 0 1.25rem;
    display: flex; align-items: stretch; gap: 1.5rem; flex-wrap: wrap; min-height: 3.6rem;
}
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; }
.brand img { height: 32px; width: auto; display: block; }
.brand .wordmark { font-size: 1.4rem; }
.brand:hover { text-decoration: none; }
.appnav { display: flex; align-items: stretch; gap: .1rem; }
.appnav a, .appnav button {
    display: inline-flex; align-items: center; padding: 0 .85rem;
    color: var(--ink-soft); font: inherit; font-weight: 600; font-size: .95rem;
    background: transparent; border: 0; cursor: pointer; text-decoration: none;
    border-bottom: 3px solid transparent; border-top: 3px solid transparent; white-space: nowrap;
}
.appnav a:hover, .appnav button:hover { color: var(--blue-text); text-decoration: none; }
.appnav a.active { color: var(--blue-text); border-bottom-color: var(--sky); }
.appbar .spacer { flex: 1; }
.appbar .who { display: flex; align-items: center; gap: .3rem; color: var(--ink-soft); font-size: .9rem; white-space: nowrap; }
.inline { display: inline; margin: 0; }
form.inline.appnav { display: flex; }
.linkish {
    background: none; border: 0; padding: 0; cursor: pointer;
    font: inherit; color: var(--blue-text); text-decoration: underline;
}

main { max-width: var(--measure); margin: 1.4rem auto 3rem; padding: 0 1.25rem; }

footer {
    max-width: var(--measure); margin: 0 auto 2rem; padding: 1rem 1.25rem 0;
    border-top: 1px solid var(--line); color: var(--ink-faint); font-size: .85rem;
}

.page-head { margin-bottom: 1rem; }
.breadcrumb { font-size: .85rem; margin-bottom: .35rem; color: var(--ink-soft); }

/* "Create Reports" strip above the workspace */
.titlebar {
    display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
    padding: .2rem 0 .1rem; margin-bottom: 1rem;
}
.titlebar img { display: none; }
.titlebar::before {
    content: ""; width: 1.4rem; height: 1.4rem; flex: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d4ed8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6M8 13h8M8 17h8'/%3E%3C/svg%3E") center / contain no-repeat;
}
.titlebar h1 { margin: 0; font-size: 1.5rem; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.titlebar .sub { color: var(--ink-soft); font-size: .95rem; margin-left: auto; }

/* ---------- cards & tables ---------- */

.card {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card);
}
.card + .card { margin-top: 1rem; }
.card-head {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .8rem 1.1rem; font-weight: 700; font-size: 1.02rem; color: var(--ink);
    background: #f8fafc; border-bottom: 1px solid var(--line);
}
.card-head .muted, .card-head .small { color: var(--ink-soft); font-weight: 400; }
.card-body { padding: 1rem 1.1rem; }

table.grid { width: 100%; border-collapse: collapse; }
table.grid th, table.grid td { text-align: left; padding: .55rem 1rem; border-bottom: 1px solid #edf0f6; }
table.grid th {
    font-size: .76rem; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .03em;
    background: var(--lav); border-bottom: 1px solid var(--line);
}
table.grid tbody tr:last-child td { border-bottom: 0; }
table.grid tbody tr:hover td { background: #f7f9fd; }
table.grid .num { text-align: right; font-variant-numeric: tabular-nums; }
table.grid a { font-weight: 600; }

/* ---------- messages ---------- */

.notice, .error, .success {
    display: flex; gap: .6rem; align-items: flex-start;
    padding: .7rem 1rem; border-radius: 10px; margin: 0 0 1rem;
    border: 1px solid transparent; font-size: .95rem;
}
.notice { background: #eaf3fc; border-color: #c9ddf3; color: var(--navy); }
.error { background: var(--red-bg); border-color: #f1c3be; color: var(--red-text); font-weight: 600; }
.success { background: var(--green-bg); border-color: #bfe3c8; color: var(--green-dark); font-weight: 600; }

/* ---------- buttons: flat ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    padding: .5rem 1.05rem; border: 1px solid var(--blue); border-radius: var(--radius);
    font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer;
    background: var(--blue); color: #fff; text-decoration: none;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; text-decoration: none; }
.btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.btn.secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn.secondary:hover { background: var(--lav); border-color: var(--ink-faint); color: var(--ink); }
.btn.buy { background: var(--green); border-color: var(--green); padding: .6rem 1.4rem; font-size: calc(.88rem + 1px); }
.btn.buy:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn.soft { background: var(--pastel); border-color: var(--pastel-line); color: var(--pastel-ink); }
.btn.soft:hover { background: #c9dbfb; border-color: #a5bff0; color: var(--pastel-ink); }
.btn.ghost { background: transparent; color: var(--blue-text); border-color: transparent; }
.btn.ghost:hover { background: var(--blue-soft); color: var(--blue-text); }
.btn.orange { background: var(--orange); border-color: var(--orange); }
.btn.orange:hover { background: #c96f05; border-color: #c96f05; }
.btn.danger { background: var(--red); border-color: var(--red); }
.btn.danger:hover { background: #b91c1c; border-color: #b91c1c; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.small { padding: .22rem .65rem; font-size: .8rem; }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

.btn-gen {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-width: 11rem; padding: .6rem 1.3rem;
    font: inherit; font-size: 1rem; font-weight: 700; color: #fff; cursor: pointer;
    background: var(--green); border: 1px solid var(--green); border-radius: var(--radius);
}
.btn-gen::before {
    content: ""; width: 1.1rem; height: 1.1rem; flex: none;
    background: var(--tick-white) center / contain no-repeat;
}
.btn-gen:hover { background: var(--green-dark); border-color: var(--green-dark); }

/* ---------- forms ---------- */

label { font-weight: 600; font-size: .88rem; }
input[type="text"], input[type="password"], input[type="search"], input[type="email"],
input[type="number"], select, textarea {
    width: 100%; padding: .5rem .7rem; font: inherit;
    color: var(--ink); background: var(--surface);
    border: 1px solid var(--line-strong); border-radius: var(--radius);
}
input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--sky);
    box-shadow: 0 0 0 3px rgba(58, 142, 240, .22);
}
textarea { line-height: 1.6; resize: vertical; min-height: 11rem; }

.field { margin-bottom: .8rem; }
.field label { display: block; margin-bottom: .25rem; }

.switchrow { display: flex; gap: 1.1rem; flex-wrap: wrap; margin: 0 0 .9rem; }
.switchrow label { display: inline-flex; align-items: center; gap: .35rem; font-weight: 400; font-size: .9rem; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--blue); width: auto; }

/* ---------- sign in, create account, password reset (Option A) ---------- */

.auth-page { background: var(--surface); }
.auth { display: grid; grid-template-columns: minmax(18rem, 0.9fr) minmax(0, 1.1fr); min-height: 100vh; }
.auth-brand {
    position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 1.6rem;
    padding: 2.2rem 2.4rem; background: var(--brand-navy); color: #dfe8fb;
}
.auth-brand::after {
    content: ""; position: absolute; right: -6rem; bottom: -7rem; width: 22rem; height: 22rem; border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, rgba(58, 142, 240, .45), rgba(58, 142, 240, 0) 65%);
}
.auth-brand .wordmark .w1 { color: #fff; }
.auth-brand .wordmark .w2 { color: #8fc0ff; }
.auth-brand .brand .wordmark { font-size: 1.45rem; }
.auth-brand .brand img { height: 36px; }
.auth-headline { font-family: "Poppins", system-ui, sans-serif; font-weight: 700; color: #fff; font-size: 1.85rem; line-height: 1.2; margin: 1rem 0 0; max-width: 22ch; text-wrap: balance; }
.auth-points { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; font-size: 1rem; position: relative; z-index: 1; }
.auth-points li { display: flex; gap: .65rem; align-items: flex-start; }
.auth-points li::before {
    content: ""; flex: none; width: 1.3rem; height: 1.3rem; margin-top: .05rem; border-radius: 50%;
    background: rgba(159, 220, 192, .25) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%239fdcc0' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.auth-main { display: flex; flex-direction: column; gap: 1.4rem; padding: 1.6rem 2.4rem 1.4rem; }
.auth-top { display: flex; justify-content: flex-end; }
.home-link { color: var(--ink-soft); font-weight: 600; font-size: .92rem; text-decoration: none; }
.home-link:hover { color: var(--blue-text); text-decoration: none; }
.auth-inner { width: 100%; max-width: 25rem; margin: auto; display: grid; gap: 1.2rem; }
.auth-title { font-family: "Poppins", system-ui, sans-serif; font-weight: 700; font-size: 1.6rem; color: var(--brand-navy); margin: 0; }
.auth-sub { margin: .25rem 0 0; color: var(--ink-soft); }
.auth-help { margin: 0; text-align: center; font-size: .82rem; color: var(--ink-soft); }
.auth-form { display: grid; gap: .95rem; }
.auth-form .f { display: grid; gap: .35rem; }
.auth-form label, .auth-form .lab { font-size: .9rem; font-weight: 600; color: var(--ink); }
.auth-form input[type="text"], .auth-form input[type="password"], .auth-form input[type="email"], .auth-form input:not([type]) {
    padding: .65rem .75rem; font-size: 1rem; border-radius: 8px;
}
.auth-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.auth-form .hint { font-size: .8rem; color: var(--ink-soft); }
.auth-form .fieldnote:empty { display: none; }
.labrow { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; }
.labrow a { font-size: .84rem; font-weight: 600; color: var(--blue-text); }
.pw { position: relative; }
.pw input { padding-right: 4.2rem !important; }
.pw .show {
    position: absolute; right: .35rem; top: 50%; transform: translateY(-50%);
    font: inherit; font-size: .84rem; font-weight: 600; color: var(--blue-text);
    background: none; border: 0; padding: .35rem .5rem; cursor: pointer; border-radius: 6px;
}
.pw .show:focus-visible { outline: 2px solid var(--sky); outline-offset: 1px; }
.primary, a.primary.as-link {
    display: block; width: 100%; text-align: center; text-decoration: none; cursor: pointer;
    font: inherit; font-size: 1rem; font-weight: 700; padding: .8rem; border: 0; border-radius: 9px;
    background: var(--brand-navy); color: #fff;
}
.primary:hover { background: #1d2f7d; color: #fff; text-decoration: none; }
.primary:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
.switch-line { margin: 0; text-align: center; font-size: .92rem; color: var(--ink-soft); }
.switch-line a { font-weight: 600; color: var(--blue-text); }

/* Curriculum: NSW blue, National green, VIC orange */
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.seg label {
    position: relative; display: flex; align-items: center; justify-content: center; gap: .45rem;
    padding: .6rem .4rem; border: 1.5px solid var(--line-strong); border-radius: 9px; background: var(--surface);
    font-size: .92rem; font-weight: 600; color: var(--ink-soft); cursor: pointer;
}
.seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg .dot { width: .65rem; height: .65rem; border-radius: 50%; flex: none; }
.seg .seg-nsw .dot { background: #1d4ed8; }
.seg .seg-national .dot { background: #16a34a; }
.seg .seg-vic .dot { background: #ea7a0c; }
.seg label:has(input:checked) { color: var(--ink); }
.seg .seg-nsw:has(input:checked) { border-color: #1d4ed8; background: #eef3ff; }
.seg .seg-national:has(input:checked) { border-color: #16a34a; background: #ecf8f0; }
.seg .seg-vic:has(input:checked) { border-color: #ea7a0c; background: #fff4e8; }
.seg label:has(input:focus-visible) { outline: 2px solid var(--sky); outline-offset: 2px; }

@media (max-width: 820px) {
    .auth { grid-template-columns: 1fr; min-height: 0; }
    .auth-brand { padding: 1.2rem 1.2rem 1.4rem; gap: .8rem; }
    .auth-headline { font-size: 1.3rem; margin: 0; }
    .auth-points, .auth-brand::after { display: none; }
    .auth-main { padding: 1rem 1.2rem 1.4rem; }
    .auth-top { justify-content: flex-start; }
    .auth-form .row2 { grid-template-columns: 1fr; }
}

/* ---------- chips ---------- */

.chips { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 1rem; }
.chip {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .3rem .85rem; border-radius: 999px;
    border: 1px solid var(--line-strong); color: var(--ink); background: var(--surface);
    font-size: .85rem; font-weight: 600; text-decoration: none;
}
.chip:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.chip.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip .count { font-size: .75rem; padding: 0 .35rem; border-radius: 999px; background: rgba(0, 0, 0, .08); }
.chip.active .count { background: rgba(255, 255, 255, .25); }

/* ---------- stats ---------- */

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .9rem; margin-bottom: 1.1rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1.1rem; box-shadow: var(--shadow-card); }
.stat .value { font-size: 1.7rem; font-weight: 800; line-height: 1.15; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat .label { font-size: .88rem; color: var(--ink-soft); }

/* ---------- the report workspace: subject sidebar + steps ---------- */

.ws { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.subjects {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: .8rem .6rem .9rem; position: sticky; top: .75rem; box-shadow: var(--shadow-card);
}
.subjects h2 { font-size: 1rem; color: var(--blue-dark); margin: 0 .5rem .1rem; }
.subjects .student { font-size: .8rem; color: var(--ink-soft); margin: 0 .5rem .5rem; }
.sbtn {
    display: flex; align-items: center; gap: .55rem;
    margin: 0 0 .25rem; padding: .7rem .6rem; border-radius: var(--radius);
    border-left: 3px solid transparent;
    color: var(--ink-soft); font-size: 1rem; font-weight: 600; text-decoration: none;
}
.sbtn .ico { width: 1.25rem; height: 1.25rem; flex: none; }
.sbtn .ico svg { width: 100%; height: 100%; display: block; }
.sbtn .lbl { flex: 1; min-width: 0; }
.sbtn:hover { background: var(--lav); color: var(--ink); text-decoration: none; }
.sbtn.active { background: var(--blue-soft); color: var(--blue); border-left-color: var(--sky); }
.sbtn .count { font-size: .7rem; padding: 0 .4rem; border-radius: 999px; background: var(--lav-deep); color: var(--ink-soft); }
.sbtn .done-tick { width: 1.15rem; height: 1.15rem; }
.sbtn.gc, .sbtn.rc { border: 1px solid; border-left-width: 1px; margin-top: .55rem; font-size: .92rem; padding: .65rem .5rem; white-space: nowrap; }
.sbtn.gc { color: #b45309; border-color: #f0b46a; background: #fff8ef; }
.sbtn.gc:hover, .sbtn.gc.active { background: #ffefd6; color: #92400e; }
.sbtn.rc { margin-top: .3rem; color: #b91c1c; border-color: #f0a8a3; background: #fff5f4; }
.sbtn.rc:hover, .sbtn.rc.active { background: #fde4e2; color: #991b1b; }
.subjects .divider { border: 0; border-top: 1px solid var(--lav-line); margin: .6rem 0 .4rem; }
.subjects > a.small { display: block; padding: 0 .55rem; }

.ws-main { min-width: 0; }
.subject-title { text-align: left; color: var(--ink); font-size: 1.55rem; font-weight: 800; letter-spacing: -.01em; margin: 0 0 .8rem; }

.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); margin-bottom: 1rem; overflow: hidden; box-shadow: var(--shadow-card); }
.step-head {
    display: flex; align-items: center; gap: .6rem;
    padding: .7rem 1.1rem; color: var(--head-ink); font-weight: 700;
    background: var(--head-bg); border-bottom: 1px solid var(--head-line);
}
.step-head .tag-req { color: var(--mandatory); font-weight: 600; font-size: .85rem; }
.step-head .right { margin-left: auto; display: flex; align-items: center; gap: .6rem; font-size: .8rem; font-weight: 400; }
.step-head .right a { color: var(--blue-text); text-decoration: underline; }
.step-body { padding: 1rem 1.1rem; }
.done-tick { width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--green) var(--tick-white) center / 70% no-repeat; flex: none; }
.step-head .todo { font-size: .78rem; font-weight: 400; color: #3b4f72; }

/* ---------- selection controls: a tick that shows grey on mouse over and green when chosen ---------- */

.tick { display: block; position: relative; width: 100%; min-height: 1.7rem; cursor: pointer; margin: 0; }
.tick input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.tick span { position: absolute; inset: 0; background: transparent center / 1.2rem no-repeat; }
.tick:hover span { background-image: var(--tick-grey); background-color: #eef3fb; }
.tick input:checked + span { background-image: var(--tick-green); background-color: var(--ac-bg); }
.tick input.v-wt:checked + span { background-color: var(--wt-bg); }
.tick input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: -2px; }
.tick.disabled { opacity: .5; cursor: default; }
/* Last semester's choice: a grey tick until the teacher ticks it again. */
.tick.was input:not(:checked) + span { background-image: var(--tick-grey); }
.prev-key { display: inline-flex; align-items: center; gap: .35rem; margin-left: 1rem; font-size: .85rem; color: var(--ink-soft); }
.semester-choices .btn { margin-right: .75rem; min-width: 19rem; }
.prev-tick { display: inline-block; width: 1.1rem; height: 1.1rem; background: var(--tick-grey) center / 1rem no-repeat; }

/* Tick tables: achievement, effort, general-comment categories. Sized to their
   content and left aligned; the white space on the right is intended. */
table.tick-table {
    border-collapse: separate; border-spacing: 0; width: auto; min-width: 20rem; font-size: .88rem;
    border: 1px solid var(--grid-line); border-radius: var(--radius); overflow: hidden;
}
table.tick-table th, table.tick-table td { border-bottom: 1px solid var(--grid-line); border-right: 1px solid var(--grid-line); padding: .15rem .6rem; text-align: center; }
table.tick-table tbody tr:last-child td { border-bottom: 0; }
table.tick-table th:last-child, table.tick-table td:last-child { border-right: 0; }
table.tick-table td:has(> .tick) { padding: 0; width: 5.5rem; }
table.tick-table th { font-weight: 600; font-size: .78rem; color: var(--ink-soft); background: var(--lav); padding: .3rem .6rem; }
table.tick-table th.row, table.tick-table td.row { text-align: left; white-space: nowrap; padding-right: 1.5rem; }
table.tick-table.hi tr:has(input:checked) td.row { background: var(--ac-bg); }
table.tick-table.borderless th, table.tick-table.borderless td { border-color: var(--line); }

/* ---------- the indicator grid: one card per strand ---------- */

.ind-grid { border: 1px solid var(--grid-line); border-radius: var(--radius-lg); margin-bottom: 1rem; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-card); }
.ind-grid table { width: 100%; border-collapse: collapse; }
.ind-grid thead th { padding: .45rem .8rem; text-align: left; background: var(--head-bg); color: var(--head-ink); font-weight: 700; }
.ind-grid thead th.strand { font-size: 1.05rem; }
.ind-grid thead th.strand .sub { display: block; font-size: .78rem; font-weight: 400; color: var(--ink-soft); }
.ind-grid thead th.strand .done-tick { display: inline-block; vertical-align: middle; margin-left: .4rem; width: 1.15rem; height: 1.15rem; }
.ind-grid thead th.col { width: 5.5rem; text-align: center; font-size: .74rem; font-weight: 600; line-height: 1.15; padding: .35rem .3rem; }
.ind-grid thead th.col.ac { background: var(--ac-bg); color: var(--green-dark); }
.ind-grid thead th.col.wt { background: var(--wt-bg); color: #8a5a00; }
.ind-grid thead th.col::before { content: ""; display: block; width: 1.1rem; height: 1.1rem; margin: 0 auto .15rem; border-radius: 50%; }
.ind-grid thead th.col.ac::before { background: var(--green) var(--tick-white) center / 70% no-repeat; }
.ind-grid thead th.col.wt::before { background: var(--orange) var(--tick-white) center / 70% no-repeat; }
.ind-grid tr.outcome td { padding: .28rem .8rem; background: var(--lav-deep); color: var(--ink); font-weight: 700; font-size: .85rem; border-top: 1px solid var(--grid-line); }
.ind-grid tr.outcome .code { color: var(--blue-text); margin-right: .5rem; }
.ind-grid tr.ind td { padding: 0 .8rem; border-top: 1px solid var(--grid-line); font-size: .88rem; line-height: 1.3; }
.ind-grid tr.ind td.text { padding: .22rem .8rem; }
.ind-grid tr.ind td.pick { text-align: center; border-left: 1px solid var(--grid-line); width: 5.5rem; padding: 0; }
.ind-grid tr.ind:hover td.text { background: #f7f9fd; }
.ind-grid tr.ind:has(input.v-ac:checked) td.text { background: #f4fbf6; }
.ind-grid tr.ind:has(input.v-wt:checked) td.text { background: #fffaf0; }
.ind-grid .tag { margin-left: .4rem; }
.ind-grid .v-no { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ind-grid.hidden { display: none; }

/* Stage buttons, then the strand cards */
.stagebar { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin-bottom: .7rem; }
.stagebar .lbl { font-weight: 700; color: var(--ink-soft); font-size: .88rem; margin-right: .25rem; }
.stagebtn {
    display: inline-block; padding: .32rem .9rem; border-radius: 999px;
    color: var(--ink); font-size: .85rem; font-weight: 600; text-decoration: none;
    background: var(--surface); border: 1px solid var(--line-strong);
}
.stagebtn:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.stagebtn.active { background: var(--blue); border-color: var(--blue); color: #fff; }

.strandbar { margin: 0 0 .9rem; padding: .8rem .9rem .9rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.strandbar h3 { margin: 0 0 .4rem; font-size: 1rem; }
.strandgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.2rem, 1fr)); gap: .45rem; }
.strandbtn {
    position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between;
    min-height: 3.9rem; padding: .4rem .5rem; border-radius: 8px;
    color: var(--ink); font-size: .76rem; font-weight: 500; line-height: 1.2; text-align: left;
    text-decoration: none; background: var(--surface); border: 1px solid #1f2937;
}
.strandbtn .nm { padding-right: 1.1rem; }
.strandbtn .sel { margin-top: .25rem; padding: 0 .45rem; border-radius: 999px; font-size: .68rem; font-weight: 600; color: var(--green-dark); background: var(--green-bg); }
.strandbtn .done-tick { position: absolute; top: .3rem; right: .3rem; width: 1rem; height: 1rem; }
.strandbtn:hover { border-color: var(--blue); text-decoration: none; }
.strandbtn.active { border: 2px solid var(--sky); background: var(--blue-soft); padding: calc(.4rem - 1px) calc(.5rem - 1px); }

/* Modal for the custom indicator form */
.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: 4rem 1rem; background: rgba(15, 23, 42, .45); }
.modal:target { display: flex; }
.modal .step { width: 100%; max-width: 44rem; margin: 0; box-shadow: var(--shadow-md); }
.modal .step-head .close { margin-left: auto; color: var(--ink-soft); background: none; border: 0; font: inherit; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.gridtools { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.info-icon { display: inline-block; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; text-align: center; line-height: 1.2rem; font-size: .8rem; font-style: italic; font-family: Georgia, serif; }
.rule { color: var(--ink-soft); font-size: .85rem; }

/* Sticky save bar for long grids */
.savebar {
    position: sticky; bottom: 0; z-index: 10;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    margin-top: 1rem; padding: .8rem 1.1rem;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-lg); box-shadow: 0 -4px 16px rgba(15, 23, 42, .08);
}

.savebar > .muted { flex: 1; min-width: 0; }
.savebar .actions { flex: none; flex-wrap: nowrap; }

/* Loading overlay (busy.js): blocks clicks at once, fades in after a short pause */
.busy { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 1rem;
    background: rgba(244, 246, 250, .55); backdrop-filter: blur(1.5px);
    animation: busy-in .2s ease .15s both; }
.busy[hidden] { display: none !important; }
.busy-box { display: flex; align-items: center; gap: .9rem; max-width: 26rem;
    padding: 1rem 1.3rem; background: var(--surface); border: 1px solid var(--line);
    border-radius: 14px; box-shadow: var(--shadow-md); }
.busy-text { font-weight: 700; color: var(--ink); }
.busy-hint { font-size: .85rem; color: var(--ink-soft); }
.busy-hint:empty { display: none; }
.busy-spin { width: 1.6rem; height: 1.6rem; flex: none; border-radius: 50%;
    border: 3px solid var(--blue-soft); border-top-color: var(--sky); animation: busy-spin .8s linear infinite; }
@keyframes busy-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes busy-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .busy-spin { animation-duration: 2.4s; } .busy { animation: none; } }

/* Subscription details */
table.details { border-collapse: collapse; }
table.details th, table.details td { text-align: left; padding: .35rem 1rem .35rem 0; border-bottom: 1px solid #edf0f6; vertical-align: top; }
table.details td { overflow-wrap: break-word; }
/* My Subscription: a wider details box, so a long e-mail address stays on one line */
.classws.subws { grid-template-columns: minmax(26rem, 42%) minmax(0, 1fr); }
table.details th { color: var(--ink-soft); font-weight: 600; white-space: nowrap; }
table.details tr:last-child > * { border-bottom: 0; }
.status { display: inline-block; padding: .05rem .55rem; border-radius: 999px; font-weight: 700; font-size: .85rem; }
.status.ok { background: var(--green-bg); color: var(--green-dark); }
.status.stop { background: var(--red-bg); color: var(--red-text); }
.classws > div > .card + .card { margin-top: 1rem; }

/* ---------- comment page: four tabs, one panel at a time ---------- */

.hub { display: grid; grid-template-columns: 11.5rem minmax(0, 1fr); gap: .9rem; align-items: start; }
/* Inside the tab the grid has less width: smaller stage buttons keep them on one
   line, and narrower strand cards keep the strands to two rows. */
.hub .stagebar { gap: .25rem; }
.hub .stagebtn { padding: .22rem .5rem; font-size: .8rem; }
.hub .strandgrid { grid-template-columns: repeat(auto-fill, minmax(6.2rem, 1fr)); gap: .35rem; }
.hub .strandbtn { font-size: .72rem; padding: .35rem .4rem; }
/* The "N selected" pill says it already; the corner badge would cover long words here. */
.hub .strandbtn .done-tick { display: none; }
.hub .strandbtn .nm { padding-right: 0; }
.hubtabs { display: flex; flex-direction: column; gap: .4rem; position: sticky; top: .75rem; }
.hubtab {
    display: flex; align-items: center; gap: .5rem; width: 100%; text-align: left; cursor: pointer;
    padding: .75rem .6rem; font: inherit; font-size: .88rem; font-weight: 600; color: var(--ink-soft);
    background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: var(--radius);
}
.hubtab .lbl { flex: 1; white-space: nowrap; }
/* Ticked indicators and chosen improvements: the number in a green circle */
.hubtab .count {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    min-width: 1.35rem; height: 1.35rem; padding: 0 .3rem; border-radius: 999px;
    font-size: .72rem; font-weight: 700; color: #fff; background: var(--green);
}
.hubtab .done-tick { width: 1.1rem; height: 1.1rem; }
.hubtab:hover { border-color: var(--head-line); color: var(--ink); }
.hubtab.active { background: var(--head-bg); border-color: var(--head-line); border-left-color: var(--sky); color: var(--head-ink); }
.hubpanels { min-width: 0; }
.hub .savebar a.btn.secondary { display: none; }
#indicatorHost .ind-root > .stagebar:first-child, #indicatorHost .ind-root > p:first-child { margin-top: 0; }

/* Comment options as a row of small toggles */
.optrow { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 0 0 .6rem; }
.optrow .optlbl { font-weight: 700; font-size: .85rem; color: var(--ink-soft); margin-right: .2rem; }
.opt {
    display: inline-flex; align-items: center; gap: .35rem; cursor: pointer;
    padding: .25rem .6rem; font-size: .84rem; font-weight: 600; color: var(--ink-soft);
    background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px;
}
.opt input { margin: 0; }
.opt:has(input:checked) { background: var(--pastel); border-color: var(--pastel-line); color: var(--pastel-ink); }

/* ---------- class setup: details on the left (about 28%), students on the right ---------- */

.classws { display: grid; grid-template-columns: minmax(16rem, 28%) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.classpane { position: sticky; top: .75rem; }
.addzone { border-top: 1px solid var(--line); }
.addone > summary { list-style: none; cursor: pointer; width: fit-content; }
.addone > summary::-webkit-details-marker { display: none; }
.addone[open] > summary { margin-bottom: .8rem; }
.addform { max-width: 34rem; padding: .2rem 0 1rem; }
.pasteform { margin-top: 1rem; max-width: 40rem; }
.pasteform h3 { margin-top: 0; }

/* Improvement lists: long ones fold; the button sits under the last visible row */
table.pick-list tr.more-row td { background: var(--lav); padding: .3rem .6rem; }
table.pick-list tr.more-row .linkish { font-weight: 600; text-decoration: none; }

/* ---------- the comment editor with its side buttons ---------- */

.editor { display: grid; grid-template-columns: minmax(0, 1fr) 4rem; gap: .6rem; align-items: start; }
.editor textarea { min-height: 12rem; border-color: var(--line-strong); font-size: .95rem; }
.editor-meta {
    display: flex; justify-content: space-between; align-items: center;
    gap: 1rem; margin-top: .35rem; font-size: .85rem; color: var(--ink-soft);
}
.editor-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .35rem; }
.editor-head .name { color: var(--ink); font-weight: 700; font-size: 1rem; }
.editor-head .count { font-size: .85rem; color: var(--ink-soft); }
.counter.over { color: var(--red-text); font-weight: 700; }
.side-icons { display: flex; flex-direction: column; gap: .35rem; }
.side-icons button {
    width: 4rem; padding: .35rem 0 .25rem; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; gap: .1rem;
    font: inherit; font-size: .68rem; font-weight: 600; color: var(--ink);
    background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius);
}
.side-icons button:hover { border-color: var(--blue); color: var(--blue); }
.side-icons button.gen { color: #fff; background: var(--green); border-color: var(--green); }
.side-icons button.gen:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.side-icons button[disabled] { opacity: .45; cursor: not-allowed; }
.side-icons svg { width: 1.3rem; height: 1.3rem; display: block; }
.instruction { color: var(--ink-soft); font-size: .85rem; margin: 0 0 .5rem; }

/* Teacher-authored indicators and improvements */
.tag {
    display: inline-block; margin-left: .4rem; padding: 0 .35rem;
    font-size: .68rem; font-weight: 700; letter-spacing: .03em;
    color: var(--blue-text); background: var(--blue-soft); border: 1px solid #c5d8f8; border-radius: 3px; vertical-align: .1em;
}
.linkish.danger { color: var(--red-text); margin-left: .4rem; font-size: .78rem; }
.own-improvement { margin-top: 1rem; padding-top: .8rem; border-top: 1px dashed var(--line-strong); }
.own-improvement .field { max-width: 34rem; }

/* Improvement / option lists as tick rows */
table.pick-list { width: auto; min-width: 24rem; max-width: 100%; border-collapse: collapse; font-size: .88rem; border: 1px solid var(--grid-line); }
table.pick-list td { padding: .15rem .6rem; border-bottom: 1px solid var(--grid-line); }
table.pick-list td.pick { width: 3.2rem; text-align: center; border-right: 1px solid var(--grid-line); padding: 0; }
table.pick-list tr:last-child td { border-bottom: 0; }
table.pick-list tr:has(input:checked) td:not(.pick) { background: #f4fbf6; }
table.pick-list tr:hover td:not(.pick) { background: #f7f9fd; }

/* Rewriting assistant */
.assist { margin-top: 1rem; padding: .7rem .9rem; border-radius: var(--radius); background: var(--lav); border: 1px solid var(--lav-line); }
.assist-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .6rem; margin-bottom: .6rem; }
.assist-head strong { color: var(--ink); }
.assist ul.error { display: block; margin-bottom: .8rem; padding-left: 2rem; }
.assist ul.error li { margin: .15rem 0; }
.assist .actions label { font-weight: 400; }
.btn.variety { background: #7c3aed; border-color: #7c3aed; }
.btn.variety:hover { background: #6d28d9; border-color: #6d28d9; }

/* Public demo */
.demo-who { display: flex; flex-wrap: wrap; gap: 1rem; }
.demo-who .field { flex: 1 1 12rem; margin-bottom: 0; }
.demo-result { border-color: var(--green); }
.demo-comment {
    font-size: 1rem; line-height: 1.7; padding: .8rem 1rem; border-radius: var(--radius);
    background: #fffef2; border: 1px solid #ece6a8;
}

/* Licence state, signup and roster editing */
.bar {
    display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; justify-content: center;
    padding: .45rem 1.25rem; font-size: .9rem; border-bottom: 1px solid transparent;
}
.bar-warn { background: var(--amber-bg); color: var(--amber); border-bottom-color: #f0d9a3; }
.bar-stop { background: var(--red-bg); color: var(--red-text); border-bottom-color: #f1c3be; }
.bar-warn .btn { background: var(--orange); border-color: var(--orange); }
.bar-stop .btn { background: var(--red); border-color: var(--red); }

.two-up { display: flex; flex-wrap: wrap; gap: 1rem; }
.two-up .field { flex: 1 1 12rem; }
.fieldnote { display: block; margin-top: .2rem; font-size: .8rem; color: var(--red-text); }

.pricebox {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
    margin: 1rem 0 .6rem; padding: .8rem .9rem; background: var(--lav); border: 1px solid var(--lav-line); border-radius: var(--radius);
}
.pricebox-amount { font-size: 1.8rem; font-weight: 700; color: var(--ink); }

form.pronouns { display: inline-flex; gap: .2rem; }
.pronoun {
    padding: .1rem .45rem; font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer;
    color: var(--ink-soft); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 4px;
}
.pronoun:hover { background: var(--lav); }
.pronoun.on { background: var(--pastel); border-color: var(--pastel-line); color: var(--pastel-ink); }

/* Strand disclosure used by roster tools */
.strand { margin-bottom: .9rem; }
.strand summary {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .5rem .9rem; cursor: pointer; list-style: none; font-weight: 700; color: var(--ink);
    background: var(--blue-soft);
}
.strand summary::-webkit-details-marker { display: none; }
.strand summary::after { content: "▾"; transition: transform .15s ease; }
.strand[open] summary::after { transform: rotate(180deg); }
.strand .tally { font-size: .8rem; font-weight: 400; }
.outcome { padding: .5rem .9rem .9rem; }

/* ---------- report preview / print ---------- */
.report-name { font-size: 1.4rem; margin-bottom: .8rem; color: var(--ink); }
.report-block { margin-bottom: 1.2rem; }
.report-block h2 { font-size: .85rem; color: var(--blue-text); border-bottom: 1px solid var(--line); padding-bottom: .25rem; margin-bottom: .4rem; }
.report-block p { margin: 0; line-height: 1.7; }

@media print {
    .appbar, footer, .no-print, .subjects { display: none !important; }
    body { background: #fff; color: #000; font-size: 11pt; }
    main { margin: 0; padding: 0; max-width: none; }
    .card, .report-sheet { border: 0; background: #fff; }
    .card-body { padding: 0; }
    .report-block { break-inside: avoid; }
    .report-block h2 { color: #444; }
}

/* ---------- class progress matrix ---------- */
.progressbar { height: .45rem; margin: 0 0 1.1rem; overflow: hidden; background: #e6ebf2; border-radius: 999px; }
.progressbar span { display: block; height: 100%; background: var(--green); }
.card-body.tight { padding-bottom: .25rem; }
.legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; font-size: .8rem; }
.legend span { display: inline-flex; gap: .35rem; align-items: center; }
.legend .cell { pointer-events: none; flex: none; }
.matrix-scroll { overflow-x: auto; padding: 0 .9rem .9rem; }
/* Sized to its content and left aligned: the subject columns stay close together. */
table.grid.matrix { width: auto; min-width: 0; border-collapse: separate; border-spacing: 0; border: 1px solid var(--grid-line); }
table.matrix th, table.matrix td { border-bottom: 1px solid var(--grid-line); border-right: 1px solid var(--grid-line); }
table.matrix tr > :last-child { border-right: 0; }
table.matrix tbody tr:last-child > *, table.matrix tfoot tr:last-child > * { border-bottom: 0; }
table.matrix th.col {
    height: 8.5rem; width: 2.4rem; min-width: 2.4rem; padding: .4rem .15rem; vertical-align: bottom;
    font-size: .78rem; font-weight: 700; white-space: nowrap; color: var(--ink);
    text-transform: none; letter-spacing: 0; background: var(--lav); text-align: center;
}
table.matrix th.col span { display: block; margin: 0 auto; writing-mode: vertical-rl; transform: rotate(180deg); max-height: 8rem; overflow: hidden; text-overflow: ellipsis; }
table.matrix td.cellcell { width: 2.4rem; padding: .2rem; text-align: center; }
table.matrix td.num, table.matrix th.num { width: 3.6rem; padding: .2rem .5rem; }
table.matrix .stick { position: sticky; left: 0; z-index: 1; background: var(--surface); text-align: left; font-weight: 400; white-space: nowrap; text-transform: none; letter-spacing: 0; font-size: .88rem; color: var(--ink); }
table.matrix thead .stick, table.matrix tfoot .stick { background: var(--lav); font-weight: 700; }
table.matrix tbody tr:hover .stick { background: #f7f9fd; }
table.matrix tfoot td { font-weight: 700; background: var(--lav); }
table.matrix .all-done { color: var(--green-dark); }

/* Progress squares: a green-bordered tick means written */
.cell {
    display: inline-block; width: 1.5rem; height: 1.5rem; position: relative; vertical-align: middle;
    border: 2px solid var(--line-strong); border-radius: 4px; background: var(--surface); text-decoration: none;
}
.cell:hover { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue-soft); }
.cell:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.cell.done { background: var(--green-bg) var(--tick-green) center / 80% no-repeat; border-color: var(--green); }
.cell.started { background: var(--yellow-hi); border-color: var(--orange); }
.cell.started::after { content: ""; position: absolute; left: .38rem; top: .38rem; width: .5rem; height: .5rem; border-radius: 50%; background: var(--orange); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
    main { margin-top: .9rem; padding: 0 .75rem; }
    .appbar-inner { padding: .3rem .75rem; gap: .5rem; }
    .appnav a, .appnav button { padding: .45rem .6rem; }
    .appbar-inner > nav.appnav:first-of-type { order: 5; width: 100%; overflow-x: auto; }
    .ws, .classws, .subws, .hub { grid-template-columns: 1fr; }
    .hubtabs { position: static; flex-direction: row; flex-wrap: wrap; }
    .hubtab { width: auto; flex: 1 1 9rem; }
    .classpane { position: static; }
    .subjects { position: static; display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
    .subjects h2, .subjects .student { width: 100%; margin-bottom: .2rem; }
    .subjects .divider { display: none; }
    .sbtn { margin: 0; flex: 1 1 7rem; }
    .sbtn.gc, .sbtn.rc { margin-top: 0; }
    .editor { grid-template-columns: 1fr; }
    .side-icons { flex-direction: row; flex-wrap: wrap; }
    table.grid th, table.grid td { padding: .4rem .5rem; }
    .card-head { flex-wrap: wrap; }
    .ind-grid thead th.col, .ind-grid tr.ind td.pick { width: 4rem; }
}

.card-head .actions { flex-wrap: nowrap; }
.card-head input[type="search"] { width: 14rem; }

/* Trial: the end of each comment is held back until a licence is bought. */
.locked-note { color: #8a5a00; font-weight: 600; }
