/* teams.css V2.8 - 2026-11-09, Nolan (Karl's screenshot): My Teams rows sit inside their card (the badge no longer touches the outline). */
/* teams.css V2.7 - 2026-11-09, Nolan (Teams 2C): captain letters, money rows (to go / paid / spent), the fee header, the recruit card, row buttons with a second line. */
/* teams.css V2.6 - 2026-11-09, Nolan (Karl's 2B walk): icon tiles for a goal's kind (one hint line, no clutter); pick lists are Index rows in a sheet. */
/* teams.css V2.5 - 2026-11-09, Nolan (Teams Phase 2B): team goals, the add sheet, the game sheet, stats, Played / Didn't play. */
/* teams.css V2.4 - 2026-11-09, Nolan: at 360 px and under the ACTIVE tab is icon-only too (it showed one clipped letter). */
/* teams.css V2.3 - 2026-11-09, Nolan (Teams Phase 2A): duties, swaps, events, the calendar card, lines not used tonight. */
/* teams.css V2.2 - 2026-11-09, Nolan (Fable): at 360 px and under the tabs are icons only, so nothing is cut to "O…". */
/* teams.css V2.1 - 2026-11-09, Nolan: opaque fills on the team colour (contrast pass); state-free class names. */
/* teams.css V2.0 - 2026-11-09, Nolan (Karl approved the redesign pictures). The team space in the team's own colours,
   built on the app's pieces (h-btn, h-input, h-lr__f, h-room__tabs, dropField). No sideways scrollers anywhere: tiles,
   grids and at most three equal segments. Tokens only; the team's colour arrives as --tm-c on the element. */
.tm-page{display:flex;flex-direction:column;gap:12px}
.tm-form{display:flex;flex-direction:column;gap:12px}
.tm-body{display:flex;flex-direction:column;gap:10px}
.tm-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.tm-acts{display:flex;flex-wrap:wrap;gap:8px}
.tm-acts--2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.tm-acts--3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.tm-acts--2 .h-btn,.tm-acts--3 .h-btn{width:100%;padding-inline:8px}
.tm-note{margin:0;color:var(--muted);font-size:13px;line-height:1.45}
.tm-hint{margin:0;color:var(--muted);font-size:12px;line-height:1.4}
.tm-muted{color:var(--muted);font-size:12px}
.tm-lbl{font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.tm-lbl2{font-size:12px;font-weight:700;color:var(--ink)}
.tm-card{border:1px solid var(--line);border-radius:14px;background:var(--panel)}
.tm-link{border:0;background:transparent;color:var(--warn);font-weight:700;font-size:14px;cursor:pointer;padding:4px 0;text-align:left}
.tm-chip{padding:3px 10px;border-radius:999px;background:var(--panel2);border:1px solid var(--line);color:var(--ink);font-size:12px}
.tm-added{display:flex;flex-wrap:wrap;gap:6px}
.tm-vp{display:flex;flex-direction:column;gap:6px}

/* The badge: the team's initials on its colour, the trim as a ring. */
.tm-badge{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;font-family:var(--head-font, inherit);letter-spacing:.02em}
.tm-badge--s{width:40px;height:40px;border-radius:10px;font-size:16px}
.tm-badge--m{width:46px;height:46px;border-radius:12px;font-size:19px}
.tm-badge--l{width:62px;height:62px;border-radius:16px;font-size:26px}
.tm-disc--light{color:var(--avatar-black)}
.tm-disc--dark{color:var(--brand-neutral)}

/* Start a team */
.tm-prog{height:4px;border-radius:999px;background:var(--panel2);overflow:hidden}
.tm-prog span{display:block;height:100%;background:var(--green)}
.tm-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.tm-tile{display:flex;flex-direction:column;gap:6px;align-items:flex-start;justify-content:center;min-height:84px;padding:12px 14px;border-radius:14px;border:1px solid var(--line);background:var(--panel);color:var(--ink);text-align:left;cursor:pointer}
.tm-tile.is-on{border:2px solid var(--green);background:var(--active-green-bg)}
.tm-tile__t{font-weight:800;font-size:16px}
.tm-tile__s{font-size:12px;color:var(--muted);line-height:1.35}
.tm-look{display:flex;flex-direction:column;gap:10px;padding:14px}
.tm-look__h{display:flex;align-items:center;justify-content:space-between;gap:8px}
.tm-look__row{display:flex;align-items:flex-end;gap:14px}
.tm-look__row .h-lr__f{flex:1}
.tm-initials{letter-spacing:.12em;font-weight:700;text-transform:uppercase}
.tm-swatches{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.tm-sw{height:38px;border-radius:10px;border:1px solid var(--line2);cursor:pointer;padding:0}
.tm-sw--trim{height:30px;border-radius:8px}
.tm-sw.is-on{outline:2px solid var(--green);outline-offset:2px}
.tm-sw--clear{background:transparent;border-style:dashed;color:var(--muted);font-size:11px}
.tm-switch{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--panel);cursor:pointer}
.tm-switch__t{flex:1;display:flex;flex-direction:column;gap:2px;color:var(--ink)}
.tm-switch__t small{color:var(--muted);font-size:12px}
.tm-switch input{position:absolute;opacity:0;width:1px;height:1px}
.tm-switch__k{width:46px;height:28px;border-radius:999px;background:var(--line2);position:relative;flex:0 0 auto}
.tm-switch__k::after{content:"";position:absolute;left:3px;top:3px;width:22px;height:22px;border-radius:50%;background:var(--ink);transition:left .15s}
.tm-switch input:checked + .tm-switch__k{background:var(--green)}
.tm-switch input:checked + .tm-switch__k::after{left:21px;background:var(--on-green)}
.tm-switch input:focus-visible + .tm-switch__k{outline:2px solid var(--green);outline-offset:2px}
.tm-invite{display:flex;flex-direction:column;align-items:center;gap:12px;padding:16px;text-align:center}
.tm-invite__c{font-family:var(--head-font, inherit);font-size:40px;line-height:1;letter-spacing:.14em;color:var(--ink)}
.tm-invite .tm-acts{width:100%}

/* The team space: the hero card in the team's colour (no photo, no header art) */
.tm-hero{--tm-c:var(--info);position:relative;overflow:hidden;display:flex;flex-direction:column;gap:14px;padding:16px;border-radius:18px;border:1px solid var(--line);
  background:linear-gradient(160deg,color-mix(in srgb,var(--tm-c) 85%,var(--bg)) 0%,color-mix(in srgb,var(--tm-c) 45%,var(--bg)) 55%,var(--panel) 100%)}
.tm-hero--slim{padding:12px 14px;border-radius:16px}
.tm-hero__row{display:flex;align-items:center;gap:12px}
.tm-hero__m{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.tm-hero__n{font-family:var(--head-font, inherit);font-size:24px;line-height:1.05;color:var(--brand-neutral)}
.tm-hero--slim .tm-hero__n{font-size:19px}
.tm-hero__s{font-size:12px;color:var(--brand-neutral)}
.tm-hero__btn{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 12px;border-radius:10px;border:1px solid color-mix(in srgb,var(--brand-neutral) 40%,var(--tm-c));
  background:color-mix(in srgb,var(--brand-black) 55%,var(--tm-c));color:var(--brand-neutral);font-weight:700;font-size:13px;cursor:pointer}
.tm-rec{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.tm-rec span{display:flex;flex-direction:column;gap:2px;padding:10px;border-radius:12px;background:color-mix(in srgb,var(--brand-black) 60%,var(--tm-c))}
.tm-rec b{font-family:var(--head-font, inherit);font-size:26px;line-height:1;font-weight:400;color:var(--brand-neutral)}
.tm-rec small{font-size:10px;font-weight:700;letter-spacing:.08em;color:var(--brand-neutral)}
.tm-tabs{flex-wrap:nowrap}
.tm-tabs__gap{flex:1}
.tm-manage{color:var(--warn)}

.tm-sh{display:flex;align-items:flex-end;justify-content:space-between;gap:10px}
.tm-sh__t{display:flex;flex-direction:column;gap:4px;min-width:0}
.tm-sh__k{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--green)}
.tm-sh__n{font-family:var(--head-font, inherit);font-size:30px;line-height:1;color:var(--ink)}
.tm-sh__a{display:flex;flex-direction:column;align-items:flex-end;gap:2px}
.tm-band{font-family:var(--head-font, inherit);font-size:16px;letter-spacing:.04em;text-transform:uppercase;color:var(--ink);border-bottom:2px solid var(--green);padding-bottom:6px}
.tm-seg{display:grid;gap:4px;padding:4px;border:1px solid var(--line);border-radius:12px}
.tm-seg__b{min-height:36px;border:0;border-radius:9px;background:transparent;color:var(--muted);font-weight:700;font-size:13px;cursor:pointer;padding:0 6px}
.tm-seg__b.is-on{background:var(--green);color:var(--on-green)}

.tm-setup{display:flex;flex-direction:column;gap:4px;padding:12px 14px;border-color:var(--warn)}
.tm-setup__h{font-family:var(--head-font, inherit);font-size:15px;letter-spacing:.04em;text-transform:uppercase;color:var(--ink);margin-bottom:4px}
.tm-setup__r{display:flex;align-items:center;gap:10px;min-height:36px;border:0;background:transparent;color:var(--ink);font-size:14px;text-align:left;cursor:pointer;padding:0}
.tm-setup__r.is-done{color:var(--muted)}
.tm-setup__c{width:20px;height:20px;border-radius:50%;border:1px solid var(--line2);display:inline-flex;align-items:center;justify-content:center;font-size:12px;color:var(--green)}

.tm-pill{display:inline-block;padding:2px 8px;border-radius:999px;border:1px solid var(--line2);color:var(--muted);font-size:10px;font-weight:700;letter-spacing:.04em;margin-left:6px;vertical-align:middle}
.tm-pill--on{background:var(--green);border-color:var(--green);color:var(--on-green)}
.tm-pill--in{border-color:var(--green);color:var(--green)}
.tm-pill--maybe{border-color:var(--warn);color:var(--warn)}
.tm-pill--out{border-color:var(--danger);color:var(--danger)}
.tm-pill--off{border-color:var(--danger);color:var(--danger)}
.tm-next__tags .tm-pill:first-child,.tm-ev__f .tm-pill:first-child{margin-left:0}

.tm-date{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:0 0 auto;width:56px;padding:6px 0;border-radius:10px;border:1px solid var(--line2);background:var(--panel2);gap:1px}
.tm-date__m{font-size:10px;font-weight:800;color:var(--green)}
.tm-date__d{font-family:var(--head-font, inherit);font-size:24px;line-height:1;color:var(--ink)}
.tm-date__w{font-size:10px;font-weight:700;color:var(--muted)}

.tm-next{display:flex;flex-direction:column;gap:10px;padding:14px;color:var(--ink);text-align:left;cursor:pointer;width:100%}
.tm-next__top{display:flex;gap:12px;align-items:flex-start}
.tm-next__m{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px}
.tm-next__t{font-family:var(--head-font, inherit);font-size:24px;line-height:1.05}
.tm-next__w{font-size:13px;font-weight:700;color:var(--green)}
.tm-next__p{font-size:13px;color:var(--muted)}
.tm-next__c{font-size:13px;color:var(--muted)}
.tm-next__c b{color:var(--green)}

.tm-ans{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.tm-ans__who{font-size:13px;color:var(--ink);min-width:60px}
.tm-ans__bs{flex:1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;min-width:220px}
.tm-ans__b{min-height:44px;border-radius:11px;border:1px solid var(--line2);background:transparent;color:var(--ink);font-weight:700;font-size:14px;cursor:pointer}
.tm-ans__b--in{background:var(--green);border-color:var(--green);color:var(--on-green)}
.tm-ans__b--maybe{border-color:var(--warn);color:var(--warn)}
.tm-ans__b--out{border-color:var(--danger);color:var(--danger)}

.tm-ev{display:flex;gap:12px;padding:12px;color:var(--ink);text-align:left;cursor:pointer;width:100%}
.tm-ev.is-off{opacity:.7}
.tm-ev__m{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.tm-ev__t{font-weight:800;font-size:15px}
.tm-ev__s{font-size:12px;color:var(--muted)}
.tm-ev__f{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:2px}
.tm-score{margin-left:6px;font-variant-numeric:tabular-nums}
.tm-gtop{display:flex;gap:12px;padding:12px}

.tm-tiles3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.tm-stat{display:flex;flex-direction:column;gap:2px;padding:10px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}
.tm-stat b{font-family:var(--head-font, inherit);font-size:26px;line-height:1;font-weight:400;color:var(--ink)}
.tm-stat small{font-size:10px;font-weight:700;letter-spacing:.08em;color:var(--muted)}
.tm-invrow{display:flex;align-items:center;gap:12px;padding:12px 14px}
.tm-invrow__m{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.tm-invrow__c{font-family:var(--head-font, inherit);font-size:26px;line-height:1;letter-spacing:.14em;color:var(--ink)}

.tm-list{display:flex;flex-direction:column;overflow:hidden}
.tm-list__h{padding:10px 14px 6px;font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);border-top:1px solid var(--line)}
.tm-list__h:first-child{border-top:0}
.tm-row{border-bottom:1px solid var(--line)}
/* Karl 11-09: inside the card the badge sat on the card's edge (the shared row has no side padding). */
.tm-list .tm-row{padding-inline:14px}
.tm-row:last-child{border-bottom:0}
.tm-prow{display:flex;align-items:center;gap:12px;padding:10px 14px;border:0;border-top:1px solid var(--line);background:transparent;color:var(--ink);text-align:left;cursor:pointer;width:100%}
.tm-prow__m{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.tm-prow__n{font-weight:700;font-size:15px}
.tm-prow__s{font-size:12px;color:var(--muted)}
.tm-prow__s.is-wait{color:var(--warn)}
.tm-av{width:36px;height:36px;border-radius:50%;border:2px solid var(--line2);display:inline-flex;align-items:center;justify-content:center;font-weight:800;font-size:12px;flex:0 0 auto}
.tm-num{--tm-c:var(--info);width:36px;height:36px;border-radius:50%;background:var(--tm-c);color:var(--brand-neutral);display:inline-flex;align-items:center;justify-content:center;font-family:var(--head-font, inherit);font-size:16px;flex:0 0 auto}
.tm-num.is-wait{background:transparent;border:2px dashed var(--line2);color:var(--muted)}
.tm-blank{padding:12px 14px;color:var(--muted);font-size:13px;border-top:1px solid var(--line)}

/* Lines: a board of spots that always fits (3 across for forwards, 2 for pairs and goalies) */
.tm-board{display:flex;flex-direction:column;gap:8px}
.tm-line{display:grid;grid-template-columns:34px minmax(0,1fr);gap:6px;align-items:center}
.tm-line__k{font-family:var(--head-font, inherit);font-size:14px;color:var(--muted)}
.tm-line__s{display:grid;gap:6px}
.tm-line--3 .tm-line__s{grid-template-columns:repeat(3,minmax(0,1fr))}
.tm-line--2 .tm-line__s{grid-template-columns:repeat(2,minmax(0,1fr))}
.tm-line--4 .tm-line__s{grid-template-columns:repeat(2,minmax(0,1fr))}
.tm-line--5 .tm-line__s{grid-template-columns:repeat(3,minmax(0,1fr))}
.tm-spot{display:flex;flex-direction:column;gap:1px;min-width:0;padding:7px 8px;border-radius:10px;border:1px solid var(--line);background:var(--panel);color:var(--ink);text-align:left;cursor:pointer;font:inherit}
.tm-spot__k{font-size:9px;font-weight:700;color:var(--muted);letter-spacing:.04em}
.tm-spot__v{font-size:13px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tm-spot.is-empty{border-style:dashed;border-color:var(--line2);background:transparent}
.tm-spot.is-empty .tm-spot__v{color:var(--warn);font-weight:600}
.tm-spot.is-changed{border-color:var(--warn)}
.tm-spot.is-changed .tm-spot__k{color:var(--warn)}
.tm-spot.is-out{border-color:var(--danger)}
.tm-spot.is-out .tm-spot__k{color:var(--danger)}
.tm-banner{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--warn);border-radius:12px;font-size:13px;color:var(--ink)}
.tm-banner span{flex:1}
.tm-outs{display:flex;flex-direction:column;gap:6px;padding:10px 12px;font-size:13px;color:var(--ink)}
.tm-final{display:flex;flex-direction:column;align-items:center;gap:6px;padding:16px}
.tm-final__s{font-family:var(--head-font, inherit);font-size:44px;line-height:1;color:var(--ink)}
.tm-who{display:flex;align-items:center;gap:10px;padding:8px 14px;border-top:1px solid var(--line)}
.tm-who:first-child{border-top:0}
.tm-who__n{flex:1;min-width:0;font-size:14px;color:var(--ink)}
.tm-who .h-drop{min-width:130px}

.tm-dl{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:8px 14px;margin:0;padding:14px}
.tm-dl dt{color:var(--muted);font-size:13px}
.tm-dl dd{margin:0;color:var(--ink);font-size:14px}
.tm-chat{min-height:320px}
.tm-private,.tm-join{align-items:center;text-align:center;padding:24px 0}
.tm-private__m{color:var(--ink);font-size:15px;margin:0}
.tm-join__n{margin:0;color:var(--ink)}
.tm-kid{padding:10px 12px;border-radius:11px;background:var(--panel2);color:var(--muted);width:100%}

/* 2A: duties (rows with their buttons beside, never a scroller), the duty setup, Fill the season */
.tm-list > .tm-prow:first-child{border-top:0}
.tm-drow{display:flex;align-items:center;gap:10px;padding:10px 12px;border-top:1px solid var(--line)}
.tm-drow:first-child{border-top:0}
.tm-drow__go{flex:1;min-width:0;display:flex;align-items:center;gap:12px;border:0;background:transparent;color:var(--ink);text-align:left;padding:0;font:inherit;cursor:pointer}
span.tm-drow__go{cursor:default}
.tm-drow__m{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.tm-drow__n{font-weight:700;font-size:15px}
.tm-drow__s{font-size:12px;color:var(--muted)}
.tm-drow__bs{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px;flex:0 1 auto}
.tm-drow__b{min-height:36px;padding-inline:12px;font-size:13px;white-space:nowrap}
.tm-ask{display:flex;flex-direction:column;gap:8px;padding:12px 14px;border-color:var(--warn)}
.tm-ask__t{font-size:14px;color:var(--ink)}
.tm-sugs{display:flex;flex-wrap:wrap;gap:8px}
.tm-sug{min-height:36px;padding:0 12px;border-radius:999px;border:1px dashed var(--line2);background:transparent;color:var(--ink);font-size:13px;font-weight:700;cursor:pointer}
.tm-fillc{display:flex;flex-direction:column;gap:10px;padding:14px}
.tm-cks{display:grid;grid-template-columns:repeat(auto-fit,minmax(92px,1fr));gap:8px}
.tm-ck{position:relative;display:flex;align-items:center;gap:6px;min-height:44px;padding:0 8px;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--ink);font-weight:700;font-size:13px;cursor:pointer}
.tm-ck.is-on{border:2px solid var(--green);background:var(--active-green-bg)}
.tm-ck input,.tm-ckrow input{position:absolute;opacity:0;width:1px;height:1px}
.tm-ck__b{width:16px;height:16px;border-radius:5px;border:2px solid var(--line2);flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center}
input:checked + .tm-ck__b{background:var(--green);border-color:var(--green)}
input:checked + .tm-ck__b::after{content:"";width:4px;height:8px;border:solid var(--on-green);border-width:0 2px 2px 0;transform:translateY(-1px) rotate(45deg)}
input:focus-visible + .tm-ck__b{outline:2px solid var(--green);outline-offset:2px}
.tm-modes{display:flex;flex-direction:column;gap:8px}
.tm-mode{min-height:64px;width:100%}
.tm-grp{display:flex;align-items:center;gap:12px;padding:12px 14px}
.tm-grp__m{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px;color:var(--ink);font-size:14px}
.tm-remove{color:var(--danger);border-color:var(--danger)}
.tm-ckrows{display:flex;flex-direction:column;max-height:55vh;overflow-y:auto}
.tm-ckrow{position:relative;display:flex;align-items:center;gap:12px;min-height:44px;padding:4px 2px;border-bottom:1px solid var(--line);color:var(--ink);cursor:pointer}
.tm-ckrow__n{font-size:14px;min-width:0}
.tm-flist{display:flex;flex-direction:column}
.tm-frow{display:flex;gap:10px;padding:9px 12px;border-top:1px solid var(--line);font-size:13px;color:var(--ink)}
.tm-frow:first-child{border-top:0}
.tm-frow__d{flex:0 0 50px;font-weight:700;color:var(--green);font-variant-numeric:tabular-nums}
.tm-frow__t{flex:1;min-width:0}

/* 2A: the calendar card on Info; a line or unit not used tonight */
.tm-cal{display:flex;flex-direction:column;gap:10px;padding:14px}
.tm-cal__h{display:flex;align-items:center;gap:8px;color:var(--green)}
.tm-cal__t{font-size:16px;color:var(--ink)}
.tm-off{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:10px 12px;border:1px dashed var(--line2);border-radius:10px;color:var(--ink);font-size:13px}
.tm-line__kb{min-height:32px;padding:0;border:1px solid var(--line2);border-radius:8px;background:transparent;cursor:pointer}

/* 2B: team goals (a card with its bar), the goal page, the add sheet, the game sheet, stats */
.tm-band--a{display:flex;align-items:flex-end;justify-content:space-between;gap:10px}
.tm-band--a .tm-link{font-size:13px;letter-spacing:0;text-transform:none;padding:0}
.tm-band__s{font-size:12px;letter-spacing:0;text-transform:none;color:var(--green)}
.tm-band__s.is-warn{color:var(--warn)}
.tm-goal{display:flex;flex-direction:column;gap:10px;padding:14px}
.tm-goal__open{display:flex;flex-direction:column;gap:8px;width:100%;padding:0;border:0;background:transparent;color:var(--ink);text-align:left;font:inherit;cursor:pointer}
.tm-goal__h{display:flex;justify-content:space-between;align-items:baseline;gap:8px;flex-wrap:wrap}
.tm-goal__t{font-weight:800;font-size:15px}
.tm-goal__n{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap}
.tm-goal__n b{font-family:var(--head-font, inherit);font-size:30px;line-height:1;font-weight:400;color:var(--ink)}
.tm-goal__n span{font-size:13px;color:var(--muted)}
.tm-goal__n--l b{font-size:44px}
.tm-bar{display:block;height:10px;border-radius:999px;background:var(--panel2);overflow:hidden}
.tm-bar > span{display:block;height:100%;border-radius:999px;background:var(--green)}
.tm-bar--l{height:12px}
.tm-bar--auto > span{background:var(--info)}
.tm-goal__f{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.tm-goal__p{flex:1;min-width:0;font-size:12px;font-weight:700;color:var(--green)}
.tm-goal__p.is-behind{color:var(--warn)}
.tm-goal__add{white-space:nowrap}
.tm-goalbig{display:flex;flex-direction:column;gap:10px;padding:16px}
.tm-fam{display:flex;flex-direction:column;gap:8px;padding:12px 14px;border-color:var(--green)}
.tm-fam__r{display:flex;justify-content:space-between;align-items:baseline;font-size:14px;font-weight:700;color:var(--ink)}
.tm-fam__r b{font-family:var(--head-font, inherit);font-size:20px;font-weight:400}
.tm-fam__l{font-size:14px;color:var(--ink);font-variant-numeric:tabular-nums}
.tm-lock{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;color:var(--muted)}
.tm-crow{display:flex;align-items:center;gap:10px;padding:10px 14px;border-top:1px solid var(--line);color:var(--ink)}
.tm-crow:first-child{border-top:0}
.tm-crow.is-me,.tm-st__r.is-me{background:var(--active-green-bg)}
.tm-crow__n{flex:1;min-width:0;font-size:14px;font-weight:700}
.tm-crow b{font-family:var(--head-font, inherit);font-size:18px;font-weight:400}
.tm-whos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.tm-who2{min-height:52px;align-items:center;justify-content:center;font-weight:800;font-size:15px}
.tm-amts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.tm-amt{min-height:48px;border-radius:11px;border:1px solid var(--line2);background:transparent;color:var(--ink);font-weight:800;font-size:15px;cursor:pointer}
.tm-amt.is-on{border:2px solid var(--green);background:var(--active-green-bg)}
.tm-ans__bs--2{grid-template-columns:repeat(2,minmax(0,1fr))}
.tm-gks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.tm-gk{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:84px;padding:10px 8px;border-radius:14px;border:1px solid var(--line);background:var(--panel);color:var(--ink);font:inherit;text-align:center;cursor:pointer}
.tm-gk .h-ic{width:28px;height:28px;color:var(--green)}
.tm-gk__t{font-weight:800;font-size:14px;line-height:1.2}
.tm-gk.is-on{border:2px solid var(--green);background:var(--active-green-bg)}
.tm-gk--wide{grid-column:1 / -1;flex-direction:row;min-height:56px}
.tm-kindfix{display:flex;align-items:center;gap:12px;padding:12px 14px;color:var(--ink)}
.tm-kindfix .h-ic{width:28px;height:28px;color:var(--green);flex:0 0 auto}
.tm-kindfix > span:last-child{display:flex;flex-direction:column;gap:2px}
.tm-pick .h-ixl{margin:0}
.tm-gg{display:flex;align-items:center;gap:10px;padding:10px 14px;border-top:1px solid var(--line)}
.tm-gg:first-child{border-top:0}
.tm-gg__p{flex:0 0 32px;font-size:11px;font-weight:700;color:var(--muted)}
.tm-gg__m{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.tm-gg__s{font-weight:800;font-size:14px;color:var(--ink)}
.tm-st{overflow:hidden}
.tm-st__r{display:grid;grid-template-columns:minmax(0,1fr) 34px 30px 30px 40px;gap:4px;align-items:center;padding:9px 12px;border-top:1px solid var(--line);font-size:14px;color:var(--ink);font-variant-numeric:tabular-nums}
.tm-st__r > span,.tm-st__r > b{text-align:right}
.tm-st__r > .tm-st__n,.tm-st__r--h > .tm-st__h:first-child{text-align:left}
.tm-st__r--h{border-top:0}
.tm-st__n{min-width:0;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tm-st__h{min-height:32px;padding:0;border:0;background:transparent;color:var(--muted);font-size:11px;font-weight:700;letter-spacing:.06em;text-align:right;cursor:pointer}
.tm-st__h.is-on{color:var(--ink)}

/* Fable 11-09: six tabs and Manage do not leave room for a label at a phone's narrowest; icons only there (each tab keeps its aria-label). */
@media (max-width:360px){.tm-tabs .h-room__tab-lb,.tm-tabs .h-room__tab.is-on .h-room__tab-lb{display:none}.tm-tabs .h-room__tab{padding-inline:10px}}

/* ---- Teams 2C ---- */
.tm-ltr{width:24px;height:24px;border-radius:6px;border:2px solid var(--gold);color:var(--gold);display:inline-flex;align-items:center;justify-content:center;font-weight:800;font-size:13px;flex:0 0 auto}
.tm-who--btn{width:100%;border:0;border-top:1px solid var(--line);background:transparent;text-align:left;cursor:pointer;font:inherit;color:inherit;min-height:48px}
.tm-who--btn:first-child{border-top:0}
.tm-who--btn:disabled{cursor:default;opacity:.7}
.tm-who__s{display:block;color:var(--muted);font-size:12px;margin-top:2px}
.tm-owe{font-size:13px;font-weight:700;color:var(--warn);white-space:nowrap;flex:0 0 auto}
.tm-owe--out{color:var(--ink)}
.tm-owe--in{color:var(--green)}
.tm-fee__h{display:flex;flex-direction:column;gap:2px;width:100%;padding:12px 14px;border:0;border-bottom:1px solid var(--line);background:transparent;text-align:left;cursor:pointer;font:inherit;color:inherit}
.tm-fee__t{font-weight:800;font-size:15px;color:var(--ink)}
.tm-cardh{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 14px 4px}
.tm-howto{display:flex;flex-direction:column;gap:6px;padding-bottom:12px}
.tm-howto .tm-note,.tm-howto .tm-hint{padding-inline:14px}
.tm-recruit,.tm-rem{display:flex;flex-direction:column;gap:8px;padding:12px 14px}
.tm-recruit b,.tm-rem b{color:var(--ink);font-size:15px}
