/* LUNOX Fit Lab — only what Bedrock's styles.css has no class for.
   Bedrock's own tokens throughout (--brand, --line, --muted, --card, --bg,
   --brand-tint). Light theme only, like the rest of Bedrock (2026-09-30). */

/* sidebar sub-title under the Bedrock logo */
.sidebar > .sub.fl-sub { letter-spacing: .28em; color: var(--brand); font-weight: 800; }

/* filter bar: Bedrock's .row inside a card, button kept to its own width */
.fl-filters { padding-top: 6px; padding-bottom: 14px; }
.fl-filters .row > .fix button { margin-bottom: 0; }

/* single-hue magnitude bar, table beside it */
.fl-bar { position: relative; height: 10px; min-width: 90px; background: var(--brand-tint); border-radius: 4px; }
.fl-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--brand-light); border-radius: 0 4px 4px 0; }
td.fl-barcell { width: 26%; vertical-align: middle; }

.fl-chips { display: flex; gap: 4px; flex-wrap: wrap; }
.fl-chip { font-size: .72rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--brand-tint); color: var(--brand); white-space: nowrap; }

tr.fl-click { cursor: pointer; }
@media (hover: hover) { tr.fl-click:hover td { background: var(--brand-tint); } }

.fl-two { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }
.fl-two > .card { margin-bottom: 0; }
.fl-stack > * + * { margin-top: 14px; }
.fl-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.fl-head h2 { margin: 0; }
.fl-note { font-size: .78rem; color: var(--muted); margin: 2px 0 10px; }

/* the consultation card, in Bedrock's four panels */
.fl-panels { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 10px; }
.fl-panel { border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 14px; background: var(--card); }
.fl-panel h3 { margin: 0 0 6px; color: var(--brand); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
dl.fl-kv { display: grid; grid-template-columns: minmax(96px, 40%) 1fr; gap: 3px 10px; margin: 0; font-size: .86rem; }
dl.fl-kv dt { color: var(--muted); font-size: .78rem; font-weight: 600; }
dl.fl-kv dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }

.fl-photos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.fl-photos img { width: 118px; height: 118px; object-fit: cover; border-radius: 10px; border: 1.5px solid var(--line); cursor: zoom-in; background: var(--brand-tint); }
.fl-heat { width: 100%; height: auto; border-radius: 8px; border: 1.5px solid var(--line); cursor: zoom-in; margin: 6px 0; }
.fl-caps { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 8px; }
.fl-cap { border: 1.5px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.fl-cap.final { border-color: var(--brand); }

/* postural lab grid */
.fl-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.fl-pcard { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; cursor: pointer; }
@media (hover: hover) { .fl-pcard:hover { box-shadow: var(--shadow-lift); } }
.fl-pcard img, .fl-pcard .fl-noimg { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: var(--brand-tint); }
.fl-pcard .b { padding: 9px 12px 12px; font-size: .84rem; }

/* patients: list on the left, timeline on the right */
.fl-split { display: grid; grid-template-columns: 320px 1fr; gap: 14px; align-items: start; }
@media (max-width: 1000px) { .fl-split { grid-template-columns: 1fr; } }
.fl-plist { max-height: 70vh; overflow-y: auto; margin-top: 8px; }
.fl-plist button.fl-prow {
  display: block; width: 100%; text-align: left; min-height: 0; padding: 9px 10px; margin: 0; border-radius: 10px;
  background: none; color: var(--text); box-shadow: none; font-weight: 400; font-size: .88rem;
}
.fl-plist button.fl-prow b { font-weight: 700; }
@media (hover: hover) { .fl-plist button.fl-prow:hover { background: var(--brand-tint); box-shadow: none; } }
.fl-plist button.fl-prow[aria-current="true"] { background: var(--brand-tint-2); }
.fl-timeline { border-left: 2px solid var(--line); margin-left: 8px; padding-left: 18px; }
.fl-tl { position: relative; }
.fl-tl::before { content: ""; position: absolute; left: -25px; top: 20px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); border: 2px solid var(--bg); }
.fl-tl.kumo::before { background: var(--muted); }
.fl-tl.buy::before { background: var(--ok); }
.fl-tl ul { margin: 6px 0 0; padding-left: 18px; font-size: .88rem; }

/* sign-in and two-factor, inside Bedrock's login card */
.login-card .fl-title { text-align: center; font-weight: 800; letter-spacing: .3em; color: var(--brand); margin: 4px 0 2px; }
.login-card form button { width: 100%; margin-top: 16px; }
.fl-qr svg { display: block; width: 200px; height: 200px; margin: 8px auto; }
.fl-codes { font-family: ui-monospace, Consolas, monospace; display: grid; grid-template-columns: repeat(2, auto); gap: 4px 18px; justify-content: center; margin: 10px 0; }

.fl-empty { color: var(--muted); padding: 18px; text-align: center; font-size: .88rem; }

.fl-lightbox { position: fixed; inset: 0; background: rgba(28, 8, 34, .9); z-index: 60; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; }
.fl-lightbox[hidden] { display: none; }
.fl-lightbox img { max-width: 96vw; max-height: 86vh; border-radius: 10px; background: var(--card); }
.fl-lightbox .fl-lb-cap { color: #eee; margin-top: 10px; font-size: .88rem; }
.fl-lb-close { position: absolute; top: 12px; right: 16px; width: 42px; min-height: 42px; padding: 0; font-size: 26px; background: rgba(255, 255, 255, .15); box-shadow: none; }
.fl-nowrap { white-space: nowrap; }

/* ---- stage 2: KPI grading ---- */
.fl-pt { display: inline-block; min-width: 26px; padding: 1px 7px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); font-weight: 700; font-size: .78rem; text-align: center; }
label.fl-check { display: flex; align-items: center; gap: 6px; font-size: .86rem; color: var(--text); font-weight: 500; margin: 6px 0; }
label.fl-check input { flex: none; }
.fl-toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--text); color: var(--card); padding: 10px 18px; border-radius: 999px; z-index: 80; font-size: .88rem; box-shadow: var(--shadow-lift); }
.fl-toast.bad { background: var(--bad); }

/* ---- stage 2: calendars ---- */
.fl-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.fl-wd { font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 0 4px; }
.fl-day { min-height: 96px; border: 1.5px solid var(--line); border-radius: 12px; padding: 5px 6px; background: var(--card); cursor: pointer; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fl-day.out { background: var(--bg); opacity: .7; }
.fl-day.today { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.fl-day.blocked { background: repeating-linear-gradient(135deg, var(--card) 0 8px, var(--neutral-bg) 8px 12px); }
.fl-day.placing { cursor: copy; }
@media (hover: hover) { .fl-day:hover { border-color: var(--brand-light); } }
.fl-dayhead { display: flex; justify-content: space-between; font-size: .8rem; font-weight: 700; }
.fl-tags { display: flex; flex-wrap: wrap; gap: 3px; }
button.fl-ev {
  display: block; width: 100%; min-height: 0; padding: 2px 6px; margin: 0; text-align: left; border-radius: 6px;
  font-size: .74rem; font-weight: 600; line-height: 1.35; color: var(--text); box-shadow: none;
  background: color-mix(in srgb, var(--c) 14%, var(--card)); border-left: 3px solid var(--c);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
button.fl-ev.full { white-space: normal; }
button.fl-ev.tag { display: inline-block; width: auto; padding: 1px 6px; border-left-width: 0; border-radius: 999px; background: color-mix(in srgb, var(--c) 22%, var(--card)); }
button.fl-ev.blocked { background: #3b2e40; color: #fff; border-left-color: #3b2e40; }
@media (hover: hover) { button.fl-ev:hover { background: color-mix(in srgb, var(--c) 26%, var(--card)); box-shadow: none; } button.fl-ev.blocked:hover { background: #2a1f2e; } }
.fl-ev-n { font-weight: 500; opacity: .75; }
.fl-more { font-size: .72rem; }
.fl-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
button.fl-sw { width: 28px; height: 28px; min-height: 0; padding: 0; border-radius: 50%; box-shadow: none; border: 3px solid var(--card); outline: 1.5px solid var(--line); }
button.fl-sw.on { outline: 3px solid var(--text); }
.fl-comment { border-left: 3px solid var(--brand-tint-2); padding-left: 10px; }
@media (max-width: 800px) { .fl-day { min-height: 64px; } button.fl-ev { font-size: .68rem; } }

/* week / day, 24 hours */
.fl-hours { border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; }
.fl-hhead { display: grid; grid-template-columns: 56px repeat(var(--n, 7), minmax(0, 1fr)); position: sticky; top: 0; background: var(--card); z-index: 3; border-bottom: 1px solid var(--line); }
.fl-hhead.allday { position: static; min-height: 32px; padding: 4px 0; }
.fl-hhead.allday > div { padding: 0 3px; display: flex; flex-direction: column; gap: 2px; font-size: .72rem; }
button.fl-hday { min-height: 0; padding: 8px 4px; border-radius: 0; background: var(--card); color: var(--text); box-shadow: none; font-size: .8rem; }
button.fl-hday.today { color: var(--brand); background: var(--brand-tint); }
.fl-hbody { display: grid; grid-template-columns: 56px repeat(var(--n, 7), minmax(0, 1fr)); max-height: 70vh; overflow-y: auto; }
.fl-hlabels > div { font-size: .68rem; color: var(--muted); text-align: right; padding-right: 6px; border-top: 1px solid var(--line); box-sizing: border-box; }
.fl-hcol { position: relative; border-left: 1px solid var(--line); cursor: copy; }
.fl-hcol.today { background: color-mix(in srgb, var(--brand-tint) 55%, var(--card)); }
.fl-hline { position: absolute; left: 0; right: 0; border-top: 1px solid var(--line); pointer-events: none; }
button.fl-hev {
  position: absolute; min-height: 0; padding: 2px 5px; margin: 0; border-radius: 6px; overflow: hidden; text-align: left;
  font-size: .72rem; font-weight: 500; line-height: 1.25; color: var(--text); box-shadow: none; display: block;
  background: color-mix(in srgb, var(--c) 18%, var(--card)); border-left: 3px solid var(--c);
}
.fl-now { position: absolute; left: 0; right: 0; border-top: 2px solid #dc2626; z-index: 2; pointer-events: none; font-size: .64rem; color: #dc2626; font-weight: 700; padding-left: 3px; }
input[type="month"]::-webkit-calendar-picker-indicator { display: none; }

/* ---- stage 3: Prescription review + landmark tool (2026-09-30) ---- */
.fl-sc-g { background: var(--ok-bg); color: var(--ok); font-weight: 600; }
.fl-sc-a { background: #fdf3e1; color: #8a5a00; font-weight: 600; }
.fl-sc-r { background: var(--bad-bg); color: var(--bad); font-weight: 600; }
.fl-sc-b { background: var(--info-bg); color: var(--info); font-weight: 600; }
table.fl-rvheat { border-collapse: collapse; font-size: .8rem; }
table.fl-rvheat th, table.fl-rvheat td { padding: 3px 7px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.fl-rvheat td.fl-cell { cursor: pointer; min-width: 38px; text-align: center; position: relative; }
table.fl-rvheat td.fl-noted::after { content: ''; position: absolute; top: 2px; right: 2px; border: 4px solid transparent; border-top-color: currentColor; border-right-color: currentColor; opacity: .55; }
tr.fl-secrow td { background: var(--brand-tint); color: var(--brand); font-weight: 700; padding-top: 8px; }
td.fl-linecell { white-space: normal !important; min-width: 220px; }
.fl-rvedit { max-height: 70vh; overflow-y: auto; padding-right: 4px; }
.fl-rvlive { position: sticky; top: 0; z-index: 2; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; background: var(--card); padding: 8px 0; border-bottom: 1.5px solid var(--line); margin: 8px 0; }
.fl-rvsec { margin: 14px 0; }
.fl-rvsec h3 { color: var(--brand); margin: 0 0 6px; }
table.fl-rvform { width: 100%; border-collapse: collapse; font-size: .84rem; }
table.fl-rvform th { text-align: left; font-size: .74rem; }
table.fl-rvform td { padding: 3px 6px; border-bottom: 1px solid var(--line); }
table.fl-rvform td:nth-child(2), table.fl-rvform td:nth-child(3) { width: 74px; }
table.fl-rvform tr.fl-subrow td { font-style: italic; color: var(--muted); border-bottom: 0; padding-top: 8px; }
table.fl-rvform tr.fl-focus td { background: var(--brand-tint); }
input.fl-score { width: 64px; text-align: center; padding: 5px 4px; }
.fl-ticks { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0 12px; }
.fl-ph { display: flex; flex-direction: column; align-items: center; gap: 4px; }
button.fl-lmbtn { padding: 2px 10px; font-size: .74rem; }
button.fl-lmbtn.set { color: var(--ok); border-color: var(--ok); }
.fl-lmwrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; }
@media (max-width: 900px) { .fl-lmwrap { grid-template-columns: 1fr; } }
.fl-lmstage { position: relative; display: inline-block; max-width: 100%; line-height: 0; }
.fl-lmstage img { max-width: 100%; max-height: 68vh; display: block; user-select: none; -webkit-user-select: none; border-radius: 8px; }
svg.fl-lmsvg { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
svg.fl-lmsvg line { stroke-width: 2.5; vector-effect: non-scaling-stroke; }
svg.fl-lmsvg line.lv { stroke: #f5b400; stroke-dasharray: 6 4; }
svg.fl-lmsvg line.pl { stroke: #e53935; stroke-dasharray: 3 3; }
svg.fl-lmsvg line.ch { stroke: #00c2d1; }
svg.fl-lmsvg line.mid { stroke: #7c3aed; }
svg.fl-lmsvg g.pt { cursor: grab; }
svg.fl-lmsvg g.pt circle { fill: #ff2d7a; stroke: var(--card); stroke-width: 2; vector-effect: non-scaling-stroke; }
svg.fl-lmsvg g.pt.on circle { fill: #470054; }
svg.fl-lmsvg g.pt text { fill: var(--card); paint-order: stroke; stroke: #000; stroke-width: 3px; font-weight: 700; }
.fl-lmlist { display: flex; flex-direction: column; gap: 3px; max-height: 34vh; overflow-y: auto; margin-bottom: 10px; }
button.fl-lmname { text-align: left; padding: 4px 8px; font-size: .8rem; background: var(--card); color: var(--text); border: 1.5px solid var(--line); border-radius: 8px; display: flex; gap: 4px; align-items: center; }
button.fl-lmname.set { border-color: var(--ok); }
button.fl-lmname.on { border-color: var(--brand); background: var(--brand-tint); }
button.fl-lmname .x { margin-left: auto; color: var(--bad); font-weight: 700; padding: 0 4px; }
.fl-lmout h3 { font-size: .86rem; margin: 10px 0 4px; }
ul.fl-flags { margin: 4px 0; padding-left: 18px; font-size: .84rem; }

ul.fl-buy { margin: 4px 0; padding-left: 18px; font-size: .86rem; }

/* ---- 30 Sep 2026: photo types, transcribed cards, Insights, Clinician review ---- */
button.fl-lmbtn.auto { color: var(--warn); border-color: var(--warn); }
.fl-phgroup { margin-top: 12px; }
.fl-phgroup h3 { margin: 0; color: var(--brand); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.fl-phgroup .fl-photos { margin-top: 6px; }
button.fl-phtag { padding: 1px 8px; font-size: .7rem; font-weight: 600; border-radius: 999px; background: var(--brand-tint); color: var(--brand); border: 0; max-width: 118px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
button.fl-phtag.set { background: var(--ok-bg); color: var(--ok); }
.row > .fl-check { flex: 0 0 auto; min-width: 0; }
.fl-check { display: flex; align-items: center; gap: 6px; font-size: .84rem; white-space: nowrap; align-self: end; padding-bottom: 10px; }
.fl-check input { width: auto; margin: 0; }
ul.fl-findings { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 7px; }
ul.fl-findings li { font-size: .88rem; line-height: 1.45; padding: 7px 10px; background: var(--bg); border-radius: 10px; }
.fl-plan { border-left: 4px solid var(--brand); }
td.fl-ratecell { width: 30%; min-width: 160px; vertical-align: middle; }
svg.fl-rate { width: 100%; height: 14px; display: block; }
svg.fl-rate .trk { fill: var(--line); }
svg.fl-rate .ci { fill: var(--brand-tint-2); }
svg.fl-rate .base { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 2 2; }
svg.fl-rate .pt { fill: var(--brand); stroke: var(--card); stroke-width: 1.5; }
td.fl-heatcell { background: rgba(106, 33, 120, calc(var(--a) * .38)); }
.fl-plot { min-width: 0; }
svg.fl-scatter { width: 100%; max-width: 520px; height: auto; display: block; }
svg.fl-scatter .ax { stroke: var(--line); stroke-width: 1; }
svg.fl-scatter .dot { fill: var(--brand-light); fill-opacity: .55; stroke: var(--card); stroke-width: 1; }
svg.fl-scatter .fit { stroke: var(--accent-amber, #b45309); stroke-width: 2; }
svg.fl-scatter .lab { font-size: 10px; fill: var(--muted); }
svg.fl-scatter .tick { font-size: 9px; fill: var(--muted); }
.fl-cardedit { display: grid; gap: 14px; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.fl-cardedit img { width: 100%; height: auto; border-radius: 10px; border: 1.5px solid var(--line); }
.fl-cardgrid { display: grid; gap: 4px 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 60vh; overflow: auto; }
@media (max-width: 760px) { .fl-cardedit { grid-template-columns: 1fr; } .fl-cardgrid { grid-template-columns: 1fr; } td.fl-ratecell { min-width: 110px; } }
@media print {
  .sidebar, .topbar, .fl-filters, .fl-print-head button { display: none !important; }
  .main, .content { margin: 0 !important; padding: 0 !important; }
  .card { box-shadow: none !important; break-inside: avoid; }
}

/* ---- 1 Oct 2026: Summary & highlights, simple charts, significance ---- */
h2.fl-sec { margin: 18px 0 10px; font-size: 1.05rem; color: var(--brand); letter-spacing: .02em; }
.fl-summary > h2.fl-sec:first-child { margin-top: 4px; }
.fl-summary .grid.kpis { margin-bottom: 14px; }
.fl-summary .fl-two { margin-bottom: 14px; }
.fl-summary h3 { margin: 0 0 8px; font-size: .9rem; color: var(--text); }
.fl-tile .v { overflow-wrap: anywhere; }
.fl-tiles6 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
ul.fl-plain { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: .9rem; line-height: 1.45; }
ul.fl-plain.good li::marker { color: var(--ok); }
.fl-sig { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: .68rem; font-weight: 700;
  background: var(--warn-bg); color: var(--warn); border: 1px solid currentColor; vertical-align: middle; white-space: nowrap; }
.fl-sig::before { content: '★ '; }
ul.fl-findings li.sig { background: var(--warn-bg); border-left: 3px solid var(--warn); }
tr.fl-sigrow td { background: var(--warn-bg); }
tr.fl-sigrow td:first-child { box-shadow: inset 3px 0 0 var(--warn); font-weight: 600; }
.fl-verdict { display: block; margin-top: 6px; font-size: .76rem; font-weight: 700; color: var(--muted); }
.fl-verdict.good { color: var(--ok); }
.fl-verdict.bad { color: var(--bad); }
.fl-charts { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); }
.fl-charts > .card { margin-bottom: 0; }
.fl-chart h3 { margin: 0 0 4px; font-size: .9rem; }
.fl-chart .fl-head select { width: auto; margin: 0 0 0 auto; }
/* horizontal bars */
.fl-hbars { display: grid; gap: 7px; margin-top: 6px; }
.fl-hb { display: grid; grid-template-columns: minmax(110px, 36%) 1fr 58px; align-items: center; gap: 2px 10px; font-size: .84rem; }
.fl-hb .l { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; overflow-wrap: anywhere; }
.fl-hb .t { position: relative; height: 14px; background: var(--brand-tint); border-radius: 4px; }
.fl-hb .t i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--brand-light); opacity: .55; border-radius: 0 4px 4px 0; }
.fl-hb.hi .t i, .fl-hb.sig .t i { opacity: 1; }
.fl-hb.hi .l { font-weight: 700; color: var(--brand); }
.fl-hb .v { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.fl-hb .s { grid-column: 2 / 4; font-size: .72rem; color: var(--muted); margin-top: -3px; }
.fl-hb .mk, .fl-hb-key .mk { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--text); border-radius: 1px; }
.fl-hb-key { font-size: .74rem; color: var(--muted); margin-top: 8px; display: flex; align-items: center; gap: 4px; }
.fl-hb-key .mk { position: static; display: inline-block; height: 12px; margin: 0; }
/* monthly columns */
.fl-colwrap { overflow-x: auto; }
svg.fl-cols { width: 100%; min-width: 300px; height: auto; display: block; }
svg.fl-cols .col { fill: var(--brand-light); }
svg.fl-cols .base { stroke: var(--line); stroke-width: 1; }
svg.fl-cols .val { font-size: 10px; font-weight: 700; fill: var(--text); }
svg.fl-cols .lab { font-size: 10px; fill: var(--muted); }
svg.fl-cols .na { font-size: 12px; fill: var(--muted); }
@media (hover: hover) { svg.fl-cols g:hover .col { fill: var(--brand); } .fl-hb:hover .t i { opacity: 1; } }
@media (max-width: 760px) { .fl-charts { grid-template-columns: 1fr; } .fl-hb { grid-template-columns: minmax(90px, 40%) 1fr 50px; } }

/* ---- 1 Oct 2026: guide lines on photos, sub-tabs, pickers ---- */
.fl-phimg { position: relative; width: 118px; height: 118px; }
.fl-phimg.fit { width: 150px; height: 200px; }
.fl-phimg img { width: 100%; height: 100%; }
.fl-phimg.fit img { object-fit: contain; background: #1d1720; }
.fl-ovl { position: absolute; inset: 0; pointer-events: none; }
.fl-ovl.on { pointer-events: auto; cursor: zoom-in; }
.fl-ovl svg { width: 100%; height: 100%; display: block; }
.fl-ovl-tag { position: absolute; right: 4px; top: 4px; font-size: .64rem; font-weight: 700; padding: 1px 6px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); }
.fl-ovl-tag.auto { background: var(--warn-bg); color: var(--warn); }
svg.fl-guides .lv, svg.fl-lmsvg .lv { stroke: #ffd400; fill: none; }
svg.fl-guides .hz, svg.fl-lmsvg .hz { stroke: #ffffff; stroke-dasharray: 6 5; opacity: .75; fill: none; }
svg.fl-guides .pl, svg.fl-lmsvg .pl { stroke: #22d3ee; stroke-dasharray: 10 6; fill: none; }
svg.fl-guides .ch, svg.fl-lmsvg .ch { stroke: #ff5aa5; fill: none; }
svg.fl-guides .mid, svg.fl-lmsvg .mid { stroke: #7cf27c; fill: none; }
svg.fl-guides .glab, svg.fl-lmsvg .glab { fill: var(--card); stroke: #1d1720; stroke-width: 3px; font-weight: 700; }
svg.fl-guides .gpt { fill: #ffd400; stroke: #1d1720; stroke-width: 2; }
.fl-measure { position: relative; background: #1d1720; border-radius: 10px; overflow: hidden; }
.fl-measure img { display: block; width: 100%; height: auto; }
.fl-measure svg.big { position: absolute; inset: 0; width: 100%; height: 100%; }
.fl-subnav { display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 24px 0; }
.fl-subnav[hidden] { display: none; }
.fl-subnav a { text-decoration: none; }
button.fl-clinbtn { min-height: 38px; padding: 6px 14px; border-radius: 10px; font-weight: 500; white-space: nowrap; }
.fl-periods .fl-range[hidden] { display: none !important; }
.fl-sigline { color: var(--warn); font-weight: 600; }
.fl-emptyrange { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.fl-emptyrange p { margin: 0; color: var(--muted); }

/* ---- 1 Oct 2026: colour like Bedrock's dashboard (kpi-fun tones) ---- */
.grid.kpis > .kpi-fun:nth-child(8n+1) { --kt: #2563eb; }
.grid.kpis > .kpi-fun:nth-child(8n+2) { --kt: #0d9488; }
.grid.kpis > .kpi-fun:nth-child(8n+3) { --kt: #a21caf; }
.grid.kpis > .kpi-fun:nth-child(8n+4) { --kt: #b45309; }
.grid.kpis > .kpi-fun:nth-child(8n+5) { --kt: #166534; }
.grid.kpis > .kpi-fun:nth-child(8n+6) { --kt: #be185d; }
.grid.kpis > .kpi-fun:nth-child(8n+7) { --kt: #0b5fa5; }
.grid.kpis > .kpi-fun:nth-child(8n+8) { --kt: #6a2178; }
.fl-tile .v { white-space: normal; overflow-wrap: anywhere; }
.fl-tile .fl-verdict { margin-top: 4px; }
/* Chart cards and case panels: each its own tone, bars in that tone. */
.fl-charts > .fl-chart { border-top: 4px solid var(--kt, var(--brand)); }
.fl-charts > .fl-chart:nth-child(6n+1) { --kt: #2563eb; }
.fl-charts > .fl-chart:nth-child(6n+2) { --kt: #0d9488; }
.fl-charts > .fl-chart:nth-child(6n+3) { --kt: #a21caf; }
.fl-charts > .fl-chart:nth-child(6n+4) { --kt: #b45309; }
.fl-charts > .fl-chart:nth-child(6n+5) { --kt: #166534; }
.fl-charts > .fl-chart:nth-child(6n+6) { --kt: #be185d; }
.fl-chart h3 { color: var(--kt, var(--brand)); }
.fl-chart .fl-hb .t i { background: var(--kt, var(--brand-light)); }
.fl-chart .fl-hb .t { background: color-mix(in srgb, var(--kt, var(--brand)) 10%, var(--card)); }
.fl-chart svg.fl-cols .col { fill: var(--kt, var(--brand-light)); }
.fl-panels > .fl-panel { border-top: 3px solid var(--kt, var(--brand)); }
.fl-panels > .fl-panel:nth-child(6n+1) { --kt: #2563eb; }
.fl-panels > .fl-panel:nth-child(6n+2) { --kt: #0d9488; }
.fl-panels > .fl-panel:nth-child(6n+3) { --kt: #a21caf; }
.fl-panels > .fl-panel:nth-child(6n+4) { --kt: #b45309; }
.fl-panels > .fl-panel:nth-child(6n+5) { --kt: #166534; }
.fl-panels > .fl-panel:nth-child(6n+6) { --kt: #be185d; }
.fl-panel h3 { color: var(--kt, var(--brand)); }
.fl-summary .fl-two > .card:first-child { border-top: 4px solid #2563eb; }
.fl-summary .fl-two > .card.fl-sigcard, .fl-summary .fl-two > .card.fl-plan { border-top: 4px solid #b45309; }
.card.fl-plan { border-left: 4px solid #b45309; }

/* ---- 1 Oct 2026: unfiled photos inbox ---- */
.fl-inbox { border-left: 4px solid #0d9488; }
.fl-ctx { margin: 8px 0; font-size: .84rem; }
.fl-ctx summary { cursor: pointer; color: var(--brand); font-weight: 600; }
.fl-ctx ul { margin: 6px 0 0; padding-left: 18px; max-height: 220px; overflow: auto; color: var(--muted); }
.fl-pick-ph img { opacity: .35; outline: 3px solid transparent; }
.fl-pick-ph.on img { opacity: 1; outline-color: #0d9488; }
.fl-pickres { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.fl-chosen { margin-top: 6px; font-size: .86rem; }

/* ---- 1 Oct 2026: turning sideways photos ---- */
.fl-rotbox { display: flex; justify-content: center; align-items: center; height: 340px; background: #1d1720; border-radius: 10px; overflow: hidden; }
.fl-rotprev { max-width: 320px; max-height: 320px; transition: transform .2s; }

/* ---- 1 Oct 2026: "What to do" under significant findings ---- */
.fl-todo { margin-top: 6px; padding: 6px 10px; border-radius: 8px; background: var(--card); border-left: 3px solid #166534; font-size: .84rem; line-height: 1.45; color: var(--text); }
.fl-todo b { color: #166534; }
td .fl-todo { font-size: .76rem; margin-top: 4px; }

/* ---- Postural lab analysis: filters strip, numbered sections, jump chips, help (Emily, 8 Oct 2026) ---- */
.fl-pa-filters { display: flex; gap: 8px 22px; flex-wrap: wrap; align-items: center; padding: 10px 12px; margin: 10px 0 12px; border: 1.5px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--brand-tint) 45%, var(--card)); }
.fl-pa-f { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.fl-lbl { font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-right: 4px; white-space: nowrap; }
.fl-jump { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.fl-sec { border-top: 1.5px solid var(--line); padding-top: 12px; margin-top: 18px; scroll-margin-top: 72px; }
.fl-sec-head { display: flex; gap: 6px 12px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.fl-sec-head h3 { margin: 0; font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.fl-sec-no { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 999px; background: var(--brand); color: #fff; font-size: .72rem; font-weight: 700; flex: none; }
.fl-sec-tools { margin-left: auto; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.fl-sec-sub { font-size: .8rem; color: var(--muted); margin: 0 0 8px; max-width: 100ch; }
details.fl-help { font-size: .78rem; color: var(--muted); margin: 0 0 8px; }
details.fl-help summary { cursor: pointer; color: var(--brand); font-weight: 600; list-style: none; display: inline-flex; align-items: center; gap: 5px; }
details.fl-help summary::-webkit-details-marker { display: none; }
details.fl-help summary::before { content: '?'; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 999px; border: 1.5px solid var(--brand); font-size: .66rem; }
details.fl-help p { margin: 6px 0 0; max-width: 100ch; }
.fl-pa-tiles { margin: 0 0 4px; }
.fl-pa-tiles .kpi { margin-bottom: 0; }

/* a menu card with parts (Training, 8 Oct 2026): the parts on one row, the part's own tabs under them */
.fl-subnav .fl-parts, .fl-subnav .fl-parttabs { display: flex; gap: 6px; flex-wrap: wrap; flex-basis: 100%; }
.fl-subnav .fl-parttabs { padding-left: 14px; margin-top: 2px; }
.fl-subnav .fl-parttabs::before { content: '↳'; color: var(--muted); font-size: .8rem; align-self: center; }

/* ---- Onboarding checklist (Emily, 8–9 Oct 2026): header, calendar, day boxes, items ---- */
/* the header: avatar, name, pills, legend */
.fl-ob-head { background: linear-gradient(135deg, var(--card) 0%, color-mix(in srgb, var(--brand-tint) 55%, var(--card)) 100%); }
.fl-ob-headrow { display: flex; gap: 14px 18px; align-items: center; flex-wrap: wrap; }
.fl-ob-avatar { width: 52px; height: 52px; border-radius: 50%; background: color-mix(in srgb, var(--brand) 14%, var(--card)); color: var(--brand); display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; flex: none; border: 2px solid color-mix(in srgb, var(--brand) 30%, var(--card)); }
.fl-ob-title h1 { margin: 0; font-size: 1.35rem; line-height: 1.2; }
.fl-ob-title .sub { color: var(--muted); font-size: .82rem; margin-top: 2px; }
.fl-ob-pills { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.fl-ob-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 999px; background: var(--card); border: 1.5px solid var(--line); font-size: .78rem; font-weight: 600; color: var(--text); white-space: nowrap; }
.fl-ob-pill svg { width: 15px; height: 15px; color: var(--brand); }
.fl-ob-pill.ok { background: var(--ok-bg); border-color: var(--ok); color: var(--ok); }
.fl-ob-legend { margin-left: auto; text-align: right; }
.fl-ob-legend .tagline { font-family: "Segoe Script", "Brush Script MT", "Snell Roundhand", cursive; font-size: 1.05rem; color: var(--brand); }
.fl-ob-legend .dots { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; margin-top: 4px; font-size: .76rem; color: var(--muted); }
.fl-ob-legend .dot { display: inline-flex; align-items: center; gap: 5px; }
.fl-ob-legend .dot i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.fl-ob-controls { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
/* the calendar */
.fl-ob-months { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.fl-ob-month h3 { margin: 0 0 6px; font-size: .95rem; }
.fl-ob-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.fl-ob-dow { font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); text-align: center; padding: 2px 0; }
.fl-ob-cell { --c: var(--brand); min-height: 54px; border: 1.5px solid var(--line); border-radius: 8px; padding: 3px 5px; font-size: .72rem; cursor: pointer; background: var(--card); display: flex; flex-direction: column; gap: 1px; }
.fl-ob-cell.pad { border-color: transparent; background: transparent; cursor: default; }
.fl-ob-cell .dnum { font-weight: 600; color: var(--muted); }
.fl-ob-cell.train { background: color-mix(in srgb, var(--c) 12%, var(--card)); border-color: var(--c); }
.fl-ob-cell.train .dnum, .fl-ob-cell .dtag { color: var(--c); }
.fl-ob-cell.alldone { border-color: var(--ok); }
.fl-ob-cell.today { box-shadow: inset 0 0 0 2px var(--brand); }
.fl-ob-cell.off { background: repeating-linear-gradient(135deg, var(--card), var(--card) 6px, var(--bad-bg) 6px, var(--bad-bg) 12px); border-color: var(--bad); }
.fl-ob-cell .dtag { font-weight: 700; }
.fl-ob-cell .dtag.offtag { color: var(--bad); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-ob-cell .dsub { color: var(--muted); font-size: .66rem; }
@media (hover: hover) { .fl-ob-cell:not(.pad):hover { border-color: var(--brand); } }
/* the day boxes */
.fl-ob-board { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.fl-ob-box { --c: var(--brand); border: 1.5px solid color-mix(in srgb, var(--c) 30%, var(--card)); border-radius: 16px; background: var(--card); display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 2px 8px rgba(29, 23, 38, .05); }
.fl-ob-box.over { outline: 2px dashed var(--c); outline-offset: 3px; }
.fl-ob-box.alldone { border-color: var(--ok); }
.fl-ob-boxhead { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: color-mix(in srgb, var(--c) 10%, var(--card)); border-bottom: 1px solid color-mix(in srgb, var(--c) 18%, var(--card)); }
.fl-ob-boxhead .dbadge { width: 30px; height: 30px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .9rem; flex: none; }
.fl-ob-boxhead .dbadge svg { width: 16px; height: 16px; }
.fl-ob-box.alldone .dbadge { background: var(--ok); }
.fl-ob-boxhead .dname { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; min-width: 0; }
.fl-ob-boxhead .dname b { font-size: 1rem; }
.fl-ob-boxhead .ddate { font-size: .76rem; color: var(--muted); }
.fl-ob-boxhead .dcount { margin-left: auto; font-size: .78rem; font-weight: 700; color: var(--c); background: var(--card); border-radius: 999px; padding: 2px 9px; }
.fl-ob-boxhead .dcount.ok { color: var(--ok); }
.fl-ob-gband { --g: var(--brand); display: flex; align-items: center; gap: 8px; padding: 7px 14px; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--g); background: color-mix(in srgb, var(--g) 7%, var(--card)); border-bottom: 1px solid color-mix(in srgb, var(--g) 15%, var(--card)); }
.fl-ob-gband svg { width: 16px; height: 16px; }
.fl-ob-list { flex: 1; padding: 6px 12px 2px; }
.fl-ob-item { display: grid; grid-template-columns: auto auto 1fr; gap: 2px 10px; align-items: start; padding: 9px 2px; border-bottom: 1px solid color-mix(in srgb, var(--c) 10%, var(--card)); cursor: grab; border-radius: 10px; transition: background .12s ease; }
.fl-ob-item:last-child { border-bottom: none; }
.fl-ob-item:hover { background: color-mix(in srgb, var(--c) 5%, var(--card)); }
.fl-ob-item.dragging { opacity: .5; }
.fl-ob-item input[type="checkbox"] { appearance: none; -webkit-appearance: none; width: 18px !important; height: 18px !important; min-height: 0 !important; min-width: 0; flex: none; padding: 0; margin: 9px 0 0; border: 1.6px solid color-mix(in srgb, var(--muted) 70%, var(--card)); border-radius: 5px; background: var(--card); display: grid; place-items: center; cursor: pointer; transition: transform .1s ease; }
.fl-ob-item input[type="checkbox"]:hover { transform: scale(1.1); border-color: var(--c); }
.fl-ob-item input[type="checkbox"]:checked { background: var(--ok); border-color: var(--ok); }
.fl-ob-item input[type="checkbox"]:checked::after { content: "\2713"; color: #fff; font-weight: 900; font-size: 12px; line-height: 1; }
.fl-ob-item .ico { width: 36px; height: 36px; border-radius: 50%; background: color-mix(in srgb, var(--c) 12%, var(--card)); color: var(--c); display: grid; place-items: center; flex: none; }
.fl-ob-item .ico svg { width: 18px; height: 18px; }
.fl-ob-item.done .ico { background: var(--ok-bg); color: var(--ok); }
.fl-ob-item .body { min-width: 0; }
.fl-ob-item .t { font-size: .88rem; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; padding-top: 7px; }
.fl-ob-item.done .t { text-decoration: line-through; color: var(--muted); font-weight: 500; }
.fl-ob-item .meta { font-size: .72rem; color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; }
.fl-ob-tools { display: flex; gap: 6px; align-items: center; margin-top: 5px; }
.fl-ob-tools select { flex: 1; min-height: 0; height: 28px; padding: 0 8px; font-size: .76rem; width: auto; margin: 0; border-radius: 8px; border: 1.5px solid var(--line); background: var(--card); color: var(--muted); }
.fl-ob-tools select.has { border-color: var(--c); color: var(--c); font-weight: 600; }
.fl-ob-tools button { min-height: 0; padding: 0 7px; height: 28px; margin: 0; font-size: .82rem; line-height: 1; border-radius: 8px; }
.fl-ob-tools button.has { background: var(--brand-tint); }
.fl-ob-note { grid-column: 1 / -1; background: color-mix(in srgb, var(--c) 7%, var(--card)); border-radius: 10px; padding: 8px 10px; font-size: .8rem; cursor: default; margin-top: 4px; }
.fl-ob-note textarea { width: 100%; min-height: 56px; margin: 0 0 6px; font: inherit; font-size: .8rem; resize: vertical; }
.fl-ob-add { display: flex; align-items: center; gap: 6px; margin: 6px 12px 12px; border: 1.5px dashed color-mix(in srgb, var(--c) 35%, var(--card)); border-radius: 10px; padding: 0 10px; color: var(--muted); }
.fl-ob-add svg { width: 14px; height: 14px; color: var(--c); flex: none; }
.fl-ob-add input { min-height: 0; height: 32px; font-size: .78rem; width: 100%; margin: 0; border: none; background: transparent; padding: 0; }
.fl-ob-add input:focus { outline: none; }
/* ---- Onboarding tracking (Emily, 10 Oct 2026): compact pickers, the progress note in the open, statuses, follow-ups, the overview ---- */
.fl-ob-sm { min-height: 0 !important; height: 24px; padding: 0 22px 0 8px; font-size: .72rem; font-weight: 600; width: auto; max-width: 150px; margin: 0; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--muted); line-height: 1; }
.fl-ob-sm.has { border-color: var(--c); color: var(--c); }
.fl-ob-sm.nopick { border-style: dashed; }
.fl-ob-sm.flash { outline: 2px solid var(--bad); }
.fl-ob-sm.st-not_started { color: var(--muted); }
.fl-ob-sm.st-in_progress { color: var(--info); border-color: var(--info); background: var(--info-bg); }
.fl-ob-sm.st-completed { color: var(--ok); border-color: var(--ok); background: var(--ok-bg); }
.fl-ob-sm.st-needs_revision { color: var(--warn); border-color: var(--warn); background: var(--warn-bg); }
.fl-ob-sm.st-missed { color: var(--bad); border-color: var(--bad); background: var(--bad-bg); }
.fl-ob-tools { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.fl-ob-tools button.more { min-height: 0; height: 24px; padding: 0 7px; margin: 0; font-size: .8rem; line-height: 1; border-radius: 999px; margin-left: auto; }
.fl-ob-tools button.more.on { background: var(--brand-tint); }
.fl-ob-stars { display: inline-flex; gap: 0; }
.fl-ob-stars button { min-height: 0; height: 22px; width: 15px; padding: 0; margin: 0; background: none; border: none; box-shadow: none; color: color-mix(in srgb, var(--muted) 45%, var(--card)); font-size: .95rem; line-height: 1; cursor: pointer; }
.fl-ob-stars button.on { color: #e9a400; }
.fl-ob-stars.pick button:hover { transform: scale(1.2); }
.fl-ob-fuct { display: inline-flex; align-items: center; gap: 3px; font-size: .72rem; font-weight: 700; color: var(--warn); background: var(--warn-bg); border-radius: 999px; padding: 2px 7px; }
.fl-ob-fuct svg { width: 12px; height: 12px; }
.fl-ob-item .tline { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.fl-ob-item .slot { display: inline-flex; align-items: center; gap: 3px; font-size: .72rem; font-weight: 700; color: var(--c); white-space: nowrap; }
.fl-ob-item .slot svg { width: 12px; height: 12px; }
.fl-ob-item.s-needs_revision { background: color-mix(in srgb, var(--warn-bg) 55%, var(--card)); }
.fl-ob-item.s-missed { background: color-mix(in srgb, var(--bad-bg) 45%, var(--card)); }
.fl-ob-item.s-in_progress .ico { background: var(--info-bg); color: var(--info); }
.fl-ob-item.s-completed .ico { background: var(--ok-bg); color: var(--ok); }
.fl-ob-item.s-completed .t { text-decoration: line-through; color: var(--muted); font-weight: 500; }
/* the progress note: in the open, the most visible thing after the name */
.fl-ob-prog { margin-top: 7px; border-left: 4px solid var(--c); background: color-mix(in srgb, var(--c) 8%, var(--card)); border-radius: 0 10px 10px 0; padding: 7px 10px 8px; cursor: text; }
.fl-ob-prog.empty { border-left-style: dashed; background: transparent; border-top: 1px dashed color-mix(in srgb, var(--c) 35%, var(--card)); border-right: 1px dashed color-mix(in srgb, var(--c) 35%, var(--card)); border-bottom: 1px dashed color-mix(in srgb, var(--c) 35%, var(--card)); }
.fl-ob-prog .lbl { display: flex; align-items: center; gap: 5px; font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--c); }
.fl-ob-prog .lbl svg { width: 13px; height: 13px; }
.fl-ob-prog .lbl .by { margin-left: auto; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--muted); font-size: .7rem; }
.fl-ob-prog .txt { font-size: .86rem; line-height: 1.4; margin-top: 3px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text); }
.fl-ob-prog.empty .txt { color: var(--muted); font-style: italic; font-size: .8rem; }
.fl-ob-prog.editing { cursor: default; }
.fl-ob-prog textarea { width: 100%; min-height: 64px; margin: 4px 0 6px; font: inherit; font-size: .84rem; resize: vertical; }
/* the "more" panel */
.fl-ob-more { margin-top: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: var(--card); font-size: .8rem; cursor: default; }
.fl-ob-more .sec { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding: 5px 0; }
.fl-ob-more .sec + .sec { border-top: 1px solid var(--line); }
.fl-ob-more .sec.col { flex-direction: column; align-items: stretch; }
.fl-ob-more .lbl { font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); min-width: 70px; }
.fl-ob-fu { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 8px; align-items: center; padding: 4px 0; }
.fl-ob-fu .muted { grid-column: 2; font-size: .72rem; }
.fl-ob-fu input[type="checkbox"] { width: 15px !important; height: 15px !important; min-height: 0 !important; margin: 0; }
.fl-ob-fu .ft { flex: 1; }
.fl-ob-fu.done .ft { text-decoration: line-through; color: var(--muted); }
.fl-ob-boxhead .dflag { font-size: .72rem; font-weight: 800; color: var(--warn); background: var(--warn-bg); border-radius: 999px; padding: 2px 8px; margin-left: auto; }
.fl-ob-boxhead .dflag + .dcount { margin-left: 0; }
/* the overview */
.fl-ob-tile.bad .v { color: var(--bad); }
.fl-ob-tile.warn .v { color: var(--warn); }
.fl-ob-boxhead.plain { background: none; border-bottom: 1px solid var(--line); padding: 0 0 8px; margin-bottom: 8px; }
.fl-ob-boxhead.plain svg { width: 18px; height: 18px; color: var(--brand); }
.fl-ob-boxhead.plain b { font-size: 1rem; }
.fl-ob-boxhead.plain .dcount { margin-left: auto; color: var(--brand); background: var(--brand-tint); }
.fl-ob-sesslist { display: flex; flex-direction: column; }
.fl-ob-sess { display: grid; grid-template-columns: 88px 1fr auto; gap: 10px; align-items: center; padding: 7px 4px; border-bottom: 1px solid var(--line); cursor: pointer; border-radius: 8px; font-size: .86rem; }
.fl-ob-sess:last-child { border-bottom: none; }
@media (hover: hover) { .fl-ob-sess:hover { background: var(--brand-tint); } }
.fl-ob-sess .tm { font-size: .78rem; font-weight: 700; color: var(--brand); white-space: nowrap; }
.fl-ob-sess .what .muted { font-size: .74rem; }
.fl-ob-sess.s-missed .tm { color: var(--bad); }
.fl-ob-sess input[type="checkbox"] { width: 16px !important; height: 16px !important; min-height: 0 !important; margin: 0 auto; }
.fl-ob-daterow { font-size: .7rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); padding: 8px 4px 2px; }
.fl-ob-recent { display: flex; flex-direction: column; gap: 4px; font-size: .82rem; }
.fl-ob-recent .muted { font-size: .76rem; }
.fl-ob-head .fl-ob-pills .br-chip { cursor: pointer; }
/* ---- Onboarding: topics with subtopics, and a log of progress notes (Emily, 10 Oct 2026) ---- */
.fl-ob-subs { margin: 6px 0 0 2px; border-left: 2px solid color-mix(in srgb, var(--c) 30%, var(--card)); padding-left: 8px; display: flex; flex-direction: column; gap: 2px; }
.fl-ob-sub { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 7px; align-items: center; padding: 3px 4px; border-radius: 8px; font-size: .82rem; }
@media (hover: hover) { .fl-ob-sub:hover { background: color-mix(in srgb, var(--c) 7%, var(--card)); } }
.fl-ob-sub input[type="checkbox"] { width: 15px !important; height: 15px !important; min-height: 0 !important; margin: 0; border-radius: 4px; border: 1.5px solid color-mix(in srgb, var(--muted) 70%, var(--card)); appearance: none; -webkit-appearance: none; background: var(--card); display: grid; place-items: center; cursor: pointer; }
.fl-ob-sub input[type="checkbox"]:checked { background: var(--ok); border-color: var(--ok); }
.fl-ob-sub input[type="checkbox"]:checked::after { content: "\2713"; color: #fff; font-weight: 900; font-size: 10px; line-height: 1; }
.fl-ob-sub .st { font-weight: 500; overflow-wrap: anywhere; }
.fl-ob-sub.s-completed .st { text-decoration: line-through; color: var(--muted); }
.fl-ob-sub.s-needs_revision { background: color-mix(in srgb, var(--warn-bg) 60%, var(--card)); }
.fl-ob-sub.s-missed { background: color-mix(in srgb, var(--bad-bg) 50%, var(--card)); }
.fl-ob-sub .tools { grid-column: 2; display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.fl-ob-sub .tools .fl-ob-sm { height: 21px; font-size: .68rem; max-width: 130px; padding-right: 18px; }
.fl-ob-sub .tools .fl-ob-stars button { height: 18px; width: 12px; font-size: .8rem; }
.fl-ob-sub button.x { min-height: 0; height: 20px; width: 20px; padding: 0; margin: 0; border-radius: 50%; font-size: .72rem; line-height: 1; color: var(--muted); background: none; border: none; box-shadow: none; opacity: .6; }
.fl-ob-sub button.x:hover { opacity: 1; color: var(--bad); background: var(--bad-bg); }
.fl-ob-subadd { display: flex; align-items: center; gap: 5px; margin: 4px 0 0 10px; color: var(--muted); }
.fl-ob-subadd svg { width: 12px; height: 12px; color: var(--c); flex: none; }
.fl-ob-subadd input { min-height: 0; height: 26px; font-size: .76rem; width: 100%; margin: 0; border: none; border-bottom: 1px dashed color-mix(in srgb, var(--c) 40%, var(--card)); border-radius: 0; background: transparent; padding: 0 2px; }
.fl-ob-subadd input:focus { outline: none; border-bottom-style: solid; }
.fl-ob-item .subcount { font-size: .72rem; font-weight: 700; color: var(--c); background: color-mix(in srgb, var(--c) 12%, var(--card)); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.fl-ob-item .subcount.ok { color: var(--ok); background: var(--ok-bg); }
/* the notes log */
.fl-ob-notes { margin-top: 8px; border-left: 4px solid var(--c); background: color-mix(in srgb, var(--c) 7%, var(--card)); border-radius: 0 10px 10px 0; padding: 7px 10px 8px; }
.fl-ob-notes .lbl { display: flex; align-items: center; gap: 5px; font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--c); }
.fl-ob-notes .lbl svg { width: 13px; height: 13px; }
.fl-ob-notes .lbl .n { margin-left: auto; font-weight: 700; letter-spacing: 0; color: var(--muted); }
.fl-ob-note-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 6px 0; border-top: 1px solid color-mix(in srgb, var(--c) 16%, var(--card)); }
.fl-ob-note-row:first-of-type { border-top: none; }
.fl-ob-note-row .txt { font-size: .86rem; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text); }
.fl-ob-note-row .by { grid-column: 1; font-size: .7rem; color: var(--muted); }
.fl-ob-note-row button.x { grid-row: 1 / 3; align-self: start; min-height: 0; height: 20px; width: 20px; padding: 0; margin: 0; border-radius: 50%; font-size: .72rem; line-height: 1; color: var(--muted); background: none; border: none; box-shadow: none; opacity: .5; }
.fl-ob-note-row button.x:hover { opacity: 1; color: var(--bad); background: var(--bad-bg); }
.fl-ob-notes .add { display: flex; gap: 6px; align-items: flex-end; margin-top: 6px; }
.fl-ob-notes .add textarea { flex: 1; min-height: 30px; height: 30px; margin: 0; font: inherit; font-size: .82rem; resize: vertical; padding: 5px 9px; border-radius: 8px; background: var(--card); }
.fl-ob-notes .add textarea:focus { min-height: 64px; }
.fl-ob-notes .add button { min-height: 0; height: 30px; padding: 0 10px; margin: 0; font-size: .76rem; border-radius: 8px; }
.fl-ob-notes.empty { border-left-style: dashed; background: transparent; }
.fl-ob-notes .none { font-size: .78rem; color: var(--muted); font-style: italic; margin: 3px 0 0; }
/* ---- Onboarding, 10 Oct 2026 evening: bigger type, subtopics on their own, notes as a conversation ---- */
.fl-ob-item .t { font-size: 1rem; }
.fl-ob-item .meta, .fl-ob-sub .tools .muted { font-size: .78rem; }
.fl-ob-sub { font-size: .92rem; padding: 5px 6px; gap: 3px 8px; cursor: grab; }
.fl-ob-sub.dragging { opacity: .5; }
.fl-ob-sub .st { font-size: .92rem; }
.fl-ob-sm { height: 26px; font-size: .78rem; max-width: 170px; }
.fl-ob-sub .tools .fl-ob-sm { height: 24px; font-size: .76rem; max-width: 150px; }
.fl-ob-stars button { font-size: 1.05rem; width: 16px; }
.fl-ob-sub .tools .fl-ob-stars button { font-size: .95rem; width: 14px; height: 20px; }
.fl-ob-subadd input, .fl-ob-add input { font-size: .84rem; }
.fl-ob-gband { font-size: .76rem; }
.fl-ob-boxhead .dname b { font-size: 1.05rem; }
.fl-ob-boxhead .ddate { font-size: .82rem; }
.fl-ob-item.over { outline: 2px dashed var(--c); outline-offset: 2px; background: color-mix(in srgb, var(--c) 10%, var(--card)); }
.fl-ob-sub .tools button.notes { min-height: 0; height: 24px; padding: 0 8px; margin: 0 0 0 auto; font-size: .78rem; border-radius: 999px; }
.fl-ob-sub .tools button.notes.has { color: var(--c); border-color: var(--c); }
.fl-ob-sub .tools button.notes.on { background: color-mix(in srgb, var(--c) 14%, var(--card)); }
.fl-ob-sub .subnotes { grid-column: 1 / -1; cursor: default; }
/* the notes, as a conversation */
.fl-ob-notes { margin-top: 10px; border: 1px solid color-mix(in srgb, var(--c) 28%, var(--card)); border-left: 5px solid var(--c); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 9%, var(--card)) 0%, var(--card) 100%); border-radius: 12px; padding: 9px 12px 10px; cursor: default; }
.fl-ob-notes.empty { border-style: dashed; border-left-style: solid; background: var(--card); }
.fl-ob-notes.compact { margin-top: 6px; padding: 7px 10px 8px; }
.fl-ob-notes .lbl { font-size: .72rem; }
.fl-ob-notes .lbl svg { width: 15px; height: 15px; }
.fl-ob-notes .lbl .n { font-size: .72rem; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--c); background: color-mix(in srgb, var(--c) 14%, var(--card)); border-radius: 999px; padding: 1px 8px; }
.fl-ob-note-row { display: grid; grid-template-columns: auto 1fr auto; gap: 3px 9px; padding: 7px 0 0; border-top: none; align-items: start; }
.fl-ob-note-row .av, .fl-ob-notes .add .av { width: 28px; height: 28px; border-radius: 50%; background: color-mix(in srgb, var(--c) 18%, var(--card)); color: var(--c); display: grid; place-items: center; font-size: .7rem; font-weight: 800; flex: none; margin-top: 2px; }
.fl-ob-notes .add .av.me { background: var(--brand-tint-2); color: var(--brand); }
.fl-ob-note-row .bubble { background: var(--card); border: 1px solid color-mix(in srgb, var(--c) 18%, var(--card)); border-radius: 4px 12px 12px 12px; padding: 7px 11px; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); min-width: 0; }
.fl-ob-note-row .txt { font-size: .94rem; line-height: 1.45; }
.fl-ob-note-row .by { grid-column: auto; font-size: .74rem; color: var(--muted); margin-top: 3px; }
.fl-ob-note-row button.x { grid-row: auto; margin-top: 4px; }
.fl-ob-notes .none { font-size: .84rem; margin: 4px 0 0; }
.fl-ob-notes .add { margin-top: 8px; align-items: flex-start; }
.fl-ob-notes .add textarea { font-size: .9rem; min-height: 36px; height: 36px; padding: 7px 11px; border-radius: 12px; border: 1.5px solid color-mix(in srgb, var(--c) 30%, var(--card)); }
.fl-ob-notes .add textarea:focus { min-height: 72px; border-color: var(--c); }
.fl-ob-notes .add button { height: 36px; padding: 0 12px; border-radius: 12px; font-size: .82rem; margin-top: 0; }
.fl-ob-notes.compact .fl-ob-note-row .txt { font-size: .88rem; }
.fl-ob-notes.compact .add textarea, .fl-ob-notes.compact .add button { height: 32px; min-height: 32px; }
/* ---- Onboarding notes: Good / Lacking / Next focus, and a check-again date (Emily, 10 Oct 2026, evening) ---- */
.fl-ob-notes .add .fields { flex: 1; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.fl-ob-notes .add .fields textarea { width: 100%; }
.fl-ob-notes .add .fields input[type="date"] { min-height: 0; height: 30px; width: auto; margin: 0; padding: 0 8px; font-size: .8rem; border-radius: 8px; }
.fl-ob-notes .add .fields button { height: 32px; }
.fl-ob-note-row .part { display: grid; grid-template-columns: 86px 1fr; gap: 6px; font-size: .92rem; line-height: 1.45; padding: 2px 0; }
.fl-ob-note-row .part .k { font-size: .68rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; padding-top: 4px; }
.fl-ob-note-row .part.good .k { color: var(--ok); }
.fl-ob-note-row .part.lacking .k { color: var(--bad); }
.fl-ob-note-row .part.next .k { color: var(--info); }
.fl-ob-note-row .part .v { white-space: pre-wrap; overflow-wrap: anywhere; }
.fl-ob-note-row .check { display: inline-flex; align-items: center; gap: 6px; margin-top: 5px; font-size: .76rem; font-weight: 700; color: var(--info); background: var(--info-bg); border-radius: 999px; padding: 2px 9px 2px 5px; }
.fl-ob-note-row .check.late { color: var(--bad); background: var(--bad-bg); }
.fl-ob-note-row .check.done { color: var(--ok); background: var(--ok-bg); }
.fl-ob-note-row .check input[type="checkbox"] { width: 14px !important; height: 14px !important; min-height: 0 !important; margin: 0; accent-color: var(--ok); }
.fl-ob-box.unplaced .fl-ob-boxhead .ddate { white-space: normal; }
/* ---- Onboarding: a remark under every day box; topic pencil (Emily, 10 Oct 2026, late) ---- */
.fl-ob-remark { margin: 2px 12px 12px; border: 1px dashed color-mix(in srgb, var(--c) 40%, var(--card)); border-radius: 10px; padding: 7px 10px 8px; background: color-mix(in srgb, var(--c) 4%, var(--card)); }
.fl-ob-remark.has { border-style: solid; border-color: color-mix(in srgb, var(--c) 35%, var(--card)); background: color-mix(in srgb, var(--c) 8%, var(--card)); }
.fl-ob-remark .lbl { display: flex; align-items: center; gap: 5px; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--c); margin-bottom: 4px; }
.fl-ob-remark .lbl svg { width: 13px; height: 13px; }
.fl-ob-remark .lbl .by { margin-left: auto; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--muted); font-size: .72rem; }
.fl-ob-remark textarea { width: 100%; min-height: 44px; margin: 0; font: inherit; font-size: .86rem; line-height: 1.4; resize: vertical; padding: 6px 9px; border-radius: 8px; border: 1px solid transparent; background: transparent; }
.fl-ob-remark textarea:focus { background: var(--card); border-color: var(--c); outline: none; }
.fl-ob-tools button.notes { min-height: 0; height: 24px; padding: 0 8px; margin: 0; font-size: .8rem; border-radius: 999px; }
.fl-ob-tools button.notes.has { color: var(--c); border-color: var(--c); }
.fl-ob-tools button.notes.on { background: color-mix(in srgb, var(--c) 14%, var(--card)); }
.fl-ob-notes .add .fields textarea { min-height: 36px; height: auto; }
/* ---- Onboarding: two kinds of note, flags instead of a status dropdown, a readable date picker (Emily, 10 Oct 2026, late) ---- */
.fl-ob-notes .kinds { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 2px; }
.fl-ob-notes .kinds .br-chip { cursor: pointer; font-size: .72rem; }
.fl-ob-notes .kinds .br-chip.kind-em.on { background: #7c3aed; border-color: #7c3aed; color: #fff; }
.fl-ob-note-row .by .kind { font-weight: 800; letter-spacing: .04em; text-transform: uppercase; font-size: .66rem; padding: 1px 7px; border-radius: 999px; }
.fl-ob-note-row .by .kind.progress { color: var(--info); background: var(--info-bg); }
.fl-ob-note-row .by .kind.em { color: #7c3aed; background: color-mix(in srgb, #7c3aed 14%, var(--card)); }
html[data-theme="dark"] .fl-ob-note-row .by .kind.em { color: #d2b4f0; }
.fl-ob-sm.flag { width: 26px; padding: 0; text-align: center; color: var(--muted); border-style: dashed; cursor: pointer; }
.fl-ob-sm.flag:hover { color: var(--warn); border-color: var(--warn); }
button.fl-ob-sm { cursor: pointer; line-height: 1; }
.fl-ob-more .sec button.fl-ob-sm.on { outline: 2px solid currentColor; outline-offset: 1px; }
/* the date picker: a pill with the calendar icon, and the browser's own popup in the page's colours */
.fl-ob input[type="date"] { color-scheme: light; border-radius: 999px; border: 1.5px solid var(--line); padding: 0 10px; font-size: .8rem; min-height: 0; height: 30px; background: var(--card); color: var(--text); }
html[data-theme="dark"] .fl-ob input[type="date"] { color-scheme: dark; border-color: var(--line); }
.fl-ob input[type="date"]::-webkit-calendar-picker-indicator { display: inline-block; cursor: pointer; opacity: .8; }
html[data-theme="dark"] .fl-ob input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1); }
.fl-ob input[type="date"]:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-tint-2); }
/* ---- Onboarding notes that read well when long; a symbol on every subtopic (Emily, 10 Oct 2026, late) ---- */
.fl-ob-note-row { grid-template-columns: 1fr auto; gap: 2px 6px; }
.fl-ob-note-row .bubble { border-radius: 10px; padding: 8px 12px; }
.fl-ob-note-row .part { display: block; padding: 3px 0 5px; }
.fl-ob-note-row .part + .part { border-top: 1px dashed color-mix(in srgb, var(--c) 18%, var(--card)); }
.fl-ob-note-row .part .k { display: block; margin-bottom: 2px; padding-top: 0; }
.fl-ob-note-row .part .v { display: block; font-size: .92rem; line-height: 1.5; }
.fl-ob-note-row .txt { font-size: .92rem; line-height: 1.5; }
.fl-ob-note-row .by { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; margin-top: 6px; }
.fl-ob-notes .add { gap: 8px; }
.fl-ob-notes .add .av { display: none; }
.fl-ob-notes .add .fields .pf { display: flex; flex-direction: column; gap: 5px; }
.fl-ob-notes .add .fields .pf[hidden] { display: none; }
.fl-ob-notes.compact { margin-left: -18px; margin-right: -4px; }
.fl-ob-sub .subnotes { margin-left: 0; }
.fl-ob-sub .st { display: inline-flex; align-items: center; gap: 6px; }
.fl-ob-sub .sico { width: 22px; height: 22px; border-radius: 50%; background: color-mix(in srgb, var(--c) 12%, var(--card)); color: var(--c); display: inline-grid; place-items: center; flex: none; }
.fl-ob-sub .sico svg { width: 13px; height: 13px; }
.fl-ob-sub.s-completed .sico { background: var(--ok-bg); color: var(--ok); }
html[data-theme="dark"] .fl-ob-sub .sico { background: color-mix(in srgb, var(--c) 30%, var(--card)); color: color-mix(in srgb, var(--c) 55%, #fff); }
/* ---- Onboarding notes: inputs in a brighter colour; every note editable (Emily, 10 Oct 2026, late) ---- */
.fl-ob-note-row.em .bubble { background: #fff6d6; border-color: #f2c94c; border-left: 4px solid #f2b705; }
.fl-ob-note-row.em .bubble .txt { color: #4a3a00; }
.fl-ob-note-row.em .by .kind.em { color: #7a5a00; background: #ffe58a; }
html[data-theme="dark"] .fl-ob-note-row.em .bubble { background: #4a3a10; border-color: #c9a227; border-left-color: #f2c94c; }
html[data-theme="dark"] .fl-ob-note-row.em .bubble .txt { color: #ffefb3; }
html[data-theme="dark"] .fl-ob-note-row.em .by .kind.em { color: #ffe58a; background: #6b5214; }
.fl-ob-notes .kinds .br-chip.kind-em.on { background: #f2b705; border-color: #f2b705; color: #3a2b00; }
.fl-ob-note-row .acts { display: flex; flex-direction: column; gap: 2px; align-self: start; }
.fl-ob-note-row .acts button.x { grid-row: auto; margin-top: 2px; }
.fl-ob-note-row.editing { grid-template-columns: 1fr; }
.fl-ob-note-row.editing .add { margin-top: 0; border: 1.5px dashed var(--brand); border-radius: 10px; padding: 8px; }
.fl-ob-note-row.em.editing .add { border-color: #f2b705; }
/* ---- Onboarding: each subtopic in a box of its own (Emily, 10 Oct 2026, late) ---- */
.fl-ob-subs { border-left: none; padding-left: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.fl-ob-sub { border: 1.5px solid color-mix(in srgb, var(--c) 28%, var(--card)); border-radius: 10px; padding: 8px 10px; background: color-mix(in srgb, var(--c) 4%, var(--card)); box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.fl-ob-sub.s-completed { border-color: color-mix(in srgb, var(--ok) 50%, var(--card)); background: color-mix(in srgb, var(--ok-bg) 60%, var(--card)); }
.fl-ob-sub.s-needs_revision { border-color: color-mix(in srgb, var(--warn) 55%, var(--card)); }
.fl-ob-sub.s-missed { border-color: color-mix(in srgb, var(--bad) 55%, var(--card)); }
@media (hover: hover) { .fl-ob-sub:hover { border-color: var(--c); } }
html[data-theme="dark"] .fl-ob-sub { border-color: color-mix(in srgb, var(--c) 45%, var(--card)); background: color-mix(in srgb, var(--c) 10%, var(--card)); }
.fl-ob-subadd { margin-left: 2px; }
/* ---- Onboarding notes: who wrote it (Emily, 10 Oct 2026, late) ---- */
.fl-ob-notes .add .fl-ob-sm.who { max-width: 220px; color: var(--text); }
.fl-ob-note-row .by .who { font-weight: 700; color: var(--text); }
.fl-ob-notes .add .whoRow { margin-top: 2px; }
/* ---- Onboarding, Emily's card design (10 Oct 2026, late): progress bar, category rows, tinted cards ---- */
.fl-ob-prog { margin: 0 12px; padding: 10px 6px 6px; }
.fl-ob-prog .pl { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-bottom: 5px; }
.fl-ob-prog .pl b { color: var(--text); }
.fl-ob-prog .fl-bar { height: 7px; }
.fl-ob-item.cat { display: block; padding: 6px 0 4px; border-bottom: none; cursor: default; }
.fl-ob-cat { display: flex; align-items: center; gap: 10px; padding: 6px 4px; cursor: grab; border-radius: 10px; }
.fl-ob-cat.dragging { opacity: .5; }
.fl-ob-cat .cico { width: 32px; height: 32px; border-radius: 10px; background: color-mix(in srgb, var(--c) 14%, var(--card)); color: var(--c); display: grid; place-items: center; flex: none; }
.fl-ob-cat .cico svg { width: 17px; height: 17px; }
.fl-ob-cat .cname { font-size: 1.05rem; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.fl-ob-cat .ccount { font-size: .74rem; font-weight: 700; color: var(--c); background: color-mix(in srgb, var(--c) 12%, var(--card)); border-radius: 999px; padding: 2px 9px; }
.fl-ob-cat .ccount.ok { color: var(--ok); background: var(--ok-bg); }
.fl-ob-cat .chev, .fl-ob-cat .dots, .fl-ob-card .dots { min-height: 0; height: 26px; width: 26px; padding: 0; margin: 0; border: none; background: none; box-shadow: none; color: var(--muted); font-size: 1.05rem; line-height: 1; border-radius: 50%; cursor: pointer; }
.fl-ob-cat .chev:hover, .fl-ob-cat .dots:hover, .fl-ob-card .dots:hover, .fl-ob-card .dots.on, .fl-ob-cat .dots.on { background: color-mix(in srgb, var(--c) 12%, var(--card)); color: var(--c); }
.fl-ob-cat .slot, .fl-ob-card .slot { display: inline-flex; align-items: center; gap: 3px; font-size: .72rem; font-weight: 700; color: var(--c); }
.fl-ob-cat .slot svg, .fl-ob-card .slot svg { width: 12px; height: 12px; }
.fl-ob-item.cat .fl-ob-subs { margin: 2px 0 0; display: grid; gap: 8px; border-left: none; padding-left: 0; }
.fl-ob-item.cat.over { outline: 2px dashed var(--c); outline-offset: 2px; border-radius: 12px; }
.fl-ob-card { border-radius: 14px; padding: 10px 12px 11px; background: color-mix(in srgb, var(--c) 9%, var(--card)); border: 1px solid color-mix(in srgb, var(--c) 14%, var(--card)); cursor: grab; }
.fl-ob-card.dragging { opacity: .5; }
.fl-ob-card.s-completed { background: color-mix(in srgb, var(--ok-bg) 70%, var(--card)); border-color: color-mix(in srgb, var(--ok) 35%, var(--card)); }
.fl-ob-card.s-needs_revision { background: color-mix(in srgb, var(--warn-bg) 75%, var(--card)); border-color: color-mix(in srgb, var(--warn) 40%, var(--card)); }
.fl-ob-card.s-missed { background: color-mix(in srgb, var(--bad-bg) 60%, var(--card)); border-color: color-mix(in srgb, var(--bad) 40%, var(--card)); }
.fl-ob-card.topiccard { margin: 6px 0; }
.fl-ob-card .top { display: flex; align-items: center; gap: 9px; }
.fl-ob-card .top input[type="checkbox"] { appearance: none; -webkit-appearance: none; width: 20px !important; height: 20px !important; min-height: 0 !important; margin: 0; border: 1.6px solid color-mix(in srgb, var(--muted) 60%, var(--card)); border-radius: 6px; background: var(--card); display: grid; place-items: center; cursor: pointer; flex: none; }
.fl-ob-card .top input[type="checkbox"]:checked { background: var(--ok); border-color: var(--ok); }
.fl-ob-card .top input[type="checkbox"]:checked::after { content: "\2713"; color: #fff; font-weight: 900; font-size: 12px; line-height: 1; }
.fl-ob-card .sico { width: 24px; height: 24px; border-radius: 50%; background: color-mix(in srgb, var(--c) 16%, var(--card)); color: var(--c); display: inline-grid; place-items: center; flex: none; }
.fl-ob-card .sico svg { width: 13px; height: 13px; }
.fl-ob-card.s-completed .sico { background: var(--ok-bg); color: var(--ok); }
.fl-ob-card .name { font-size: 1.02rem; font-weight: 700; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.fl-ob-card.s-completed .name { text-decoration: line-through; color: var(--muted); font-weight: 600; }
.fl-ob-card .under { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 8px 0 0 29px; flex-wrap: wrap; }
.fl-ob-card .meta { font-size: .74rem; color: var(--muted); margin: 4px 0 0 29px; }
.fl-ob-who { display: inline-flex; align-items: center; gap: 6px; }
.fl-ob-who .q { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--muted) 60%, var(--card)); color: var(--muted); display: grid; place-items: center; font-size: .66rem; font-weight: 800; background: var(--card); flex: none; }
.fl-ob-who.has .q { background: var(--c); border-color: var(--c); color: #fff; }
.fl-ob-who select.fl-ob-sm { border: none; background: transparent; padding-left: 0; height: 22px; font-size: .78rem; color: var(--muted); max-width: 170px; }
.fl-ob-who.has select.fl-ob-sm { color: var(--text); font-weight: 700; }
.fl-ob-card .rating { display: inline-flex; align-items: center; gap: 6px; }
.fl-ob-card .rating .rv { font-size: .76rem; color: var(--muted); white-space: nowrap; }
.fl-ob-card .rating .fl-ob-stars button { height: 20px; width: 14px; font-size: .95rem; }
.fl-ob-menu { display: flex; gap: 5px; flex-wrap: wrap; margin: 8px 0 0 29px; }
.fl-ob-menu .fl-ob-sm.danger { color: var(--bad); border-color: var(--bad); }
.fl-ob-menu .fl-ob-sm.on { outline: 2px solid currentColor; outline-offset: 1px; }
.fl-ob-card .subnotes { margin-top: 8px; cursor: default; }
.fl-ob-card .fl-ob-more { margin-top: 8px; cursor: default; }
.fl-ob-item.cat .fl-ob-subadd { margin: 6px 0 0 6px; }
.fl-ob-subadd input::placeholder { color: var(--c); font-weight: 600; }
html[data-theme="dark"] .fl-ob-card { background: color-mix(in srgb, var(--c) 16%, var(--card)); border-color: color-mix(in srgb, var(--c) 28%, var(--card)); }
html[data-theme="dark"] .fl-ob-cat .cico, html[data-theme="dark"] .fl-ob-card .sico { background: color-mix(in srgb, var(--c) 30%, var(--card)); color: color-mix(in srgb, var(--c) 55%, #fff); }
html[data-theme="dark"] .fl-ob-cat .ccount { color: color-mix(in srgb, var(--c) 55%, #fff); background: color-mix(in srgb, var(--c) 22%, var(--card)); }
html[data-theme="dark"] .fl-ob-who.has .q { background: color-mix(in srgb, var(--c) 70%, #fff); color: #1a1322; }
/* ---- Onboarding cards, smaller (Emily, 10 Oct 2026, late): tighter padding, trainer and rating on one line; smaller subtopics inside ---- */
.fl-ob-card { padding: 6px 9px 7px; border-radius: 11px; }
.fl-ob-card .top { gap: 7px; }
.fl-ob-card .top input[type="checkbox"] { width: 17px !important; height: 17px !important; border-radius: 5px; }
.fl-ob-card .sico { width: 20px; height: 20px; }
.fl-ob-card .sico svg { width: 11px; height: 11px; }
.fl-ob-card .name { font-size: .92rem; }
.fl-ob-card .dots, .fl-ob-cat .dots, .fl-ob-cat .chev { height: 22px; width: 22px; font-size: .95rem; }
.fl-ob-card .under { margin: 3px 0 0 24px; gap: 6px; }
.fl-ob-card .meta { margin-left: 24px; font-size: .7rem; }
.fl-ob-who .q { width: 18px; height: 18px; font-size: .6rem; }
.fl-ob-who select.fl-ob-sm { height: 20px; font-size: .74rem; max-width: 150px; }
.fl-ob-card .rating .fl-ob-stars button { height: 18px; width: 12px; font-size: .85rem; }
.fl-ob-card .rating .rv { font-size: .7rem; }
.fl-ob-item.cat .fl-ob-subs { gap: 5px; }
.fl-ob-cat { padding: 4px 2px; gap: 8px; }
.fl-ob-cat .cico { width: 26px; height: 26px; border-radius: 8px; }
.fl-ob-cat .cico svg { width: 14px; height: 14px; }
.fl-ob-cat .cname { font-size: .96rem; }
.fl-ob-cat .ccount { font-size: .7rem; padding: 1px 7px; }
.fl-ob-menu { margin: 6px 0 0 24px; }
.fl-ob-card .fl-ob-kids { margin: 6px 0 0 24px; display: grid; gap: 3px; }
.fl-ob-kid { display: flex; align-items: center; gap: 6px; font-size: .82rem; padding: 3px 7px; border-radius: 8px; background: color-mix(in srgb, var(--card) 70%, transparent); border: 1px dashed color-mix(in srgb, var(--c) 30%, var(--card)); }
.fl-ob-kid input[type="checkbox"] { width: 14px !important; height: 14px !important; min-height: 0 !important; margin: 0; accent-color: var(--ok); }
.fl-ob-kid .kname { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.fl-ob-kid.s-completed .kname { text-decoration: line-through; color: var(--muted); }
.fl-ob-kid .fl-ob-who .q { width: 16px; height: 16px; font-size: .55rem; }
.fl-ob-kid .fl-ob-who select.fl-ob-sm { height: 18px; font-size: .7rem; max-width: 120px; }
.fl-ob-kid button.x { min-height: 0; height: 18px; width: 18px; padding: 0; margin: 0; border: none; background: none; box-shadow: none; color: var(--muted); font-size: .7rem; border-radius: 50%; opacity: .6; }
.fl-ob-kid button.x:hover { opacity: 1; color: var(--bad); background: var(--bad-bg); }
.fl-ob-kidadd { margin: 6px 0 0 24px; }
.fl-ob-kidadd input { min-height: 0; height: 24px; font-size: .76rem; width: 100%; margin: 0; border: 1px dashed color-mix(in srgb, var(--c) 40%, var(--card)); border-radius: 8px; background: transparent; padding: 0 8px; }
.fl-ob-kidadd input:focus { outline: none; border-style: solid; border-color: var(--c); }
.fl-ob-box .fl-ob-boxhead { padding: 8px 12px; }
.fl-ob-boxhead .dbadge { width: 26px; height: 26px; font-size: .82rem; }
.fl-ob-boxhead .dname b { font-size: .98rem; }
.fl-ob-prog { padding: 7px 6px 4px; }
.fl-ob-prog .pl { font-size: .74rem; margin-bottom: 4px; }
.fl-ob-prog .fl-bar { height: 6px; }
.fl-ob-add { margin: 4px 12px 8px; }
.fl-ob-add input { height: 28px; font-size: .78rem; }
.fl-ob-remark { margin: 2px 12px 10px; padding: 5px 9px 6px; }
.fl-ob-remark textarea { min-height: 34px; font-size: .8rem; }
/* ---- a colour per practitioner on the Postural lab tables (Emily, 10 Oct 2026) ---- */
.fl-pdot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.fl-pname { display: inline-flex; align-items: center; gap: 7px; }
tr.fl-prow > td { background: color-mix(in srgb, var(--pc) 6%, transparent); }
tr.fl-prow > td:first-child { border-left: 4px solid var(--pc); }
tr.fl-prow.second > td:first-child { border-left-color: color-mix(in srgb, var(--pc) 45%, transparent); }
@media (hover: hover) { tr.fl-prow.fl-click:hover td { background: color-mix(in srgb, var(--pc) 14%, transparent); } }
/* ---- Onboarding: smaller subtopics clearly nested, and every category in its own colour (Emily, 10 Oct 2026, late) ---- */
.fl-ob-card .fl-ob-kids { margin: 6px 0 0 18px; padding-left: 10px; border-left: 3px solid color-mix(in srgb, var(--c) 45%, var(--card)); gap: 4px; }
.fl-ob-kid { font-size: .86rem; padding: 5px 8px; border-radius: 9px; border: 1px solid color-mix(in srgb, var(--c) 32%, var(--card)); background: color-mix(in srgb, var(--c) 12%, var(--card)); }
.fl-ob-kid .kname { font-weight: 600; }
.fl-ob-kid.s-completed { background: color-mix(in srgb, var(--ok-bg) 70%, var(--card)); border-color: color-mix(in srgb, var(--ok) 40%, var(--card)); }
.fl-ob-kidadd { margin: 5px 0 0 18px; padding-left: 10px; border-left: 3px solid color-mix(in srgb, var(--c) 25%, var(--card)); }
.fl-ob-kidadd input { border-color: color-mix(in srgb, var(--c) 45%, var(--card)); color: var(--text); }
.fl-ob-kidadd input::placeholder { color: var(--c); font-weight: 600; }
.fl-ob-card { background: color-mix(in srgb, var(--c) 13%, var(--card)); border-color: color-mix(in srgb, var(--c) 30%, var(--card)); }
.fl-ob-card .sico { background: color-mix(in srgb, var(--c) 22%, var(--card)); }
.fl-ob-cat .cico { background: var(--c); color: #fff; }
.fl-ob-cat .cname { color: var(--c); }
.fl-ob-cat .ccount { background: color-mix(in srgb, var(--c) 18%, var(--card)); }
.fl-ob-item.cat { border-left: 4px solid var(--c); padding-left: 8px; border-radius: 0 10px 10px 0; margin: 4px 0; background: color-mix(in srgb, var(--c) 4%, var(--card)); }
.fl-ob-subadd input::placeholder { color: var(--c); }
html[data-theme="dark"] .fl-ob-card { background: color-mix(in srgb, var(--c) 22%, var(--card)); border-color: color-mix(in srgb, var(--c) 40%, var(--card)); }
html[data-theme="dark"] .fl-ob-kid { background: color-mix(in srgb, var(--c) 20%, var(--card)); }
html[data-theme="dark"] .fl-ob-cat .cname { color: color-mix(in srgb, var(--c) 55%, #fff); }
html[data-theme="dark"] .fl-ob-cat .cico { background: color-mix(in srgb, var(--c) 70%, #fff); color: #1a1322; }
/* ---- Onboarding, the board look from Emily's references (10 Oct 2026): a strong header band per column, a pale body, cream cards ---- */
.fl-ob-box { background: color-mix(in srgb, var(--c) 11%, var(--card)); border: none; border-radius: 18px; box-shadow: none; overflow: hidden; }
.fl-ob-box.unplaced { background: color-mix(in srgb, var(--c) 13%, var(--card)); }
.fl-ob-boxhead { background: var(--c); border-bottom: none; padding: 12px 14px; }
.fl-ob-boxhead .dname b { color: #fff; font-family: Georgia, "Times New Roman", serif; font-weight: 600; font-size: 1.15rem; letter-spacing: .01em; }
.fl-ob-boxhead .ddate { color: rgba(255, 255, 255, .85); }
.fl-ob-boxhead .dbadge { background: rgba(255, 255, 255, .22); color: #fff; }
.fl-ob-boxhead .dcount { background: rgba(255, 255, 255, .22); color: #fff; }
.fl-ob-boxhead .dcount.ok { background: rgba(255, 255, 255, .92); color: var(--c); }
.fl-ob-box.alldone .dbadge { background: rgba(255, 255, 255, .92); color: var(--c); }
.fl-ob-prog .pl { color: color-mix(in srgb, var(--c) 65%, var(--text)); }
.fl-ob-prog .pl b { color: color-mix(in srgb, var(--c) 80%, var(--text)); }
.fl-ob-prog .fl-bar { background: color-mix(in srgb, var(--c) 18%, var(--card)); }
.fl-ob-prog .fl-bar i { background: var(--c); }
.fl-ob-item.cat { background: transparent; border-left: none; padding-left: 0; margin: 6px 0; }
.fl-ob-cat { background: color-mix(in srgb, var(--c) 10%, var(--card)); border-radius: 12px; padding: 6px 8px; }
.fl-ob-card { background: var(--card); border: none; border-left: 5px solid var(--c); border-radius: 12px; box-shadow: 0 2px 8px rgba(40, 20, 10, .07); }
.fl-ob-card.s-completed { background: color-mix(in srgb, var(--ok-bg) 55%, var(--card)); border-left-color: var(--ok); }
.fl-ob-card .sico { background: color-mix(in srgb, var(--c) 16%, var(--card)); }
.fl-ob-kid { background: color-mix(in srgb, var(--c) 8%, var(--card)); border: none; border-left: 3px solid color-mix(in srgb, var(--c) 60%, var(--card)); border-radius: 0 8px 8px 0; }
.fl-ob-card .fl-ob-kids { border-left: none; padding-left: 0; margin-left: 22px; }
.fl-ob-kidadd { border-left: none; padding-left: 0; margin-left: 22px; }
.fl-ob-add { border-color: color-mix(in srgb, var(--c) 40%, var(--card)); background: var(--card); }
.fl-ob-remark { background: var(--card); border-style: solid; border-color: color-mix(in srgb, var(--c) 22%, var(--card)); }
.fl-ob-head .fl-ob-title h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 600; letter-spacing: .01em; }
.fl-ob-cell.train { background: color-mix(in srgb, var(--c) 18%, var(--card)); }
html[data-theme="dark"] .fl-ob-box { background: color-mix(in srgb, var(--c) 18%, var(--card)); }
html[data-theme="dark"] .fl-ob-card { background: color-mix(in srgb, var(--c) 10%, var(--card)); box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
html[data-theme="dark"] .fl-ob-cat { background: color-mix(in srgb, var(--c) 18%, var(--card)); }
html[data-theme="dark"] .fl-ob-cat .cname { color: color-mix(in srgb, var(--c) 50%, #fff); }
html[data-theme="dark"] .fl-ob-kid { background: color-mix(in srgb, var(--c) 16%, var(--card)); }
/* ---- the trainee's calendar, after Emily's references (10 Oct 2026): a script month title on a warm panel, translucent cells, Sundays in red ---- */
.fl-ob-months { gap: 18px; }
.fl-ob-month { background: linear-gradient(160deg, #e8cfc2 0%, #d8bfb3 45%, #bfa89f 100%); border-radius: 18px; padding: 14px 14px 16px; box-shadow: 0 6px 18px rgba(80, 50, 40, .12); }
.fl-ob-month h3 { font-family: "Segoe Script", "Brush Script MT", "Snell Roundhand", cursive; font-size: 1.9rem; font-weight: 600; text-align: center; color: #fff; text-shadow: 0 1px 3px rgba(60, 30, 20, .35); margin: 0 0 10px; letter-spacing: .02em; }
.fl-ob-grid { gap: 4px; }
.fl-ob-dow { color: #fff; font-size: .7rem; letter-spacing: .12em; text-shadow: 0 1px 2px rgba(60, 30, 20, .35); padding: 3px 0 5px; }
.fl-ob-dow:nth-child(7) { color: #ffd4d4; }
.fl-ob-cell { min-height: 68px; background: rgba(255, 255, 255, .74); border: 1px solid rgba(255, 255, 255, .95); border-radius: 7px; padding: 4px 6px; }
.fl-ob-cell.pad { background: transparent; border-color: transparent; }
.fl-ob-cell .dnum { color: #4a3a35; font-weight: 700; font-size: .8rem; }
.fl-ob-grid > .fl-ob-cell:nth-child(7n) .dnum { color: #c23b3b; }
.fl-ob-cell.train { background: color-mix(in srgb, var(--c) 82%, #fff); border-color: color-mix(in srgb, var(--c) 60%, #fff); }
.fl-ob-cell.train .dnum, .fl-ob-cell.train .dtag { color: #fff; }
.fl-ob-cell.train .dsub { color: rgba(255, 255, 255, .88); }
.fl-ob-cell.alldone { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .9); }
.fl-ob-cell.today { box-shadow: inset 0 0 0 2px #4a3a35; }
.fl-ob-cell.off { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .85), rgba(255, 255, 255, .85) 6px, #f3c9c4 6px, #f3c9c4 12px); border-color: #e4a9a2; }
.fl-ob-cell .dtag.offtag { color: #a3352c; }
@media (hover: hover) { .fl-ob-cell:not(.pad):hover { border-color: #4a3a35; } }
html[data-theme="dark"] .fl-ob-month { background: linear-gradient(160deg, #4a3341 0%, #3a2a37 45%, #2c2130 100%); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
html[data-theme="dark"] .fl-ob-cell { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); }
html[data-theme="dark"] .fl-ob-cell .dnum { color: var(--text); }
html[data-theme="dark"] .fl-ob-cell.train { background: color-mix(in srgb, var(--c) 70%, #000); border-color: color-mix(in srgb, var(--c) 60%, #fff); }
html[data-theme="dark"] .fl-ob-cell.off { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .06) 6px, #5a2825 6px, #5a2825 12px); border-color: #a3352c; }
html[data-theme="dark"] .fl-ob-cell.today { box-shadow: inset 0 0 0 2px #fff; }
/* ---- Onboarding in purples (Emily, 10 Oct 2026, late): the calendar panel and the page wash follow ---- */
.fl-ob-month { background: linear-gradient(160deg, #dcc8f4 0%, #c6aaea 45%, #a98bd6 100%); box-shadow: 0 6px 18px rgba(70, 30, 110, .16); }
.fl-ob-month h3 { text-shadow: 0 1px 3px rgba(50, 20, 90, .4); }
.fl-ob-dow { text-shadow: 0 1px 2px rgba(50, 20, 90, .4); }
.fl-ob-cell .dnum { color: #3b2a55; }
.fl-ob-cell.today { box-shadow: inset 0 0 0 2px #3b2a55; }
@media (hover: hover) { .fl-ob-cell:not(.pad):hover { border-color: #3b2a55; } }
.fl-ob-card { box-shadow: 0 2px 8px rgba(60, 20, 110, .08); }
.fl-ob-head { background: linear-gradient(135deg, var(--card) 0%, color-mix(in srgb, #7c3aed 10%, var(--card)) 100%); }
.fl-ob-head .fl-ob-avatar { background: color-mix(in srgb, #7c3aed 14%, var(--card)); border-color: color-mix(in srgb, #7c3aed 35%, var(--card)); color: #5b21b6; }
.fl-ob-head .fl-ob-pill svg { color: #7c3aed; }
html[data-theme="dark"] .fl-ob-month { background: linear-gradient(160deg, #4a3372 0%, #3a2a5c 45%, #2c2046 100%); }
html[data-theme="dark"] .fl-ob-head .fl-ob-avatar { color: #d8c4f0; }
/* ---- notes under the smaller subtopics (Emily, 10 Oct 2026, late) ---- */
.fl-ob-kid { flex-wrap: wrap; }
.fl-ob-kid button.n { min-height: 0; height: 20px; padding: 0 7px; margin: 0 0 0 auto; font-size: .72rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--muted); cursor: pointer; }
.fl-ob-kid button.n.has { color: var(--c); border-color: var(--c); }
.fl-ob-kid button.n.on { background: color-mix(in srgb, var(--c) 14%, var(--card)); }
.fl-ob-kid .knotes { flex-basis: 100%; cursor: default; order: 10; }
.fl-ob-kid .knotes .fl-ob-notes.compact { margin: 6px 0 2px; }
/* ---- Onboarding header as a purple hero band (Emily, 10 Oct 2026, late) ---- */
.fl-ob-head { background: linear-gradient(135deg, #3b0764 0%, #6d28d9 55%, #9333ea 100%) !important; color: #fff; border: none; box-shadow: 0 10px 28px rgba(60, 20, 110, .25); border-radius: 20px; }
.fl-ob-head .fl-ob-avatar { background: #fff !important; color: #5b21b6 !important; border-color: rgba(255, 255, 255, .6) !important; width: 56px; height: 56px; font-size: 1.15rem; }
.fl-ob-head .fl-ob-title h1 { font-family: "Segoe Script", "Brush Script MT", "Snell Roundhand", cursive; font-size: 1.9rem; font-weight: 600; color: #fff; letter-spacing: .01em; text-shadow: 0 1px 3px rgba(40, 10, 80, .4); }
.fl-ob-head .fl-ob-title .sub { color: rgba(255, 255, 255, .82); }
.fl-ob-head .fl-ob-pill { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .35); color: #fff; }
.fl-ob-head .fl-ob-pill svg { color: #fff !important; }
.fl-ob-head .fl-ob-pill.ok { background: rgba(255, 255, 255, .92); color: #166534; }
.fl-ob-head .fl-ob-pill.bad { background: rgba(255, 255, 255, .92); color: #b3261e; }
.fl-ob-head .fl-ob-legend .dots { color: rgba(255, 255, 255, .9); }
.fl-ob-head .fl-ob-legend .dot { background: rgba(255, 255, 255, .14); border-radius: 999px; padding: 2px 9px 2px 6px; }
.fl-ob-head .fl-ob-legend .dot i { box-shadow: 0 0 0 2px rgba(255, 255, 255, .6); }
.fl-ob-head .fl-ob-controls { border-top-color: rgba(255, 255, 255, .22); }
.fl-ob-head .fl-ob-controls label { color: rgba(255, 255, 255, .85); }
.fl-ob-head .fl-ob-controls select, .fl-ob-head .fl-ob-controls input, .fl-ob-head textarea { background: rgba(255, 255, 255, .95); color: #2a1f2e; border-color: transparent; border-radius: 12px; }
.fl-ob-head .fl-ob-controls input[type="date"] { color-scheme: light; }
.fl-ob-head .fl-ob-controls button { background: #fff; color: #5b21b6; border: none; box-shadow: 0 2px 6px rgba(40, 10, 80, .25); }
.fl-ob-head .fl-ob-controls button.ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .6); box-shadow: none; }
.fl-ob-head .fl-ob-controls button.ghost:hover { background: rgba(255, 255, 255, .14); }
.fl-ob-head .fl-bar { background: rgba(255, 255, 255, .22); height: 8px; }
.fl-ob-head .fl-bar i { background: #fff; }
.fl-ob-head .fl-note { color: rgba(255, 255, 255, .82); }
.fl-ob-head .fl-ob-headrow .fl-ob-pills .br-chip { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .35); color: #fff; }
.fl-ob-head .fl-ob-headrow .fl-ob-pills .br-chip.on { background: #fff; border-color: #fff; color: #5b21b6; }
/* the calendar card */
.fl-ob .card > .fl-head > h2 { font-family: "Segoe Script", "Brush Script MT", "Snell Roundhand", cursive; font-size: 1.5rem; color: #6d28d9; padding-left: 0; }
.fl-ob .card > .fl-head > h2::before { content: none; }
.fl-ob .card > div > input[placeholder^="Reason for the off day"] { border-radius: 999px; padding-left: 16px; border-color: #d8c4f0; }
html[data-theme="dark"] .fl-ob-head { box-shadow: 0 10px 28px rgba(0, 0, 0, .45); }
html[data-theme="dark"] .fl-ob-head .fl-ob-controls select, html[data-theme="dark"] .fl-ob-head .fl-ob-controls input { background: rgba(255, 255, 255, .92); color: #2a1f2e; }
html[data-theme="dark"] .fl-ob .card > .fl-head > h2 { color: #c4a8ea; }
.fl-ob-head .fl-ob-title h1, html[data-theme="dark"] .fl-ob-head .fl-ob-title h1 { background: none !important; -webkit-background-clip: initial !important; background-clip: initial !important; -webkit-text-fill-color: #fff !important; color: #fff !important; margin: 0 0 2px; }
.fl-ob-head .fl-ob-title h1 .ym { color: rgba(255, 255, 255, .75); -webkit-text-fill-color: rgba(255, 255, 255, .75); font-weight: 500; }
/* ---- Onboarding header, lighter and plainer (Emily, 10 Oct 2026): lavender band, dark purple words, the normal font ---- */
.fl-ob-head { background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 50%, #ddd6fe 100%) !important; color: #2e1065; box-shadow: 0 8px 22px rgba(90, 40, 150, .14); border: 1px solid #d8c4f0; }
.fl-ob-head .fl-ob-avatar { background: #6d28d9 !important; color: #fff !important; border-color: #fff !important; box-shadow: 0 3px 8px rgba(60, 20, 110, .25); }
.fl-ob-head .fl-ob-title h1, html[data-theme="dark"] .fl-ob-head .fl-ob-title h1 { font-family: inherit; font-size: 1.55rem; font-weight: 800; letter-spacing: -.01em; text-shadow: none; -webkit-text-fill-color: #3b0764 !important; color: #3b0764 !important; }
.fl-ob-head .fl-ob-title h1 .ym { color: #6d28d9; -webkit-text-fill-color: #6d28d9; }
.fl-ob-head .fl-ob-title .sub { color: #4c1d95; font-size: .95rem; }
.fl-ob-head .fl-ob-pill { background: #fff; border: 1px solid #d8c4f0; color: #3b0764; font-weight: 600; }
.fl-ob-head .fl-ob-pill svg { color: #6d28d9 !important; }
.fl-ob-head .fl-ob-pill.ok { background: #fff; color: #166534; border-color: #bbf7d0; }
.fl-ob-head .fl-ob-pill.bad { background: #fff; color: #b3261e; border-color: #fecaca; }
.fl-ob-head .fl-ob-legend .dots { color: #3b0764; font-weight: 600; }
.fl-ob-head .fl-ob-legend .dot { background: #fff; border: 1px solid #e4d4fa; }
.fl-ob-head .fl-ob-legend .dot i { box-shadow: 0 0 0 2px #fff; }
.fl-ob-head .fl-ob-controls { border-top-color: #d8c4f0; }
.fl-ob-head .fl-ob-controls label { color: #3b0764; font-weight: 700; }
.fl-ob-head .fl-ob-controls select, .fl-ob-head .fl-ob-controls input, .fl-ob-head textarea { background: #fff; color: #1f1430; border: 1px solid #d8c4f0; font-size: .95rem; }
.fl-ob-head .fl-ob-controls select:focus, .fl-ob-head .fl-ob-controls input:focus { outline: 2px solid #a78bfa; outline-offset: 1px; }
.fl-ob-head .fl-ob-controls button { background: #6d28d9; color: #fff; border: none; box-shadow: 0 2px 6px rgba(60, 20, 110, .22); font-weight: 600; }
.fl-ob-head .fl-ob-controls button:hover { background: #5b21b6; }
.fl-ob-head .fl-ob-controls button.ghost { background: #fff; color: #5b21b6; border: 1.5px solid #c4b5fd; box-shadow: none; }
.fl-ob-head .fl-ob-controls button.ghost:hover { background: #f3e8ff; }
.fl-ob-head .fl-bar { background: #fff; border: 1px solid #d8c4f0; }
.fl-ob-head .fl-bar i { background: linear-gradient(90deg, #7c3aed, #a21caf); }
.fl-ob-head .fl-note { color: #4c1d95; font-size: .9rem; }
.fl-ob-head .fl-ob-headrow .fl-ob-pills .br-chip { background: #fff; border-color: #d8c4f0; color: #3b0764; }
.fl-ob-head .fl-ob-headrow .fl-ob-pills .br-chip.on { background: #6d28d9; border-color: #6d28d9; color: #fff; }
.fl-ob .card > .fl-head > h2 { font-family: inherit; font-size: 1.25rem; font-weight: 800; color: #4c1d95; }
html[data-theme="dark"] .fl-ob-head { background: linear-gradient(135deg, #2e1b4a 0%, #3b2563 50%, #45307a 100%) !important; border-color: #5b3f8f; color: #ede9fe; }
html[data-theme="dark"] .fl-ob-head .fl-ob-title h1 { -webkit-text-fill-color: #f3e8ff !important; color: #f3e8ff !important; }
html[data-theme="dark"] .fl-ob-head .fl-ob-title .sub, html[data-theme="dark"] .fl-ob-head .fl-note, html[data-theme="dark"] .fl-ob-head .fl-ob-controls label, html[data-theme="dark"] .fl-ob-head .fl-ob-legend .dots { color: #ddd6fe; }
html[data-theme="dark"] .fl-ob-head .fl-ob-pill, html[data-theme="dark"] .fl-ob-head .fl-ob-legend .dot { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .25); color: #f3e8ff; }
html[data-theme="dark"] .fl-ob-head .fl-ob-pill svg { color: #c4b5fd !important; }
html[data-theme="dark"] .fl-ob-head .fl-ob-controls select, html[data-theme="dark"] .fl-ob-head .fl-ob-controls input { background: #fff; color: #1f1430; }
html[data-theme="dark"] .fl-ob-head .fl-ob-controls { border-top-color: #5b3f8f; }
html[data-theme="dark"] .fl-ob-head .fl-bar { background: rgba(255, 255, 255, .12); border-color: transparent; }
/* inline rename box: double-click a name */
.fl-ob-rename { min-height: 0 !important; height: 24px; font: inherit; font-size: .9rem; padding: 0 6px; margin: 0; border: 1.5px solid #7c3aed; border-radius: 6px; background: #fff; color: #1f1430; flex: 1; min-width: 80px; width: auto; }
.fl-ob-kid .fl-ob-rename { font-size: .82rem; height: 20px; }
.fl-ob-cat .fl-ob-rename { font-weight: 700; }
.fl-ob-card .name, .fl-ob-cat .cname, .fl-ob-kid .kname { cursor: text; }
/* ---- Notes: a ✕ to hide them, the latest two shown with See more / See less, a symbol per kind (◉ progress, ✦ input) ---- */
.fl-ob-notes .lbl .close { min-height: 0; height: 20px; width: 20px; padding: 0; margin: 0 0 0 6px; border: none; background: none; box-shadow: none; color: var(--muted); font-size: .8rem; border-radius: 50%; cursor: pointer; }
.fl-ob-notes .lbl .close:hover { color: var(--bad); background: var(--bad-bg); }
.fl-ob-fold { display: flex; align-items: center; gap: 8px; margin: 6px 0 2px; padding: 4px 8px; border-radius: 999px; background: color-mix(in srgb, var(--c) 8%, var(--card)); font-size: .76rem; }
.fl-ob-fold .syms { display: flex; flex-wrap: wrap; gap: 3px; }
.fl-ob-fold .sym, .fl-ob-note-row .by .kind { line-height: 1.2; }
.fl-ob-fold .sym { font-size: .9rem; line-height: 1; cursor: default; }
.fl-ob-fold .sym.progress, .fl-ob-note-row .by .kind.progress { color: var(--info); }
.fl-ob-fold .sym.em { color: #d99a00; }
.fl-ob-fold .more { min-height: 0; height: 22px; padding: 0 10px; margin: 0 0 0 auto; border: 1px solid color-mix(in srgb, var(--c) 40%, var(--card)); background: var(--card); color: var(--c); font-size: .74rem; font-weight: 700; border-radius: 999px; box-shadow: none; cursor: pointer; }
.fl-ob-fold .more:hover { background: color-mix(in srgb, var(--c) 12%, var(--card)); }
html[data-theme="dark"] .fl-ob-fold .sym.em { color: #ffd45e; }
/* the header title: the usual font, just big */
.fl-ob-head .fl-ob-title h1, html[data-theme="dark"] .fl-ob-head .fl-ob-title h1 { font-family: inherit !important; font-size: 1.75rem; font-weight: 800; }
/* ---- Pick the colour of the top band and the calendar (Emily, 10 Oct 2026): --ob-head and --ob-cal, remembered in the browser ---- */
:root { --ob-head: #7c3aed; --ob-cal: #a98bd6; }
.fl-ob-head { background: linear-gradient(135deg, color-mix(in srgb, var(--ob-head) 10%, #fff) 0%, color-mix(in srgb, var(--ob-head) 20%, #fff) 50%, color-mix(in srgb, var(--ob-head) 30%, #fff) 100%) !important; border-color: color-mix(in srgb, var(--ob-head) 30%, #fff); color: color-mix(in srgb, var(--ob-head) 72%, #000); box-shadow: 0 8px 22px color-mix(in srgb, var(--ob-head) 18%, transparent); }
.fl-ob-head .fl-ob-avatar { background: var(--ob-head) !important; }
.fl-ob-head .fl-ob-title h1, html[data-theme="dark"] .fl-ob-head .fl-ob-title h1 { -webkit-text-fill-color: color-mix(in srgb, var(--ob-head) 72%, #000) !important; color: color-mix(in srgb, var(--ob-head) 72%, #000) !important; }
.fl-ob-head .fl-ob-title h1 .ym { color: var(--ob-head); -webkit-text-fill-color: var(--ob-head); }
.fl-ob-head .fl-ob-title .sub, .fl-ob-head .fl-note, .fl-ob-head .fl-ob-controls label, .fl-ob-head .fl-ob-legend .dots { color: color-mix(in srgb, var(--ob-head) 65%, #000); }
.fl-ob-head .fl-ob-pill { color: color-mix(in srgb, var(--ob-head) 72%, #000); border-color: color-mix(in srgb, var(--ob-head) 30%, #fff); }
.fl-ob-head .fl-ob-pill svg { color: var(--ob-head) !important; }
.fl-ob-head .fl-ob-legend .dot { border-color: color-mix(in srgb, var(--ob-head) 22%, #fff); }
.fl-ob-head .fl-ob-controls { border-top-color: color-mix(in srgb, var(--ob-head) 30%, #fff); }
.fl-ob-head .fl-ob-controls select, .fl-ob-head .fl-ob-controls input, .fl-ob-head textarea { border-color: color-mix(in srgb, var(--ob-head) 30%, #fff); }
.fl-ob-head .fl-ob-controls select:focus, .fl-ob-head .fl-ob-controls input:focus { outline-color: color-mix(in srgb, var(--ob-head) 60%, #fff); }
.fl-ob-head .fl-ob-controls button { background: var(--ob-head); box-shadow: 0 2px 6px color-mix(in srgb, var(--ob-head) 30%, transparent); }
.fl-ob-head .fl-ob-controls button:hover { background: color-mix(in srgb, var(--ob-head) 85%, #000); }
.fl-ob-head .fl-ob-controls button.ghost { background: #fff; color: color-mix(in srgb, var(--ob-head) 80%, #000); border-color: color-mix(in srgb, var(--ob-head) 45%, #fff); }
.fl-ob-head .fl-ob-controls button.ghost:hover { background: color-mix(in srgb, var(--ob-head) 10%, #fff); }
.fl-ob-head .fl-bar { border-color: color-mix(in srgb, var(--ob-head) 30%, #fff); }
.fl-ob-head .fl-bar i { background: var(--ob-head); }
.fl-ob-head .fl-ob-headrow .fl-ob-pills .br-chip { border-color: color-mix(in srgb, var(--ob-head) 30%, #fff); color: color-mix(in srgb, var(--ob-head) 72%, #000); }
.fl-ob-head .fl-ob-headrow .fl-ob-pills .br-chip.on { background: var(--ob-head); border-color: var(--ob-head); }
.fl-ob .card > .fl-head > h2 { color: color-mix(in srgb, var(--ob-cal) 60%, #000); }
.fl-ob-month { background: linear-gradient(160deg, color-mix(in srgb, var(--ob-cal) 45%, #fff) 0%, color-mix(in srgb, var(--ob-cal) 72%, #fff) 45%, var(--ob-cal) 100%); box-shadow: 0 6px 18px color-mix(in srgb, var(--ob-cal) 25%, transparent); }
.fl-ob-cell .dnum { color: color-mix(in srgb, var(--ob-cal) 55%, #000); }
.fl-ob-cell.today { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--ob-cal) 55%, #000); }
@media (hover: hover) { .fl-ob-cell:not(.pad):hover { border-color: color-mix(in srgb, var(--ob-cal) 55%, #000); } }
html[data-theme="dark"] .fl-ob-head { background: linear-gradient(135deg, color-mix(in srgb, var(--ob-head) 28%, #1a1424) 0%, color-mix(in srgb, var(--ob-head) 38%, #1a1424) 50%, color-mix(in srgb, var(--ob-head) 48%, #1a1424) 100%) !important; border-color: color-mix(in srgb, var(--ob-head) 50%, #1a1424); color: #f3f0f8; }
html[data-theme="dark"] .fl-ob-head .fl-ob-title h1 { -webkit-text-fill-color: #fff !important; color: #fff !important; }
html[data-theme="dark"] .fl-ob-head .fl-ob-title h1 .ym { color: color-mix(in srgb, var(--ob-head) 50%, #fff); -webkit-text-fill-color: color-mix(in srgb, var(--ob-head) 50%, #fff); }
html[data-theme="dark"] .fl-ob-head .fl-ob-title .sub, html[data-theme="dark"] .fl-ob-head .fl-note, html[data-theme="dark"] .fl-ob-head .fl-ob-controls label, html[data-theme="dark"] .fl-ob-head .fl-ob-legend .dots, html[data-theme="dark"] .fl-ob-head .fl-ob-pill, html[data-theme="dark"] .fl-ob-head .fl-ob-headrow .fl-ob-pills .br-chip { color: #ece6f5; }
html[data-theme="dark"] .fl-ob-head .fl-ob-pill svg { color: color-mix(in srgb, var(--ob-head) 45%, #fff) !important; }
html[data-theme="dark"] .fl-ob-head .fl-ob-controls { border-top-color: color-mix(in srgb, var(--ob-head) 50%, #1a1424); }
html[data-theme="dark"] .fl-ob-head .fl-ob-controls button.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
html[data-theme="dark"] .fl-ob .card > .fl-head > h2 { color: color-mix(in srgb, var(--ob-cal) 55%, #fff); }
html[data-theme="dark"] .fl-ob-month { background: linear-gradient(160deg, color-mix(in srgb, var(--ob-cal) 55%, #1a1424) 0%, color-mix(in srgb, var(--ob-cal) 42%, #1a1424) 45%, color-mix(in srgb, var(--ob-cal) 30%, #1a1424) 100%); }
/* the colour button and its swatches */
.fl-ob-colour { position: relative; display: inline-flex; align-items: center; margin-left: auto; }
.fl-ob-legend { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fl-ob-colour .pick { min-height: 0; height: 24px; padding: 0 9px 0 5px; margin: 0; display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 700; border-radius: 999px; background: #fff; color: #3b2a55; border: 1px solid rgba(0, 0, 0, .1); box-shadow: none; cursor: pointer; }
.fl-ob-colour .pick i { width: 14px; height: 14px; border-radius: 50%; display: inline-block; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.fl-ob-swatches { position: absolute; right: 0; top: 30px; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; width: 236px; padding: 10px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 10px 28px rgba(0, 0, 0, .18); }
.fl-ob-swatches .sw { min-height: 0; width: 24px; height: 24px; padding: 0; margin: 0; border: 2px solid #fff; border-radius: 50%; background: var(--sw); box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); cursor: pointer; }
.fl-ob-swatches .sw.on { box-shadow: 0 0 0 2px var(--sw); }
.fl-ob-swatches .custom { position: relative; width: 24px; height: 24px; border-radius: 50%; overflow: hidden; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); background: conic-gradient(#f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00); cursor: pointer; margin: 0; }
.fl-ob-swatches .custom input { position: absolute; inset: -8px; width: 40px; height: 40px; opacity: 0; cursor: pointer; }
.fl-ob-swatches .reset { min-height: 0; height: 24px; padding: 0 10px; margin: 0 0 0 auto; font-size: .72rem; border-radius: 999px; background: var(--bg); color: var(--text); border: 1px solid var(--line); box-shadow: none; cursor: pointer; }
html[data-theme="dark"] .fl-ob-colour .pick { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .3); }
/* ---- colour: the band follows the chosen colour clearly; the picker is a 🎨 in the top-right corner ---- */
.fl-ob-head { background: linear-gradient(135deg, color-mix(in srgb, var(--ob-head) 22%, #fff) 0%, color-mix(in srgb, var(--ob-head) 40%, #fff) 50%, color-mix(in srgb, var(--ob-head) 58%, #fff) 100%) !important; border-color: color-mix(in srgb, var(--ob-head) 50%, #fff); }
.fl-ob-head .fl-ob-title h1, html[data-theme="dark"] .fl-ob-head .fl-ob-title h1 { -webkit-text-fill-color: color-mix(in srgb, var(--ob-head) 62%, #000) !important; color: color-mix(in srgb, var(--ob-head) 62%, #000) !important; }
.fl-ob-head .fl-ob-title .sub, .fl-ob-head .fl-note, .fl-ob-head .fl-ob-controls label, .fl-ob-head .fl-ob-legend .dots { color: color-mix(in srgb, var(--ob-head) 55%, #000); }
.fl-ob-head .fl-ob-controls { border-top-color: color-mix(in srgb, var(--ob-head) 55%, #fff); }
.fl-ob-head .fl-bar { background: rgba(255, 255, 255, .7); border-color: color-mix(in srgb, var(--ob-head) 50%, #fff); }
html[data-theme="dark"] .fl-ob-head { background: linear-gradient(135deg, color-mix(in srgb, var(--ob-head) 38%, #1a1424) 0%, color-mix(in srgb, var(--ob-head) 52%, #1a1424) 50%, color-mix(in srgb, var(--ob-head) 66%, #1a1424) 100%) !important; }
html[data-theme="dark"] .fl-ob-head .fl-ob-title h1 { -webkit-text-fill-color: #fff !important; color: #fff !important; }
.fl-ob-head, .fl-ob-calcard { position: relative; }
.fl-ob-colour.corner { position: absolute; top: 10px; right: 10px; margin: 0; z-index: 6; }
.fl-ob-colour .pick { height: 32px; width: 32px; padding: 0; justify-content: center; font-size: 1.05rem; line-height: 1; border-radius: 50%; background: #fff; border: 2px solid var(--cur, var(--brand)); box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
.fl-ob-colour .pick:hover { transform: scale(1.08); }
.fl-ob-colour .pick i, .fl-ob-colour .pick span { display: none; }
.fl-ob-swatches { top: 38px; }
html[data-theme="dark"] .fl-ob-colour .pick { background: #2a2235; }
/* ---- a palette on every day box too: its band, cards and calendar days follow ---- */
.fl-ob-colour.inline { position: relative; margin-left: 6px; }
.fl-ob-colour.inline .pick { height: 24px; width: 24px; font-size: .8rem; border-width: 2px; border-color: rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .92); box-shadow: 0 1px 4px rgba(0, 0, 0, .2); }
.fl-ob-colour.inline .fl-ob-swatches { top: 30px; right: -4px; }
.fl-ob-boxhead { position: relative; z-index: 2; }
.fl-ob-box.fl-ob-box { overflow: visible; }
.fl-ob-box .fl-ob-boxhead { border-radius: 18px 18px 0 0; }
/* ---- Notes hidden: the card shows a symbol per note; a clear Hide button in the heading and under the form ---- */
.fl-ob-notes .lbl .close { width: auto; height: 22px; padding: 0 9px; font-size: .72rem; font-weight: 700; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--c) 35%, var(--card)); background: var(--card); color: var(--c); }
.fl-ob-notes .lbl .close:hover { color: var(--bad); border-color: var(--bad); background: var(--bad-bg); }
.fl-ob-hide { display: flex; justify-content: flex-end; margin-top: 6px; }
.fl-ob-hide button { min-height: 0; height: 24px; padding: 0 12px; margin: 0; font-size: .74rem; font-weight: 700; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--c) 35%, var(--card)); background: var(--card); color: var(--c); box-shadow: none; cursor: pointer; }
.fl-ob-hide button:hover { background: color-mix(in srgb, var(--c) 10%, var(--card)); }
.fl-ob-nsyms { min-height: 0; height: 22px; padding: 0 8px; margin: 4px 0 0 24px; display: inline-flex; align-items: center; gap: 3px; align-self: flex-start; border-radius: 999px; border: 1px dashed color-mix(in srgb, var(--c) 40%, var(--card)); background: color-mix(in srgb, var(--c) 6%, var(--card)); box-shadow: none; cursor: pointer; font-size: .9rem; line-height: 1; }
.fl-ob-nsyms:hover { border-style: solid; background: color-mix(in srgb, var(--c) 12%, var(--card)); }
.fl-ob-nsyms .sym.progress, .fl-ob-kid .n .sym.progress { color: var(--info); }
.fl-ob-nsyms .sym.em, .fl-ob-kid .n .sym.em { color: #d99a00; }
.fl-ob-kid .n { display: inline-flex; align-items: center; gap: 2px; }
.fl-ob-kid .n .sym { font-size: .85rem; line-height: 1; }
html[data-theme="dark"] .fl-ob-nsyms .sym.em, html[data-theme="dark"] .fl-ob-kid .n .sym.em { color: #ffd45e; }
/* ---- the add lines are just a "+" (Emily, 10 Oct 2026) ---- */
.fl-ob-kidadd input, .fl-ob-subadd input { width: 34px; min-width: 34px; text-align: center; font-weight: 700; font-size: .95rem; transition: width .15s ease; }
.fl-ob-kidadd input::placeholder, .fl-ob-subadd input::placeholder { color: var(--c); opacity: .9; }
.fl-ob-kidadd input:focus, .fl-ob-subadd input:focus { width: 100%; text-align: left; font-weight: 500; }
.fl-ob-subadd > svg { display: none; }
/* ---- the band's words stay dark whatever colour is chosen (Emily, 10 Oct 2026); buttons and avatar use a deepened version of the colour ---- */
.fl-ob-head { color: #241a30; }
.fl-ob-head .fl-ob-title h1 { -webkit-text-fill-color: #241a30 !important; color: #241a30 !important; }
.fl-ob-head .fl-ob-title h1 .ym { color: #4a3a5c; -webkit-text-fill-color: #4a3a5c; }
.fl-ob-head .fl-ob-title .sub, .fl-ob-head .fl-note, .fl-ob-head .fl-ob-controls label, .fl-ob-head .fl-ob-legend .dots, .fl-ob-head .fl-ob-pill, .fl-ob-head .fl-ob-headrow .fl-ob-pills .br-chip { color: #241a30; }
.fl-ob-head .fl-ob-pill svg { color: #4a3a5c !important; }
.fl-ob-head .fl-ob-avatar, .fl-ob-head .fl-ob-controls button, .fl-ob-head .fl-ob-headrow .fl-ob-pills .br-chip.on { background: color-mix(in srgb, var(--ob-head) 65%, #000) !important; color: #fff !important; }
.fl-ob-head .fl-ob-controls button:hover { background: color-mix(in srgb, var(--ob-head) 50%, #000); }
.fl-ob-head .fl-ob-controls button.ghost { background: #fff !important; color: #241a30 !important; border-color: color-mix(in srgb, var(--ob-head) 60%, #000); }
.fl-ob-head .fl-bar i { background: color-mix(in srgb, var(--ob-head) 65%, #000); }
.fl-ob-head .fl-ob-controls select, .fl-ob-head .fl-ob-controls input { color: #1f1430; }
html[data-theme="dark"] .fl-ob-head, html[data-theme="dark"] .fl-ob-head .fl-ob-title .sub, html[data-theme="dark"] .fl-ob-head .fl-note, html[data-theme="dark"] .fl-ob-head .fl-ob-controls label, html[data-theme="dark"] .fl-ob-head .fl-ob-legend .dots, html[data-theme="dark"] .fl-ob-head .fl-ob-pill, html[data-theme="dark"] .fl-ob-head .fl-ob-headrow .fl-ob-pills .br-chip { color: #f3f0f8; }
html[data-theme="dark"] .fl-ob-head .fl-ob-title h1 { -webkit-text-fill-color: #fff !important; color: #fff !important; }
html[data-theme="dark"] .fl-ob-head .fl-ob-title h1 .ym { color: #ddd6fe; -webkit-text-fill-color: #ddd6fe; }
html[data-theme="dark"] .fl-ob-head .fl-ob-pill svg { color: #ddd6fe !important; }
html[data-theme="dark"] .fl-ob-head .fl-ob-controls button.ghost { background: transparent !important; color: #fff !important; border-color: rgba(255, 255, 255, .6); }
/* the calendar heading too */
.fl-ob .card > .fl-head > h2 { color: #241a30; }
html[data-theme="dark"] .fl-ob .card > .fl-head > h2 { color: #f3f0f8; }
/* ---- Ink follows the colour (Emily, 10 Oct 2026): black or white words depending on how light the band is; pastels show as themselves ---- */
:root { --ob-head-a: #e5d8fb; --ob-head-b: #cab0f8; --ob-head-c: #b088f4; --ob-head-ink: #241a30; --ob-head-deep: #5d2cb2; --ob-cal-a: #d7c9ea; --ob-cal-b: #bba6e0; --ob-cal-c: #a98bd6; --ob-cal-ink: #ffffff; --ob-cal-deep: #766196; }
.fl-ob-head { background: linear-gradient(135deg, var(--ob-head-a) 0%, var(--ob-head-b) 50%, var(--ob-head-c) 100%) !important; color: var(--ob-head-ink); border-color: color-mix(in srgb, var(--ob-head-b) 70%, var(--ob-head-ink)); }
.fl-ob-head .fl-ob-title h1 { -webkit-text-fill-color: var(--ob-head-ink) !important; color: var(--ob-head-ink) !important; }
.fl-ob-head .fl-ob-title h1 .ym { color: color-mix(in srgb, var(--ob-head-ink) 70%, var(--ob-head-b)); -webkit-text-fill-color: color-mix(in srgb, var(--ob-head-ink) 70%, var(--ob-head-b)); }
.fl-ob-head .fl-ob-title .sub, .fl-ob-head .fl-note, .fl-ob-head .fl-ob-controls label, .fl-ob-head .fl-ob-legend .dots { color: var(--ob-head-ink); }
.fl-ob-head .fl-ob-pill, .fl-ob-head .fl-ob-headrow .fl-ob-pills .br-chip, .fl-ob-head .fl-ob-legend .dot { background: color-mix(in srgb, var(--ob-head-ink) 10%, transparent); border-color: color-mix(in srgb, var(--ob-head-ink) 25%, transparent); color: var(--ob-head-ink); }
.fl-ob-head .fl-ob-pill svg { color: var(--ob-head-ink) !important; }
.fl-ob-head .fl-ob-pill.ok, .fl-ob-head .fl-ob-pill.bad { background: #fff; }
.fl-ob-head .fl-ob-controls { border-top-color: color-mix(in srgb, var(--ob-head-ink) 20%, transparent); }
.fl-ob-head .fl-ob-avatar, .fl-ob-head .fl-ob-controls button, .fl-ob-head .fl-ob-headrow .fl-ob-pills .br-chip.on { background: var(--ob-head-deep) !important; color: #fff !important; }
.fl-ob-head .fl-ob-controls button:hover { background: color-mix(in srgb, var(--ob-head-deep) 80%, #000); }
.fl-ob-head .fl-ob-controls button.ghost { background: color-mix(in srgb, var(--ob-head-ink) 8%, transparent) !important; color: var(--ob-head-ink) !important; border-color: color-mix(in srgb, var(--ob-head-ink) 45%, transparent); }
.fl-ob-head .fl-bar { background: color-mix(in srgb, var(--ob-head-ink) 12%, transparent); border-color: transparent; }
.fl-ob-head .fl-bar i { background: var(--ob-head-deep); }
.fl-ob-head .fl-ob-controls select, .fl-ob-head .fl-ob-controls input { background: #fff; color: #1f1430; border-color: transparent; }
.fl-ob .card > .fl-head > h2 { color: var(--text); }
.fl-ob-month { background: linear-gradient(160deg, var(--ob-cal-a) 0%, var(--ob-cal-b) 45%, var(--ob-cal-c) 100%); }
.fl-ob-month h3, .fl-ob-dow { color: var(--ob-cal-ink); text-shadow: none; }
.fl-ob-dow:nth-child(7) { color: #c23b3b; }
.fl-ob-cell .dnum { color: var(--ob-cal-deep); }
.fl-ob-cell.today { box-shadow: inset 0 0 0 2px var(--ob-cal-deep); }
@media (hover: hover) { .fl-ob-cell:not(.pad):hover { border-color: var(--ob-cal-deep); } }
.fl-ob-cell.train .dnum, .fl-ob-cell.train .dtag { color: var(--ink, #fff); }
.fl-ob-cell.train .dsub { color: color-mix(in srgb, var(--ink, #fff) 85%, transparent); }
.fl-ob-box { --ink: #fff; }
.fl-ob-boxhead .dname b, .fl-ob-boxhead .dbadge, .fl-ob-boxhead .dcount { color: var(--ink); }
.fl-ob-boxhead .ddate { color: color-mix(in srgb, var(--ink) 85%, transparent); }
.fl-ob-boxhead .dbadge, .fl-ob-boxhead .dcount { background: color-mix(in srgb, var(--ink) 18%, transparent); }
.fl-ob-boxhead .dcount.ok { background: color-mix(in srgb, var(--ink) 92%, transparent); color: var(--c); }
.fl-ob-boxhead .dots, .fl-ob-boxhead .chev { color: var(--ink); }
/* dark mode: the band and calendar are darkened mixes, always white words */
html[data-theme="dark"] .fl-ob-head { background: linear-gradient(135deg, color-mix(in srgb, var(--ob-head) 38%, #1a1424) 0%, color-mix(in srgb, var(--ob-head) 52%, #1a1424) 50%, color-mix(in srgb, var(--ob-head) 66%, #1a1424) 100%) !important; color: #f3f0f8; border-color: color-mix(in srgb, var(--ob-head) 50%, #1a1424); }
html[data-theme="dark"] .fl-ob-head .fl-ob-title h1 { -webkit-text-fill-color: #fff !important; color: #fff !important; }
html[data-theme="dark"] .fl-ob-head .fl-ob-title h1 .ym { color: #ddd6fe; -webkit-text-fill-color: #ddd6fe; }
html[data-theme="dark"] .fl-ob-head .fl-ob-title .sub, html[data-theme="dark"] .fl-ob-head .fl-note, html[data-theme="dark"] .fl-ob-head .fl-ob-controls label, html[data-theme="dark"] .fl-ob-head .fl-ob-legend .dots, html[data-theme="dark"] .fl-ob-head .fl-ob-pill, html[data-theme="dark"] .fl-ob-head .fl-ob-headrow .fl-ob-pills .br-chip, html[data-theme="dark"] .fl-ob-head .fl-ob-legend .dot { color: #f3f0f8; border-color: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .1); }
html[data-theme="dark"] .fl-ob-head .fl-ob-pill svg { color: #ddd6fe !important; }
html[data-theme="dark"] .fl-ob-head .fl-ob-controls { border-top-color: rgba(255, 255, 255, .2); }
html[data-theme="dark"] .fl-ob-head .fl-ob-controls button.ghost { background: transparent !important; color: #fff !important; border-color: rgba(255, 255, 255, .6); }
html[data-theme="dark"] .fl-ob-head .fl-bar { background: rgba(255, 255, 255, .12); }
html[data-theme="dark"] .fl-ob-month { background: linear-gradient(160deg, color-mix(in srgb, var(--ob-cal) 55%, #1a1424) 0%, color-mix(in srgb, var(--ob-cal) 42%, #1a1424) 45%, color-mix(in srgb, var(--ob-cal) 30%, #1a1424) 100%); }
html[data-theme="dark"] .fl-ob-month h3, html[data-theme="dark"] .fl-ob-dow { color: #fff; }
html[data-theme="dark"] .fl-ob-cell .dnum { color: #e9e4f2; }
html[data-theme="dark"] .fl-ob .card > .fl-head > h2 { color: var(--text); }
/* the bigger swatch panel: eight a row, strong ones first, pastels after */
.fl-ob-swatches { width: 292px; gap: 7px; }
.fl-ob-swatches .sw { width: 26px; height: 26px; }
.fl-ob-swatches .sw:nth-child(13) { margin-left: 0; }
.fl-ob-swatches .sw:nth-child(12)::after { content: ''; }
/* ---- note symbols: ◉ pastel green for a progress update, a red ! for an input; the ✎ stands on its own ---- */
.sym.progress, .fl-ob-fold .sym.progress, .fl-ob-nsyms .sym.progress, .fl-ob-kid .n .sym.progress, .fl-ob-note-row .by .kind .sym.progress { color: #6fbf93 !important; }
.sym.em, .fl-ob-fold .sym.em, .fl-ob-nsyms .sym.em, .fl-ob-kid .n .sym.em, .fl-ob-note-row .by .kind .sym.em { color: #dc2626 !important; font-weight: 900; }
html[data-theme="dark"] .sym.progress, html[data-theme="dark"] .fl-ob-fold .sym.progress, html[data-theme="dark"] .fl-ob-nsyms .sym.progress { color: #8fd8ae !important; }
html[data-theme="dark"] .sym.em, html[data-theme="dark"] .fl-ob-fold .sym.em, html[data-theme="dark"] .fl-ob-nsyms .sym.em { color: #ff6b6b !important; }
.fl-ob-nsyms.kid { margin: 0 0 0 2px; height: 20px; padding: 0 6px; font-size: .82rem; order: 0; }
.fl-ob-kid .n { gap: 0; }
/* the palette button has its own space: nothing in the header row runs under it */
.fl-ob-head .fl-ob-headrow { padding-right: 48px; }
.fl-ob-calcard .fl-head { padding-right: 48px; }
/* ---- clearer edges between the day boxes (Emily, 10 Oct 2026) ---- */
.fl-ob-box.fl-ob-box { border: 2px solid color-mix(in srgb, var(--c) 55%, var(--card)); box-shadow: 0 4px 12px rgba(29, 23, 38, .14); }
.fl-ob-box.fl-ob-box .fl-ob-boxhead { border-radius: 16px 16px 0 0; }
.fl-ob-days, .fl-ob-board { gap: 16px; }
html[data-theme="dark"] .fl-ob-box.fl-ob-box { border-color: color-mix(in srgb, var(--c) 55%, #1a1424); box-shadow: 0 3px 12px rgba(0, 0, 0, .4); }
/* ---- Smaller cards again, and the smaller-subtopic row on two lines (Emily, 10 Oct 2026): name with its tick and ✕ on top, trainer / notes beneath ---- */
.fl-ob-card { padding: 5px 8px 6px; }
.fl-ob-card .top { gap: 6px; }
.fl-ob-card .under { margin: 2px 0 0 24px; gap: 6px; flex-wrap: nowrap; align-items: center; }
.fl-ob-card .under .fl-ob-who { flex: 0 1 auto; min-width: 0; }
.fl-ob-card .fl-ob-who select.fl-ob-sm { max-width: 112px; height: 20px; font-size: .72rem; }
.fl-ob-card .rating { flex: 0 0 auto; }
.fl-ob-card .rating .fl-ob-stars button { height: 16px; width: 10px; font-size: .76rem; }
.fl-ob-card .rating .rv { font-size: .64rem; }
.fl-ob-card .meta { margin-left: 24px; font-size: .66rem; }
.fl-ob-card .fl-ob-kids { margin: 4px 0 0 20px; gap: 3px; }
.fl-ob-kid { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 6px; padding: 3px 6px 4px; }
.fl-ob-kid > input[type="checkbox"] { order: 0; }
.fl-ob-kid .kname { order: 0; flex: 1 1 0; min-width: 0; white-space: normal; overflow-wrap: break-word; font-size: .82rem; }
.fl-ob-kid > button.x { order: 1; }
.fl-ob-kid::before { content: ''; order: 2; flex-basis: 100%; height: 0; }
.fl-ob-kid .fl-ob-who { order: 3; margin-left: 20px; }
.fl-ob-kid .fl-ob-who select.fl-ob-sm { max-width: 120px; }
.fl-ob-kid .n { order: 4; }
.fl-ob-kid .fl-ob-nsyms.kid { order: 5; }
.fl-ob-kid .knotes { order: 10; flex-basis: 100%; }
.fl-ob-kidadd { margin: 3px 0 0 20px; }
.fl-ob-kidadd input, .fl-ob-subadd input { height: 20px; width: 30px; min-width: 30px; font-size: .85rem; }
.fl-ob-kidadd input:focus, .fl-ob-subadd input:focus { width: 100%; }
.fl-ob-subadd { margin-top: 4px; }
.fl-ob-item.cat .fl-ob-subs { gap: 4px; }
/* ---- notes heading on one line: "Notes", a count, a ✕; no explanation text (Emily, 11 Oct 2026) ---- */
.fl-ob-notes .lbl { flex-wrap: nowrap; gap: 6px; }
.fl-ob-notes .lbl .ttl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.fl-ob-notes .lbl .n { margin-left: auto; padding: 0 7px; min-width: 20px; text-align: center; white-space: nowrap; }
.fl-ob-notes .lbl .close { width: 20px; height: 20px; padding: 0; margin: 0; border-radius: 50%; font-size: .78rem; line-height: 1; display: grid; place-items: center; flex: none; }
.fl-ob-hide { margin-top: 4px; }
.fl-ob-hide button { height: 20px; padding: 0 10px; font-size: .7rem; }
.fl-ob-notes .lbl > .ic, .fl-ob-notes .lbl > svg { order: 0; } .fl-ob-notes .lbl .ttl { order: 1; } .fl-ob-notes .lbl .n { order: 5; margin-left: auto; } .fl-ob-notes .lbl .close { order: 6; }
/* ---- calendar month title in the normal font (Emily, 12 Oct 2026) ---- */
.fl-ob-month h3 { font-family: inherit; font-size: 1.25rem; font-weight: 800; letter-spacing: .02em; text-shadow: none; }
/* ---- drag a subtopic up or down inside its category: a line shows where it lands (Emily, 12 Oct 2026) ---- */
.fl-ob-card.ins-before { box-shadow: 0 -3px 0 0 var(--c), 0 2px 8px rgba(60, 20, 110, .08); }
.fl-ob-card.ins-after { box-shadow: 0 3px 0 0 var(--c), 0 2px 8px rgba(60, 20, 110, .08); }
.fl-ob-card.dragging { opacity: .45; }
/* ---- Manager's report (Emily, 13 Oct 2026): a month in four weeks, tiles for Bedrock's figures, boxes for the manager's lines ---- */
.fl-mr-bar label { display: block; font-size: .78rem; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.fl-mr-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fl-mr-chips .br-chip { cursor: pointer; }
.fl-mr-week { border: 1.5px solid var(--line); }
.fl-mr-week.month { background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 8%, var(--card)), var(--card)); border-color: color-mix(in srgb, var(--brand) 35%, var(--card)); }
.fl-mr-week.folded { padding-bottom: 10px; }
.fl-mr-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.fl-mr-head .ttl { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.fl-mr-head .ttl b { font-size: 1.15rem; }
.fl-mr-brief { display: flex; flex-wrap: wrap; gap: 14px; font-size: .85rem; color: var(--muted); }
.fl-mr-brief b { color: var(--text); font-size: 1rem; }
.fl-mr-top { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; margin-bottom: 6px; }
.fl-mr-sec { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.fl-mr-sec h4 { margin: 0 0 8px; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.fl-mr-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.fl-mr-tile { background: color-mix(in srgb, var(--brand) 5%, var(--card)); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; gap: 1px; min-height: 64px; }
.fl-mr-tile b { font-size: 1.35rem; line-height: 1.1; }
.fl-mr-tile span { font-size: .78rem; font-weight: 600; }
.fl-mr-tile small { font-size: .68rem; color: var(--muted); }
.fl-mr-tile.bad { border-color: color-mix(in srgb, var(--bad) 45%, var(--card)); background: var(--bad-bg); }
.fl-mr-tile.bad b { color: var(--bad); }
.fl-mr-tile.warn { border-color: color-mix(in srgb, var(--warn) 45%, var(--card)); background: var(--warn-bg); }
.fl-mr-tile.muted b { color: var(--muted); }
.fl-mr-grid { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(200px, 260px); gap: 12px; align-items: start; }
.fl-mr-aside p { font-size: .76rem; margin: 8px 0 0; }
.fl-mr-notes2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; margin-top: 10px; }
.fl-mr-notes3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.fl-mr-note label { display: block; font-size: .74rem; font-weight: 700; color: var(--muted); margin-bottom: 3px; }
.fl-mr-note textarea { width: 100%; min-height: 56px; margin: 0; font: inherit; font-size: .86rem; resize: vertical; border-radius: 10px; }
.fl-mr-note.has textarea { border-color: color-mix(in srgb, var(--brand) 40%, var(--card)); background: color-mix(in srgb, var(--brand) 4%, var(--card)); }
.fl-mr-note .by { display: block; font-size: .68rem; color: var(--muted); margin-top: 2px; min-height: 1em; }
@media (max-width: 720px) { .fl-mr-top, .fl-mr-grid { grid-template-columns: 1fr; } }
.fl-mr-chips .br-chip.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.fl-mr-total td { font-weight: 800; border-top: 2px solid var(--line); }
tr.muted td { color: var(--muted); }
/* ---- Progress on missing information, practitioner by practitioner (Emily, 14 Oct 2026) ---- */
.fl-prog-each { margin-top: 14px; }
.fl-prog-one { margin-top: 10px; padding: 8px 10px 10px; border-left: 4px solid var(--pc, var(--brand)); border-radius: 0 12px 12px 0; background: color-mix(in srgb, var(--pc, var(--brand)) 5%, var(--card)); }
.fl-prog-who { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: .92rem; }
/* ---- photos in Bedrock but not yet sorted into a type (Emily, 21 Oct 2026) ---- */
.fl-unsorted { display: inline-block; margin-top: 3px; padding: 1px 8px; border-radius: 999px; font-size: .7rem; font-weight: 700; color: #7a5a00; background: #ffe58a; white-space: nowrap; }
html[data-theme="dark"] .fl-unsorted { color: #ffe58a; background: #6b5214; }
/* ---- photo type labels editor (Emily, 21 Oct 2026) ---- */
.fl-labels { display: grid; gap: 6px; }
.fl-labelrow { display: flex; align-items: center; gap: 8px; }
.fl-labelrow .key { width: 56px; font-size: .7rem; text-align: right; flex: none; }
.fl-labelrow input { min-height: 0; height: 30px; font-size: .88rem; }
.fl-labelrow button { min-height: 0; height: 28px; width: 34px; padding: 0; margin: 0; flex: none; }
.fl-labelrow button.danger { background: var(--bad-bg); color: var(--bad); border-color: var(--bad); }
/* ---- straighten & crop (Emily, 21 Oct 2026) ---- */
.fl-fixrow { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.fl-fixrow button { margin: 0; }
.fl-phgroup-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fl-phgroup-head h3 { margin: 0; }
.fl-phgroup-head button { margin: 0; min-height: 0; height: 26px; padding: 0 10px; font-size: .76rem; }
/* ---- photo tags show every word (Emily, 21 Oct 2026): wrap instead of clipping ---- */
.fl-ph { min-width: 0; }
.fl-ph .fl-phtag { white-space: normal; overflow: visible; text-overflow: clip; max-width: 100%; width: auto; height: auto; min-height: 0; line-height: 1.25; padding: 4px 10px; text-align: center; overflow-wrap: anywhere; }
/* ---- crop by hand (Emily, 21 Oct 2026) ---- */
.fl-croptool { display: grid; gap: 8px; }
.fl-cropstage { position: relative; display: inline-block; max-width: 100%; margin: 0 auto; background: #111; border-radius: 10px; overflow: hidden; user-select: none; touch-action: none; }
.fl-cropstage img { display: block; max-width: 100%; max-height: 62vh; pointer-events: none; transform-origin: center; }
.fl-cropbox { position: absolute; border: 2px solid #fff; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .45); cursor: move; touch-action: none; }
.fl-cropbox .hd { position: absolute; width: 16px; height: 16px; background: #fff; border-radius: 50%; border: 2px solid var(--brand); }
.fl-cropbox .hd.nw { left: -9px; top: -9px; cursor: nwse-resize; } .fl-cropbox .hd.ne { right: -9px; top: -9px; cursor: nesw-resize; }
.fl-cropbox .hd.se { right: -9px; bottom: -9px; cursor: nwse-resize; } .fl-cropbox .hd.sw { left: -9px; bottom: -9px; cursor: nesw-resize; }
.fl-croprow { display: flex; align-items: center; gap: 10px; }
.fl-croprow button { margin: 0; }
button.fl-phundo { padding: 1px 8px; font-size: .68rem; font-weight: 600; border-radius: 999px; background: var(--warn-bg); color: #7a5a00; border: 0; min-height: 0; height: auto; line-height: 1.3; margin: 0; }
html[data-theme="dark"] button.fl-phundo { color: #ffe58a; }
.fl-cropstage { display: block; width: auto; max-width: 100%; }
.fl-cropstage img { display: block; width: auto; height: auto; max-width: 100%; max-height: 62vh; margin: 0 auto; }
/* ---- hide options on the board (Emily, 21 Oct 2026): hide completed, compact cards, fold days ---- */
.fl-ob-viewbar { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 2px 0 8px; font-size: .8rem; }
.fl-ob-viewbar .br-chip { cursor: pointer; }
.fl-ob-viewbar .br-chip.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.fl-ob-hiddenline { margin: 4px 12px 8px; font-size: .72rem; color: var(--muted); font-style: italic; }
.fl-ob-item.cat .fl-ob-hiddenline { margin: 2px 0 0 6px; }
.fl-ob-box.folded { min-height: 0; }
.fl-ob-box.folded .fl-ob-prog { padding-bottom: 10px; }
.fl-ob-boxhead .chev { min-height: 0; height: 22px; width: 22px; padding: 0; margin: 0 0 0 4px; border: none; background: color-mix(in srgb, var(--ink) 18%, transparent); color: var(--ink); border-radius: 50%; font-size: .95rem; line-height: 1; cursor: pointer; }
.fl-ob-compact .fl-ob-card .under, .fl-ob-compact .fl-ob-card .meta, .fl-ob-compact .fl-ob-kidadd, .fl-ob-compact .fl-ob-subadd, .fl-ob-compact .fl-ob-add, .fl-ob-compact .fl-ob-remark, .fl-ob-compact .fl-ob-kid .fl-ob-who { display: none; }
.fl-ob-compact .fl-ob-card { padding: 4px 8px; }
/* ---- sorting new photos with Claude (Emily, 23 Oct 2026) ---- */
.fl-autosort { border-left: 4px solid var(--brand); }
.fl-autosort .fl-check input { width: 18px !important; height: 18px !important; min-height: 0 !important; margin: 0 6px 0 0; }
.fl-autosort .fl-note { margin: 6px 0 8px; }
/* ---- landmarks: easy to adjust by hand (Emily, 23 Oct 2026) ---- */
.fl-lmwrap svg { touch-action: none; outline: none; }
.fl-lmwrap svg g.pt circle.grab { fill: transparent; stroke: none; pointer-events: all; }
.fl-lmwrap svg g.pt { cursor: grab; }
.fl-lmwrap svg g.pt.on circle:not(.grab) { stroke-width: 3; }
/* ---- posture categories editor (Emily, 23 Oct 2026) ---- */
.fl-catrow { display: grid; gap: 4px; padding: 6px 0; border-top: 1px dashed var(--line); }
.fl-catrow:first-of-type { border-top: none; }
.fl-catname { display: flex; align-items: center; gap: 8px; }
.fl-catname .key { width: 56px; font-size: .7rem; text-align: right; flex: none; }
.fl-catname input { min-height: 0; height: 30px; font-size: .88rem; }
.fl-catname button { min-height: 0; height: 28px; width: 34px; padding: 0; margin: 0; flex: none; }
.fl-catname button.danger { background: var(--bad-bg); color: var(--bad); border-color: var(--bad); }
.fl-catrow textarea { margin-left: 64px; width: calc(100% - 64px); resize: vertical; }

/* ---- manager's report: any range of dates (Emily, 27 Oct 2026) ---- */
.fl-mr-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.fl-mr-quick button { min-height: 0; height: 26px; padding: 0 10px; font-size: .78rem; }
.fl-mr-bar input[type=date] { min-height: 0; height: 32px; font-size: .86rem; }

/* ---- a clinician's count checked against Bedrock's bookings (Emily, 28 Oct 2026) ---- */
.fl-attrib .fl-mr-brief { margin: 6px 0 10px; }
.fl-attrib table { margin-top: 4px; }
.fl-attrib a { color: var(--accent, #7a2c8f); text-decoration: none; font-weight: 600; }

/* ---- week by week (Emily, 28 Oct 2026) ---- */
.fl-weeknow td { background: color-mix(in srgb, var(--accent, #7a2c8f) 7%, transparent); }
.fl-up { color: var(--good, #1d7a3e); font-weight: 600; }
.fl-down { color: var(--bad, #b3261e); font-weight: 600; }
.fl-weekcmp table td small { font-size: .72rem; }

/* ---- where the note went, on a "No note yet" row (Emily, 28 Oct 2026) ---- */
/* The "what is missing" table: the colour of each reading is the trainer's own choice (Emily, 19 Nov 2026) */
.badge.fl-t-green, .fl-swatch.fl-t-green { background: var(--ok-bg, #e3f4e6); color: var(--ok, #1d7a35); }
.badge.fl-t-blue, .fl-swatch.fl-t-blue { background: var(--info-bg, #e3eefc); color: var(--info, #1c56ae); }
.badge.fl-t-red, .fl-swatch.fl-t-red { background: var(--bad-bg, #fde7e6); color: var(--bad, #b3261e); }
.badge.fl-t-yellow, .fl-swatch.fl-t-yellow { background: #fff6bf; color: #7a6400; }
.badge.fl-t-orange, .fl-swatch.fl-t-orange { background: #ffe6cc; color: #9a4b00; }
.badge.fl-t-pink, .fl-swatch.fl-t-pink { background: #fde4ef; color: #a3215e; }
.badge.fl-t-purple, .fl-swatch.fl-t-purple { background: #ece4fb; color: #5b34a8; }
.badge.fl-t-teal, .fl-swatch.fl-t-teal { background: #d9f3ef; color: #0b6b62; }
.badge.fl-t-grey, .fl-swatch.fl-t-grey { background: #ececf0; color: #5a5a66; }
html[data-theme="dark"] .badge.fl-t-yellow, html[data-theme="dark"] .fl-swatch.fl-t-yellow { background: #4a4210; color: #ffe98a; }
html[data-theme="dark"] .badge.fl-t-orange, html[data-theme="dark"] .fl-swatch.fl-t-orange { background: #4f3210; color: #ffc38a; }
html[data-theme="dark"] .badge.fl-t-pink, html[data-theme="dark"] .fl-swatch.fl-t-pink { background: #4d1f35; color: #ffb3d3; }
html[data-theme="dark"] .badge.fl-t-purple, html[data-theme="dark"] .fl-swatch.fl-t-purple { background: #35275c; color: #d2bdff; }
html[data-theme="dark"] .badge.fl-t-teal, html[data-theme="dark"] .fl-swatch.fl-t-teal { background: #12403b; color: #9be4da; }
html[data-theme="dark"] .badge.fl-t-grey, html[data-theme="dark"] .fl-swatch.fl-t-grey { background: #3a3a44; color: #d0d0da; }
.fl-tone-rows { display: grid; gap: 6px; }
.fl-tone-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.fl-tone-word { min-width: 130px; }
.fl-swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.fl-swatch { width: 26px; height: 26px; min-height: 0; padding: 0; margin: 0; border-radius: 50%; border: 2px solid transparent; cursor: pointer; }
.fl-swatch::after { content: "●"; font-size: .6rem; }
.fl-swatch.on { border-color: currentColor; box-shadow: 0 0 0 2px var(--card, #fff), 0 0 0 4px currentColor; }
.fl-xitems { display: grid; gap: 6px; }
.fl-xitem { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fl-xitem input[type="text"] { width: 200px; margin: 0; }
.fl-xitem select { width: auto; max-width: 260px; margin: 0; }
.fl-xitem .fl-check { margin: 0; }
.fl-xbtn { min-height: 0; padding: 2px 8px; margin: 0; }
.fl-parts-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 6px 18px; }
.fl-parts-grp .fl-check { display: block; margin: 2px 0; }
.fl-partslist { font-size: .72rem; color: var(--muted, #6b5f72); white-space: normal; max-width: 220px; margin-top: 2px; line-height: 1.25; }
/* The case note check: one narrow column per item, a tick or a cross */
.fl-chk-wrap { overflow-x: auto; }
.fl-chk-table { border-collapse: collapse; width: auto; min-width: 100%; }
.fl-chk-table th, .fl-chk-table td { padding: 5px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.fl-chk-table thead th { position: sticky; top: 0; background: var(--card, #fff); z-index: 1; font-size: .72rem; }
.fl-chk-table th.fl-grp { text-align: center; text-transform: uppercase; letter-spacing: .04em; color: var(--brand, #4a1a6b); border-bottom: 2px solid var(--line); }
.fl-chk-table th.fl-v { padding: 6px 2px; vertical-align: bottom; text-align: center; min-width: 26px; }
.fl-chk-table th.fl-v span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; font-weight: 600; text-transform: none; letter-spacing: 0; max-height: 190px; }
.fl-chk-table .fl-gs { border-left: 2px solid var(--line); }
.fl-chk-table td.fl-c { text-align: center; padding: 4px 2px; font-weight: 700; font-size: .9rem; min-width: 26px; }
.fl-chk-table td.fl-c.ok { color: var(--ok, #1d7a35); }
.fl-chk-table td.fl-c.no { color: var(--bad, #b3261e); background: var(--bad-bg, #fde7e6); }
.fl-chk-table td.fl-c.na { color: var(--muted, #8a8291); font-weight: 400; }
.fl-chk-table td.fl-c.warn { color: #7a6400; background: #fff6bf; }
html[data-theme="dark"] .fl-chk-table td.fl-c.warn { color: #ffe98a; background: #4a4210; }
.fl-chk-table td.fl-chk-name { min-width: 150px; }
.fl-chk-table tr.fl-chk-foot td { border-top: 2px solid var(--line); font-weight: 600; font-size: .78rem; }
tr.fl-chk-on td { background: color-mix(in srgb, var(--brand, #4a1a6b) 7%, transparent); }
/* her own lines on a measured photo, and the points window */
.fl-lmsvg line.ownline, .fl-guides line.ownline { stroke: #ff7a00; stroke-linecap: round; }
.fl-lmsvg text.ownlab, .fl-guides text.ownlab { fill: #ff7a00; stroke: #fff; stroke-width: 3px; font-weight: 700; }
.fl-xitem.off input[type="text"] { opacity: .55; }
.fl-xitem.dragging { opacity: .45; }
.fl-xitem.fl-xhead { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
.fl-xitem.fl-xhead input[type="text"] { font-weight: 700; }
.fl-xitem .fl-coach-grip { cursor: grab; user-select: none; padding: 0 2px; }
.fl-ptno { display: inline-block; min-width: 20px; text-align: right; }
/* labels proposed, before anything is applied */
.fl-props { margin-top: 18px; }
.fl-prop-grp { margin-top: 14px; }
.fl-prop-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-top: 8px; }
.fl-prop { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card, #fff); display: flex; flex-direction: column; }
.fl-prop img { width: 100%; height: 170px; object-fit: cover; cursor: zoom-in; background: #1d1720; display: block; }
.fl-prop-b { padding: 8px 10px 10px; font-size: .8rem; display: grid; gap: 3px; }
.fl-prop-b select { margin: 4px 0 0; width: 100%; }
.fl-prop-why { font-size: .74rem; line-height: 1.3; color: var(--muted, #6b5f72); }
.fl-prop img { transition: transform .2s; }
.fl-prop img.fl-turned { width: 170px; margin: 0 auto; object-fit: contain; }   /* a square: turned a quarter it stays inside its tile */
.fl-prop-turn { font-size: .74rem; font-weight: 600; }
.fl-proof { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 6px; }
.fl-proof-table td, .fl-proof-table th { text-align: left; font-size: .8rem; }
td.fl-tick { cursor: pointer; }
td.fl-tick:hover .badge { outline: 2px solid currentColor; outline-offset: 1px; }
.fl-notehint { font-size: .74rem; color: var(--bad, #b3261e); white-space: normal; max-width: 260px; margin-top: 2px; }

/* ---- units by week (Emily, 28 Oct 2026) ---- */
.fl-unitsblock { margin-top: 8px; }
.fl-unitsblock h3 { margin: 12px 0 4px; font-size: .95rem; }
.fl-unitsdates td { font-size: .72rem; padding-top: 2px; padding-bottom: 2px; }
.fl-unitsweek input[type=month] { min-height: 0; height: 32px; }

/* ---- the Pillows prescribed chart, once per week (Emily, 28 Oct 2026) ---- */
.fl-weekcharts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-top: 8px; }
.fl-weekchart { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--card, #fff); }
.fl-weekchart.now { border-color: var(--accent, #7a2c8f); }
.fl-weekchart h4 { margin: 0 0 2px; font-size: .9rem; }

/* ---- boxes with their own dates, and the total box (Emily, 28 Oct 2026) ---- */
.fl-weekdates { display: flex; align-items: center; gap: 4px; margin: 2px 0 4px; flex-wrap: wrap; }
.fl-weekdates input[type=date] { min-height: 0; height: 26px; font-size: .74rem; padding: 0 4px; width: auto; }
.fl-weekdates button { min-height: 0; height: 24px; width: 26px; padding: 0; }
.fl-weekchart.total { background: color-mix(in srgb, var(--accent, #7a2c8f) 6%, var(--card, #fff)); border-style: dashed; }

.fl-note.fl-warn { color: var(--bad, #b3261e); }

/* ---- the Lab: posture and alignment galleries (Emily, 29 Oct 2026) ---- */
.fl-labgal { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-top: 10px; }
.fl-labcard { border: 1px solid var(--line); border-radius: 10px; padding: 8px; background: var(--card, #fff); cursor: pointer; }
.fl-labcard:hover { border-color: var(--accent, #7a2c8f); }
.fl-labshots { display: flex; gap: 6px; }
.fl-labshot { flex: 1 1 0; min-width: 0; }
.fl-labimg { position: relative; aspect-ratio: 3 / 4; background: #111; border-radius: 8px; overflow: hidden; }
.fl-labimg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.fl-labimg svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.fl-labimg .fl-ovl-tag { position: absolute; right: 6px; top: 6px; }
.fl-labcap { font-size: .72rem; color: var(--muted); margin-top: 3px; line-height: 1.25; }
.fl-labwho { font-size: .78rem; font-weight: 600; margin-top: 6px; }
.fl-labflags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.fl-labflags .badge { font-size: .68rem; }

/* ---- the side view's posture lines (Emily, 29 Oct 2026) ---- */
svg.fl-guides .plumb, svg.fl-lmsvg .plumb { stroke: #f5f5f5; stroke-dasharray: 10 7; opacity: .9; fill: none; }
svg.fl-guides .body, svg.fl-lmsvg .body { stroke: #ff2d2d; stroke-width: 4; fill: none; stroke-linecap: round; }
svg.fl-guides .bodypt, svg.fl-lmsvg .bodypt { fill: #ff2d2d; stroke: #ffffff; stroke-width: 1.5; }

/* ---- the plumb line's drag strip and handle in the landmark window (Emily, 29 Oct 2026) ---- */
svg.fl-lmsvg .plumbgrab { fill: transparent; cursor: ew-resize; }
svg.fl-lmsvg .plumbhandle { fill: #f5f5f5; stroke: #1d1720; stroke-width: 1.5; cursor: ew-resize; }

/* the tab lock (12 Nov 2026) */
.fl-lockset { display: inline-flex; gap: 6px; align-items: center; }
.fl-lockwin { max-width: 440px; }
.fl-lockrow { display: block; margin: 10px 0; font-size: .84rem; }
.fl-lockrow > span { display: block; margin-bottom: 4px; color: var(--muted); }
.fl-lockmsg { min-height: 1.2em; margin: 8px 0 0; color: var(--danger, #b3261e); font-size: .84rem; }

/* the coaching board under Sleep consultant (12 Nov 2026) */
.fl-coachwin { max-width: 520px; }
.fl-coach-pick { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; margin: -4px 0 8px; font-size: .78rem; }
.fl-coach-scroll { overflow-x: auto; max-width: 100%; }
.fl-coach-sheet { border-collapse: collapse; font-size: .84rem; white-space: nowrap; }
.fl-coach-sheet th, .fl-coach-sheet td { border: 1px solid var(--line, #e4dcea); padding: 0; height: 30px; }
.fl-coach-sheet thead th { background: var(--brand-tint); font-weight: 700; text-align: center; }
.fl-coach-sheet th.person { border-left: 2px solid var(--brand); font-size: .86rem; letter-spacing: .04em; text-transform: uppercase; }
.fl-coach-sheet th.rowlabel, .fl-coach-sheet th.corner { position: sticky; left: 0; z-index: 1; background: var(--card, #fff); text-align: left; min-width: 150px; }
.fl-coach-sheet thead th.corner { background: var(--brand-tint); }
.fl-coach-sheet td.first, .fl-coach-sheet th.period.first { border-left: 2px solid var(--brand); }
.fl-coach-sheet td.delta, .fl-coach-sheet th.delta { min-width: 62px; padding: 0 6px; text-align: right; font-size: .78rem; color: var(--muted); }
.fl-coach-sheet td.calc { padding: 0 8px; text-align: right; color: var(--muted); font-style: italic; min-width: 84px; }
.fl-coach-sheet tr.worked th.rowlabel .fl-coach-hbtn { font-style: italic; }
.fl-coach-hbtn { all: unset; display: block; box-sizing: border-box; width: 100%; padding: 5px 8px; cursor: pointer; font: inherit; color: inherit; }
.fl-coach-hbtn:hover, .fl-coach-hbtn:focus-visible { background: var(--brand-tint); outline: none; }
input.fl-coach-cell { all: unset; display: block; box-sizing: border-box; width: 84px; height: 29px; padding: 0 8px; text-align: right; font: inherit; color: inherit; }
input.fl-coach-cell:focus { outline: 2px solid var(--brand); outline-offset: -2px; background: var(--brand-tint); }
input.fl-coach-cell.unsaved { background: var(--bad-bg); }
.fl-coach-good { background: var(--ok-bg); color: var(--ok) !important; font-weight: 600; }
.fl-coach-bad { background: var(--bad-bg); color: var(--bad) !important; font-weight: 600; }
.fl-coach-mid { font-weight: 600; }
.fl-coach-bars { display: grid; gap: 8px; margin-top: 8px; }
.fl-coach-bar { display: grid; grid-template-columns: minmax(84px, 30%) 1fr minmax(96px, auto); gap: 2px 10px; align-items: center; font-size: .84rem; }
.fl-coach-bar .n { overflow-wrap: anywhere; }
.fl-coach-bar .t { display: grid; gap: 2px; }
.fl-coach-bar .t i, .fl-coach-key i { display: block; height: 9px; min-width: 2px; border-radius: 0 4px 4px 0; background: var(--brand); }
.fl-coach-bar .t i.prev, .fl-coach-key i.prev { height: 5px; background: var(--brand-light); opacity: .55; }
.fl-coach-bar .v { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fl-coach-delta { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 999px; font-size: .74rem; background: var(--brand-tint); }
.fl-coach-delta.good { background: var(--ok-bg); color: var(--ok); }
.fl-coach-delta.bad { background: var(--bad-bg); color: var(--bad); }
.fl-coach-key { display: inline-flex; gap: 6px; align-items: center; margin-left: auto; font-size: .78rem; }
.fl-coach-key i { width: 18px; }
.fl-coach-prog { border-collapse: collapse; font-size: .84rem; }
.fl-coach-prog th, .fl-coach-prog td { border-bottom: 1px solid var(--line, #e4dcea); padding: 6px 10px; text-align: center; }
.fl-coach-prog thead th { font-size: .74rem; color: var(--muted); font-weight: 600; max-width: 110px; white-space: normal; }
.fl-coach-prog tbody th { text-align: left; }
.fl-coach-trail { margin-top: 14px; }
.fl-coach-trail h3 { margin: 0 0 6px; font-size: .9rem; }
.fl-coach-trailrow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 3px 0; font-size: .82rem; }
.fl-coach-trailrow.on { font-weight: 700; }
.fl-coach-st { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .74rem; background: var(--brand-tint); }
.fl-coach-st.good { background: var(--ok-bg); color: var(--ok); }
.fl-coach-st.bad { background: var(--bad-bg); color: var(--bad); }
.fl-coach-people { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.fl-coach-person { margin: 0; border-top: 4px solid var(--brand); }
.fl-coach-person h3 { margin: 0 0 6px; text-transform: uppercase; letter-spacing: .04em; font-size: .9rem; }
.fl-coach-person .sec { margin-top: 12px; }
.fl-coach-person h4 { margin: 0 0 4px; font-size: .78rem; color: var(--muted); font-weight: 700; }
.fl-coach-list { margin: 0; padding-left: 20px; font-size: .86rem; }
ul.fl-coach-list { list-style: none; padding-left: 0; }
.fl-coach-list li { margin: 3px 0; }
.fl-coach-list .tx { white-space: pre-wrap; overflow-wrap: anywhere; }
.fl-coach-carried { padding: 6px 8px; border-radius: 8px; background: var(--brand-tint); margin: 6px 0 !important; }
.fl-coach-hist { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.fl-coach-x { all: unset; cursor: pointer; margin-left: 6px; color: var(--muted); font-size: .8rem; }
.fl-coach-x:hover, .fl-coach-x:focus-visible { color: var(--brand); }
select.fl-coach-mark.good { border-color: var(--ok); color: var(--ok); }
select.fl-coach-mark.bad { border-color: var(--bad); color: var(--bad); }
.fl-coach-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fl-coach-row > select, .fl-coach-row > button { flex: 0 0 auto; }
.fl-lockrow[hidden] { display: none; }
.fl-lockbtn, .fl-lockset button { white-space: nowrap; }
.topbar button { white-space: nowrap; }

/* lying photos: the spine line, the neutral line and the head line as the demo drew them (12 Nov 2026) */
svg.fl-guides .sp, svg.fl-lmsvg .sp { stroke: #22c55e; fill: none; stroke-linecap: round; }
svg.fl-guides .nl, svg.fl-lmsvg .nl { stroke: #c084fc; stroke-dasharray: 10 6; fill: none; }
svg.fl-guides .hd, svg.fl-lmsvg .hd { stroke: #ff2d2d; fill: none; stroke-linecap: round; }
.fl-labsum { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin: 10px 0 14px; }
.fl-labsum > div { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: .86rem; background: var(--card); }
.fl-labsum > div b { font-size: 1.15rem; margin-right: 4px; }
.fl-labsum > div.good b { color: var(--ok); }
.fl-labsum > div.bad b { color: var(--bad); }
.fl-labsum > div.todo { border-style: dashed; background: var(--brand-tint); }
.fl-labtodo { margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--line); }
.fl-labtodo h4 { margin: 0 0 4px; }
.fl-labcard.unchecked .fl-labimg { opacity: .8; }
button.fl-labimg { display: block; width: 100%; padding: 0; border: 0; cursor: pointer; font: inherit; color: inherit; }
.fl-labopen:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 8px; }

/* Access: which tabs each trainer login opens (13 Nov 2026) */
.fl-accwin { max-width: 760px; }
.fl-accpeople { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.fl-accperson { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.fl-accperson h3 { margin: 0 0 2px; }
.fl-accgroup { margin-top: 8px; }
.fl-acchead { display: flex; gap: 8px; align-items: baseline; font-size: .84rem; }
.fl-acclink { all: unset; cursor: pointer; font-size: .74rem; color: var(--brand); text-decoration: underline; }
.fl-acctabs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 2px 10px; margin-top: 2px; font-size: .84rem; }

/* the coaching board: sub-groups of rows, and dragging with the mouse (13 Nov 2026) */
.fl-coach-headcell { display: flex; align-items: center; }
.fl-coach-headcell .fl-coach-hbtn { flex: 1; width: auto; }
.fl-coach-grip { flex: 0 0 auto; padding: 0 2px 0 6px; cursor: grab; color: var(--muted); opacity: .55; user-select: none; font-size: .9rem; line-height: 1; }
.fl-coach-grip:hover { opacity: 1; color: var(--brand); }
.fl-coach-grip:active { cursor: grabbing; }
.fl-coach-sheet tr.fl-coach-sec th { position: sticky; left: 0; text-align: left; background: var(--brand-tint); border-top: 2px solid var(--brand); height: 32px; }
.fl-coach-sheet tr.fl-coach-sec.none th { background: var(--card); border-top: 1px dashed var(--line); }
.fl-coach-sheet tr.fl-coach-sec .fl-coach-headcell { position: sticky; left: 0; width: max-content; max-width: 90vw; }
.fl-coach-secname { flex: 0 1 auto !important; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: .8rem; }
.fl-coach-secname.none { padding: 5px 8px; color: var(--muted); font-weight: 600; }
.fl-coach-fold { all: unset; cursor: pointer; padding: 0 4px; color: var(--brand); font-size: .8rem; }
.fl-coach-sheet .dragging { opacity: .4; }
.fl-coach-sheet tr.drop-before > * { box-shadow: inset 0 3px 0 var(--brand); }
.fl-coach-sheet tr.drop-after > * { box-shadow: inset 0 -3px 0 var(--brand); }
.fl-coach-sheet tr.drop-into > * { background: var(--ok-bg) !important; box-shadow: inset 0 0 0 2px var(--ok); }
.fl-coach-sheet th.drop-before { box-shadow: inset 3px 0 0 var(--brand); }
.fl-coach-sheet th.drop-after { box-shadow: inset -3px 0 0 var(--brand); }
.fl-coach-sech { margin: 14px 0 6px; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }

/* the pose model (13 Nov 2026) */
.fl-posechip { margin: 6px 14px 10px; padding: 6px 8px; border-radius: 8px; background: var(--brand-tint); color: var(--muted); font-size: .72rem; line-height: 1.3; }
.fl-posemsg { margin: 0 0 8px; }

/* the Probation tab (13 Nov 2026) */
.fl-prob-bar { display: inline-block; vertical-align: middle; width: 90px; height: 8px; border-radius: 4px; background: var(--brand-tint); overflow: hidden; }
.fl-prob-bar.wide { width: 180px; }
.fl-prob-bar i { display: block; height: 100%; background: var(--ok); }
.fl-prob-table td, .fl-prob-table th { white-space: nowrap; }
.fl-prob-phase { margin-bottom: 18px; }
.fl-prob-phasehead { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 4px 2px 8px; }
.fl-prob-phasehead h3 { margin: 0; }
.fl-prob-weeks { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; }
.fl-prob-week { margin: 0; padding: 12px; border-top: 4px solid var(--brand-tint); }
.fl-prob-week.now { border-top-color: var(--ok); }
.fl-prob-week.late { border-top-color: var(--bad); }
.fl-prob-week.drop { outline: 2px dashed var(--brand); outline-offset: -2px; background: var(--brand-tint); }
.fl-prob-weekhead { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; margin-bottom: 6px; font-size: .86rem; }
.fl-prob-lines { display: grid; gap: 4px; }
.fl-prob-line { display: grid; grid-template-columns: auto auto 1fr auto; gap: 4px; align-items: center; padding: 3px 4px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); font-size: .82rem; }
.fl-prob-line.completed { background: var(--ok-bg); border-color: transparent; }
.fl-prob-line.carried { border-style: dashed; }
.fl-prob-line.dragging { opacity: .4; }
.fl-prob-line .fl-coach-grip { padding: 0 2px; }
select.fl-prob-status { margin: 0; width: auto; padding: 2px 4px; font-size: .72rem; height: auto; min-height: 0; }
select.fl-prob-status.completed { color: var(--ok); border-color: var(--ok); }
select.fl-prob-status.in_progress { color: var(--brand); border-color: var(--brand); }
.fl-prob-title { all: unset; cursor: pointer; overflow-wrap: anywhere; padding: 2px 4px; }
.fl-prob-title:hover, .fl-prob-title:focus-visible { background: var(--brand-tint); border-radius: 6px; }
.fl-prob-grp { display: block; font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.fl-prob-notebtn { all: unset; cursor: pointer; padding: 2px 4px; font-size: .74rem; opacity: .5; white-space: nowrap; }
.fl-prob-notebtn.has, .fl-prob-notebtn:hover { opacity: 1; }
.fl-prob-reviewrow { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); flex-wrap: nowrap; }
select.fl-prob-review { margin: 0; width: auto; font-size: .78rem; }
select.fl-prob-review.good { color: var(--ok); border-color: var(--ok); }
select.fl-prob-review.bad { color: var(--bad); border-color: var(--bad); }
.fl-prob-notes { max-height: 240px; overflow-y: auto; margin-bottom: 8px; }
.fl-prob-note { padding: 6px 8px; border-radius: 8px; background: var(--brand-tint); margin-bottom: 6px; font-size: .84rem; }
.fl-prob-note p { margin: 2px 0; white-space: pre-wrap; }

/* a figure that explains itself when pointed at (13 Nov 2026) */
.fl-howto { cursor: help; text-decoration: underline dotted var(--muted); text-underline-offset: 3px; }

/* the Probation page, rewritten (13 Nov 2026): dates, onboarding overview, six months of goals, the 1-1 calendar */
.fl-prob-saidgrid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: start; }
.fl-prob-said { border: 1px solid var(--line); border-top: 4px solid var(--brand-tint); border-radius: 12px; padding: 10px 12px; font-size: .84rem; }
.fl-prob-said.good { border-top-color: var(--ok); }
.fl-prob-said.bad { border-top-color: var(--bad); }
.fl-prob-said.mid { border-top-color: var(--brand); }
.fl-prob-said h4 { margin: 0 0 4px; }
.fl-prob-said ul { margin: 0; max-height: 220px; overflow-y: auto; }
.fl-prob-days { display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); margin-top: 12px; }
.fl-prob-day { border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; font-size: .78rem; }
.fl-prob-day.done { background: var(--ok-bg); border-color: transparent; }
.fl-prob-day b { margin-right: 6px; }
.fl-prob-day p { margin: 4px 0 0; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fl-prob-fold { margin-top: 10px; font-size: .84rem; }
.fl-prob-fold summary { cursor: pointer; font-weight: 700; }
.fl-prob-tabs { display: grid; gap: 6px; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.fl-prob-tab { all: unset; cursor: pointer; display: grid; gap: 1px; padding: 8px 10px; border-radius: 10px 10px 0 0; border: 1px solid var(--line); border-bottom: 3px solid transparent; font-size: .78rem; }
.fl-prob-tab.on { background: var(--brand-tint); border-bottom-color: var(--brand); }
.fl-prob-tab.now b::after { content: ' · now'; color: var(--ok); font-weight: 600; }
.fl-prob-tab:focus-visible { outline: 2px solid var(--brand); }
.fl-prob-monthbody { border: 1px solid var(--line); border-top: 0; border-radius: 0 0 12px 12px; padding: 12px; }
.fl-prob-line { grid-template-columns: auto 1fr; }
select.fl-prob-status.achieved { color: var(--ok); border-color: var(--ok); }
.fl-prob-line.achieved { background: var(--ok-bg); border-color: transparent; }
.fl-prob-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.fl-prob-cal-head { text-align: center; font-size: .72rem; font-weight: 700; color: var(--muted); padding: 2px 0; }
.fl-prob-cal-cell { min-height: 78px; border: 1px solid var(--line); border-radius: 8px; padding: 4px; display: flex; flex-direction: column; gap: 3px; cursor: pointer; background: var(--card); overflow: hidden; }
.fl-prob-cal-cell.out { border: 0; background: none; cursor: default; }
.fl-prob-cal-cell.outside { background: var(--brand-tint); opacity: .55; }
.fl-prob-cal-cell.today { border-color: var(--ok); box-shadow: inset 0 0 0 1px var(--ok); }
.fl-prob-cal-cell:hover:not(.out) { border-color: var(--brand); }
.fl-prob-cal-cell .n { font-size: .72rem; color: var(--muted); }
.fl-prob-chip { all: unset; cursor: pointer; display: block; padding: 2px 5px; border-radius: 6px; background: var(--brand); color: #fff; font-size: .7rem; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-prob-chip.due { background: var(--brand-tint); color: var(--brand); border: 1px dashed var(--brand); }
.fl-prob-chip.due.late { color: var(--bad); border-color: var(--bad); background: var(--bad-bg); }
.fl-prob-chip.due.done { color: var(--ok); border-color: var(--ok); background: var(--ok-bg); text-decoration: line-through; }
.fl-prob-master { margin-top: 14px; display: grid; gap: 4px; font-size: .84rem; }
.fl-prob-master h4 { margin: 0 0 2px; }
.fl-prob-late { color: var(--bad); }
@media (max-width: 700px) { .fl-prob-cal-cell { min-height: 56px; } }

/* the crowns on Items sold (13 Nov 2026) */
.fl-crowns { background: linear-gradient(135deg, var(--brand-tint), var(--card)); }
.fl-crown-row { display: flex; flex-wrap: wrap; gap: 14px; }
.fl-crown { all: unset; cursor: pointer; display: grid; justify-items: center; align-content: end; gap: 2px; width: 140px; padding: 10px 8px 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); text-align: center; transition: transform .15s ease; }
.fl-crown:hover, .fl-crown:focus-visible { transform: translateY(-3px); border-color: var(--brand); }
.fl-crown-hat { font-size: 2rem; line-height: 1; margin-bottom: -12px; position: relative; z-index: 1; transform: rotate(-8deg); }
.fl-crown-face { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; overflow: hidden; background: var(--brand); color: #fff; font-weight: 800; font-size: 1.5rem; border: 3px solid #f5c542; box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.fl-crown-face.big { width: 120px; height: 120px; font-size: 2rem; flex: 0 0 auto; }
.fl-crown-face img { width: 100%; height: 100%; object-fit: cover; }
/* the person cut out of their photo, the crown on their head: no circle (19 Nov 2026) */
canvas.fl-crown-fig { display: block; width: 132px; height: 150px; }
.fl-crown-prevbox { flex: 0 0 auto; display: grid; justify-items: center; gap: 4px; font-size: .74rem; }
.fl-crown-prevbox[hidden] { display: none; }
canvas.fl-crown-drag { cursor: grab; touch-action: none; border: 1px dashed var(--line); border-radius: 14px; }
canvas.fl-crown-drag:active { cursor: grabbing; }
.fl-crown-title { margin-top: 6px; font-size: .86rem; color: var(--brand); }
.fl-crown-name { font-size: .78rem; overflow-wrap: anywhere; }
.fl-crown-units { font-size: .72rem; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .fl-crown { transition: none; } }

/* the crown photo editor: the person cut out, moved and zoomed inside a square (13 and 19 Nov 2026) */
.fl-crown-stagewrap { flex: 0 0 auto; }
canvas.fl-crown-stage { display: block; width: 200px; height: 200px; border-radius: 14px; border: 1px dashed var(--line); cursor: grab; touch-action: none; background: repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
canvas.fl-crown-stage:active { cursor: grabbing; }
.fl-crown-stagewrap .fl-crown-face.big { width: 200px; height: 200px; font-size: 3rem; }

/* the onboarding day by day, opened by a click (13 Nov 2026) */
button.fl-prob-day { all: unset; box-sizing: border-box; cursor: pointer; display: block; border: 1px solid var(--line); border-left: 5px solid var(--line); border-radius: 10px; padding: 6px 8px; font-size: .78rem; }
button.fl-prob-day.done { background: var(--ok-bg); border-color: transparent; border-left-color: var(--ok); }
button.fl-prob-day.part { background: #fff6e0; border-color: transparent; border-left-color: #e0a100; }
button.fl-prob-day.none { color: var(--muted); border-style: dashed; }
button.fl-prob-day.open { outline: 2px solid var(--brand); outline-offset: 1px; }
button.fl-prob-day:focus-visible { outline: 2px solid var(--brand); }
button.fl-prob-day p { margin: 4px 0 0; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fl-prob-daycount { display: block; font-weight: 600; }
button.fl-prob-day.part .fl-prob-daycount { color: #9a6b00; }
button.fl-prob-day.done .fl-prob-daycount { color: var(--ok); }
.fl-prob-key { display: inline-block; margin-left: 8px; padding: 0 8px; border-radius: 999px; font-size: .72rem; border-left: 5px solid var(--line); }
.fl-prob-key.done { background: var(--ok-bg); border-left-color: var(--ok); }
.fl-prob-key.part { background: #fff6e0; border-left-color: #e0a100; }
.fl-prob-key.none { border: 1px dashed var(--line); }
.fl-prob-daydetail { margin-top: 10px; padding: 12px; border: 1px solid var(--brand); border-radius: 12px; font-size: .84rem; }
.fl-prob-daydetail h4 { margin: 0 0 4px; }
.fl-prob-daydetail .fl-two { margin-top: 8px; }
.fl-prob-remark { margin: 4px 0; white-space: pre-wrap; }
html[data-theme="dark"] button.fl-prob-day.part, html[data-theme="dark"] .fl-prob-key.part { background: #4a3a10; }
html[data-theme="dark"] button.fl-prob-day.part .fl-prob-daycount { color: #f0c860; }

/* the team overview, shorter: a glance at each person, then one scorecard (13 Nov 2026) */
.fl-coach-glances { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-bottom: 14px; }
.fl-coach-glance { border: 1px solid var(--line); border-left: 5px solid var(--brand); border-radius: 12px; padding: 10px 12px; display: grid; gap: 5px; font-size: .84rem; }
.fl-coach-glance > b { font-size: .95rem; }
.fl-coach-glance .lbl { display: inline-block; width: 52px; font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.fl-coach-glance .fl-coach-delta { margin: 0 6px 3px 0; font-size: .78rem; padding: 1px 8px; }
.fl-coach-score { border-collapse: collapse; font-size: .84rem; min-width: 100%; }
.fl-coach-score th, .fl-coach-score td { border-bottom: 1px solid var(--line); padding: 6px 10px; text-align: right; white-space: nowrap; }
.fl-coach-score thead th { font-size: .76rem; color: var(--muted); font-weight: 700; position: sticky; top: 0; background: var(--card); }
.fl-coach-score tbody th, .fl-coach-score thead th:first-child { text-align: left; }
.fl-coach-score tr.sec th { background: var(--brand-tint); text-transform: uppercase; letter-spacing: .04em; font-size: .74rem; text-align: left; }
.fl-coach-score td .val { font-variant-numeric: tabular-nums; }
.fl-coach-score td.lead .val { font-weight: 700; }
.fl-coach-score td .fl-coach-delta { min-width: 62px; text-align: center; }

/* sections and labels: dragged into order and taken off the list (17 Nov 2026) */
.fl-labellist { display: grid; gap: 4px; }
.fl-labelitem.dragging { opacity: .4; }
.fl-labelrow .fl-coach-grip { width: 22px; padding: 0; text-align: center; flex: none; }
.fl-labelmove { display: flex; align-items: center; gap: 8px; margin: 2px 0 4px 86px; font-size: .78rem; }
.fl-labelmove select { margin: 0; min-height: 0; height: 28px; font-size: .8rem; width: auto; max-width: 260px; }
.fl-labelmove[hidden] { display: none; }

/* ---- HOD, Emily's own work board (21 Nov 2026) ---------------------------------------------- */
:root { --hod-new: #f1eefe; --hod-star: #fff1b8; --hod-p1: #e6f1fb; --hod-p1-ink: #0c447c; --hod-p2: #b5d4f4; --hod-p2-ink: #0c447c; --hod-p3: #85b7eb; --hod-p3-ink: #042c53;
  --hod-done: #e3f4e8; --hod-done-ink: #1a6b34; --hod-none: #f1efe8; --hod-none-ink: #555350; --hod-wait: #faeeda; --hod-wait-ink: #7a4508; --hod-hold: #e7ecf3; --hod-hold-ink: #3a4b60;
  --hod-cancel: #efeef0; --hod-cancel-ink: #8a8690; --hod-today: #fbf6fd; }
html[data-theme="dark"] { --hod-new: #2d2546; --hod-star: #4d3f12; --hod-p1: #1d3247; --hod-p1-ink: #b9d8f5; --hod-p2: #24476b; --hod-p2-ink: #d6e8fa; --hod-p3: #2f6299; --hod-p3-ink: #eef5fd;
  --hod-done: #1e3d29; --hod-done-ink: #a8e2b8; --hod-none: #33303a; --hod-none-ink: #c9c4cf; --hod-wait: #46351a; --hod-wait-ink: #f2d29d; --hod-hold: #2b3442; --hod-hold-ink: #c3d0e2;
  --hod-cancel: #2b2730; --hod-cancel-ink: #8f8798; --hod-today: #2c2236; }
.fl-hod-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.fl-hod-head a.br-chip { text-decoration: none; }
.fl-hod-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 760px) { .fl-hod-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fl-hod-tile { margin: 0; padding: 10px 12px; display: block; }
.fl-hod-tile .l { font-size: .74rem; color: var(--muted); }
.fl-hod-tile .v { font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
.fl-hod-tile.good .v { color: var(--ok); }
.fl-hod-tile.bad .v { color: var(--bad); }
input.fl-hod-can { all: unset; width: 3.2em; border-bottom: 1px dashed var(--muted); font: inherit; text-align: right; }
input.fl-hod-can:focus { border-bottom-color: var(--brand); }
.fl-hod-pri { margin: 10px 0 0; font-size: .86rem; }
.fl-hod-nav { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.fl-hod-legend { font-size: .75rem; display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; }
.fl-hod-key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; border: 1px solid var(--line, #e4dcea); }
.fl-hod-key.fixed { background: var(--card, #fff); }
.fl-hod-key.new { background: var(--hod-new); }
.fl-hod-key.star { background: var(--hod-star); }
.fl-hod-bar { position: sticky; top: 62px; z-index: 5; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 6px 8px; margin: 0 0 8px;
  background: var(--card, #fff); border: 1px solid var(--line, #e4dcea); border-radius: 10px; }
.fl-hod-bar button:disabled, .fl-hod-bar select:disabled { opacity: .4; }
.fl-hod-fmt { min-width: 30px; }
.fl-hod-fmt.on { background: var(--brand-tint); outline: 1px solid var(--brand); }
.fl-hod-size { margin: 0; width: auto; height: 30px; min-height: 0; padding: 0 6px; font-size: .8rem; }
.fl-hod-what { font-size: .78rem; margin-left: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40ch; }
.fl-hod-colour { position: relative; display: inline-block; }
.fl-hod-swatches { position: absolute; top: 34px; left: 0; z-index: 10; display: grid; grid-template-columns: repeat(6, 24px); gap: 4px; padding: 8px;
  background: var(--card, #fff); border: 1px solid var(--line, #e4dcea); border-radius: 10px; box-shadow: 0 6px 18px rgba(0,0,0,.15); }
.fl-hod-swatches[hidden] { display: none; }
.fl-hod-swatches > .ghost { grid-column: span 6; }
.fl-hod-sw { width: 24px; height: 24px; min-height: 0; padding: 0; border-radius: 6px; border: 1px solid rgba(0,0,0,.15); cursor: pointer; }
.fl-hod-sw.more { display: grid; place-items: center; font-size: .8rem; position: relative; overflow: hidden; background: var(--brand-tint); }
.fl-hod-sw.more input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.fl-hod-scroll { overflow-x: auto; max-width: 100%; }
.fl-hod-sheet { border-collapse: separate; border-spacing: 0; font-size: .82rem; white-space: nowrap; }
.fl-hod-sheet th, .fl-hod-sheet td { border-bottom: 1px solid var(--line, #e4dcea); padding: 2px 3px; text-align: center; height: 30px; }
.fl-hod-sheet thead th { background: var(--brand-tint); font-weight: 700; font-size: .76rem; }
.fl-hod-sheet th.wk { border-left: 2px solid var(--brand); }
.fl-hod-sheet .day.first { border-left: 2px solid var(--brand); }
.fl-hod-sheet .day.today { background: var(--hod-today); }
.fl-hod-sheet thead th.today { color: var(--brand-dark, #470054); text-decoration: underline; }
.fl-hod-sheet .day.out { opacity: .55; }
.fl-hod-sheet .stk { position: sticky; z-index: 1; background: var(--card, #fff); }
.fl-hod-sheet thead .stk { background: var(--brand-tint); z-index: 2; }
.fl-hod-sheet .s0 { left: 0; width: 28px; min-width: 28px; }
.fl-hod-sheet .s1 { left: 28px; min-width: 220px; max-width: 300px; text-align: left; }
.fl-hod-sheet .s2 { left: 254px; min-width: 56px; box-shadow: 2px 0 0 var(--line, #e4dcea); }
@media (max-width: 760px) { .fl-hod-sheet .s1 { min-width: 150px; max-width: 170px; } .fl-hod-sheet .s2 { left: 184px; } }
.fl-hod-sheet tr.role td { background: var(--bg, #faf7fc); text-align: left; padding: 6px 8px; }
.fl-hod-roleinfo { position: sticky; left: 8px; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.fl-hod-rolename { font-weight: 700; }
.fl-hod-roleadd { margin-left: 12px; display: inline-flex; gap: 4px; }
.fl-hod-sheet tr.task.new .s1, .fl-hod-sheet tr.task.new .s2 { background: var(--hod-new); }
.fl-hod-sheet tr.hours td { height: 26px; font-size: .74rem; }
.fl-hod-sheet th.act, .fl-hod-sheet td.act { min-width: 46px; }
.fl-hod-sheet th.note, .fl-hod-sheet td.note { min-width: 110px; max-width: 160px; }
.fl-hod-name { cursor: pointer; padding: 3px 4px; border-radius: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; outline: none; max-width: 290px; }
.fl-hod-name > span:first-child { padding: 1px 3px; border-radius: 4px; }
.fl-hod-starred { background: var(--hod-star); }
.fl-hod-carried { font-size: .7rem; color: var(--muted); }
.fl-hod-picked { outline: 2px solid var(--brand) !important; outline-offset: -1px; }
.fl-hod-star { all: unset; cursor: pointer; font-size: 1rem; color: var(--muted); padding: 0 4px; }
.fl-hod-star.on { color: #c98a00; }
input.fl-hod-num { all: unset; box-sizing: border-box; width: 46px; height: 26px; text-align: center; font: inherit; border-radius: 4px; }
input.fl-hod-num:hover { background: var(--brand-tint); }
input.fl-hod-num:focus { outline: 2px solid var(--brand); background: var(--brand-tint); }
input.fl-hod-num.bad { background: var(--bad-bg); }
.fl-hod-note { cursor: pointer; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px; padding: 2px 4px; font-size: .76rem; border-radius: 4px; outline: none; }
.fl-hod-note.empty { color: var(--muted); opacity: .6; }
.fl-hod-note:hover { background: var(--brand-tint); }
.fl-hod-pill { all: unset; box-sizing: border-box; cursor: pointer; display: inline-block; min-width: 58px; padding: 2px 6px; border-radius: 999px; font-size: .72rem; text-align: center; line-height: 1.5; }
.fl-hod-pill.blank { color: var(--muted); opacity: .45; min-width: 40px; }
.fl-hod-pill.blank:hover { background: var(--brand-tint); opacity: 1; }
.fl-hod-pill:focus-visible { outline: 2px solid var(--brand); }
.fl-hod-pill.p1 { background: var(--hod-p1); color: var(--hod-p1-ink); }
.fl-hod-pill.p2 { background: var(--hod-p2); color: var(--hod-p2-ink); }
.fl-hod-pill.p3 { background: var(--hod-p3); color: var(--hod-p3-ink); }
.fl-hod-pill.done { background: var(--hod-done); color: var(--hod-done-ink); font-weight: 700; }
.fl-hod-pill.none { background: var(--hod-none); color: var(--hod-none-ink); }
.fl-hod-pill.waiting { background: var(--hod-wait); color: var(--hod-wait-ink); }
.fl-hod-pill.hold { background: var(--hod-hold); color: var(--hod-hold-ink); }
.fl-hod-pill.cancel { background: var(--hod-cancel); color: var(--hod-cancel-ink); text-decoration: line-through; }
.fl-hod-pill.current { outline: 2px solid var(--brand); }
.fl-hod-menu { position: absolute; z-index: 60; width: 250px; padding: 8px; background: var(--card, #fff); border: 1px solid var(--line, #e4dcea); border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.fl-hod-menugrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.fl-hod-menugrid .fl-hod-pill { min-width: 0; padding: 4px 2px; }
.fl-hodwin { max-width: 520px; }
.fl-hodwin.wide { max-width: 620px; }
.fl-hod-check { display: flex; gap: 8px; align-items: center; margin: 8px 0; font-size: .86rem; }
.fl-hod-check input { width: auto; margin: 0; }
.fl-hod-rolerow { display: flex; gap: 6px; align-items: center; margin: 5px 0; }
.fl-hod-rolerow input[type=text] { margin: 0; flex: 1; }
.fl-hod-rolerow input[type=color] { width: 34px; height: 30px; padding: 0; margin: 0; border: none; background: none; flex: none; }
.fl-hod-good { color: var(--ok); font-weight: 700; }
.fl-hod-bad { color: var(--bad); font-weight: 700; }
.fl-hod-ov { border-collapse: collapse; font-size: .84rem; white-space: nowrap; min-width: 100%; }
.fl-hod-ov th, .fl-hod-ov td { border-bottom: 1px solid var(--line, #e4dcea); padding: 6px 8px; text-align: right; }
.fl-hod-ov thead th { background: var(--brand-tint); font-size: .76rem; }
/* HOD: clearer lines between the days (Emily, 21 Nov 2026), her own columns, a new row to type into, the month picker */
:root { --hod-dayline: #cdbdd9; }
html[data-theme="dark"] { --hod-dayline: #56475f; }
.fl-hod-sheet td.day, .fl-hod-sheet thead th.day, .fl-hod-sheet td.act, .fl-hod-sheet th.act, .fl-hod-sheet td.note, .fl-hod-sheet th.note { border-left: 1px solid var(--hod-dayline); }
.fl-hod-sheet .day.first, .fl-hod-sheet th.wk { border-left: 3px solid var(--brand); }
.fl-hod-sheet td.act, .fl-hod-sheet th.act { border-left-style: dashed; }
.fl-hod-sheet tbody tr.task:hover td { background-image: linear-gradient(rgba(71, 0, 84, .035), rgba(71, 0, 84, .035)); }
.fl-hod-sheet th.cc, .fl-hod-sheet td.cc { border-left: 1px solid var(--hod-dayline); min-width: 96px; }
.fl-hod-sheet th.cc.add, .fl-hod-sheet td.cc.add { min-width: 0; width: 1px; padding: 0 4px; }
.fl-hod-cchead { all: unset; cursor: pointer; display: block; padding: 2px 6px; border-radius: 6px; }
.fl-hod-cchead:hover, .fl-hod-cchead:focus-visible { background: var(--brand-tint-2, #ead9f1); outline: none; }
input.fl-hod-own { all: unset; box-sizing: border-box; width: 120px; height: 26px; padding: 0 6px; font: inherit; border-radius: 4px; text-align: left; }
input.fl-hod-own:hover { background: var(--brand-tint); }
input.fl-hod-own:focus { outline: 2px solid var(--brand); background: var(--brand-tint); }
input.fl-hod-newname { margin: 0; width: 100%; min-height: 0; height: 28px; padding: 0 8px; font-size: .82rem; border: 1px dashed var(--brand); border-radius: 6px; background: var(--card, #fff); color: inherit; }
.fl-hod-sheet tr.adding.new td.s1, .fl-hod-sheet tr.adding.new td.s2 { background: var(--hod-new); }
.fl-hod-sheet tr.adding input.fl-hod-num { border: 1px dashed var(--brand); }
.fl-hod-addhint { text-align: left !important; }
.fl-hod-sheet tr.addrole td { padding: 6px 3px; border-bottom: none; }
.fl-hod-monthpick { display: inline-flex; gap: 4px; align-items: center; }
select.fl-hod-monthsel { margin: 0; width: auto; height: 32px; min-height: 0; padding: 0 8px; font-weight: 700; font-size: .84rem; }
.fl-hod-undo:disabled { opacity: .45; }
.content > .fl-hod-still, .fl-hod-still .kpi .v { animation: none !important; }
/* HOD overview, as her sheet: the daily block, months side by side, each week boxed */
.fl-hod-daily2 th.mblock { border-left: 3px solid var(--brand); text-align: center !important; font-size: .82rem; }
.fl-hod-daily2 .mfirst { border-left: 3px solid var(--brand); }
.fl-hod-daily2 th.wkc { text-align: left; vertical-align: middle; background: var(--brand-tint); white-space: nowrap; }
.fl-hod-daily2 th.dyc { text-align: left; color: var(--muted); font-weight: 600; background: var(--card, #fff); }
.fl-hod-daily2 tr.wkstart > * { border-top: 2px solid var(--brand); }
.fl-hod-daily2 td, .fl-hod-daily2 th { padding: 4px 8px; }
.fl-hod-daily2 td.date { color: var(--muted); white-space: nowrap; }
.fl-hod-daily2 td.date.today { color: var(--brand-dark, #470054); font-weight: 700; text-decoration: underline; }
.fl-hod-daily2 td.tot { font-weight: 700; }
.fl-hod-ov td .muted { opacity: .55; }
.fl-hod-daily2 th.wkc { position: sticky; left: 0; z-index: 2; width: 74px; min-width: 74px; }
.fl-hod-daily2 th.dyc { position: sticky; left: 74px; z-index: 2; width: 48px; min-width: 48px; box-shadow: 2px 0 0 var(--brand); }
/* HOD: every table scrolls in its own box, its headings and first columns stay put (Emily, 21 Nov 2026) */
.fl-hod-scroll { overflow: auto; max-height: calc(100vh - 170px); overscroll-behavior: contain; }
.fl-hod-sheet thead th, .fl-hod-ov thead th, .fl-hod-kpi thead th { position: sticky; top: 0; z-index: 3; }
.fl-hod-sheet thead th.stk { z-index: 5; }
.fl-hod-ov:not(.fl-hod-daily2) > * > tr > :first-child { position: sticky; left: 0; z-index: 2; background: var(--card, #fff); box-shadow: 2px 0 0 var(--line, #e4dcea); }
.fl-hod-ov:not(.fl-hod-daily2) > thead > tr > :first-child { z-index: 5; background: var(--brand-tint); }
.fl-hod-daily2 thead th.wkc, .fl-hod-daily2 thead th.dyc { z-index: 5; background: var(--brand-tint); }
.fl-hod-daily2 tbody th.wkc, .fl-hod-daily2 tbody th.dyc { z-index: 2; }
.fl-hod-ov thead th { background: var(--brand-tint); }
/* KPI: sheets of her own */
.fl-hod-sheettabs { gap: 6px; }
.fl-hod-ktools { margin-bottom: 8px; gap: 4px; }
.fl-hod-fxbar { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; padding: 4px 8px; border: 1px solid var(--line, #e4dcea); border-radius: 8px; background: var(--card, #fff); }
.fl-hod-fx-addr { min-width: 64px; font-weight: 700; font-size: .8rem; color: var(--brand-dark, #470054); }
input.fl-hod-fx { margin: 0; flex: 1; min-height: 0; height: 30px; border: none; background: transparent; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .84rem; color: inherit; }
input.fl-hod-fx:focus { outline: none; }
.fl-hod-kscroll { max-height: calc(100vh - 230px); border: 1px solid var(--line, #e4dcea); border-radius: 8px; }
.fl-hod-kpi { border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: .84rem; }
.fl-hod-kpi th { background: var(--brand-tint); color: var(--muted); font-size: .72rem; font-weight: 600; border-right: 1px solid var(--hod-dayline, #cdbdd9); border-bottom: 1px solid var(--hod-dayline, #cdbdd9); padding: 3px 2px; cursor: pointer; user-select: none; }
.fl-hod-kpi th.corner { position: sticky; left: 0; top: 0; z-index: 6; width: 42px; }
.fl-hod-kpi tbody th.rowhead { position: sticky; left: 0; z-index: 2; text-align: center; }
.fl-hod-kpi td { border-right: 1px solid var(--line, #e4dcea); border-bottom: 1px solid var(--line, #e4dcea); padding: 0; background: var(--card, #fff); height: 28px; }
.fl-hod-kpi td.sel { box-shadow: inset 0 0 0 2px var(--brand); }
.fl-hod-kpi tbody tr.fz > * { position: sticky; z-index: 3; }
.fl-hod-kpi tbody tr.fz > th.rowhead { z-index: 4; }
.fl-hod-kpi tbody tr.fz > td { border-bottom: 2px solid var(--brand); }
.fl-hod-kpi td.fz, .fl-hod-kpi thead th.colhead.fz { position: sticky; z-index: 2; border-right: 2px solid var(--brand); }
.fl-hod-kpi thead th.colhead.fz { z-index: 5; }
.fl-hod-kpi tbody tr.fz > td.fz { z-index: 4; }
input.fl-hod-kcell { all: unset; display: block; box-sizing: border-box; width: 100%; height: 28px; padding: 0 6px; font: inherit; color: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: cell; }
input.fl-hod-kcell.num { text-align: right; }
input.fl-hod-kcell.err { color: var(--bad); font-weight: 700; }
input.fl-hod-kcell:focus { cursor: text; background: color-mix(in srgb, var(--brand-tint) 60%, transparent); }
/* HOD: every list is hers (26 Nov 2026) — tiles as many as she keeps, the set-up window, an update of her own */
.fl-hod-strip { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
input.fl-hod-can.wide { width: 100%; text-align: left; font-size: 1.05rem; }
.fl-hod-pri { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.fl-hod-edittiles { margin-left: auto; }
.fl-hod-pill.own { background: var(--hod-none); color: var(--hod-none-ink); }
.fl-hod-setsec { margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px dashed var(--line, #e4dcea); }
.fl-hod-setsec h3 { margin: 0 0 4px; }
.fl-hod-setsec .fl-note { margin: 0 0 6px; }
.fl-hod-rolerow input[type=color].unset { opacity: .35; }
.fl-hod-rolerow select.fl-hod-size { flex: none; max-width: 170px; }
.fl-hod-rolerow input[type=checkbox] { width: 16px; flex: none; margin: 0; }
.fl-hodwin.wide { max-width: 720px; }
/* HOD: alignment, merged cells, tables and sheet tabs in KPI (26 Nov 2026) */
.fl-hod-alic { display: inline-flex; flex-direction: column; gap: 2px; width: 14px; vertical-align: middle; }
.fl-hod-alic i { display: block; height: 2px; background: currentColor; border-radius: 1px; }
.fl-hod-alic i:nth-child(1) { width: 14px; } .fl-hod-alic i:nth-child(2) { width: 8px; } .fl-hod-alic i:nth-child(3) { width: 11px; }
.fl-hod-alic.left { align-items: flex-start; } .fl-hod-alic.center { align-items: center; } .fl-hod-alic.right { align-items: flex-end; }
.fl-hod-kpi td.mg { vertical-align: middle; }
.fl-hod-kpi td.mg input.fl-hod-kcell { height: 100%; min-height: 28px; }
.fl-hod-kpi td.tb { border-color: var(--hod-dayline, #cdbdd9); }
.fl-hod-kpi td.tb-h { background: var(--brand, #470054); position: relative; border-bottom: 2px solid var(--brand-dark, #470054); }
.fl-hod-kpi td.tb-h input.fl-hod-kcell { color: #fff; font-weight: 700; padding-right: 22px; }
.fl-hod-kpi td.tb-b { background: var(--brand-tint); }
.fl-hod-kpi td.tb-l { border-left: 2px solid var(--brand); } .fl-hod-kpi td.tb-r { border-right: 2px solid var(--brand); } .fl-hod-kpi td.tb-last { border-bottom: 2px solid var(--brand); }
.fl-hod-tbbtn { all: unset; position: absolute; right: 2px; top: 3px; width: 18px; height: 22px; text-align: center; cursor: pointer; color: #fff; font-size: .8rem; border-radius: 4px; }
.fl-hod-tbbtn:hover, .fl-hod-tbbtn.on { background: rgba(255, 255, 255, .25); }
.fl-hod-kpi tr[hidden] { display: none; }
.fl-hod-sheetbar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin-top: 8px; border-top: 1px solid var(--line, #e4dcea); padding-top: 6px; }
.fl-hod-sheettab { all: unset; box-sizing: border-box; cursor: pointer; padding: 5px 14px; font-size: .82rem; border: 1px solid var(--line, #e4dcea); border-top: none; border-radius: 0 0 8px 8px; background: var(--bg, #faf7fc); color: var(--muted); }
.fl-hod-sheettab:hover { background: var(--brand-tint); }
.fl-hod-sheettab.on { background: var(--card, #fff); color: var(--brand-dark, #470054); font-weight: 700; border-bottom: 3px solid var(--brand); }
.fl-hod-sheettab.add { padding: 5px 10px; font-weight: 700; }
html[data-theme="dark"] .fl-hod-sheettab.on { color: var(--text); }
/* HOD KPI: a spreadsheet's toolbar (26 Nov 2026) */
.fl-hod-fontsel { margin: 0; width: auto; max-width: 130px; height: 30px; min-height: 0; padding: 0 6px; font-size: .8rem; }
.fl-hod-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 6px 8px; margin: 0 0 8px; border: 1px solid var(--line, #e4dcea); border-radius: 10px; background: var(--bg, #faf7fc); }
.fl-hod-tool { white-space: nowrap; }
.fl-hod-tool.on { background: var(--brand-tint-2, #ead9f1); outline: 1px solid var(--brand); }
.fl-hod-tool:disabled { opacity: .4; }
select.fl-hod-toolsel { margin: 0; width: auto; height: 30px; min-height: 0; padding: 0 6px; font-size: .8rem; border-radius: 999px; }
.fl-hod-sep { width: 1px; height: 22px; background: var(--line, #e4dcea); margin: 0 3px; }
.fl-hod-kpi td { position: relative; }
.fl-hod-kpi td.mg input.fl-hod-kcell { height: 28px; }
textarea.fl-hod-kcell { all: unset; display: block; box-sizing: border-box; width: 100%; min-height: 28px; padding: 5px 6px; font: inherit; color: inherit; white-space: pre-wrap; overflow-wrap: anywhere; resize: none; overflow: hidden; cursor: cell; }
textarea.fl-hod-kcell.num { text-align: right; } textarea.fl-hod-kcell.err { color: var(--bad); font-weight: 700; }
textarea.fl-hod-kcell:focus { cursor: text; background: color-mix(in srgb, var(--brand-tint) 60%, transparent); }
.fl-hod-kcell.rot { writing-mode: vertical-rl; height: 96px !important; text-overflow: clip; padding: 6px 0; text-align: left; }
.fl-hod-kcell.rot.up { transform: rotate(180deg); }
.fl-hod-kcell.lnk { color: #1c7ed6; text-decoration: underline; padding-right: 18px; }
.fl-hod-linkgo { position: absolute; right: 3px; top: 4px; font-size: .8rem; text-decoration: none; color: #1c7ed6; }
.fl-hod-kpi td.has-note::after { content: ''; position: absolute; top: 0; right: 0; border-top: 8px solid #e8590c; border-left: 8px solid transparent; pointer-events: none; }
.fl-hod-kpi td.tbp-h { background: var(--brand-tint); }
.fl-hod-kpi td.tbp-h input.fl-hod-kcell { font-weight: 700; padding-right: 22px; }
.fl-hod-tbbtn.dark { color: var(--brand-dark, #470054); }
.fl-hod-tbbtn.dark:hover, .fl-hod-tbbtn.dark.on { background: var(--brand-tint-2, #ead9f1); }
.fl-hod-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 12px; margin-top: 12px; }
.fl-hod-chartcard { border: 1px solid var(--line, #e4dcea); border-radius: 10px; padding: 10px; background: var(--card, #fff); }
.fl-hod-charttitle { margin: 0; flex: 1; min-width: 120px; font-weight: 700; }
.fl-hod-legendrow { display: flex; flex-wrap: wrap; gap: 10px; font-size: .76rem; margin: 6px 0 2px; }
.fl-hod-legendrow i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; }
.fl-hod-chart { width: 100%; height: auto; }
.fl-hod-chart .grid { stroke: var(--line, #e4dcea); stroke-width: 1; }
.fl-hod-chart .axis { stroke: var(--muted, #6b6474); stroke-width: 1; }
.fl-hod-chart .tick { font-size: 10px; fill: var(--muted, #6b6474); }
select.fl-hod-toolsel { max-width: 112px; }
