/* HelioLearn workspace design system (owner 2026-11-27, from the image-service "design system" sheet, professional).
   Loaded last on the tuition workspace pages; scoped to .hl-workspace so public pages are unchanged.
   Rules: no bold text, small fonts, coral only for the main action, 1px borders, subtle shadows, 8px grid. */
.hl-workspace{
  --ds-page:#fdf8f0;--ds-surface:#ffffff;--ds-ink:#17463c;--ds-text:#243a34;--ds-muted:#5b6f69;--ds-line:#e2ece6;--ds-line-strong:#cfe0d6;
  --ds-coral:#ff8a6b;--ds-coral-hover:#ff9d82;--ds-coral-ink:#1d2b28;--ds-green:#2a9d8f;--ds-soft:#e4f2ea;--ds-soft-strong:#d7ecdf;
  --ds-success:#e0f5e9;--ds-success-ink:#1d6b46;--ds-warning:#fff4d6;--ds-warning-ink:#7a5a00;--ds-danger:#fde2e2;--ds-danger-ink:#9b2c2c;
  --ds-info:#e6f0fb;--ds-info-ink:#24507a;--ds-live:#ffe8e1;--ds-live-ink:#a83a1c;--ds-rec:#efe6fb;--ds-rec-ink:#5b3a8c;
  --ds-radius:14px;--ds-radius-sm:10px;--ds-shadow:0 1px 2px rgba(23,70,60,.05),0 1px 1px rgba(23,70,60,.03);
  --ds-serif:Georgia,'Times New Roman',serif;--ds-sans:'DM Sans',system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;
  background:var(--ds-page);color:var(--ds-text)
}
.hl-workspace,.hl-workspace *{font-weight:400}
.hl-workspace b,.hl-workspace strong,.hl-workspace th{font-weight:500}
.hl-workspace .workspace-body{font-family:var(--ds-sans);font-size:14px;line-height:1.55}
.hl-workspace .workspace-body h1,.hl-workspace .workspace-body h2,.hl-workspace .workspace-body h3{font-family:var(--ds-serif);color:var(--ds-ink);font-weight:400;letter-spacing:0}
.hl-workspace .workspace-body h2{font-size:22px;line-height:1.3;margin:0 0 8px}
.hl-workspace .workspace-body h3{font-size:17px;line-height:1.35;margin:0 0 6px}
.hl-workspace .workspace-body .muted,.hl-workspace .workspace-body .help,.hl-workspace .workspace-body small{color:var(--ds-muted);font-size:13px}
.hl-workspace .workspace-head h1{font-family:var(--ds-serif);font-weight:400;color:var(--ds-ink)}

/* ---------- buttons ---------- */
.hl-workspace .workspace-body button,.hl-workspace .workspace-body .db-btn,.hl-workspace .workspace-body a.button{
  font-family:var(--ds-sans)!important;font-size:14px!important;font-weight:400!important;line-height:1.2;min-height:40px;padding:9px 16px!important;
  border-radius:var(--ds-radius-sm)!important;border:1px solid var(--ds-line-strong)!important;background:var(--ds-surface)!important;color:var(--ds-ink)!important;
  box-shadow:none!important;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:background .15s,border-color .15s;text-decoration:none
}
.hl-workspace .workspace-body button:hover,.hl-workspace .workspace-body .db-btn:hover{border-color:var(--ds-ink)!important;background:#f6faf7!important}
/* primary: form submits, dashboard primary actions, Join session */
.hl-workspace .workspace-body form button[type=submit],.hl-workspace .workspace-body button.primary,.hl-workspace .workspace-body .db-btn.db-primary,.hl-workspace .workspace-body button.hl-join-session{
  background:var(--ds-coral)!important;border-color:var(--ds-coral)!important;color:var(--ds-coral-ink)!important}
.hl-workspace .workspace-body form button[type=submit]:hover,.hl-workspace .workspace-body button.primary:hover,.hl-workspace .workspace-body .db-btn.db-primary:hover,.hl-workspace .workspace-body button.hl-join-session:hover{
  background:var(--ds-coral-hover)!important;border-color:var(--ds-coral-hover)!important}
/* secondary (outline green) */
.hl-workspace .workspace-body button.secondary,.hl-workspace .workspace-body .db-btn.db-secondary{background:transparent!important;border-color:var(--ds-ink)!important;color:var(--ds-ink)!important}
.hl-workspace .workspace-body button.secondary:hover,.hl-workspace .workspace-body .db-btn.db-secondary:hover{background:var(--ds-soft)!important}
/* quiet (link style) */
.hl-workspace .workspace-body .db-link,.hl-workspace .workspace-body button.quiet{background:none!important;border:0!important;min-height:0;padding:4px 2px!important;color:var(--ds-ink)!important;text-decoration:underline;text-underline-offset:3px}
/* danger */
.hl-workspace .workspace-body button.danger,.hl-workspace .workspace-body details[open]>form button[type=submit].danger{background:var(--ds-surface)!important;border-color:#e7b4b4!important;color:var(--ds-danger-ink)!important}
.hl-workspace .workspace-body button:disabled,.hl-workspace .workspace-body button[aria-disabled=true]{background:#f1f3f2!important;border-color:#e3e7e5!important;color:#9aa5a1!important;cursor:not-allowed}
.hl-workspace .workspace-body .db-btn-sm,.hl-workspace .workspace-body button.small{min-height:32px;padding:5px 12px!important;font-size:13px!important}
.hl-workspace .workspace-body .db-btn-wide{width:100%}
.hl-workspace .workspace-body button:focus-visible,.hl-workspace .workspace-body a:focus-visible,.hl-workspace .workspace-body input:focus-visible,.hl-workspace .workspace-body select:focus-visible,.hl-workspace .workspace-body textarea:focus-visible{outline:2px solid var(--ds-green)!important;outline-offset:2px}

/* ---------- forms ---------- */
.hl-workspace .workspace-body label{font-size:13px;color:var(--ds-ink);margin-bottom:12px}
.hl-workspace .workspace-body input:not([type=checkbox]):not([type=radio]):not([type=range]),.hl-workspace .workspace-body select,.hl-workspace .workspace-body textarea{
  font-family:var(--ds-sans);font-size:14px;color:var(--ds-text);background:var(--ds-surface);border:1px solid var(--ds-line-strong);border-radius:var(--ds-radius-sm);padding:9px 12px;min-height:40px;box-shadow:none}
.hl-workspace .workspace-body input:focus,.hl-workspace .workspace-body select:focus,.hl-workspace .workspace-body textarea:focus{border-color:var(--ds-green);outline:none;box-shadow:0 0 0 3px rgba(42,157,143,.15)}
.hl-workspace .workspace-body input[aria-invalid=true],.hl-workspace .workspace-body form.was-submitted :invalid{border-color:#e7b4b4;background:#fffafa}
.hl-workspace .workspace-body input[type=checkbox],.hl-workspace .workspace-body input[type=radio]{accent-color:var(--ds-ink);width:16px;height:16px}
.hl-workspace .workspace-body details{border:1px solid var(--ds-line);border-radius:var(--ds-radius);background:var(--ds-surface);padding:10px 14px}
.hl-workspace .workspace-body details>summary{cursor:pointer;color:var(--ds-ink);font-size:14px}

/* ---------- status pills ---------- */
.hl-workspace .workspace-body .tag,.hl-workspace .ds-pill{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:999px;font-size:12px;line-height:1.5;background:#eef2f0;color:#3d4f4a;border:0}
.hl-workspace .workspace-body .tag.good,.hl-workspace .ds-pill.done,.hl-workspace .ds-pill.paid{background:var(--ds-success);color:var(--ds-success-ink)}
.hl-workspace .workspace-body .tag.bad,.hl-workspace .ds-pill.cancelled,.hl-workspace .ds-pill.unpaid{background:var(--ds-danger);color:var(--ds-danger-ink)}
.hl-workspace .ds-pill.upcoming,.hl-workspace .ds-pill.scheduled{background:var(--ds-info);color:var(--ds-info-ink)}
.hl-workspace .ds-pill.live{background:var(--ds-live);color:var(--ds-live-ink)}
.hl-workspace .ds-pill.recording{background:var(--ds-rec);color:var(--ds-rec-ink)}
.hl-workspace .ds-pill.pending{background:var(--ds-warning);color:var(--ds-warning-ink)}
.hl-workspace .ds-pill.ended{background:#eef2f0;color:#55635f}
.hl-workspace .ds-pill.auto{background:var(--ds-soft);color:var(--ds-ink)}
.hl-workspace .ds-pill.live::before,.hl-workspace .ds-pill.recording::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}

/* ---------- cards ---------- */
.hl-workspace .workspace-body :is(.data-card,.card,.panel,.db-card,.workspace-section>article){background:var(--ds-surface);border:1px solid var(--ds-line)!important;border-radius:var(--ds-radius)!important;box-shadow:var(--ds-shadow)}
.hl-workspace .workspace-body .db-card{padding:20px 22px}
.hl-workspace .db-card-head{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.hl-workspace .db-card-head h2{font-size:19px!important;margin:0!important;display:flex;align-items:center;gap:10px;flex:1}
.hl-workspace .db-card-head .db-ico{width:18px;height:18px;color:var(--ds-green)}

/* ---------- tables ---------- */
.hl-workspace .workspace-body table{width:100%;border-collapse:separate;border-spacing:0;font-size:13px;font-variant-numeric:tabular-nums}
.hl-workspace .workspace-body thead th{background:#f3f8f5;color:var(--ds-muted);font-size:11px;letter-spacing:.06em;text-transform:uppercase;font-weight:500;text-align:left;padding:9px 12px;border-bottom:1px solid var(--ds-line)}
.hl-workspace .workspace-body thead th:first-child{border-top-left-radius:10px}.hl-workspace .workspace-body thead th:last-child{border-top-right-radius:10px}
.hl-workspace .workspace-body tbody td{padding:11px 12px;border-bottom:1px solid var(--ds-line);vertical-align:middle;color:var(--ds-text)}
.hl-workspace .workspace-body tbody tr:last-child td{border-bottom:0}
.hl-workspace .workspace-body caption{caption-side:bottom;text-align:left;color:var(--ds-muted);font-size:12px;padding-top:8px}

/* ---------- notices ---------- */
.hl-workspace .notice{border-radius:var(--ds-radius-sm)!important;border:1px solid #cfe0f4!important;background:var(--ds-info)!important;color:var(--ds-info-ink)!important;padding:12px 14px!important;font-size:13px}
.hl-workspace .notice.success{border-color:#bfe5cf!important;background:var(--ds-success)!important;color:var(--ds-success-ink)!important}
.hl-workspace .notice.warning{border-color:#f0dc9c!important;background:var(--ds-warning)!important;color:var(--ds-warning-ink)!important}
.hl-workspace .notice.error{border-color:#efbcbc!important;background:var(--ds-danger)!important;color:var(--ds-danger-ink)!important}

/* ---------- side menu (grouped) ---------- */
.hl-workspace .workspace-nav{background:var(--ds-surface)!important;border:1px solid var(--ds-line)!important;border-radius:var(--ds-radius)!important;box-shadow:var(--ds-shadow);padding:12px 10px!important;gap:0!important}
.hl-workspace .ds-nav-group{display:flex;flex-direction:column;gap:2px;padding:6px 0;border-top:1px solid var(--ds-line)}
.hl-workspace .ds-nav-group:first-child{border-top:0;padding-top:0}
.hl-workspace .ds-nav-group h4{margin:6px 12px 4px;font-family:var(--ds-sans);font-size:11px;font-weight:500;letter-spacing:.1em;text-transform:uppercase;color:var(--ds-muted)}
.hl-workspace .workspace-nav button{font-family:var(--ds-sans)!important;font-size:14px!important;font-weight:400!important;border:0!important;background:none!important;border-radius:10px!important;min-height:38px;padding:8px 12px!important;color:var(--ds-text)!important;justify-content:flex-start!important;text-align:left}
.hl-workspace .workspace-nav button:hover{background:#f3f8f5!important}
.hl-workspace .workspace-nav button[aria-current=page]{background:var(--ds-soft-strong)!important;color:var(--ds-ink)!important}
.hl-workspace .workspace-more{display:none}

/* ---------- phone: bottom tab bar + menu drawer ---------- */
.ds-tabbar{display:none}
.ds-drawer-head{display:none}
@media (max-width:860px){
  .hl-workspace .ds-tabbar{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;left:0;right:0;bottom:0;z-index:60;background:var(--ds-surface);border-top:1px solid var(--ds-line);padding:6px 4px calc(6px + env(safe-area-inset-bottom));box-shadow:0 -2px 10px rgba(23,70,60,.06)}
  .hl-workspace .ds-tabbar button{all:unset;display:flex;flex-direction:column;align-items:center;gap:3px;font:12px var(--ds-sans);color:var(--ds-muted);padding:6px 0;cursor:pointer;text-align:center}
  .hl-workspace .ds-tabbar button::before{content:"";width:22px;height:22px;background:currentColor;-webkit-mask:var(--ico) center/22px no-repeat;mask:var(--ico) center/22px no-repeat}
  .hl-workspace .ds-tabbar button[aria-current=page]{color:var(--ds-ink)}
  .hl-workspace .ds-tabbar button[aria-current=page]::after{content:"";width:18px;height:2px;border-radius:2px;background:var(--ds-coral);margin-top:1px}
  .hl-workspace #workspaceArea{padding-bottom:76px}
  .hl-workspace .workspace-nav{position:fixed!important;top:0;right:0;bottom:0;left:auto;width:min(86vw,340px);z-index:70;overflow:auto;border-radius:16px 0 0 16px!important;transform:translateX(105%);transition:transform .2s ease;display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important}
  body.ds-nav-open .hl-workspace .workspace-nav,body.ds-nav-open.hl-workspace .workspace-nav{transform:none}
  .hl-workspace .workspace-nav>*{flex:none!important}
  .hl-workspace .ds-drawer-head{display:flex;align-items:center;justify-content:space-between;padding:4px 6px 10px;border-bottom:1px solid var(--ds-line);margin-bottom:6px}
  .hl-workspace .ds-drawer-head span{font:15px var(--ds-serif);color:var(--ds-ink)}
  .ds-scrim{display:none}
  body.ds-nav-open .ds-scrim{display:block;position:fixed;inset:0;background:rgba(20,40,35,.35);z-index:65}
}
@media (prefers-reduced-motion:reduce){.hl-workspace .workspace-nav{transition:none}}

/* ---------- dashboards (teacher, guardian, admin) ---------- */
.hl-workspace .ds-dash{display:grid;gap:20px}
.hl-workspace .ds-teacher,.hl-workspace .ds-two-col{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:20px;align-items:start}
.hl-workspace .ds-col{display:grid;gap:20px;align-content:start;min-width:0}
.hl-workspace .ds-row3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:stretch}
.hl-workspace .ds-dash .db-card{margin:0;min-width:0}
.hl-workspace .ds-next-title{font-size:21px!important;margin:2px 0 6px!important}
.hl-workspace .ds-next-when{display:flex;align-items:center;gap:8px;color:var(--ds-muted);margin:0 0 14px}
.hl-workspace .ds-next-when .db-ico{width:16px;height:16px}
.hl-workspace .ds-next-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.hl-workspace .ds-next-actions .hl-join-session{width:auto;min-width:160px}
.hl-workspace .ds-parent .ds-next-actions{flex-direction:column;align-items:stretch}
.hl-workspace .ds-parent .ds-next-actions .hl-join-session{width:100%}
.hl-workspace .ds-teacher-info{display:flex;align-items:center;gap:12px;margin:0 0 14px}
.hl-workspace .ds-teacher-info small{display:block}
.hl-workspace .db-avatar{display:inline-grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--ds-soft-strong);color:var(--ds-ink);font:13px var(--ds-sans);flex:none}
.hl-workspace .db-note{margin:10px 0 0;color:var(--ds-muted);font-size:13px;min-height:0}
.hl-workspace .db-note:empty{display:none}
/* timeline */
.hl-workspace .ds-timeline{list-style:none;margin:0;padding:0}
.hl-workspace .ds-timeline li{display:grid;grid-template-columns:150px 14px minmax(0,1fr) auto;align-items:center;gap:12px;padding:10px 8px;border-bottom:1px solid var(--ds-line);border-radius:8px}
.hl-workspace .ds-timeline li:last-child{border-bottom:0}
.hl-workspace .ds-timeline li.is-live{background:#f6fbf8}
.hl-workspace .ds-tl-time{color:var(--ds-muted);font-variant-numeric:tabular-nums;font-size:13px}
.hl-workspace .ds-tl-dot{width:10px;height:10px;border-radius:50%;border:2px solid var(--ds-green);background:var(--ds-surface)}
.hl-workspace .ds-timeline li.is-live .ds-tl-dot{background:var(--ds-green)}
.hl-workspace .workspace-body button.ds-tl-what{all:unset;cursor:pointer;color:var(--ds-ink);font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hl-workspace .workspace-body button.ds-tl-what:hover{text-decoration:underline}
/* row lists */
.hl-workspace .ds-rows{list-style:none;margin:0;padding:0}
.hl-workspace .ds-rows li{display:flex;align-items:center;gap:12px;padding:11px 0;border-bottom:1px solid var(--ds-line)}
.hl-workspace .ds-rows li:last-child{border-bottom:0}
.hl-workspace .ds-rows li>div{flex:1;min-width:0}
.hl-workspace .ds-rows li>div>span{display:block;color:var(--ds-ink)}
.hl-workspace .ds-rows li>div>small{display:block}
/* stats */
.hl-workspace .ds-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0}
.hl-workspace .ds-stats>div{padding:10px 14px 10px 0;border-left:0}
.hl-workspace .ds-stats>div:nth-child(2n){padding-left:14px;border-left:1px solid var(--ds-line)}
.hl-workspace .ds-stats>div:nth-child(n+3){border-top:1px solid var(--ds-line)}
.hl-workspace .ds-stats b{display:block;font:28px/1.2 var(--ds-serif);color:var(--ds-ink);font-variant-numeric:tabular-nums}
.hl-workspace .ds-stats span{color:var(--ds-muted);font-size:13px}
/* guardian */
.hl-workspace .ds-chips{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.hl-workspace .ds-chip{display:inline-flex;align-items:center;gap:10px;padding:6px 14px 6px 6px;border:1px solid var(--ds-line-strong);border-radius:999px;background:var(--ds-soft);color:var(--ds-ink)}
.hl-workspace .ds-chip .db-avatar{width:30px;height:30px;background:var(--ds-ink);color:#fff}
.hl-workspace .ds-kv{margin:10px 0 14px;display:grid;gap:0;background:#f7faf8;border-radius:10px;padding:4px 12px}
.hl-workspace .ds-kv>div{display:flex;justify-content:space-between;gap:10px;padding:7px 0;border-bottom:1px solid var(--ds-line)}
.hl-workspace .ds-kv>div:last-child{border-bottom:0}
.hl-workspace .ds-kv dt{color:var(--ds-muted)}.hl-workspace .ds-kv dd{margin:0;color:var(--ds-ink);font-variant-numeric:tabular-nums}
.hl-workspace .ds-confirm p{margin:0 0 4px}
.hl-workspace .ds-two{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.hl-workspace .ds-balance{display:flex;justify-content:space-between;align-items:center;background:var(--ds-soft);border-radius:10px;padding:14px 16px}
.hl-workspace .ds-balance b{font:26px var(--ds-serif);color:var(--ds-ink);font-variant-numeric:tabular-nums}
.hl-workspace .ds-balance.due{background:#fff1ec}.hl-workspace .ds-balance.due b{color:#a83a1c}
.hl-workspace .ds-barchart{display:flex;align-items:flex-end;gap:14px;height:170px;padding:10px 4px 0;border-bottom:1px solid var(--ds-line)}
.hl-workspace .ds-bar{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;gap:4px}
.hl-workspace .ds-bar i{display:block;width:100%;max-width:44px;background:var(--ds-green);border-radius:6px 6px 0 0}
.hl-workspace .ds-bar-val{font-size:12px;color:var(--ds-ink)}.hl-workspace .ds-bar small{font-size:11px;white-space:nowrap}
/* admin */
.hl-workspace .ds-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.hl-workspace .workspace-body button.ds-tile{all:unset;box-sizing:border-box;cursor:pointer;display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:14px;align-items:center;padding:18px 20px;background:var(--ds-surface);border:1px solid var(--ds-line);border-radius:var(--ds-radius);box-shadow:var(--ds-shadow)}
.hl-workspace .workspace-body button.ds-tile:hover{border-color:var(--ds-line-strong)}
.hl-workspace .ds-tile .db-ico{grid-row:1/3;width:28px;height:28px;color:var(--ds-ink)}
.hl-workspace .ds-tile span{color:var(--ds-muted);font-size:13px}
.hl-workspace .ds-tile b{font:26px/1.2 var(--ds-serif);color:var(--ds-ink);font-variant-numeric:tabular-nums}
.hl-workspace .ds-pipe{display:flex;align-items:stretch;gap:8px;margin-bottom:10px}
.hl-workspace .ds-step{flex:1;display:flex;flex-direction:column;align-items:center;gap:4px;padding:12px 6px;border:1px solid var(--ds-line);border-radius:10px;background:#fbfdfc}
.hl-workspace .ds-step .db-ico{width:20px;height:20px;color:var(--ds-ink)}
.hl-workspace .ds-step span{font-size:12px;color:var(--ds-muted)}.hl-workspace .ds-step b{font:22px var(--ds-serif);color:var(--ds-ink)}
.hl-workspace .ds-arrow{align-self:center;color:var(--ds-muted)}
/* responsive */
@media (max-width:1180px){.hl-workspace .ds-row3{grid-template-columns:repeat(2,minmax(0,1fr))}.hl-workspace .ds-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:860px){
  .hl-workspace .ds-teacher,.hl-workspace .ds-two-col,.hl-workspace .ds-row3{grid-template-columns:minmax(0,1fr)}
  .hl-workspace .ds-dash,.hl-workspace .ds-col{gap:14px}
  .hl-workspace .ds-timeline li{grid-template-columns:minmax(0,1fr) auto;row-gap:2px}
  .hl-workspace .ds-timeline .ds-tl-dot{display:none}
  .hl-workspace .ds-timeline .ds-tl-what{grid-column:1}
  .hl-workspace .ds-timeline .ds-pill{grid-row:1/3;grid-column:2}
  .hl-workspace .ds-chips{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px}
  .hl-workspace .ds-chip{flex:none}
  .hl-workspace .ds-next-actions .hl-join-session{width:100%}
  .hl-workspace .workspace-body .db-card{padding:16px}
}
/* fixes after visual check 2026-11-27: two columns only on wide screens; plain-text controls stay plain */
@media (max-width:1279px){.hl-workspace .ds-teacher,.hl-workspace .ds-two-col{grid-template-columns:minmax(0,1fr)}}
@media (min-width:861px) and (max-width:1279px){.hl-workspace .ds-row3{grid-template-columns:repeat(2,minmax(0,1fr))}}
.hl-workspace .ds-dash .db-card-head{background:none!important;padding:0!important;border:0!important;margin:0 0 12px!important;min-height:0!important}
.hl-workspace .workspace-body button.ds-tl-what{background:none!important;border:0!important;padding:0!important;min-height:0!important;border-radius:0!important;justify-content:flex-start!important;display:block!important;width:100%;text-align:left;color:var(--ds-ink)!important;font-size:14px!important}
.hl-workspace .workspace-body button.ds-tile{background:var(--ds-surface)!important;border:1px solid var(--ds-line)!important;padding:18px 20px!important;min-height:0!important;display:grid!important;justify-content:stretch!important;text-align:left;border-radius:var(--ds-radius)!important}
.hl-workspace .workspace-body button.ds-tile:hover{border-color:var(--ds-line-strong)!important;background:#fbfdfc!important}
.hl-workspace .db-cal-key{flex-wrap:wrap}.hl-workspace .db-cal-key .k{white-space:nowrap}
/* calendar inside the new dashboards */
.hl-workspace .workspace-body button.db-cal-ev{display:block!important;width:100%!important;min-height:0!important;padding:2px 6px!important;border:0!important;border-radius:6px!important;font-size:11.5px!important;text-align:left!important;justify-content:flex-start!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-shadow:none!important}
.hl-workspace .workspace-body button.db-cal-ev.up{background:var(--ds-info)!important;color:var(--ds-info-ink)!important}
.hl-workspace .workspace-body button.db-cal-ev.done{background:#eef2f0!important;color:#4f5d58!important}
.hl-workspace .workspace-body button.db-cal-ev.off{background:var(--ds-danger)!important;color:var(--ds-danger-ink)!important;text-decoration:line-through}
.hl-workspace .workspace-body button.db-cal-more{background:none!important;border:0!important;min-height:0!important;padding:0 4px!important;font-size:11.5px!important;color:var(--ds-ink)!important;text-decoration:underline;justify-content:flex-start!important;display:block!important}
.hl-workspace .db-calcard .db-card-head button.db-link{text-decoration:none!important;font-size:20px!important;padding:0 8px!important;color:var(--ds-ink)!important}
@media(max-width:560px){.hl-workspace .workspace-body button.db-cal-ev{font-size:0!important;padding:0!important;height:6px;border-radius:3px!important}.hl-workspace .workspace-body button.db-cal-more{font-size:10px!important;padding:0!important}}
/* drawer items keep their natural height (an older phone rule stretched them to 150px) */
.hl-workspace .ds-nav-group button{flex:none!important;width:100%!important;min-height:40px!important}
.hl-workspace .ds-drawer-head button::before,.hl-workspace .ds-drawer-head button::after{display:none!important}
.hl-workspace .ds-drawer-head button{width:auto!important;min-height:32px!important}
.hl-workspace .workspace-nav button[data-view="learning-practice"],.hl-workspace .ds-tabbar button[data-view="learning-practice"]{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 11l3 3 8-8'/%3E%3Cpath d='M20 12v7a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h9'/%3E%3C/svg%3E")}
/* guardian: recordings + progress side by side, calendar full width; Play never squeezed */
.hl-workspace .ds-parent .ds-row3:last-child{grid-template-columns:repeat(2,minmax(0,1fr))}
.hl-workspace .ds-parent .ds-row3:last-child .db-calcard{grid-column:1/-1}
.hl-workspace .ds-dash .db-recs .db-rows li{display:flex;align-items:center;gap:12px}
.hl-workspace .ds-dash .db-recs .db-rows li>div{flex:1;min-width:0}
.hl-workspace .ds-dash .db-recs .db-rows a{flex:none;white-space:nowrap;min-height:34px!important;padding:6px 12px!important}
@media (max-width:860px){.hl-workspace .ds-parent .ds-row3:last-child{grid-template-columns:minmax(0,1fr)}}

/* phone fixes from the emulator check (2026-11-27) */
@media (max-width:860px){
  body.hl-workspace:not([data-view="overview"]) .workspace-head{display:none}
  .hl-workspace .db-calcard .db-card-head{flex-wrap:wrap!important}
  .hl-workspace .db-calcard .db-card-head h2{flex:1 0 100%!important;white-space:nowrap}
  .hl-workspace #studentForm{display:block}
  .hl-workspace #studentForm input{width:100%;box-sizing:border-box;margin:6px 0 12px}
  .hl-workspace #studentForm .form-actions{display:block}
  .hl-workspace #studentForm .form-actions button{width:100%}
}
.hl-workspace .ds-drawer-actions{display:inline-flex;gap:8px;align-items:center}

/* Resource picker filters (board, subject, topic search) — 2026-11-28 */
.resource-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px 12px; margin: 4px 0 8px; }
.resource-filters .form-field { margin: 0; }
.resource-filters select, .resource-filters input { width: 100%; }
.data-card ul.small { margin: 6px 0 0; padding-left: 18px; }
