/* Tutor dashboard (tutor/dashboard.html): the page's own styles, moved out of the page on October 23, 2026 so
   browsers keep them (everything under /assets/ is kept for a year, site/_headers); linked at the same spot. */
  /* Page layout and page-only pieces. Tabs, tables, fields, buttons and
     status tags come from styles.css. Tokens only, so light and dark both work. */
  /* A phone's pull down at the top of the page doesn't reload the dashboard (Chrome on Android), so nothing typed is
     lost to a pull by mistake (November 4, 2026). Only here: the public pages keep the browser's own pull. */
  html, body{overscroll-behavior-y:contain;}
  .dash{padding-block:28px 72px;}
  .dash-title{font-size:clamp(2rem, 3.8vw, 2.875rem); font-weight:300; line-height:1.02; letter-spacing:-0.035em; margin:0;}
  @media (max-width:600px){ #tutor-name-nav{display:none;} .topnav{position:static;} }

  /* The tab buttons, panels, headings (.section-title) and phone tables come
     from styles.css (Dashboards): a 2-a-row grid on phones, the five tabs in
     one row on tablets, a menu down the left side on computers. */
  .dash-tabs{--dash-cols-md:3;}
  /* On computers the page's script puts the menu right after the numbers in the page's order, so Tab reaches it before
     the notices (tutor-dashboard.js placeMenu, audit focus-taps-06): it stays the left column all the same. */
  @media (min-width:1024px){ main.dash > .dash-nav{grid-column:1;} }

  /* Jumps to a panel stop just under the bar: the page’s scroll padding
     (styles.css) already makes room, so no extra margin here */
  section.panel{margin-bottom:40px;}
  /* Sections that follow each other without a card (job offers, upcoming
     sessions, late pick-ups) each start on a hairline */
  .tab-panel > section.panel:not(.card) + section.panel:not(.card){padding-top:28px; border-top:1px solid var(--line);}
  .card.panel{padding:22px 24px;}
  @media (max-width:560px){ .card.panel{padding:18px 16px;} }

  /* Notices: a flat fill. Words carry the meaning.
     The raised fill (--sage) = a to-do, error-soft = a problem. A heads-up
     ("You’re away") is the raised fill with a thin warm edge and a warm title,
     so it sits on the same maroon (or paper) as the panel under it. */
  .notice{border-color:transparent;}
  .notice-warn{background:var(--raise-2); box-shadow:inset 0 0 0 1px var(--warn);}
  .notice-warn > b{color:var(--warn);}
  .notice-error{background:var(--error-soft);}
  /* The to-dos at the top (Tutor Terms, recaps, Finish setting up, the survey) are one group (November 15, 2026): 16px
     between them, and the usual 40px after the last one shown, so the first heading or card under them sits as far
     below whichever notice comes last (the survey notice used to leave only 24px) */
  main.dash > section.notice{margin-bottom:16px;}
  main.dash > section.notice:not(:has(~ section.notice:not([hidden]))){margin-bottom:40px;}
  /* While Surveys is open its notice isn't shown (below, "Go to Surveys"), so the notice before it is the last one */
  main.dash:has(#tab-surveys.active) > section.notice:not(:has(~ section.notice:not([hidden], #survey-notice))){margin-bottom:40px;}
  .setup-items{display:grid; gap:2px; font-size:0.9375rem;}
  .setup-item{display:flex; align-items:center; gap:10px; min-height:40px;}
  @media (max-width:720px), (pointer:coarse){ .setup-item a{display:inline-block; padding-block:11px;} }   /* a 44px tap on each link */
  .setup-box{flex:none; display:grid; place-items:center; width:22px; height:22px; border:1.5px solid var(--ink-3); border-radius:var(--r-check); background:var(--field-bg);}
  .setup-item.is-optional .setup-box{border-width:1px; border-color:var(--on-sage-2);}   /* optional: a lighter edge (and the word "optional") */
  .setup-item.is-done .setup-box{border-color:transparent; background:transparent;}

  /* Job offers */
  .offer{padding:16px 18px;}
  .offer-pay{font:500 1.25rem/1.2 var(--f); letter-spacing:-0.01em; color:var(--ink); font-variant-numeric:tabular-nums; white-space:nowrap;}
  .offer-pay small{font:400 0.875rem/1 var(--f); letter-spacing:0; color:var(--ink-2);}
  /* The pay stays top right on every offer (November 15, 2026): the tags wrap beside it instead of pushing it onto a
     line of its own, as a weekly or cover offer's two tags did on a phone */
  .offer-tags{flex:1 1 auto; min-width:0;}
  .offer-pay{flex:none;}
  .offer-meta{margin-top:10px; font-size:0.9375rem; line-height:1.7;}
  .offer-meta b{font-weight:500;}
  .offer-tag{display:inline-flex; align-items:center; min-height:24px; padding:1px 8px; border:1px solid var(--line-2); border-radius:var(--r-tag); font-size:0.875rem; font-weight:500; line-height:1.3; color:var(--ink-2);}
  .offer-actions{display:flex; flex-wrap:wrap; gap:8px; margin-top:14px;}

  /* Upcoming sessions: a wide table on computers, one small block per row on phones and tablets */
  tr.has-last td{border-bottom:none;}
  tr.lasttime-row td{padding:0 12px 14px;}
  .lasttime, .parent-note{max-width:min(640px, calc(100vw - 80px)); padding:9px 12px; background:var(--sunk); border-radius:var(--r-field); font-size:0.875rem; line-height:1.5;}
  .lasttime-head, .parent-note-head{font-weight:500; color:var(--ink);}
  .lasttime-notes, .parent-note-text{white-space:pre-line; overflow-wrap:anywhere;}
  /* The parent’s note (migration 054) and "Last time" can share a row */
  tr.lasttime-row td > * + *{margin-top:8px;}
  .offer .parent-note{margin-top:12px;}
  .contact{margin-top:2px; font-size:0.875rem; color:var(--ink-2);}
  .contact a{white-space:nowrap;}   /* a phone number never splits over two lines */
  /* A long name with no spaces (the student's or the parent's) breaks inside the cell, so it never pushes the Upcoming
     sessions table wider than its box on a computer (that table has no Tab stop to scroll it, dashboard.html) */
  .stack-table td[data-label="Student"]{overflow-wrap:anywhere;}
  /* Phones and touch screens: a 44px tap on the number (DESIGN.md, Tap targets); the extra height is taken back by the
     margins, so the line and the card stay the size they were */
  @media (max-width:720px), (pointer:coarse){ .contact a{display:inline-block; padding-block:12px; margin-block:-12px;} }
  #upcoming-title{margin-bottom:12px;}   /* the same room above the table as Job offers has above its cards (November 15, 2026) */
  .section-title[tabindex="-1"]:focus{outline:none;}   /* focused by the page after a list redraws, not by the tutor */
  .error-text[tabindex="-1"]:focus{outline:none;}      /* the same for an error line brought into view (showErrorLine) */
  /* The recap box: on a short screen its buttons stay at the bottom of the box while the boxes above scroll, so
     Send recap is never below the edge. The bar covers the card's own bottom padding (22px) with its own ground, which
     starts clear at its top edge, so the words going under it fade rather than stop at a line. */
  #recap-modal .modal-actions{position:sticky; bottom:-22px; margin:2px -22px -22px; padding:24px 22px 22px;}
  /* The two actions sit side by side and wrap when the column is narrow.
     Buttons never break inside; the grey notes may, so the table fits. */
  .row-actions{min-width:132px;}
  .row-actions > *{margin:3px 8px 3px 0; vertical-align:middle;}
  .row-actions .btn{white-space:nowrap;}
  .row-note{display:inline-block; font-size:0.875rem; line-height:1.4; color:var(--ink-2); text-wrap:pretty;}
  td.empty-cell{padding:20px 16px; font:400 0.9375rem/1.5 var(--f); color:var(--ink-2);}
  /* "No job offers right now.": no rule under it, the next section's own line is right below (two rules never sit one
     above the other with nothing between them, DESIGN.md). Since November 15, 2026 no rule above it either: right under
     the heading it read as an underline no other heading has; it is a plain line under the title */
  #offers-list > .empty{border-block:0; padding-block:2px 4px;}
  /* A table with nothing in it (no upcoming sessions, no earlier pay) shows its one line without the column headings
     over it (November 15, 2026). Not while it loads (its body is aria-busy while it shows placeholder bars,
     dash-common.js watchPlaceholders), so the headings don't come and go as it fills in */
  main.dash table:has(> tbody:not([aria-busy="true"]) > tr:only-child > td.empty-cell) > thead{display:none;}
  /* Phones, tablets (iPads both ways up) and small laptops, where the menu
     takes the left side: one block per session, so the status and the
     buttons are never pushed off the side of the card. Up to 1399px (round 2,
     tutor-a-05): between 1280 and about 1400 the table's Student column was
     125px, so the parent line broke over 3 or 4 lines */
  @media (max-width:1399px){
    .stack-table thead{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap;}
    .stack-table, .stack-table tbody, .stack-table tr, .stack-table td{display:block; width:100%;}
    .stack-table tr{padding:12px 16px 14px; border-bottom:1px solid var(--line);}
    .stack-table tr:last-child{border-bottom:0;}
    .stack-table tr.has-last{padding-bottom:6px; border-bottom:0;}
    .stack-table tr.lasttime-row{padding-top:0;}
    .stack-table td, .stack-table tbody tr:last-child > td{padding:3px 0; border:0;}
    .stack-table td[data-label]{display:grid; grid-template-columns:76px minmax(0, 1fr); gap:10px; align-items:baseline;}
    .stack-table td[data-label]::before{content:attr(data-label); font-size:0.875rem; font-weight:500; color:var(--ink-3);}
    .stack-table td.row-actions{display:flex; flex-wrap:wrap; align-items:center; gap:8px 20px; min-width:0; padding-top:10px;}
    .stack-table td.row-actions > *{margin:0;}
    .stack-table tbody tr:hover > td{background-color:transparent;}
    .stack-table td.empty-cell{padding:8px 0;}
    .stack-table tr.lasttime-row td{padding:0;}
    .lasttime, .parent-note{max-width:none;}
  }
  /* Small laptops only (1280 to 1399px): the block has room for two columns, so it stays about as short as a table row
     was (when, who on the left; grade, subject, place, status on the right; the buttons under both) */
  @media (min-width:1280px) and (max-width:1399px){
    .stack-table tr[data-zv-key]{display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); column-gap:32px;}
    .stack-table tr[data-zv-key] > td[data-label="Date"]{grid-area:1 / 1;}
    .stack-table tr[data-zv-key] > td[data-label="Time"]{grid-area:2 / 1;}
    .stack-table tr[data-zv-key] > td[data-label="Student"]{grid-area:3 / 1 / span 2;}
    .stack-table tr[data-zv-key] > td[data-label="Grade"]{grid-area:1 / 2;}
    .stack-table tr[data-zv-key] > td[data-label="Subject"]{grid-area:2 / 2;}
    .stack-table tr[data-zv-key] > td[data-label="Place"]{grid-area:3 / 2;}
    .stack-table tr[data-zv-key] > td[data-label="Status"]{grid-area:4 / 2;}
    .stack-table tr[data-zv-key] > td.row-actions{grid-area:5 / 1 / auto / -1;}
  }
  /* Phones (round 2, tutor-a-09): "Recap opens 5 min before the end" only on the session's own day (tutor-dashboard.js
     marks the others not-today), and the Date and the Time on one line (the time without its label, right after the
     date). A time that doesn't fit beside a long date wraps to its own line by itself. */
  /* Since November 15, 2026 at every width: on a computer's wide table the note sat on every row, and its column
     squeezed Place so a library's two-word name broke over two lines */
  .row-note.not-today{display:none;}
  @media (min-width:1400px){ .stack-table td[data-label="Place"]{white-space:nowrap;} }
  @media (max-width:720px){
    .stack-table tr[data-zv-key]{display:flex; flex-wrap:wrap; column-gap:14px;}
    .stack-table tr[data-zv-key] > td{flex:1 1 100%; min-width:0;}
    .stack-table tr[data-zv-key] > td[data-label="Date"]{flex:0 1 auto; width:auto;}
    .stack-table tr[data-zv-key] > td[data-label="Time"]{flex:0 1 auto; width:auto; display:block;}
    .stack-table tr[data-zv-key] > td[data-label="Time"]::before{display:none;}
  }

  /* Month at a glance: the shared calendar look (soft tint, 10px corners, a small
     press; picked = 2px ink edge). Since November 2026 (founder) a day with a session has no fill of its own: its marks
     say it (a small book in person, the monitor online, a dot on a free day), with no legend under the title. */
  .month-head{display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px; margin-bottom:12px;}
  .month-nav{display:flex; align-items:center; gap:6px;}
  #month-label{min-width:140px; text-align:center; font:500 1.0625rem/1.2 var(--f); letter-spacing:-0.01em;}
  .month-grid{display:grid; grid-template-columns:repeat(7, minmax(0, 1fr)); gap:4px;}
  .month-grid .dow-label{padding:2px 0 6px; text-align:center; color:var(--ink-3); font:500 0.875rem/1 var(--f);}
  /* Each day's number sits at the top of its day (November 15, 2026): centred, a day with a name and a mark had its
     number about 20px higher than a plain day beside it, so the numbers of a week didn't line up */
  .month-cell{
    position:relative; min-height:68px; margin:0; padding:6px 4px;
    display:flex; flex-direction:column; align-items:center; justify-content:flex-start; gap:5px;
    background:var(--btn2-bg); border:1px solid var(--line-2); border-radius:var(--r-btn-sm);
    color:var(--ink); font:400 1rem/1 var(--f); font-variant-numeric:tabular-nums; text-align:center; cursor:pointer;
    transition:background-color 120ms ease, border-color 120ms ease, transform 160ms var(--ease-out);
  }
  @media (hover:hover) and (pointer:fine){ button.month-cell:not(.picked):hover{border-color:var(--ink);} }
  button.month-cell:active{transform:scale(.97);}
  button.month-cell::before{content:""; position:absolute; inset:-3px;}   /* the tap area reaches into the 4px gaps, like the shared calendar days */
  .month-cell.blank{background:transparent; border-color:transparent; cursor:default;}
  .month-cell.past{background:transparent; border-color:transparent; color:var(--ink-3); cursor:default;}
  .month-cell.today .daynum{font-weight:500; text-decoration:underline 1px currentColor; text-underline-offset:4px;}
  .month-cell .dot{width:5px; height:5px; border-radius:50%; background:var(--ink);}
  .month-cell.none .dot{display:none;}
  .month-cell .who{max-width:100%; padding:0 3px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font:500 0.875rem/1.2 var(--f);}
  .month-cell .marks{display:inline-flex; align-items:center; gap:4px; line-height:0;}
  .month-cell :is(.omk, .pmk){display:inline-flex; line-height:0;}
  .month-cell .marks svg{width:15px; height:15px;}
  .month-cell.picked{border:2px solid var(--ink); padding:5px 3px;}
  .month-cell.picked .daynum{font-weight:500;}
  @media (max-width:560px){
    .month-cell{min-height:44px; padding:4px 2px; gap:4px;}
    .month-cell.picked{padding:3px 1px;}
    .month-cell .who{position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip:rect(0 0 0 0);}
  }
  #month-day-detail{margin-top:14px; font-size:0.9375rem;}
  /* Online sessions (founder, October 15, 2026): a small monitor drawn like the other icons, never colour alone.
     Beside the word "Online" it is decoration; on its own it carries the name. */
  .online-tag{display:inline-flex; align-items:center; gap:6px; color:var(--ink); vertical-align:bottom;}
  /* In the sessions table a narrow Location column can wrap "Online (Google Meet)": the monitor stays on the first line, beside "Online" */
  .stack-table .online-tag{align-items:flex-start;}
  .stack-table .online-tag .online-mark{margin-top:3px;}
  .online-mark, .place-mark{width:16px; height:16px; flex:none; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round;}
  .online-after{display:inline-flex; margin-left:6px; vertical-align:-3px;}
  .day-session{display:flex; justify-content:space-between; flex-wrap:wrap; gap:4px 12px; padding:9px 12px; background:var(--sage); color:var(--on-sage); border-radius:var(--r-field);}
  .day-session .muted{color:var(--on-sage-2);}
  .day-session b{font-weight:500; font-variant-numeric:tabular-nums;}
  .time-chip{display:inline-flex; align-items:center; min-height:30px; padding:3px 10px; background:transparent; border:1px solid var(--line-2); border-radius:var(--r-btn-sm); font:400 0.9375rem/1.2 var(--f); font-variant-numeric:tabular-nums; white-space:nowrap;}

  /* Weekly availability: the places to tick */
  .toggle-grid{display:grid; grid-template-columns:repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap:8px;}
  /* Four places (Online with the three libraries): four across, or two by two, never three with Online alone under
     them (audit tutor-b-10). Four across needs 4 x 190px and the gaps, 784px. */
  .field:has(> #avail-locations-grid){container-type:inline-size;}
  @container (388px <= width < 784px){
    #avail-locations-grid:has(> :nth-child(4):last-child){grid-template-columns:repeat(2, minmax(0, 1fr));}
  }
  .toggle-chip{
    display:flex; align-items:center; gap:10px; min-height:44px; margin:0; padding:8px 12px;
    background:transparent; border:1px solid var(--field-line); border-radius:var(--r-field);
    font-weight:400; font-size:0.9375rem; line-height:1.3; cursor:pointer;
    transition:background-color 120ms ease, border-color 120ms ease, transform 160ms var(--ease-out);
  }
  @media (hover:hover) and (pointer:fine){ .toggle-chip:hover{border-color:var(--ink);} }
  .toggle-chip:active{transform:scale(.98);}
  .toggle-chip:has(input:checked){background:var(--sage); color:var(--on-sage); border-color:var(--ink); box-shadow:inset 0 0 0 1px var(--ink);}
  /* Weekly availability: each day's times (tutor-dashboard.js renderHours; founder, November 3, 2026, in place of the
     grid of hours). One block a day: its name and Add a time on one line, its times under them (From and To, Remove),
     then Copy to other weekdays. Where the box is wider "From" is written before each time, and wider still (a
     computer) the name, Add a time and the times sit side by side, in that order: the order they are in the page, so the
     keyboard goes left to right and down, as they are seen. A line under a time says what to change, or a note (joined
     when saved, or online only after 5 PM on a weekend). */
  .hours-days{display:grid; container-type:inline-size;}
  .hours-day{display:grid; grid-template-columns:minmax(0, 1fr) auto; grid-template-areas:"name add" "list list" "copy copy" "msg msg";
    align-items:center; column-gap:12px; padding-block:12px; border-top:1px solid var(--line);}
  .hours-day:first-child{border-top:0; padding-top:0;}
  .hours-day:last-child{padding-bottom:0;}
  .hours-head{display:contents;}
  .hours-name{grid-area:name; color:var(--ink-3); font:500 0.9375rem/1.3 var(--f);}
  .hours-add{grid-area:add; justify-self:end; margin-right:-12px;}   /* its words line up with the times' right edge */
  .hours-add .i{width:18px; height:18px;}
  .hours-add[aria-disabled="true"]{opacity:.5;}   /* the day has its 5 times: a press says so (tutor-dashboard.js refreshAdd) */
  .hours-list{grid-area:list; display:grid; gap:10px; min-width:0;}
  .hours-list:has(.hours-range){margin-top:4px;}
  .hours-none{margin:0; color:var(--ink-3); font-size:0.9375rem;}
  .hours-copy{grid-area:copy; justify-self:start; margin:4px 0 0 -12px;}   /* its words line up with the times' left edge */
  /* While Copy fades in or up (founder, November 7, 2026; tutor-dashboard.js refreshCopyButtons), it sits in a fold for
     the half second (zvOpen and zvShut in dash-common.js): the fold takes its place under the times at every width,
     and the fold, not the button, sits 12px to the left, so nothing is cut off and its words don't move */
  .hours-day .zv-fold:has(> div > .hours-copy){grid-area:copy; justify-self:start; margin-left:-12px;}
  .hours-day .zv-fold > div > .hours-copy{margin-left:0;}
  /* Copy moving to another day: the one before is out of sight at once (never two on screen) while its space still
     folds shut with the new one's opening, so the days under both don't jump; this beats .zv-shut > div's fade */
  .hours-day .zv-fold.copy-unseen > div{opacity:0; transition:none;}
  .hours-day-msg{grid-area:msg; margin-top:6px;}
  .hours-day-msg:empty{display:none;}
  /* A time: [From] [to] [Remove], each dropdown as wide as half the line on a phone */
  .hours-range{display:grid; grid-template-columns:minmax(0, 1fr) auto minmax(0, 1fr) auto; align-items:center; gap:6px 8px;}
  .hours-word{color:var(--ink-2); font-size:0.9375rem;}
  .hours-range > .hours-word:first-child{display:none;}
  select.hours-sel{width:100%; min-width:0; min-height:36px; padding:6px 30px 6px 12px; border-radius:var(--r-btn-sm); font-size:1rem;
    background-position:right 11px center; font-variant-numeric:tabular-nums;}
  @media (max-width:720px), (pointer:coarse){ select.hours-sel{min-height:44px; padding-block:10px;} }   /* the time sits in the middle of the taller box */
  .hours-msg{grid-column:1 / -1; margin:0; font-size:0.9375rem; contain:inline-size;}   /* a long line wraps; it never widens the boxes above it */
  .hours-msg:empty{display:none;}
  .hours-note{display:flex; align-items:center; gap:6px; color:var(--ink-2);}
  @media (max-width:360px){ .hours-range{column-gap:6px;} select.hours-sel{padding-left:8px; padding-right:26px; background-position:right 8px center;} }   /* Radio Canada is a little wider: "11:45 AM" still fits */
  /* Below 360px (round 2, tutor-b-03) the two times need the room: the remove button goes under the To time, at the
     right, so a time never runs into its arrow (the time stays 16px, the button 44px) */
  @media (max-width:359.98px){
    .hours-range{grid-template-columns:minmax(0, 1fr) auto minmax(0, 1fr);}
    .hours-range > .hours-remove{grid-column:3; justify-self:end;}
  }
  /* A wider box (a tablet, a narrow window): the dropdowns keep one width, with "From" before them */
  @container (min-width:520px){
    .hours-range{grid-template-columns:auto 9.5rem auto 9.5rem auto minmax(0, 1fr); column-gap:10px;}   /* the last column: room for the line under it */
    .hours-range > .hours-word:first-child{display:inline;}
  }
  /* Wide enough for the day's name, Add a time and its times side by side (a computer) */
  @container (min-width:760px){
    .hours-day{grid-template-columns:8.5rem auto minmax(0, 1fr); grid-template-areas:"name add list" ". . copy" ". . msg"; align-items:start; column-gap:16px;}
    .hours-add{justify-self:start; margin:0 0 0 -12px;}   /* its words line up with the column's left edge */
    .hours-name{padding-top:8px;}
    .hours-none{padding-top:8px;}
    .hours-list:has(.hours-range){margin-top:0;}
  }
  /* The times' lists and What a session pays (#rate-pick) slide down as they open and back up as they close, over the
     site's half second (Chrome 135 and later, which draw the lit list; other browsers keep their own list) */
  @supports (appearance: base-select) {
    html[data-look="lamplight"] select.hours-sel::picker(select), html[data-look="lamplight"] #rate-pick::picker(select){
      opacity:0; translate:0 -8px; clip-path:inset(0 0 100% 0 round 14px);
      transition:opacity var(--motion) var(--ease-motion), translate var(--motion) var(--ease-motion), clip-path var(--motion) var(--ease-motion),
                 overlay var(--motion) allow-discrete, display var(--motion) allow-discrete;
    }
    html[data-look="lamplight"] select.hours-sel:open::picker(select), html[data-look="lamplight"] #rate-pick:open::picker(select){opacity:1; translate:0 0; clip-path:inset(0 0 0 0 round 14px);}
    @starting-style {
      html[data-look="lamplight"] select.hours-sel:open::picker(select), html[data-look="lamplight"] #rate-pick:open::picker(select){opacity:0; translate:0 -8px; clip-path:inset(0 0 100% 0 round 14px);}
    }
  }
  @media (prefers-reduced-motion: reduce) { html[data-look="lamplight"] select.hours-sel::picker(select), html[data-look="lamplight"] #rate-pick::picker(select){transition:none;} }
  .save-row{display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px; margin-top:16px;}
  .save-row .hstack{gap:8px; margin-left:auto;}   /* Save stays at the right under the times (its help line went, November 3, 2026) */
  .unsaved-note{margin-right:4px; font-size:0.875rem; font-weight:500; color:var(--warn);}

  /* Most hours a week (migration 156): the booked line, then the box and Save on one row (stacked on a phone). */
  .week-limit-booked{margin:12px 0 0; font-weight:500;}
  .week-limit-row{display:flex; flex-wrap:wrap; align-items:flex-end; gap:10px 12px; margin-top:14px;}
  .week-limit-row .field{flex:0 1 220px; min-width:0; margin-bottom:0;}
  #week-limit-error{margin-top:8px;}

  /* One-time breaks: the shared calendar. A break is a short bar in the warning colour (round 2: a dot means "free" on
     Month at a glance, so a break has its own mark here) */
  .break-layout{display:flex; flex-wrap:wrap; gap:22px 32px; align-items:flex-start; margin-top:16px;}
  .break-cal{flex:0 1 360px; width:100%; max-width:360px;}
  .break-cal .mark{position:absolute; left:50%; bottom:5px; width:14px; height:3px; margin-left:-7px; border-radius:2px; background:var(--warn);}
  .break-cal .cal-day[aria-pressed="true"] .mark{background:var(--on-ink);}
  /* Several days picked (November 5, 2026): the first and the last are pressed, the days between them lit */
  .break-cal .cal-day.cal-day.in-span{background:var(--sunk); border-color:var(--ink-2); color:var(--ink); font-weight:400; box-shadow:none;}
  .break-cal .cal-day.in-span .mark{background:var(--warn);}
  /* The range preview (round 5, item 9): after a first day, or while dragging, the days up to the one under the pointer,
     finger or keyboard focus get a soft wash, the far end a lit edge; while dragging, what was picked before steps back
     (is-dragging). The wash fades in and out (160ms), at once with reduced motion. No preview in Windows high contrast. */
  .break-cal .cal-day.cal-day.in-preview{background:var(--sunk); border-color:var(--ink-2); box-shadow:none;}
  .break-cal .is-dragging .cal-day.cal-day:not(.in-preview){background:var(--btn2-bg); border-color:var(--line-2); color:var(--ink); font-weight:400; box-shadow:none;}
  .break-cal .cal-grid{-webkit-user-select:none; user-select:none; -webkit-touch-callout:none;}
  .break-cal .cal-day{transition:background-color 160ms ease, border-color 160ms ease, transform 160ms var(--ease-out);}
  @media (prefers-reduced-motion: reduce){ .break-cal .cal-day{transition:none;} }
  .break-legend{display:flex; align-items:center; gap:8px; margin:8px 0 0; font-size:0.875rem; color:var(--ink-2);}
  .break-legend i{width:14px; height:3px; border-radius:2px; background:var(--warn);}
  /* Windows high contrast removes fills: draw the break dots in the system’s text colour */
  @media (forced-colors: active){ .break-cal .mark, .break-cal .cal-day[aria-pressed="true"] .mark, .break-legend i{forced-color-adjust:none; background:CanvasText;}
    .break-cal .cal-day.in-span{border:2px dashed Highlight;} }
  .break-form{flex:1 1 240px; min-width:0; max-width:460px;}
  #timeoff-times > .field{margin-bottom:0;}   /* the same 6px gap above "Repeat every week" as between the form's other lines */
  /* From and To before a day is picked (November 15, 2026): the quiet disabled fill without the dropdown's arrow, so the
     two empty boxes read as "not yet" rather than as dropdowns that failed to fill in */
  #timeoff-times select:disabled{background-image:none;}
  /* The note after Add break when the tutor still has sessions in it (168, November 5, 2026) */
  .break-held{margin:10px 0 0; padding:10px 12px; border-radius:var(--r-field); font-size:0.9375rem; line-height:1.5;}
  /* A change to an earlier payday, under Current pay (196) */
  .pay-change{margin:14px 0 0; padding:10px 12px; border-radius:var(--r-field); font-size:0.9375rem; line-height:1.5;}
  .break-list-item{display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px; padding:8px 12px; background:var(--sunk); border-radius:var(--r-field); font-size:0.9375rem;}
  /* A break repeated for several weeks (round 2, F-t2-10): one line that opens to each week, each with its Remove */
  details.break-repeat > summary{min-height:44px; cursor:pointer; list-style:none;}
  /* Since round 5 (item 9) its line shows Remove (with the arrow), which opens the choice: Remove all, then each week */
  .break-repeat-btn{display:inline-flex; align-items:center; gap:4px; pointer-events:none;}
  .break-repeat-btn .i{width:1rem; height:1rem;}
  .break-repeat-all{display:flex; padding:0 12px;}
  details.break-repeat > summary::-webkit-details-marker{display:none;}   /* older Safari */
  details.break-repeat[open] .break-repeat-chev{transform:rotate(180deg);}
  @media (prefers-reduced-motion: no-preference){ .break-repeat-chev{transition:transform var(--motion, 500ms) var(--ease-motion, cubic-bezier(.33, 1, .68, 1));} }
  .break-repeat-weeks{display:grid; gap:8px; margin:8px 0 0 16px;}

  /* Profile */
  .profile-editor{display:flex; gap:24px; align-items:flex-start; flex-wrap:wrap; container-type:inline-size;}
  .profile-photo-col{display:flex; flex-direction:column; align-items:center; gap:8px; flex:0 0 auto; width:170px; margin-inline:auto;}   /* fixed, so a photo error doesn't shift the page; centred in the card when it wraps onto its own row on phones */
  #profile-photo-error{align-self:stretch;}   /* as wide as its column: 170px beside the bio, the card's width on its own row (below) */
  /* Once the photo wraps onto its own row (the editor is narrower than 170 + 24 + 320px, which happens on phones and on
     screens up to about 610px), its error line runs the full width like the others */
  @container (width < 514px){ .profile-photo-col{width:100%;} }
  /* Phones: the profile's status line takes its own row and Save sits on the right below it, so "Saved" appearing on
     its left never pushes the button onto another row */
  @media (max-width:560px){ #profile-status:not(:empty){flex-basis:100%;} }
  .profile-fields{flex:1 1 320px; min-width:0;}
  .profile-avatar{width:96px; height:96px; font-size:2.125rem;}
  /* In English, then French Immersion under it, one column at every width (founder, November 12, 2026, audit tutor-b-10) */
  .coverage-cols{display:grid; grid-template-columns:minmax(0, 1fr); gap:14px; align-items:start;}
  .coverage-col{padding:14px 16px; background:transparent; border:1px solid var(--line); border-radius:var(--r-card); container-type:inline-size;}
  .coverage-col.fi{background:var(--sage); color:var(--on-sage); border-color:transparent;}
  .coverage-col.fi .muted{color:var(--on-sage-2);}
  .coverage-head{font-weight:500; font-size:1rem; margin-bottom:10px;}
  .coverage-row{margin-bottom:12px;}
  .cov-g10{margin:0 0 10px;}   /* a tutor in grade 10: why their grid has no grades 9 and 10 (migration 152) */
  /* Cleared subjects (migration 155): a pair the admin hasn't cleared is greyed out and can't be ticked; one line above says how to add one */
  .cov-locked-note{margin:12px 0 0;}   /* under the grid since November 3, 2026 */
  .toggle-chip.is-locked{opacity:.55; cursor:default;}   /* dimmed but readable, on a solid edge (DESIGN.md: no dashed lines) */
  @media (hover:hover) and (pointer:fine){ .toggle-chip.is-locked:hover{border-color:var(--field-line);} }
  .toggle-chip.is-locked:active{transform:none;}
  .coverage-row .cov-subj{display:block; font-weight:500; font-size:0.9375rem; margin-bottom:6px;}
  /* French Immersion, and In English since November 12, 2026: a button that shows and hides its rows, just its name and
     a small arrow that turns when they are open (November 3, 2026). The gap under it is in the rows, so it folds away with them and a closed box is only its
     one line. The focus ring is the shared one (:focus-visible, styles.css). */
  .fi-toggle{display:flex; gap:12px; align-items:center; width:100%; min-height:44px; margin:-8px 0; padding:0; background:none; border:0; border-radius:8px;
    color:inherit; font:inherit; font-weight:400; text-align:left; cursor:pointer; -webkit-tap-highlight-color:transparent;}
  .fi-toggle .coverage-head{flex:1 1 auto; margin:0;}
  .fi-chev{flex:0 0 auto; width:14px; height:9px; background:var(--chev) no-repeat center / 14px 9px; transition:transform var(--motion, 500ms) var(--ease-motion, cubic-bezier(.33, 1, .68, 1));}
  .fi-toggle[aria-expanded="true"] .fi-chev{transform:rotate(180deg);}
  @media (prefers-reduced-motion: reduce){ .fi-chev{transition:none;} }
  #fi-rows, #en-rows{padding-top:20px;}
  #fi-rows > .coverage-row:last-child, #en-rows > .coverage-row:last-child{margin-bottom:0;}
  /* Wide enough (computers, tablets): each subject on one row, its name then its grades, the grades in three columns
     so "Grades 4-6" sits under "Grades 4-6" row to row (audit tutor-b-10). Narrower (phones): the name above, the
     grades under it, as before. */
  @container (min-width: 36rem){
    .coverage-row{display:grid; grid-template-columns:9.5rem minmax(0, 1fr); gap:0 14px; align-items:center;}
    .coverage-row .cov-subj{margin:0;}
    .coverage-row > .toggle-grid{grid-template-columns:repeat(3, minmax(0, 11rem));}
  }

  /* Surveys (their own tab, migration 087): one card per open survey. Choices are the shared check rows; "Required" is a quiet tag that turns coral when the question was skipped. */
  @media (max-width:720px), (pointer:coarse){ #survey-notice a{display:inline-block; padding-block:11px;} }   /* a 44px tap on the notice's link */
  /* Recaps to write (November 4, 2026): the count, then Write recap beside it (44px tall on phones, .btn-sm); the button goes under the words when the line is too narrow */
  /* (Its own 24px under it went on November 15, 2026: the notices' group spacing, at the top of this file, sets it) */
  #recap-notice p{margin:0; display:flex; flex-wrap:wrap; align-items:center; gap:10px 16px;}
  /* The numbers at the top (pay so far, next session, week hours) show on the Sessions tab only (founder, October 15, 2026): the other tabs start with their own content, and keep the gap the numbers used to give under the title */
  .dash:has(#tab-sessions:not(.active)) .dash-nums{display:none;}
  .dash:has(#tab-sessions:not(.active)) .dash-title{margin-bottom:24px;}
  .survey-card{padding:18px 20px;}
  .avail-hours-note{margin:0;}   /* Weekly availability: the hours each day allows, right under the title */
  #sec-surveys > .section-title{margin-bottom:12px;}   /* the same room under the title as Job offers has */
  .dash:has(#tab-surveys.active) #survey-notice{display:none;}   /* "Go to Surveys" isn't shown while Surveys is the open tab */
  @media (max-width:560px){ .survey-card{padding:16px;} }
  .survey-title{margin:0 0 6px; font-size:1.1875rem; font-weight:500; line-height:1.3; letter-spacing:-0.01em; overflow-wrap:anywhere;}
  .survey-title[tabindex="-1"]:focus{outline:none;}   /* focused by the page after a survey is sent, not by the tutor */
  .survey-desc{margin:0 0 10px; max-width:70ch; white-space:pre-line; overflow-wrap:anywhere;}
  .survey-who{margin:0 0 16px; font-size:0.875rem;}
  .survey-q{min-width:0; margin:0 0 20px; padding:0; border:0;}
  .survey-q > legend, .survey-q > label{float:none; width:100%; margin:0 0 6px; padding:0; font-size:1rem; font-weight:500; line-height:1.4; overflow-wrap:anywhere;}
  .survey-req{margin-left:8px; font-size:0.875rem; font-weight:400; color:var(--ink-2); white-space:nowrap;}
  .survey-q.is-invalid .survey-req{color:var(--error); font-weight:500;}
  .survey-opts{display:grid; gap:0;}
  .survey-opts .check-label{min-height:44px; padding-block:8px; overflow-wrap:anywhere;}
  .survey-card form{max-width:680px;}
  .survey-send{display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-top:4px;}

  /* Pay and referral numbers (founder, November 3, 2026: "make some smaller and bigger, so look different, better").
     Each group has one lead figure (.is-lead: big, on the raised fill), maybe a middle one (.is-mid), and small ones
     (.is-small: a compact box, a plain figure). The groups lay themselves out by the width of their card (a container
     query), so the menu down the left on a computer never squeezes a big figure. Tokens only; the lamp light is in
     lamplight/tutor-dash.css. */
  #tab-pay > section.panel, #tutor-referral-card{container-type:inline-size;}
  .stat-card{min-width:0; padding:14px 16px; background:var(--surface); border:1px solid var(--line); border-radius:var(--r-card);}
  .card .stat-card{background:transparent;}
  .stat-card.total, .card .stat-card.total{background:var(--sage); color:var(--on-sage); border-color:transparent;}
  .stat-card .label{margin-bottom:6px; font-size:0.875rem; font-weight:500; line-height:1.3; color:var(--ink-2);}
  .stat-card .value{font:300 1.875rem/1.1 var(--f); letter-spacing:-0.03em; color:var(--ink); font-variant-numeric:tabular-nums; overflow-wrap:anywhere;}
  /* the dollar sign small and raised, like the big figure at the top of the page */
  .stat-card .value .cur{font-size:.52em; letter-spacing:0; vertical-align:top; position:relative; top:.14em; margin-right:.05em;}
  .stat-card .note{margin:6px 0 0; font-size:0.875rem; line-height:1.4; color:var(--ink-2);}
  .stat-card.total .label, .stat-card.total .note{color:var(--on-sage-2);}
  .stat-card.total .value{color:var(--on-sage);}
  .stat-card.is-lead{display:flex; flex-direction:column; padding:20px 22px;}
  .stat-board > .stat-card.is-mid{display:flex; flex-direction:column;}
  .stat-card.is-lead .value{font-size:3rem; font-size:clamp(2.5rem, 7.4cqi, 3.75rem); line-height:1; letter-spacing:-0.035em;}
  /* a box taller than its words (it spans two rows) keeps its label at the top and its figure and note at the foot */
  :is(.stat-card.is-lead, .stat-board > .stat-card.is-mid) > .value{margin-top:auto; padding-top:12px;}
  .stat-card.is-lead .note{margin-top:10px;}
  .stat-card.is-mid .value{font-size:2.125rem; font-size:clamp(1.875rem, 4.6cqi, 2.375rem);}
  /* "+$1.00 a session": the words after the figure are small */
  .stat-card .value .per{font-family:var(--f); font-size:.4em; font-weight:500; letter-spacing:0; color:var(--ink-2); text-shadow:none;}

  .stat-card.is-small{padding:12px 14px;}
  .stat-card.is-small .label{margin-bottom:4px;}
  .stat-card.is-small .value{font-size:1.375rem; font-weight:400; line-height:1.2; letter-spacing:-0.01em;}
  .stat-card.is-small .note{margin-top:4px;}

  .stat-board{display:grid; gap:12px; margin:14px 0 24px;}
  /* Current pay: Earned so far big on the left, Still booked and Pay day small beside it */
  .board-period{grid-template-columns:minmax(0, 3fr) minmax(0, 2fr);}
  .board-period > .is-lead{grid-row:span 2;}
  /* All-time pay: Total earned, Tutoring, then the two extras one above the other; each column a step smaller */
  .board-alltime{grid-template-columns:minmax(0, 1.45fr) minmax(0, 1.1fr) minmax(0, 1fr);}
  .board-alltime > :is(.is-lead, .is-mid){grid-row:span 2;}
  /* Your rate: Next raise (with its bar) leads at the top left, the hours small under it, what a session pays on the
     right. With the tutor's own pay there is no Next raise box (155): the hours and the pay share the row. */
  .board-rate{grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); grid-template-areas:"raise rate" "hours rate"; margin-top:0;}
  /* Your rate has no card round it, so the board's own 24px foot added to the section's 40px (November 15, 2026): the
     same 40px to Current pay as between the other sections */
  .board-rate{margin-bottom:0;}
  .board-rate > .raise-card{grid-area:raise;}
  .board-rate > .hours-card{grid-area:hours;}
  /* What a session pays keeps its own height beside Next raise and the hours (founder, November 12, 2026, audit
     tutor-a-11): no empty space at its foot when the two boxes on its left are taller */
  .board-rate > .rate-card{grid-area:rate; display:flex; flex-direction:column; align-self:start;}
  .board-rate > .rate-card > #rate-content{flex:1; display:flex; flex-direction:column; align-items:flex-start;}
  .board-rate .rate-notes{align-self:stretch; margin-top:auto;}
  .board-rate #rate-show{margin-bottom:12px;}
  .board-rate:has(> .raise-card[hidden]){grid-template-columns:minmax(0, 1fr) minmax(0, 2fr); grid-template-areas:"hours rate"; align-items:start;}
  @container (max-width: 760px){
    .board-alltime{grid-template-columns:minmax(0, 1fr) minmax(0, 1fr);}
    .board-alltime > .is-lead{grid-column:1 / -1; grid-row:auto;}
  }
  @container (max-width: 600px){
    .board-rate{grid-template-columns:minmax(0, 1fr); grid-template-areas:"raise" "hours" "rate";}
    .board-rate:has(> .raise-card[hidden]){grid-template-columns:minmax(0, 1fr); grid-template-areas:"hours" "rate";}
  }
  @container (max-width: 480px){
    .stat-board{gap:10px;}
    .board-period{grid-template-columns:minmax(0, 1fr) minmax(0, 1fr);}
    .board-period > .is-lead, .board-alltime > .is-mid{grid-column:1 / -1; grid-row:auto;}
    .stat-card.is-lead{padding:18px 18px;}
    .stat-card.is-small{padding:12px;}
    .stat-card.is-small .value{font-size:1.25rem;}
  }

  /* Next raise's bar (founder, November 3, 2026: "more gamified"): the hours from this pay step to the next. The fill is
     uncovered from the left with clip-path (its rounded end stays round); it fills once when the Pay tab is tapped
     (.panel-in), over the dashboards' half second, never when the page opens and never with reduced motion. */
  .raise-bar{position:relative; height:12px; margin-top:16px; border-radius:6px; background:var(--sunk); box-shadow:inset 0 0 0 1px var(--line);}
  .raise-fill{position:absolute; inset:0; border-radius:inherit; background:var(--ink);
    clip-path:inset(0 calc((1 - var(--raise-p, 0)) * 100%) 0 0 round 6px);}
  .raise-ends{display:flex; justify-content:space-between; gap:12px; margin-top:6px; font-size:0.875rem; line-height:1.3; color:var(--ink-3); font-variant-numeric:tabular-nums;}
  @keyframes dash-fill-in{from{clip-path:inset(0 100% 0 0 round 6px);}}
  @media (prefers-reduced-motion: no-preference){
    .tab-panel.panel-in .raise-fill{animation:dash-fill-in var(--motion, 500ms) var(--ease-motion, cubic-bezier(.33, 1, .68, 1));}
  }
  @media (forced-colors: active){
    .raise-bar{border:1px solid CanvasText;}
    .raise-fill{forced-color-adjust:none; background:Highlight;}
  }

  /* Referrals: the three figures are the way a referral goes, three stops on a rail, from a family who booked, to a
     family brought in, to the bonus; each a step bigger, the bonus on the raised fill. On a wide card they stand on the
     rail like steps (their feet on one line, a dot under each, a line from dot to dot); on a narrow one they stack,
     with the rail down their left. */
  .ref-stats{margin-top:18px;}
  .ref-path{--ref-dot:11px; --ref-gap:14px; display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1.4fr); gap:var(--ref-gap); align-items:end;
    margin:0; padding:0 0 24px; list-style:none;}
  .ref-path > .ref-stop{position:relative; margin:0;}
  .ref-path > .ref-stop.is-small{background:transparent;}
  .ref-path > .ref-stop::before{content:""; position:absolute; bottom:-25px; left:0; width:var(--ref-dot); height:var(--ref-dot); border-radius:50%;
    background:var(--bg); box-shadow:inset 0 0 0 2px var(--ink-3);}
  .ref-path > .ref-stop.is-mid::before{box-shadow:inset 0 0 0 2px var(--ink);}
  .ref-path > .ref-stop.is-lead::before{background:var(--ink); box-shadow:none;}
  /* the line from this stop's dot to the next one's */
  .ref-path > .ref-stop:not(:last-child)::after{content:""; position:absolute; z-index:-1; height:2px; border-radius:2px; background:var(--line-2);
    bottom:calc(-25px + var(--ref-dot) / 2 - 1px); left:calc(var(--ref-dot) / 2); right:calc(-1 * var(--ref-gap) - var(--ref-dot) / 2);}
  .ref-path{isolation:isolate;}
  @container (max-width: 560px){
    .ref-path{--ref-gap:12px; grid-template-columns:minmax(0, 1fr); align-items:stretch; padding:0 0 0 26px;}
    .ref-path > .ref-stop::before{bottom:auto; top:16px; left:-26px;}
    .ref-path > .ref-stop:not(:last-child)::after{width:2px; height:auto; left:calc(-26px + var(--ref-dot) / 2 - 1px); right:auto;
      top:calc(16px + var(--ref-dot) / 2); bottom:calc(-1 * var(--ref-gap) - 16px - var(--ref-dot) / 2);}
  }
  @media (forced-colors: active){
    .ref-path > .ref-stop:not(:last-child)::after{background:CanvasText;}
    .ref-path > .ref-stop::before{forced-color-adjust:none; background:Canvas; box-shadow:inset 0 0 0 2px CanvasText;}
    .ref-path > .ref-stop.is-lead::before{background:CanvasText;}
  }
  .rate-band{margin-top:8px;}
  .rate-band + .rate-band{margin-top:14px;}
  .rate-band .value{font:500 1.25rem/1.25 var(--f); letter-spacing:-0.01em;}
  #rate-show > .value{display:block;}
  .rate-band.off .value{color:var(--ink-3);}
  .rate-band .note{margin-top:2px;}
  /* A tutor who teaches online sees both hourly figures side by side */
  .rate-pair{display:flex; flex-wrap:wrap; gap:6px 28px;}
  .rate-way{display:flex; flex-direction:column; gap:1px;}
  .rate-way-label{font-size:0.875rem; font-weight:400; color:var(--ink-2);}
  .rate-way-label .online-tag{color:inherit;}
  .rate-notes{margin:12px 0 0; padding-top:10px; border-top:1px solid var(--line); font-size:0.875rem; color:var(--ink-2);}
  /* What a session pays: a picker for the four kinds of session (founder, October 31, 2026) */
  #rate-pick{margin-top:8px; max-width:100%;}
  #rate-show{margin-top:12px;}
  /* An underlined line like the admin's fold-outs, without the browser's own triangle */
  details.session-list > summary{display:inline-block; padding:10px 0; cursor:pointer; font-weight:500; font-size:0.9375rem; color:var(--ink); text-decoration:underline; text-decoration-color:var(--line-2); text-decoration-thickness:1px; text-underline-offset:5px;}
  details.session-list > summary::-webkit-details-marker{display:none;}   /* older Safari */
  @media (max-width:720px), (pointer:coarse){ details.session-list > summary{padding-block:12px;} }   /* a 44px tap */
  @media (hover:hover) and (pointer:fine){ details.session-list > summary:hover{text-decoration-color:var(--ink);} }
  /* Show more under the list (the first 25, 25 more a press); the row takes no room once it is gone */
  details.session-list .more-row > .btn{margin-top:12px;}
  /* Show each session (founder, November 12, 2026): Sort above the list, then one line per session (date, student,
     subject, pay). A session with more to say is a button: a tap opens it with the fold (zvFold), its arrow turns, and
     only these lines light under the mouse. Wide: the line's parts in columns; a phone: they wrap, the pay stays right. */
  .earn-tools{display:flex; align-items:center; gap:10px; margin:6px 0 12px;}
  .earn-tools label{margin:0; font-size:0.875rem; font-weight:500; color:var(--ink-2);}
  .earn-tools select{width:auto;}
  .earn-list{list-style:none; margin:0; padding:0; border-top:1px solid var(--line);}
  .earn-list > li{margin:0; border-bottom:1px solid var(--line);}
  .earn-list > li:last-child{border-bottom:0;}
  .earn-list > li.empty-cell{padding:16px 12px; font:400 0.9375rem/1.5 var(--f); color:var(--ink-2);}
  .earn-line{display:flex; align-items:center; gap:12px; width:100%; min-height:48px; margin:0; padding:10px 12px; text-align:left;
    font:400 0.9375rem/1.4 var(--f); color:var(--ink); background:none; border:0; border-radius:0;}
  button.earn-line{cursor:pointer;}
  .earn-what{display:flex; flex:1; flex-wrap:wrap; align-items:baseline; gap:2px 14px; min-width:0;}
  .earn-date{white-space:nowrap; font-variant-numeric:tabular-nums;}
  .earn-who{min-width:0; overflow-wrap:anywhere;}
  .earn-subj{color:var(--ink-2);}
  /* The pay keeps one width on every line, so the columns before it start and end in the same place row to row, and
     the money's right edge lines up (audit tutor-a-14) */
  .earn-pay{flex:none; min-width:4.75rem; margin-left:auto; white-space:nowrap; font-variant-numeric:tabular-nums; text-align:right;}
  .earn-chev, .earn-chev-space{flex:none; width:18px; height:18px;}
  .earn-chev{color:var(--ink-3);}
  .earn-row.is-open .earn-chev{transform:rotate(180deg);}
  @media (prefers-reduced-motion: no-preference){ .earn-chev{transition:transform var(--motion, 500ms) var(--ease-motion, cubic-bezier(.33, 1, .68, 1));} }
  @media (hover:hover) and (pointer:fine){
    button.earn-line:hover{background-color:var(--sunk);}
    button.earn-line:hover .earn-chev{color:var(--ink);}
  }
  .earn-more{padding:0 12px 14px;}
  .earn-more > * + *{margin-top:8px;}
  .earn-facts, .earn-note{margin:0; font-size:0.875rem; line-height:1.5; color:var(--ink-2);}
  .earn-facts{display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px;}
  @media (max-width:720px){ .earn-line{gap:8px; padding-inline:4px;} .earn-more{padding-inline:4px;} .earn-list > li.empty-cell{padding-inline:4px;} }
  /* A phone: the date in its own column, the student and the subject beside it (wrapping under each other only when
     they don't fit), so every line starts its columns in the same place (it wrapped wherever its words ran out), the
     pay on the right. Wider: the three are columns of their own (.earn-ws steps aside). */
  .earn-ws{display:contents;}
  @media (max-width:720px){
    .earn-what{display:grid; grid-template-columns:6.25rem minmax(0, 1fr); gap:0 10px; align-items:baseline;}
    .earn-ws{display:flex; flex-wrap:wrap; align-items:baseline; gap:2px 10px; min-width:0;}
    .earn-what .earn-date{white-space:normal;}   /* a date from an earlier year wraps under itself, never over the name */
    .earn-pay{min-width:4.25rem;}
  }
  /* Very small phones: the date on its own line above the student and subject, so names never break mid-word */
  @media (max-width:359.98px){ .earn-what{grid-template-columns:minmax(0, 1fr);} }
  @media (min-width:721px){ .earn-what{display:grid; grid-template-columns:10.5rem minmax(5rem, 9rem) minmax(0, 1fr); gap:0 14px;} }
  /* Only a row that does something lights under the mouse (founder, November 12, 2026): never an empty line ("None
     yet.", "No upcoming sessions yet.", a loading or can't-load line), and not the Earlier pay or Upcoming rows (a
     row there is not a button: only the buttons inside an Upcoming row do something, and they light themselves) */
  @media (hover:hover) and (pointer:fine){ main.dash tbody tr:hover > td.empty-cell, main.dash #tpp-body tr:hover > td, main.dash #upcoming-body tr:hover > td{background-color:transparent;} }
  .ref-code{font:500 1rem/1 var(--f); letter-spacing:.03em; color:var(--ink);}
  .copy-row{display:flex; flex-wrap:wrap; gap:8px;}
  .copy-row input{flex:1; min-width:0;}
  /* Copy buttons show the copy icon, which turns into a check while they say "Copied" (like Manage and Booking) */
  .copy-btn .ic-done, .copy-btn.is-copied .ic-copy{display:none;}
  .copy-btn.is-copied .ic-done{display:block;}

  /* Recap window: a dimmed page under one floating card */
  /* A native <dialog> opened with showModal(): focus goes inside, Tab stays inside, Escape closes it,
     the page behind is inert, and focus returns to the button that opened it. */
  /* Fixed and centred whether open or closing (the closing motion below keeps a window drawn for a moment after it
     stops being modal, when the browser's own :modal place would no longer hold) */
  dialog.modal{position:fixed; inset:0; width:100%; height:100%; max-width:none; max-height:none; margin:0; padding:20px; border:0; background:transparent; color:inherit; align-items:center; justify-content:center;}
  dialog.modal[open]{display:flex;}
  .modal > .card{width:100%; max-width:480px; max-height:calc(100vh - 40px); overflow:auto; overscroll-behavior:contain; border-color:transparent; box-shadow:var(--shadow-card);}
  .modal-actions{display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; margin-top:14px;}
  /* zvAsk and zvTell (dash-common.js): the site's own message box, text as typed */
  .zv-box .zv-box-text{margin:0; white-space:pre-wrap; overflow-wrap:anywhere; font-size:1rem; line-height:1.55;}
  .zv-box .zv-box-value{width:100%; margin-top:12px;}

  /* Motion after a tap (founder, October 30, 2026; the same block is in admin-dashboard.css): 0.5 seconds on the
     even ease-out curve, only opacity and transform (except the Saved tick, uncovered with clip-path the way the
     site's checkbox draws its check), never when the page opens or on scroll. Reduced motion: none of it, everything
     is there at once. Closing plays it backwards (below, "Closing").
     - A window (every dialog.modal, zvAsk and zvTell too): the page behind dims in and the card rises 16px.
     - A "Saved" line (.saved-in, zvSaved in dash-common.js): it rises 6px and its tick draws itself, like a
       checkbox's check (the tick is uncovered left to right).
     - A tab's panel after its tab is tapped (.panel-in): it fades up 6px.
     - A fold opened by a tick or a tap (.fold-in, zvFold): it slides down from 6px above and fades in. */
  @keyframes dash-dim-in{from{opacity:0;}}
  @keyframes dash-card-in{from{opacity:0; transform:translateY(16px);}}
  @keyframes dash-rise-in{from{opacity:0; transform:translateY(6px);}}
  @keyframes dash-drop-in{from{opacity:0; transform:translateY(-6px);}}
  @keyframes dash-tick-in{from{clip-path:inset(0 100% 0 0);}}
  @media (prefers-reduced-motion: no-preference){
    dialog.modal[open]::backdrop{animation:dash-dim-in var(--motion, 500ms) var(--ease-motion, cubic-bezier(.33, 1, .68, 1));}
    dialog.modal[open] > .card{animation:dash-card-in var(--motion, 500ms) var(--ease-motion, cubic-bezier(.33, 1, .68, 1));}
    .success-text.saved-in, .tab-panel.panel-in{animation:dash-rise-in var(--motion, 500ms) var(--ease-motion, cubic-bezier(.33, 1, .68, 1));}
    .success-text.saved-in::before{animation:dash-tick-in var(--motion, 500ms) var(--ease-motion, cubic-bezier(.33, 1, .68, 1));}
    .fold-in{animation:dash-drop-in var(--motion, 500ms) var(--ease-motion, cubic-bezier(.33, 1, .68, 1));}
  }
  /* Closing (founder, October 30, 2026: "add a bit of motion for them ... like when closing, so it's not instant"; the
     same block is in admin-dashboard.css). A window closes the way it opened, backwards: the dimmed page clears and the
     card sinks 16px as it fades, over the same 0.5 seconds, however it closes (a button, Escape, the page's own code).
     The browser keeps the closing window on top (overlay) and drawn (display) until then. Meanwhile it can't be pressed
     or reached with the keyboard, so the next tap reaches the page or the next window at once, and the focus goes
     back at once. Only where the browser can keep a closing window on top (overlay: Chrome, Edge); there the opening
     is a transition too (@starting-style, the same rise and dim), so a window opened again while it closes turns back
     from where it is. Other browsers keep the opening above and close at once; so does reduced motion. */
  dialog.modal:not([open]){pointer-events:none; interactivity:inert;}
  dialog.modal:not([open])::backdrop{pointer-events:none;}
  @supports (overlay: auto){
    @media screen and (prefers-reduced-motion: no-preference){
      dialog.modal[open]::backdrop, dialog.modal[open] > .card{animation:none;}
      dialog.modal{transition:display var(--motion, 500ms) allow-discrete, overlay var(--motion, 500ms) allow-discrete;}
      dialog.modal::backdrop{transition:opacity var(--motion, 500ms) var(--ease-motion, cubic-bezier(.33, 1, .68, 1)), display var(--motion, 500ms) allow-discrete, overlay var(--motion, 500ms) allow-discrete;}
      dialog.modal > .card{transition:opacity var(--motion, 500ms) var(--ease-motion, cubic-bezier(.33, 1, .68, 1)), transform var(--motion, 500ms) var(--ease-motion, cubic-bezier(.33, 1, .68, 1));}
      dialog.modal:not([open])::backdrop{opacity:0;}
      dialog.modal:not([open]) > .card{opacity:0; transform:translateY(16px);}
      @starting-style{
        dialog.modal[open]::backdrop{opacity:0;}
        dialog.modal[open] > .card{opacity:0; transform:translateY(16px);}
      }
    }
  }

  /* More motion after a tap (founder, October 30, 2026, the second round; the same block is in admin-dashboard.css): the same
     0.5 seconds on the even curve, only opacity and transform, never when the page opens or on scroll, none of it
     with reduced motion. The one size change is a leaving row's fold (grid-template-rows on its wrapper, from its
     height in pixels to 0, both set by zvLeave).
     - A step or a view that comes in after a tap (.rise-in): it rises 6px as it fades in.
     - New rows (.rows-in, zvRowsIn in dash-common.js): each slides down 6px as it fades in, 35ms after the one before
       (--zv-row is its place, 0 to 7).
     - A list after a filter tap or a search (.settle-in, zvSettle): it fades up 4px, once per change.
     - A status or a figure a tap changed (.pop-in, zvPop): it pops in from .8 of its size; a big figure or a stat
       card's value grows from its left edge, where its text starts.
     - A row that leaves its list (zvLeave): it fades and lifts 4px while its wrapper (.zv-fold) folds shut and the list
       closes up; a table row (.zv-out) only fades.
     - A box or a fold that closes after a tap (zvShut, a <details> closed from its line; .zv-shut, the same wrapper):
       its wrapper folds shut while the box plays its opening backwards: a fold (.zv-shut-fold) slides back up 6px as
       it fades, a box that rose (.zv-shut-rise: Add a device, the Remove question) sinks 6px as it fades. Opened again
       meanwhile, .closing comes off and it all turns back from where it is.
     - Opening (November 3, 2026, the founder: "hella sharp, basically instant"): the same wrapper played forwards
       (zvOpen, a <details> opened from its line): it starts at nothing with .closing on, then unfolds to the box's
       height as .closing comes off, so the box slides in the way it will leave.
     - This dashboard only: Copy to other weekdays (founder, November 7, 2026: "make it so it fades in, and then fades
       up, not sharp"), the one line a timer hides that doesn't go at once. After the tutor's own change it opens with
       zvOpen (.zv-shut-rise: it rises 6px as it fades in, its space unfolding); when its 5 seconds of being seen are up,
       after its press, or when it no longer fits the week, it closes with zvShut (.zv-shut-fold: it lifts 6px as it
       fades, its space folding shut; one still fading in turns to .zv-shut-fold first, so it never sinks). Moving to
       another day, the one before is out of sight at once (.copy-unseen) while its space folds shut with the new one's
       opening. Its fold keeps its grid place (.hours-day .zv-fold, with the weekly hours above). */
  @keyframes dash-settle-in{from{opacity:0; transform:translateY(4px);}}
  @keyframes dash-pop-in{from{opacity:0; transform:scale(.8);}}
  @keyframes dash-fade-out{to{opacity:0; transform:translateY(-4px);}}
  .zv-fold{display:grid; grid-template-rows:1fr;}
  .zv-fold > div{min-height:0; overflow:hidden;}
  .dash-big.pop-in, .stat-card .value.pop-in{transform-origin:0 50%;}
  @media (prefers-reduced-motion: no-preference){
    .rise-in{animation:dash-rise-in var(--motion, 500ms) var(--ease-motion, cubic-bezier(.33, 1, .68, 1));}
    .rows-in{animation:dash-drop-in var(--motion, 500ms) var(--ease-motion, cubic-bezier(.33, 1, .68, 1)) calc(var(--zv-row, 0) * 35ms) backwards;}
    .settle-in{animation:dash-settle-in var(--motion, 500ms) var(--ease-motion, cubic-bezier(.33, 1, .68, 1));}
    .pop-in{animation:dash-pop-in var(--motion, 500ms) var(--ease-motion, cubic-bezier(.33, 1, .68, 1));}
    .zv-out, .zv-fold.shut > div{animation:dash-fade-out var(--motion, 500ms) var(--ease-motion, cubic-bezier(.33, 1, .68, 1)) forwards;}
    .zv-fold{transition:grid-template-rows var(--motion, 500ms) var(--ease-motion, cubic-bezier(.33, 1, .68, 1));}
    .zv-shut > div{transition:opacity var(--motion, 500ms) var(--ease-motion, cubic-bezier(.33, 1, .68, 1)), transform var(--motion, 500ms) var(--ease-motion, cubic-bezier(.33, 1, .68, 1));}
    .zv-shut-fold.closing > div{opacity:0; transform:translateY(-6px);}
    .zv-shut-rise.closing > div{opacity:0; transform:translateY(6px);}
  }
  /* Arriving from another page of the site (founder, October 30, 2026; dash-common.js, zvArrivalTurn): the tabs light
     up one after another, a short lamp light under each, 300ms in all (180ms each, 24ms apart), then .tabs-arrive comes
     off. Earned so far rolls in, on every open (zvRollMoney and money-roll.js, no CSS here). Only opacity and transform move. Never on a refresh, Back or
     Forward, or with reduced motion; Windows high contrast shows no light. */
  @keyframes dash-tab-light{0%{opacity:0; transform:scaleX(.3);} 40%{opacity:1; transform:none;} 100%{opacity:0; transform:none;}}
  @media (prefers-reduced-motion: no-preference){
    .dash-tabs.tabs-arrive .tab-btn{position:relative;}
    .dash-tabs.tabs-arrive .tab-btn::after{
      content:""; position:absolute; left:14px; right:14px; bottom:-1px; height:2px; border-radius:2px; pointer-events:none;
      background:linear-gradient(90deg, rgba(255,210,154,0), #FFD29A 50%, rgba(255,210,154,0)); box-shadow:0 0 10px 1px rgba(244,182,110,.55);
      opacity:0; animation:dash-tab-light 180ms var(--ease-motion, cubic-bezier(.33, 1, .68, 1)) both;}
    .dash-tabs.tabs-arrive .tab-btn:nth-child(2)::after{animation-delay:24ms;}
    .dash-tabs.tabs-arrive .tab-btn:nth-child(3)::after{animation-delay:48ms;}
    .dash-tabs.tabs-arrive .tab-btn:nth-child(4)::after{animation-delay:72ms;}
    .dash-tabs.tabs-arrive .tab-btn:nth-child(5)::after{animation-delay:96ms;}
    .dash-tabs.tabs-arrive .tab-btn:nth-child(6)::after{animation-delay:120ms;}
  }
  @media (forced-colors: active){ .dash-tabs.tabs-arrive .tab-btn::after{display:none;} }

  /* The raise cheer (tutor-dashboard.js cheerRaise, November 1, 2026): one short line at the top when a tutor reaches a
     new pay step, with a burst of lamp sparks behind it (none with reduced motion). */
  /* A warm amber edge with a soft lamp glow (founder, November 12, 2026, audit tutor-a-12), so it reads as good news */
  .raise-cheer{position:fixed; top:calc(16px + env(safe-area-inset-top, 0px)); left:16px; right:16px; margin:0 auto; width:fit-content; z-index:60;
    max-width:calc(100% - 32px); padding:12px 18px; background:var(--surface); border:1px solid var(--ll-amber, #F4B66E); border-radius:var(--r-card);
    box-shadow:0 0 0 1px rgba(244,182,110,.35), 0 0 28px rgba(244,182,110,.38), 0 8px 24px rgba(0,0,0,.35); cursor:pointer;}
  .raise-cheer p{margin:0; position:relative; z-index:1; font-weight:600;}
  .raise-sparks{position:absolute; left:0; top:50%; width:100%; height:180px; transform:translateY(-50%); pointer-events:none;}
  @media (prefers-reduced-motion: no-preference){
    .raise-cheer{animation:rise-in .5s var(--ease-motion, ease) both;}
    .raise-cheer.is-leaving{opacity:0; transition:opacity .5s var(--ease-motion, ease);}
  }
  .raise-cheer.is-leaving{opacity:0;}

  /* With JavaScript off (tutor/dashboard.html's <noscript>, November 5, 2026): one line at the very top saying so, in
     place of a page stuck on its placeholders. A flat bar, no motion. */
  .noscript-line{margin:0; padding:12px 16px; text-align:center; border-bottom:1px solid var(--line);
    font-size:0.9375rem; line-height:1.45; overflow-wrap:anywhere;}
  .noscript-line a{text-decoration:underline; text-underline-offset:3px;}

  /* One place to save (founder, November 12, 2026, audit tutor-b-07; tutor-dashboard.js, the save bar): while a part of
     the open tab isn't saved, a bar along the bottom of the screen names it, with Save changes on the right. Its foot
     keeps clear of a phone's home bar (safe area). main gets the bar's height as room at its foot (--save-bar-h, set
     from its real height), and a focused field scrolled into view stops above it (scroll-padding-bottom). It rises in
     a little when it comes after a change (none with reduced motion); it goes at once. */
  .save-bar{position:fixed; left:0; right:0; bottom:0; z-index:40; display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:8px 16px;
    padding:10px max(var(--gutter, 16px), calc((100% - var(--dash-max, 100%)) / 2)) calc(10px + env(safe-area-inset-bottom, 0px));
    border-top:1px solid var(--line);}
  .save-bar-text{flex:1 1 12rem; min-width:0; margin:0; font-size:0.9375rem; line-height:1.35; overflow-wrap:anywhere;}
  .save-bar .btn{flex:none; min-height:48px;}
  html.has-save-bar main.dash{padding-bottom:calc(72px + var(--save-bar-h, 4.5rem));}
  html.has-save-bar{scroll-padding-bottom:calc(16px + var(--save-bar-h, 4.5rem));}
  @media (prefers-reduced-motion: no-preference){
    .save-bar.save-bar-in{animation:dash-rise-in var(--motion, 500ms) var(--ease-motion, cubic-bezier(.33, 1, .68, 1));}
  }
