/* ============================================================
   THE TOOLKIT · free tools, checklists and guides for artists.
   Loaded after main.css and wmp-skin.css, on /toolkit pages only.
   Uses the site tokens (paper, ink, line, mono, serif, sans);
   adds layout for the hub, the tool workspace, the printable
   sheet, and print rules that print the sheet and nothing else.
   ============================================================ */

:root {
  --tk-fs-xl: clamp(1.5rem, 2.6vw, 1.9rem);
  --tk-fs-l: var(--step-1);
  --tk-fs-m: var(--step-0);
  --tk-fs-s: 0.9rem;
  --tk-fs-xs: 0.8rem;
  --tk-sheet: #FFFDF6;
  --tk-ok: #1F5A3A;
  --tk-warn: #8A3B12;
  --tk-gap: clamp(1.25rem, 3vw, 2.5rem);
}

/* ---------------------------------------------------------- shared */

.tk-crumbs { font-size: var(--tk-fs-s); color: var(--muted); margin: 0 0 var(--space-2); }
.tk-crumbs a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.tk-crumbs a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.tk-crumbs span[aria-hidden] { margin: 0 0.5em; }

.tk-badge { display: inline-block; font-size: var(--tk-fs-s); line-height: 1; padding: 0.38rem 0.5rem 0.32rem; border: 1px solid var(--ink); color: var(--ink); white-space: nowrap; }

.tk-meta { margin: var(--space-2) 0 0; font-size: var(--tk-fs-s); color: var(--muted); }

.tk-section { padding-block: var(--space-4); border-top: 1px solid var(--line); }
.tk-section:first-of-type { border-top: 0; }

/* ------------------------------------------------------------- hub */

.tk-jobnav { background: var(--paper); border-block: 1px solid var(--line); }
@media (min-width: 900px) { .tk-jobnav { position: sticky; top: 65px; z-index: 5; } }
.tk-jobnav ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; }
.tk-jobnav ol::-webkit-scrollbar { display: none; }
.tk-jobnav a { display: flex; align-items: baseline; gap: 0.55rem; padding: 0.95rem 1.1rem 0.85rem; min-height: 44px; text-decoration: none; color: var(--ink-soft); white-space: nowrap; font-weight: 500; border-right: 1px solid var(--line); }
.tk-jobnav li:first-child a { padding-left: 0; }
.tk-jobnav a b { font-weight: 400; font-size: var(--tk-fs-s); color: var(--muted); }
.tk-jobnav a:hover, .tk-jobnav a[aria-current="true"] { color: var(--ink); }
.tk-jobnav a[aria-current="true"] { box-shadow: inset 0 -2px 0 var(--ink) !important; }

.tk-next-k { display: block; font-size: var(--tk-fs-s); color: var(--ink); font-weight: 600; margin-bottom: 0.45rem; }

.tk-card { border-bottom: 1px solid var(--line); }
.tk-card > a, .tk-card > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.4rem 1.25rem; padding: 1.25rem 0; text-decoration: none; color: inherit; }
.tk-card > a:hover .tk-card-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.tk-card-name { font-family: var(--serif); font-weight: 600; font-size: var(--tk-fs-l); line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
.tk-card-desc { grid-column: 1 / -1; margin: 0; color: var(--ink-soft); font-size: var(--tk-fs-s); max-width: 58ch; }
.tk-card-go { grid-column: 1 / -1; font-weight: 600; font-size: var(--tk-fs-s); margin-top: 0.2rem; }
.tk-card-go::after { content: " \2192"; }

.tk-why { padding-block: var(--space-4) var(--space-5); border-top: 1px solid var(--line); }
.tk-why .wrap > div { max-width: 46rem; }
.tk-why p { color: var(--ink-soft); }

/* -------------------------------------------------------- tool page */

.tk-hero { padding-block: clamp(2.5rem, 6vw, 4rem) var(--space-3); }
.tk-hero h1 { margin-bottom: var(--space-2); }

.tk-tool { padding-block: var(--space-2) var(--space-4); }
.tk-tool-grid { display: grid; gap: var(--tk-gap); align-items: start; grid-template-columns: minmax(0, 1fr); }
.tk-tool-grid > * { min-width: 0; }
@media (min-width: 1020px) {
  .tk-tool-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
  .tk-preview-col { position: sticky; top: 5.5rem; }
}

.tk-panel { border-top: 2px solid var(--ink); padding-top: var(--space-2); }
.tk-panel + .tk-panel { margin-top: var(--space-3); }
.tk-panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: var(--space-2); }
.tk-panel-head h2 { font-size: var(--tk-fs-l); margin: 0; }
.tk-panel-head p { margin: 0; font-size: var(--tk-fs-s); color: var(--muted); }

.tk-fields { display: grid; gap: 0 1rem; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.tk-fields .field { grid-column: span 6; margin-bottom: 1rem; }
@media (min-width: 560px) {
  .tk-fields .f-half { grid-column: span 3; }
  .tk-fields .f-third { grid-column: span 2; }
  .tk-fields .f-two-thirds { grid-column: span 4; }
}
/* Writer rows keep name beside share, even on a phone. */
.tk-fields .f-keep-4 { grid-column: span 4; }
.tk-fields .f-keep-2 { grid-column: span 2; }
.field label .opt { font-weight: 400; color: var(--muted); font-size: var(--tk-fs-s); }
.field input, .field select, .field textarea { min-height: 44px; }
.field select { width: 100%; font: inherit; color: var(--ink); background: var(--field-bg); border: 1.5px solid var(--field-line); padding: 0.62rem 2.2rem 0.62rem 0.85rem; appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 52%, calc(100% - 0.8rem) 52%; background-size: 0.36rem 0.36rem; background-repeat: no-repeat; }
.field .hint { display: block; font-size: var(--tk-fs-s); color: var(--muted); margin-top: 0.3rem; }
.field input[type="number"] { font-variant-numeric: tabular-nums; }
.field input::placeholder, .field textarea::placeholder { color: #696560; opacity: 1; } /* 5.4:1 on the field */
.tk-pct { position: relative; }
.tk-pct input { padding-left: 0.65rem; padding-right: 1.7rem; -moz-appearance: textfield; }
.tk-pct input::-webkit-inner-spin-button, .tk-pct input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.tk-pct::after { content: "%"; position: absolute; right: 0.65rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }

.tk-rows { display: grid; gap: var(--space-2); }
.tk-row { position: relative; border: 1px solid var(--line-strong); background: color-mix(in srgb, var(--field-bg) 55%, transparent); padding: 0.9rem 1rem 0.2rem; margin: 0; min-width: 0; }
.tk-row legend { font-size: var(--tk-fs-s); padding: 0 0.4rem; margin-left: -0.4rem; }
.tk-row-remove { position: absolute; top: -0.95rem; right: 0.6rem; height: 1.6rem; min-height: 0 !important; padding: 0 0.45rem !important; display: flex; align-items: center; background: var(--paper) !important; font-size: var(--tk-fs-s) !important; }
.tk-more { grid-column: 1 / -1; margin: 0 0 1rem; }
.tk-more summary { cursor: pointer; font-size: var(--tk-fs-s); font-weight: 500; padding: 0.6rem 0; min-height: 44px; display: flex; align-items: center; gap: 0.5rem; list-style: none; }
.tk-more summary::-webkit-details-marker { display: none; }
.tk-more summary::before { content: "+"; width: 1rem; }
.tk-more[open] summary::before { content: "\2212"; }
.tk-more summary span { color: var(--muted); font-weight: 400; }
.tk-more .tk-fields { padding-top: 0.4rem; }

.tk-total { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 0.85rem 1rem; margin-top: var(--space-2); border: 1.5px solid var(--ink); font-variant-numeric: tabular-nums; }
.tk-total strong { font-family: var(--serif); font-size: var(--tk-fs-l); }
.tk-total[data-state="ok"] { border-color: var(--tk-ok); }
.tk-total[data-state="ok"] .tk-total-msg { color: var(--tk-ok); }
.tk-total[data-state="off"] { border-color: var(--tk-warn); }
.tk-total[data-state="off"] .tk-total-msg { color: var(--tk-warn); }
.tk-total-msg { font-weight: 600; font-size: var(--tk-fs-s); }

/* A plain message under a field the tool can't use as typed; the export waits for it. */
.tk-field-msg { margin: 0; max-width: none; font-size: var(--tk-fs-s); font-weight: 600; color: var(--tk-warn); }
.tk-fields > .tk-field-msg { grid-column: 1 / -1; }
.tk-fields > .tk-field-msg:not(:empty) { margin: -0.55rem 0 1rem; }
.field > .tk-field-msg:not(:empty), .bo-lines + .tk-field-msg:not(:empty) { margin-top: 0.35rem; }
.field input[aria-invalid="true"] { border-color: var(--tk-warn); box-shadow: inset 0 0 0 1px var(--tk-warn); }

.tk-btnrow { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: var(--space-2); align-items: center; }
.tk-btnrow .btn { min-height: 44px; }
.tk-link-btn { background: none; border: 0; padding: 0.6rem 0; min-height: 44px; font: inherit; font-size: var(--tk-fs-s); font-weight: 500; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 0.2em; cursor: pointer; }
.tk-link-btn:hover { text-decoration-color: var(--ink); }
.tk-saved { font-size: var(--tk-fs-s); color: var(--muted); margin: var(--space-1) 0 0; }
.tk-saved .tk-link-btn { min-height: 0; padding: 0.15rem 0; font-size: inherit; }
.tk-toast { font-size: var(--tk-fs-s); font-weight: 600; min-height: 1.4em; margin: 0.4rem 0 0; }

/* The document preview: what prints. */
.tk-preview-label { font-size: var(--tk-fs-s); color: var(--muted); margin: 0 0 0.6rem; display: flex; justify-content: space-between; gap: 1rem; }
.tk-sheet { background: var(--tk-sheet); border: 1px solid var(--line-strong); padding: clamp(1.25rem, 3vw, 2.25rem); color: #141312; font-family: var(--sans); font-size: var(--tk-fs-s); line-height: 1.45; overflow-wrap: anywhere; }
.tk-sheet h2 { font-family: var(--serif); font-size: var(--tk-fs-l); margin: 0 0 0.25rem; max-width: none; }
.tk-sheet .s-sub { font-size: var(--tk-fs-xs); color: #696560; margin: 0 0 1.1rem; }
.tk-sheet dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.3rem 1rem; margin: 0 0 1.1rem; }
.tk-sheet dt { font-size: var(--tk-fs-xs); color: #696560; padding-top: 0.15rem; }
.tk-sheet dd { margin: 0; }
.tk-sheet table { width: 100%; border-collapse: collapse; margin: 0 0 1rem; font-size: var(--tk-fs-s); }
.tk-sheet th { text-align: left; font-weight: 400; font-size: var(--tk-fs-xs); color: #696560; padding: 0.4rem 0.4rem 0.4rem 0; border-bottom: 1.5px solid #141312; vertical-align: bottom; }
.tk-sheet td { padding: 0.5rem 0.4rem 0.5rem 0; border-bottom: 1px solid #CFC9B7; vertical-align: top; }
.tk-sheet .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-right: 0; }
.tk-sheet .num:not(:last-child) { padding-right: 1.2rem; } /* "60%" and "ASCAP" are two columns */
.tk-sheet tfoot td { font-weight: 700; border-bottom: 0; border-top: 1.5px solid #141312; }
.tk-sheet .s-blank { display: inline-block; min-width: 3.2em; height: 1.05em; border-bottom: 1px solid #9B968C; vertical-align: -0.1em; }
.tk-sheet .s-blank-long { min-width: 12em; }
.tk-sheet td, .tk-sheet th { overflow-wrap: normal; word-break: normal; hyphens: none; }
.tk-sheet td.nw { white-space: nowrap; }
.tk-sheet .s-warn { color: var(--tk-warn); font-weight: 700; font-size: var(--tk-fs-s); margin: 0 0 0.6rem; max-width: none; }
.tk-sheet .s-note { font-size: var(--tk-fs-xs); color: #3A3836; margin: 0 0 0.6rem; max-width: none; }
.tk-sheet .s-signs { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1.5rem 2rem; margin-top: 1.6rem; }
.tk-sheet .s-sign { font-size: var(--tk-fs-xs); color: #3A3836; }
.tk-sheet .s-sign .line { border-bottom: 1px solid #141312; height: 2.2rem; margin-bottom: 0.3rem; }
.tk-sheet .s-sign .date { margin-top: 0.9rem; }
.tk-sheet .s-foot { max-width: none; margin-top: 1.6rem; padding-top: 0.6rem; border-top: 1px solid #CFC9B7; font-size: var(--tk-fs-xs); color: #696560; }
/* Printed only: the song's title over the signatures, so a signature page that
   lands on its own sheet still says which song it signs for. */
.tk-sheet .s-sign-for { display: none; max-width: none; margin: 0; font-size: var(--tk-fs-xs); color: #3A3836; }
@media (max-width: 559px) {
  .tk-sheet table, .tk-sheet thead, .tk-sheet tbody, .tk-sheet tfoot, .tk-sheet tr, .tk-sheet td { display: block; }
  .tk-sheet thead { display: none; }
  .tk-sheet tbody tr { padding: 0.5rem 0; border-bottom: 1px solid #CFC9B7; }
  .tk-sheet td { border: 0; padding: 0.1rem 0; }
  .tk-sheet td[data-k]::before { content: attr(data-k) ": "; font-size: var(--tk-fs-xs); color: #696560; }
  .tk-sheet td.num { text-align: left; }
  .tk-sheet tfoot tr { display: flex; justify-content: space-between; border-top: 1.5px solid #141312; padding-top: 0.5rem; }
  .tk-sheet tfoot td { border: 0; }
}

/* Next steps checklist. */
.tk-check { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--ink); max-width: 46rem; }
.tk-check li { border-bottom: 1px solid var(--line); }
.tk-check label { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); gap: 0.75rem; padding: 1rem 0; cursor: pointer; }
.tk-check input { width: 1.25rem; height: 1.25rem; margin: 0.15rem 0 0; accent-color: var(--ink); }
.tk-check b { display: block; font-weight: 600; }
.tk-check span span { color: var(--ink-soft); font-size: var(--tk-fs-s); }
.tk-check input:checked + span b { text-decoration: line-through; text-decoration-thickness: 1px; color: var(--muted); }

/* The paid step: quiet, one label, plain words. */
.tk-further { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); padding-block: var(--space-3); display: grid; gap: var(--space-3); }
@media (min-width: 860px) { .tk-further { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.tk-further h2 { font-size: var(--tk-fs-l); margin-bottom: 0.5rem; }
.tk-further p { color: var(--ink-soft); }
.tk-further ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.tk-further li { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.tk-further li b { display: flex; justify-content: space-between; gap: 1rem; font-weight: 600; }
.tk-further li b span { font-family: var(--mono); font-weight: 400; font-size: var(--tk-fs-s); white-space: nowrap; }
.tk-further li p { margin: 0.3rem 0 0.5rem; font-size: var(--tk-fs-s); }
.tk-further a:not(.btn) { font-weight: 600; }
.tk-further .fine { color: var(--muted); margin: 0; }

/* The guide under the tool. */
.tk-guide { max-width: 46rem; }
.tk-guide h2 { margin-top: var(--space-4); font-size: var(--tk-fs-xl); }
.tk-guide h2:first-child { margin-top: 0; }
.tk-guide h3 { margin-top: var(--space-3); }
.tk-guide p, .tk-guide li { color: var(--ink-soft); }
.tk-guide li { margin-bottom: 0.5rem; max-width: 62ch; }
.tk-guide .tk-callout { border-left: 2px solid var(--ink); padding: 0.2rem 0 0.2rem 1rem; margin: var(--space-2) 0; }
.tk-guide .tk-callout p { color: var(--ink); margin: 0; }
.tk-updated { font-size: var(--tk-fs-s); color: var(--muted); margin-top: var(--space-3); }

.tk-related { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--ink); }
.tk-related li { border-bottom: 1px solid var(--line); }
.tk-related a, .tk-related div { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0; text-decoration: none; min-height: 44px; }
.tk-related a span:first-child { font-weight: 600; }

/* ------------------------------------------------------------ print */
/* Print the sheet, nothing else: the page is the tool, the sheet is the output. */
@media print {
  @page { margin: 14mm; }
  body { background: #fff !important; }
  body > *:not(main) { display: none !important; }
  main > *:not(.tk-tool) { display: none !important; }
  .tk-tool { padding: 0 !important; }
  .tk-tool .wrap { max-width: none; padding: 0; }
  .tk-tool-grid { display: block !important; }
  .tk-form-col, .tk-preview-label, .tk-btnrow, .tk-saved, .tk-toast { display: none !important; }
  .tk-preview-col { position: static !important; }
  .tk-sheet { border: 0 !important; padding: 0 !important; background: #fff !important; font-size: 10.5pt; }
  .tk-sheet table, .tk-sheet thead, .tk-sheet tbody, .tk-sheet tfoot { display: table-row-group; }
  .tk-sheet table { display: table !important; }
  .tk-sheet thead { display: table-header-group !important; }
  .tk-sheet tfoot { display: table-footer-group !important; }
  .tk-sheet tr { display: table-row !important; }
  .tk-sheet td, .tk-sheet th { display: table-cell !important; }
  .tk-sheet td[data-k]::before { content: none !important; }
  .tk-sheet .s-sign { break-inside: avoid; }
  /* Full sheets fit one page: tighter signature lines and footer, and the
     signatures move as one block, with the song's title, if they don't fit. */
  .tk-sheet .s-signblock { break-inside: avoid; margin-top: 1rem; }
  .tk-sheet .s-sign-for { display: block !important; }
  .tk-sheet .s-signs { gap: 0.9rem 1.6rem; margin-top: 0.4rem; }
  .tk-sheet .s-sign .line { height: 1.8rem; }
  .tk-sheet .s-sign .date { margin-top: 0.6rem; }
  .tk-sheet .s-foot { margin-top: 0.9rem; padding-top: 0.4rem; }
}

/* ------------------------------------------- release timeline builder */

.tk-tool-grid.is-stacked { grid-template-columns: minmax(0, 1fr) !important; }
.tk-tool-grid.is-stacked .tk-preview-col { position: static; }
.rt-settings { display: grid; gap: 0 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .rt-settings { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
@media (min-width: 1020px) { .rt-settings { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr) minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; } }
.rt-settings fieldset { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
.rt-settings legend { font-weight: 600; font-size: var(--tk-fs-s); margin-bottom: 0.35rem; padding: 0; }
.tk-seg { display: flex; border: 1.5px solid var(--field-line); background: var(--field-bg); }
.tk-seg label { flex: 1; position: relative; }
.tk-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tk-seg span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 0.6rem; font-weight: 500; border-left: 1.5px solid var(--field-line); }
.tk-seg label:first-child span { border-left: 0; }
.tk-seg input:checked + span { background: var(--ink); color: var(--paper); }
.tk-seg input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.tk-checks { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.tk-checks label { display: flex; align-items: center; gap: 0.55rem; min-height: 44px; font-weight: 500; cursor: pointer; }
.tk-checks input { width: 1.2rem; height: 1.2rem; accent-color: var(--ink); margin: 0; }
.rt-friday { font-size: var(--tk-fs-s); color: var(--tk-warn); margin: 0 0 1rem; }
.rt-friday:empty { margin: 0; }
.rt-friday .tk-link-btn { color: var(--ink); font-weight: 600; }

.rt-sheet { padding: clamp(1.25rem, 3vw, 2.5rem); }
.rt-runway { border: 1.5px solid #141312; padding: 0.9rem 1rem; margin: 0.4rem 0 1.4rem; font-size: var(--tk-fs-s); line-height: 1.5; }
.rt-runway strong { font-family: var(--serif); font-size: var(--tk-fs-m); display: block; margin-bottom: 0.15rem; }
.rt-runway[data-state="ok"] { border-color: var(--tk-ok); }
.rt-runway[data-state="off"] { border-color: var(--tk-warn); }
.rt-count { display: inline-block; font-size: var(--tk-fs-s); border: 1px solid #CFC9B7; padding: 0.2rem 0.4rem; margin: 0.4rem 0.3rem 0 0; }
.rt-phase { margin-top: 1.2rem; }
.rt-phase h3 { font-weight: 400; font-size: var(--tk-fs-s); color: #696560; border-bottom: 1.5px solid #141312; padding-bottom: 0.4rem; margin: 0; max-width: none; }
.rt-list { list-style: none; margin: 0; padding: 0; }
.rt-task { border-bottom: 1px solid #CFC9B7; position: relative; }
.rt-task label { display: grid; grid-template-columns: 1.4rem 6.6rem minmax(0, 1fr); gap: 0.2rem 0.9rem; padding: 0.8rem 0; cursor: pointer; }
.rt-task input { width: 1.15rem; height: 1.15rem; margin: 0.1rem 0 0; accent-color: #141312; }
.rt-when b { display: block; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rt-when span { font-size: var(--tk-fs-s); color: #696560; }
.rt-what b { display: block; font-weight: 600; }
.rt-what > span { color: #3A3836; font-size: var(--tk-fs-s); }
.rt-flag { font-style: normal; font-weight: 400; font-size: var(--tk-fs-s); color: var(--tk-warn); border: 1px solid currentColor; padding: 0.1rem 0.3rem; margin-left: 0.35rem; white-space: nowrap; vertical-align: 0.12em; }
.rt-flag-now { color: #141312; }
.rt-missed { border: 1px solid var(--tk-warn); padding: 0.2rem 0.9rem; }
.rt-missed summary { cursor: pointer; font-weight: 600; color: var(--tk-warn); padding: 0.7rem 0; min-height: 44px; }
.rt-missed[open] summary { border-bottom: 1px solid var(--line); }
.rt-task.is-done .rt-what b, .rt-task.is-done .rt-when b { text-decoration: line-through; text-decoration-thickness: 1px; color: #696560; }
.rt-task.is-done .rt-what > span { color: var(--muted); }
.rt-link { position: absolute; right: 0; top: 0.8rem; font-size: var(--tk-fs-s); font-weight: 600; color: #141312; }
@media (max-width: 559px) {
  .rt-task label { grid-template-columns: 1.4rem minmax(0, 1fr); }
  .rt-when { grid-column: 2; display: flex; gap: 0.6rem; align-items: baseline; }
  .rt-what { grid-column: 2; }
  .rt-link { position: static; display: inline-block; margin: -0.4rem 0 0.8rem 2.3rem; }
}
@media (min-width: 560px) { .rt-task:has(.rt-link) .rt-what { padding-right: 7rem; } }
@media print {
  .rt-sheet { padding: 0 !important; }
  .rt-link { display: none !important; }
  .rt-task { break-inside: avoid; }
  .rt-phase h3 { break-after: avoid; }
}

/* ------------------------------------------------- box office report */

.tk-money { position: relative; }
.tk-money input { padding-left: 1.6rem; -moz-appearance: textfield; }
.tk-money input::-webkit-inner-spin-button, .tk-money input::-webkit-outer-spin-button, .bo-c-qty input::-webkit-inner-spin-button, .bo-c-qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.tk-money::before { content: "$"; position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.bo-deal { border: 0; padding: 0; margin: 0 0 1rem; }
.bo-line { display: grid; grid-template-columns: minmax(0, 1fr) 5.5rem 7rem; gap: 0 0.75rem; align-items: end; border-bottom: 1px solid var(--line); padding-bottom: 0.2rem; margin-bottom: 0.6rem; position: relative; }
.bo-line .field { margin-bottom: 0.6rem; }
.bo-line .bo-c-label { grid-column: 1; }
.bo-line .bo-del { grid-column: 1 / -1; justify-self: end; min-height: 0; padding: 0 0 0.4rem; font-size: var(--tk-fs-s); }
#bo-expenses .bo-line, #bo-costs .bo-line { grid-template-columns: minmax(0, 1fr) 8rem; }
.bo-add { margin-top: 0.3rem; min-height: 44px; }
@media (min-width: 560px) {
  .bo-line { grid-template-columns: minmax(0, 1fr) 5.5rem 7.5rem auto; padding-bottom: 0; border-bottom: 0; margin-bottom: 0; }
  #bo-expenses .bo-line, #bo-costs .bo-line { grid-template-columns: minmax(0, 1fr) 8.5rem auto; }
  .bo-line .bo-del { grid-column: auto; align-self: end; padding: 0 0 1.1rem; }
  .visually-hidden-sm { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
.bo-sum { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--ink); margin-bottom: var(--space-2); }
.bo-sum > div { padding: 0.9rem 1rem; }
.bo-sum > div + div { border-left: 1px solid var(--line-strong); }
.bo-sum span { display: block; font-size: var(--tk-fs-s); color: var(--muted); margin-bottom: 0.2rem; }
.bo-sum strong { font-family: var(--serif); font-size: var(--tk-fs-xl); font-variant-numeric: tabular-nums; }
.tk-sheet .bo-t { margin-bottom: 1.1rem; }
.tk-sheet .bo-private { margin-top: 1.6rem; padding-top: 0.9rem; border-top: 1px dashed #696560; }
.tk-sheet .bo-private h3 { font-size: var(--tk-fs-s); margin: 0 0 0.6rem; }
@media print { .tk-sheet .bo-private { display: none !important; } } /* the venue signs page 1; the band's numbers stay on screen and in the exports */
.bo-private-note { font-weight: 400; color: var(--muted); }
.tk-sheet .bo-t th { font-size: var(--tk-fs-xs); }
.tk-sheet .bo-t td:first-child { padding-right: 1rem; }
.tk-sheet .bo-big td { font-size: var(--tk-fs-m); }
.tk-sheet .bo-explain { border-left: 2px solid #141312; padding-left: 0.75rem; margin: -0.4rem 0 1.2rem; }
@media (max-width: 559px) {
  .tk-sheet .bo-t, .tk-sheet .bo-t thead, .tk-sheet .bo-t tbody, .tk-sheet .bo-t tfoot { display: table-row-group; }
  .tk-sheet .bo-t { display: table; }
  .tk-sheet .bo-t thead { display: table-header-group; }
  .tk-sheet .bo-t tfoot { display: table-footer-group; }
  .tk-sheet .bo-t tr { display: table-row; padding: 0; border: 0; }
  .tk-sheet .bo-t td, .tk-sheet .bo-t th { display: table-cell; }
  .tk-sheet .bo-t td { border-bottom: 1px solid #CFC9B7; padding: 0.45rem 0.4rem 0.45rem 0; }
  .tk-sheet .bo-t tfoot td { border-top: 1.5px solid #141312; border-bottom: 0; }
}
@media print { .bo-sum { display: none !important; } .tk-sheet .bo-t { break-inside: avoid; } }
.tk-sheet .bo-t td.num { white-space: normal; text-align: right; }
/* Phones: the two numbers that matter stay in view while you fill the form. */
@media (max-width: 1019px) {
}

/* ------------------------------------------------- one-sheet builder */

.os-line { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 0.75rem; border-bottom: 1px solid var(--line); margin-bottom: 0.6rem; }
.os-line .field { margin-bottom: 0.6rem; }
.os-line .os-del { justify-self: end; min-height: 0; padding: 0 0 0.5rem; font-size: var(--tk-fs-s); }
#os-releases .os-line { grid-template-columns: minmax(0, 1fr) 5rem; }
#os-releases .os-line .os-c-wide:last-of-type { grid-column: 1 / -1; }
#os-shows .os-line { grid-template-columns: 5.5rem minmax(0, 1fr); }
#os-shows .os-line .os-c-mid { grid-column: 1 / -1; }
#os-quotes .os-line { grid-template-columns: minmax(0, 1fr); }
.os-line .os-del { grid-column: 1 / -1; }
.os-line-1 { grid-template-columns: minmax(0, 1fr) auto !important; align-items: center; border-bottom: 0; margin-bottom: 0; }
.os-line-1 .os-del { grid-column: auto; padding: 0 0 0.6rem 0.4rem; }
@media (min-width: 560px) {
  .os-line { border-bottom: 0; margin-bottom: 0; align-items: end; }
  #os-releases .os-line { grid-template-columns: minmax(0, 1fr) 4.5rem minmax(0, 1.1fr) auto; }
  #os-releases .os-line .os-c-wide:last-of-type { grid-column: auto; }
  #os-shows .os-line { grid-template-columns: 5.5rem minmax(0, 1.4fr) minmax(0, 1fr) auto; }
  #os-shows .os-line .os-c-mid { grid-column: auto; }
  #os-quotes .os-line { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto; }
  .os-line .os-del { grid-column: auto; padding: 0 0 1.1rem; }
}
.os-photo-field { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 1rem; align-items: center; }
.os-photo-thumb { width: 6rem; aspect-ratio: 4 / 5; border: 1.5px dashed var(--line-strong); background: var(--field-bg); overflow: hidden; }
.os-photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.os-file { cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; }
.os-photo-field .hint { display: block; font-size: var(--tk-fs-s); color: var(--muted); margin-top: 0.4rem; }
#os-photo-file:focus-visible + .tk-link-btn, .os-file:focus-within { outline: 2px solid var(--ink); outline-offset: 3px; }
.os-swatches { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.os-swatches label { position: relative; cursor: pointer; }
.os-swatches input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.os-swatches span { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0 0.8rem 0 0.6rem; border: 1.5px solid var(--line-strong); font-weight: 500; }
.os-swatches span::before { content: ""; width: 1.1rem; height: 1.1rem; background: var(--sw); }
.os-swatches input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink) !important; }
.os-swatches input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

.os-sheet { --os-accent: #141312; container-type: inline-size; border-top: 6px solid var(--os-accent); padding: clamp(1.1rem, 3vw, 2rem); font-size: var(--tk-fs-s); }
.os-head { display: grid; gap: 1rem; margin-bottom: 1.1rem; }
.os-head.has-photo { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: end; }
.os-photo { aspect-ratio: 4 / 5; overflow: hidden; background: #ECE4CC; }
.os-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.os-name { font-family: var(--serif); font-size: clamp(1.6rem, 9cqi, 2.6rem); line-height: 1; margin: 0 0 0.45rem; max-width: none; letter-spacing: -0.015em; overflow-wrap: anywhere; }
.os-desc { font-size: var(--tk-fs-xs); color: var(--os-accent); margin: 0 0 0.6rem; }
.os-tag { font-size: var(--tk-fs-m); line-height: 1.35; margin: 0; color: #141312; max-width: none; }
.os-body { display: grid; gap: 0 1.5rem; }
@container (min-width: 460px) { .os-body { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); } }
.os-body .os-sec { margin-bottom: 1rem; }
.os-body h3 { font-weight: 400; font-size: var(--tk-fs-xs); color: var(--os-accent); border-bottom: 1.5px solid var(--os-accent); padding-bottom: 0.3rem; margin: 0 0 0.5rem; max-width: none; }
.os-body p { margin: 0 0 0.55rem; max-width: none; }
.os-body ul { margin: 0; padding-left: 1rem; }
.os-body li { margin-bottom: 0.3rem; }
.os-body .os-rows { list-style: none; padding: 0; }
.os-body .os-rows li { padding: 0.25rem 0; border-bottom: 1px solid #E3DCC8; overflow-wrap: anywhere; }
.os-body .os-rows span { color: #696560; }
.os-body .os-k { font-size: var(--tk-fs-xs); color: #696560; margin-right: 0.3rem; }
.os-body .os-d { font-family: var(--mono); font-size: var(--tk-fs-xs); color: #696560; margin-right: 0.35rem; }
.os-body a { color: #141312; text-decoration-color: color-mix(in srgb, #141312 40%, transparent); }
.os-body blockquote { margin: 0 0 0.7rem; padding-left: 0.7rem; border-left: 2px solid var(--os-accent); }
.os-body blockquote p { font-size: var(--tk-fs-s); line-height: 1.4; margin-bottom: 0.2rem; }
.os-body cite { font-style: normal; font-size: var(--tk-fs-xs); color: #696560; }
.os-empty { color: #696560; margin: 1rem 0; }
@media print {
  .os-sheet { border-top-width: 8px !important; padding-top: 0.2in !important; font-size: 9pt; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .os-head { margin-bottom: 0.45rem; }
  .os-head.has-photo { grid-template-columns: 2.1in minmax(0, 1fr); }
  .os-photo { max-height: 2.1in; }
  .os-name { font-size: 34pt; }
  .os-body { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) !important; }
  .os-body .os-sec { break-inside: avoid; margin-bottom: 0.45rem; }
  .os-body h3 { margin-bottom: 0.2rem; padding-bottom: 0.2rem; }
  .os-body p { margin-bottom: 0.35rem; }
  .os-body li { margin-bottom: 0.15rem; }
  .os-body .os-rows li { padding: 0.04rem 0; }
  .os-sheet .s-foot { font-size: 7.5pt; margin-top: 0.2rem; padding-top: 0.3rem; }
  .tk-sheet.os-sheet { border-top: 8px solid var(--os-accent) !important; }
}

/* ------------------------------------------------- stage plot */

.sp-palette { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 0.5rem; }
.sp-palette button { min-height: 44px; font: inherit; font-weight: 500; font-size: var(--tk-fs-s); text-align: left; padding: 0.55rem 0.75rem; background: var(--field-bg); color: var(--ink); border: 1.5px solid var(--field-line); cursor: pointer; }
.sp-palette button::before { content: "+ "; }
.sp-palette button:hover { background: var(--ink); color: var(--paper); }
.sp-sheet { padding: clamp(0.5rem, 2vw, 1.25rem); }
/* touch-action on the svg itself: a value on the <g> items is not honoured, so with pan-x pan-y
   here a finger drag scrolled the stage instead of moving the gear (review of 11 October).
   The script pans from empty stage, so scrolling still works by hand. */
.sp-stage { display: block; width: 100%; height: auto; touch-action: none; user-select: none; -webkit-user-select: none; }
.sp-scroll { overflow-x: auto; position: relative; }
/* Never drawn narrower than 760px, so its 16-unit labels are 12px or more; below about 900px the stage scrolls sideways. */
.sp-stage { min-width: 760px; }
@media (max-width: 899px) { .sp-scroll::after { content: "Drag the empty stage to see all of it"; display: block; position: sticky; left: 0; font-size: var(--tk-fs-xs); color: var(--muted); padding: 0.4rem 0 0; } }
.sp-stage text { font-family: "Sohne", Helvetica, Arial, sans-serif; }
.sp-item { cursor: grab; touch-action: none; outline: none; }
.sp-item:active { cursor: grabbing; }
.sp-item:focus-visible .sp-label { text-decoration: underline; }
.sp-sel { margin-top: var(--space-2); border: 1.5px solid var(--line-strong); padding: 1rem 1rem 0.4rem; min-height: 4rem; }
.sp-sel-empty { color: var(--muted); font-size: var(--tk-fs-s); margin: 0 0 0.6rem; }
.sp-nudge { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 0.75rem; }
.sp-print-only { display: none; }
.sp-table-wrap { overflow-x: auto; position: relative; }
.sp-table { width: 100%; border-collapse: collapse; min-width: 42rem; }
.sp-table th { text-align: left; font-weight: 400; font-size: var(--tk-fs-xs); color: var(--muted); padding: 0 0.4rem 0.4rem 0; border-bottom: 1.5px solid var(--ink); }
.sp-table td { padding: 0.35rem 0.4rem 0.35rem 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.sp-table input, .sp-table select { width: 100%; min-height: 44px; font: inherit; font-size: var(--tk-fs-s); color: var(--ink); background: var(--field-bg); border: 1.5px solid var(--field-line); padding: 0.35rem 0.5rem; }
.sp-table select { appearance: none; -webkit-appearance: none; padding-right: 1.6rem; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 0.9rem) 52%, calc(100% - 0.6rem) 52%; background-size: 0.3rem 0.3rem; background-repeat: no-repeat; }
.sp-ch { font-family: var(--mono); font-size: var(--tk-fs-s); width: 2.2rem; }
.sp-move { white-space: nowrap; width: 1%; }
.sp-move .tk-link-btn { min-height: 44px; padding: 0 0.3rem; font-size: var(--tk-fs-s); }
.sp-move .tk-link-btn:disabled { opacity: 0.35; cursor: default; }
.sp-none { color: var(--muted); font-size: var(--tk-fs-s); }
.sp-mix .field { margin-bottom: 0.7rem; }
@media print {
  .sp-sel { display: none !important; }
  .sp-scroll { overflow: visible !important; }
  .sp-scroll::after { content: none !important; }
  .sp-stage { min-width: 0 !important; }
  .sp-print-only { display: block !important; }
  .sp-sheet { padding: 0 !important; }
  .sp-stage { max-height: 3.35in; width: auto; margin: 0 auto 0.08in; }
  .sp-sheet .s-foot { margin-top: 0.08in; padding-top: 0.04in; }
  #sp-print-inputs table, #sp-print-mixes table { width: 100%; border-collapse: collapse; font-size: 8.5pt; margin-bottom: 0.1in; }
  #sp-print-mixes table { break-inside: avoid; }
  #sp-print-inputs th, #sp-print-mixes th { text-align: left; font-family: var(--mono); font-weight: 400; font-size: 7pt; letter-spacing: 0.08em; text-transform: uppercase; border-bottom: 1.5px solid #141312; padding: 2pt 4pt 2pt 0; }
  #sp-print-inputs td, #sp-print-mixes td { border-bottom: 1px solid #CFC9B7; padding: 1.6pt 4pt 1.6pt 0; }
  #sp-print-head h2 { font-size: 18pt; margin: 0 0 2pt; }
}

/* ------------------------------------------------- royalty map */

.rm-top { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; margin-bottom: var(--space-2); }
.rm-sheet { padding: clamp(1rem, 3vw, 2rem); }
.rm-print-only { display: none; }
.rm-cols { display: grid; gap: 0 2rem; }
@media (min-width: 900px) { .rm-cols { grid-template-columns: 1fr 1fr; } }
.rm-col-h { font-family: var(--serif); font-size: var(--tk-fs-l); margin: 0 0 0.6rem; padding-bottom: 0.5rem; border-bottom: 2px solid #141312; max-width: none; }
.rm-col-h span { display: block; font-family: var(--sans); font-weight: 400; font-size: var(--tk-fs-s); color: #3A3836; margin-top: 0.25rem; letter-spacing: 0; }
.rm-list { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.rm-row { border-bottom: 1px solid #CFC9B7; padding: 0.9rem 0; display: grid; gap: 0.5rem; }
.rm-what b { display: block; font-size: var(--tk-fs-m); }
.rm-what span { color: #3A3836; font-size: var(--tk-fs-s); }
.rm-row dl { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 0.25rem 0.8rem; margin: 0; font-size: var(--tk-fs-s); }
.rm-row dt { font-size: var(--tk-fs-xs); color: #696560; padding-top: 0.2rem; }
.rm-row dd { margin: 0; }
.rm-row a { color: #141312; }
@media (max-width: 559px) { .rm-row dl { grid-template-columns: minmax(0, 1fr); } .rm-row dt { padding-top: 0.4rem; } }
.rm-status select { min-height: 44px; font: inherit; font-weight: 600; font-size: var(--tk-fs-s); color: var(--ink); background-color: var(--field-bg); border: 1.5px solid var(--field-line); padding: 0.45rem 2.2rem 0.45rem 0.75rem; appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 1.1rem) 52%, calc(100% - 0.75rem) 52%; background-size: 0.35rem 0.35rem; background-repeat: no-repeat; }
.rm-row[data-state="done"] .rm-status select { background-color: var(--ink); color: var(--paper); background-image: linear-gradient(45deg, transparent 50%, var(--paper) 50%), linear-gradient(135deg, var(--paper) 50%, transparent 50%); }
.rm-row[data-state="applied"] .rm-status select { border-style: dashed; }
.rm-row[data-state="na"] .rm-what, .rm-row[data-state="na"] .rm-what *, .rm-row[data-state="na"] dl, .rm-row[data-state="na"] dl * { color: var(--muted); }
@media print {
  .rm-top .tk-btnrow { display: none !important; }
  .tk-tool .rm-top { margin-bottom: 0.1in; }
  .rm-print-only { display: block; font-size: 16pt; margin: 0 0 0.08in; }
  .rm-sheet { padding: 0 !important; font-size: 9pt; }
  .rm-cols { grid-template-columns: 1fr 1fr !important; }
  .rm-row { padding: 0.06in 0; break-inside: avoid; }
  .rm-status select { min-height: 0; padding: 1pt 4pt; border-width: 1px; background-image: none !important; font-size: 8.5pt; }
}

/* ------------------------------------------------- checklists */

.cl-sheet { padding: clamp(1rem, 3vw, 2rem); }
.cl-sec { margin-bottom: 1.6rem; }
.cl-sec h2 { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-size: var(--tk-fs-l); border-bottom: 2px solid #141312; padding-bottom: 0.45rem; margin: 0 0 0.2rem; max-width: none; }
.cl-sec h2 .cl-n { font-family: var(--mono); font-weight: 400; font-size: var(--tk-fs-xs); letter-spacing: 0.08em; color: #696560; white-space: nowrap; }
.cl-sec.is-done h2 .cl-n { color: var(--tk-ok); }
.cl-sec .cl-when { font-size: var(--tk-fs-s); color: #3A3836; margin: 0.4rem 0 0.2rem; }
.cl-sheet .tk-check { border-top: 0; max-width: none; }
.cl-sheet .tk-check li { border-bottom: 1px solid #CFC9B7; }
.cl-sheet .tk-check label { padding: 0.75rem 0; }
.cl-sheet .tk-check span span { font-size: var(--tk-fs-s); color: #3A3836; }
.cl-sheet .tk-check a { color: #141312; }
@media print {
  .cl-sheet { padding: 0 !important; font-size: 9.5pt; }
  .cl-sec { break-inside: auto; margin-bottom: 0.15in; }
  .cl-sec h2 { font-size: 13pt; break-after: avoid; }
  .cl-sheet .tk-check label { padding: 0.04in 0; }
  .cl-sheet .tk-check li { break-inside: avoid; }
}

/* ------------------------------------------------- pitch writer, bio builder */

.pw-count { font-family: var(--mono); font-size: var(--tk-fs-s) !important; }
.pw-count[data-state="ok"] { color: var(--tk-ok) !important; }
.pw-count[data-state="near"] { color: var(--ink) !important; font-weight: 700; }
.pw-count[data-state="off"] { color: var(--tk-warn) !important; font-weight: 700; }
.pw-over { color: var(--tk-warn); font-weight: 600; }
.tk-preview-col .tk-panel textarea[aria-invalid="true"] { border-color: var(--tk-warn); box-shadow: inset 0 0 0 1px var(--tk-warn); }
.tk-preview-col .tk-panel textarea { width: 100%; font: inherit; color: var(--ink); background: var(--field-bg); border: 1.5px solid var(--field-line); padding: 0.7rem 0.85rem; line-height: 1.55; }
.tk-preview-col .tk-panel .tk-link-btn[data-copy] { margin-top: -0.6rem; }
.tk-preview-col.no-stick { position: static !important; }
.tk-build-note { margin: 0.6rem 0 0; color: var(--muted); }

/* ------------------------------------------------- booking email builder */

.be-kinds { border: 0; padding: 0; margin: 0 0 var(--space-2); min-width: 0; }
.be-seg { flex-wrap: wrap; }
.be-seg label { flex: 1 1 50%; }
@media (min-width: 560px) { .be-seg label { flex: 1 1 0; } }
.be-seg label:nth-child(3) span { border-left: 0; }
@media (max-width: 559px) { .be-seg label:nth-child(n+3) span { border-top: 1.5px solid var(--field-line); } }
@media (min-width: 560px) { .be-seg label:nth-child(3) span { border-left: 1.5px solid var(--field-line); } }
.be-mail { background: var(--tk-sheet); border: 1px solid var(--line-strong); padding: clamp(1rem, 2.5vw, 1.5rem); }
.be-subject { margin: 0 0 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--line); max-width: none; }
.be-subject span { display: block; font-size: var(--tk-fs-s); color: var(--muted); }
.be-subject b { font-weight: 600; overflow-wrap: anywhere; }
.be-body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.be-empty { color: var(--muted); font-size: var(--tk-fs-s); margin: var(--space-2) 0 0; }
.be-list { list-style: none; padding: 0; margin: var(--space-2) 0 0; border-top: 1px solid var(--ink); }
.be-list li { border-bottom: 1px solid var(--line); padding: 0.9rem 0 0.2rem; }
.be-list-main b { display: block; font-weight: 600; }
.be-list-main span { color: var(--ink-soft); font-size: var(--tk-fs-s); }
.be-list-ctl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 1rem; align-items: end; margin-top: 0.6rem; }
.be-list-ctl .field { margin-bottom: 0.4rem; }
.be-list-ctl .tk-link-btn { justify-self: start; }
.be-list-ctl input[type="date"] { width: 100%; }

/* ------------------------------------------------- song metadata sheet */

.sg-add { display: flex; align-items: flex-end; }
.sg-add .btn { width: 100%; min-height: 44px; }
.tk-sheet .sg-ver { font-weight: 400; }
.sg-missing { margin-top: var(--space-2); border-top: 2px solid var(--ink); padding-top: var(--space-2); }
.sg-missing h2 { font-size: var(--tk-fs-l); margin: 0 0 0.6rem; display: flex; gap: 0.6rem; align-items: baseline; }
.sg-missing h2 span { font-family: var(--mono); font-size: var(--tk-fs-s); color: var(--tk-warn); }
.sg-missing ul { margin: 0; padding-left: 1.1rem; }
.sg-missing li { margin-bottom: 0.35rem; color: var(--ink-soft); }
.sg-missing p { color: var(--ink-soft); margin: 0; }
@media print { .sg-missing { display: none !important; } }

/* In-app browser notice (Instagram, Facebook, TikTok). */
.tk-inapp { margin-top: var(--space-2); border: 1.5px solid var(--ink); background: var(--field-bg); padding: 1rem 1.1rem; }
.tk-inapp-line strong { color: var(--ink); }
.tk-inapp-line a { font-weight: 600; color: var(--ink); }
.tk-inapp p { margin: 0 0 0.75rem; font-size: var(--tk-fs-s); }
.tk-inapp .tk-toast { display: block; }
@media print { .tk-inapp { display: none !important; } }

/* Phones: on tool pages the site header scrolls away, so the form gets the screen. */
@media (max-width: 759px) {
  body[data-tool] .nav { position: relative; }
}

/* Small text buttons keep a 44px tap area without growing visually. */
.bo-line .bo-del, .os-line .os-del { position: relative; }
.tk-row-remove::after, .bo-line .bo-del::after, .os-line .os-del::after, .rt-link::after { content: ""; position: absolute; inset: -12px -8px; }
.rt-link { position: relative; }
@media (min-width: 560px) { .rt-link { position: absolute; } }

/* Plain print sheet for the pitch and bio pages. */
.tk-print-only { display: none; }
.tk-print-only h3 { font-size: var(--tk-fs-m); margin: 1rem 0 0.3rem; }
@media print {
  .tk-print-only { display: block !important; }
  body[data-tool="bio"] .tk-preview-col > :not(.tk-print-only),
  body[data-tool="spotify-pitch"] .tk-preview-col > :not(.tk-print-only) { display: none !important; }
}

/* Checklists: hide ticked items on screen; print always shows everything. */
@media screen { .hide-done .tk-check li:has(input:checked) { display: none; } }

/* Phones: jump from the top of a long form to its preview. */

/* ------------------------------------------------- one-page artist plan */
/* ------------------------------------------------- one-page artist plan */
/* For /toolkit/artist-plan (toolkit-artist-plan.js). Append to toolkit.css.
   Font sizes reuse ones already in toolkit.css; no new sizes, no uppercase
   labels. Drop the .tk-meta rule if the shared hero work already adds it. */


/* Remove sits inside the action row as a full 44px target. */
.ap-row-foot { display: flex; justify-content: flex-end; margin: -0.6rem 0 0.2rem; }

.ap-sheet { container-type: inline-size; }
.ap-sheet p { max-width: none; }
.ap-dates { margin: 0 0 1.1rem; }
.ap-dates b { font-weight: 600; }
.ap-sheet h3 { font-family: var(--serif); font-size: var(--tk-fs-m); line-height: 1.25; margin: 0 0 0.5rem; padding-bottom: 0.3rem; border-bottom: 1.5px solid #141312; max-width: none; letter-spacing: 0; text-transform: none; }
.ap-cols { display: grid; gap: 0 1.5rem; }
.ap-sheet .ap-cols + h3 { margin-top: 0.6rem; }
@container (min-width: 400px) { .ap-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
/* A narrow column stacks each label over its answer. */
.ap-cols > div { container-type: inline-size; min-width: 0; }
@container (max-width: 300px) {
  .ap-cols dl { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ap-cols dd { margin-bottom: 0.35rem; }
}
.ap-goal { margin: 0 0 0.8rem; }
.ap-goal p { margin: 0; }
.ap-goal p + p { color: #3A3836; }
.ap-list { margin: 0 0 0.7rem; padding-left: 1rem; }
.ap-list li { margin-bottom: 0.15rem; }
.ap-empty { margin: 0 0 0.7rem; }
.ap-stuck p { margin: 0 0 0.7rem; white-space: pre-line; }
.tk-sheet .ap-table td.nw { width: 1%; padding-right: 1rem; }
.tk-sheet .ap-table th:first-child { white-space: nowrap; }
/* Money in, money out and where you're stuck: two across on screen, three in print. */
@container (min-width: 400px) { .ap-cols3 .ap-stuck { grid-column: 1 / -1; } }
@media (max-width: 559px) {
  .tk-sheet .ap-table td:empty { display: none; }
}

@media print {
  .ap-sheet { font-size: 9.5pt !important; line-height: 1.35; }
  .ap-sheet h2 { font-size: 18pt; }
  .ap-sheet h3 { font-size: 10.5pt; margin-bottom: 3pt; padding-bottom: 2pt; }
  .ap-dates { margin-bottom: 8pt; }
  .ap-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; gap: 0 0.3in; }
  .ap-cols3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 0 0.25in; }
  .ap-cols3 .ap-stuck { grid-column: auto; }
  .ap-list li { margin-bottom: 0; }
  .ap-sheet dl { margin-bottom: 8pt; gap: 1.5pt 10pt; }
  .ap-goal { margin-bottom: 6pt; break-inside: avoid; }
  .tk-sheet .ap-table { font-size: 9pt; margin-bottom: 8pt; }
  .tk-sheet .ap-table td { padding: 2.5pt 4pt 2.5pt 0; }
  .tk-sheet .ap-table tr { break-inside: avoid; }
  .ap-sheet h3 { break-after: avoid; }
  .ap-list, .ap-empty, .ap-stuck p { margin-bottom: 5pt; }
  .ap-sheet .s-foot { margin-top: 8pt; }
}

/* Small inline links keep a 44px tap area. */
.tk-crumbs a, .tk-further li > a { position: relative; }
.tk-crumbs a::after, .tk-further li > a::after { content: ""; position: absolute; inset: -12px -6px; }

/* Shared site styles brought onto the Toolkit's five sizes. */
body[data-tool] .field label { font-size: var(--tk-fs-s); }
body[data-tool] .btn { font-size: var(--tk-fs-m); }
body[data-tool] .btn-sm { font-size: var(--tk-fs-s); }
body[data-tool] .fine { font-size: var(--tk-fs-s); }
body[data-tool] .faq summary { font-size: var(--tk-fs-m); }
.tk-saved .tk-link-btn { position: relative; }
.tk-saved .tk-link-btn::after, .field .hint a::after { content: ""; position: absolute; inset: -12px -6px; }
.field .hint a { position: relative; }
@media print {
  .tk-sheet .bo-t { margin-bottom: 0.08in; }
  .tk-sheet .bo-t td, .tk-sheet .bo-t th { padding-top: 0.025in !important; padding-bottom: 0.025in !important; }
  .tk-sheet .bo-explain { margin: 0 0 0.1in; }
  body[data-tool="box-office-report"] .tk-sheet .s-signs { margin-top: 0.2in; }
  .tk-sheet .bo-private { margin-top: 0.15in; padding-top: 0.1in; }
}

/* ============================================================
   Shared tool layout (2026-10-08 reorganization)
   ============================================================ */

/* Motion: state changes only, two speeds, off for reduced motion. */
:root { --tk-dur-fast: 150ms; --tk-dur: 200ms; --tk-ease: cubic-bezier(0.2, 0, 0, 1); }
@media (prefers-reduced-motion: reduce) { :root { --tk-dur-fast: 0ms; --tk-dur: 0ms; } }

/* Export bar: one place, at the top of the output, on every tool. */
.tk-bar { border-top: 2px solid var(--ink); padding-top: var(--space-2); margin-bottom: var(--space-2); }
.tk-bar .tk-btnrow { margin-top: 0; }
.tk-bar-status { font-weight: 600; margin: 0 0 0.75rem; }
.tk-bar .tk-saved { margin-top: 0.4rem; }
.tk-reset-line { margin: var(--space-2) 0 0; display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.tk-out { min-width: 0; }

/* Status messages fade in and out. */
.tk-toast { opacity: 0; transform: translateY(4px); transition: opacity var(--tk-dur-fast) var(--tk-ease), transform var(--tk-dur) var(--tk-ease); }
.tk-toast.is-on { opacity: 1; transform: none; transition-duration: var(--tk-dur); }

/* Armed "Tap again" buttons read as a state. */
button.is-armed { color: var(--tk-warn) !important; text-decoration-color: currentColor; }
.btn.is-armed { border-color: var(--tk-warn) !important; }
.tk-link-btn, .btn { transition: color var(--tk-dur-fast) var(--tk-ease), background-color var(--tk-dur-fast) var(--tk-ease), border-color var(--tk-dur-fast) var(--tk-ease); }

/* Totals, limits and segmented choices change color smoothly. */
.tk-total, .tk-total-msg, .pw-count, .tk-seg span, .tk-preview-col .tk-panel textarea { transition: color var(--tk-dur-fast) var(--tk-ease), border-color var(--tk-dur-fast) var(--tk-ease), background-color var(--tk-dur-fast) var(--tk-ease); }

/* Disclosures open smoothly where the browser supports it. */
.faq details, .tk-more { interpolate-size: allow-keywords; }
.faq details::details-content, .tk-more::details-content { block-size: 0; overflow: clip; transition: block-size var(--tk-dur) var(--tk-ease), content-visibility var(--tk-dur) allow-discrete; }
.faq details[open]::details-content, .tk-more[open]::details-content { block-size: auto; }

/* Checklists: ticked items fade out when hidden. */
@media screen {
  .tk-check li { transition: opacity var(--tk-dur) var(--tk-ease), display var(--tk-dur) allow-discrete; }
  .hide-done .tk-check li:has(input:checked) { opacity: 0; }
}

/* Phone dock: live status plus a jump to the export bar. */
.tk-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 52px; padding: 0.4rem 1rem calc(0.4rem + env(safe-area-inset-bottom)); background: var(--ink); color: var(--paper); font-size: var(--tk-fs-s); transform: translateY(110%); opacity: 0; visibility: hidden; transition: transform var(--tk-dur) var(--tk-ease), opacity var(--tk-dur) var(--tk-ease), visibility 0s linear var(--tk-dur); }
.tk-dock.is-on { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
.tk-dock-status { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-dock a { color: var(--paper); font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 1020px) { .tk-dock { display: none; } }
@media print { .tk-dock { display: none !important; } }

/* Phones: on Toolkit pages the site header is one row. */
@media (max-width: 759px) {
  body[data-tool] .nav-links a:not([href="/toolkit"]) { display: none; }
  body[data-tool] .nav-links { order: 2; margin-left: auto; flex-basis: auto; flex-wrap: nowrap; }
  body[data-tool] .nav-book { order: 3; margin-left: 0; }
  body[data-tool] .nav-in { flex-wrap: nowrap; padding-block: 0.5rem; }
  body[data-tool] .wordmark-text small { display: none; }
  body[data-tool] .tk-hero { padding-block: 1.5rem var(--space-2); }
}

/* Below the tool: help and related links sit lighter than the guide. */
.tk-section.tk-help-sec, .tk-section.tk-more-sec { padding-block: var(--space-3); }
.tk-next-sec h2 { font-size: var(--tk-fs-xl); }
.tk-next-tool { margin: var(--space-2) 0 0; font-weight: 600; }

/* ------------------------------------------------- hub (reorganized) */
.tk-start { margin: var(--space-2) 0 0; font-weight: 600; }
.tk-grp { padding-block: var(--space-4) var(--space-3); border-top: 1px solid var(--line); scroll-margin-top: 4rem; }
.tk-grp:first-child { border-top: 0; }
.tk-grp-head { max-width: 46rem; margin-bottom: var(--space-2); }
.tk-grp-head h2 { font-size: var(--tk-fs-xl); margin-bottom: 0.4rem; }
.tk-grp-head p { color: var(--ink-soft); margin: 0; }
.tk-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 var(--tk-gap); grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--ink); }
@media (min-width: 640px) { .tk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1020px) { .tk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tk-grid .tk-card > a { display: flex; flex-direction: column; gap: 0.35rem; height: 100%; padding: 1.1rem 0 1.2rem; }
.tk-grid .tk-card-go { margin-top: auto; padding-top: 0.3rem; }
.tk-service-row { margin: var(--space-2) 0 0; padding-top: var(--space-2); border-top: 1px solid var(--line); color: var(--ink-soft); max-width: 62rem; }
.tk-service-row b { color: var(--ink); }
.tk-service-row a { font-weight: 600; white-space: nowrap; }
@media (max-width: 899px) {
  .tk-jobnav ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; gap: 0 1rem; padding-block: 0.25rem; }
  .tk-jobnav a, .tk-jobnav li:first-child a { padding: 0.35rem 0; min-height: 40px; align-items: center; font-size: var(--tk-fs-s); }
  body[data-tool="hub"] .tk-hero .lede { font-size: var(--tk-fs-m); }
}
.tk-why-grid { display: grid; gap: var(--space-4); }
@media (min-width: 960px) { .tk-why-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
.tk-further-list { grid-template-columns: minmax(0, 1fr) !important; border-bottom: 0; padding-top: var(--space-2); }
.tk-inapp-help { font-size: var(--tk-fs-s); color: var(--muted); margin: 0.5rem 0 0 !important; }

/* From the generated-pages pass. */
@media print { .tk-bar, .tk-reset-line, .tk-next-tool { display: none !important; } }
.be-venue-panel { margin-top: var(--space-3); }
.be-list-bar { margin-top: 0; }
.field .pw-over { color: var(--tk-warn); }

/* Phones: the export bar's main button spans the row; the rest sit two across. */
@media (max-width: 559px) {
  .tk-bar .tk-btnrow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
  .tk-bar .tk-btnrow > .btn-primary { grid-column: 1 / -1; }
  .tk-bar .tk-btnrow > .btn, .tk-bar .tk-btnrow > a.btn { justify-content: center; text-align: center; padding-inline: 0.6rem; }
  .tk-bar .tk-btnrow > .tk-link-btn { grid-column: 1 / -1; justify-self: start; }
}
/* Status line color follows the state it reports (split sheet total). */
.tk-bar-status { transition: color var(--tk-dur-fast) var(--tk-ease); }
.tk-bar-status[data-state="ok"] { color: var(--tk-ok); }
.tk-bar-status[data-state="off"] { color: var(--tk-warn); }

/* Song sheet: "Remove this song" sits under the song picker. */
.sg-pick-line { margin: 0; }

/* Song sheet at 375px: empty long fields pushed the page 16px wider than the
   screen (found 2026-10-08, predates the restructure). */
.tk-sheet .s-blank-long { min-width: min(12em, 100%); }

/* Royalty map: the next setup step sits under the count in the bar. */
.rm-bar-next { margin: -0.4rem 0 0.75rem; font-size: var(--tk-fs-s); color: var(--ink-soft); }

/* Release timeline: the runway box is the bar's status line. */
.tk-bar .rt-runway { margin: 0 0 0.75rem; }

/* Phones: a bar with a single button (royalty map) gives it the full row,
   so "Print or save as PDF" doesn't wrap onto two lines. */
@media (max-width: 559px) {
  .tk-bar .tk-btnrow > .btn:only-child { grid-column: 1 / -1; }
}

@media print {
  /* toolkit.css now hides .tk-bar and .tk-reset-line in print. The royalty map
     printed its count and next step above the map before the restructure, so
     it keeps them (its buttons, save line and toast stay hidden). */
  body[data-tool="royalty-map"] .tk-bar { display: block !important; border-top: 0 !important; padding-top: 0 !important; margin-bottom: 0.1in; }
  body[data-tool="royalty-map"] .rm-bar-next { margin: 0; }
}
@media print {
  body[data-tool="release-timeline"] .tk-bar { display: block !important; border-top: 0 !important; padding-top: 0 !important; margin-bottom: 0.1in; }
}

/* From the shows and press pages pass. */
.tk-bar .bo-sum { margin-bottom: 0.75rem; }

/* Phones: the header isn't sticky on tool pages, so jumps land near the top. */
@media (max-width: 759px) {
  html:has(body[data-tool]) { scroll-padding-top: 0.75rem; }
  body[data-tool]:not([data-tool="hub"]) .tk-hero h1 { font-size: clamp(1.9rem, 8.5vw, 2.3rem); }
  body[data-tool]:not([data-tool="hub"]) .tk-hero .lede { font-size: var(--tk-fs-m); }
}
.btn-primary.is-armed { background: var(--tk-warn) !important; color: var(--paper) !important; border-color: var(--tk-warn) !important; }

/* Phones: the page ends above the bottom bar, so the footer links are never under it, and focus scrolls clear of it. */
/* Screen only: print media is as wide as the paper (816px on Letter), so this
   padding applied in print too and pushed the footer line onto its own page. */
@media screen and (max-width: 1019px) {
  body[data-tool] { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom)); }
  html:has(.tk-dock) { scroll-padding-bottom: 5rem; }
}
/* The hub's sticky job bar sits under the header; focus lands below both. */
@media (min-width: 900px) {
  html:has(.tk-jobnav) { scroll-padding-top: 136px; }
}

/* the "not advice" line under the export buttons */
.tk-legal { margin: 0.75rem 0 0; max-width: 60ch; }
