/* Tip pool splitter: extends site.css tokens (glass cards, pill buttons, violet/rose/mint) */
.tp-top .eyebrow{margin-bottom:14px}
.tp-top .cta-row{margin-top:22px}
.tp-top .trust{margin:14px 0 0}
.tp-top h1{max-width:20ch}
.tp-top .btn{width:100%}
.tp{padding:24px 0 8px;scroll-margin-top:12px}
.tp-card{border-radius:28px;padding:20px 16px;margin-bottom:16px}
.tp-card>h2{font-size:clamp(1.375rem,4.4vw,1.75rem);display:flex;align-items:center;gap:12px;margin-bottom:6px}
.tp-card>h2 span{flex:none;width:34px;height:34px;border-radius:12px;display:grid;place-content:center;font-size:1rem;color:#0B1020;background:linear-gradient(135deg,var(--violet),var(--rose))}
.tp-lead{color:var(--muted);margin:0 0 18px}
.tp-set{display:grid;gap:14px;grid-template-columns:minmax(0,1fr)}
.tp-f{min-width:0}
.tp-f label,.tp-lbl{display:block;font-weight:700;font-size:1rem;margin:0 0 6px}
.tp-f select.field{padding-right:36px}
.tp-note{font-size:.875rem;line-height:1.35;color:var(--muted);margin:5px 0 0;min-height:1.2em;overflow-wrap:anywhere}
.tp-note.err{color:var(--rose);font-weight:600}
.field[aria-invalid="true"]{border-color:var(--rose)}
.tp-basis{border:0;padding:0;margin:0 0 14px}
.tp-basis legend{font-weight:700;padding:0;margin-bottom:8px}
.tp-radios{display:grid;gap:8px}
.tp-radio{display:flex;align-items:center;gap:12px;min-height:52px;padding:0 16px;border:1px solid var(--line);border-radius:16px;background:rgba(8,12,30,.5);cursor:pointer;font-weight:600}
.tp-radio input{width:22px;height:22px;margin:0;accent-color:var(--mint);flex:none}
.tp-radio:has(input:checked){border-color:var(--violet);background:rgba(139,123,255,.2)}
.tp-shifts{list-style:none;margin:0 0 12px;padding:0;display:grid;gap:12px}
.tp-shift{position:relative;display:grid;gap:12px;grid-template-columns:minmax(0,1fr);padding:14px;border:1px solid var(--line);border-radius:20px;background:rgba(8,12,30,.4)}
.tp-people{list-style:none;margin:0 0 14px;padding:0;display:grid;gap:12px}
.tp-person{border:1px solid var(--line);border-radius:22px;background:rgba(8,12,30,.45);padding:10px 14px 14px}
.tp-ph{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px}
.tp-pn{font-size:.875rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#c4baff}
.tp-x{width:44px;height:44px;flex:none;border:0;border-radius:14px;background:none;color:var(--muted);font-size:1.5rem;line-height:1;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.tp-x:hover{background:rgba(245,143,180,.18);color:var(--ink)}
.tp-shift.multi{padding-right:60px}
.tp-shift .tp-x{position:absolute;top:6px;right:6px}
.tp-id{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;margin-bottom:12px}
.tp-id .tp-name{grid-column:1/-1}
.tp-hrs{display:grid;gap:12px;grid-template-columns:repeat(auto-fill,minmax(min(100%,11rem),1fr))}
.tp-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px}
.tp-bar .btn{min-height:52px}
.tp-count{color:var(--muted);font-weight:600}
.tp-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;padding:0 10px;border:0;background:none;color:#b9adff;font-weight:700;font-size:inherit;text-decoration:underline;text-underline-offset:4px;cursor:pointer}
.tp-link:hover{color:#fff}
.tp-submit{display:grid;gap:12px;margin:8px 0 4px}
.tp-submit .btn{width:100%;min-height:56px}
.tp-save{display:flex;align-items:flex-start;gap:12px;min-height:44px;font-weight:600;cursor:pointer}
.tp-save input{width:24px;height:24px;margin:2px 0 0;accent-color:var(--mint);flex:none}
.tp-savebox .privacy-line{margin-top:10px}
.tp-msg{margin:6px 0 0;font-size:.9375rem;color:var(--muted)}
#results{scroll-margin-top:12px;padding:8px 0 24px}
#results:focus{outline:none}
#results>.wrap>h2{font-size:clamp(1.625rem,5vw,2.5rem);margin-bottom:14px;letter-spacing:-.03em}
.tp-tiles{display:grid;gap:10px;grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:16px}
.tp-tile{padding:14px 16px;border-radius:20px;border:1px solid var(--line);background:var(--glass);min-width:0}
.tp-tile span{display:block;font-size:.875rem;font-weight:600;color:var(--muted)}
.tp-tile b{display:block;font-size:clamp(1.125rem,4.4vw,1.5rem);letter-spacing:-.02em;overflow-wrap:anywhere}
.tp-tile.tp-hot{border-color:rgba(63,224,192,.5);background:rgba(63,224,192,.1)}
.tp-tile.tp-bad{border-color:rgba(245,143,180,.55)}
.tp-empty,.tp-alert{padding:22px 18px;border-radius:24px;border:1px dashed var(--line);background:var(--glass)}
.tp-empty h3,.tp-alert h3{font-size:1.25rem;margin-bottom:8px}
.tp-empty p{margin:0;color:var(--muted)}
.tp-alert{border:1px solid rgba(245,143,180,.55)}
.tp-alert ul{margin:0;padding-left:1.2em}
.tp-alert li{margin:4px 0;overflow-wrap:anywhere}
.tp-warn{margin:0 0 14px;padding:12px 16px;border-radius:16px;border:1px solid rgba(255,185,137,.55);background:rgba(255,185,137,.1)}
.tp-period{margin:26px 0 0}
.tp-period h3{font-size:1.375rem;margin-bottom:6px;overflow-wrap:anywhere}
.tp-sum{color:var(--muted);margin:0 0 12px}
.tp-sum b{color:var(--ink)}
.tp-left{margin:12px 0 0;padding:12px 16px;border-radius:16px;background:rgba(139,123,255,.14);border:1px solid var(--line)}
.tp-t{width:100%;border-collapse:collapse}
.tp-t th,.tp-t td{text-align:left;overflow-wrap:anywhere}
.tp-t small{display:block;color:var(--muted);font-size:.875rem;font-weight:500}
.tp-t small.tp-adj{display:inline;color:var(--peach);font-weight:700}
.tp-t .tp-up{color:var(--mint)}.tp-t .tp-down{color:var(--rose)}
.tp-t tr.tp-zero td{opacity:.75}
/* below 960px every row is a stacked card, so nothing scrolls sideways */
@media (max-width:959.98px){
  .tp-t,.tp-t tbody,.tp-t tfoot,.tp-t tr,.tp-t td,.tp-t th{display:block}
  .tp-t thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .tp-t tr{margin:0 0 10px;padding:6px 14px;border:1px solid var(--line);border-radius:18px;background:var(--glass)}
  .tp-t tfoot tr{background:rgba(139,123,255,.16)}
  .tp-t td,.tp-t tfoot th{display:flex;justify-content:space-between;align-items:baseline;gap:14px;padding:7px 0;border-bottom:1px dashed var(--line);text-align:right}
  .tp-t tr>:last-child{border-bottom:0}
  .tp-t td::before,.tp-t tfoot th::before{content:attr(data-label);flex:none;max-width:45%;text-align:left;color:var(--muted);font-weight:600;font-size:.9375rem}
  .tp-t td[data-label="Person"],.tp-t tfoot th{text-align:left}
  .tp-t td[data-label="Person"]::before{display:none}
  .tp-t td[data-label="Person"] .v{font-size:1.125rem}
  .tp-t td:has(>.v:empty){display:none}
  .tp-t .v{min-width:0}
}
@media (min-width:960px){
  .tp-tw{border:1px solid var(--line);border-radius:20px;background:var(--glass);padding:4px 8px}
  .tp-t th,.tp-t td{padding:11px 10px;vertical-align:top;border-bottom:1px solid var(--line);font-size:.9375rem}
  .tp-t thead th{font-size:.8125rem;font-weight:700;letter-spacing:.03em;text-transform:uppercase;color:var(--muted)}
  .tp-t tbody tr:last-child td{border-bottom:0}
  .tp-t tfoot th,.tp-t tfoot td{border-bottom:0;border-top:2px solid var(--line);font-weight:700}
  .tp-t td.tp-paid,.tp-t th:last-child{text-align:right}
  .tp-t td b{font-weight:800}
}
.tp-actions{display:grid;gap:10px;margin-top:26px}
.tp-actions .btn{width:100%;min-height:56px}
.tp-actions .btn[disabled]{opacity:.45;cursor:not-allowed}
.tp-paper{display:flex;align-items:center;gap:12px}
.tp-paper label{font-weight:700}
.tp-paper select{width:auto;min-width:8rem;min-height:48px;padding:0 14px}
.tp-after{padding-top:8px}
.tp-more{display:grid;gap:12px;margin-top:8px}
.tp-more a{display:block}
.tp-lk{display:flex;flex-direction:column;justify-content:center;gap:2px;min-height:64px;padding:14px 18px;border-radius:20px;border:1px solid var(--line);background:var(--glass);transition:transform .2s var(--ease),background .2s}
.tp-lk:hover{transform:translateY(-3px);background:var(--glass-hi)}
.tp-lk b{font-size:1.0625rem}.tp-lk span{color:var(--muted);font-size:.9375rem}
.tp-sheet{display:none}
@media (min-width:720px){
  .tp-card{padding:28px}
  .tp-top .btn{width:auto}
  .tp-set{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tp-set .wide{grid-column:1/-1}
  .tp-radios{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tp-shift{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .tp-id{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) minmax(0,.8fr)}
  .tp-id .tp-name{grid-column:auto}
  .tp-tiles{grid-template-columns:repeat(auto-fit,minmax(11rem,1fr))}
  .tp-actions{grid-template-columns:1fr 1fr auto;align-items:center}
  .tp-submit .btn{width:auto;justify-self:start}
  .tp-more{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (prefers-reduced-motion:reduce){.tp-lk{transition:none}.tp-lk:hover{transform:none}}

@media print{
  html,body{background:#fff!important;background-image:none!important;color:#000!important}
  body>*:not(.tp-sheet){display:none!important}
  .tp-sheet{display:block;font-family:var(--font);color:#000;font-size:10pt;line-height:1.3}
  .tp-sheet h1{font-size:20pt;margin:0 0 2mm;color:#000;letter-spacing:-.01em;line-height:1.1}
  .tp-sheet .sub{margin:0 0 4mm;font-size:10pt;color:#333}
  .tp-st{width:100%;border-collapse:collapse;table-layout:fixed;margin:0 0 3mm}
  .tp-st th{font-size:8pt;text-transform:uppercase;letter-spacing:.03em;text-align:left;border-bottom:.4mm solid #000;padding:1mm 1.5mm;height:6mm}
  .tp-st td{height:8mm;padding:0 1.5mm;border-bottom:.2mm solid #999;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10pt;vertical-align:middle}
  .tp-sheet.dense .tp-st td{height:6.3mm;font-size:9pt}
  .tp-st .n{width:5%;color:#444}.tp-st .r{text-align:right}.tp-st .c{text-align:center}
  .tp-st th:nth-child(2){width:22%}.tp-st th:nth-child(3){width:19%}.tp-st th:nth-child(4){width:10%}.tp-st th:nth-child(5){width:9%}.tp-st th:nth-child(6){width:15%}.tp-st th:nth-child(7),.tp-st th:nth-child(8){width:10%}
  .tp-st i{display:inline-block;width:4.2mm;height:4.2mm;border:.35mm solid #000;border-radius:.8mm;vertical-align:middle}
  .tp-st tfoot td{border-top:.4mm solid #000;border-bottom:0;font-weight:700}
  .tp-st tr{break-inside:avoid}
  .tp-st.tp-sh{margin-top:2mm;break-inside:avoid}.tp-st.tp-sh td{height:5.5mm;font-size:9pt}.tp-st.tp-sh th:nth-child(n){width:auto}
  .tp-sheet .foot{margin:1mm 0 0;font-size:8pt;color:#333}
}
