/* v0.9 Team rework — styles added piece by piece (skeleton ESQUELETO_REWORK_TEAM rev 31; decisions in
   13_…/DECISIONES_BUILD_TEAM_2026-10-08.md). Loaded after work-v09.css; scoped to Team (.tp …).
   Piece 1 — People (C0 · C · C1 · C2). Tests: test/team-people-v09.test.mjs, test/team-people-v09-browser.spec.mjs. */

.tp{--tp-ink:#171a1f;--tp-muted:#48505a;--tp-muted-soft:#6c7682;--tp-line:#e3e7ec;--tp-line-soft:#eef1f4;--tp-steel:#191d23;--tp-grey:#b4b2a9;
  --tp-amber:#f0a500;--tp-amber-deep:#c98600;--tp-amber-ink:#8a5c00;--tp-amber-edge:#edc46e;--tp-amber-bg:#fffaf0;
  --tp-green:#2f7d51;--tp-green-bg:#e4f0e7;--tp-red:#c0453a;--tp-red-bg:#f6e2df;--tp-red-edge:#e6b3ac;
  --tp-shadow:0 1px 2px rgba(25,29,35,.06),0 6px 20px -12px rgba(25,29,35,.28);color:var(--tp-ink);font:14px/1.45 Inter,system-ui,sans-serif}

/* bar: search (from 7 people) · actions at the right end */
.tp-bar{display:flex;gap:8px;align-items:center;margin-bottom:12px}
.tp-sp{flex:1}
.tp-search{display:flex;align-items:center;gap:8px;flex:1;max-width:420px;background:#fff;border:1px solid var(--tp-line);border-radius:10px;padding:0 12px;min-height:40px}
.tp-search input{border:0;outline:0;flex:1;font:inherit;background:transparent;min-width:0}
.tp-search:focus-within{border-color:var(--tp-steel);box-shadow:0 0 0 3px rgba(25,29,35,.12)}
.tp-ico{color:var(--tp-muted-soft);font-size:16px}
.tp-add{font:700 13px Inter,sans-serif;padding:10px 16px;min-height:40px;border-radius:10px;border:1px solid var(--tp-amber-deep);background:var(--tp-amber);color:#3a2c05;cursor:pointer}
.tp-add:focus-visible,.tp-lk:focus-visible{outline:2px solid var(--tp-steel);outline-offset:2px}

/* groups */
.tp-grp{background:#fff;border:1px solid var(--tp-line);border-radius:14px;box-shadow:var(--tp-shadow);padding:12px 14px 14px;margin-bottom:12px;min-width:0}
.tp-grp>header{display:flex;align-items:center;gap:8px;margin-bottom:10px;min-height:22px}
.tp-grp>header b{font:600 16px Oswald,sans-serif}.tp-grp>header small{color:var(--tp-muted);font-size:11.5px}
.tp-n{margin-left:auto;font:700 11px/20px Inter,system-ui,sans-serif;min-width:22px;text-align:center;border-radius:999px;background:var(--tp-line-soft);color:var(--tp-muted)}
.tp-lk{border:0;background:none;padding:2px 4px;font:700 12px Inter,sans-serif;color:var(--tp-amber-ink);cursor:pointer}
.tp-g3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
/* On break (1 column) and Off today (2 columns) share a row, lined up with the three columns of Working now */
.tp-row2{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:12px;align-items:start}
.tp-row2 .tp-grp:first-child .tp-g3{grid-template-columns:1fr}
.tp-row2 .tp-grp:last-child .tp-g3{grid-template-columns:repeat(2,minmax(0,1fr))}
.tp-arc{display:flex;justify-content:space-between;gap:10px;margin-top:12px;padding-top:10px;border-top:1px solid var(--tp-line-soft);font-size:12px;color:var(--tp-muted)}
.tp-empty{background:#fff;border:1px solid var(--tp-line);border-radius:14px;padding:16px;color:var(--tp-muted)}

/* the card (C0): 184 px, same in every row */
.tp-card{position:relative;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto 1fr auto;gap:10px 14px;height:184px;box-sizing:border-box;
  background:#fff;border:1px solid var(--tp-line);border-left:4px solid var(--tp-green);border-radius:14px;padding:12px 14px;cursor:pointer;
  transition:transform 180ms cubic-bezier(.23,1,.32,1),box-shadow 180ms ease}
.tp-card:focus-visible{outline:2px solid var(--tp-steel);outline-offset:2px}
.tp-card.tp-break{border-left-color:var(--tp-amber)}
.tp-card.tp-off,.tp-card.tp-invited{border-left:1px solid var(--tp-line)}.tp-card.tp-invited{border-style:dashed}
.tp-who{display:flex;align-items:center;gap:10px;min-width:0;align-self:start}
.tp-av{flex:none;width:40px;height:40px;border-radius:50%;background:#3a414b;color:#fff;font:700 13px/40px Inter,system-ui,sans-serif;text-align:center;font-style:normal}
.tp-off .tp-av{background:#8a929c}.tp-invited .tp-av{background:#c3cbd4}
.tp-who b{display:block;font-size:15px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tp-who small{display:block;font-size:12px;color:var(--tp-muted)}
.tp-st{justify-self:end;align-self:start;font-size:10.5px;font-weight:700;border-radius:999px;padding:2px 9px;white-space:nowrap}
.tp-sw{background:var(--tp-green-bg);color:var(--tp-green)}.tp-sb{background:var(--tp-amber-bg);color:var(--tp-amber-ink);border:1px solid var(--tp-amber-edge)}
.tp-so{background:var(--tp-line-soft);color:var(--tp-muted)}.tp-si{background:#fff;border:1px dashed #b9c0c8;color:var(--tp-muted)}
.tp-doing{grid-column:1;grid-row:2;align-self:center;font-size:13px;line-height:1.35;min-width:0}
.tp-doing b{display:block;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tp-trd{font-weight:700}.tp-trd.tp-wa{color:var(--tp-red)}.tp-mu{display:block;color:var(--tp-muted)}
.tp-off .tp-doing,.tp-invited .tp-doing{grid-column:1/-1}
.tp-tm{grid-column:2;grid-row:2;align-self:center;display:flex;align-items:baseline;justify-content:flex-end;gap:8px;font:600 28px/1 Oswald,sans-serif;font-variant-numeric:tabular-nums;white-space:nowrap}
.tp-tm small{order:-2;font:700 9.5px Inter,system-ui,sans-serif;letter-spacing:.06em;text-transform:uppercase;color:var(--tp-muted-soft)}
.tp-tm .tp-dot{order:-1}
.tp-break .tp-tm{color:#b07400}.tp-al .tp-tm{color:var(--tp-red)}
.tp-dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:var(--tp-green);align-self:center;flex:none;animation:tpPg 1.6s ease-out infinite}
.tp-break .tp-dot,.tp-live.tp-br .tp-dot{background:var(--tp-amber);animation-name:tpPa}.tp-al .tp-dot{background:var(--tp-red);animation-name:tpPr}
@keyframes tpPg{0%{box-shadow:0 0 0 0 rgba(47,125,81,.45)}70%,100%{box-shadow:0 0 0 7px rgba(47,125,81,0)}}
@keyframes tpPa{0%{box-shadow:0 0 0 0 rgba(240,165,0,.5)}70%,100%{box-shadow:0 0 0 7px rgba(240,165,0,0)}}
@keyframes tpPr{0%{box-shadow:0 0 0 0 rgba(192,69,58,.45)}70%,100%{box-shadow:0 0 0 7px rgba(192,69,58,0)}}

/* actions: the bottom of the card, edge to edge, split in two like a touchpad; the half under the mouse fills (160 ms) */
.tp-acts{grid-column:1/-1;grid-row:3;align-self:end;display:grid;grid-template-columns:1fr 1fr;margin:4px -14px -12px;border-top:1px solid var(--tp-line)}
.tp-acts.tp-one{grid-template-columns:1fr}
.tp-acts.tp-none{height:44px;border-top-color:transparent}   /* no action for this person: the row keeps its place so every card lines up */
.tp-btn{position:relative;overflow:hidden;isolation:isolate;display:grid;place-items:center;height:44px;border:0;background:transparent;font:600 13px Inter,sans-serif;color:var(--tp-ink);text-decoration:none;cursor:pointer}
.tp-btn+.tp-btn{border-left:1px solid var(--tp-line)}
.tp-btn:before{content:"";position:absolute;inset:0;z-index:-1;background:var(--tp-line-soft);transform:scaleY(0);transform-origin:bottom;transition:transform 160ms cubic-bezier(.23,1,.32,1)}
@media (hover:hover) and (pointer:fine){.tp-btn:hover:before{transform:scaleY(1)}}
.tp-btn:active:before{transform:scaleY(1);background:#e6eaee}
.tp-btn:focus-visible{outline:2px solid var(--tp-steel);outline-offset:-3px}

/* alert cover (C1): below the name, always visible; worse alert first; Fix now is the full-width strip */
.tp-rv{border-left:4px solid var(--tp-amber);border-color:var(--tp-amber-edge);border-left-color:var(--tp-amber);animation:tpDn 2.4s ease-in-out infinite}
.tp-al{border-color:var(--tp-red-edge);border-left:4px solid var(--tp-red);animation:tpAl 2.4s ease-in-out infinite}
@keyframes tpDn{0%,100%{box-shadow:var(--tp-shadow)}50%{box-shadow:0 0 0 4px rgba(240,165,0,.45),var(--tp-shadow)}}
@keyframes tpAl{0%,100%{box-shadow:var(--tp-shadow)}50%{box-shadow:0 0 0 4px rgba(192,69,58,.28),var(--tp-shadow)}}
.tp-card:has(.tp-cover) .tp-doing,.tp-card:has(.tp-cover) .tp-tm,.tp-card:has(.tp-cover) .tp-acts{display:none}
.tp-cover{position:absolute;left:0;right:0;top:62px;bottom:0;display:flex;flex-direction:column;gap:10px;padding:10px 14px 0;background:linear-gradient(180deg,#fff7e6,#fffaf0);border-top:1px solid var(--tp-amber-edge)}
.tp-al .tp-cover{background:linear-gradient(180deg,#fbeceb,#fff6f5);border-top-color:var(--tp-red-edge)}
.tp-top{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.tp-k{font:700 10px Inter,system-ui,sans-serif;letter-spacing:.06em;text-transform:uppercase;color:var(--tp-amber-ink)}.tp-al .tp-k{color:var(--tp-red)}
.tp-more{color:var(--tp-amber-ink)}
.tp-live{display:flex;align-items:baseline;gap:6px;font:600 24px/1 Oswald,sans-serif;font-variant-numeric:tabular-nums;white-space:nowrap}.tp-al .tp-live{color:var(--tp-red)}
.tp-cover p{margin:0;font-size:13.5px;line-height:1.35;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.tp-fix{margin:auto -14px 0;height:44px;border:0;border-top:1px solid var(--tp-amber-deep);background:var(--tp-amber);font:700 13px Inter,sans-serif;color:#171a1f;cursor:pointer;position:relative;overflow:hidden;isolation:isolate}
.tp-al .tp-fix{background:var(--tp-red);border-top-color:#9c342b;color:#fff}
.tp-fix:before{content:"";position:absolute;inset:0;z-index:-1;background:rgba(0,0,0,.08);transform:scaleY(0);transform-origin:bottom;transition:transform 160ms cubic-bezier(.23,1,.32,1)}
@media (hover:hover) and (pointer:fine){.tp-card:hover .tp-fix:before{transform:scaleY(1)}}
.tp-fix:focus-visible{outline:2px solid var(--tp-steel);outline-offset:-3px}

@media (prefers-reduced-motion:reduce){.tp-dot,.tp-rv,.tp-al{animation:none}.tp-card,.tp-btn:before,.tp-fix:before{transition:none}}
@media (max-width:1023px){.tp-g3,.tp-row2 .tp-grp:last-child .tp-g3{grid-template-columns:repeat(2,minmax(0,1fr))}.tp-row2{grid-template-columns:1fr}}
@media (max-width:640px){.tp-g3,.tp-row2 .tp-grp:last-child .tp-g3{grid-template-columns:1fr}.tp-search{max-width:none}}

/* Piece 2 — Time (D). Tests: test/team-time-v09.test.mjs, test/team-people-v09-browser.spec.mjs (Time block). */
.tt-bar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:12px}
.tt-sp{flex:1}
.tt-chip{background:#fff;border:1px solid var(--tp-line);border-radius:10px;padding:0 11px;min-height:38px;font:600 12.5px Inter,sans-serif;color:var(--tp-ink)}
.tt-date{display:inline-flex;align-items:center;gap:6px}.tt-date input{border:0;font:inherit;background:transparent}
.tt-seg{display:flex;background:#fff;border:1px solid var(--tp-line);border-radius:10px;padding:3px}
.tt-sg{border:0;background:transparent;padding:6px 12px;border-radius:8px;font:700 12px Inter,sans-serif;color:var(--tp-ink);cursor:pointer;white-space:nowrap}
.tt-sg.tt-on{background:var(--osz-sel-bg);color:var(--osz-sel-ink);box-shadow:inset 0 0 0 1px var(--osz-sel-edge);cursor:default}.tt-sg:disabled{opacity:.3;cursor:default}
.tt-nav .tt-sg.tt-on{min-width:150px;text-align:center}
.tt-btn{font:700 12.5px Inter,sans-serif;padding:0 14px;min-height:38px;border-radius:10px;border:1px solid var(--tp-line);background:#fff;color:var(--tp-ink);cursor:pointer}
.tt-btn.tt-p{background:var(--tp-amber);border-color:var(--tp-amber-deep);color:#3a2c05}.tt-btn.tt-d{background:var(--tp-steel);border-color:var(--tp-steel);color:#fff;min-height:34px}
.tt-sg:focus-visible,.tt-btn:focus-visible,.tt-lk:focus-visible,.tt-row:focus-visible,.tt-wk:focus-visible{outline:2px solid var(--tp-steel);outline-offset:2px}
.tt-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:12px}
.tt-k{background:#fff;border:1px solid var(--tp-line);border-radius:12px;padding:9px 12px;box-shadow:var(--tp-shadow);font-size:11px;color:var(--tp-muted);min-width:0}
.tt-k span{display:block;font-weight:700;color:var(--tp-ink);font-size:11.5px}.tt-k b{display:block;font:600 22px/1.1 Oswald,sans-serif;color:var(--tp-ink);margin:3px 0 1px}
.tt-k.tt-am{border-color:var(--tp-amber-edge);background:var(--tp-amber-bg)}
.tt-card{background:#fff;border:1px solid var(--tp-line);border-radius:14px;box-shadow:var(--tp-shadow);padding:12px 14px;margin-bottom:12px}
.tt-card>header{display:flex;align-items:center;gap:10px;margin-bottom:6px;flex-wrap:wrap}.tt-card>header b{font:600 16px Oswald,sans-serif}
.tt-hint{margin-left:auto;font-size:11.5px;color:var(--tp-muted)}
.tt-lg{margin-left:auto;display:flex;gap:14px;font-size:11.5px;color:var(--tp-muted);flex-wrap:wrap;align-items:center}
.tt-lg span{display:inline-flex;align-items:center;gap:5px}.tt-lg i{display:inline-block;width:14px;height:8px;border-radius:3px}
.tt-lg .tt-m,.tt-trk .tt-m{background:var(--tp-green)}.tt-lg .tt-wa,.tt-trk .tt-wa{background:var(--tp-red)}.tt-lg .tt-s,.tt-trk .tt-s{background:#9aa3ad}.tt-lg .tt-br,.tt-trk .tt-br{background:#f3d38a}
.tt-lg .tt-nc{background:#fff;border:1px solid var(--tp-line)}
.tt-lvd{width:9px;height:9px;border-radius:50%;background:var(--tp-green);box-shadow:0 0 0 3px rgba(47,125,81,.18);display:inline-block}
.tt-axis,.tt-row{display:grid;grid-template-columns:170px minmax(0,1fr) 120px;gap:12px;align-items:center}
.tt-axis{font-size:10.5px;color:var(--tp-muted-soft);font-weight:700;padding:2px 6px 6px;border-bottom:1px solid var(--tp-line-soft)}.tt-h{display:flex;justify-content:space-between}
.tt-r{text-align:right}
.tt-row{padding:10px 6px;border-bottom:1px solid var(--tp-line-soft);font-size:12px;cursor:pointer}
.tt-row.tt-open{background:#f7f8fa;border-radius:10px 10px 0 0;border-bottom:0}
.tt-who{min-width:0}.tt-who b{display:block;font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tt-who small{color:var(--tp-muted);font-size:11px}
.tt-tot{text-align:right}.tt-tot b{font:600 16px Oswald,sans-serif}.tt-tot small{display:block;color:var(--tp-muted);font-size:10.5px}
.tt-trk{position:relative;height:20px;background:#fff;border:1px solid var(--tp-line-soft);border-radius:6px}
.tt-trk i{position:absolute;top:3px;bottom:3px;border-radius:4px}
.tt-trk i.tt-fg{background:repeating-linear-gradient(135deg,#f6e2df 0 6px,#fbeceb 6px 12px);border:1px solid var(--tp-red-edge)}
.tt-trk .tt-tick{position:absolute;top:-2px;bottom:-2px;width:1px;background:#dfe3e8;border-radius:0}
.tt-run{position:absolute;top:50%;width:10px;height:10px;margin:-5px 0 0 -5px;border-radius:50%;background:var(--tp-green);border:2px solid #fff;box-sizing:content-box;animation:tpPg 1.6s ease-out infinite}
.tt-run.tt-rb{background:var(--tp-amber);animation-name:tpPa}.tt-run.tt-rr{background:var(--tp-red);animation-name:tpPr}
.tt-pex{background:#f7f8fa;border-radius:0 0 10px 10px;padding:4px 10px 10px;margin-bottom:6px}
.tt-tl{width:100%;border-collapse:collapse;table-layout:fixed;font-size:12px}
.tt-tl th{font:700 10px Inter,system-ui,sans-serif;background:transparent;border:0;letter-spacing:.05em;text-transform:uppercase;color:var(--tp-muted-soft);text-align:left;padding:7px 6px}
.tt-tl td{font:400 12px/1.4 Inter,system-ui,sans-serif;color:var(--tp-ink);padding:7px 6px;border-top:1px solid var(--tp-line);vertical-align:top;overflow-wrap:anywhere}
.tt-tl td:first-child{position:relative;padding-left:24px}
.tt-tl td:first-child:before{content:"";position:absolute;left:8px;top:0;bottom:0;border-left:2px dotted #b9c0c8}
.tt-tl td:first-child:after{content:"";position:absolute;left:4px;top:12px;width:8px;height:8px;border-radius:50%;background:#fff;border:2px solid #b9c0c8}
.tt-tl tr:nth-child(2) td:first-child:before{top:12px}.tt-tl tr:last-child td:first-child:before{bottom:calc(100% - 18px)}
.tt-tl tr.tt-runrow td:first-child:after{background:var(--tp-green);border-color:var(--tp-green);animation:tpPg 1.6s ease-out infinite}
.tt-n{text-align:right;font-variant-numeric:tabular-nums}
.tt-note{color:var(--tp-muted)}
.tt-tg{font:700 10px Inter,system-ui,sans-serif;border-radius:6px;padding:2px 6px;background:var(--tp-green-bg);color:var(--tp-green);white-space:nowrap}
.tt-tg.tt-ts{background:#e7eaee;color:var(--tp-muted)}.tt-tg.tt-tb{background:var(--tp-amber-bg);color:var(--tp-amber-ink)}.tt-tg.tt-tw{background:var(--tp-red-bg);color:var(--tp-red)}
.tt-ft{display:flex;justify-content:space-between;align-items:center;margin-top:8px}
.tt-lk{border:0;background:none;padding:2px 0;font:700 12.5px Inter,sans-serif;color:var(--tp-amber-ink);cursor:pointer}
.tt-mu{color:var(--tp-muted);margin:6px 0}.tt-red{color:var(--tp-red)}.tt-am2{color:var(--tp-amber-ink);font-weight:700}
.tt-wk{display:grid;grid-template-columns:170px repeat(7,minmax(0,1fr)) 120px;gap:6px;align-items:center;padding:9px 6px;border-bottom:1px solid var(--tp-line-soft);font-size:12px;cursor:pointer}
.tt-wk.tt-wt{grid-template-columns:170px repeat(4,minmax(0,1fr)) 120px}
.tt-wk.tt-wh{font:700 10px Inter,system-ui,sans-serif;letter-spacing:.05em;text-transform:uppercase;color:var(--tp-muted-soft);cursor:default}
.tt-wk.tt-open{background:#f7f8fa;border-radius:10px 10px 0 0;border-bottom:0}
.tt-d{text-align:center;font-variant-numeric:tabular-nums}.tt-d.tt-off{color:#c3cbd4}.tt-d.tt-fl{background:var(--tp-amber-bg);border-radius:6px;color:var(--tp-amber-ink);font-weight:700}
.tt-days{background:#f7f8fa;border-radius:0 0 10px 10px;padding:0 6px 6px;margin-bottom:6px}
@media (prefers-reduced-motion:reduce){.tt-run,.tt-tl tr.tt-runrow td:first-child:after{animation:none}}
@media (max-width:1023px){.tt-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.tt-lg{margin-left:0}}
@media (max-width:640px){.tt-axis,.tt-row{grid-template-columns:96px minmax(0,1fr) 70px;gap:8px}.tt-wk{grid-template-columns:90px repeat(7,minmax(0,1fr)) 56px;gap:3px;font-size:11px}.tt-wk.tt-wt{grid-template-columns:90px repeat(4,minmax(0,1fr)) 56px}}
/* phone: the hour axis keeps only its two ends; a punch is a small block (when · what · type · hours) instead of four columns */
@media (max-width:640px){
  .tt-h span:not(:first-child):not(:last-child){visibility:hidden}
  .tt-tl colgroup,.tt-tl tr:first-child{display:none}
  .tt-tl,.tt-tl tbody{display:block;width:100%}
  .tt-tl tr{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:2px 8px;border-top:1px solid var(--tp-line);padding:8px 0 8px 24px;position:relative}
  .tt-tl td{border:0;padding:0}
  .tt-tl td:first-child{grid-column:1/-1;padding-left:0;font-weight:700;position:static}
  .tt-tl td:first-child:before{left:8px}.tt-tl td:first-child:after{left:4px;top:12px}
  .tt-tl td:nth-child(2){grid-column:1}
}

/* Piece 3 — Fix this day (C3 · E2): the one time editor, in the right-hand drawer. Tests: test/team-fix-v09.test.mjs. */
.tf{display:flex;flex-direction:column;gap:10px;font-size:12.5px}
.tf-mu{color:var(--tp-muted);margin:0;font-size:12px}
.tf-al{border-radius:10px;padding:9px 11px;font-size:12.5px}.tf-al b{display:block;color:var(--tp-ink);font-size:13px;margin-top:2px}
.tf-al.tf-r{background:var(--tp-red-bg);border:1px solid var(--tp-red-edge);color:var(--tp-red)}.tf-al.tf-a{background:var(--tp-amber-bg);border:1px solid var(--tp-amber-edge);color:var(--tp-amber-ink)}
.tf-live{font:600 15px Oswald,sans-serif;font-variant-numeric:tabular-nums}
.tf-q{font:600 15px Oswald,sans-serif;margin:4px 0 -2px}
.tf-steps{display:flex;gap:6px;flex-wrap:wrap;font:700 10.5px Inter,system-ui,sans-serif;letter-spacing:.05em;text-transform:uppercase;color:var(--tp-muted-soft)}.tf-steps .tf-on{color:var(--tp-amber-ink)}
.tf-ptl{position:relative;padding-left:20px;display:grid;gap:6px}
.tf-ptl:before{content:"";position:absolute;left:6px;top:6px;bottom:6px;border-left:2px dotted #b9c0c8}
.tf-prw{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 112px 12px 112px;gap:6px;align-items:center;border:1px solid var(--tp-line);border-radius:10px;padding:7px 9px;font-size:12px;background:#fff}
.tf-prw:has(.tf-x){grid-template-columns:minmax(0,1fr) 112px 12px 112px 22px}
.tf-prw:before{content:"";position:absolute;left:-19px;top:50%;width:8px;height:8px;margin-top:-4px;border-radius:50%;background:#fff;border:2px solid #b9c0c8}
.tf-prw b{display:block;font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tf-prw small{color:var(--tp-muted)}
.tf-prw.tf-brk b{color:var(--tp-amber-ink)}
.tf-prw.tf-new{border-style:dashed;background:#fafbfc}
.tf-prw.tf-ed:before,.tf-prw.tf-new:before{border-color:var(--tp-amber);background:var(--tp-amber)}
.tf-prw.tf-run:before{border-color:var(--tp-green);background:var(--tp-green);animation:tpPg 1.6s ease-out infinite}
.tf-prw.tf-bad{border-color:var(--tp-red-edge);background:var(--tp-red-bg)}
.tf-prw.tf-gap{display:flex;justify-content:space-between;background:repeating-linear-gradient(135deg,#f7f8fa 0 6px,#eef1f4 6px 12px);border-style:dashed;color:var(--tp-muted)}
.tf-fill{border:0;background:none;font:700 12px Inter,system-ui,sans-serif;color:var(--tp-amber-ink);cursor:pointer;white-space:nowrap}
.tf-t{border:1px solid var(--tp-line);border-radius:8px;padding:6px 4px;font:500 13px Inter,system-ui,sans-serif;text-align:center;background:#fff;width:100%;box-sizing:border-box;min-width:0}
.tf-t.tf-ro{border-color:transparent;background:transparent}.tf-t.tf-now{color:var(--tp-green);font-weight:700}
.tf-ed .tf-t:not(.tf-ro),.tf-new .tf-t:not(.tf-ro){border:2px solid var(--tp-amber);padding:5px 3px}
.tf-bad .tf-t:not(.tf-ro){border-color:var(--tp-red)}
.tf-dash{text-align:center;color:var(--tp-muted)}
.tf-x{border:0;background:none;font-size:16px;color:var(--tp-muted);cursor:pointer}
.tf-pick{display:grid;gap:4px;min-width:0}.tf-pick select{min-width:0;border:1px solid var(--tp-line);border-radius:8px;padding:5px 6px;font:500 12px Inter,system-ui,sans-serif;background:#fff}
.tf-pick2{grid-template-columns:1fr 1fr}
.tf-nowl{position:relative;font:700 10px Inter,system-ui,sans-serif;letter-spacing:.06em;text-transform:uppercase;color:var(--tp-green);padding:2px 0}
.tf-nowl:before{content:"";position:absolute;left:-20px;top:50%;width:10px;height:10px;margin-top:-5px;border-radius:50%;background:var(--tp-green);animation:tpPg 1.6s ease-out infinite}
.tf-add{display:flex;gap:6px}
.tf-err{background:var(--tp-red-bg);border:1px solid var(--tp-red-edge);color:var(--tp-red);border-radius:9px;padding:7px 10px;font-size:12px}
.tf-f{display:grid;gap:4px}.tf-f span{font:700 10px Inter,system-ui,sans-serif;letter-spacing:.05em;text-transform:uppercase;color:var(--tp-muted-soft)}
.tf-f textarea{border:1px solid var(--tp-line);border-radius:10px;padding:9px 11px;font:400 15px Inter,system-ui,sans-serif;resize:vertical;min-height:70px}
.tf-f textarea:focus,.tf-t:focus,.tf-pick select:focus,.tf-tin select:focus{outline:2px solid var(--tp-steel);outline-offset:1px}
.tf-yn{display:grid;gap:6px}
.tf-opt{display:flex;gap:9px;align-items:center;border:1px solid var(--tp-line);border-radius:10px;padding:10px 11px;font:600 13px Inter,system-ui,sans-serif;background:#fff;text-align:left;cursor:pointer;color:var(--tp-ink)}
.tf-opt i{flex:none;width:14px;height:14px;border-radius:50%;border:2px solid #9aa3ad}
.tf-opt.tf-on{border:2px solid var(--tp-amber);background:var(--tp-amber-bg);padding:9px 10px}.tf-opt.tf-on i{border-color:var(--tp-amber);box-shadow:inset 0 0 0 3px #fff;background:var(--tp-amber)}
.tf-tin{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.tf-tin label{display:grid;gap:3px;border:1px solid var(--tp-line);border-radius:9px;padding:8px 10px}
.tf-tin span{font:700 10px Inter,system-ui,sans-serif;letter-spacing:.05em;text-transform:uppercase;color:var(--tp-muted-soft)}
.tf-tin select{border:0;font:500 14px Inter,system-ui,sans-serif;background:transparent;padding:0}
.tf-ft{display:flex;justify-content:space-between;align-items:center;gap:8px;border-top:1px solid var(--tp-line);padding-top:10px;margin-top:2px}
.tf-r2{display:flex;gap:6px}
.tf-btn{font:700 12.5px Inter,system-ui,sans-serif;padding:0 14px;min-height:38px;border-radius:10px;border:1px solid var(--tp-line);background:#fff;color:var(--tp-ink);cursor:pointer}
.tf-btn.tf-p{background:var(--tp-amber);border-color:var(--tp-amber-deep);color:#3a2c05}
.tf-btn:disabled{opacity:.45;cursor:default}
.tf-btn:focus-visible,.tf-opt:focus-visible,.tf-fill:focus-visible,.tf-x:focus-visible{outline:2px solid var(--tp-steel);outline-offset:2px}
.tf-reveal{display:grid;gap:10px;animation:tfIn 260ms cubic-bezier(.23,1,.32,1) both}
@keyframes tfIn{from{opacity:0;transform:translateY(-6px)}}
@media (prefers-reduced-motion:reduce){.tf-reveal,.tf-nowl:before,.tf-prw.tf-run:before{animation:none}}

/* Piece 4 — the person page (E · E1 · E3). Tests: test/team-person-v09.test.mjs + browser spec. */
.pp{display:flex;flex-direction:column;gap:12px}
.pp-top{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.pp-av{flex:none;width:56px;height:56px;border-radius:50%;background:#3a414b;color:#fff;font:600 20px/56px Oswald,sans-serif;text-align:center;font-style:normal}
.pp-who{min-width:0;flex:1}.pp-who h2{font:600 26px/1.1 Oswald,sans-serif;margin:0}
.pp-st{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:var(--tp-muted);font-size:12.5px;margin-top:4px}
.pp-acts{display:flex;gap:8px;align-items:center}
.pp-btn{font:700 12.5px Inter,system-ui,sans-serif;padding:0 14px;min-height:38px;border-radius:10px;border:1px solid var(--tp-line);background:#fff;color:var(--tp-ink);cursor:pointer;display:inline-flex;align-items:center;text-decoration:none;white-space:nowrap}
.pp-btn.pp-d{background:var(--tp-steel);border-color:var(--tp-steel);color:#fff;min-height:34px;align-self:end}
.pp-btn.pp-sm{min-height:32px;padding:0 12px;font-size:12px}
.pp-btn.pp-danger{border-color:var(--tp-red-edge);color:var(--tp-red)}
.pp-btn:focus-visible,.pp-lk:focus-visible,.pp-tab:focus-visible,.pp-chip:focus-visible,.pp-wh:focus-visible,.pp-qm:focus-visible{outline:2px solid var(--tp-steel);outline-offset:2px}
.pp-mw{position:relative}
.pp-menu{position:absolute;right:0;top:calc(100% + 6px);z-index:20;background:#fff;border:1px solid var(--tp-line);border-radius:12px;box-shadow:0 18px 40px -12px rgba(23,26,31,.35);padding:6px;display:grid;min-width:190px}
.pp-menu button{border:0;background:none;text-align:left;padding:9px 10px;border-radius:8px;font:600 13px Inter,system-ui,sans-serif;cursor:pointer;color:var(--tp-ink)}.pp-menu button:hover{background:var(--tp-line-soft)}.pp-menu .pp-red{color:var(--tp-red)}
.pp-red{color:var(--tp-red)}
.pp-alert{display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:linear-gradient(180deg,#fff7e6,#fffaf0);border:1px solid var(--tp-amber-edge);border-left:4px solid var(--tp-amber);border-radius:12px;padding:10px 14px}
.pp-alert.pp-ar{background:linear-gradient(180deg,#fbeceb,#fff6f5);border-color:var(--tp-red-edge);border-left-color:var(--tp-red)}
.pp-k{font:700 10px Inter,system-ui,sans-serif;letter-spacing:.06em;text-transform:uppercase;color:var(--tp-amber-ink)}.pp-ar .pp-k{color:var(--tp-red)}
.pp-am{flex:1;min-width:200px;font-size:13.5px}
.pp-live{display:flex;align-items:center;gap:6px;font:600 20px Oswald,sans-serif;font-variant-numeric:tabular-nums}.pp-ar .pp-live{color:var(--tp-red)}.pp-ar .tp-dot{background:var(--tp-red);animation-name:tpPr}
.pp-btn.pp-fix{background:var(--tp-amber);border-color:var(--tp-amber-deep)}.pp-ar .pp-btn.pp-fix{background:var(--tp-red);border-color:#9c342b;color:#fff}
.pp-strip{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:12px}.pp-strip.pp-one{grid-template-columns:1fr}
.pp-sc{background:#fff;border:1px solid var(--tp-line);border-radius:14px;box-shadow:var(--tp-shadow);padding:12px 14px;display:flex;flex-direction:column;gap:4px;min-width:0}
.pp-sl{font:700 10.5px Inter,system-ui,sans-serif;letter-spacing:.05em;text-transform:uppercase;color:var(--tp-muted-soft)}
.pp-tri{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.pp-tri b{display:block;font:600 22px/1.1 Oswald,sans-serif}.pp-tri small{color:var(--tp-muted);font-size:11.5px}
.pp-wa{color:var(--tp-red);font-size:11.5px}
.pp-big{font:600 26px/1.1 Oswald,sans-serif}.pp-sc small{color:var(--tp-muted);font-size:11.5px}
.pp-lk{border:0;background:none;padding:2px 0;font:700 12.5px Inter,system-ui,sans-serif;color:var(--tp-amber-ink);cursor:pointer;text-align:left;justify-self:end;white-space:nowrap}
.pp-tabs{display:flex;gap:6px;border-bottom:1px solid var(--tp-line)}
.pp-tab{border:0;background:none;padding:10px 14px;font:700 13.5px Inter,system-ui,sans-serif;color:var(--tp-muted);border-bottom:3px solid transparent;margin-bottom:-1px;cursor:pointer}
.pp-tab.pp-on{color:var(--tp-ink);border-bottom-color:var(--tp-amber)}
.pp-card{background:#fff;border:1px solid var(--tp-line);border-radius:14px;box-shadow:var(--tp-shadow);padding:12px 16px;min-width:0}
.pp-card>header{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin-bottom:6px}.pp-card>header>b:first-child{font:600 16px Oswald,sans-serif}.pp-hr{margin-left:auto;font:600 18px Oswald,sans-serif}
.pp-ln{display:grid;grid-template-columns:150px minmax(0,1fr) auto;gap:12px;align-items:center;padding:11px 0;border-top:1px solid var(--tp-line-soft);font-size:13px}
.pp-ln.pp-col{align-items:start}
.pp-lk2{font:700 10.5px Inter,system-ui,sans-serif;letter-spacing:.05em;text-transform:uppercase;color:var(--tp-muted-soft);padding-top:2px}
.pp-live2{font:700 10px Inter,system-ui,sans-serif;text-transform:uppercase;letter-spacing:.05em;color:var(--tp-green)}
.pp-tot{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:10px}.pp-tot b{display:block;font:600 20px/1.1 Oswald,sans-serif}.pp-tot small{color:var(--tp-muted);font-size:11.5px}
.pp-chips{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:10px}
.pp-chip{border:1px solid var(--tp-line);background:#fff;border-radius:999px;padding:6px 12px;font:600 12px Inter,system-ui,sans-serif;cursor:pointer;color:var(--tp-ink)}.pp-chip b{color:var(--tp-muted);font-weight:700}
.pp-chip.pp-on{background:var(--tp-steel);border-color:var(--tp-steel);color:#fff}.pp-chip.pp-on b{color:#cfd5dc}
.pp-wk{border:1px solid var(--tp-line);border-radius:12px;margin-bottom:8px;overflow:hidden}
.pp-wh{width:100%;display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;gap:12px;align-items:baseline;border:0;background:#f7f8fa;padding:10px 12px;cursor:pointer;text-align:left;font:13px Inter,system-ui,sans-serif;color:var(--tp-ink)}
.pp-wh b{font:600 15px Oswald,sans-serif}.pp-wh small{color:var(--tp-muted);font-size:11.5px}.pp-wt b{font:600 15px Oswald,sans-serif}.pp-chev{font:700 12px Inter,system-ui,sans-serif;color:var(--tp-amber-ink)}
.pp-days{padding:4px 12px 10px}
.pp-day{border-top:1px solid var(--tp-line-soft);padding:8px 0}.pp-day:first-child{border-top:0}
.pp-dh{display:flex;gap:12px;align-items:baseline;margin-bottom:4px}.pp-dh b{font-size:13px}.pp-dh span{color:var(--tp-muted);font-size:12px;flex:1}
.pp-pr{display:grid;grid-template-columns:130px 90px minmax(0,1fr);gap:10px;align-items:baseline;font-size:12.5px;padding:3px 0}
.pp-tm{font-variant-numeric:tabular-nums;color:var(--tp-muted)}
.pp-tg{font:700 10px Inter,system-ui,sans-serif;border-radius:6px;padding:2px 6px;background:var(--tp-green-bg);color:var(--tp-green);justify-self:start;white-space:nowrap}
.pp-tg.pp-s2{background:#e7eaee;color:var(--tp-muted)}.pp-tg.pp-wa2{background:var(--tp-red-bg);color:var(--tp-red)}.pp-tg.pp-br2{background:var(--tp-amber-bg);color:var(--tp-amber-ink)}
.pp-sub{margin:0 0 2px 140px;font-size:12px;color:var(--tp-muted);display:flex;gap:8px}.pp-sk{font:700 10px Inter,system-ui,sans-serif;text-transform:uppercase;letter-spacing:.05em;color:var(--tp-muted-soft);padding-top:2px;min-width:44px}
.pp-ed{color:var(--tp-amber-ink)}
.pp-more{display:flex;justify-content:space-between;align-items:center;padding:8px 2px 0;color:var(--tp-muted);font-size:12px}
.pp-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.pp-grid>.pp-card:not(.pp-half){grid-column:1/-1}
.pp-kv{display:grid;grid-template-columns:120px minmax(0,1fr) auto;gap:10px;align-items:center;padding:9px 0;border-top:1px solid var(--tp-line-soft);font-size:13px}
.pp-arc{display:flex;justify-content:space-between;align-items:center;gap:12px;border-color:var(--tp-red-edge)}.pp-arc b{display:block;font:600 15px Oswald,sans-serif}
.pp-sw{display:grid;gap:6px}
.pp-tg2{display:flex;align-items:center;gap:10px;border:1px solid var(--tp-line);border-radius:10px;padding:8px 10px;font:600 13px Inter,system-ui,sans-serif}.pp-tg2 span{flex:1}.pp-tg2 input{width:18px;height:18px}
.pp-qm{width:22px;height:22px;border-radius:50%;border:1px solid var(--tp-line);background:#fff;font:700 11px Inter,system-ui,sans-serif;color:var(--tp-muted);cursor:pointer}
.tf-tin input{border:0;font:500 14px Inter,system-ui,sans-serif;background:transparent;padding:0;min-width:0}
@media (max-width:1023px){.pp-strip,.pp-grid{grid-template-columns:1fr}.pp-tot{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){.pp-ln{grid-template-columns:1fr;gap:4px}.pp-pr{grid-template-columns:1fr auto}.pp-pr>span:last-child{grid-column:1/-1}.pp-sub{margin-left:0}.pp-wh{grid-template-columns:1fr auto}.pp-kv{grid-template-columns:1fr auto}.pp-kv>span:nth-child(2){grid-column:1/-1;order:3}.pp-acts{width:100%}.pp-tri b{font-size:18px}}

/* Piece 5 — Add a person, a full page (F). Tests: test/team-add-v09.test.mjs + browser spec. */
.ta-grid{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:16px;align-items:start}
.ta-card{background:#fff;border:1px solid var(--tp-line);border-radius:14px;box-shadow:var(--tp-shadow);padding:16px 18px;min-width:0}
.ta-card h3{font:600 22px Oswald,sans-serif;margin:0 0 4px}
.ta-mu{color:var(--tp-muted);font-size:12.5px;margin:0}
.ta-stp{border-top:1px solid var(--tp-line-soft);padding:14px 0}.ta-stp:first-of-type{border-top:0}
.ta-qh{display:flex;align-items:center;gap:10px;font:600 16px Oswald,sans-serif;margin-bottom:10px}
.ta-qh i{font-style:normal;width:24px;height:24px;border-radius:50%;background:var(--tp-steel);color:#fff;font:700 11px/24px Inter,system-ui,sans-serif;text-align:center}
.ta-done .ta-qh i{background:var(--tp-green)}
.ta-qh small{font:500 12px Inter,system-ui,sans-serif;color:var(--tp-muted);margin-left:auto}
.ta-fr2{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:10px}
.ta-f{display:grid;gap:4px}.ta-f span{font:700 10px Inter,system-ui,sans-serif;letter-spacing:.05em;text-transform:uppercase;color:var(--tp-muted-soft)}
.ta-f input,.ta-f select{border:1px solid var(--tp-line);border-radius:10px;padding:10px 12px;font:500 14px Inter,system-ui,sans-serif;background:#fff;min-width:0}
.ta-f input:focus,.ta-f select:focus{outline:2px solid var(--tp-steel);outline-offset:1px}
.ta-f small{color:var(--tp-muted);font-size:11.5px}
.ta-opt{display:flex;gap:8px;flex-wrap:wrap}
.ta-o{border:1px solid var(--tp-line);border-radius:10px;padding:10px 14px;font:700 13px Inter,system-ui,sans-serif;background:#fff;cursor:pointer;color:var(--tp-ink)}
.ta-o.ta-on{border:2px solid var(--tp-amber);background:var(--tp-amber-bg);padding:9px 13px}
.ta-o:focus-visible,.ta-more:focus-visible{outline:2px solid var(--tp-steel);outline-offset:2px}
.ta-sw{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.ta-more{border:0;background:none;font:700 12.5px Inter,system-ui,sans-serif;color:var(--tp-amber-ink);cursor:pointer;text-align:left;padding:8px 2px}
.ta-bar{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--tp-line);padding-top:14px;margin-top:4px}
.ta-nx{position:sticky;top:12px;background:#fff;border:1px solid var(--tp-line);border-radius:12px;padding:12px 14px;font-size:12.5px}
.ta-nx ol{margin:6px 0 0;padding-left:18px}.ta-nx li{margin:4px 0;line-height:1.45}
@media (max-width:1023px){.ta-grid{grid-template-columns:1fr}.ta-nx{position:static}}
@media (max-width:640px){.ta-fr2,.ta-sw{grid-template-columns:1fr}}
.tp-card.tp-lit{animation:tpLit 1.8s cubic-bezier(.23,1,.32,1) 1 both}
@keyframes tpLit{0%{box-shadow:0 0 0 0 rgba(240,165,0,.0)}25%{box-shadow:0 0 0 5px rgba(240,165,0,.55)}100%{box-shadow:var(--tp-shadow)}}
@media (prefers-reduced-motion:reduce){.tp-card.tp-lit{animation:none;outline:2px solid var(--tp-amber)}}

/* Piece 6 — Payroll (G). Tests: test/team-payroll-v09.test.mjs + browser spec. */
.py{display:flex;flex-direction:column;gap:0}
.py-what{margin:0 0 10px;font-size:12.5px;color:var(--tp-muted)}
.py-note{margin:-4px 0 10px;font-size:12px;color:var(--tp-amber-ink)}
.py-red{color:var(--tp-red)}
.py-tbw{background:#fff;border:1px solid var(--tp-line);border-radius:14px;box-shadow:var(--tp-shadow);overflow:hidden}
.py-t{width:100%;border-collapse:collapse;font-size:12.5px}
.py-t th{font:700 10px Inter,system-ui,sans-serif;letter-spacing:.05em;text-transform:uppercase;color:var(--tp-muted-soft);text-align:left;padding:10px 12px;border-bottom:1px solid var(--tp-line);background:#fff}
.py-t td{padding:10px 12px;border-bottom:1px solid var(--tp-line-soft);vertical-align:middle}
.py-t td b{font-weight:700}.py-t td small{display:block;color:var(--tp-muted);font-size:11px;margin-top:2px}
.py-t tr[tabindex]{cursor:pointer}.py-t tr[tabindex]:hover td{background:#fafbfc}.py-t tr[tabindex]:focus-visible{outline:2px solid var(--tp-steel);outline-offset:-2px}
.py-t tr.py-flag td:first-child{box-shadow:inset 3px 0 0 var(--tp-amber)}.py-t tr.py-flag td{background:var(--tp-amber-bg)}
.py-n{text-align:right!important;font-variant-numeric:tabular-nums;white-space:nowrap}
.py-tot td{font-weight:700;background:#f7f8fa;border-bottom:0}
.py-ut{font:700 10.5px Inter,system-ui,sans-serif;border-radius:6px;padding:2px 6px;background:var(--tp-green-bg);color:var(--tp-green)}.py-ut.py-a{background:var(--tp-amber-bg);color:var(--tp-amber-ink)}.py-ut.py-r{background:var(--tp-red-bg);color:var(--tp-red)}
.py-more{display:inline-grid;place-items:center;width:26px;height:26px;border-radius:8px;border:1px solid var(--tp-line);color:var(--tp-muted)}
.py-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.py-dd{background:#fff;border:1px solid var(--tp-line);border-radius:12px;box-shadow:var(--tp-shadow);margin-top:10px;overflow:hidden}
.py-ddh{width:100%;display:flex;justify-content:space-between;align-items:center;padding:11px 14px;border:0;background:#fff;font:700 12.5px Inter,system-ui,sans-serif;color:var(--tp-ink);cursor:pointer;text-align:left}
.py-ddh:focus-visible{outline:2px solid var(--tp-steel);outline-offset:-2px}
.py-lk{color:var(--tp-amber-ink)}
.py-ddr{display:grid;grid-template-columns:minmax(0,1fr) 150px 60px 90px;gap:8px;padding:9px 14px;border-top:1px solid var(--tp-line-soft);font-size:12.5px}.py-ddr span:nth-child(n+3){text-align:right}
.py-calc{display:grid;grid-template-columns:minmax(0,1fr) 400px;gap:18px;padding:12px 14px;border-top:1px solid var(--tp-line-soft)}
.py-how p{margin:0 0 7px;line-height:1.45;font-size:12.5px}
.py-set{background:#f7f8fa;border-radius:10px;padding:10px 12px;display:grid;gap:10px;align-content:start}.py-st{font:600 15px Oswald,sans-serif}
.py-set select,.py-set input{border:1px solid var(--tp-line);border-radius:8px;padding:7px 9px;font:500 13px Inter,system-ui,sans-serif;background:#fff;min-width:0}
.py-seg{display:flex;gap:4px;flex-wrap:wrap}
.py-seg button{border:1px solid var(--tp-line);border-radius:8px;padding:6px 10px;background:#fff;font:600 12px Inter,system-ui,sans-serif;cursor:pointer;color:var(--tp-ink)}
.py-seg button.py-on{background:var(--osz-sel-bg);color:var(--osz-sel-ink);border-color:var(--osz-sel-edge);box-shadow:inset 0 0 0 1px var(--osz-sel-edge);font-weight:700}.py-seg button:disabled{cursor:default;opacity:.7}
.py-seg button:focus-visible{outline:2px solid var(--tp-steel);outline-offset:2px}
@media (max-width:1023px){.py-calc{grid-template-columns:1fr}}
@media (max-width:760px){.py-tbw{overflow:visible;background:none;border:0;box-shadow:none}.py-t,.py-t tbody{display:block}.py-t tr:first-child{display:none}
  .py-t tr{display:grid;grid-template-columns:1fr auto;gap:2px 10px;background:#fff;border:1px solid var(--tp-line);border-radius:12px;margin-bottom:8px;padding:10px 12px}
  .py-t td{border:0;padding:0}.py-t td:nth-child(n+2):not(.py-n){font-size:11.5px;color:var(--tp-muted)}.py-t td:first-child{grid-column:1/-1}
  .py-ddr{grid-template-columns:1fr auto}.py-ddr span:nth-child(2){grid-column:1/-1;order:3;color:var(--tp-muted)}}
.pp-ml{margin-left:auto}

/* D25: a saved punch marked for deletion */
.tf-prw.tf-del{border-style:dashed;background:var(--tp-red-bg);opacity:.85}.tf-prw.tf-del b{text-decoration:line-through}.tf-prw.tf-del:before{border-color:var(--tp-red);background:#fff}
/* 08-oct (Mathew approved ESQUELETO_TEAM_FILAS as is): People in ROWS — one row per person, one list per group. */
.tp-grp:has(.tp-rows){padding:0;overflow:hidden}.tp-grp:has(.tp-rows)>header{padding:12px 16px;margin:0;border-bottom:1px solid var(--tp-line)}
.tp-g3.tp-rows,.tp-row2 .tp-grp .tp-g3.tp-rows{display:block}
.tp-row2:has(.tp-rows){grid-template-columns:1fr;gap:0}
.tp-row{display:grid;grid-template-columns:minmax(170px,1.2fr) 112px minmax(0,2fr) 92px minmax(0,auto);align-items:center;gap:14px;height:auto;min-height:0;border:0;border-top:1px solid #eef1f4;border-left:4px solid transparent;border-radius:0;padding:10px 16px;background:#fff;box-shadow:none;overflow:visible;transition:background .15s ease}
.tp-rows .tp-row:first-child{border-top:0}
.tp-row:hover,.tp-row:focus-visible{background:#eceff3;transform:none;box-shadow:none;outline:none}
.tp-row.tp-working{border-left-color:var(--tp-green)}.tp-row.tp-break{border-left-color:var(--tp-amber)}.tp-row.tp-off,.tp-row.tp-invited{border-left:4px solid #cfd5dc;border-style:solid}
.tp-row.tp-al{border-left-color:var(--tp-red);background:#fdf6f5}.tp-row.tp-al:hover{background:#f9eceb}
.tp-row.tp-rv{border-left-color:var(--tp-amber);background:#fffbf2}.tp-row.tp-rv:hover{background:#fbf2df}
.tp-row .tp-who{display:flex;align-items:center;gap:10px;min-width:0}.tp-row .tp-who b{display:block}.tp-row .tp-who small{display:block;color:#6c7682;font-size:12px}
.tp-row .tp-st{justify-self:start;white-space:nowrap}
.tp-on{min-width:0}.tp-on>b{display:block}.tp-on>small{display:block;color:var(--tp-muted);font-size:12.5px;overflow-wrap:anywhere}
.tp-k{display:flex;align-items:center;gap:6px;font:800 11px Inter,sans-serif;letter-spacing:.04em;text-transform:uppercase}.tp-k.tp-red{color:var(--tp-red)}.tp-k.tp-amb{color:#8a5c00}
.tp-pulse{flex:none;width:9px;height:9px;border-radius:50%;background:currentColor;animation:tpBeat 1.2s ease-in-out infinite}
@keyframes tpBeat{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.35;transform:scale(.8)}}
.tp-row .tp-tm{display:flex;align-items:center;justify-content:flex-end;gap:6px;font:600 20px Oswald,sans-serif;white-space:nowrap}.tp-row .tp-tm.tp-red{color:var(--tp-red)}
.tp-row .tp-acts{display:flex;gap:6px;justify-content:flex-end;position:static;margin:0;border:0;min-height:0}
.tp-row .tp-btn,.tp-row .tp-fix{position:static;border:0;border-radius:9px;padding:8px 12px;font:700 12.5px Inter,sans-serif;white-space:nowrap;cursor:pointer;background:#f2f4f7;color:var(--tp-ink);text-decoration:none;width:auto;flex:none;transition:background .15s,transform .12s,filter .15s}
.tp-row .tp-btn:hover{background:#e2e6eb}.tp-row .tp-btn:active,.tp-row .tp-fix:active{transform:scale(.96)}
.tp-row .tp-btn:before,.tp-row .tp-fix:before{display:none}
.tp-row .tp-fix.tp-fred{background:var(--tp-red);color:#fff}.tp-row .tp-fix.tp-famb{background:var(--tp-amber);color:#3a2c05}.tp-row .tp-fix:hover{filter:brightness(1.08)}
@media (max-width:700px){.tp-row{grid-template-columns:minmax(0,1fr) auto;gap:6px 10px;padding:11px 12px}.tp-row .tp-st{display:none}.tp-row .tp-on{grid-column:1/-1}.tp-row .tp-acts{grid-column:1/-1;justify-content:stretch}.tp-row .tp-acts>*{flex:1;text-align:center;padding:10px}.tp-row .tp-acts:empty{display:none}.tp-row .tp-tm{font-size:18px}.tp-row.tp-al .tp-msg,.tp-row.tp-rv .tp-msg{display:none}}
@media (prefers-reduced-motion:reduce){.tp-pulse{animation:none}}
.tp-row{grid-template-rows:none;grid-template-areas:"who st on tm acts"}
.tp-row>*{grid-row:auto;grid-column:auto;margin:0}
.tp-row>.tp-who{grid-area:who}.tp-row>.tp-st{grid-area:st}.tp-row>.tp-on{grid-area:on}.tp-row>.tp-tm{grid-area:tm}.tp-row>.tp-acts{grid-area:acts}
.tp-row .tp-acts{gap:6px}.tp-row .tp-acts>*{margin:0;border-radius:9px}
@media (max-width:700px){.tp-row{grid-template-areas:"who tm" "on on" "acts acts"}.tp-row>.tp-on,.tp-row>.tp-acts{grid-column:auto}}
.tp-row{grid-template-columns:minmax(170px,1.2fr) 112px minmax(0,2fr) 92px 210px}
.tp-row .tp-acts{width:100%;max-width:none}
@media (max-width:700px){.tp-row{grid-template-columns:minmax(0,1fr) auto}.tp-row .tp-acts{width:100%}}
@media (max-width:700px){.tp-row>.tp-who{grid-area:who}.tp-row>.tp-tm{grid-area:tm}.tp-row>.tp-on{grid-area:on}.tp-row>.tp-acts{grid-area:acts}}

/* 08-oct (Mathew): Day · Week · Custom a bit bigger; white buttons, the selected one black (the multi-option rule). */
.tt-modes .tt-sg{padding:9px 18px;font:700 13.5px Inter,sans-serif}
.tt-nav .tt-sg{padding:9px 14px;font:700 13.5px Inter,sans-serif}
.tt-bar .tt-date,.tt-bar .tt-chip{min-height:42px}
/* 08-oct night (Mathew): one block per person in Time — grey on hover; open = lighter grey + the board-card bar in the colour of now. */
.tt-blk{border-left:4px solid transparent;border-radius:10px;transition:background .12s ease}
.tt-blk:hover{background:var(--osz-sel-bg)}
.tt-blk+.tt-blk{border-top:1px solid var(--tp-line)}
.tt-blk>.tt-row,.tt-blk>.tt-wk{border-bottom:0}
.tt-blk.tt-bopen{background:#f3f5f8;border-left:4px solid var(--tp-grey);margin:4px 0}
.tt-blk.tt-bopen.tt-ok{border-left-color:var(--tp-green)}
.tt-blk.tt-bopen.tt-att{border-left-color:var(--tp-amber)}
.tt-blk.tt-bopen.tt-risk{border-left-color:var(--tp-red)}
.tt-blk .tt-row.tt-open,.tt-blk .tt-wk.tt-open,.tt-blk .tt-pex,.tt-blk .tt-days{background:transparent}
/* 09-oct (Luis): start · dash · end in their own columns, so the dashes line up; the running punch says Active */
.tt-when{display:inline-grid;grid-template-columns:56px 12px auto;align-items:center;white-space:nowrap}.tt-when i{font-style:normal;text-align:center;color:var(--tp-muted-soft)}
.tt-act{display:inline-block;white-space:nowrap;font:700 9.5px Inter,system-ui,sans-serif;letter-spacing:.03em;text-transform:uppercase;color:var(--tp-green);background:var(--tp-green-bg);border-radius:999px;padding:2px 6px}

/* 09-oct (Mathew): Time · person by person — each person is its own card with a gap, so where Presley ends and Marcus
   starts is obvious. The left bar always shows the state colour (green working, amber break, red forgotten, grey off).
   The open person stands out: orange selection edge (G2), lighter grey fill, a lift; its punches fade in. */
.tt-blk{background:#fff;border:1px solid var(--tp-line);border-left:5px solid var(--tp-line);border-radius:12px;margin:0 0 8px;box-shadow:0 1px 2px rgba(25,29,35,.05);transition:background .18s ease,box-shadow .18s ease,transform .18s ease,border-color .18s ease}
.tt-blk+.tt-blk{border-top:1px solid var(--tp-line)}
.tt-blk.tt-ok{border-left-color:var(--tp-green)}
.tt-blk.tt-att{border-left-color:var(--tp-amber)}
.tt-blk.tt-risk{border-left-color:var(--tp-red)}
.tt-blk.tt-off{border-left-color:#d5d9df}
.tt-blk:hover{background:#fbfbfc;box-shadow:0 8px 20px -14px rgba(25,29,35,.45);transform:translateY(-1px)}
.tt-blk.tt-bopen{background:#f4f6f8;border:2px solid var(--tp-amber);border-left-width:6px;margin:10px 0 14px;box-shadow:0 18px 36px -20px rgba(25,29,35,.55);transform:none}
.tt-blk.tt-bopen.tt-ok{border-left-color:var(--tp-green)}
.tt-blk.tt-bopen.tt-att{border-left-color:var(--tp-amber-deep)}
.tt-blk.tt-bopen.tt-risk{border-left-color:var(--tp-red)}
.tt-blk.tt-bopen.tt-off{border-left-color:var(--tp-grey)}
.tt-blk.tt-bopen .tt-row b,.tt-blk.tt-bopen .tt-wk b{font-weight:800}
.tt-blk .tt-pex,.tt-blk .tt-days{animation:ttOpen .22s ease both}
@keyframes ttOpen{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
/* "Open Presley's page" is a real button (no text links) */
.tt-lk{display:inline-flex;align-items:center;height:32px;padding:0 14px;border:1px solid var(--tp-line);border-radius:10px;background:#fff;color:var(--tp-ink);font:700 12.5px Inter,sans-serif}
.tt-lk:hover{background:#f3f4f6}
@media (prefers-reduced-motion:reduce){.tt-blk,.tt-blk .tt-pex,.tt-blk .tt-days{transition:none;animation:none}}
/* 09-oct: the period box keeps one width in Day, Week and Custom; its content fades when the mode changes */
.tt-period{display:flex;gap:6px;width:360px;max-width:100%;animation:ttOpen .2s ease both}
.tt-period .tt-nav{width:100%;display:flex}.tt-period .tt-nav .tt-sg.tt-on{flex:1}
.tt-period .tt-date{flex:1;min-width:0;justify-content:space-between}.tt-period .tt-date input{min-width:0;width:100%}
@media (max-width:640px){.tt-period{width:100%}}
/* 09-oct (Mathew, no text links): Show / Hide / Open toggles look like real buttons */
.tp-lk,.py-lk{display:inline-flex;align-items:center;gap:4px;height:30px;padding:0 12px;border:1px solid var(--tp-line,#e3e7ec);border-radius:10px;background:#fff;color:var(--tp-ink,#171a1f);font:700 12.5px Inter,sans-serif;cursor:pointer;text-decoration:none;transition:background .15s ease}
.tp-lk:hover,.py-ddh:hover .py-lk{background:#f3f4f6}

/* 09-oct (no text links): person page actions are real buttons */
.pp-lk{display:inline-flex;align-items:center;height:30px;padding:0 12px;border:1px solid var(--tp-line,#e3e7ec);border-radius:10px;background:#fff;color:var(--tp-ink,#171a1f);font:700 12.5px Inter,sans-serif;cursor:pointer}
.pp-lk:hover{background:#f3f4f6}

/* 11-oct (Mathew): Payroll looks like Time — card with a title, one block per person with the colour of its state on the
   left (green = hours, amber = rate changed), plain coloured utilization (no pills), drop-downs that open from the whole bar. */
.py-card{padding:12px 14px 6px}
.py-card>header{justify-content:space-between}.py-rng{font-size:12px;color:var(--tp-muted)}
.py-card .py-tbw{background:none;border:0;box-shadow:none;border-radius:0;overflow:visible}
.py-dates{display:inline-flex;align-items:center;justify-content:center;width:100%;background:var(--osz-sel-bg,#eceff3);border-color:transparent;font:700 14px Inter,system-ui,sans-serif}
.py-period{width:300px}
.py-ut,.py-ut.py-a,.py-ut.py-r{background:none!important;padding:0;font:700 12.5px Inter,system-ui,sans-serif}
.py-empty{padding:22px 12px!important;text-align:center}
.py-empty b{display:block;font-size:14px}.py-empty span{display:block;color:var(--tp-muted);font-size:12.5px;margin:3px 0 10px}
.py-dd{transition:box-shadow .15s ease}
.py-ddh{padding:12px 14px;gap:12px;transition:background .15s ease}
.py-ddh:hover{background:#f6f7f9}
.py-ddt{display:flex;flex-direction:column;gap:2px;min-width:0}.py-ddt b{font:600 15px Oswald,sans-serif}.py-ddt small{font:500 12px Inter,system-ui,sans-serif;color:var(--tp-muted)}
.py-ddo{display:inline-flex;align-items:center;gap:8px;flex:none;font:700 12.5px Inter,system-ui,sans-serif;color:var(--tp-ink)}
.py-chev{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#eef0f3;transition:transform .2s ease,background .15s ease}
.py-ddh:hover .py-chev{background:#e2e6eb}
.py-open .py-chev{transform:rotate(180deg)}
.py-open>.py-ddh{border-bottom:1px solid var(--tp-line-soft)}
@media (prefers-reduced-motion:reduce){.py-chev{transition:none}}
@media (min-width:761px){
  .py-card .py-t{border-collapse:separate;border-spacing:0 8px;margin-top:-4px}
  .py-card .py-t th{border:0;padding:4px 12px;background:none}
  .py-card .py-t td{background:#fff;border-top:1px solid var(--tp-line);border-bottom:1px solid var(--tp-line);padding:11px 12px}
  .py-card .py-t td:first-child{border-left:5px solid var(--tp-green);border-radius:12px 0 0 12px}
  .py-card .py-t td:last-child{border-right:1px solid var(--tp-line);border-radius:0 12px 12px 0}
  .py-card .py-t tr[tabindex] td{box-shadow:0 1px 2px rgba(25,29,35,.05)}
  .py-card .py-t tr[tabindex]:hover td{background:#f6f7f9}
  .py-card .py-t tr.py-flag td{background:var(--tp-amber-bg)}.py-card .py-t tr.py-flag td:first-child{border-left-color:var(--tp-amber);box-shadow:none}
  .py-card .py-t tr.py-tot td{background:#f7f8fa;border-color:transparent}.py-card .py-t tr.py-tot td:first-child{border-left-color:transparent}
  .py-card .py-t td.py-empty{border:1px dashed var(--tp-line)!important;border-radius:12px!important}
}
@media (max-width:760px){.py-card{background:none;border:0;box-shadow:none;padding:0}.py-period{width:100%}.py-card .py-t tr[tabindex]{border-left:5px solid var(--tp-green)}.py-card .py-t tr.py-flag{border-left-color:var(--tp-amber)}}
.py-period:has(.tt-date){width:390px}.py-period .tt-date{padding:0 8px;gap:4px}.py-period .tt-date input{font:600 13px Inter,system-ui,sans-serif;min-width:0;width:100%}
.py-set .pp-kv{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px}.py-set .pp-kv>span{white-space:nowrap}.py-set .pp-kv>span:nth-child(2){flex:1}
@media (max-width:760px){.py-period:has(.tt-date){width:100%}}

/* 11-oct (Mathew): History — filters are the app's selector strip; each week is its own card (edge + soft shadow, white
   bar that opens from anywhere, chevron that turns); each day inside is a light-grey block so days never run together. */
.pp-filt{margin:2px 0 14px}.pp-filt>button b{margin-left:6px;color:var(--tp-muted);font-weight:700}
.pp-wk{background:#fff;border:1px solid var(--tp-line);border-radius:12px;box-shadow:0 1px 2px rgba(25,29,35,.05);margin-bottom:12px;overflow:hidden}
.pp-wk.pp-open{border-color:#cfd5dc;box-shadow:0 4px 14px -8px rgba(25,29,35,.25)}
.pp-wh{background:#fff;padding:12px 14px;align-items:center;transition:background .15s ease}
.pp-wh:hover{background:#f6f7f9}
.pp-open>.pp-wh{border-bottom:1px solid var(--tp-line-soft)}
.pp-chev{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#eef0f3;color:var(--tp-ink);transition:transform .2s ease}
.pp-wh:hover .pp-chev{background:#e2e6eb}.pp-open .pp-chev{transform:rotate(180deg)}
.pp-days{padding:10px 12px 12px;display:grid;gap:8px}
.pp-day,.pp-day:first-child{background:#f7f8fa;border:1px solid #edf0f3;border-radius:10px;padding:10px 12px}
.pp-more .tf-btn{min-height:34px}
@media (prefers-reduced-motion:reduce){.pp-chev{transition:none}}
/* 11-oct (Mathew): Payroll's four numbers order the table (picked one = the app's selected grey + its column marked);
   a person with no hours opens their Pay & access */
.py-kb{text-align:left;cursor:pointer;font:11px Inter,system-ui,sans-serif;color:var(--tp-muted);transition:background .15s ease,border-color .15s ease}
.py-kb:hover{background:#f6f7f9;border-color:#cfd5dc}
.py-kb:focus-visible{outline:2px solid var(--tp-steel);outline-offset:2px}
.py-kb.py-kon{background:var(--osz-sel-bg,#eceff3);border-color:#cfd5dc}
.py-t th.py-sorted{color:var(--tp-ink)}
.py-ddr[role="button"]{cursor:pointer;transition:background .15s ease}.py-ddr[role="button"]:hover{background:#f6f7f9}
.py-ddr[role="button"]:focus-visible{outline:2px solid var(--tp-steel);outline-offset:-2px}
/* 11-oct (Mathew): Time's four numbers are buttons (same look as Payroll's) */
.tt-kb{text-align:left;cursor:pointer;font:11px Inter,system-ui,sans-serif;color:var(--tp-muted);transition:background .15s ease,border-color .15s ease}
.tt-kb:hover:not(:disabled){background:#f6f7f9;border-color:#cfd5dc}.tt-kb:disabled{cursor:default}
.tt-kb:focus-visible{outline:2px solid var(--tp-steel);outline-offset:2px}
.tt-kb.tt-kon{background:var(--osz-sel-bg,#eceff3);border-color:#cfd5dc}.tt-kb.tt-am.tt-kon{background:#fde9b8}
/* 11-oct (Mathew): "+ Fill this time" is a real button; "+1 day" marks a punch closed after midnight */
.tf-fill{border:1px solid var(--tp-line);border-radius:10px;background:#fff;height:32px;padding:0 12px;color:var(--tp-ink);transition:background .15s ease}.tf-fill:hover{background:#f6f7f9}
.tf-nd{font:700 10.5px Inter,system-ui,sans-serif;color:var(--tp-amber-ink);background:var(--tp-amber-bg);border-radius:6px;padding:2px 6px;margin-right:4px;white-space:nowrap}
/* 11-oct (Mathew): Off today opens like every other drop-down — words plus a turning chevron, no small "Show ▾" button */
.tp-ddo{margin-left:auto;display:inline-flex;align-items:center;gap:8px;border:0;background:none;padding:2px 2px 2px 8px;border-radius:10px;font:700 12.5px Inter,system-ui,sans-serif;color:var(--tp-ink);cursor:pointer}
.tp-ddo:hover{background:#f6f7f9}.tp-ddo:focus-visible{outline:2px solid var(--tp-steel);outline-offset:2px}
.tp-chev{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#eef0f3;transition:transform .2s ease}
.tp-ddo[aria-expanded="true"] .tp-chev{transform:rotate(180deg)}
@media (prefers-reduced-motion:reduce){.tp-chev{transition:none}}

/* 12-oct (Mathew): Payroll v5 — one goal: what each person is owed, and pay them (ESQUELETO_PAYROLL_v5_2026-10-12).
   Tests: test/team-payroll-v5.test.mjs + test/team-payroll-v5-browser.spec.mjs. */
.pg-tabs{margin:0 0 12px}.pg-tabs .w1-seg{display:inline-flex}
.pg .tt-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.pg .tt-k b.pg-big{font-size:28px}
.pg-grp{padding:0;overflow:hidden;margin-bottom:12px}.pg-grp .py-tbw{padding:0 14px 6px}
.pg-grp:not(.py-open) .py-tbw,.pg-grp:not(.py-open)>.pg-body{display:none}.pg-grp>.pg-body{padding:10px 12px 2px}
.pg .py-card .py-t td:first-child{border-left-color:var(--tp-amber)}
.pg .py-card .py-t tr.pg-paid td:first-child{border-left-color:var(--tp-green)}
.pg .py-card .py-t tr.pg-grey td:first-child{border-left-color:#c9ced5}.pg .py-card .py-t tr.pg-off td{color:var(--tp-muted)}
.pg-owed{font:600 17px Oswald,sans-serif}.pg-ok{color:var(--tp-green);font-weight:700;white-space:nowrap}.pg-warn{color:var(--tp-red);font-weight:700}
.pg-act{width:150px}.pg-act .tf-btn{width:100%;white-space:nowrap}
.pg-bar-r{display:flex;gap:8px;flex-wrap:wrap}
.pg-menu{position:relative}.pg-menu-l{position:absolute;right:0;top:calc(100% + 6px);z-index:30;background:#fff;border:1px solid var(--tp-line);border-radius:12px;box-shadow:0 14px 34px -14px rgba(25,29,35,.4);padding:6px;min-width:250px;display:none}
.pg-menu.on .pg-menu-l{display:grid;gap:2px}
.pg-menu-l button{display:flex;flex-direction:column;align-items:flex-start;gap:1px;border:0;background:none;padding:9px 10px;border-radius:8px;text-align:left;cursor:pointer;font:700 13px Inter,sans-serif;color:var(--tp-ink)}
.pg-menu-l button:hover{background:#f6f7f9}.pg-menu-l small{font:500 11.5px Inter,sans-serif;color:var(--tp-muted)}
.pg-s{cursor:pointer;border-radius:6px;white-space:nowrap;user-select:none}.pg-s i{font-style:normal;color:var(--tp-muted-soft);margin-left:3px}
.pg-s:hover,.pg-s.pg-son,.pg-s.pg-son i{color:var(--tp-ink)}.pg-s:focus-visible{outline:2px solid var(--tp-steel);outline-offset:2px}
.pg-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:6px}.pg-head>b{font:600 16px Oswald,sans-serif}
.pg-head .pg-sum{margin-left:auto;font-size:12px;color:var(--tp-muted)}.pg-head select{min-width:170px;min-height:38px}
.pg-foot{margin-top:4px}.pg-sm{min-height:30px!important;padding:0 10px!important;margin-left:6px}
.pg-cols{display:grid;grid-template-columns:minmax(0,1fr) clamp(320px,31%,400px);gap:14px;align-items:start}.pg-side{position:sticky;top:14px}
.pg-tool{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 10px}
.pg-all{display:inline-flex;align-items:center;gap:10px;min-height:40px;padding:0 14px 0 10px;border:1px solid var(--tp-line);border-radius:10px;background:#fff;font:700 12.5px Inter;cursor:pointer;color:var(--tp-ink)}.pg-all:hover{background:#f6f7f9}
.pg-cb{width:20px;height:20px;accent-color:#191d23;flex:none;cursor:pointer;margin:0;pointer-events:none}
.pg-wk{display:grid;grid-template-columns:56px minmax(0,1fr)}.pg-wkm{min-width:0}
.pg-tick{display:grid;place-items:center;border:0;border-right:1px solid var(--tp-line-soft);background:#fafbfc;cursor:pointer;min-height:64px}
.pg-tick:hover{background:#eef1f4}.pg-tick:focus-visible{outline:2px solid var(--tp-steel);outline-offset:-2px}.pg-tick[disabled]{cursor:default;background:#fff}
.pp-wh.pg-wh{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:12px;width:100%;border:0;text-align:left;cursor:pointer;font:inherit}
.pg-wh .pg-wt{display:flex;flex-direction:column}.pg-wh .pg-wt b{font:600 16px Oswald,sans-serif}.pg-wh .pg-wt small{color:var(--tp-muted);font-size:12px}
.pg-wa{font:600 17px Oswald,sans-serif;white-space:nowrap}
.pp-dh.pg-dh{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;gap:10px;align-items:center}
.pg-dtick{display:grid;place-items:center;width:36px;height:36px;margin:-8px 0 -8px -8px;border:0;border-radius:8px;background:none;cursor:pointer}.pg-dtick:hover{background:#e7eaee}
.pg-dh .pg-da{font:700 13px Inter;font-variant-numeric:tabular-nums}
.pg-off{background:#fff!important;border-style:dashed!important}
.pg-why{display:grid;gap:8px;margin-top:8px;font-size:12px;color:var(--tp-muted)}
.pp-tg.pg-ot{background:#e6edfa;color:#2550a3}.pp-pr.pg-otl{background:#eef3fc;border-radius:8px;margin:0 -6px;padding:4px 6px}
.pg-oth{color:#2550a3;font-weight:700}.pg-wk-ot{box-shadow:inset 4px 0 0 #2550a3}
.pg-legend{display:flex;gap:14px;flex-wrap:wrap;font-size:11.5px;color:var(--tp-muted);margin:0 0 10px}
.pg-legend i{display:inline-block;width:12px;height:8px;border-radius:3px;margin-right:5px;vertical-align:1px}
.pg-lg-reg{background:var(--tp-green)}.pg-lg-ot{background:#2550a3}.pg-lg-out{background:#fff;border:1px dashed #9aa3ad}
.pg-plain{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:center;width:100%;padding:10px 14px;border:0;border-top:1px solid var(--tp-line-soft);background:#fff;text-align:left;font:500 13px Inter;color:var(--tp-ink);cursor:pointer}
.pg-plain:hover{background:#f6f7f9}.pg-plain small{display:block;color:var(--tp-muted);font-size:11.5px}.pg-plain b{font-variant-numeric:tabular-nums}.pg-plain .pg-go{color:var(--tp-muted-soft);font-size:18px}
.pg-x{color:var(--tp-muted-soft)!important;text-decoration:line-through}.pg-pad{padding:8px 14px}
.pg-pay .pp-kv{grid-template-columns:minmax(0,1fr) auto}.pg-pay .pp-kv b{font-variant-numeric:tabular-nums}
.pg-now{display:flex;justify-content:space-between;align-items:baseline;padding:12px 0 4px;border-top:2px solid var(--tp-ink);margin-top:4px}.pg-now b{font:600 30px Oswald,sans-serif}.pg-now .pg-nowl{font:800 14px Inter}
.pg-paybtn{width:100%;min-height:46px!important;font-size:14px!important;margin-top:10px}.pg-wide{width:100%;margin:6px 0}
.pg-adj{display:grid;gap:10px;background:#f7f8fa;border:1px solid var(--tp-line);border-radius:12px;padding:12px;margin:6px 0}
.pg-help{background:#fff;border:1px solid var(--tp-line);border-radius:10px;padding:8px 10px;font-size:12px;color:var(--tp-muted)}
.pg-note{font-size:11.5px;color:var(--tp-muted);margin:6px 0 0}.pg-block{display:block}.pg-mt{margin-top:8px}.pg-mb{margin-bottom:12px}.pg-wrap{flex-wrap:wrap}
.pg-ta{width:100%;box-sizing:border-box;min-height:64px;resize:vertical;border:1px solid var(--tp-line);border-radius:10px;padding:10px 12px;font:500 14px/1.45 Inter,system-ui,sans-serif;color:var(--tp-ink);background:#fff;overflow:hidden}
.pg-in{width:100%;box-sizing:border-box;min-height:40px;border:1px solid var(--tp-line);border-radius:10px;padding:0 12px;font:500 14px Inter,system-ui,sans-serif;background:#fff;color:var(--tp-ink)}
.pg-ta:focus,.pg-in:focus{outline:none;border-color:var(--tp-amber-deep);box-shadow:0 0 0 3px rgba(240,165,0,.18)}
.pg-rcpt{display:grid;gap:12px}.pg-sec{background:#fff;border:1px solid var(--tp-line);border-radius:12px;padding:10px 14px}
.pg-sec>b{display:block;font:600 15px Oswald,sans-serif;margin-bottom:4px}.pg-sec .pp-kv{grid-template-columns:minmax(0,1fr) auto}.pg-total{border-top:2px solid var(--tp-ink)!important}
.pg-danger{border-color:var(--tp-red-edge)!important;color:var(--tp-red)!important}
.pg-fold{display:grid;grid-template-rows:1fr;transition:grid-template-rows .22s ease}.pg-fold>div{overflow:hidden;min-height:0}.pg-fold.pg-shut{grid-template-rows:0fr}
.pg-undo{position:fixed;left:50%;bottom:26px;transform:translateX(-50%) translateY(20px);background:#191d23;color:#fff;border-radius:12px;padding:10px 12px 10px 16px;display:flex;gap:14px;align-items:center;font:600 13px Inter;opacity:0;pointer-events:none;transition:all .2s;z-index:80}
.pg-undo.on{opacity:1;transform:translateX(-50%);pointer-events:auto}.pg-undo button{background:#fff;color:#191d23;border:0;border-radius:8px;padding:6px 12px;font:700 12.5px Inter;cursor:pointer}
@media (prefers-reduced-motion:reduce){.pg-fold,.pg-undo{transition:none}}
@media (min-width:761px) and (max-width:1180px){.pg-grp .py-t tr>:nth-child(3),.pg-grp .py-t tr>:nth-child(4){display:none}.pg-act{width:auto}}
@media (max-width:1100px){.pg-cols{grid-template-columns:minmax(0,1fr)}.pg-side{position:static}}
@media (max-width:760px){.pg .tt-kpis{grid-template-columns:1fr}.pg-act{width:auto}.pg-grp .py-tbw{padding:0 10px 6px}.pg-adj .tf-tin{grid-template-columns:minmax(0,1fr)}
  .pp-wh.pg-wh{grid-template-columns:minmax(0,1fr) auto}.pg-wh .pp-chev{display:none}.pg-wk{grid-template-columns:48px minmax(0,1fr)}
  .pp-dh.pg-dh{grid-template-columns:auto minmax(0,1fr) auto}.pg-dh .pp-lk{grid-column:2/-1;justify-self:start}}
