/* ==========================================================================
   framer-theme.css: the look of the Tikorix Framer template
   (good-illustrations-318273.framer.app/dashboard), applied to the app. Loaded last in the views layer.

   The template's rules, measured from the live page:
     - Every card, row and panel: 16px radius, no border, no shadow.
     - Cards are white on a #F4F5F1 page; rows inside a card sit on #F4F5F1 ("sunk").
     - Type (Poppins): page title 32/600 (-0.03em), card title 18–20/600, numbers 36/600,
       labels 13/500, small text 12/400, eyebrows 11/500 uppercase (+0.08em), tags 10/600.
     - Accents: lime #D2E21A for the one thing that matters; dark #151E11 for emphasis.
     - Tables are not ruled grids: rows are rounded pills with a small gap between them.
   Colours come from tokens (00-tokens.css), so the dark theme keeps working.
   ========================================================================== */

/* ---------- Theme colours ----------
   The legacy 04-workspace.css redefines the shared tokens in light mode (it sets --primary to the dark
   colour and --sunk to a heavier grey-green), and those win over 00-tokens.css. Rules in this views layer
   win over legacy, so the template's page and row colours are set here; lime and dark get their own
   names (--fx-lime, --fx-dark) instead of relying on what --primary means in each theme. */
:root {
  --fx-lime: #D2E21A;
  --fx-on-lime: #151E11;
  --fx-dark: #151E11;
}
:root:not([data-theme="dark"]) {
  --bg: #F4F5F1;
  --sunk: #F4F5F1;
  --sunk-hover: #ECEEE7;
  --ink2: #4F5561;
  --ink3: #676E60;
  --line: #E2E4DC;
  --fx-row: #F4F5F1;
  --fx-row-hover: #ECEEE7;
}
[data-theme="dark"] {
  --fx-row: #22241E;
  --fx-row-hover: #2A2D25;
}

/* ---------- Page ---------- */
body { background: var(--bg); }
.tk-greeting, .tk-page-title, #brandTitle {
  font-size: 32px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.35; color: var(--ink);
}
.tk-page-eyebrow, #tkEyebrow {
  font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink2);
}
.tk-sub, .tk-page-subtitle, #tkPageSub { font-size: 13px; color: var(--ink2); }

/* ---------- Cards: one shape everywhere ---------- */
.tk-panel, .tk-table-card, .tk-settings-nav-card, .card-bundle, .tk-artist-bar,
.tk-pulse-card, .tk-sticky-actions {
  border-radius: var(--radius);
  border-color: transparent;
  box-shadow: none;
}
.tk-panel,
.tk-table-card,
.tk-settings-nav-card,
.card-bundle,
.tk-artist-bar { background: var(--surface); }
.tk-panel-title, .tk-settings-nav-title { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.tk-panel-link { color: var(--ink); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--fx-lime); text-decoration-thickness: 2px; }

/* Sticky action bar under a form keeps a hairline so it reads as separate from the form above. */
.tk-sticky-actions { border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); }

/* ---------- Overview numbers: first card lime, the rest white (as in the template) ---------- */
.tk-pulse-card {
  background: var(--surface);
  padding: 24px;
}
.tk-pulse-grid > .tk-pulse-card:first-child { background: var(--fx-lime); }
.tk-pulse-grid > .tk-pulse-card:first-child,
.tk-pulse-grid > .tk-pulse-card:first-child * { color: var(--fx-on-lime); }
.tk-pulse-top, .tk-pulse-label { font-size: 13px; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--ink); }
.tk-pulse-num { font-size: 36px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.5; color: var(--ink); }
.tk-pulse-sub { font-size: 12px; color: var(--ink2); }
/* Status tags on the number cards: quiet, not traffic lights. */
.tk-pulse-card .tk-pulse-badge, .tk-pulse-card .tk-pulse-top > :last-child:not(:first-child) {
  background: rgba(21, 30, 17, 0.07); color: var(--ink); border: 0; font-size: 10px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; border-radius: 9999px; padding: 3px 8px;
}

/* ---------- Tables: rounded pill rows instead of a ruled grid ---------- */
.tk-grid-table, .tk-full-table {
  border-collapse: separate;
  border-spacing: 0 8px;
  background: transparent;
}
.tk-grid-table th, .tk-full-table th {
  background: transparent;
  border: 0;
  color: var(--ink);                  /* was --ink2 at 500: too faint to scan */
  font-size: 12.5px; font-weight: 650; letter-spacing: 0.1px;
  text-transform: lowercase;          /* headings are written in capitals in the markup... */
  padding-top: 4px; padding-bottom: 0;
}
.tk-grid-table th::first-letter, .tk-full-table th::first-letter { text-transform: uppercase; } /* ...so "OPPORTUNITY" reads "Opportunity" */
.tk-grid-table td, .tk-full-table td {
  background: var(--fx-row);
  border: 0;
}
.tk-grid-table tbody tr > td:first-child, .tk-full-table tbody tr > td:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.tk-grid-table tbody tr > td:last-child, .tk-full-table tbody tr > td:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.tk-grid-table tbody tr:hover > td, .tk-full-table tbody tr:hover > td { background: var(--fx-row-hover); }
.tk-grid-table tbody tr.sel > td, .tk-grid-table tbody tr.active-preview-row > td { background: var(--accent-lime-soft); }
[data-theme="dark"] .tk-grid-table tbody tr.sel > td, [data-theme="dark"] .tk-grid-table tbody tr.active-preview-row > td { background: #2C3214; }
.tk-table-card { padding: 8px 16px 12px; }
/* Name chips sit on the row colour, so they become white tags (as the template's tags do). */
.tk-grid-table td .tk-artist-chip, .tk-full-table td .tk-artist-chip,
.tk-grid-table td .tk-assigned-pill, .tk-full-table td .tk-assigned-pill,
.tk-grid-table td .tk-user-pill, .tk-full-table td .tk-user-pill { background: var(--surface); border-color: transparent; }

/* Artist page stage groups: the header is part of the card, not a grey band. */

/* ---------- Lists of small cards (roster rows, intake drop, settings icons) ---------- */
.tk-roster-row { background: var(--fx-row); border-color: transparent; border-radius: var(--radius); }
.tk-intake-drop, .drop { border-radius: var(--radius); border-color: var(--line-strong); background: var(--sunk); }
.tk-settings-nav-icon { background: var(--sunk); border-color: transparent; border-radius: var(--radius-sm); }
.tk-settings-nav-desc { font-size: 13px; color: var(--ink2); }
.fee-row { border-radius: var(--radius-sm); }

/* ---------- Inputs: sunk fields with no outline until focused ---------- */
.f { background: var(--sunk); border-color: transparent; border-radius: var(--radius-sm); }
.f:hover { border-color: var(--line-strong); }
.f:focus { background: var(--surface); border-color: var(--ink); box-shadow: 0 0 0 3px rgba(21, 30, 17, 0.12); }

/* ---------- Pills at the top of pages (date, bell) ---------- */
.tk-date-pill, .tk-bell-btn { background: var(--surface); border-color: transparent; box-shadow: none; }

/* ---------- Buttons: flat pills ---------- */
.btn, .tk-settings-nav-btn { box-shadow: none; }
.btn.primary { background: var(--tk-dark); border-color: var(--tk-dark); color: #F4F5F1; }
[data-theme="dark"] .btn.primary { background: var(--fx-lime); border-color: var(--fx-lime); color: var(--fx-on-lime); }

/* ---------- Sidebar: the template's dark navigation, kept as a sidebar ---------- */
nav.tabs {
  --nav-ink: #F4F5F1;
  --nav-ink2: rgba(244, 245, 241, 0.66);
  --nav-sunk: rgba(244, 245, 241, 0.07);
  background: #151E11;
  border-right-color: transparent;
  color: var(--nav-ink);
}
nav.tabs .tk-brand-title { color: var(--nav-ink); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
nav.tabs .tk-logo-box { box-shadow: none; }
/* Selectors match sidebar.css's own (nav.tabs a.tk-nav-item…) so these win by order, not by accident. */
nav.tabs a.tk-nav-item { color: var(--nav-ink2); font-size: 13px; font-weight: 500; border-radius: var(--radius-sm); background: transparent; }
nav.tabs a.tk-nav-item svg { color: currentColor; stroke: currentColor; }
nav.tabs a.tk-nav-item:hover { background: var(--nav-sunk); color: var(--nav-ink); }
nav.tabs a.tk-nav-item.active, nav.tabs a.tk-nav-item[aria-current="page"], nav.tabs a[data-route][aria-current="page"] {
  background: var(--nav-sunk); color: var(--fx-lime); font-weight: 600;
}
nav.tabs a.tk-nav-item[aria-current="page"]::after, nav.tabs a[data-route][aria-current="page"]::after { background: var(--fx-lime); }
/* Count badges (Open Calls, Artists): lime pills on the dark sidebar. */
nav.tabs .badge, nav.tabs .tk-dark-badge { background: var(--fx-lime); color: var(--fx-on-lime); border-color: transparent; }
nav.tabs .tk-nav-subitem { color: var(--nav-ink2); border-radius: var(--radius-sm); }
nav.tabs .tk-nav-subitem:hover { background: var(--nav-sunk); color: var(--nav-ink); }
nav.tabs .tk-nav-subitem.active { background: var(--nav-sunk); color: var(--fx-lime); }
nav.tabs .tk-nav-subitems { border-left-color: rgba(244, 245, 241, 0.14); }
nav.tabs .quick-jump input { background: var(--nav-sunk); border-color: transparent; color: var(--nav-ink); }
nav.tabs .quick-jump input::placeholder { color: var(--nav-ink2); }
nav.tabs .cmdk-kbd { background: transparent; border-color: rgba(244, 245, 241, 0.2); color: var(--nav-ink2); box-shadow: none; }
nav.tabs .tk-sidebar-user { background: var(--nav-sunk); border-color: transparent; color: var(--nav-ink); }
nav.tabs .tk-sidebar-user * { color: inherit; }
nav.tabs .tk-sidebar-user .tk-user-avatar { background: var(--fx-lime); color: var(--fx-on-lime); }
nav.tabs .tk-sidebar-user div:not(.tk-user-avatar) > :last-child { color: var(--nav-ink2); }

/* ---------- Analytics ---------- */
.tk-pulse-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tk-analytics-split { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; margin-bottom: 24px; }
.tk-panel { padding: 24px; }
/* Progress bars: the template's thin pipeline bars. */
.tk-bar-track { width: 100%; height: 8px; background: var(--fx-row); border-radius: 9999px; overflow: hidden; }
.tk-bar-fill { height: 100%; background: var(--fx-dark); border-radius: 9999px; }
.tk-bar-fill.lead { background: var(--fx-lime); }
[data-theme="dark"] .tk-bar-fill { background: #F4F5F1; }
[data-theme="dark"] .tk-bar-fill.lead { background: var(--fx-lime); }
@media (max-width: 1023px) {
  .tk-pulse-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tk-analytics-split { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .tk-pulse-grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Simple list rows (Analytics categories) ---------- */
.tk-list-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; background: var(--fx-row); border-radius: var(--radius); }
.tk-list-title { font-size: 13px; font-weight: 600; color: var(--ink); }
.tk-list-sub { font-size: 12px; color: var(--ink2); }
.tk-list-value { font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.tk-won-count { color: var(--green); font-weight: 600; }

/* ---------- Contrast (found by an automated scan, 14 Nov) ----------
   Anything on lime must use dark text. Several parts used --tk-dark, which turns light in the dark
   theme, giving light text on lime (about 1.3:1). */
.tk-logo-box, .tk-status-tab.active, .tk-status-tab.active *,
.tk-pulse-grid > .tk-pulse-card:first-child .tk-pulse-badge,
.entry-pipeline .trail-step .dot.current, .trail-step .dot.current,
[data-theme="dark"] .tk-status-tab.active, [data-theme="dark"] .tk-status-tab.active *,
[data-theme="dark"] .entry-pipeline .trail-step .dot.current { color: var(--fx-on-lime); }
/* Roster initials: a dark tile with lime letters in both themes (it used --ink, which turns light in dark mode). */
.tk-roster-av { background: var(--fx-dark); color: var(--fx-lime); }
/* Dark theme: chips and counts that kept light-theme backgrounds or used --ink2 as a background. */
[data-theme="dark"] .tk-cat-default { background: #2A2D25; color: #D7DBCF; }
[data-theme="dark"] .tk-roster-count { background: var(--surface); border-color: transparent; color: var(--ink2); }
[data-theme="dark"] .tk-artist-tab.active { background: var(--fx-lime); color: var(--fx-on-lime); }
[data-theme="dark"] .tk-artist-tab.active .tk-tab-count { color: var(--fx-on-lime); }
.tk-status-tab.active .tk-tab-count { background: var(--fx-on-lime); color: var(--fx-lime); }
/* Quiet text on rows: use the theme's secondary ink (4.5:1 or better on the row colour in both themes). */
.tk-muted-text, .tk-cell-funder, .tk-call-meta, .tk-intake-sub { color: var(--ink2); }
.tk-grid-table td span[style*="color:#4b5563"], .tk-full-table td span[style*="color:#4b5563"] { color: var(--ink2) !important; }
[data-theme="dark"] { --ink3: #A3A99A; }
/* Amber stage badges: slightly darker text so they pass 4.5:1 on their tint. */
.tk-badge.badge-stage-pitched, .tk-badge.badge-amber { color: #7A5300; }
[data-theme="dark"] .tk-badge.badge-stage-pitched, [data-theme="dark"] .tk-badge.badge-amber { color: #F2C46E; }
/* Call page review steps: the current step is lime in both themes (as the template marks "now");
   done steps keep a green tick dark enough to read on its tint. */
.entry-pipeline .trail-step .dot.current, .trail-step .dot.current,
[data-theme="dark"] .entry-pipeline .trail-step .dot.current {
  background: var(--fx-lime); border-color: var(--fx-lime); color: var(--fx-on-lime);
}
:root:not([data-theme="dark"]) .entry-pipeline .trail-step .dot.done,
:root:not([data-theme="dark"]) .trail-step .dot.done { color: #0B6B50; }
:root:not([data-theme="dark"]) .tk-won-count { color: #0B6B50; }

/* Phones: the pinned checkbox and title cells (call-table.css) take the row colour, so a pinned cell
   doesn't show as a white block on a tinted row. */
@media (max-width: 767px) {
  .tk-table-card .tk-grid-table td.tk-col-check,
.tk-table-card .tk-grid-table td.tk-col-opp,
[data-theme="dark"] .tk-table-card .tk-grid-table td.tk-col-check,
[data-theme="dark"] .tk-table-card .tk-grid-table td.tk-col-opp { background: var(--fx-row); }
  .tk-grid-table tbody tr:hover > td.tk-col-check, .tk-grid-table tbody tr:hover > td.tk-col-opp { background: var(--fx-row-hover); }
  .tk-table-card { padding: 4px 8px 8px; }
  .tk-pulse-card { padding: 20px; }
  .tk-greeting, .tk-page-title { font-size: 26px; }
}

/* ---------- Stage colours (14 Nov, round 2) ----------
   One colour per stage, in pipeline order: blue = pitched (just started), amber = preparing (work in hand),
   violet = submitted (waiting on the organiser), lime = won (the template's accent), grey = closed (no longer
   active; not red, since a closed call isn't an error). Badges, section dots and section edges all use them. */
:root:not([data-theme="dark"]) {
  --st-pitched-bg: #EBF3FC;   --st-pitched-fg: #1A5699;
  --st-preparing-bg: #FEF6E9; --st-preparing-fg: #8C5503;
  --st-submitted-bg: #F3EEFC; --st-submitted-fg: #5D2FA6;
  --st-won-bg: #E8F5EE;       --st-won-fg: #1E6B47;
  --st-closed-bg: #ECEDE8;    --st-closed-fg: #4A5046;
}
[data-theme="dark"] {
  --st-pitched-bg: #1B2E48;   --st-pitched-fg: #9CC7FF;
  --st-preparing-bg: #3A2C0E; --st-preparing-fg: #F2C46E;
  --st-submitted-bg: #2E2346; --st-submitted-fg: #C9B2FF;
  --st-won-bg: #1A3828;       --st-won-fg: #6EE7B7;
  --st-closed-bg: #2A2E27;    --st-closed-fg: #B5BBAE;
}
.tk-badge.badge-stage-pitched   { background: var(--st-pitched-bg);   color: var(--st-pitched-fg); }
.tk-badge.badge-stage-preparing { background: var(--st-preparing-bg); color: var(--st-preparing-fg); }
.tk-badge.badge-stage-submitted { background: var(--st-submitted-bg); color: var(--st-submitted-fg); }
.tk-badge.badge-stage-won       { background: var(--st-won-bg);       color: var(--st-won-fg); }
.tk-badge.badge-stage-closed    { background: var(--st-closed-bg);    color: var(--st-closed-fg); }
.tk-badge[class*="badge-stage-"] {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 11px;
}
.tk-badge[class*="badge-stage-"]::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.85;
}
#sec-pitched   { --st: var(--st-pitched-fg); }
#sec-approved  { --st: var(--st-preparing-fg); }
#sec-submitted { --st: var(--st-submitted-fg); }
#sec-accepted  { --st: #7F8A0E; }
[data-theme="dark"] #sec-accepted { --st: var(--fx-lime); }
#sec-passed    { --st: var(--st-closed-fg); }

/* Call titles in tables are links, and stay bold as before the redesign. */
.tk-grid-table .tk-cell-link, .tk-full-table .tk-cell-link { font-weight: 600; }

/* Pulse summary cards: cohesive cards with a clean surface and subtle border */
.tk-pulse-grid > .tk-pulse-card:nth-child(2),
.tk-pulse-grid > .tk-pulse-card:nth-child(3),
.tk-pulse-grid > .tk-pulse-card:nth-child(4) {
  background: var(--surface);
  border: 1px solid var(--line);
}

/* In-page sub-tabs for Open Call intake & editing */
.tk-editor-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
  padding-bottom: 2px;
  overflow-x: auto;
}
.tk-editor-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: none;
  background: transparent;
  color: var(--ink-muted);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.tk-editor-tab:hover {
  color: var(--ink);
  background: var(--surface-hover);
  border-radius: 6px 6px 0 0;
}
.tk-editor-tab.active {
  color: var(--ink);
  border-bottom: 2px solid var(--lime, #d2e21a);
}
.tk-editor-pane {
  display: block;
}
.tk-editor-pane[hidden] {
  display: none !important;
}

/* Pitch picker (Artists > Pitch Opportunity). */
.tk-pick-list { display: flex; flex-direction: column; gap: 8px; max-height: 60vh; overflow: auto; }
.tk-pick-row { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; text-align: left;
  padding: 12px 14px; border: 0; border-radius: var(--radius); background: var(--fx-row); color: var(--ink); cursor: pointer; font: inherit; }
.tk-pick-row:hover, .tk-pick-row:focus-visible { background: var(--fx-row-hover); outline: 2px solid var(--fx-lime); outline-offset: 0; }
/* Stage count bubbles follow the stage colour (they kept the old amber/blue). */
/* Fee: "Not stated" was cut off at about 64px. */
.tk-grid-table .tk-col-fee { min-width: 92px; white-space: nowrap; }
.tk-grid-table .tk-col-deadline { min-width: 100px; white-space: nowrap; }

/* ============================================================================
   Forms: opportunity intake (#form) and pitch email modal (#tkEmailModal).
   14 Nov 2026 pass: labels read in sentence case (uppercase micro-labels felt
   SAP-ish), header card is trimmed, pitch modal picks up the brand lime.
   ============================================================================ */

/* Opportunity form labels: sentence case, slightly larger, dark ink. (Was 11px ALL CAPS gray.) */
#form:not(.readonly) .lbl,
#form .lbl,
.card-bundle .lbl {
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
/* "OPPORTUNITY INTAKE" / "OTHER FEES" style small-caps labels on the form stay subtle but legible. */
#form .bundle-title, .bundle-title { font-weight: 700; color: var(--ink); letter-spacing: 0; }
.tk-eyebrow { color: var(--ink3); letter-spacing: 0.06em; }

/* Field spacing: the form felt roomy; bring the rows closer without crowding. */
#form .field { margin-bottom: 14px; }
#form .field:last-child { margin-bottom: 0; }
#form .note { font-size: 12px; color: var(--ink3); margin-top: 4px; }
/* Only shout "Not found" when the field is actually flagged missing (the note sat under every empty field). */
#form .field:not(.missing) .note { display: none; }
#form .field.missing .note { color: var(--amber); font-weight: 500; }

/* Header card: the opportunity-intake eyebrow + title + paragraph was three heavy blocks. */
#entryHeaderCard { padding: 20px 24px !important; border-radius: var(--radius) !important; background: var(--surface); border: 0; }
#entryHeaderCard #entryHeaderTitle { font-size: 22px !important; font-weight: 700 !important; letter-spacing: -0.2px; }
#entryHeaderCard #entryHeaderDesc { font-size: 13px !important; color: var(--ink2) !important; max-width: 62ch; }
#entryHeaderCard #entryHeaderEyebrow { color: var(--ink3) !important; font-weight: 600 !important; font-size: 10.5px !important; }
#entryStatus { background: var(--fx-lime); color: var(--fx-on-lime); border: 0; padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; }

/* Section bundles: lighter frame, tighter header. */
.card-bundle { background: var(--surface); border: 0; border-radius: var(--radius); padding: 20px 22px; }
.bundle-header { margin-bottom: 14px; }
.bundle-title { font-size: 15px; }
.bundle-title svg { color: var(--ink2); }

/* Sticky action bar matches cards. */
.tk-sticky-actions { background: var(--surface); border-top: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; padding: 14px 20px !important; }

/* Add a fee button and other ghosts on the form are more compact. */
#form .btn.ghost.sm { padding: 8px 12px; border-radius: 10px; }

/* ---------- Pitch email modal ---------- */
.tk-email-modal { border-radius: 20px !important; border: 0; box-shadow: 0 30px 80px rgba(21,30,17,0.18); overflow: hidden; }
.tk-email-modal .tk-modal-header { background: var(--fx-dark); color: #fff; padding: 18px 22px; border-bottom: 0; }
.tk-email-modal .tk-modal-title { color: #fff; font-weight: 700; font-size: 16px; }
.tk-email-modal .tk-modal-title span span { color: var(--fx-lime); }
.tk-email-modal .tk-modal-close { color: #fff; opacity: 0.9; }
.tk-email-modal .tk-modal-close:hover { opacity: 1; }
.tk-email-modal .tk-modal-body { padding: 18px 22px 10px; display: flex; flex-direction: column; gap: 12px; }
/* The To / Subject strip becomes a tidy meta card (was plain text). */
.tk-email-modal .tk-modal-body > div:first-child { background: var(--fx-row); border-radius: 12px; padding: 12px 14px; font-size: 13px; }
.tk-email-modal .tk-modal-body > div:first-child strong { color: var(--ink3); font-weight: 600; margin-right: 6px; }
.tk-email-preview-box { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: 13.5px; line-height: 1.55; color: var(--ink); max-height: 320px; overflow: auto; }
.tk-email-modal .tk-modal-footer { padding: 14px 22px 18px; border-top: 1px solid var(--line); gap: 12px; }
.tk-email-modal .tk-modal-footer #mEmailNote { font-size: 12px; color: var(--ink3); }
/* Buttons: brand lime for the main action (was blue #2563eb). */
.tk-btn-modal { border: 0; padding: 10px 16px; border-radius: 12px; font-weight: 600; font-size: 13.5px; cursor: pointer; background: var(--fx-row); color: var(--ink); }
.tk-btn-modal:hover { background: var(--fx-row-hover); }
#mEmailOpenBtn { background: var(--fx-lime) !important; color: var(--fx-on-lime) !important; }
#mEmailOpenBtn:hover { filter: brightness(0.95); }
#mEmailOpenBtn:disabled, .tk-btn-modal:disabled { opacity: 0.5; cursor: not-allowed; }
/* "No email in <artist>'s profile" + Add email button sits in the meta card. */
#mEmailTo [style*="color:var(--red)"] { color: var(--red) !important; }
#mEmailAddAddr { margin-left: 6px; padding: 4px 10px !important; border-radius: 999px !important; font-size: 12px !important; }

/* ---------- Pitch picker ---------- */
#tkPitchPicker .tk-email-modal { max-width: 520px; }
#tkPitchPicker .tk-modal-header { background: var(--fx-dark); }
#tkPitchPicker .tk-modal-title { color: #fff; }

/* Pitch email modal: tightenings on top of the pass above. */
.tk-email-modal { max-width: 580px !important; width: calc(100vw - 40px); }
.tk-email-modal .tk-modal-close { width: 32px; height: 32px; border-radius: 10px; background: rgba(255,255,255,0.1); display: inline-flex; align-items: center; justify-content: center; font-size: 20px; line-height: 1; }
.tk-email-modal .tk-modal-close:hover { background: rgba(255,255,255,0.2); }
.tk-email-modal .tk-modal-footer { flex-wrap: wrap; align-items: center; }
.tk-email-modal .tk-modal-footer #mEmailNote { flex: 1 1 100%; order: 2; margin-top: 2px; }
.tk-email-modal .tk-modal-footer > div { order: 1; margin-left: auto; flex-wrap: nowrap; }

/* ============================================================================
   Revolut-style floating labels (14 Nov 2026).
   Label sits inside the input; when the input is focused or filled, the label
   floats up to a smaller caption. One source of truth for every form.

   Pattern 1 - new markup (artist-call page, pitch sheets):
     <div class="rv-field">
       <input class="f" placeholder=" " id="x">
       <label class="lbl" for="x">Label</label>
     </div>

   Pattern 2 - legacy markup (opportunity form, sheets) is upgraded at load
   time (bootstrap.js tk_upgradeFields): .field gets .rv-field, labels move
   AFTER inputs, inputs get placeholder=" " (original placeholder is kept on
   data-ph and only shows on focus, so empty fields read as the label).
   ============================================================================ */
.rv-field { position: relative; display: block; margin: 0 0 12px; }
.rv-field > .f {
  width: 100%;
  min-height: 56px;              /* room for the floating label */
  padding: 22px 14px 8px;        /* label sits in top padding when floated */
  font-size: 15px;
  font-weight: 500;
}
.rv-field > textarea.f { padding-top: 24px; min-height: 96px; }
.rv-field > select.f { padding-top: 20px; padding-right: 36px; }
.rv-field > .lbl {
  position: absolute;
  left: 14px;
  top: 16px;
  margin: 0; padding: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink2);
  letter-spacing: 0;
  text-transform: none;
  background: transparent;
  pointer-events: none;
  transform-origin: 0 0;
  transition: transform .14s ease, color .14s ease;
}
/* Floated: focused, filled, select with a value, date input. */
.rv-field:has(.f:focus) > .lbl,
.rv-field:has(.f:not(:placeholder-shown)) > .lbl,
.rv-field:has(select.f) > .lbl,
.rv-field:has(input[type="date"].f) > .lbl {
  transform: translateY(-9px) scale(0.72);
  color: var(--ink3);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.rv-field:has(.f:focus) > .lbl { color: var(--ink); }
/* Placeholder is kept hidden when not focused so the label reads as the hint;
   real placeholder text comes back on focus (via tk_upgradeFields). */
.rv-field .f::placeholder { color: var(--ink3); opacity: 0.75; }
.rv-field:not(:has(.f:focus)) .f::placeholder { color: transparent; }
/* Errors: the field-missing state keeps working. */
.rv-field:has(.f:focus) { }
.field.missing .f, .rv-field.missing .f { border-color: var(--amber); background: var(--amber-bg); }

/* Opportunity form: smaller label letters so they fit the 44px fields it already uses. */
#form .rv-field > .f { min-height: 54px; padding: 20px 14px 8px; }
#form .rv-field > textarea.f { min-height: 88px; padding-top: 22px; }
#form .rv-field > .lbl { top: 14px; font-size: 14px; }

/* ============================================================================
   Artist-call page (#view-artist-call): one call for one artist.
   ============================================================================ */
.ac-shell { display: flex; flex-direction: column; gap: 16px; max-width: 880px; }

/* Header: title meta + Edit / More sit together, with pill chips. */
.ac-hero { background: var(--surface); border-radius: var(--radius); padding: 20px 24px; display: flex; flex-direction: column; gap: 12px; }
.ac-hero-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ac-chip { background: var(--fx-row); color: var(--ink); padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.ac-chip.ac-chip-deadline { background: var(--st-pitched-bg); color: var(--st-pitched-fg); font-weight: 600; }
.ac-chip.ac-chip-expired { background: #F8D7D7; color: #881515; font-weight: 700; }
[data-theme="dark"] .ac-chip.ac-chip-expired { background: #3A1B1B; color: #FFB4B4; }
.ac-hero-actions { display: flex; gap: 6px; }

/* Progress rail: clickable chips across the top. */
.ac-rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; background: var(--surface); border-radius: var(--radius); padding: 12px; }
.tk-pipeline-rail { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; background: var(--surface); border-radius: var(--radius); padding: 10px; margin-bottom: 16px; border: 1px solid var(--line); }
@media (max-width: 1024px) {
  .tk-pipeline-rail { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .tk-pipeline-rail { grid-template-columns: repeat(2, 1fr); }
}
.ac-rail-step { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; cursor: pointer; background: transparent; border: 0; color: var(--ink); font: inherit; text-align: left; min-width: 0; }
.ac-rail-step:hover { background: var(--fx-row); }
.ac-rail-step.is-active { background: var(--fx-dark); color: #fff; }
.ac-rail-step.is-active .ac-rail-num { background: var(--fx-lime); color: var(--fx-on-lime); }
.ac-rail-step.is-done .ac-rail-num { background: var(--st-won-bg); color: var(--st-won-fg); }
.ac-rail-step.is-skipped { opacity: 0.5; cursor: default; }
.ac-rail-num { width: 26px; height: 26px; border-radius: 50%; background: var(--fx-row); color: var(--ink2); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.ac-rail-step.is-done .ac-rail-num::after { content: '\2713'; }
.ac-rail-step.is-done .ac-rail-num > span { display: none; }
.ac-rail-body { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.ac-rail-title { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }
.ac-rail-meta { font-size: 11px; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.ac-rail-step.is-active .ac-rail-meta { color: #D2E21A; }
[data-theme="dark"] .tk-pipeline-rail { background: #161814; border-color: rgba(255, 255, 255, 0.08); }
[data-theme="dark"] .ac-rail-step.is-active { background: #1f231b; color: #f3f4f6; border: 1px solid rgba(210, 226, 26, 0.25); }

/* Artist pipeline step navigation footer */
.tk-step-nav-footer { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--surface); border-bottom-left-radius: var(--radius); border-bottom-right-radius: var(--radius); }
[data-theme="dark"] .tk-step-nav-footer { background: #161814; border-top-color: rgba(255, 255, 255, 0.08); }
.tk-step-nav-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px; border-radius: 9999px; font-size: 12px; font-weight: 600; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; transition: all 0.15s ease; }
.tk-step-nav-btn:hover:not(:disabled) { background: var(--fx-row); border-color: var(--line-strong); }
.tk-step-nav-btn:disabled { opacity: 0.3; cursor: not-allowed; }
[data-theme="dark"] .tk-step-nav-btn { background: #1f231b; border-color: rgba(255, 255, 255, 0.15); color: #f3f4f6; }
[data-theme="dark"] .tk-step-nav-btn:hover:not(:disabled) { background: #262c21; border-color: rgba(255, 255, 255, 0.25); }
.tk-step-counter-text { font-size: 12px; font-weight: 500; color: var(--ink3); }

/* Vertical step cards. */
.ac-step { background: var(--surface); border-radius: var(--radius); padding: 20px 24px; scroll-margin-top: 80px; }
.ac-step.is-skipped { opacity: 0.6; }
.ac-step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ac-step-num { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; flex: none; background: var(--fx-row); color: var(--ink2); }
.ac-step.is-done .ac-step-num { background: var(--st-won-bg); color: var(--st-won-fg); }
.ac-step.is-done .ac-step-num::after { content: '\2713'; font-size: 14px; }
.ac-step.is-done .ac-step-num > span { display: none; }
.ac-step.is-active .ac-step-num { background: var(--fx-lime); color: var(--fx-on-lime); }
.ac-step-title { font-size: 16px; font-weight: 700; color: var(--ink); flex: 1; }
.ac-step.is-done .ac-step-title, .ac-step.is-skipped .ac-step-title { color: var(--ink2); font-weight: 600; }
.ac-step-meta { font-size: 12.5px; color: var(--ink3); margin-left: auto; }
.ac-step-body { display: flex; flex-direction: column; gap: 14px; }
.ac-step-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Compact summary rows for done steps. */
.ac-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px 20px; }
.ac-summary-item { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ac-summary-k { font-size: 11.5px; color: var(--ink3); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.ac-summary-v { font-size: 14px; color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }

/* Application form: a clean 2-col grid of floating-label fields. */
.ac-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ac-form .rv-field.full { grid-column: 1 / -1; margin-bottom: 0; }
.ac-form .rv-field { margin-bottom: 0; }

/* Payments card inside the form. */
.ac-pay-card { grid-column: 1 / -1; background: var(--fx-row); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.ac-pay-card .ac-sub { font-size: 12.5px; font-weight: 700; color: var(--ink2); letter-spacing: 0.04em; text-transform: uppercase; }
.ac-pay-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 1fr) auto auto; gap: 8px; align-items: center; }
.ac-pay-row .rv-field { margin: 0; }
.ac-pay-row .rv-field > .f { min-height: 48px; padding: 16px 12px 6px; font-size: 14px; }
.ac-pay-row .rv-field > .lbl { top: 12px; font-size: 13px; }
.ac-pay-proof { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 13px; padding-top: 6px; border-top: 1px dashed var(--line); }

/* Buttons used across the page. */
#view-artist-call .btn.primary, .ac-step .btn.primary { background: var(--fx-lime); color: var(--fx-on-lime); border: 0; font-weight: 600; }
#view-artist-call .btn.primary:hover, .ac-step .btn.primary:hover { filter: brightness(0.95); }

/* Outcome step buttons: two big choices. */
.ac-outcome { display: flex; flex-wrap: wrap; gap: 10px; }
.ac-outcome .btn { min-width: 160px; padding: 12px 20px; font-weight: 600; border-radius: 14px; }
.ac-outcome .btn.primary { background: var(--fx-lime); color: var(--fx-on-lime); border: 0; }

/* Response block: artist's reply. */
.ac-reply-current { display: inline-flex; align-items: center; gap: 10px; background: var(--fx-row); padding: 10px 14px; border-radius: 12px; font-size: 14px; }
.ac-reply-current strong { color: var(--ink); font-weight: 600; }
.ac-note { font-size: 12.5px; color: var(--ink3); }

/* Docs block. */
.ac-docs { background: var(--surface); border-radius: var(--radius); padding: 20px 24px; }
.ac-docs h3 { margin: 0 0 12px; font-size: 16px; font-weight: 700; }
.ac-doc-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.ac-doc-row:last-of-type { border-bottom: 0; }
.ac-doc-row input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--fx-lime); }

/* Phone. */
@media (max-width: 720px) {
  .ac-rail { grid-template-columns: repeat(2, 1fr); }
  .ac-form { grid-template-columns: 1fr; }
  .ac-pay-row { grid-template-columns: 1fr 1fr; }
}

/* ============================================================================
   Artist-call page, round 2 (14 Nov 2026): the pipeline now shows one step at
   a time, the hero carries all the important call info at a glance, and the
   documents card has been redone.
   ============================================================================ */
.ac-hero-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ac-hero-title h2 { margin: 0; font-size: 22px; font-weight: 700; color: var(--ink); letter-spacing: -0.3px; }
.ac-hero { gap: 14px; }                     /* more room between the title row and chips */
.ac-chip.ac-chip-urgent { background: #FFE3CF; color: #8A3A05; font-weight: 700; }
[data-theme="dark"] .ac-chip.ac-chip-urgent { background: #3A2311; color: #FFB888; }
.ac-chip-link { background: var(--fx-dark); color: #fff; text-decoration: none; font-weight: 600; }
.ac-chip-link:hover { filter: brightness(1.1); }
.ac-more-btn { background: transparent; border: 0; color: var(--ink2); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; padding: 6px 0; align-self: flex-start; display: inline-flex; gap: 4px; align-items: center; }
.ac-more-btn:hover { color: var(--ink); }

/* Full-call sheet (view-full). */
.ac-full { display: flex; flex-direction: column; gap: 10px; }
.ac-full-row { display: grid; grid-template-columns: 140px 1fr; gap: 12px; font-size: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.ac-full-row:last-child { border-bottom: 0; }
.ac-full-k { color: var(--ink3); font-weight: 600; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; padding-top: 2px; }
.ac-full-v { color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.ac-full-v a { color: var(--fx-on-lime); background: var(--fx-lime); padding: 2px 8px; border-radius: 6px; text-decoration: none; }
@media (max-width: 540px) { .ac-full-row { grid-template-columns: 1fr; gap: 2px; } }

/* Rail: the step that is current (not done, and the pipeline is waiting on it) keeps a lime
   ring even when the user is looking at a different step. */
.ac-rail-step.is-current:not(.is-active) { box-shadow: inset 0 0 0 2px var(--fx-lime); }

/* Step card nav: Back / Next links at the bottom of the open step. */
.ac-step-nav { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ac-step-nav .btn { min-width: 0; }

/* Documents section (redone 14 Nov 2026). */
.ac-docs { display: flex; flex-direction: column; gap: 14px; }
.ac-docs-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ac-docs-head h3 { margin: 0; font-size: 16px; font-weight: 700; }
.ac-docs-count { font-size: 12.5px; color: var(--ink3); font-weight: 600; }
.ac-docs-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.ac-docs .ac-doc-row {
  background: var(--fx-row);
  border-radius: 12px;
  padding: 10px 14px;
  border-bottom: 0;
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; cursor: pointer;
  transition: background .12s;
}
.ac-docs .ac-doc-row:hover { background: var(--fx-row-hover); }
.ac-docs .ac-doc-row:has(input:checked) { background: var(--st-won-bg); color: var(--st-won-fg); font-weight: 500; }
.ac-docs .ac-doc-row:has(input:checked) span::before { content: '\2713  '; color: var(--st-won-fg); font-weight: 700; }
.ac-docs-footer { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ac-docs-footer .btn.primary { background: var(--fx-lime); color: var(--fx-on-lime); border: 0; }

/* Form usability pass: in-field placeholder in the lower half so it doesn't
   overlap the floating label; selects use the brand focus ring. */
.rv-field > .f:focus { outline: none; border-color: var(--fx-dark); box-shadow: 0 0 0 3px rgba(21, 30, 17, 0.12); }
[data-theme="dark"] .rv-field > .f:focus { border-color: var(--fx-lime); box-shadow: 0 0 0 3px rgba(210, 226, 26, 0.18); }
.rv-field > .lbl { white-space: nowrap; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; }
/* Date / time controls on Chromium show a calendar icon that sits over the top padding. */
.rv-field > input[type="date"].f, .rv-field > input[type="time"].f { padding-right: 12px; }

/* ---------- Analytics Career Milestones Table ---------- */
.tk-analytics-table th {
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
}
.tk-analytics-table {
  min-width: 760px;
}

/* ---------- Desktop Master-Detail Split View (>= 1024px) ---------- */
@media (min-width: 1024px) {
  #view-list.wrap, .wrap.view {
    max-width: 100% !important;
  }
  .tk-split-container {
    display: flex !important;
    gap: 24px !important;
    align-items: flex-start !important;
    width: 100% !important;
  }
  .tk-split-container.has-preview-pane .tk-table-pane {
    flex: 1 1 58% !important;
    max-width: 60% !important;
    min-width: 0 !important;
  }
  .tk-split-container.has-preview-pane .tk-table-card {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  .tk-split-container.has-preview-pane .tk-half-pane {
    flex: 0 0 400px !important;
    width: 400px !important;
    max-width: 42% !important;
    min-width: 360px !important;
    position: sticky !important;
    top: 24px !important;
    max-height: calc(100vh - 48px) !important;
    overflow-y: auto !important;
  }
  .tk-split-container.has-preview-pane .tk-pane-card {
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: 0 4px 20px -2px rgba(21, 30, 17, 0.08);
  }
}

/* ---------- Tablet & Mobile Ergonomics (< 1024px) ---------- */
@media (max-width: 1023px) {
  main {
    max-width: 100% !important;
  }
}

/* Mobile (< 768px): Fixed bottom nav clearance & Slide-up detail sheet */
@media (max-width: 767px) {
  main {
    padding-bottom: calc(92px + env(safe-area-inset-bottom, 16px)) !important;
  }
  /* Keep sticky form actions above the bottom navigation bar */
  .tk-sticky-actions {
    position: fixed !important;
    bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 35 !important;
    border-radius: var(--radius) var(--radius) 0 0 !important;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.12) !important;
  }
  /* Slide-up Bottom Sheet for Opportunity Details Preview */
  .tk-split-container.has-preview-pane .tk-half-pane {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    z-index: 60 !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: 85vh !important;
    border-radius: 20px 20px 0 0 !important;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.28) !important;
    background: var(--surface) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 16px)) !important;
    animation: tkSlideUpSheet 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }
  .tk-split-container.has-preview-pane .tk-pane-card {
    border: none !important;
    border-radius: 20px 20px 0 0 !important;
    box-shadow: none !important;
    padding: 20px 18px !important;
  }
  /* Touch target assurance */
  .btn, .tk-nav-item, .tk-filter-select, .tk-status-tab {
    min-height: 44px;
  }
}

@keyframes tkSlideUpSheet {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
