/* Today's Posts (0107) — phone-first. Uses the app's CSS variables from styles.css. */
.tp-h1 { margin: 4px 0 2px; font-size: 24px; }
.tp-sub { margin: 0 0 14px; color: var(--text-secondary); font-size: 14px; line-height: 1.4; }

.tp-daynav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 12px; }
.tp-daynav a, .tp-daynav span.tp-navgap { min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center;
  font-size: 22px; border-radius: 10px; }
.tp-daynav a { background: var(--surface-2); border: 0.5px solid var(--border); }
.tp-day { text-align: center; line-height: 1.25; }
.tp-day strong { font-size: 17px; display: block; }
.tp-day small { color: var(--text-secondary); font-size: 13px; }
.tp-day .tp-today-link { font-size: 13px; font-weight: 600; }
.tp-preview { background: var(--warning-bg); color: var(--warning-text); border-radius: 8px; padding: 8px 12px; font-size: 14px; margin: 0 0 12px; }

.tp-card { background: var(--surface-2); border: 0.5px solid var(--border); border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.tp-card h2 { font-size: 15px; margin: 0 0 8px; }
.tp-theme select, .tp-theme input, .tp-settings input, .tp-settings textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--border-strong);
  border-radius: 10px; background: var(--surface-2); color: var(--text-primary); }
.tp-theme label, .tp-settings label { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin: 10px 0 4px; }
.tp-note { color: var(--text-secondary); font-size: 14px; margin: 8px 0 0; }
.tp-suggest { color: var(--warning-text); font-size: 13px; font-weight: 600; }

.tp-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.tp-slot { position: relative; aspect-ratio: 1; border-radius: 10px; border: 1px dashed var(--border-strong); background: var(--surface-1);
  display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; cursor: pointer;
  font: inherit; font-size: 13px; color: var(--text-secondary); padding: 0; }
.tp-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tp-slot .tp-slot-letter { position: absolute; top: 4px; left: 4px; z-index: 1; }
.tp-slot.busy { opacity: 0.5; pointer-events: none; }
.tp-photos-label { font-size: 13px; font-weight: 600; color: var(--text-secondary); margin: 12px 0 0; }

.tp-letter { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; border-radius: 8px;
  font-weight: 700; font-size: 15px; padding: 0 6px; }

.tp-progress { font-size: 14px; color: var(--text-secondary); margin: 0 0 8px; }
.tp-warn { background: var(--warning-bg); color: var(--warning-text); border-radius: 8px; padding: 8px 12px; font-size: 14px; margin: 0 0 8px; }
.tp-warn ul { margin: 4px 0 0; padding-left: 18px; }

.tp-section { margin: 18px 0 8px; }
.tp-section h2 { font-size: 18px; margin: 0; }
.tp-section p { margin: 2px 0 0; color: var(--text-secondary); font-size: 13px; }

.tp-row { background: var(--surface-2); border: 0.5px solid var(--border); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.tp-row.must { border-left: 4px solid var(--accent-text); }
.tp-row.limited { opacity: 0.6; }
.tp-row.done { background: var(--success-bg); }
.tp-row-head { display: flex; gap: 10px; align-items: flex-start; }
.tp-row-name { flex: 1; min-width: 0; font: inherit; font-weight: 600; line-height: 1.3; text-align: left; background: none; border: none;
  padding: 0; color: var(--text-primary); cursor: pointer; min-height: 44px; }
.tp-row-name small { display: block; font-weight: 400; color: var(--text-secondary); font-size: 13px; }

/* The special formats must be impossible to miss. */
.tp-special { margin: 10px 0 0; border-radius: 10px; padding: 10px 12px; background: #fff1c2; color: #6b4a00; border: 2px solid #e0a800; }
.tp-special strong { display: block; font-size: 16px; letter-spacing: .02em; }
.tp-special span { font-size: 14px; }

.tp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.tp-chip { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--surface-1); color: var(--text-secondary); }
.tp-chip.window { background: var(--accent-bg); color: var(--accent-text); }
.tp-chip.window.closed { background: var(--danger-bg); color: var(--danger-text); }
.tp-chip.vegan { background: #e2f0e7; color: #2e7d5b; }
.tp-row-warn { margin: 8px 0 0; font-size: 13px; color: var(--warning-text); }
.tp-limit { margin: 8px 0 0; font-size: 13px; font-weight: 600; color: var(--text-secondary); }

.tp-row details { margin: 8px 0 0; font-size: 14px; }
.tp-row summary { cursor: pointer; color: var(--accent-text); font-weight: 600; min-height: 32px; display: flex; align-items: center; }
.tp-text { white-space: pre-wrap; word-wrap: break-word; background: var(--surface-1); border-radius: 8px; padding: 10px; margin: 6px 0 0; font-size: 14px; }
.tp-rule { color: var(--text-secondary); margin: 6px 0 0; }

.tp-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 12px 0 0; }
.tp-btn { min-height: 44px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--accent-text);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; text-align: center; padding: 4px 6px; }
.tp-btn:disabled { opacity: 0.5; cursor: default; }
.tp-posted { width: 100%; margin: 8px 0 0; min-height: 48px; border: none; border-radius: 10px; background: var(--success-fill); color: var(--on-success);
  font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.tp-posted:disabled { opacity: 0.5; cursor: default; }
.tp-done-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 10px 0 0; font-weight: 700; color: var(--success-fill); }
.tp-undo { min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface-2);
  color: var(--text-secondary); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }

.tp-held { font-size: 14px; }
.tp-held li { margin: 0 0 8px; }
.tp-held small { display: block; color: var(--text-secondary); }

.tp-settings .tp-save { margin-top: 12px; width: 100%; min-height: 44px; border: none; border-radius: 10px; background: var(--accent-text);
  color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.tp-settings .tp-save:disabled { opacity: 0.5; }
.tp-settings summary, details.tp-card > summary { cursor: pointer; font-weight: 700; min-height: 32px; display: flex; align-items: center; }

.tp-err { background: var(--danger-bg); color: var(--danger-text); border-radius: 8px; padding: 12px; }

.tp-toast { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); max-width: 448px; margin: 0 auto;
  background: #1b2420; color: #fff; border-radius: 10px; padding: 12px 14px; font-size: 15px; z-index: 50; box-shadow: 0 4px 16px rgba(0,0,0,.2); }

/* Slice 1.1 — notes, link warning, held list, group details sheet. */
.tp-chip.ok { background: var(--success-bg); color: var(--success-fill); }
.tp-noedit { margin: 8px 0 0; font-size: 13px; font-weight: 600; color: var(--warning-text); }
.tp-nolinks { margin: 10px 0 0; font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.tp-linkwarn { margin: 6px 0 0; padding: 8px 10px; border-radius: 8px; background: var(--danger-bg); color: var(--danger-text);
  border: 1.5px solid var(--status-red); font-size: 14px; font-weight: 700; }
.tp-held li { list-style: none; margin: 0 0 14px; }
.tp-held { padding: 0; margin: 0; }
.tp-held-name { font: inherit; font-weight: 600; background: none; border: none; padding: 0; color: var(--accent-text); cursor: pointer;
  text-align: left; min-height: 32px; }
.tp-held-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }

.tp-sheet { position: fixed; inset: 0; z-index: 40; background: rgba(27, 36, 32, 0.45); display: flex; align-items: flex-end; justify-content: center; }
.tp-sheet[hidden] { display: none; }
.tp-sheet-card { background: var(--surface-2); width: 100%; max-width: 480px; max-height: 88vh; overflow-y: auto; border-radius: 16px 16px 0 0;
  padding: 16px 16px calc(20px + env(safe-area-inset-bottom)); }
.tp-sheet-head { display: flex; align-items: flex-start; gap: 8px; }
.tp-sheet-head h2 { flex: 1; font-size: 18px; margin: 4px 0 10px; line-height: 1.3; }
.tp-sheet-close { min-width: 44px; min-height: 44px; border: none; background: var(--surface-1); border-radius: 10px; font-size: 24px;
  line-height: 1; cursor: pointer; color: var(--text-secondary); }
.tp-open-wide { width: 100%; margin: 0 0 8px; }
.tp-dl { margin: 0; font-size: 14px; }
.tp-dl-row { display: grid; grid-template-columns: 38% 1fr; gap: 8px; padding: 7px 0; border-bottom: 0.5px solid var(--border); }
.tp-dl-row dt { color: var(--text-secondary); font-weight: 600; }
.tp-dl-row dd { margin: 0; overflow-wrap: anywhere; }
.tp-hold { margin-top: 10px; width: 100%; min-height: 44px; border-radius: 10px; border: 1.5px solid var(--status-orange); background: var(--warning-bg);
  color: var(--warning-text); font: inherit; font-weight: 700; cursor: pointer; }
.tp-hold:disabled { opacity: 0.5; }

/* Slice 1.2 — rule notes by Copy text. */
.tp-rulenotes { list-style: none; margin: 10px 0 0; padding: 0; font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.tp-rulenotes li { margin: 0 0 4px; }

/* Slice 2 Part B — check-ins. */
.tp-due { display: inline-block; vertical-align: middle; margin-left: 6px; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  background: var(--warning-bg); color: var(--warning-text); }
.tp-due[hidden] { display: none; }
.tp-checkins { border: 2px solid var(--status-orange); }
.tp-checkin { padding: 10px 0; border-top: 0.5px solid var(--border); }
.tp-checkin:first-of-type { border-top: none; }
.tp-checkin-head strong { display: block; line-height: 1.3; }
.tp-checkin-head small { color: var(--text-secondary); font-size: 13px; }
.tp-checkin .tp-open-wide { margin: 8px 0; }
.tp-checkin-counts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tp-checkin-counts label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.tp-checkin-counts input { width: 100%; font: inherit; font-size: 16px; padding: 8px 10px; border: 1px solid var(--border-strong); border-radius: 10px; margin-top: 2px; }
.tp-checkin-answers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.tp-skip { margin-top: 6px; min-height: 40px; width: 100%; background: none; border: none; color: var(--text-secondary); font: inherit; font-size: 14px; cursor: pointer; }

/* Slice 2 Part A — special posts. */
.tp-special-card { border: 2px solid #e0a800; }
.tp-sp-version { padding: 8px 0; border-top: 0.5px solid var(--border); font-size: 14px; }
.tp-sp-version:first-of-type { border-top: none; }
.tp-sp-text { white-space: pre-wrap; }
.tp-sp-photos { grid-template-columns: repeat(2, 1fr); max-width: 240px; }
.tp-sp-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tp-sp-form input[type="date"] { width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: 10px; }

/* Slice 2 Part C — responsiveness. */
.tp-chip.sg-keep { background: var(--success-bg); color: var(--success-fill); }
.tp-chip.sg-fix { background: var(--warning-bg); color: var(--warning-text); }
.tp-chip.sg-drop { background: var(--danger-bg); color: var(--danger-text); }
.tp-stats { background: var(--surface-1); border-radius: 10px; padding: 10px 12px; margin: 0 0 10px; }
.tp-stats-head { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: space-between; }
.tp-stats .tp-dl-row:last-child { border-bottom: none; }

/* Slice 2.1 — post-as line, download, pacing. */
.tp-postas { margin: -2px 0 8px; font-size: 14px; color: var(--text-secondary); }
.tp-postas.strong { background: #fff1c2; color: #6b4a00; border: 2px solid #e0a800; border-radius: 10px; padding: 8px 10px; font-size: 15px; }
.tp-postas.strong span { display: block; font-size: 13px; margin-top: 2px; }
.tp-btn.tp-primary { background: var(--accent-text); color: #fff; border-color: var(--accent-text); }
.tp-btn.tp-secondary { color: var(--text-secondary); }
.tp-btn.tp-dim { opacity: 0.45; }
.tp-pacing { background: var(--accent-bg); color: var(--accent-text); border-radius: 10px; padding: 10px 12px; margin: 0 0 12px; font-size: 14px; }
.tp-pacing strong { display: block; font-size: 16px; }

/* Slice 2.2 — "did you post?" bar, opened-not-marked amber, log as posted. */
.tp-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff7e0; border-top: 2px solid #e0a800;
  box-shadow: 0 -4px 16px rgba(0,0,0,.12); }
.tp-bar[hidden] { display: none; }
.tp-bar-q { flex: 1 1 100%; font-weight: 700; color: #6b4a00; }
.tp-bar-yes { flex: 2; min-height: 48px; border: none; border-radius: 10px; background: var(--success-fill); color: var(--on-success); font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; }
.tp-bar-yes:disabled { opacity: .5; }
.tp-bar-no { flex: 1; min-height: 48px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface-2); color: var(--text-secondary); font: inherit; font-weight: 600; cursor: pointer; }
body.tp-bar-on .page { padding-bottom: 150px; }
body.tp-bar-on .tp-toast { bottom: calc(120px + env(safe-area-inset-bottom)); }
.tp-row.opened { border-color: #e0a800; box-shadow: 0 0 0 2px #f3d27a inset; }
.tp-opened-line { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: #8a5a12; }
.tp-opened-line:empty { display: none; }
.tp-posted.tp-backlog { background: var(--accent-text); }
.tp-settings select, .tp-settings input[type="time"] { width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface-2); }
.tp-sheet-card .tp-checkin-answers { grid-template-columns: 1fr 1fr; }

/* Slice 2.3 — outcome on the row (icon + words + colour), admin feedback. */
.tp-done-line { flex-wrap: wrap; }
.tp-outcome { flex: 1; min-height: 44px; text-align: left; border-radius: 10px; border: 1.5px solid; padding: 8px 12px; font: inherit;
  font-weight: 700; font-size: 15px; cursor: pointer; }
.tp-outcome small { font-weight: 500; opacity: .8; }
.oc-awaiting { background: var(--accent-bg); color: var(--accent-text); border-color: #9cc3c9; }
.oc-published { background: var(--success-bg); color: var(--success-fill); border-color: #8fc4a5; }
.oc-pending { background: var(--warning-bg); color: var(--warning-text); border-color: #e0b465; }
.oc-declined { background: var(--danger-bg); color: var(--danger-text); border-color: #e09a95; }
.oc-removed { background: #f1d4d4; color: #5c1414; border-color: #a85555; }
.tp-count { font-weight: 700; padding: 0 4px; border-radius: 4px; }
.tp-count.oc-awaiting, .tp-count.oc-published, .tp-count.oc-pending, .tp-count.oc-declined, .tp-count.oc-removed { border: none; }
.tp-feedback { margin: 6px 0 0; font-size: 13px; color: var(--danger-text); }
.tp-fb-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-top: 8px; }
.tp-fb-label textarea, .tp-settings textarea#tp-oc-fb { width: 100%; font: inherit; font-size: 16px; padding: 8px 10px; border: 1px solid var(--border-strong); border-radius: 10px; margin-top: 2px; }

/* Slice 3 — the daily run sheet. Laptop first: the page widens on a desktop screen. */
@media (min-width: 900px) { body .page { max-width: 760px; } }
.tp-plan-head { margin: 0 0 12px; font-size: 15px; color: var(--text-secondary); line-height: 1.5; }
.tp-plan-head strong { color: var(--text-primary); }
.tp-pc > summary { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; cursor: pointer; min-height: 32px; }
.tp-pc > summary::-webkit-details-marker { display: none; }
.tp-pc > summary::before { content: "\25B8"; color: var(--text-muted); }
.tp-pc[open] > summary::before { content: "\25BE"; }
.tp-pc-time { font-size: 13px; font-weight: 700; color: var(--accent-text); background: var(--accent-bg); border-radius: 6px; padding: 2px 6px; }
.tp-pc-title { font-weight: 700; font-size: 17px; flex: 1; }
.tp-pc-box { font-size: 12px; color: var(--text-secondary); border: 1px solid var(--border-strong); border-radius: 999px; padding: 1px 8px; }
.tp-pc-status { font-size: 13px; font-weight: 700; color: var(--text-secondary); }
.tp-pc-status.done { color: var(--success-fill); }
.tp-pc-body { margin-top: 10px; }
.tp-pc .tp-card { box-shadow: none; }
.tp-item-title { font-size: 16px; margin: 8px 0 6px; }
.tp-over { color: var(--danger-text); font-weight: 700; }
.tp-check { display: flex; align-items: center; gap: 8px; min-height: 40px; font-size: 15px; cursor: pointer; }
.tp-check input { width: 20px; height: 20px; }
.tp-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.tp-num { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.tp-num input { display: block; width: 100%; margin-top: 4px; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface-2); color: var(--text-primary); }
.tp-num small { display: block; font-weight: 500; margin-top: 2px; }
.tp-pc .tp-save { margin-top: 10px; width: 100%; min-height: 44px; border: none; border-radius: 10px; background: var(--accent-text); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.tp-pc .tp-save:disabled { opacity: .5; }
.tp-charts { margin-top: 12px; }
.tp-chart { margin: 0 0 10px; }
.tp-chart figcaption { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.tp-chart figcaption strong { color: var(--text-primary); }
.tp-chart svg { width: 100%; height: auto; display: block; }
.tp-chart-line { fill: none; stroke: var(--accent-text); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.tp-chart-hit { fill: var(--accent-text); fill-opacity: 0; stroke: none; }
.tp-chart-hit:hover { fill-opacity: 1; }
.tp-chart-grid { stroke: var(--border); stroke-width: 1; }
.tp-chart-axis { font-size: 11px; fill: var(--text-muted); }
.tp-chart-post { fill: var(--text-muted); }
.tp-table-wrap summary { cursor: pointer; font-size: 14px; color: var(--accent-text); font-weight: 600; min-height: 32px; display: flex; align-items: center; }
.tp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tp-table th, .tp-table td { text-align: left; padding: 6px 4px; border-bottom: 0.5px solid var(--border); }
.tp-countdown { font-size: 18px; font-weight: 700; margin: 0 0 6px; font-variant-numeric: tabular-nums; }
.tp-replies { list-style: none; padding: 0; margin: 0; }
.tp-replies li { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 0.5px solid var(--border); }
.tp-btn.tp-mini { min-height: 36px; padding: 2px 12px; font-size: 13px; }
.tp-linkbtn { background: none; border: none; color: var(--accent-text); font: inherit; font-weight: 600; cursor: pointer; padding: 4px; }
.tp-pending-first { margin: 8px 0 0; padding: 8px 10px; border-radius: 8px; background: var(--accent-bg); color: var(--accent-text); font-size: 13px; font-weight: 600; }
.tp-chip.poster { background: #ebe2f6; color: #5b3a8c; }
.tp-poster-slot { border-style: dotted; }
.tp-slot-wide { width: 160px; aspect-ratio: 1; }
.tp-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.tp-tab { min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text-secondary); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.tp-tab.on { background: var(--accent-text); border-color: var(--accent-text); color: #fff; }
.tp-queue { padding-left: 20px; margin: 0 0 10px; }
.tp-queue li { margin: 0 0 10px; }
.tp-q-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tp-q-actions { display: flex; gap: 6px; margin-top: 4px; }
.tp-views { margin-bottom: 10px; }

/* Slice 4: the Instagram grid card. */
.tp-ig-badge { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; flex-wrap: wrap; }
.tp-ig-badge small { font-weight: 500; color: var(--text-secondary); }
.tp-ig-sw { display: inline-block; flex: none; width: 22px; height: 22px; border-radius: 6px; border: 2px solid transparent; vertical-align: middle; margin-right: 6px; }
.tp-ig-sw.photo { background: var(--surface-2); border: 1px dashed var(--border-strong); }
/* OPAQUE: the colour see-through (70%) over a checkerboard, so it reads differently from a solid tile. */
.tp-ig-sw.opaque { position: relative; overflow: hidden; border: 1px solid var(--border-strong);
  background: repeating-conic-gradient(#bbb 0 25%, #fff 0 50%) 0 0 / 8px 8px; }
.tp-ig-sw.opaque span { position: absolute; inset: 0; opacity: .7; }
.tp-ig-meta { margin: 6px 0 0; font-size: 14px; color: var(--text-secondary); }
.tp-ig-note { margin: 4px 0 0; font-weight: 600; }
.tp-ig-cover { margin: 6px 0 0; font-size: 14px; font-weight: 600; color: var(--accent-text); }
.tp-ig-thumb { display: block; margin: 8px 0; padding: 0; border: 1px solid var(--border); border-radius: 8px; background: none; cursor: pointer; width: 160px; aspect-ratio: 4 / 5; overflow: hidden; }
.tp-ig-thumb img, .tp-ig-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tp-ig-preview-head { display: flex; justify-content: space-between; align-items: center; margin: 14px 0 6px; flex-wrap: wrap; gap: 6px; }
.tp-ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; max-width: 420px; }
.tp-ig-tile { position: relative; aspect-ratio: 4 / 5; border: none; padding: 0; overflow: hidden; cursor: pointer; background: var(--surface-2); color: var(--text-secondary);
  font: inherit; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; text-align: center; }
.tp-ig-tile.opaque { background-image: none; }
.tp-ig-tile.planned { opacity: .45; outline: 2px dashed var(--border-strong); outline-offset: -4px; }
.tp-ig-tile.off::after { content: "!"; position: absolute; top: 3px; right: 5px; font-size: 13px; color: var(--danger-text); }
.tp-ig-tile-text { padding: 4px; line-height: 1.25; }
.tp-ig-num { position: absolute; left: 4px; bottom: 3px; font-size: 10px; font-weight: 700; background: rgba(255,255,255,.8); color: #222; border-radius: 4px; padding: 0 4px; }
.tp-ig-tools { margin-top: 14px; border-top: 0.5px solid var(--border); padding-top: 8px; }
.tp-ig-tools > summary { cursor: pointer; font-weight: 600; color: var(--accent-text); min-height: 36px; display: flex; align-items: center; }
.tp-ig-rows { list-style: none; padding: 0; margin: 0 0 8px; }
.tp-ig-row { display: flex; align-items: center; gap: 6px; padding: 6px 0; border-bottom: 0.5px solid var(--border); }
.tp-ig-n { width: 34px; flex: none; font-weight: 700; font-variant-numeric: tabular-nums; }
.tp-ig-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tp-ig-row-main span, .tp-ig-row-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-ig-pal-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 0.5px solid var(--border); }
.tp-ig-pal-key { width: 70px; font-weight: 700; font-size: 13px; }
.tp-ig-pal-row input[type="text"] { flex: 1 1 140px; min-width: 0; font: inherit; padding: 6px 8px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface-2); color: var(--text-primary); }
.tp-ig-pal-c { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--text-secondary); }
.tp-ig-pal-c input[type="color"] { width: 36px; height: 30px; padding: 0; border: 1px solid var(--border-strong); border-radius: 6px; background: none; }
.tp-ig-hl { list-style: none; padding: 0; margin: 0 0 8px; }
.tp-ig-hl li { display: flex; align-items: center; gap: 6px; padding: 6px 0; border-bottom: 0.5px solid var(--border); flex-wrap: wrap; }
.tp-ig-hl-dot { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; flex: none; }
.tp-ig-hl input, .tp-ig-hl select { font: inherit; padding: 6px 8px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface-2); color: var(--text-primary); min-width: 0; }
.tp-ig-hl input[data-hl-name] { flex: 1 1 120px; }
.tp-ig-hl-icon { width: 90px; }

/* Slice 4.1: the Grid plan view. */
.tp-viewtabs { margin: 0 0 12px; }
.tp-gp-head h2 { margin: 0 0 4px; }
.tp-gp-count { margin: 0 0 4px; font-size: 16px; }
.tp-tab small { font-weight: 500; opacity: .75; margin-left: 2px; }
.tp-gp-list { list-style: none; padding: 0; margin: 0; }
.tp-gp-list > li { margin: 0 0 6px; }
.tp-gp-row { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; padding: 8px 10px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface, #fff); color: var(--text-primary); font: inherit; cursor: pointer; min-height: 64px; }
.tp-gp-row.open { border-color: var(--accent-text); border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.tp-gp-row.next { box-shadow: inset 4px 0 0 var(--accent-text); }
.tp-gp-row .tp-ig-sw { margin-right: 0; }
.tp-gp-n { width: 36px; flex: none; font-weight: 700; font-variant-numeric: tabular-nums; display: flex; flex-direction: column; line-height: 1.1; }
.tp-gp-n small { font-size: 10px; font-weight: 600; color: var(--accent-text); text-transform: uppercase; }
.tp-gp-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.tp-gp-look { font-size: 13px; font-weight: 700; }
.tp-gp-pillar { font-size: 13px; color: var(--text-secondary); }
.tp-gp-cap { font-size: 13px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-gp-thumb { width: 40px; height: 50px; flex: none; border-radius: 4px; overflow: hidden; background: var(--surface-2); }
.tp-gp-thumb.empty { border: 1px dashed var(--border-strong); background: none; }
.tp-gp-thumb img, .tp-gp-drop-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tp-chip.gp-ready { background: #dcefe3; color: #1f6b3c; }
.tp-chip.gp-posted { background: var(--surface-2); color: var(--text-secondary); }
.tp-chip.gp-needs_photo, .tp-chip.gp-needs_caption, .tp-chip.gp-needs_both { background: #fbeed9; color: #8a5300; }
.tp-gp-editor { border: 1px solid var(--accent-text); border-top: none; border-radius: 0 0 12px 12px; padding: 10px 12px 12px; background: var(--surface, #fff); }
.tp-gp-drop { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px; border: 2px dashed var(--border-strong); border-radius: 12px; background: var(--surface-2); }
.tp-gp-drop > span:not(.tp-gp-drop-img) { flex: 1 1 180px; }
.tp-gp-drop.over { border-color: var(--accent-text); background: var(--accent-bg); }
.tp-gp-drop.busy { opacity: .5; pointer-events: none; }
.tp-gp-drop-img { width: 72px; height: 90px; flex: none; border-radius: 6px; overflow: hidden; }
.tp-gp-batch { margin-top: 10px; }
.tp-gp-busy { font-weight: 600; color: var(--accent-text); }
.tp-gp-preview ul { list-style: none; padding: 0; margin: 0 0 8px; }
.tp-gp-preview li { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 0.5px solid var(--border); }
.tp-gp-preview li img { width: 48px; height: 60px; object-fit: cover; border-radius: 4px; flex: none; }
.tp-gp-preview li.skip img { opacity: .4; }
.tp-gp-preview code { font-size: 12px; word-break: break-all; }
@media (max-width: 480px) {
  .tp-gp-row { flex-wrap: wrap; }
  .tp-gp-main { flex-basis: calc(100% - 140px); }
}

/* Slice 2.4: check-ins as a run-sheet card. Answer buttons are neutral (no answer looks pre-picked). */
.tp-pc .tp-checkin:first-of-type { border-top: none; }
.tp-checkin-more { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tp-checkin-done { list-style: none; padding: 0; margin: 8px 0 0; }
.tp-checkin-done li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 0.5px solid var(--border); }
.tp-checkin-done small { color: var(--text-secondary); }
.tp-older { margin-top: 10px; border-top: 0.5px solid var(--border); padding-top: 6px; }
.tp-older > summary { cursor: pointer; font-weight: 600; color: var(--accent-text); min-height: 40px; display: flex; align-items: center; }

/* Slice 2.5 — two-step check-ins, answered ones fold in place; posted group cards fold to a green line;
   the Sunday pending sweep. */
.oc-commented, .tp-count.oc-commented { background: var(--success-bg); color: var(--success-fill); border: none; }
.tp-ci-step { margin-top: 8px; padding: 10px; border-radius: 10px; background: var(--surface-2); }
.tp-ci-step-head { margin: 0 0 8px; font-size: 15px; }
.tp-ci-step textarea { width: 100%; font: inherit; font-size: 16px; padding: 8px 10px; border: 1px solid var(--border-strong); border-radius: 10px; margin-top: 2px; box-sizing: border-box; }
.tp-ci-save { width: 100%; min-height: 48px; margin-top: 10px; }
.tp-ci-save:disabled { opacity: .45; cursor: not-allowed; }
.tp-ci-hint { margin: 6px 0 0; font-size: 13px; }
.tp-ci-back { display: block; margin-top: 8px; background: none; border: none; padding: 6px 0; color: var(--accent-text); font: inherit; font-weight: 600; cursor: pointer; }
.tp-checkin.tp-ci-done { display: flex; align-items: center; gap: 8px; padding: 8px 0; color: var(--text-secondary); }
.tp-ci-done-text { flex: 1; font-size: 14px; line-height: 1.35; }
.tp-ci-done-text strong { color: var(--text-secondary); }
.tp-ci-done-text small { display: block; font-size: 13px; }
.tp-ci-done-actions { display: flex; gap: 6px; flex-shrink: 0; }
.tp-ci-done-actions .tp-undo { min-height: 40px; padding: 0 10px; }
.tp-row.tp-row-line { display: flex; align-items: center; gap: 8px; padding: 6px 8px; background: var(--success-bg); border-color: #8fc4a5; }
.tp-row-line-main { flex: 1; min-height: 44px; text-align: left; background: none; border: none; padding: 4px; font: inherit; font-size: 14px;
  color: var(--success-fill); cursor: pointer; line-height: 1.35; }
.tp-row-line .tp-undo { min-height: 40px; padding: 0 12px; flex-shrink: 0; }
.tp-row-collapse { display: block; margin: -4px 0 6px auto; font-size: 13px; }
.tp-sweep { list-style: none; margin: 0; padding: 0; }
.tp-sweep li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 0.5px solid var(--border); }
.tp-sweep li.cleared .tp-sweep-name { color: var(--text-secondary); }
.tp-sweep-name { flex: 1; line-height: 1.3; }
.tp-sweep-name small { display: block; color: var(--text-secondary); font-size: 13px; }
.tp-settings select#tp-bl-date { margin-bottom: 4px; }

/* 0128 — the daily keyword check card. */
.tp-kw { padding: 10px 0; border-top: 0.5px solid var(--border); }
.tp-kw:first-of-type { border-top: none; }
.tp-kw-head strong { font-size: 16px; }
.tp-kw-head small { color: var(--text-secondary); font-size: 13px; display: block; }
.tp-kw-actions { margin: 6px 0; }
.tp-kw-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tp-kw-fields label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.tp-kw-fields input { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; padding: 8px 10px; border: 1px solid var(--border-strong); border-radius: 10px; margin-top: 2px; }
.tp-kw-tag { display: block; font-weight: 500; font-size: 11.5px; margin-top: 2px; }
.tp-kw-tag.read { color: var(--success-fill); }
.tp-kw-tag.edited { color: var(--warning-text); }
.tp-kw-saved { margin: 4px 0; font-size: 14px; color: var(--success-fill); }
.tp-kw-saved small { color: var(--text-secondary); }
.tp-kw-foot { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.tp-kw-foot .tp-posted { flex: 1; }
.tp-kw-pastebox { margin-top: 10px; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface-1, #f4f2ec); }
.tp-kw-pastebox label small { display: block; font-weight: 400; color: var(--text-secondary); margin-top: 2px; }
.tp-kw-pastebox code, .tp-kw-preview code, .tp-kw-problems code { font-size: 12.5px; word-break: break-word; }
.tp-kw-pastebox textarea { width: 100%; box-sizing: border-box; font: 14px ui-monospace, SFMono-Regular, Menlo, monospace; padding: 8px 10px; border: 1px solid var(--border-strong); border-radius: 8px; margin-top: 6px; }
.tp-kw-problems { margin: 8px 0 0; padding-left: 18px; font-size: 13.5px; color: #7a1712; }
.tp-kw-problems li { margin-bottom: 4px; }
.tp-kw-others { color: var(--text-secondary); }
/* Marketing upkeep (0132): recurring checks, collapse in place with Undo like the check-ins. */
.tp-up { padding: 10px 0; border-top: 0.5px solid var(--border); }
.tp-up:first-child { border-top: none; }
.tp-up-head strong { font-size: 16px; margin-right: 6px; }
.tp-up-head small { color: var(--text-secondary); font-size: 13px; display: block; }
.tp-up-overdue { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: #fbe4e2; color: #7a1712; }
.tp-up-snoozed { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--surface-1, #f4f2ec); color: var(--text-secondary); }
.tp-up-note { margin: 4px 0 6px; }
.tp-up-input { width: 100%; box-sizing: border-box; font: inherit; font-size: 15px; padding: 8px 10px; border: 1px solid var(--border-strong); border-radius: 10px; margin: 6px 0; }
.tp-up-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tp-up-actions .tp-primary { flex: 1; min-width: 120px; }
.tp-up-done { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--text-secondary); }
.tp-up-done small { display: block; }
/* Personal-profile groups (9 Nov 2026): shaded card, thick left border, a PERSONAL PROFILE tag; page cards get a
   quiet chip; the switch-back banner after a personal post. Same yellow family as the post-as box. */
.tp-row.personal { background: #fff8dc; border: 1px solid #e0a800; border-left: 8px solid #e0a800; }
.tp-row.personal.done { background: #fff8dc; }
.tp-row-line.personal { background: #fff3c4; border-left: 8px solid #e0a800; }
.tp-acct-tag { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.tp-acct-tag.personal { background: #e0a800; color: #3b2a00; letter-spacing: 0.02em; align-self: center; }
.tp-acct-strip { margin: -12px -12px 10px -4px; padding: 6px 12px; background: #e0a800; color: #3b2a00; font-weight: 800; font-size: 14px; letter-spacing: 0.04em; border-radius: 0 11px 0 0; }
.tp-profile-sheet [data-profile-ok] { min-height: 48px; font-size: 16px; margin-top: 4px; }
.tp-acct-tag.page { background: var(--surface-1, #f4f2ec); color: var(--text-secondary); font-weight: 600; }
.tp-switchback { margin: 0 0 8px; padding: 8px 10px; border-radius: 10px; background: #e3f0f1; color: #13474d; border: 2px solid #1f6f78; font-size: 14.5px; }
.tp-profile-sheet p { font-size: 16px; line-height: 1.45; }
/* The daily Note (0138): the note itself, large, like the bubble it goes in. */
.tp-note-text { margin: 4px 0 0; padding: 10px 14px; border-radius: 18px; background: var(--surface-1, #f4f2ec); font-size: 17px; line-height: 1.35; display: inline-block; max-width: 100%; }
/* Listings (0139): amber decide, red update-everywhere, green done; the shared platform checklist. */
.tp-li.amber { border-left: 6px solid #e0a800; padding-left: 10px; background: #fff8e1; border-radius: 8px; margin-bottom: 8px; }
.tp-li.red { border-left: 6px solid #c0392b; padding-left: 10px; background: #fdf0ee; border-radius: 8px; margin-bottom: 8px; }
.tp-li.green { border-left: 6px solid var(--success-fill, #2e7d4f); padding-left: 10px; }
.tp-li-tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; margin-left: 6px; }
.tp-li-tag.amber { background: #e0a800; color: #3b2a00; }
.tp-li-tag.red { background: #c0392b; color: #fff; }
.tp-lc { margin-top: 6px; }
.tp-lc-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 0.5px solid var(--border); font-size: 15px; }
.tp-lc-row input[type="checkbox"] { width: 22px; height: 22px; flex: none; }
.tp-lc-name { flex: 1; min-width: 0; }
.tp-lc-name small { display: block; font-size: 12.5px; color: var(--text-secondary); overflow-wrap: anywhere; }
.tp-sh-form { margin-top: 6px; }
/* Group post rules (0140): the red missing-ABN box with "Copy anyway", the remove-previous step, the rules note. */
.tp-abn-red { margin: 8px 0 0; padding: 10px 12px; border-radius: 10px; background: #fbe4e2; color: #7a1712; border: 2px solid #c0392b; font-size: 14px; }
.tp-abn-red .tp-danger { display: block; width: 100%; margin-top: 8px; background: #c0392b; color: #fff; border-color: #c0392b; }
.tp-prev-step { margin: 8px 0 0; padding: 8px 10px; border-radius: 10px; background: #fff4e0; border: 1px solid #e0a800; font-size: 14px; }
.tp-prev-step.flash { border: 2px solid #c0392b; background: #fdf0ee; }
.tp-prev-step input[type="checkbox"] { width: 22px; height: 22px; }
.tp-rules-note { margin: 8px 0 0; font-size: 13.5px; color: var(--text-secondary); }
.tp-biz-head { font-size: 15px; margin: 6px 0 4px; }
.tp-biz-hours { margin: 2px 0 8px; font-size: 14px; background: var(--surface-1, #f4f2ec); border-radius: 8px; padding: 6px 10px; }
.tp-decline-picks { display: grid; gap: 2px; margin-bottom: 6px; }

/* ---- Check-ins v2 (0142): Your content links, personal-profile group, Earlier posts, compact list, results ---- */
.tp-checkin-head { display: flex; gap: 8px; align-items: flex-start; justify-content: space-between; }
.tp-ci-links { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.tp-ci-open { min-height: 36px; padding: 0 12px; font-size: 14px; display: inline-flex; align-items: center; text-decoration: none; }
.tp-ci-pending { font-size: 13px; color: var(--text-secondary); }
.tp-checkin.personal, .tp-rd-group.personal { background: #fff8dc; border: 1px solid #e0a800; border-left: 8px solid #e0a800; border-radius: 12px; padding: 10px 12px; margin: 8px 0; }
.tp-checkin.personal .tp-acct-strip { margin: -10px -12px 8px -4px; }
.tp-ci-profile-head { font-size: 15px; margin: 16px 0 4px; padding: 6px 10px; background: #e0a800; color: #3b2a00; border-radius: 8px; }
.tp-ci-switch-back { font-weight: 700; margin: 8px 0 4px; padding: 8px 10px; background: var(--surface-1, #f4f2ec); border-radius: 8px; }
.tp-ci-compact-toggle { font-size: 13px; color: var(--text-secondary); margin: 0 0 6px; }
.tp-checkin-counts { grid-template-columns: 1fr 1fr 1fr; }
.tp-earlier { margin-top: 6px; font-size: 13.5px; }
.tp-earlier > summary { color: var(--text-secondary); cursor: pointer; padding: 4px 0; }
.tp-earlier-other { margin-top: 14px; border-top: 0.5px solid var(--border); padding-top: 8px; font-size: 14px; }
.tp-rd-list { list-style: none; margin: 4px 0; padding: 0; }
.tp-rd { padding: 6px 0; border-top: 0.5px dashed var(--border); }
.tp-rd:first-child { border-top: none; }
.tp-rd-line { display: flex; gap: 8px; justify-content: space-between; align-items: flex-start; }
.tp-rd-line small { color: var(--text-secondary); }
.tp-rd-actions { display: flex; gap: 6px; flex-shrink: 0; }
.tp-rd-history { display: block; color: var(--text-secondary); margin-top: 2px; }
.tp-rd-group { padding: 8px 0; border-top: 0.5px solid var(--border); }
/* Compact: one row per group -- name, the four answers inline; numbers only after Published. */
.tp-ci-list.compact .tp-checkin-head small, .tp-ci-list.compact .tp-checkin-more, .tp-ci-list.compact .tp-earlier { display: none; }
/* Group results */
.tp-results-wrap { overflow-x: auto; }
.tp-results { border-collapse: collapse; width: 100%; font-size: 13px; }
.tp-results th, .tp-results td { padding: 6px; border-bottom: 0.5px solid var(--border); text-align: left; vertical-align: top; }
.tp-results td.num { text-align: right; white-space: nowrap; }
.tp-results td small { display: block; color: var(--text-secondary); }
.tp-results tr.personal td:first-child { border-left: 4px solid #e0a800; }
.tp-th-sort { font: inherit; font-weight: 700; background: none; border: none; padding: 0; cursor: pointer; color: inherit; white-space: nowrap; }
.tp-results-reads { list-style: none; margin: 0; padding: 0; min-width: 220px; }
.tp-results-reads li { padding: 1px 0; }
/* Compact = ONE line per group (name -> Your content, Pending | the four outcome icons), so 20+ fit on an iPad screen. */
.tp-ci-list.compact .tp-checkin:not(.tp-ci-done) { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; align-items: center; padding: 4px 0; }
.tp-ci-list.compact .tp-checkin.personal:not(.tp-ci-done) { padding: 4px 10px; margin: 4px 0; }
.tp-ci-list.compact .tp-checkin > .tp-acct-strip { display: none; }
.tp-ci-list.compact .tp-checkin-answers { grid-template-columns: repeat(5, 40px); gap: 4px; margin-top: 0; }
.tp-ci-list.compact .tp-checkin-answers .tp-btn.tp-ci-icon { min-height: 36px; padding: 0; font-size: 18px; }
.tp-ci-list.compact .tp-ci-step { grid-column: 1 / -1; }
.tp-ci-list.compact .tp-ci-done { padding: 4px 0; }
.tp-ci-list.compact .tp-ci-done .tp-ci-done-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-ci-list.compact .tp-ci-done .tp-ci-done-text strong { display: inline; }
.tp-ci-list.compact .tp-ci-done .tp-ci-done-text small { display: inline; margin-left: 6px; }
.tp-ci-list.compact .tp-ci-done .tp-undo { min-height: 32px; }
.tp-ci-legend { font-size: 12.5px; color: var(--text-secondary); margin: 0 0 4px; }
.tp-ci-head-compact { display: flex; align-items: baseline; gap: 8px; min-width: 0; justify-content: flex-start; }
.tp-ci-name-link { font-weight: 700; color: inherit; text-decoration: none; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.tp-ci-head-compact .tp-ci-pending { flex-shrink: 0; font-size: 12px; }

/* ---- Slot captions (0143): IG / FB captions + alt text ---- */
.tp-ig-hint { background: #fff4e0; color: #6b4a00; border-radius: 8px; padding: 6px 10px; font-size: 13.5px; margin: 6px 0; }
.tp-ig-fb { margin: 6px 0 4px; }
.tp-ig-fb-preview { white-space: pre-wrap; font-size: 14px; max-height: 220px; overflow-y: auto; }
.tp-ig-alt-count { font-size: 12.5px; color: var(--text-secondary); margin: 2px 0 6px; }
.tp-alt-short, .tp-alt-long, .tp-alt-empty { color: #8a5a00; font-weight: 600; }
.tp-alt-ok { color: var(--success-fill, #2e7d4f); font-weight: 600; }
.tp-btn.tp-copied { background: var(--success-fill, #2e7d4f); color: #fff; border-color: transparent; }

/* ---- Check-ins v3 (0144): sections, Still pending, 14-day update, Keep / Watch / Review, admin log ---- */
.tp-chip.sg-watch { background: var(--warning-bg); color: var(--warning-text); }
.tp-chip.sg-review { background: var(--danger-bg); color: var(--danger-text); }
.tp-chip.sg-too_early { background: var(--surface-1, #f4f2ec); color: var(--text-secondary); }
.tp-sg-hint { font-size: 13px; color: var(--text-secondary); margin: 2px 0 6px; }
.tp-ci-section { margin: 8px 0; border-top: 0.5px solid var(--border); padding-top: 6px; }
.tp-ci-section > summary { cursor: pointer; padding: 4px 0; font-size: 15px; }
.tp-ci-section > summary small { color: var(--text-secondary); font-weight: 400; }
.tp-ci-count { display: inline-block; min-width: 22px; padding: 0 7px; border-radius: 999px; background: var(--surface-1, #f4f2ec); font-size: 12.5px; text-align: center; }
.tp-pending-days { color: #8a5a00; }
.tp-sp-answers { grid-template-columns: 1fr 1fr; }
.tp-sp-answers .tp-sp-still { grid-column: 1 / -1; background: none; border-style: dashed; }
.tp-fu-group { padding: 8px 0; border-top: 0.5px solid var(--border); }
.tp-fu-group.personal { background: #fff8dc; border: 1px solid #e0a800; border-left: 8px solid #e0a800; border-radius: 12px; padding: 8px 10px; margin: 6px 0; }
.tp-fu { padding: 6px 0; border-top: 0.5px dashed var(--border); }
.tp-fu-line { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; }
.tp-fu-line small { color: var(--text-secondary); }
.tp-fu .tp-ci-save { margin-top: 6px; }
.tp-fbc { display: inline-flex; gap: 4px; align-items: center; }
.tp-fbc input { width: 64px; font: inherit; font-size: 14px; padding: 4px 6px; border: 1px solid var(--border-strong); border-radius: 8px; }
.tp-results td small { display: block; color: var(--text-secondary); }
.tp-outcome.oc-withdrawn { background: var(--surface-1, #f4f2ec); color: var(--text-secondary); }
.tp-chip { white-space: nowrap; }
/* The scorecard as one card per group (each figure labelled), so nothing is cut off or squeezed. Every width: the
   Today's Posts column is narrow even on an iPad. */
.tp-scorecard thead { display: none; }
.tp-scorecard, .tp-scorecard tbody, .tp-scorecard tr, .tp-scorecard td { display: block; width: 100%; }
.tp-scorecard tr { border: 1px solid var(--border); border-radius: 12px; padding: 8px 10px; margin-bottom: 10px; }
.tp-scorecard tr.personal { border-left: 6px solid #e0a800; }
.tp-scorecard td { border: none; padding: 3px 0; text-align: left; display: grid; grid-template-columns: 112px 1fr; gap: 8px; }
.tp-scorecard td.tp-r-name { display: block; font-size: 15px; }
.tp-scorecard td.num { text-align: left; white-space: normal; }
.tp-scorecard td::before { content: attr(data-label); color: var(--text-secondary); font-size: 12.5px; }
.tp-scorecard td.tp-r-name::before { content: none; }
.tp-scorecard td > small, .tp-scorecard td > ul, .tp-scorecard td > .tp-fbc, .tp-scorecard td > strong, .tp-scorecard td > .tp-chip { grid-column: 2; }
.tp-scorecard td > small { margin-top: -4px; }
.tp-scorecard td > .tp-chip { justify-self: start; }
.tp-scorecard .tp-results-reads { min-width: 0; }
.tp-results-wrap { overflow-x: visible; }

/* ---- Group finder (0145) ---- */
.tp-fd-area { margin: 8px 0; border-top: 0.5px solid var(--border); padding-top: 6px; }
.tp-fd-area > summary { cursor: pointer; padding: 4px 0; }
.tp-fd-area > summary small { color: var(--text-secondary); }
.tp-fd-suburb { padding: 8px 0; border-top: 0.5px dashed var(--border); }
.tp-fd-shead { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tp-fd-shead small { color: var(--text-secondary); flex-basis: 100%; }
.tp-fd-groups { list-style: none; margin: 6px 0 0; padding: 0 0 0 10px; border-left: 3px solid var(--border); }
.tp-fd-group { padding: 5px 0; }
.tp-fd-group.dim { opacity: .55; }
.tp-fd-gline a { font-weight: 600; color: inherit; }
.tp-fd-overlap { display: block; color: var(--text-secondary); }
.tp-fd-gactions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; }
.tp-fd-gactions select { font: inherit; font-size: 13px; padding: 4px 6px; border-radius: 8px; border: 1px solid var(--border-strong); max-width: 100%; }
.tp-fd-tags { margin-top: 6px; padding: 8px; background: var(--surface-1, #f4f2ec); border-radius: 10px; }
.tp-fd-tag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 2px 8px; margin-bottom: 6px; }
.tp-fd-preview { margin-top: 8px; font-size: 13.5px; }
.tp-fd-preview .tp-held { max-height: 200px; overflow-y: auto; }
/* Hours updates (0154): a tick per listing, a note under each, the change with Copy. */
.tp-hu-summary { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0; padding: 8px 10px; background: #fff; border: 1px solid var(--border); border-radius: 8px; font-size: 15px; font-weight: 600; }
.tp-hu-summary span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.tp-hu-row { align-items: flex-start; }
.tp-hu-row input[type="checkbox"] { margin-top: 2px; }
.tp-hu-row label { cursor: pointer; }
.tp-hu-row.ticked label { text-decoration: line-through; color: var(--text-secondary); }
.tp-hu-note { display: block; width: 100%; box-sizing: border-box; margin-top: 4px; font: inherit; font-size: 13px; padding: 5px 8px; border: 1px solid var(--border); border-radius: 6px; }
