/* Student pop-up (2026-09-25): the deals tab as structured rows and the tools tab.
   Deals: logo and name | earned in 30 days | last post | wins | a freshness chip, one hairline row per deal.
   Tools: tool | last used | last opened | uses in 30 days. Both collapse to two short lines per row on phones. */
body.balanced-blue.minimal-calm{
  --popup-green:var(--tone-green,#15803d);--popup-amber:var(--tone-amber,#b7791f);--popup-red:var(--tone-red,#c2413b);
}

/* Deals: the summary line, then the list. The .ful-current-deals ul/li rules above are for the old logo grid. */
body.balanced-blue.minimal-calm .student-profile .ful-current-deals .profile-deals{display:grid;gap:10px}
body.balanced-blue.minimal-calm .student-profile .ful-current-deals-head+.profile-deals{margin-top:-4px}
body.balanced-blue.minimal-calm .student-profile .profile-deals-summary{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px;margin:0;font-size:14px;line-height:1.4;color:var(--secondary);font-variant-numeric:tabular-nums}
body.balanced-blue.minimal-calm .student-profile .profile-deals-summary>span:first-child{font-weight:600;color:var(--ink)}
body.balanced-blue.minimal-calm .student-profile .profile-deals-summary [data-tone="green"]{color:var(--card-green);font-weight:600}
body.balanced-blue.minimal-calm .student-profile .profile-deals-summary [data-tone="amber"]{color:var(--card-amber);font-weight:600}
body.balanced-blue.minimal-calm .student-profile .profile-deals-summary [data-tone="red"]{color:var(--card-red);font-weight:600}
body.balanced-blue.minimal-calm .student-profile .profile-deals-summary [data-tone="muted"]{color:var(--secondary)}
body.balanced-blue.minimal-calm .student-profile .profile-deals-dot{color:var(--secondary)}
body.balanced-blue.minimal-calm .student-profile .profile-deals-note{margin:0;font-size:13px;color:var(--card-amber)}
body.balanced-blue.minimal-calm .student-profile :is(.profile-deals-note,.profile-tools) .ful-link{padding:0;border:0;background:none;font:inherit;color:var(--ink);text-decoration:underline;text-underline-offset:3px;cursor:pointer}

body.balanced-blue.minimal-calm .student-profile .ful-current-deals .profile-deal-list{display:grid;grid-template-columns:minmax(0,1fr);justify-content:stretch;gap:0;margin:0;padding:0;list-style:none;box-shadow:inset 0 1px 0 var(--line)}
body.balanced-blue.minimal-calm .student-profile .ful-current-deals .profile-deal{display:grid;grid-template-columns:28px minmax(0,1.45fr) minmax(0,1fr) minmax(0,1fr) minmax(0,.9fr) 92px;align-items:center;gap:14px;min-height:60px;margin:0;padding:10px 0;border-radius:0;background:none;box-shadow:inset 0 -1px 0 var(--line);font-size:14px;font-weight:400;line-height:1.35}
body.balanced-blue.minimal-calm .student-profile .ful-current-deals .profile-deal .ful-deal-logo{width:28px;height:28px;flex-basis:28px;border-radius:7px;font-size:13px;font-weight:600;color:var(--ink)}
body.balanced-blue.minimal-calm .student-profile .ful-current-deals .profile-deal .ful-deal-logo img{width:28px;height:28px}
body.balanced-blue.minimal-calm .student-profile .ful-current-deals .profile-deal :is(.profile-deal-name,.profile-deal-fact){display:grid;gap:2px;min-width:0}
body.balanced-blue.minimal-calm .student-profile .ful-current-deals .profile-deal :is(.profile-deal-name strong,.profile-deal-main){min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;color:var(--ink)}
body.balanced-blue.minimal-calm .student-profile .ful-current-deals .profile-deal .profile-deal-name strong{font-weight:600}
body.balanced-blue.minimal-calm .student-profile .ful-current-deals .profile-deal small{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:var(--secondary)}
body.balanced-blue.minimal-calm .student-profile .ful-current-deals .profile-deal .profile-deal-main strong{font-size:15px;font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums}
body.balanced-blue.minimal-calm .student-profile .ful-current-deals .profile-deal .profile-deal-unit{font-size:12px;color:var(--secondary)}
body.balanced-blue.minimal-calm .student-profile .ful-current-deals .profile-deal .profile-deal-main[data-tone="green"]{font-weight:600;color:var(--card-green)}
body.balanced-blue.minimal-calm .student-profile .ful-current-deals .profile-deal .profile-deal-empty{font-size:14px;color:var(--secondary)}
body.balanced-blue.minimal-calm .student-profile .ful-current-deals .profile-deal small a{color:var(--secondary);text-decoration:underline;text-decoration-color:color-mix(in srgb,var(--secondary) 45%,transparent);text-underline-offset:3px}
body.balanced-blue.minimal-calm .student-profile .ful-current-deals .profile-deal small a:hover{color:var(--ink);text-decoration-color:currentColor}
body.balanced-blue.minimal-calm .student-profile .ful-current-deals .profile-deal small a:focus-visible{outline:2px solid var(--ink);outline-offset:2px;border-radius:2px}
body.balanced-blue.minimal-calm .student-profile .ful-current-deals .profile-deal .profile-deal-placed{grid-column:3/6}
body.balanced-blue.minimal-calm .student-profile .ful-current-deals .profile-deal:is([data-deal-kind="placed"],[data-deal-state="inactive"]) .profile-deal-name strong{color:var(--secondary)}
body.balanced-blue.minimal-calm .student-profile .ful-current-deals .profile-deal .profile-deal-status{display:flex;justify-content:flex-end;min-width:0}

/* The freshness chip, in the same tone-chip style as the rest of the pop-up. */
body.balanced-blue.minimal-calm .student-profile .profile-deal-chip{--tone:var(--secondary);display:inline-flex;align-items:center;min-height:22px;padding:0 8px;border-radius:var(--r-badge,999px);font-size:12px!important;font-weight:500;line-height:1;white-space:nowrap;background:color-mix(in srgb,var(--tone) 11%,var(--surface));color:color-mix(in srgb,var(--tone) 82%,var(--ink))!important}
body.balanced-blue.minimal-calm .student-profile .profile-deal-chip[data-tone="green"]{--tone:var(--popup-green)}
body.balanced-blue.minimal-calm .student-profile .profile-deal-chip[data-tone="amber"]{--tone:var(--popup-amber)}
body.balanced-blue.minimal-calm .student-profile .profile-deal-chip[data-tone="red"]{--tone:var(--popup-red)}
body.balanced-blue.minimal-calm .student-profile .profile-deal-chip[data-tone="neutral"]{--tone:var(--accent)}
body.balanced-blue.minimal-calm.theme-dark .student-profile .profile-deal-chip{background:color-mix(in srgb,var(--tone) 18%,var(--surface))}

/* Tools: when they last opened the dashboard, then one row per tool. */
body.balanced-blue.minimal-calm .student-profile .profile-tools{display:grid;gap:12px}
body.balanced-blue.minimal-calm .student-profile .profile-tools-head{margin:0;font-size:15px;font-weight:600;line-height:1.35;color:var(--ink)}
body.balanced-blue.minimal-calm .student-profile .profile-tools-head[data-tone="amber"]{color:var(--card-amber)}
body.balanced-blue.minimal-calm .student-profile .profile-tools-head[data-tone="red"]{color:var(--card-red)}
body.balanced-blue.minimal-calm .student-profile .profile-tools-head[data-tone="muted"]{font-weight:400;color:var(--secondary)}
body.balanced-blue.minimal-calm .student-profile .profile-tool-list{display:grid;margin:0;padding:0;list-style:none;box-shadow:inset 0 1px 0 var(--line)}
body.balanced-blue.minimal-calm .student-profile .profile-tool{display:grid;grid-template-columns:8px minmax(0,1fr) auto 84px;align-items:center;gap:12px;min-height:40px;margin:0;box-shadow:inset 0 -1px 0 var(--line);font-size:14px;line-height:1.3}
body.balanced-blue.minimal-calm .student-profile .profile-tool>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.balanced-blue.minimal-calm .student-profile .profile-tool-name{font-weight:500;color:var(--ink)}
body.balanced-blue.minimal-calm .student-profile :is(.profile-tool-when,.profile-tool-count){color:var(--secondary);font-variant-numeric:tabular-nums}
body.balanced-blue.minimal-calm .student-profile .profile-tool-count{text-align:right;font-size:13px}
body.balanced-blue.minimal-calm .student-profile .profile-tool[data-active="true"] .profile-tool-when{color:var(--ink)}
body.balanced-blue.minimal-calm .student-profile .profile-tool[data-tool-state="never"] :is(.profile-tool-name,.profile-tool-when){color:var(--secondary);font-weight:400}
body.balanced-blue.minimal-calm .student-profile .profile-deal-fact[data-fact="views"] small a{color:var(--card-green,#1f8a5b);font-weight:600;text-decoration:none}
body.balanced-blue.minimal-calm .student-profile .profile-deal-fact[data-fact="views"] small a:hover{text-decoration:underline;text-underline-offset:3px}
/* The "online" dot: green with a soft ring when used this week, a quiet grey otherwise. */
body.balanced-blue.minimal-calm .student-profile .profile-tool-dot{display:inline-block;flex:none;width:8px;height:8px;border-radius:50%;background:var(--line);vertical-align:middle}
body.balanced-blue.minimal-calm .student-profile .profile-tool-dot[data-active="true"]{background:var(--card-green,#1f8a5b);box-shadow:0 0 0 3px color-mix(in srgb,var(--card-green,#1f8a5b) 18%,transparent)}
body.balanced-blue.minimal-calm .student-profile .profile-tools-head .profile-tool-dot{margin:0 10px 2px 0}
body.balanced-blue.minimal-calm .student-profile .profile-tool .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body.balanced-blue.minimal-calm .student-profile .profile-tools-note{margin:0;font-size:12px;color:var(--secondary)}

/* Phones: all five pop-up tabs fit on one line (the shared tab strip would otherwise scroll "tools" out of sight). */
@media(max-width:560px){
  body.balanced-blue.minimal-calm #drawer .student-profile .student-profile-tabs.page-tabs{display:flex;width:100%;gap:2px}
  body.balanced-blue.minimal-calm #drawer .student-profile .student-profile-tabs.page-tabs button{flex:1 1 auto;min-width:0;gap:4px;padding:5px 4px;font-size:13px}
  body.balanced-blue.minimal-calm #drawer .student-profile .student-profile-tabs.page-tabs .student-profile-count{min-width:16px;margin-left:0;padding:0 4px;font-size:11px}
}
/* Phones: each deal is its name and chip, then three short fact lines; each tool is two lines. */
@media(max-width:700px){
  body.balanced-blue.minimal-calm .student-profile .ful-current-deals .profile-deal{grid-template-columns:28px minmax(0,1fr) auto;align-items:start;gap:3px 12px;padding:12px 0}
  body.balanced-blue.minimal-calm .student-profile .ful-current-deals .profile-deal .ful-deal-logo{grid-row:1/span 2}
  body.balanced-blue.minimal-calm .student-profile .ful-current-deals .profile-deal .profile-deal-name{grid-column:2;grid-row:1;margin-bottom:3px}
  body.balanced-blue.minimal-calm .student-profile .ful-current-deals .profile-deal .profile-deal-status{grid-column:3;grid-row:1}
  body.balanced-blue.minimal-calm .student-profile .ful-current-deals .profile-deal :is(.profile-deal-fact,.profile-deal-placed){grid-column:2/-1;display:flex;flex-wrap:wrap;align-items:baseline;gap:0 6px}
  body.balanced-blue.minimal-calm .student-profile .ful-current-deals .profile-deal .profile-deal-fact small::before{content:"·";margin-right:6px}
  body.balanced-blue.minimal-calm .student-profile .ful-current-deals .profile-deal :is(.profile-deal-main,.profile-deal-empty,.profile-deal-main strong){font-size:13px}
  body.balanced-blue.minimal-calm .student-profile .ful-current-deals .profile-deal small{font-size:12px}
}

/* 2026-09-26 student pop-up: wider and taller so the overview never scrolls on a laptop. The facts sit on the left,
   actionables, follow-up and notes on the right. Their photo sits beside the name, and "message" opens their chat. */
body.balanced-blue.minimal-calm #drawer:has(.student-profile.student-profile-simple){width:min(1120px,calc(100vw - 48px));height:min(900px,calc(100dvh - 32px));max-height:calc(100dvh - 32px)}
body.balanced-blue.minimal-calm #drawer:has(.student-profile.student-profile-simple) #drawer-title{display:flex;align-items:center;gap:12px;min-width:0}
body.balanced-blue.minimal-calm #drawer:has(.student-profile.student-profile-simple) #drawer-title .ful-avatar{width:40px;height:40px;flex:none;font-size:15px}
body.balanced-blue.minimal-calm .student-profile-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 16px}
body.balanced-blue.minimal-calm .student-profile-top .student-profile-summary{margin:0}
body.balanced-blue.minimal-calm .student-profile-top [data-profile-message]{flex:none;min-width:112px;justify-content:center}
@media(min-width:900px){
  body.balanced-blue.minimal-calm .student-profile-simple [data-profile-panel="overview"]:not([hidden]){display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);column-gap:40px;align-items:start}
  body.balanced-blue.minimal-calm .student-profile-simple [data-profile-panel="overview"]>*{grid-column:1;min-width:0}
  body.balanced-blue.minimal-calm .student-profile-simple [data-profile-panel="overview"]>.student-action-area{grid-column:2;grid-row:1/span 4}
  body.balanced-blue.minimal-calm .student-profile-simple [data-profile-panel="overview"] .student-csm-list .student-csm-item{grid-template-columns:96px minmax(0,1fr) 150px;gap:12px}
  body.balanced-blue.minimal-calm .student-profile-simple .student-action-area .student-profile-section:first-child{margin-top:0}
  body.balanced-blue.minimal-calm .student-profile-simple .student-action-area .student-profile-section h3{margin-top:0}
  body.balanced-blue.minimal-calm #drawer .student-profile-simple .student-action-area textarea.input{min-height:96px}
  body.balanced-blue.minimal-calm #drawer .student-profile-simple .student-action-area #ful-student-note{min-height:150px}
}

/* Tools tab grouped like the student dashboard's sidebar: the section line, then its tools indented under it. */
body.balanced-blue.minimal-calm .student-profile .profile-tools{gap:0}
body.balanced-blue.minimal-calm .student-profile .profile-tools-head{margin:0 0 12px}
body.balanced-blue.minimal-calm .student-profile .profile-tool-columns{min-height:28px;box-shadow:inset 0 -1px 0 var(--line);font-size:12px}
body.balanced-blue.minimal-calm .student-profile .profile-tool-columns>span{color:var(--secondary)}
body.balanced-blue.minimal-calm .student-profile .profile-tool-columns .profile-tool-count{font-size:12px}
body.balanced-blue.minimal-calm .student-profile .profile-tool-group{box-shadow:inset 0 -1px 0 var(--line)}
body.balanced-blue.minimal-calm .student-profile .profile-tool-section{box-shadow:none;min-height:44px}
body.balanced-blue.minimal-calm .student-profile .profile-tool-section .profile-tool-name{font-weight:600}
body.balanced-blue.minimal-calm .student-profile .profile-tool-group .profile-tool-list{box-shadow:none;padding:0 0 8px}
body.balanced-blue.minimal-calm .student-profile .profile-tool-group .profile-tool-list .profile-tool{min-height:32px;box-shadow:none;font-size:13px}
body.balanced-blue.minimal-calm .student-profile .profile-tool-group .profile-tool-list .profile-tool-name{padding-left:14px;font-weight:400}
body.balanced-blue.minimal-calm .student-profile .profile-tool-group .profile-tool-list .profile-tool-dot{justify-self:center;width:6px;height:6px}
body.balanced-blue.minimal-calm .student-profile .profile-tool-group[data-tool-state="never"] .profile-tool-section :is(.profile-tool-name,.profile-tool-when){color:var(--card-red);font-weight:500}
body.balanced-blue.minimal-calm .student-profile .profile-tools-note{margin-top:12px}

/* Card tags: days left never shrinks; a long payment tag is the one that trims. */
body.balanced-blue.minimal-calm .ful-card-lean .ful-card-money .ful-card-chip[data-chip="program"]{flex:none}

/* Calls tab: a call with no date is a button that opens the calendar to set it. */
body.balanced-blue.minimal-calm .student-profile .ful-contact-set{display:inline-flex;align-items:baseline;gap:8px;margin:0;padding:2px 6px;border:0;border-radius:6px;background:transparent;box-shadow:none;font:inherit;cursor:pointer}
body.balanced-blue.minimal-calm .student-profile .ful-contact-set:hover,body.balanced-blue.minimal-calm .student-profile .ful-contact-set:focus-visible{background:var(--soft)}
body.balanced-blue.minimal-calm .student-profile .ful-contact-set-hint{font-size:12px;color:var(--secondary);text-decoration:underline;text-underline-offset:3px}
body.balanced-blue.minimal-calm .student-profile .ful-contact-set-field{display:inline-block;width:150px;text-align:left}
body.balanced-blue.minimal-calm .student-profile .ful-contact-set-field .input{width:100%;min-height:32px;font-size:13px}

/* Calls tab: "+ call" beside a known call date, and "we had this call" on a booked call fathom has no recording of. */
body.balanced-blue.minimal-calm .student-profile .ful-contact-add{margin:0 0 0 8px;padding:1px 6px;border:0;border-radius:6px;background:transparent;box-shadow:none;font:inherit;font-size:12px;color:var(--secondary);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
body.balanced-blue.minimal-calm .student-profile .ful-contact-add:hover,body.balanced-blue.minimal-calm .student-profile .ful-contact-add:focus-visible{background:var(--soft);color:var(--ink)}
body.balanced-blue.minimal-calm .student-profile .student-csm-had-call{min-height:28px;padding:0 10px;font-size:12px}
