/* =========================================================
   TaskCreations tools page.
   Layout: one page, one tool at a time. Tool tabs sit in the header on wide screens
   and in a bottom bar on phones, where the thumb is. Inside a tool, its own panes
   (Details and Preview, Shift and Crew) sit side by side on wide screens and become
   a second, smaller tab row on phones.
   Colors and fonts come from site.css: steel, ink, safety yellow, Archivo and Archivo Narrow.
   ========================================================= */
:root {
  --tabbar-h: 64px;
  --stick-top: calc(env(safe-area-inset-top, 0px) + var(--head-h));
}

/* ---------- shell ---------- */
body { background: var(--steel); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--surface); }
html { scroll-padding-top: calc(var(--stick-top) + 16px); }
html.tk-lock { overflow: hidden; }
.site-head { top: env(safe-area-inset-top, 0px); }
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

/* phones: room under the page for the message bar (the bottom tab bar that used to sit here is gone) */
@media (max-width: 900px) {
  body { padding-bottom: var(--tabbar-h); }
  .msg { bottom: calc(var(--tabbar-h) + 12px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- each tool's title strip ---------- */
.tool-head { background: var(--steel); padding-block: 22px 16px; }
.tool-head h1 { margin: 0; font: 700 clamp(26px, 3vw, 36px)/1.05 var(--f-cond); letter-spacing: -.004em; }
.tool-head .lead { margin: 5px 0 0; max-width: 62ch; color: var(--muted); font-size: 15.5px; line-height: 1.45; }
@media (max-width: 720px) {
  .tool-head { padding-block: 14px 12px; }
  .tool-head h1 { font-size: 24px; }
  .tool-head .lead { font-size: 14px; margin-top: 3px; }
}
[data-tool]:focus, [data-tool] h1:focus { outline: none; }
/* the footer starts below the first screen, so a tool drawing itself never pushes it into view */
main { min-height: calc(100vh - var(--head-h)); min-height: calc(100svh - var(--head-h)); }

/* the card maker keeps its own layout; only its sticky parts move below the taller sticky stack */
.pv-inner { top: calc(var(--stick-top) + 16px); max-height: calc(100vh - var(--stick-top) - 32px); }
@media (max-width: 920px) { .app-panes { top: var(--stick-top); } .pv-inner { top: auto; max-height: none; } }

/* ---------- footer ---------- */
.foot-mini { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 28px; padding-block: 26px; color: var(--muted); font-size: 14.5px; }
.foot-mini p { margin: 0; max-width: 64ch; }
/* theme: two small icons, Light and Dark */
.theme-pick { display: inline-flex; gap: 2px; padding: 3px; border-radius: 99px; background: var(--seg-track); }
.theme-pick button { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--soft); cursor: pointer; }
.theme-pick button:hover { color: var(--ink); }
.theme-pick button[aria-checked="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-seg); }
.theme-pick svg { width: 16px; height: 16px; }

/* =========================================================
   Shift Tasks
   ========================================================= */
.tk { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-frame);
  font-size: 15.5px; line-height: 1.45; color: var(--ink); }
:where(.tk) button, :where(.tk) input, :where(.tk) select, :where(.tk) textarea { font: inherit; color: inherit; }
.tk-panes { display: none; }
.tk-main { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); align-items: stretch; }
.tk-pane { min-width: 0; padding: 18px 26px 28px; }
.tk-crew { background: var(--canvas); border-left: 1px solid var(--line); border-radius: 0 15px 15px 0; }
.tk-pane-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; }
.tk-pane-h h2 { margin: 0; display: flex; align-items: baseline; gap: 10px; font: 700 24px/1.1 var(--f-cond); }
.tk-pane-h h2 .tk-n { margin: 0; }

/* buttons */
.tk .tk-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 16px; border-radius: 8px;
  border: 1px solid var(--ink); background: var(--ink); color: var(--surface); font-weight: 600; font-size: 14.5px; cursor: pointer;
  text-decoration: none; white-space: nowrap; }
.tk .tk-btn:hover { background: var(--ink-hover); border-color: var(--ink-hover); }
.tk .tk-btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.tk .tk-btn.ghost:hover { border-color: var(--ink); }
.tk .tk-btn.yel { background: var(--yel); border-color: var(--yel); color: var(--on-yel); }
.tk .tk-btn.yel:hover { background: var(--yel-hover); border-color: var(--yel-hover); }
.tk .tk-btn.sm { min-height: 34px; padding: 0 12px; font-size: 13.5px; }
.tk .tk-btn.big { min-height: 50px; padding: 0 24px; font-size: 16px; border-radius: 10px; }
.tk .tk-btn.wide { width: 100%; }
.tk .tk-link, .tk-after .tk-link { background: none; border: 0; padding: 0; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.tk .tk-link:hover, .tk-after .tk-link:hover { text-decoration-color: var(--ink); }
.tk .tk-link.bad, .tk-after .tk-link.bad { color: var(--bad); text-decoration-color: currentColor; }
.tk-df .tk-link { margin-right: auto; }
.tk :focus-visible { outline: 2.5px solid var(--focus); outline-offset: 2px; }

/* fields */
.tk .tk-in { width: 100%; min-width: 0; min-height: 44px; padding: 9px 12px; border-radius: 9px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--ink); font-size: 16px; line-height: 1.35; }
.tk .tk-in:hover { border-color: var(--soft); }
.tk .tk-in:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px var(--focus-ring); }
.tk textarea.tk-in { min-height: 74px; resize: vertical; }
.tk .tk-in::placeholder { color: var(--soft); opacity: 1; }
.tk select.tk-in { appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%237b878e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; }
.tk input[type="date"].tk-in { font-variant-numeric: tabular-nums; }
.tk-f { display: grid; gap: 6px; min-width: 0; }
.tk-l { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.tk-l em { font-style: normal; font-weight: 400; color: var(--soft); margin-left: 3px; }
.tk-hint { margin: 0; color: var(--muted); font-size: 13px; }
.tk-err { margin: 0; color: var(--bad); font-size: 13.5px; font-weight: 600; }
.tk-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* the checkbox: a yellow box with an ink check, the same in both themes */
.tk-ck { appearance: none; -webkit-appearance: none; flex: none; width: 26px; height: 26px; margin: 0; border-radius: 7px;
  border: 2px solid var(--line-2); background: var(--surface) center / 15px no-repeat; cursor: pointer; }
.tk-ck:hover { border-color: var(--soft); }
.tk-ck:checked { background-color: var(--yel); border-color: var(--yel);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8.4 3.2 3.2L13 4.8' fill='none' stroke='%231B2125' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.tk-ck.sm { width: 22px; height: 22px; border-radius: 6px; background-size: 13px; }
.tk-sw { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--ink-2); cursor: pointer; }

/* sections and lists */
.tk-sec { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.tk-sec-h { display: flex; align-items: baseline; gap: 10px; }
.tk-sec-h h3 { margin: 0; font: 700 20px/1.2 var(--f-cond); }
.tk .tk-sec-h .tk-link { font-size: 13.5px; }
.tk-n { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tk-phase { margin: 12px 0 0; font: 700 11.5px/1.2 var(--f-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.tk-list { list-style: none; margin: 0; padding: 0; display: grid; }
.tk-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 12px; align-items: center; min-height: 52px; padding: 6px 2px;
  border-bottom: 1px solid var(--line); }
.tk-list > .tk-item:last-child { border-bottom: 0; }
.tk-lbl { min-width: 0; cursor: pointer; padding-block: 4px; }
.tk-t { display: block; font-size: 15.5px; line-height: 1.35; overflow-wrap: anywhere; }
.tk-t b { font-weight: 700; }
.tk-item.done .tk-t { color: var(--soft); text-decoration: line-through; text-decoration-color: var(--line-2); }
.tk-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 3px; font-size: 13px; color: var(--muted); }
.tk-sub > span { min-width: 0; overflow-wrap: anywhere; }
.tk-ex { display: block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-tag { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 600; line-height: 1.4;
  background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.tk-tag.carry { background: var(--yel-soft); color: var(--yel-ink); }
.tk-tag.stale { background: var(--warn-bg); color: var(--warn); }
.tk-tag.prom { background: var(--bad-bg); color: var(--bad); }
.pill.anniv { color: var(--yel-ink); background: var(--yel-soft); }
.tk-more, .tk-ib { width: 38px; height: 38px; border-radius: 9px; border: 0; background: none; color: var(--muted); cursor: pointer;
  display: grid; place-items: center; flex: none; }
.tk-more svg, .tk-ib svg { width: 20px; height: 20px; }
.tk-more:hover, .tk-ib:hover, .tk-more[aria-expanded="true"] { background: var(--surface-2); color: var(--ink); }
.tk-ib:disabled { opacity: .3; cursor: default; background: none; }
.tk-acts { grid-column: 2 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 2px 0 8px; }
.tk-acts .tk-in { flex: 1 1 180px; min-height: 40px; }
.tk-empty { margin: 4px 0; color: var(--muted); font-size: 14px; list-style: none; }

/* start of shift */
.tk-start { margin-top: 14px; display: grid; gap: 12px; padding: 18px 20px; border-radius: 14px; background: var(--steel); }
.tk-try { margin: 0; font-size: 14px; color: var(--muted); }
@media (max-width: 920px) { .tk-try { margin-top: 14px; } }
.tk .tk-try .tk-link { font-size: 14px; }
.tk-eyebrow { font: 700 12px/1.2 var(--f-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tk-start h3 { margin: 3px 0 0; font: 700 24px/1.1 var(--f-cond); }
.tk-sum { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14.5px; color: var(--muted); }
.tk-sum b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.tk-start-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tk-start-acts .tk-hint { flex: 1 0 100%; }

/* on shift */
.tk-run { margin-top: 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 14px; padding: 12px 16px 14px;
  border-radius: 12px; background: var(--steel); }
.tk-run p { margin: 0; font-size: 14px; color: var(--muted); }
.tk-run p b { color: var(--ink); font-size: 15px; margin-right: 4px; }
.tk-run .tk-n { color: var(--ink-2); }
.tk-bar { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: var(--surface); overflow: hidden; }
.tk-bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--yel); }
.tk-endrow { margin-top: 22px; }

/* add a task */
.tk-add { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 8px; margin: 6px 0 4px; }
.tk-add .tk-add-opts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.tk-add .tk-add-opts .tk-in { flex: 1 1 200px; min-height: 40px; }

/* crew follow-up line that points to the quiet list */
.tk-qrow { list-style: none; }
.tk .tk-qbtn { width: 100%; display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 2px; border: 0; background: none; cursor: pointer;
  text-align: left; font-size: 14.5px; color: var(--muted); }
.tk-qbtn b { color: var(--ink); font-weight: 600; }
.tk-qtext { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; text-align: left; }
.tk-qbtn svg { width: 18px; height: 18px; margin-left: auto; flex: none; }
.tk-qbtn:hover b { text-decoration: underline; text-underline-offset: 3px; }

/* crew */
.tk-quiet { margin-top: 12px; padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 10px; }
.tk-quiet h3 { margin: 0; font: 700 17px/1.2 var(--f-cond); }
.tk-quiet p { margin: -6px 0 0; color: var(--muted); font-size: 13.5px; }
.tk-qchips { display: flex; flex-wrap: wrap; gap: 6px; }
.tk .tk-qchip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 13px; border-radius: 99px; border: 1px solid var(--yel-line);
  background: var(--yel-soft); color: var(--ink); font-weight: 600; font-size: 14px; cursor: pointer; }
.tk-qchip span { font-weight: 500; color: var(--yel-ink); }
.tk .tk-qchip { max-width: 100%; min-width: 0; overflow-wrap: anywhere; text-align: left; }
.tk-qchip:hover { border-color: var(--yel); }
.tk-people { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.tk .tk-person { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; text-align: left; min-height: 64px; }
.tk-person:hover { border-color: var(--line-2); }
.tk-av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--surface-2);
  border: 1px solid var(--line); font: 700 15px/1 var(--f-cond); letter-spacing: .02em; color: var(--ink-2); }
.tk-av.lg { width: 48px; height: 48px; font-size: 18px; }
.tk-pn { min-width: 0; }
.tk-pn b { display: flex; align-items: center; gap: 7px; font-size: 16px; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.tk-pn b .tk-lang { flex: none; }
.tk-pn .s { display: block; margin-top: 1px; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-lang { font: 700 10.5px/1 var(--f-ui); letter-spacing: .05em; color: var(--muted); border: 1px solid var(--line-2); border-radius: 4px; padding: 2px 4px; }
.tk-pills { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.tk-empty-crew { margin-top: 14px; padding: 18px; border-radius: 12px; border: 1px dashed var(--line-2); display: grid; gap: 12px; justify-items: start; }
.tk-empty-crew p { margin: 0; color: var(--muted); }
.tk-fine { margin: 18px 0 0; color: var(--muted); font-size: 13px; max-width: 52ch; }

/* undo inside the toast */
.msg button { margin-left: 10px; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 700; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; }

/* tab badge */
.tk-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--bad);
  color: var(--surface); font: 700 12px/1 var(--f-ui); font-variant-numeric: tabular-nums; }

/* below the frame */
.tk-after { margin: 0; padding-block: 14px 0; color: var(--muted); font-size: 13.5px; display: grid; gap: 6px; }
.tk-after p { margin: 0; }

/* ---------- dialogs ---------- */
.tk-dlg { padding: 0; border: 0; border-radius: 16px; width: min(580px, calc(100vw - 32px)); max-width: none; max-height: min(88vh, 900px);
  background: var(--surface); color: var(--ink); box-shadow: 0 28px 70px rgba(10, 13, 15, .38); overflow: hidden; }
.tk-dlg[open] { display: flex; flex-direction: column; }
.tk-dlg::backdrop { background: rgba(17, 22, 24, .56); }
.tk-dlg > form { display: contents; }
.tk-dh { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--line); }
.tk-dh h2 { margin: 0; flex: 1 1 auto; min-width: 0; font: 700 23px/1.15 var(--f-cond); overflow-wrap: anywhere; }
.tk-x { width: 42px; height: 42px; border-radius: 10px; border: 0; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; flex: none; }
.tk-x svg { width: 20px; height: 20px; }
.tk-x:hover { background: var(--surface-2); color: var(--ink); }
.tk-x.sm { width: 34px; height: 34px; }
.tk-x.sm svg { width: 16px; height: 16px; }
.tk-db { flex: 1 1 auto; overflow: auto; overscroll-behavior: contain; padding: 18px 20px 24px; display: grid; gap: 20px; align-content: start; }
.tk-df { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--line); }
.tk-df .tk-hint { margin-right: auto; flex: 1 1 200px; }
.tk-dsec { display: grid; gap: 12px; }
.tk-dsec + .tk-dsec { border-top: 1px solid var(--line); padding-top: 18px; }
.tk-dsec h3 { margin: 0; font: 700 18px/1.2 var(--f-cond); }
@media (max-width: 640px) {
  .tk-dlg { width: 100%; max-height: calc(100dvh - 28px - env(safe-area-inset-top, 0px)); margin: auto 0 0; border-radius: 18px 18px 0 0; }
  .tk-dh { padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(10px, env(safe-area-inset-right, 0px)); }
  .tk-db { padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
  .tk-df { padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px));
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  .tk-df .tk-btn { flex: 1 1 auto; }
}

/* person sheet */
.tk-pinfo { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; }
.tk-pinfo p { margin: 0; font-size: 14.5px; color: var(--muted); }
.tk-pinfo p + p { margin-top: 3px; }
.tk-pinfo p b { color: var(--ink-2); font-weight: 600; }
.tk-open { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tk-open li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px;
  background: var(--surface-2); }
.tk-o-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14.5px; }
.tk-open p { margin: 4px 0 0; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.tk-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tk .tk-chip { min-height: 38px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2);
  font-weight: 600; font-size: 14px; cursor: pointer; }
.tk-chip:hover { border-color: var(--soft); }
.tk-chips { min-width: 0; }
/* a very long name gets cut with "..." instead of pushing the page sideways */
.tk .tk-chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-chip[aria-pressed="true"], .tk-chip[aria-checked="true"] { background: var(--yel-soft); border-color: var(--yel); box-shadow: inset 0 0 0 1px var(--yel); color: var(--ink); }
.tk-track { border-radius: 12px; background: var(--steel); padding: 14px 16px 16px; display: grid; gap: 12px; justify-items: start; }
.tk-track-h { width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.tk-track-h b { font: 700 16.5px/1.2 var(--f-cond); }
.tk-track .seg { background: var(--seg-track-canvas); }
.tk-track .seg button { min-height: 28px; padding: 0 10px; font-size: 12.5px; }
.tk-track ol { margin: 0; padding: 0; list-style: none; counter-reset: st; display: grid; gap: 9px; width: 100%; }
.tk-track li { counter-increment: st; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 15px; line-height: 1.38; }
.tk-track li::before { content: counter(st); width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--surface);
  display: grid; place-items: center; font: 700 13px/1 var(--f-cond); }
.tk-saved { color: var(--good); font-size: 14px; font-weight: 600; }
.tk-hist { list-style: none; margin: 0; padding: 0; display: grid; }
.tk-hist li { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 11px 0; border-top: 1px solid var(--line); }
.tk-hist li:first-child { border-top: 0; padding-top: 2px; }
.tk-hist time { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; padding-top: 2px; }
.tk-hb { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.tk-hb p { flex: 1 0 100%; margin: 2px 0 0; font-size: 14.5px; overflow-wrap: anywhere; }
.tk-hs { flex: 1 0 100%; font-size: 12.5px; color: var(--muted); }
.tk-hdel { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 13.5px; }
.tk-confirm { display: grid; gap: 10px; padding: 12px 14px; border-radius: 10px; background: var(--bad-bg); }
.tk-confirm p { margin: 0; font-size: 14.5px; color: var(--ink); font-weight: 600; }

/* routine editor */
.tk-row2 { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.tk-rl { list-style: none; margin: 6px 0 0; padding: 0; display: grid; }
.tk-rl li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 2px; min-height: 46px; border-bottom: 1px solid var(--line); }
.tk-rl li:last-child { border-bottom: 0; }
.tk-rl .tk-t { padding-right: 8px; }
.tk-radd { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; }
@media (max-width: 520px) { .tk-radd { grid-template-columns: minmax(0, 1fr) auto; } .tk-radd .tk-in:first-of-type { grid-column: 1 / -1; } }

/* handoff */
.tk .tk-handoff { min-height: 210px; font: 14px/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace; background: var(--surface-2); white-space: pre-wrap; }

/* ---------- phones and narrow windows: one pane at a time ---------- */
@media (max-width: 920px) {
  .tk { border-radius: 0; border-left: 0; border-right: 0; box-shadow: none; margin-inline: calc(-1 * var(--gutter)); }
  .tk-panes { display: flex; position: sticky; top: var(--stick-top); z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
  .tk-panes button { flex: 1; height: 44px; border: 0; background: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-weight: 600; font-size: 14.5px; color: var(--muted); box-shadow: inset 0 -2px 0 transparent; }
  .tk-panes button[aria-selected="true"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }
  .tk-panes button:focus-visible { outline-offset: -4px; }
  .tk-main { display: block; }
  .tk[data-pane="shift"] .tk-crew, .tk[data-pane="crew"] .tk-shift { display: none; }
  .tk-pane { padding: 6px var(--gutter) 28px; }
  .tk-crew { border-left: 0; border-radius: 0; min-height: 70vh; padding-top: 10px; }
  /* the Shift tab names this pane on phones, so its heading stays for screen readers and the row keeps only the print button */
  .tk-pane-h h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tk-pane-h { justify-content: flex-end; min-height: 48px; }
  .tk-after { padding: 16px 0 28px; }
}
@media (max-width: 400px) {
  .tk-start { padding: 16px; }
  .tk-pills .pill { font-size: 11.5px; padding: 3px 7px; }
}

@media (prefers-reduced-motion: no-preference) {
  .tk .tk-btn, .tk-ck, .tk-chip, .tk-more, .tk-person, .rs-chip, .rs-card a { transition: background-color .12s, border-color .12s, box-shadow .12s, color .12s; }
  .tk-bar i { transition: width .3s ease; }
}

/* routine line in Shift Tasks that opens today's safety talk */
.tk-item-x { grid-column: 2 / -1; margin: -6px 0 8px; font-size: 13.5px; line-height: 1.35; }
.tk .tk-item-x .tk-link { text-align: left; }

/* tabs in the header: drop the tab icons as the window narrows, so the Spanish labels fit */
@media (max-width: 1100px) {   .head-in { gap: 16px; } }

/* =========================================================
   Daily Safety Talk
   A reading surface: the talk is set large enough to read aloud on the floor,
   with the history and the printable packs in a quieter side column.
   ========================================================= */
.st .tk-main { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); }
.st-card { padding-top: 22px; padding-bottom: 30px; }
.st-side { background: var(--canvas); border-left: 1px solid var(--line); border-radius: 0 15px 15px 0; display: grid; gap: 24px; align-content: start; padding-top: 24px; }
.st-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.st-date { margin: 0; font-size: 14.5px; color: var(--muted); }
.st-date b { color: var(--ink); font-weight: 700; }
.st-lang { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.st-lang .tk-l { font-size: 13px; color: var(--muted); }
.st-read { margin-top: 20px; display: grid; gap: 16px; }
.st-meta { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.st-cat { padding: 3px 10px; border-radius: 99px; background: var(--steel); color: var(--ink-2); }
.st-title { margin: 0; font: 700 clamp(29px, 3.3vw, 40px)/1.04 var(--f-cond); letter-spacing: -.004em; color: var(--ink); text-wrap: balance; }
.st-title.es { margin-top: 6px; font-size: clamp(21px, 2.3vw, 26px); font-weight: 600; letter-spacing: 0; color: var(--muted); }
.st-title:focus { outline: none; }
.st-why { margin: 0; max-width: 62ch; font-size: 18px; line-height: 1.5; color: var(--ink-2); }
.st-why.es { margin-top: 6px; font-size: 16.5px; color: var(--muted); }
.st-pts { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 14px; }
.st-pts li { display: grid; grid-template-columns: 11px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; font-size: 18.5px; line-height: 1.45; color: var(--ink); }
.st-pts li::before { content: ""; width: 11px; height: 11px; margin-top: .5em; border-radius: 3px; background: var(--yel); grid-row: span 2; }
.st-pts .es { font-size: 16.5px; color: var(--muted); }
.st-ask { margin-top: 4px; padding: 14px 18px 16px; border-radius: 12px; background: var(--yel-soft); border: 1px solid var(--yel-line); display: grid; gap: 6px; }
.st-ask-l { font: 700 11.5px/1.2 var(--f-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--yel-ink); }
.st-q { margin: 0; font: 600 21px/1.3 var(--f-cond); color: var(--ink); }
.st-q.es { margin-top: 4px; font-size: 18.5px; font-weight: 500; color: var(--muted); }
@media (min-width: 1000px) {
  .st-both .st-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 28px; align-items: start; }
  .st-both .st-pair > .es { margin-top: 0; }
  .st-both .st-title.es { font-size: clamp(24px, 2.4vw, 30px); }
  .st-both .st-pts li { grid-template-columns: 11px minmax(0, 1fr) minmax(0, 1fr); column-gap: 14px; }
  .st-both .st-pts li::before { grid-row: auto; }
  .st-both .st-pts li .es { padding-left: 14px; }
}
.st-done { margin: 18px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 10px 14px; border-radius: 10px;
  background: var(--good-bg); color: var(--good); font-size: 14.5px; font-weight: 600; }
.st-done svg { width: 18px; height: 18px; flex: none; }
.st-done-acts { margin-left: auto; display: inline-flex; flex-wrap: wrap; gap: 4px 16px; }
.tk .st-done .tk-link { color: var(--good); text-decoration-color: currentColor; }
.st-acts { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }
/* Print sign-in sheet (version 30): under Mark as given, so the sheet can go around before the talk */
.st-pre { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; margin: 12px 0 0; }
.tk .st-pre .st-sheet-link { margin-top: 0; min-height: 32px; font-size: 15px; gap: 6px; }
.st-pre .tk-hint { margin: 0; }
@media (pointer: coarse) { .tk .st-pre .st-sheet-link { min-height: 44px; } }
.st-who { margin-top: 16px; padding: 16px 18px 18px; border-radius: 14px; background: var(--steel); display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.st-who h3 { margin: 0; font: 700 20px/1.2 var(--f-cond); }
.st-who > .tk-hint { margin-top: -6px; }
.tk .st-who .tk-chip[aria-pressed="false"] { color: var(--soft); text-decoration: line-through; text-decoration-color: var(--line-2); }
.st-others { display: grid; gap: 8px; justify-items: start; }
.st-step { display: grid; grid-template-columns: 44px 80px 44px; gap: 6px; align-items: center; }
.tk .st-step .tk-in { text-align: center; padding-inline: 6px; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.st-step .tk-in::-webkit-outer-spin-button, .st-step .tk-in::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tk .st-step .tk-ib { width: 44px; height: 44px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); }
.tk .st-step .tk-ib:hover { border-color: var(--ink); background: var(--surface); }
.st-total { margin: 0; font: 700 18px/1.2 var(--f-cond); font-variant-numeric: tabular-nums; }
.st-who .tk-row { gap: 10px 14px; }

.st-log-h { display: flex; align-items: baseline; gap: 10px; }
.st-log-h h2 { margin: 0; font: 700 22px/1.15 var(--f-cond); }
.st-log { list-style: none; margin: 8px 0 0; padding: 0; display: grid; }
.st-log li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); }
.st-log li:first-child { border-top: 0; }
.st-log li.tk-empty { display: block; }
.st-log time { padding-top: 2px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.st-log .tk-t { font-size: 15px; }
.st-ln { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 2px; font-size: 13px; color: var(--muted); }
.st-copyrow { margin-top: 12px; display: grid; gap: 8px; justify-items: start; }
.tk .st-copybox { width: 100%; min-height: 130px; font: 13.5px/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace; white-space: pre-wrap; }

.st-group { display: grid; }
.st-group .tk-phase { margin-top: 0; }
.st-tlist { list-style: none; margin: 2px 0 0; padding: 0; display: grid; }
.st-tlist li + li { border-top: 1px solid var(--line); }
.tk .st-topic { width: 100%; min-height: 50px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px;
  padding: 9px 4px; border: 0; background: none; cursor: pointer; text-align: left; color: var(--ink); }
@media (hover: hover) { .st-topic:hover .tk-t { text-decoration: underline; text-underline-offset: 3px; } }
.st-tags { display: flex; flex-wrap: wrap; gap: 4px; }
/* All topics: search and subject chips */
.st-find { position: relative; }
.st-find svg { position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--soft); pointer-events: none; }
.tk .st-find .tk-in { padding-left: 38px; }
.st-find input::-webkit-search-cancel-button { cursor: pointer; }
.tk .st-subs { gap: 6px; }
.tk .st-subs .tk-chip { min-height: 36px; padding: 0 12px; font-size: 13.5px; }
.st-cn { margin-left: 3px; font-weight: 500; color: var(--soft); font-variant-numeric: tabular-nums; }
.tk-chip[aria-checked="true"] .st-cn { color: var(--ink-2); }
.st-res-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; margin-bottom: -10px; }
.st-res-h .tk-hint { margin: 0; }
.st-count { font-weight: 600; color: var(--ink-2); }
#st-topic-res { display: grid; gap: 20px; }
.st-nosave { margin: 0 0 14px; }
@media (max-width: 600px) {
  /* one swipeable row of subjects on phones, so the list starts higher up */
  .tk .st-subs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -18px; padding: 2px 18px; scroll-padding-inline: 18px; min-height: 40px; }
  .tk .st-subs::-webkit-scrollbar { display: none; }
  .tk .st-subs .tk-chip { flex: none; white-space: nowrap; }
}

@media (max-width: 920px) {
  .st-card { padding-top: 16px; }
  .st-side { border-left: 0; border-top: 1px solid var(--line); border-radius: 0; padding-top: 22px; padding-bottom: 28px; }
  .st-acts .tk-btn.big { flex: 1 1 100%; }
  .st-acts .tk-btn.ghost { flex: 1 1 0; }
  .st-why { font-size: 17px; }
  .st-pts li { font-size: 17.5px; }
}

/* roster: the Edit crew link in "Who was there?" and adding several people at once */
.st-who-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.tk .st-who-h .tk-link { font-size: 14.5px; }
.tk .tk-p-multi { justify-self: start; margin-top: -10px; font-size: 14.5px; }
.tk-pmore { display: grid; gap: 20px; }
.tk-pmore[hidden] { display: none; }

/* the safety talk's own crew list */
.st-radd { display: grid; gap: 8px; }
.st-radd .tk-row { gap: 8px 14px; }
.tk .st-rimport { justify-self: start; }
.st-rlist { list-style: none; margin: 0; padding: 0; display: grid; }
.st-rlist li { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 46px; border-top: 1px solid var(--line); }
.st-rlist li:first-child { border-top: 0; }
.st-rlist .tk-t { min-width: 0; overflow-wrap: anywhere; }
.st-rgone { color: var(--muted); font-size: 14.5px; }
.tk .st-rgone .tk-link { font-size: 14.5px; }

/* ---------- the sign-in sheet for a talk: a printable training record ---------- */
.tk .st-sheet-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 5px; font-size: 13.5px; }
.st-sheet-link svg { width: 15px; height: 15px; flex: none; }
@media (min-width: 641px) { .st-dlg-sheet { width: min(980px, calc(100vw - 32px)); } }
.st-sheet-for { margin: -4px 0 0; font-size: 14.5px; color: var(--muted); }
.st-sheet-for b { color: var(--ink); font-weight: 600; }
.st-sheet-grid { display: grid; gap: 18px; }
.st-sheet-ctl { display: grid; gap: 16px; align-content: start; }
.st-sheet-lang { display: grid; gap: 6px; justify-items: start; }
/* Sheet style (version 29): one compact menu that shows the style in use and opens to all nine. Where the browser
   can style a select (appearance: base-select) the button and the menu show each style's swatch; anywhere else
   it's the device's own dropdown with the names. Each swatch carries its theme (data-pt), so it draws itself
   from the same two colors the paper uses: the heading color and the accent. */
.pt-field { display: grid; gap: 6px; justify-items: start; min-width: 0; }
:is(.tk, .app) .pt-sel { width: 230px; max-width: 100%; min-height: 44px; padding: 0 12px; border: 2px solid var(--edge, var(--ink)); border-radius: 10px;
  background: var(--surface); color: var(--ink); font: 500 16px/1.2 var(--f-ui); cursor: pointer; }
@supports (appearance: base-select) {
  :is(.tk, .app) .pt-sel, :is(.tk, .app) .pt-sel::picker(select) { appearance: base-select; }
  :is(.tk, .app) .pt-sel { display: flex; align-items: center; gap: 8px; }
  :is(.tk, .app) .pt-sel > button { display: contents; }
  :is(.tk, .app) .pt-sel selectedcontent { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
  :is(.tk, .app) .pt-sel::picker-icon { color: var(--ink); }
  :is(.tk, .app) .pt-sel:hover { background: var(--surface-2); }
  :is(.tk, .app) .pt-sel:open { box-shadow: var(--pop-sm, none); }
  :is(.tk, .app) .pt-sel::picker(select) { width: max(anchor-size(width), 230px); max-height: min(440px, 70dvh); margin-block: 6px; padding: 5px;
    border: 2px solid var(--edge, var(--ink)); border-radius: 12px; background: var(--surface); color: var(--ink);
    box-shadow: 0 10px 28px rgba(17, 22, 24, .22); }
  :is(.tk, .app) .pt-sel option { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px; border-radius: 8px;
    font: 500 15px/1.2 var(--f-ui); color: var(--ink); cursor: pointer; }
  :is(.tk, .app) .pt-sel option:hover, :is(.tk, .app) .pt-sel option:focus-visible { background: var(--surface-2); }
  /* the style in use: a tinted row, bold name and the check mark, so it never reads like hover or focus */
  :is(.tk, .app) .pt-sel option:checked { background: var(--yel-soft); font-weight: 700; }
  :is(.tk, .app) .pt-sel option::checkmark { order: 9; margin-inline-start: auto; color: var(--ink); }
}
/* Break Board's options row is narrow on a small PC (921 px): a slimmer menu sits beside Paper, so Print stays in view */
.tk.bb .pt-sel { width: 186px; padding: 0 10px; }
@supports (appearance: base-select) { .tk.bb .pt-sel selectedcontent { gap: 8px; } }
.pt-dot { flex: none; width: 22px; height: 22px; border-radius: 50%; /* a white rim, like the paper, so the dark half shows in the dark theme too */
  background: linear-gradient(135deg, var(--pt-head) 0 50%, var(--pt-accent) 50% 100%); box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(17, 22, 24, .22); }
.pt-dot[data-pt="ink"] { background: #fff; box-shadow: inset 0 0 0 2px #1b2125, inset 0 0 0 4.5px #fff, inset 0 0 0 6px #1b2125, 0 0 0 2px #fff, 0 0 0 3px rgba(17, 22, 24, .22); }
.st-sheet-when { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 104px); gap: 12px 10px; }
.st-sheet-when .st-sheet-date { grid-column: 1 / -1; }
.tk .st-sheet-when .tk-in { font-variant-numeric: tabular-nums; }
.st-sheet-ctl .tk-hint { margin: 0; }
.st-paper { margin: 0; padding: 14px; border-radius: 12px; background: var(--canvas); border: 1px solid var(--line); overflow: hidden; }
.st-paper .ss-sheet { width: 816px; padding: 48px; box-shadow: 0 1px 2px rgba(17, 22, 24, .14), 0 10px 26px rgba(17, 22, 24, .14); }
.st-print-btn svg, .st-dlg-sheet .tk-btn svg, .tk-cs-btn svg { width: 18px; height: 18px; flex: none; }
.tk .tk-cs-btn { gap: 7px; }
@media (min-width: 780px) {
  .st-sheet-grid { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); align-items: start; }
}

/* The sheet itself keeps paper colors in every theme, on screen and on paper. */
.ss-sheet { color: #1b2125; background: #fff; font: 400 12.5px/1.42 var(--f-ui); text-align: left;
  -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.ss-sheet * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

/* Print themes (version 28): one set of paper colors for everything the tools print, picked in the print window
   (data-pt on the sheet) and remembered on the device. Only colors change, so every theme keeps the same layout.
   Text stays dark on white in every theme, headings at 7.5:1 or better, and the light accents print as light gray
   on a black and white printer, never under text. Classic (no data-pt) is the original black and safety yellow.
     --pt-head    title, section headings, strong rules, check boxes
     --pt-accent  the rule under the title (and later, light filled bands with dark text on them)
     --pt-label   small uppercase labels
     --pt-line    the lines people write on
     --pt-rule    light dividers
     --pt-title   the title font (the three softer themes use the handwriting, sized so the sheet measures the same). Font names are
                  written out here because --f-hand is a screen-only variable and these print.
   Version 29 adds the Break Board colors: --pt-bar (the shift bar: dark with white text, or the pastel with dark text in
   the three softer themes, or outlined in Ink saver), --pt-tint (lunch rows), --pt-band (the footer band), --pt-track,
   --pt-mark and --pt-mark2 (the timeline), --pt-grid and --pt-sub (grid lines and small gray text).
   Version 30 adds --pt-on-head: the accent as it shows on a head-colored fill (the training card's title), 4.5:1 or better. */
.ss-sheet, .bb-paper, [data-pt] { --pt-head: #1b2125; --pt-accent: #f2b705; --pt-label: #4d5960; --pt-line: #8f999f; --pt-rule: #d9dedf;
  --pt-rule-style: solid; --pt-title: 700 23px/1.1 var(--f-cond);
  /* added in version 29 for the sign-in sheet and Break Board; Classic values are the colors those papers always had */
  --pt-rule-soft: #e6e9e6; --pt-sub: #48535b; --pt-grid: #b7bec2; --pt-tint: #fff6d6; --pt-band: #e7eae8; --pt-track: #dfe3e1;
  --pt-mark: #1b2125; --pt-mark2: #f2b705; --pt-bar: #1b2125; --pt-bar-ink: #fff; --pt-bar-acc: #f2b705; --pt-bar-edge: transparent;
  --pt-on-head: #f2b705; }
[data-pt="ink"] { --pt-accent: #1b2125; --pt-rule-style: double;
  --pt-tint: #fff; --pt-band: #fff; --pt-track: #fff; --pt-mark2: repeating-linear-gradient(135deg, #1b2125 0 2px, #fff 2px 5px); --pt-bar: #fff; --pt-bar-ink: #1b2125; --pt-bar-acc: #1b2125; --pt-bar-edge: #1b2125; --pt-on-head: #1b2125; }
[data-pt="navy"] { --pt-head: #1f3a5f; --pt-accent: #8db7e0; --pt-label: #45566b; --pt-line: #93a2b5; --pt-rule: #d3dde8;
  --pt-rule-soft: #d3dde8; --pt-sub: #45566b; --pt-grid: #a9b8c9; --pt-tint: #e8f0f9; --pt-band: #e8f0f9; --pt-track: #e6edf5; --pt-mark: #1f3a5f; --pt-mark2: #6f9fd0; --pt-bar: #1f3a5f; --pt-bar-acc: #8db7e0; --pt-on-head: #8db7e0; }
[data-pt="forest"] { --pt-head: #1f4a35; --pt-accent: #8fd1ad; --pt-label: #46594f; --pt-line: #91a69a; --pt-rule: #d2e2d8;
  --pt-rule-soft: #d2e2d8; --pt-sub: #46594f; --pt-grid: #a7bcae; --pt-tint: #e6f4ec; --pt-band: #e6f4ec; --pt-track: #e3efe7; --pt-mark: #1f4a35; --pt-mark2: #6cbf91; --pt-bar: #1f4a35; --pt-bar-acc: #8fd1ad; --pt-on-head: #8fd1ad; }
[data-pt="brick"] { --pt-head: #7f2a20; --pt-accent: #e6c49a; --pt-label: #5e4a45; --pt-line: #a99690; --pt-rule: #ead9cf;
  --pt-rule-soft: #ead9cf; --pt-sub: #5e4a45; --pt-grid: #c4aea6; --pt-tint: #f8ece0; --pt-band: #f8ece0; --pt-track: #f3e8de; --pt-mark: #7f2a20; --pt-mark2: #d9a66a; --pt-bar: #7f2a20; --pt-bar-acc: #e6c49a; --pt-on-head: #e6c49a; }
[data-pt="slate"] { --pt-head: #2f3b45; --pt-accent: #a9b4bd; --pt-label: #4f5a63; --pt-line: #9aa4ab; --pt-rule: #dde2e5;
  --pt-rule-soft: #dde2e5; --pt-sub: #4f5a63; --pt-grid: #b3bcc2; --pt-tint: #eef1f3; --pt-band: #eef1f3; --pt-track: #e6eaed; --pt-mark: #2f3b45; --pt-mark2: #98a5af; --pt-bar: #2f3b45; --pt-bar-acc: #c9d1d7; --pt-on-head: #c9d1d7; }
[data-pt="blush"] { --pt-head: #8a2f52; --pt-accent: #f2b8c9; --pt-label: #66505a; --pt-line: #b5939f; --pt-rule: #f1dde4;
  --pt-title: 700 31px/22.6px "Caveat", "Segoe Print", "Bradley Hand", cursive;
  --pt-rule-soft: #f1dde4; --pt-sub: #66505a; --pt-grid: #d3b4c0; --pt-tint: #fbe9ef; --pt-band: #fbe9ef; --pt-track: #f7e7ed; --pt-mark: #8a2f52; --pt-mark2: #e48aa6; --pt-bar: #f2b8c9; --pt-bar-ink: #1b2125; --pt-bar-acc: #8a2f52; --pt-on-head: #f2b8c9; }
[data-pt="sage"] { --pt-head: #3f5a45; --pt-accent: #d9c39d; --pt-label: #545e4f; --pt-line: #9aa38f; --pt-rule: #e5e0d2;
  --pt-title: 700 31px/22.6px "Caveat", "Segoe Print", "Bradley Hand", cursive;
  --pt-rule-soft: #e5e0d2; --pt-sub: #545e4f; --pt-grid: #bcc3b2; --pt-tint: #f3eee2; --pt-band: #f3eee2; --pt-track: #efece2; --pt-mark: #3f5a45; --pt-mark2: #c9ab78; --pt-bar: #d9c39d; --pt-bar-ink: #1b2125; --pt-bar-acc: #3f5a45; --pt-on-head: #e3d2b0; }
[data-pt="lavender"] { --pt-head: #553a80; --pt-accent: #c9b5e8; --pt-label: #625872; --pt-line: #9f93b4; --pt-rule: #e6def2;
  --pt-title: 700 31px/22.6px "Caveat", "Segoe Print", "Bradley Hand", cursive;
  --pt-rule-soft: #e6def2; --pt-sub: #625872; --pt-grid: #c3b8d6; --pt-tint: #f1ebfa; --pt-band: #f1ebfa; --pt-track: #eee8f6; --pt-mark: #553a80; --pt-mark2: #a98bd6; --pt-bar: #c9b5e8; --pt-bar-ink: #1b2125; --pt-bar-acc: #553a80; --pt-on-head: #c9b5e8; }
.ss-es { color: #4d5960; font-weight: 500; }
.ss-es::before { content: "\00B7  "; }
.ss-es-line { display: block; margin-top: 1px; color: #4d5960; font-weight: 400; font-size: .9em; }
.ss-head { padding-bottom: 10px; border-bottom: 4px var(--pt-rule-style) var(--pt-accent); }
.ss-title { margin: 0; font: var(--pt-title); letter-spacing: .005em; color: var(--pt-head); }
.ss-title .ss-es-line { margin-top: 3px; font: 600 16px/1.2 var(--f-cond); color: #4d5960; }
.ss-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px 18px; margin: 12px 0 0; }
.ss-meta > div { min-width: 0; }
.ss-meta dt { font: 700 9.5px/1.25 var(--f-ui); letter-spacing: .07em; text-transform: uppercase; color: var(--pt-label); }
.ss-meta dt .ss-es { color: #6b777e; }
.ss-meta dd { margin: 4px 0 0; min-height: 22px; padding-bottom: 3px; border-bottom: 1px solid var(--pt-line); font-size: 13.5px; font-weight: 600; overflow-wrap: anywhere; }
.ss-meta .ss-topic { grid-column: span 3; }
.ss-meta .ss-topic dd { border-bottom: 0; min-height: 0; font: 700 18px/1.25 var(--f-cond); }
.ss-meta .ss-topic dd .ss-es-line { font: 600 15px/1.25 var(--f-cond); }
.ss-min { display: block; text-align: right; color: #6b777e; font-weight: 500; font-size: 11px; padding-top: 6px; }
.ss-covered { margin-top: 14px; padding: 10px 14px 8px; border: 1px solid var(--pt-rule); border-radius: 6px; }
.ss-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 22px; }
.ss-cols > div + div { padding-left: 22px; border-left: 1px solid var(--pt-rule-soft); margin-left: -11px; }
.ss-cols .ss-col-es { color: #2d363c; }
.ss-h { margin: 0 0 7px; font: 700 11px/1.2 var(--f-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--pt-head); }
.ss-covered p { margin: 0 0 6px; }
.ss-covered ul { margin: 0 0 6px; padding-left: 16px; }
.ss-covered li { margin: 0 0 4px; }
.ss-covered p, .ss-covered li { font-size: 11.5px; line-height: 1.38; }
.ss-q { margin-bottom: 2px !important; }
.ss-att { margin-top: 14px; }
.ss-att-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin-bottom: 6px; }
.ss-att-h .ss-h { margin: 0; }
.ss-note { margin: 0; color: #4d5960; font-size: 11px; }
.ss-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.ss-table thead { display: table-header-group; }
.ss-table th { padding: 0 8px 6px; border-bottom: 2px solid var(--pt-head); text-align: left; font: 700 9.5px/1.25 var(--f-ui); letter-spacing: .07em; text-transform: uppercase; color: var(--pt-label); }
.ss-table td { height: 27px; padding: 0 8px 4px; border-bottom: 1px solid var(--pt-line); vertical-align: bottom; font-size: 13.5px; font-weight: 600; overflow-wrap: anywhere; }
.ss-table .ss-n { width: 32px; color: #6b777e; font-weight: 500; font-size: 11px; }
.ss-table .ss-name { width: 44%; }
.ss-table .ss-sig { border-left: 1px solid var(--pt-rule); }
.ss-table tr { break-inside: avoid; page-break-inside: avoid; }
.ss-sign { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 28px; margin-top: 22px; break-inside: avoid; page-break-inside: avoid; }
.ss-sign > div { padding-top: 5px; border-top: 1px solid var(--pt-head); font: 700 9.5px/1.25 var(--f-ui); letter-spacing: .07em; text-transform: uppercase; color: var(--pt-label); }
.ss-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--pt-rule); font-size: 9.5px; color: #6b777e; }
.ss-foot .ss-es, .ss-foot .ss-es-line { color: #6b777e; }

/* the Shift Tasks clipboard sheet: same paper as the sign-in sheet, with check boxes and a conversation log */
.st-paper .cs-sheet { width: 816px; padding: 48px; box-shadow: 0 1px 2px rgba(17, 22, 24, .14), 0 10px 26px rgba(17, 22, 24, .14); }
.cs-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.cs-day { font: 700 15px/1.2 var(--f-cond); color: var(--pt-head); }
.cs-meta dd { min-height: 20px; }
.cs-cols { columns: 2; column-gap: 26px; column-rule: 1px solid var(--pt-rule); margin-top: 16px; }
.cs-blk { break-inside: avoid; page-break-inside: avoid; } /* a block moves to the next column whole, unless it's taller than one */
.cs-blk + .cs-blk { margin-top: 13px; }
.cs-blk .ss-h, .cs-ph { break-after: avoid; page-break-after: avoid; }
.cs-ph { margin: 7px 0 3px; font: 600 10.5px/1.2 var(--f-ui); color: var(--pt-label); }
.cs-ph:first-of-type { margin-top: 0; }
.cs-list { margin: 0; padding: 0; list-style: none; }
.cs-list li { display: flex; gap: 8px; align-items: flex-start; padding: 3px 0; font-size: 12.5px; line-height: 1.35; break-inside: avoid; page-break-inside: avoid; }
.cs-box { flex: none; display: grid; place-items: center; width: 13px; height: 13px; margin-top: 1px; border: 1.5px solid var(--pt-head); border-radius: 2px; background: #fff; }
.cs-box svg { width: 11px; height: 11px; }
.cs-list li.on .cs-t { color: #6b777e; text-decoration: line-through; text-decoration-color: #8f999f; }
.cs-t { min-width: 0; overflow-wrap: anywhere; }
.cs-sub { color: #4d5960; font-size: 11px; }
.cs-stale .cs-sub, .cs-sub.cs-late { color: #1b2125; font-weight: 700; }
.cs-note { display: block; margin-top: 1px; color: #4d5960; font-size: 11px; }
.cs-blank .cs-line { flex: 1; height: 15px; border-bottom: 1px solid var(--pt-line); }
.cs-none { margin: 0; color: #4d5960; font-size: 12px; }
.cs-log { margin-top: 18px; }
.cs-log-new { break-before: page; page-break-before: always; }
#print-root .cs-log-new { margin-top: 0; }
.st-paper .cs-log-new { position: relative; margin-top: 46px; padding-top: 22px; border-top: 2px dashed #c4cbcd; }
.st-paper .cs-log-new::before { content: attr(data-page); position: absolute; top: -11px; left: 50%; translate: -50% 0; padding: 0 10px; background: #fff;
  font: 700 11px/20px var(--f-ui); letter-spacing: .08em; text-transform: uppercase; color: #6b777e; }
.cs-table td { height: 32px; }
.cs-table .cs-c-fu { width: 36%; }
.cs-table td + td { border-left: 1px solid var(--pt-rule); }
.cs-table td .cs-box { margin: 0 0 1px; }

/* where the sheet gets measured at its printed width (7.5 in) */
#ss-measure { position: absolute; left: -20000px; top: 0; width: 720px; visibility: hidden; pointer-events: none; }
@media print { #ss-measure { display: none !important; } }

/* the print area any tool can fill: off screen, and the only thing that prints while html.tc-printing is set */
#print-root { position: absolute; left: -20000px; top: 0; visibility: hidden; }
@media print {
  html.tc-printing body > *:not(#print-root) { display: none !important; }
  html.tc-printing body { background: #fff !important; margin: 0 !important; padding: 0 !important; }
  html.tc-printing body::before { display: none !important; }
  #print-root { position: static; visibility: visible; left: auto; }
  #print-root .ss-sheet { width: auto; padding: 0; box-shadow: none; }
}

/* ---------- Resources: every live listing in the Etsy shop, grouped by type ----------
   Filter buttons along the top (site.js shows one group; resources#posters works as a link), then a section per group.
   Each card is one link to its Etsy listing. Photos are the listing covers cut to the shop grid's 5:4 window. */
.rs-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 32px; }
.rs-intro { flex: 1 1 520px; min-width: 0; }
.rs-shop { flex: none; }
.rs-filters { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 6px 4px; }
.rs-chip { min-height: 38px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface);
  color: var(--ink); font: 600 14px/1 var(--f-ui); cursor: pointer; white-space: nowrap; }
.rs-chip:hover { border-color: var(--ink); }
.rs-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.rs-sec { padding-top: 30px; }
.rs-sec h2 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 14px; font: 700 23px/1.15 var(--f-cond); }
.rs-n { font: 600 14px/1 var(--f-ui); color: var(--muted); }
.rs-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.rs-card a { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); color: var(--ink); text-decoration: none; }
.rs-card a:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.rs-card a:hover .rs-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.rs-card img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; background: #e2e6e2; border-bottom: 1px solid var(--line); }
.rs-name { padding: 12px 14px 6px; font-weight: 600; font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.rs-desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
  padding: 0 14px 8px; color: var(--muted); font-size: 13.5px; line-height: 1.4; }
.rs-meta { display: flex; align-items: center; gap: 8px; margin-top: auto; padding: 2px 14px 14px; }
.rs-price { font-weight: 700; font-size: 15px; }
.rs-badge { padding: 4px 7px; border-radius: 5px; background: var(--yel-soft); color: var(--yel-ink); font: 700 11px/1.1 var(--f-ui); letter-spacing: .04em; text-transform: uppercase; }
.rs-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-block: 36px 48px; }
.rs-foot p { margin: 0; max-width: 62ch; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
@media (max-width: 1000px) { .rs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (max-width: 720px) {
  .rs-shop { min-height: 38px; padding: 0 14px; font-size: 14px; }
  .rs-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .rs-filters::-webkit-scrollbar { display: none; }
  .rs-chip { flex: none; }
  .rs-sec { padding-top: 24px; }
  .rs-sec h2 { font-size: 21px; margin-bottom: 12px; }
  .rs-foot { padding-block: 28px 36px; }
  .rs-foot .sbtn { width: 100%; }
}
@media (max-width: 600px) {
  .rs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .rs-card a { border-radius: 10px; }
  .rs-name { padding: 9px 10px 4px; font-size: 14px; line-height: 1.3; }
  .rs-desc { padding: 0 10px 6px; font-size: 12.5px; line-height: 1.35; }
  .rs-meta { padding: 2px 10px 11px; gap: 6px; }
  .rs-price { font-size: 14px; }
}

/* ---------- printing (Ctrl+P) ----------
   The card maker prints its own sheets (app.css, html.tc-printing). Any other time, the open tool prints
   without the page frame or buttons, in the light colors whatever theme is on screen. */
@media print {
  :root:root:root:root {
    --steel: #e7eae8; --canvas: #eef0ef; --surface: #ffffff; --surface-2: #f3f5f4;
    --ink: #1b2125; --ink-2: #2d363c; --ink-hover: #343e45; --muted: #4d5960; --soft: #6b777e; --line: #d9dedf; --line-2: #c4cbcd;
    --yel-hover: #ffc61f; --yel-soft: #fdf3cf; --yel-line: #efd57d; --yel-ink: #6b5200;
    --good: #1d7340; --good-bg: #e2f2e8; --warn: #8a5a00; --warn-bg: #fbefcf; --bad: #b02a23; --bad-bg: #f9e2df;
    --seg-track: #eceeee; --head-bg: #ffffff;
    color-scheme: light;
  }
  @page { margin: 0.6in; }
  html:not(.tc-printing) body { background: #fff; padding: 0; }
  html:not(.tc-printing) body::before, html:not(.tc-printing) .skip, html:not(.tc-printing) .site-head, html:not(.tc-printing) .site-foot, html:not(.tc-printing) .msg, html:not(.tc-printing) #print-root { display: none !important; }
  main { min-height: 0; }
  .tool-head { background: none; padding: 0 0 10px; }
  .tool-head .lead { display: none; }
  .tool { padding: 0; }
  .wrap { max-width: none; padding: 0; }
  .tk-pane { display: block !important; }
  .tk-dlg, .tk-after, .tk-panes, .tk-crew, .warn, .notice, .tk-add, .tk-endrow, .tk-more, .tk-item-x, .tk-acts, .tk-cs-btn,
  .st-side, .st-acts, .st-pre, .st-lang, .st-who, .st-done .tk-link, button.tk-link { display: none !important; }
  .tk { margin: 0 !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; background: none !important; }
  .tk .tk-main { display: block; }
  .tk-shift > .tk-pane-h { justify-content: flex-start; min-height: 0; margin-bottom: 4px; }
  .tk-pane { border: 0 !important; box-shadow: none !important; padding: 0 !important; background: none !important; }
  .tk-shift > .tk-pane-h { position: static; width: auto; height: auto; clip: auto; }
  .tk-shift > .tk-pane-h h2 { position: static; width: auto; height: auto; clip: auto; }
  .tool, [data-tool], .tk-pane { background: none !important; }
  .tk-sec-h, .tk-item, .st-pts li { break-inside: avoid; }
  .tk-sec-h { break-after: avoid; }
  .st-card .st-title { font-size: 30px; }
}
