/* student pop-up: the overview and calls tabs as one calm row list each, the same look as the tools tab
   (oliver, 2026-10-03: "same thing for the calls", "same thing for overall, just like this pop-up").
   every row: a small line icon on a soft tile of its own colour, the name, the value, quiet meta or one small button on
   the right. a problem is a small red dot and a few plain words. rules carry #drawer so they win over the older
   pop-up sheets (student-card.css, student-popup.css, house-success.css) whatever order they load in. */

/* the tile: 28px, 8px corners, the icon in its colour on a 14% wash of it (the sidebar's tiles, one size up) */
body.balanced-blue.minimal-calm #drawer .student-profile .student-row-tile{--tint:var(--tint-slate);display:grid;place-items:center;flex:none;width:28px;height:28px;border-radius:8px;color:var(--tint);background:color-mix(in srgb,var(--tint) 14%,transparent)}
body.balanced-blue.minimal-calm #drawer .student-profile .student-row-tile svg{display:block;width:15px;height:15px}
body.balanced-blue.minimal-calm.theme-dark #drawer .student-profile .student-row-tile{color:color-mix(in srgb,var(--tint),#fff 38%);background:color-mix(in srgb,var(--tint) 22%,transparent)}
body.balanced-blue.minimal-calm #drawer .student-row-tile[data-tint="pink"]{--tint:var(--tint-pink)}
body.balanced-blue.minimal-calm #drawer .student-row-tile[data-tint="violet"]{--tint:var(--tint-violet)}
body.balanced-blue.minimal-calm #drawer .student-row-tile[data-tint="indigo"]{--tint:var(--tint-indigo)}
body.balanced-blue.minimal-calm #drawer .student-row-tile[data-tint="blue"]{--tint:var(--tint-blue)}
body.balanced-blue.minimal-calm #drawer .student-row-tile[data-tint="teal"]{--tint:var(--tint-teal)}
body.balanced-blue.minimal-calm #drawer .student-row-tile[data-tint="yellow"]{--tint:var(--tint-yellow)}
body.balanced-blue.minimal-calm #drawer .student-row-tile[data-tint="fuchsia"]{--tint:var(--tint-fuchsia)}
body.balanced-blue.minimal-calm #drawer .student-row-tile[data-tint="green"]{--tint:var(--tint-green)}
body.balanced-blue.minimal-calm #drawer .student-row-tile[data-tint="slate"]{--tint:var(--tint-slate)}
body.balanced-blue.minimal-calm #drawer .student-row-tile[data-tint="orange"]{--tint:var(--tint-orange)}

/* the one small button a row may carry: outline, 28px, second ink until hovered ("make link" in the payment box stays pink) */
body.balanced-blue.minimal-calm #drawer .student-profile :is(.student-csm-item,.student-call-status) :is(.btn,a.btn):not(.btn-primary){display:inline-flex;align-items:center;justify-content:center;gap:6px;width:auto;min-width:0;min-height:28px;margin:0;padding:3px 10px;border:1px solid var(--line);border-radius:var(--r-control);background:transparent;color:var(--secondary);font-size:12.5px;font-weight:500;line-height:18px;white-space:nowrap;text-decoration:none}
body.balanced-blue.minimal-calm #drawer .student-profile :is(.student-csm-item,.student-call-status) :is(.btn,a.btn):not(.btn-primary):hover{background:var(--soft);color:var(--ink)}

/* overview: one row per fact. tile, label, value, then the row's one button at the right. only the overview's own list:
   a call's notes reuse the class for their plain label / value lines */
body.balanced-blue.minimal-calm #drawer .student-profile .student-profile-panel>.student-csm-list{display:block;margin:0 0 12px;padding:0;list-style:none;border:0;box-shadow:none}
body.balanced-blue.minimal-calm #drawer .student-profile .student-profile-panel>.student-csm-list .student-csm-item{display:grid;grid-template-columns:28px 84px minmax(0,1fr) auto;align-items:center;column-gap:12px;min-height:48px;padding:8px 0;border:0;border-top:1px solid var(--line);box-shadow:none}
body.balanced-blue.minimal-calm #drawer .student-profile .student-profile-panel>.student-csm-list .student-csm-item:first-child{border-top:0}
body.balanced-blue.minimal-calm #drawer .student-profile .student-profile-panel>.student-csm-list .student-row-tile{grid-column:1;grid-row:1}
body.balanced-blue.minimal-calm #drawer .student-profile .student-profile-panel>.student-csm-list .student-csm-label{grid-column:2;grid-row:1;font-size:13px;font-weight:400;line-height:20px;color:var(--secondary)}
body.balanced-blue.minimal-calm #drawer .student-profile .student-profile-panel>.student-csm-list .student-csm-value{grid-column:3;grid-row:1;display:block;min-width:0;padding:0;font-size:14px;font-weight:500;line-height:20px;color:var(--ink);white-space:normal;overflow-wrap:anywhere}
body.balanced-blue.minimal-calm #drawer .student-profile .student-profile-panel>.student-csm-list .student-csm-value .ful-card-value{font-size:14px;font-weight:500;line-height:20px}
/* money that's late or due today reads red, not just its dot (oliver, 2026-10-05: "it should be red so its obvious") */
body.balanced-blue.minimal-calm #drawer .student-profile .student-profile-panel>.student-csm-list .student-pay-open .ful-card-value[data-tone="red"]{color:var(--bad-text);font-weight:600}
body.balanced-blue.minimal-calm #drawer .student-profile .student-profile-panel>.student-csm-list .student-csm-via{font-size:12.5px;font-weight:400;color:var(--secondary);overflow-wrap:normal}
body.balanced-blue.minimal-calm #drawer .student-profile .student-profile-panel>.student-csm-list .student-csm-item>:is(.btn,a.btn,.payment-link-form){grid-column:4;grid-row:1;justify-self:end}
/* marks (2026-10-04): a row can carry its one button plus quiet "mark sent", "mark booked", "mark dm sent", "change" or
   "undo". they sit together at the row's right, on the value's line, so the row stays one line (oliver, 2026-10-05: "it's
   making too much deadspace"); "text to book" is the next call line itself now */
body.balanced-blue.minimal-calm #drawer .student-profile .student-profile-panel>.student-csm-list .student-csm-item>.student-csm-actions{grid-column:4;grid-row:1;justify-self:end;display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:2px 4px;min-width:0;margin:0}
/* the next call line opens their chat with a call invite typed in: a dotted link with a small chat mark, like "ask for a win" */
body.balanced-blue.minimal-calm #drawer .student-profile .student-next-book{display:inline;padding:0;border:0;background:none;font:inherit;color:inherit;text-align:left;cursor:pointer;text-decoration:underline dotted;text-underline-offset:3px}
body.balanced-blue.minimal-calm #drawer .student-profile .student-next-book:hover{text-decoration-style:solid}
/* every other line goes where it's about (chatted and program: their chat; dashboard: tools; next call: calls), the same
   quiet dotted link (oliver, 2026-10-05) */
body.balanced-blue.minimal-calm #drawer .student-profile .student-row-go{display:inline;min-height:0;padding:0;border:0;background:none;font:inherit;color:inherit;text-align:left;cursor:pointer;text-decoration:underline dotted;text-decoration-color:var(--line-strong);text-underline-offset:3px}
body.balanced-blue.minimal-calm #drawer .student-profile .student-row-go:hover{text-decoration-style:solid;text-decoration-color:currentColor}
body.balanced-blue.minimal-calm #drawer .student-profile .student-row-go:focus-visible{outline:2px solid var(--ring);outline-offset:2px;border-radius:4px}
body.balanced-blue.minimal-calm #drawer .student-profile .student-next-book .student-next-chat{display:inline-block;margin-left:6px;color:var(--secondary);vertical-align:-2px}
body.balanced-blue.minimal-calm #drawer .student-profile .student-csm-item button.btn.student-mark:not(.btn-primary){min-height:28px;padding:3px 6px;border-color:transparent;background:transparent;color:var(--secondary);font-weight:500;text-decoration:underline;text-decoration-color:var(--line-strong);text-underline-offset:3px}
body.balanced-blue.minimal-calm #drawer .student-profile .student-csm-item button.btn.student-mark:not(.btn-primary):hover{background:transparent;color:var(--ink);text-decoration-color:currentColor}
body.balanced-blue.minimal-calm #drawer .student-profile .student-csm-item button.btn.student-mark:not(.btn-primary):disabled{opacity:.5;cursor:default}
/* overview › last call (ui/student-call-recap.js): one more row of the list above, same grid; its notes fold out under it */
body.balanced-blue.minimal-calm #drawer .student-profile .student-profile-panel>.student-csm-list:has(+details.student-call-recap){margin-bottom:0}
body.balanced-blue.minimal-calm #drawer .student-profile .student-profile-panel>details.student-call-recap{margin:0 0 12px;padding:0;border:0;border-top:1px solid var(--line);border-radius:0;background:none;box-shadow:none}
body.balanced-blue.minimal-calm #drawer .student-profile .student-profile-panel>details.student-call-recap>summary{display:grid;grid-template-columns:28px 84px minmax(0,1fr) auto;align-items:center;column-gap:12px;min-height:48px;padding:8px 0;border:0;cursor:pointer;list-style:none}
body.balanced-blue.minimal-calm #drawer .student-profile .student-call-recap .call-recap-label{grid-column:2;font-size:13px;font-weight:400;line-height:20px;color:var(--secondary)}
body.balanced-blue.minimal-calm #drawer .student-profile .student-call-recap .call-recap-when{grid-column:3;display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px;min-width:0;font-size:14px;font-weight:500;line-height:20px;color:var(--ink)}
body.balanced-blue.minimal-calm #drawer .student-profile .student-call-recap .call-recap-when a{font-size:12.5px;font-weight:400;color:var(--secondary);text-decoration:underline;text-decoration-color:var(--line-strong);text-underline-offset:3px}
body.balanced-blue.minimal-calm #drawer .student-profile .student-call-recap .call-recap-when a:hover{color:var(--ink);text-decoration-color:currentColor}
body.balanced-blue.minimal-calm #drawer .student-profile .student-call-recap .call-recap-toggle{grid-column:4;justify-self:end;display:inline-flex;align-items:center;gap:2px;min-height:28px;padding:3px 6px 3px 10px;border:1px solid var(--line);border-radius:var(--r-control);font-size:12.5px;font-weight:500;line-height:18px;color:var(--secondary)}
body.balanced-blue.minimal-calm #drawer .student-profile .student-call-recap>summary:hover .call-recap-toggle{background:var(--soft);color:var(--ink)}
body.balanced-blue.minimal-calm #drawer .student-profile .student-call-recap .call-recap-toggle svg{width:14px;height:14px}
body.balanced-blue.minimal-calm #drawer .student-profile .student-call-recap>.call-recap-body{padding:0 0 12px 40px}
body.balanced-blue.minimal-calm #drawer .student-profile .student-call-recap>.call-recap-body .student-csm-item{display:grid;grid-template-columns:84px minmax(0,1fr);align-items:baseline;column-gap:12px;min-height:0;padding:8px 0}
body.balanced-blue.minimal-calm #drawer .student-profile .student-call-recap>.call-recap-body .student-csm-label{font-size:13px;font-weight:400;line-height:20px;color:var(--secondary)}
body.balanced-blue.minimal-calm #drawer .student-profile .student-call-recap>.call-recap-body .student-csm-value{padding:0;font-size:13.5px;font-weight:400;line-height:20px;color:var(--ink)}

/* "payment link" opens a small amount box in the same spot */
body.balanced-blue.minimal-calm #drawer .student-profile .student-profile-panel>.student-csm-list .payment-link-form{display:inline-flex;flex-wrap:nowrap;align-items:center;gap:6px;width:auto}
body.balanced-blue.minimal-calm #drawer .student-profile .student-profile-panel>.student-csm-list .payment-link-form .input{width:96px;min-height:28px;padding-block:3px;font-size:13px}
body.balanced-blue.minimal-calm #drawer .student-profile .student-profile-panel>.student-csm-list .payment-link-form .btn{flex:none;width:auto;min-height:28px;margin:0;padding:3px 10px;font-size:12.5px;white-space:nowrap}

/* the payment link button everywhere: a link icon and "payment link" */
body.balanced-blue.minimal-calm .btn.student-pay-link{display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap}
body.balanced-blue.minimal-calm .btn.student-pay-link svg{flex:none;width:14px;height:14px}
body.balanced-blue.minimal-calm #main .ful-success-tabs .btn.student-pay-link{min-height:32px;padding:6px 12px;color:var(--secondary)}
body.balanced-blue.minimal-calm #main .ful-success-tabs .btn.student-pay-link:hover{color:var(--ink)}

/* the three boxes sam writes in: small labels, then roomy boxes (oliver, 2026-10-04: "for the actionables, follow-ups,
   and notes, you can make them bigger"): about 6 lines to start, 15px text at 1.5, growing with what's in them up to
   about 12 lines, then they scroll. still resizable within that. */
body.balanced-blue.minimal-calm #drawer .student-profile-simple .student-action-area .student-profile-section h3{margin:0 0 6px!important;font-size:12.5px!important;font-weight:500;line-height:18px;color:var(--secondary)}
body.balanced-blue.minimal-calm #drawer .student-profile-simple .student-action-area :is(.student-next-followup,.student-notes){padding-top:14px}
body.balanced-blue.minimal-calm #drawer .student-profile-simple .student-action-area :is(#ful-student-actionables,#ful-student-next,#ful-student-note){field-sizing:content;box-sizing:border-box;min-height:calc(6 * 22.5px + 18px);max-height:calc(12 * 22.5px + 18px);padding:8px 12px;font-size:15px;line-height:1.5;resize:vertical}
/* the overview fits the pop-up without scrolling (oliver, 2026-10-05: "can we get rid of this scrolling on this modal"):
   side by side, the notes column fills the height under the tabs and its three boxes share it, actionables a bit more.
   a long note scrolls inside its own box. if the left column ever runs longer (a call's notes open), the pop-up scrolls. */
@media(min-width:900px){
  body.balanced-blue.minimal-calm #drawer:has(.student-profile-simple [data-profile-panel="overview"]:not([hidden])) .drawer-body{display:flex;flex-direction:column;flex:1 1 auto;min-height:0}
  body.balanced-blue.minimal-calm #drawer .drawer-body>.student-profile-simple:has([data-profile-panel="overview"]:not([hidden])){display:flex;flex-direction:column;flex:1 0 auto}
  body.balanced-blue.minimal-calm #drawer .student-profile-simple [data-profile-panel="overview"]:not([hidden]){flex:1 0 auto;grid-template-rows:repeat(3,auto) minmax(0,1fr)}
  body.balanced-blue.minimal-calm #drawer .student-profile-simple [data-profile-panel="overview"]>.student-action-area{align-self:stretch;display:flex;flex-direction:column;min-height:0}
  body.balanced-blue.minimal-calm #drawer .student-profile-simple .student-action-area>form{display:flex;flex-direction:column;flex:1 1 0;min-height:0}
  body.balanced-blue.minimal-calm #drawer .student-profile-simple .student-action-area>form>*{flex:none}
  body.balanced-blue.minimal-calm #drawer .student-profile-simple .student-action-area>form>.student-profile-section{display:flex;flex-direction:column;flex:1 1 0;min-height:0}
  body.balanced-blue.minimal-calm #drawer .student-profile-simple .student-action-area>form>.student-actionables-notes{flex-grow:1.4}
  body.balanced-blue.minimal-calm #drawer .student-profile-simple .student-action-area :is(#ful-student-actionables,#ful-student-next,#ful-student-note){flex:1 1 0;min-height:72px;max-height:none;field-sizing:fixed;resize:none}
}

/* calls tab (oliver, 2026-10-04: "can we improve the view here? It just looks kind of ugly with the calls up there"):
   a small card with one row per coach in columns, then the calls as one house list, then "add a call fathom missed" as
   a quiet outline button */
body.balanced-blue.minimal-calm #drawer .student-profile .student-calls-tab{display:flex;flex-direction:column;align-items:stretch;gap:16px;max-width:720px}
body.balanced-blue.minimal-calm #drawer .student-profile .student-coach-lines{display:block;margin:0;padding:0 16px;list-style:none;border:1px solid var(--line);border-radius:var(--r-card);background:var(--surface)}
body.balanced-blue.minimal-calm #drawer .student-profile .student-coach-line{display:grid;grid-template-columns:52px minmax(0,1fr) minmax(0,1fr) minmax(84px,auto);align-items:center;column-gap:16px;min-height:44px;padding:6px 0;border-top:1px solid var(--line);font-size:13px;line-height:20px;color:var(--secondary)}
body.balanced-blue.minimal-calm #drawer .student-profile .student-coach-line:first-child{border-top:0}
body.balanced-blue.minimal-calm #drawer .student-profile .student-coach-name{min-width:0;font-weight:500;color:var(--ink)}
body.balanced-blue.minimal-calm #drawer .student-profile .student-coach-fact{display:inline-flex;flex-wrap:wrap;align-items:center;gap:0 4px;min-width:0}
body.balanced-blue.minimal-calm #drawer .student-profile .student-coach-action{display:flex;justify-content:flex-end;min-width:0}
/* a late or missing chat or call: the red dot leads the fact ("● last call 20d ago"), not the cell inside it */
body.balanced-blue.minimal-calm #drawer .student-profile .student-coach-line :is(.dc-cell,.ful-checkin-date,.ful-checkin-empty,.ful-contact-cell)::before{display:none}
body.balanced-blue.minimal-calm #drawer .student-profile .student-coach-fact:has(:is(.dc-cell.is-overdue,.ful-contact-overdue,[data-contact-state="overdue"],[data-contact-state="none"]))::after{content:"";order:-1;flex:none;width:6px;height:6px;margin-right:2px;border-radius:50%;background:var(--bad)}
body.balanced-blue.minimal-calm #drawer .student-profile .student-coach-line .ful-discord-contacts{display:inline;margin:0;padding:0}
/* the chat fact reads as plain words whatever the discord cell says (it repaints itself, so the words live here):
   "chatted 2d ago", "never chatted", "no recent chat", "discord not linked", "chat unavailable" */
body.balanced-blue.minimal-calm #drawer .student-profile .student-coach-fact:has(:is([data-dc-status="not_found"],[data-dc-status="not_recent"],[data-dc-status="unlinked"],[data-dc-status="error"],[data-dc-status="unknown"],.dc-cell.is-muted[data-dc-status="incomplete"],.ful-card-value[data-tone="muted"])) .student-coach-verb{display:none}
body.balanced-blue.minimal-calm #drawer .student-profile .student-coach-line .dc-cell[data-dc-status="not_found"]::after{content:"\00a0 chatted"}
body.balanced-blue.minimal-calm #drawer .student-profile .student-coach-line .dc-cell[data-dc-status="not_recent"]{font-size:0}
body.balanced-blue.minimal-calm #drawer .student-profile .student-coach-line .dc-cell[data-dc-status="not_recent"]::after{content:"no recent chat";font-size:13px}
body.balanced-blue.minimal-calm #drawer .student-profile .student-coach-line .dc-cell[data-dc-status="unlinked"]::before{content:"discord\00a0";display:inline}
body.balanced-blue.minimal-calm #drawer .student-profile .student-coach-line .dc-cell:is([data-dc-status="error"],[data-dc-status="unknown"],.is-muted[data-dc-status="incomplete"])::before{content:"chat\00a0";display:inline}
body.balanced-blue.minimal-calm #drawer .student-profile .student-coach-line :is(.dc-cell,.dc-cell a,.ful-card-value){font-size:13px;font-weight:400;color:var(--ink);text-decoration:none}
body.balanced-blue.minimal-calm #drawer .student-profile .student-coach-line :is(.dc-cell.is-muted,.dc-cell.is-loading,.dc-cell.is-error,.ful-card-value[data-tone="muted"]){color:var(--secondary)}
/* the call date: the old cell, read as plain words. the day itself is in its hover */
body.balanced-blue.minimal-calm #drawer .student-profile .student-coach-line :is(.ful-checkin-date,.ful-checkin-empty,.ful-contact-cell){display:inline-flex;align-items:center;margin:0;padding:0;border:0;background:none;font-size:13px;font-weight:400;color:var(--ink);text-decoration:none}
body.balanced-blue.minimal-calm #drawer .student-profile .student-coach-line :is(.ful-checkin-date,.ful-contact-cell) strong{font-weight:400;color:inherit}
body.balanced-blue.minimal-calm #drawer .student-profile .student-coach-line :is(.ful-checkin-date,.ful-contact-cell) time{display:none}
body.balanced-blue.minimal-calm #drawer .student-profile .student-coach-line a.ful-checkin-date:hover{text-decoration:underline;text-underline-offset:3px}
body.balanced-blue.minimal-calm #drawer .student-profile .student-coach-line .ful-contact-muted{color:var(--secondary)}
body.balanced-blue.minimal-calm #drawer .student-profile .student-coach-line .dc-retry{margin-left:4px;font-size:12px}
/* "add date": a quiet outline button in the row's last column; it turns into the date box in the same spot */
body.balanced-blue.minimal-calm #drawer .student-profile .student-coach-line .ful-contact-set{display:inline-flex;align-items:center;justify-content:center;min-height:28px;margin:0;padding:3px 10px;border:1px solid var(--line);border-radius:var(--r-control);background:transparent;font-size:12.5px;font-weight:500;line-height:18px;color:var(--secondary)}
body.balanced-blue.minimal-calm #drawer .student-profile .student-coach-line .ful-contact-set:is(:hover,:focus-visible){background:var(--soft);color:var(--ink)}
body.balanced-blue.minimal-calm #drawer .student-profile .student-coach-line .ful-contact-set-hint{font-size:inherit;color:inherit;text-decoration:none}
body.balanced-blue.minimal-calm #drawer .student-profile .student-coach-line .ful-contact-set-field{width:150px;margin:0}

/* the calls: one row each. a 32px tile, the day and time in ink with who and what under it, and on the right the
   status (a dot and a word) with "open" and "notes" as quiet buttons, centred on the row */
body.balanced-blue.minimal-calm #drawer .student-profile .student-call-list{margin:0;padding:0;list-style:none}
body.balanced-blue.minimal-calm #drawer .student-profile .student-call-row{display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;column-gap:12px;min-height:60px;padding:10px 0;border-top:1px solid var(--line)}
body.balanced-blue.minimal-calm #drawer .student-profile .student-call-row:first-child{border-top:0}
body.balanced-blue.minimal-calm #drawer .student-profile .student-call-row[data-quiet]>:not(.student-call-notes){opacity:.55}
body.balanced-blue.minimal-calm #drawer .student-profile .student-call-row>.student-row-tile{grid-column:1;grid-row:1;width:32px;height:32px;margin:0}
body.balanced-blue.minimal-calm #drawer .student-profile .student-call-row>.student-row-tile svg{width:16px;height:16px}
body.balanced-blue.minimal-calm #drawer .student-profile .student-call-main{grid-column:2;grid-row:1;min-width:0}
body.balanced-blue.minimal-calm #drawer .student-profile .student-call-when{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;margin:0;font-size:14px;line-height:20px}
body.balanced-blue.minimal-calm #drawer .student-profile .student-call-when strong{font-weight:500;color:var(--ink)}
body.balanced-blue.minimal-calm #drawer .student-profile .student-call-tag{display:inline-flex;align-items:center;height:20px;padding:0 8px;border:1px solid var(--line);border-radius:999px;font-size:11.5px;font-weight:500;line-height:18px;color:var(--secondary)}
body.balanced-blue.minimal-calm #drawer .student-profile .student-call-who{margin:2px 0 0;font-size:12.5px;line-height:18px;color:var(--secondary)}
body.balanced-blue.minimal-calm #drawer .student-profile .student-call-status{grid-column:3;grid-row:1;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:6px 8px;font-size:13px;line-height:20px;color:var(--secondary);text-align:right}
body.balanced-blue.minimal-calm #drawer .student-profile .student-call-status>.ful-card-value{margin-right:4px;font-size:13px;font-weight:400;color:var(--ink)}
body.balanced-blue.minimal-calm #drawer .student-profile .student-call-status>.ful-card-value[data-tone="muted"]{color:var(--secondary)}
body.balanced-blue.minimal-calm #drawer .student-profile .student-call-status .ful-link{padding:0;border:0;background:none;font-size:12.5px;font-weight:400;color:var(--secondary);text-decoration:underline;text-decoration-color:var(--line-strong);text-underline-offset:3px;cursor:pointer}
body.balanced-blue.minimal-calm #drawer .student-profile .student-call-status .ful-link:hover{color:var(--ink);text-decoration-color:currentColor}
body.balanced-blue.minimal-calm #drawer .student-profile .student-call-status .student-call-notes-toggle[aria-expanded="true"]{background:var(--soft);color:var(--ink)}
/* "open" keeps the right edge on every row, so "notes" sits just before it */
body.balanced-blue.minimal-calm #drawer .student-profile .student-call-status>.student-call-notes-toggle{order:1}
body.balanced-blue.minimal-calm #drawer .student-profile .student-call-status>.student-call-open{order:2}
body.balanced-blue.minimal-calm #drawer .student-profile .student-call-status>.student-call-undo{order:3}
body.balanced-blue.minimal-calm #drawer .student-profile .student-call-soon{color:var(--secondary)}
/* a call's notes fold open under its row, across the text and the buttons */
body.balanced-blue.minimal-calm #drawer .student-profile .student-call-notes{grid-column:2/-1;grid-row:2;margin:10px 0 2px;padding:0;border:0;background:none;font-size:13px;line-height:20px;color:var(--ink)}
body.balanced-blue.minimal-calm #drawer .student-profile .student-call-notes[hidden]{display:none}
body.balanced-blue.minimal-calm #drawer .student-profile .student-call-empty{margin:0;padding:4px 0;font-size:13px;line-height:20px;color:var(--secondary)}
body.balanced-blue.minimal-calm #drawer .student-profile .student-call-add{align-self:flex-start;margin:0;padding:0;border:0;background:none}
body.balanced-blue.minimal-calm #drawer .student-profile .student-call-add>summary{display:inline-flex;align-items:center;min-height:32px;padding:5px 12px;border:1px solid var(--line);border-radius:var(--r-control);background:transparent;font-size:13px;font-weight:500;line-height:20px;color:var(--secondary);cursor:pointer;list-style:none;text-decoration:none}
body.balanced-blue.minimal-calm #drawer .student-profile .student-call-add>summary::-webkit-details-marker{display:none}
body.balanced-blue.minimal-calm #drawer .student-profile .student-call-add>summary:is(:hover,:focus-visible),body.balanced-blue.minimal-calm #drawer .student-profile .student-call-add[open]>summary{background:var(--soft);color:var(--ink)}
body.balanced-blue.minimal-calm #drawer .student-profile .student-call-add-pick{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:8px;font-size:12.5px;color:var(--secondary)}

/* pop-up header: a quiet "⋯" beside discord and message; its menu floats under it with "remove student" in danger
   text (oliver, 2026-10-04). the confirm it opens sits under the header row, whatever tab is showing */
body.balanced-blue.minimal-calm #drawer .student-profile .student-profile-more{position:relative;flex:none}
body.balanced-blue.minimal-calm #drawer .student-profile .student-more-button{display:inline-grid;place-items:center;width:32px;min-width:32px;height:32px;min-height:32px;margin:0;padding:0;color:var(--secondary)}
body.balanced-blue.minimal-calm #drawer .student-profile .student-more-button:is(:hover,[aria-expanded="true"]){background:var(--soft);color:var(--ink)}
body.balanced-blue.minimal-calm #drawer .student-profile .student-more-button[hidden]{display:none}
body.balanced-blue.minimal-calm #drawer .student-profile .student-more-menu{position:absolute;top:calc(100% + 6px);right:0;z-index:30;min-width:184px;padding:4px;border:1px solid var(--line);border-radius:var(--r-menu);background:var(--surface);box-shadow:var(--shadow-float)}
body.balanced-blue.minimal-calm #drawer .student-profile .student-more-menu[hidden]{display:none}
body.balanced-blue.minimal-calm #drawer .student-profile .student-more-item{display:flex;align-items:center;width:100%;min-height:32px;margin:0;padding:6px 10px;border:0;border-radius:var(--r-item);background:none;box-shadow:none;font:inherit;font-size:13.5px;font-weight:500;line-height:20px;text-align:left;color:var(--ink);cursor:pointer}
body.balanced-blue.minimal-calm #drawer .student-profile .student-more-item[data-tone="danger"]{color:var(--bad)}
body.balanced-blue.minimal-calm #drawer .student-profile .student-more-item:is(:hover,:focus-visible){background:var(--soft);outline:none}
body.balanced-blue.minimal-calm #drawer .student-profile .student-more-item[data-tone="danger"]:is(:hover,:focus-visible){background:var(--bad-wash)}
body.balanced-blue.minimal-calm #drawer .student-profile .student-more-item[hidden]{display:none}
body.balanced-blue.minimal-calm #drawer .student-profile>.student-remove-program{margin:0 0 16px;padding:0;border:0;text-align:left}
body.balanced-blue.minimal-calm #drawer .student-profile>.student-remove-program:has(>.student-remove-confirm[hidden]):has(>.student-remove-status[hidden]){display:none}
body.balanced-blue.minimal-calm #drawer .student-profile>.student-remove-program .student-remove-confirm{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;padding:12px 14px;border:1px solid var(--line);border-radius:var(--r-card);background:var(--surface)}
body.balanced-blue.minimal-calm #drawer .student-profile>.student-remove-program .student-remove-confirm[hidden]{display:none}
body.balanced-blue.minimal-calm #drawer .student-profile>.student-remove-program .student-remove-error{flex-basis:100%}

/* payments tab › retainer, at the foot after the plan: the tick box, then "$ [ ] per month" and "started [ ]" on the
   same row once it's ticked (oliver, 2026-10-04) */
body.balanced-blue.minimal-calm #drawer .student-profile [data-profile-panel="payments"]>.student-retainer{display:block;margin:0;padding:16px 0 0;border-top:1px solid var(--line)}
body.balanced-blue.minimal-calm #drawer .student-profile .student-retainer-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px 24px;min-height:32px}
body.balanced-blue.minimal-calm #drawer .student-profile .student-retainer-switch{display:inline-flex;align-items:center;gap:8px;margin:0;font-size:14px;font-weight:500;line-height:20px;color:var(--ink);cursor:pointer}
body.balanced-blue.minimal-calm #drawer .student-profile .student-retainer-fields{display:flex;flex-wrap:wrap;align-items:center;gap:8px 20px}
body.balanced-blue.minimal-calm #drawer .student-profile .student-retainer-fields[hidden]{display:none}
body.balanced-blue.minimal-calm #drawer .student-profile .student-retainer-fields>label{display:inline-flex;align-items:center;gap:8px;margin:0;font-size:13px;line-height:20px;color:var(--secondary)}
body.balanced-blue.minimal-calm #drawer .student-profile .student-retainer-money{display:inline-flex;align-items:center;gap:6px;color:var(--ink)}
body.balanced-blue.minimal-calm #drawer .student-profile .student-retainer-fields .input{height:32px;min-height:32px;padding-block:4px;font-size:13.5px}
body.balanced-blue.minimal-calm #drawer .student-profile .student-retainer-money .input{width:104px;font-variant-numeric:tabular-nums}
body.balanced-blue.minimal-calm #drawer .student-profile .student-retainer-since .input{width:156px}
body.balanced-blue.minimal-calm #drawer .student-profile .student-retainer-status{margin:6px 0 0;min-height:0;font-size:12px;color:var(--secondary)}
body.balanced-blue.minimal-calm #drawer .student-profile .student-retainer-status:empty{display:none}

/* phones: the label sits over the value, the button stays on the right; a call's status drops under it */
@media(max-width:700px){
  body.balanced-blue.minimal-calm #drawer .student-profile .student-profile-panel>.student-csm-list .student-csm-item{grid-template-columns:28px minmax(0,1fr) auto;row-gap:2px;padding:10px 0}
  body.balanced-blue.minimal-calm #drawer .student-profile .student-profile-panel>.student-csm-list .student-row-tile{grid-row:1/span 2;align-self:start;margin-top:2px}
  body.balanced-blue.minimal-calm #drawer .student-profile .student-profile-panel>.student-csm-list .student-csm-label{grid-column:2;grid-row:1;font-size:12.5px;line-height:18px}
  body.balanced-blue.minimal-calm #drawer .student-profile .student-profile-panel>.student-csm-list .student-csm-value{grid-column:2;grid-row:2}
  body.balanced-blue.minimal-calm #drawer .student-profile .student-profile-panel>.student-csm-list .student-csm-item>:is(.btn,a.btn,.payment-link-form){grid-column:3;grid-row:1/span 2}
  body.balanced-blue.minimal-calm #drawer .student-profile .student-profile-panel>details.student-call-recap>summary{grid-template-columns:28px minmax(0,1fr) auto;row-gap:2px;padding:10px 0}
  body.balanced-blue.minimal-calm #drawer .student-profile .student-call-recap>summary>.student-row-tile{grid-row:1/span 2;align-self:start;margin-top:2px}
  body.balanced-blue.minimal-calm #drawer .student-profile .student-call-recap .call-recap-label{grid-column:2;grid-row:1;font-size:12.5px;line-height:18px}
  body.balanced-blue.minimal-calm #drawer .student-profile .student-call-recap .call-recap-when{grid-column:2;grid-row:2}
  body.balanced-blue.minimal-calm #drawer .student-profile .student-call-recap .call-recap-toggle{grid-column:3;grid-row:1/span 2}
  body.balanced-blue.minimal-calm #drawer .student-profile .student-call-recap>.call-recap-body{padding-left:0}
  /* a row with several buttons (marks): together on the right, like the one button */
  body.balanced-blue.minimal-calm #drawer .student-profile .student-profile-panel>.student-csm-list .student-csm-item>.student-csm-actions{grid-column:3;grid-row:1/span 2}
  /* the payment amount box takes its own line under the value */
  body.balanced-blue.minimal-calm #drawer .student-profile .student-profile-panel>.student-csm-list .student-csm-item>span.payment-link-form{grid-column:2/-1;grid-row:3;justify-self:start;margin-top:6px}
  /* a coach row: the name, then the chat and the call stacked, "add date" on the right */
  body.balanced-blue.minimal-calm #drawer .student-profile .student-coach-lines{padding:0 12px}
  body.balanced-blue.minimal-calm #drawer .student-profile .student-coach-line{grid-template-columns:44px minmax(0,1fr) auto;row-gap:2px;column-gap:12px;padding:8px 0}
  body.balanced-blue.minimal-calm #drawer .student-profile .student-coach-name{grid-column:1;grid-row:1/span 2;align-self:start}
  body.balanced-blue.minimal-calm #drawer .student-profile .student-coach-fact{grid-column:2}
  body.balanced-blue.minimal-calm #drawer .student-profile .student-coach-action{grid-column:3;grid-row:1/span 2}
  body.balanced-blue.minimal-calm #drawer .student-profile .student-coach-action:empty{display:none}
  /* a call: the status and its buttons drop under who and what */
  body.balanced-blue.minimal-calm #drawer .student-profile .student-call-row{grid-template-columns:32px minmax(0,1fr)}
  body.balanced-blue.minimal-calm #drawer .student-profile .student-call-row>.student-row-tile{align-self:start}
  body.balanced-blue.minimal-calm #drawer .student-profile .student-call-status{grid-column:2;grid-row:2;justify-content:flex-start;margin-top:8px;text-align:left}
  body.balanced-blue.minimal-calm #drawer .student-profile .student-call-notes{grid-column:1/-1;grid-row:3}
  /* the confirm: words, then the buttons under them */
  body.balanced-blue.minimal-calm #drawer .student-profile>.student-remove-program .student-remove-confirm{display:grid}
}

/* "mark booked" (ui/live-fulfillment.js openBookedPanel, 2026-10-04): a small card under the button on its own top layer.
   the dialog is a clear layer over the whole window (a click on it closes the card); the card fits down to 320px */
body.balanced-blue.minimal-calm dialog.booked-panel{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;background:transparent;color:var(--ink);overflow:visible}
body.balanced-blue.minimal-calm dialog.booked-panel::backdrop{background:transparent}
body.balanced-blue.minimal-calm .booked-panel .booked-card{position:absolute;box-sizing:border-box;width:min(320px,calc(100vw - 32px));margin:0;padding:14px 16px 12px;border:1px solid var(--line);border-radius:12px;background:var(--surface);box-shadow:var(--shadow-float);font-size:13px;line-height:18px}
body.balanced-blue.minimal-calm .booked-panel .booked-title{margin:0 0 10px;font-size:14px;font-weight:600;line-height:20px;color:var(--ink)}
body.balanced-blue.minimal-calm .booked-panel .booked-title span{font-weight:400;color:var(--secondary)}
body.balanced-blue.minimal-calm .booked-panel .booked-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,104px);gap:8px}
body.balanced-blue.minimal-calm .booked-panel .booked-field{display:flex;flex-direction:column;gap:4px;min-width:0}
body.balanced-blue.minimal-calm .booked-panel .booked-field>span{font-size:12px;font-weight:500;color:var(--secondary)}
body.balanced-blue.minimal-calm .booked-panel .booked-field .input,body.balanced-blue.minimal-calm .booked-panel .booked-field .hq-select{width:100%;min-width:0;min-height:36px}
body.balanced-blue.minimal-calm .booked-panel .booked-hint{margin:10px 0 0;font-size:12px;line-height:17px;color:var(--secondary)}
body.balanced-blue.minimal-calm .booked-panel .booked-error{margin:8px 0 0;font-size:12px;line-height:17px;color:var(--bad-text)}
body.balanced-blue.minimal-calm .booked-panel .booked-actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:12px}
body.balanced-blue.minimal-calm .booked-panel .booked-actions .btn{width:auto;min-height:32px;margin:0;padding:4px 12px;font-size:13px}
body.balanced-blue.minimal-calm .booked-panel .booked-actions .btn.booked-quiet{border-color:transparent;background:transparent;color:var(--secondary)}
body.balanced-blue.minimal-calm .booked-panel .booked-actions .btn.booked-quiet:hover{color:var(--ink);background:var(--soft)}
body.balanced-blue.minimal-calm .booked-panel .booked-actions .btn.booked-remove{margin-left:auto;color:var(--bad-text)}
body.balanced-blue.minimal-calm .booked-panel .booked-actions .btn.booked-remove:hover{color:var(--bad-text)}
/* "mark called" (openCalledPanel, 2026-10-06): the same card, wider, with the week's fathom calls to pick from. one row
   per call: a round mark, its title over who and when, "open" at the end; then "no recording" with sam or olly */
body.balanced-blue.minimal-calm .called-panel .booked-card{width:min(360px,calc(100vw - 32px))}
body.balanced-blue.minimal-calm .called-panel .called-ask{margin:-4px 0 8px;font-size:12px;line-height:17px;color:var(--secondary)}
body.balanced-blue.minimal-calm .called-panel .called-empty{margin:0 0 4px;font-size:13px;color:var(--secondary)}
body.balanced-blue.minimal-calm .called-panel .called-list{display:flex;flex-direction:column;gap:2px;max-height:252px;margin:0 -8px;padding:0;list-style:none;overflow-y:auto;overscroll-behavior:contain}
body.balanced-blue.minimal-calm .called-panel .called-row{display:flex;align-items:center;gap:4px;min-width:0;padding-right:4px}
body.balanced-blue.minimal-calm .called-panel .called-choice{display:flex;flex:1;align-items:flex-start;gap:10px;min-width:0;margin:0;padding:7px 8px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--ink);font:inherit;text-align:left;cursor:pointer}
body.balanced-blue.minimal-calm .called-panel .called-choice:hover{background:var(--soft)}
body.balanced-blue.minimal-calm .called-panel .called-choice[aria-pressed="true"]{border-color:var(--accent);background:var(--brand-wash)}
body.balanced-blue.minimal-calm .called-panel .called-choice:focus-visible,body.balanced-blue.minimal-calm .called-panel .called-coach:focus-visible,body.balanced-blue.minimal-calm .called-panel .called-open:focus-visible{outline:2px solid var(--ring);outline-offset:1px}
body.balanced-blue.minimal-calm .called-panel .called-dot{flex:none;box-sizing:border-box;width:14px;height:14px;margin-top:2px;border:1.5px solid var(--line-strong);border-radius:50%}
body.balanced-blue.minimal-calm .called-panel [aria-pressed="true"] .called-dot{border:4px solid var(--accent)}
body.balanced-blue.minimal-calm .called-panel .called-text{display:flex;flex-direction:column;min-width:0}
body.balanced-blue.minimal-calm .called-panel .called-text strong{overflow:hidden;font-weight:500;text-overflow:ellipsis;white-space:nowrap}
body.balanced-blue.minimal-calm .called-panel .called-text span{font-size:12px;line-height:17px;color:var(--secondary)}
body.balanced-blue.minimal-calm .called-panel .called-open{flex:none;padding:4px 6px;border-radius:6px;color:var(--secondary);font-size:12px;font-weight:500;text-decoration:underline;text-decoration-color:var(--line-strong);text-underline-offset:3px}
body.balanced-blue.minimal-calm .called-panel .called-open:hover{color:var(--ink);text-decoration-color:currentColor}
body.balanced-blue.minimal-calm .called-panel .called-none{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:10px;padding-top:10px;border-top:1px solid var(--line);font-size:12px;color:var(--secondary)}
body.balanced-blue.minimal-calm .called-panel .called-coach{height:26px;margin:0;padding:0 10px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--ink);font:inherit;font-size:12px;font-weight:500;cursor:pointer}
body.balanced-blue.minimal-calm .called-panel .called-coach:hover{background:var(--soft)}
body.balanced-blue.minimal-calm .called-panel .called-coach[aria-pressed="true"]{border-color:var(--accent);background:var(--brand-wash)}
/* "disregard" (openDisregardPanel, 2026-10-13): the same card, two next steps to pick like the fathom calls above, the
   day under "hit them up" (gone for a kick), then why */
body.balanced-blue.minimal-calm .disregard-panel .booked-card{width:min(340px,calc(100vw - 32px))}
body.balanced-blue.minimal-calm .disregard-panel .disregard-ask{margin:-4px 0 8px;font-size:12px;line-height:17px;color:var(--secondary)}
body.balanced-blue.minimal-calm .disregard-panel .disregard-plans{display:flex;flex-direction:column;gap:2px;margin:0 -8px}
body.balanced-blue.minimal-calm .disregard-panel .disregard-choice{position:relative;display:flex;align-items:flex-start;gap:10px;min-width:0;margin:0;padding:7px 8px;border:1px solid transparent;border-radius:8px;color:var(--ink);cursor:pointer}
body.balanced-blue.minimal-calm .disregard-panel .disregard-choice:hover{background:var(--soft)}
body.balanced-blue.minimal-calm .disregard-panel .disregard-choice:has(.disregard-radio:checked){border-color:var(--accent);background:var(--brand-wash)}
body.balanced-blue.minimal-calm .disregard-panel .disregard-choice:has(.disregard-radio:focus-visible){outline:2px solid var(--ring);outline-offset:1px}
body.balanced-blue.minimal-calm .disregard-panel .disregard-radio{position:absolute;width:1px;height:1px;margin:0;opacity:0;pointer-events:none}
body.balanced-blue.minimal-calm .disregard-panel .disregard-dot{flex:none;box-sizing:border-box;width:14px;height:14px;margin-top:2px;border:1.5px solid var(--line-strong);border-radius:50%}
body.balanced-blue.minimal-calm .disregard-panel .disregard-radio:checked+.disregard-dot{border:4px solid var(--accent)}
body.balanced-blue.minimal-calm .disregard-panel .disregard-text{display:flex;flex-direction:column;min-width:0}
body.balanced-blue.minimal-calm .disregard-panel .disregard-text strong{font-weight:500}
body.balanced-blue.minimal-calm .disregard-panel .disregard-text span{font-size:12px;line-height:17px;color:var(--secondary)}
body.balanced-blue.minimal-calm .disregard-panel .disregard-day{padding:4px 8px 6px 32px}
body.balanced-blue.minimal-calm .disregard-panel .disregard-day[hidden]{display:none}
body.balanced-blue.minimal-calm .disregard-panel .disregard-day .input{width:100%;min-width:0;min-height:36px}
body.balanced-blue.minimal-calm .disregard-panel .disregard-why{margin-top:10px}
@media (pointer:coarse){
  body.balanced-blue.minimal-calm .booked-panel .booked-actions .btn{min-height:44px}
  body.balanced-blue.minimal-calm .called-panel .called-choice{min-height:44px}
  body.balanced-blue.minimal-calm .disregard-panel .disregard-choice{min-height:44px}
  body.balanced-blue.minimal-calm .called-panel .called-coach{height:36px}
  body.balanced-blue.minimal-calm #drawer .student-profile .student-csm-item button.btn.student-mark:not(.btn-primary){min-height:44px}
}
/* overview › program: a retainer student's plan (both / systems only / community only), a small dropdown on the row's
   right like the marks beside it (oliver, 2026-10-13) */
body.balanced-blue.minimal-calm #drawer .student-profile .student-csm-item .student-retainer-plan{display:inline-flex;justify-self:end}
body.balanced-blue.minimal-calm #drawer .student-profile .student-csm-item .student-retainer-plan .hq-select-trigger{min-height:30px;padding:4px 8px 4px 10px;gap:6px;border:1px solid var(--line);border-radius:999px;background:var(--soft);color:var(--ink);font-size:12.5px;font-weight:500;box-shadow:none}
