/* ──────────────────────────────────────────────────────────
   PROJECTS (Release Runway) — list, cards, inline detail
────────────────────────────────────────────────────────── */
#panel-projects { padding: 0; }
.pj-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 32px 32px 20px; border-bottom: 1px solid var(--border);
}
.pj-title { font-family: var(--font-body); font-size: 22px; font-weight: 700; color: var(--text); letter-spacing: -0.4px; }
.pj-sub { font-family: var(--font-body); font-size: 12px; color: var(--text-3); margin-top: 3px; }
.pj-new-btn {
  font-family: var(--font-body); font-size: 13px; font-weight: 700; color: var(--green);
  background: transparent; border: 1px solid rgba(45,106,79,0.25); border-radius: 999px;
  padding: 8px 18px; cursor: pointer; transition: all 150ms var(--ease);
}
.pj-new-btn:hover { background: var(--green-dim); border-color: rgba(45,106,79,0.4); }

.pj-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px; padding: 24px 32px 48px; align-items: start;
}
@media (max-width: 1100px) { .pj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pj-empty { font-family: var(--font-body); font-size: 13px; color: var(--text-3); grid-column: 1 / -1; padding: 8px 0; }

.pj-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 18px; cursor: pointer;
  transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease);
}
.pj-card:hover { border-color: rgba(45,106,79,0.4); box-shadow: 0 4px 18px rgba(0,0,0,0.05); }
.pj-card.pj-muted { opacity: 0.65; }
.pj-card-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.pj-type {
  font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: 0.8px;
  text-transform: uppercase; color: var(--green); background: var(--green-dim);
  padding: 2px 8px; border-radius: 999px;
}
.pj-status {
  font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: 0.8px;
  text-transform: uppercase; color: var(--text-3);
}
.pj-card-title { font-family: var(--font-body); font-size: 15px; font-weight: 700; color: var(--text); }
.pj-card-artist { font-family: var(--font-body); font-size: 12px; font-weight: 600; color: var(--green); margin-top: 2px; }
.pj-card-date { font-family: var(--font-body); font-size: 11px; color: var(--text-2); margin-top: 8px; }
.pj-date-mono { font-family: var(--font-mono); font-weight: 600; }
.pj-bar { height: 3px; border-radius: 999px; background: var(--border); margin-top: 10px; overflow: hidden; }
.pj-bar span { display: block; height: 100%; border-radius: 999px; background: var(--green); }
.pj-bar-note { font-family: var(--font-mono); font-size: 10px; font-weight: 600; color: var(--text-3); margin-top: 4px; }

/* inline detail — task/event rows */
.pj-detail { margin-top: 4px; }
.pj-task {
  display: flex; align-items: baseline; gap: 9px;
  padding: 7px 0; border-bottom: 1px solid var(--border);
}
.pj-task:first-child { margin-top: 8px; border-top: 1px solid var(--border); }
.pj-task:last-of-type { border-bottom: none; }
.pj-task-dot {
  width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto;
  background: var(--border-med); position: relative; top: -1px;
}
.pj-task.hot .pj-task-dot { background: var(--green); }
.pj-task.done .pj-task-dot { background: var(--emerald); }
.pj-task-dot.event { background: var(--amber); }
.pj-task-title { font-family: var(--font-body); font-size: 12px; font-weight: 600; color: var(--text-2); flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pj-task.done .pj-task-title { color: var(--text-3); text-decoration: line-through; }
.pj-task-due { font-family: var(--font-mono); font-size: 10px; font-weight: 600; color: var(--text-3); flex: 0 0 auto; }
.pj-detail-actions { display: flex; gap: 10px; margin-top: 12px; align-items: center; flex-wrap: wrap; }
.pj-move-wrap { display: inline-flex; gap: 6px; align-items: center; }
.pj-move-input {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--text);
  background: var(--surface); border: 1px solid rgba(45,106,79,0.35); border-radius: 999px;
  padding: 4px 10px; resize: none;
  /* Safari renders native date text in washed system grey — strip the
     native chrome so our color actually applies */
  -webkit-appearance: none; appearance: none;
}
.pj-move-input:focus { outline: none; border-color: var(--green); }
.pj-act {
  font-family: var(--font-body); font-size: 11px; font-weight: 700; color: var(--green);
  background: none; border: 1px solid rgba(45,106,79,0.25); border-radius: 999px;
  padding: 5px 12px; cursor: pointer; transition: all 150ms var(--ease);
}
.pj-act:hover { background: var(--green-dim); }
.pj-act-danger { color: var(--coral); border-color: rgba(155,68,68,0.3); }
.pj-act-danger:hover { background: rgba(155,68,68,0.08); }

/* ── Workspace: inside a project ── */
.pjw { padding: 24px 32px 48px; }
/* Song Submissions (Management sub-tab) wears the Projects page head, so
   the sub-panel's 24px top yields to .pj-head's own 32px — the head then
   lands exactly where Projects' and Contracts' do (Ollie, 2026-08-07) */
#panel-mgmt #mgmtSubmissions { padding-top: 0; }
/* Fan Responses wears the same head, so the same yield applies — the two
   sub-tabs' titles land at the identical height (Ollie, 2026-08-09) */
#panel-mgmt #mgmtFans { padding-top: 0; }
/* section headers match the site's newer sections (Revenue's h3 recipe) */
.pjw-h { margin: 0 0 10px; font-family: var(--font-body); font-size: 17px; font-weight: 800; color: var(--text); }
.pjw-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.pjw-topbar .pjw-back { margin-bottom: 0; }
.pjw-topbar .at-artist-ctx { position: relative; display: inline-block; }
.pjw-opt-move { padding: 4px 10px 10px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.pjw-opt-move-row { display: flex; gap: 6px; align-items: center; padding-top: 2px; }
/* the song-link bubble's pill sits beside Upload contract — match .pj-act's size */
#pjwCSongCtx .at-artist-pill { font-size: 11px; padding: 5px 12px; cursor: pointer; }
/* the topbar's Options pill matches ← Projects (.pjw-back's 12px/5x14) */
.pjw-topbar .at-artist-pill { font-size: 12px; padding: 5px 14px; cursor: pointer; line-height: 16px; }
.at-artist-menu-item.pjw-opt-danger { color: var(--coral); }
.at-artist-menu-item.pjw-opt-danger:hover { background: rgba(155,68,68,0.08); color: var(--coral); }
/* back link is a house pill — same recipe as the archive's ‹ Tasks */
.pjw-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-body); font-size: 12px; font-weight: 700; color: var(--green);
  background: var(--surface); border: 1px solid rgba(45,106,79,0.35); border-radius: 999px;
  padding: 5px 14px; cursor: pointer; margin-bottom: 18px; line-height: 16px;
  transition: background 120ms var(--ease);
}
.pjw-back:hover { background: var(--green-dim); }
.pjw-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.pjw-title { font-family: var(--font-body); font-size: 26px; font-weight: 700; color: var(--text); letter-spacing: -0.4px; margin-top: 6px; }
.pjw-artist { font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--green); margin-top: 3px; }
.pjw-count { text-align: right; flex: 0 0 auto; }
.pjw-count-num { font-family: var(--font-mono); font-size: 28px; font-weight: 700; color: var(--text); letter-spacing: -0.01em; line-height: 1; }
.pjw-count-label { font-family: var(--font-mono); font-size: 10px; font-weight: 600; color: var(--text-3); margin-top: 5px; letter-spacing: 0.04em; }
.pjw-bar { margin-top: 16px; }
.pjw-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; margin-top: 26px; align-items: start; }
.pjw-col { min-width: 0; }
.pjw-task {
  display: flex; align-items: baseline; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid var(--border);
}
.pjw-task:last-child { border-bottom: none; }
.pjw-check {
  width: 17px; height: 17px; border-radius: 5px; flex: 0 0 auto; position: relative; top: 2px;
  background: var(--surface); border: 1.5px solid rgba(45,106,79,0.45); cursor: pointer;
  font-size: 10px; line-height: 1; color: #fff; padding: 0;
  transition: background 130ms var(--ease), border-color 130ms var(--ease);
}
.pjw-check:hover { border-color: var(--green); }
.pjw-check.on { background: var(--green); border-color: var(--green); }
.pjw-task.done .pj-task-title { color: var(--text-3); text-decoration: line-through; }
.pjw-task.hot .pj-task-title { color: var(--green); }
.pjw-add { display: flex; gap: 8px; margin-top: 14px; align-items: center; }
.pjw-add-input {
  flex: 1 1 auto; min-width: 0;
  font-family: var(--font-body); font-size: 13px; color: var(--text);
  background: var(--surface); border: 1px solid rgba(45,106,79,0.35); border-radius: 999px;
  padding: 7px 14px; resize: none;
}
.pjw-add-input:focus { outline: none; border-color: var(--green); }
/* browsers wash placeholders to ~50% opacity — hold them at full text-3 */
.pjw-add-input::placeholder { color: var(--text-3); opacity: 1; }
#panel-projects input[type="date"]::-webkit-datetime-edit,
#panel-projects input[type="date"]::-webkit-datetime-edit-text,
#panel-projects input[type="date"]::-webkit-datetime-edit-year-field,
#panel-projects input[type="date"]::-webkit-datetime-edit-month-field,
#panel-projects input[type="date"]::-webkit-datetime-edit-day-field { color: var(--text); opacity: 1; }

/* tracklist rows (workspace) */
.pjw-track {
  display: flex; align-items: baseline; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--border);
}
.pjw-track:last-child { border-bottom: none; }
.pjw-track-num { font-family: var(--font-mono); font-size: 10px; font-weight: 600; color: var(--text-3); flex: 0 0 16px; text-align: right; }
.pjw-track-x {
  background: none; border: none; color: var(--text-3); font-size: 14px; line-height: 1;
  cursor: pointer; padding: 0 2px; flex: 0 0 auto; transition: color 130ms var(--ease);
}
.pjw-track-x:hover { color: var(--coral); }
/* per-song checklist progress on tracklist rows */
.pjw-track-ck {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  color: var(--text-3); background: var(--surface-2); border-radius: 999px;
  padding: 1px 7px; flex: 0 0 auto;
}
.pjw-track-ck.all { color: var(--emerald); background: rgba(5,150,105,0.1); }
.pjw-picker { border: 1px solid var(--border); border-radius: 10px; padding: 4px 10px; margin-top: 10px; max-height: 240px; overflow-y: auto; }
.pjw-pick-row {
  display: flex; align-items: baseline; gap: 10px; width: 100%; text-align: left;
  background: none; border: none; border-bottom: 1px solid var(--border);
  padding: 8px 2px; cursor: pointer;
}
.pjw-pick-row:last-child { border-bottom: none; }
.pjw-pick-row:hover .pj-task-title { color: var(--green); }
label.pj-act { display: inline-flex; align-items: center; }

/* due-date button (add-task row): the native empty date input is hidden —
   Safari ghosts it with a grey today-date; a chosen date renders full ink */
.pjw-due-wrap { position: relative; display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.pjw-due-native { position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; border: 0; padding: 0; }
.pj-act.pjw-due-set { font-family: var(--font-mono); color: var(--text); border-color: rgba(45,106,79,0.45); }

/* drag-a-file upload */
.pjw-drop-hint { font-family: var(--font-body); font-size: 11px; color: var(--text-3); }
#projectWorkspace.pjw-dropping .pjw {
  outline: 2px dashed rgba(45,106,79,0.45); outline-offset: -10px; border-radius: 14px;
  background: var(--green-dim);
}

/* contract rows */
.pjw-contract {
  display: flex; align-items: baseline; gap: 9px;
  padding: 8px 0; border-bottom: 1px solid var(--border);
}
.pjw-contract:last-child { border-bottom: none; }
.pjw-doc-ico { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); flex: 0 0 auto; }
.pjw-doc-song {
  font-family: var(--font-body); font-size: 10px; font-weight: 700; color: var(--green);
  background: var(--green-dim); border-radius: 999px; padding: 2px 8px; flex: 0 0 auto;
}
.pjw-track-open { cursor: pointer; transition: color 140ms var(--ease); }
.pjw-track-open:hover { color: var(--green); }

/* ── Song submissions — spreadsheet view + detail fields ── */
.sub-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 140px 100px 90px 130px 70px 90px;
  gap: 12px; align-items: center;
}
.sub-cols {
  font-family: var(--font-mono); font-size: 9px; font-weight: 600;
  letter-spacing: 0.8px; text-transform: uppercase; color: var(--text-3);
  padding: 8px 8px 6px; border-bottom: 1px solid var(--border-med);
}
.sub-row {
  padding: 7px 8px; border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background 120ms var(--ease);
}
.sub-row:hover { background: var(--green-dim); }
/* Manager view: the artist's own colour (picked in My Artists) as a left
   edge, so a long sheet groups by artist at a glance. An edge, never an
   avatar disc — the house pattern (Ollie, 2026-08-07). The inline colour
   supplies border-left-color. */
.sub-row-artist { border-left: 3px solid transparent; padding-left: 11px; }
/* the note under the optional email field on the submission form */
.sub-email-note { font-size: 11.5px; color: var(--text-3); line-height: 1.5; margin: -6px 0 4px; }
/* Submission list rows — own typography; the first cut borrowed tlv-*
   classes that are scoped to #panel-board and mga-artist from the
   briefing, so the sheet rendered unstyled (Eli, 2026-08-10) */
.sub-name { font-family: var(--font-body); font-size: 13.5px; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sub-cell { font-family: var(--font-body); font-size: 12px; font-weight: 600; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Artist identity pill — same theme-aware wash as the board/calendar chips,
   sized for the table row. Light: soft tint; dark: richer fill + lifted
   border + bright ink (Eli, 2026-08-14). */
.sub-artist-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-body); font-size: 11.5px; font-weight: 600; color: var(--text-2);
  padding: 3px 10px; border-radius: 999px;
  border: 1px solid var(--border-med);
  background: color-mix(in srgb, var(--chip-c, var(--surface)) 30%, var(--surface));
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sub-artist-pill .cal-artist-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; background: var(--chip-c, var(--text-3)); }
[data-theme="dark"] .sub-artist-pill {
  background: color-mix(in srgb, var(--chip-c, var(--surface)) 45%, var(--surface));
  border-color: color-mix(in srgb, var(--chip-c, var(--border-med)) 55%, var(--surface));
  color: var(--text);
}
[data-theme="dark"] .sub-artist-pill .cal-artist-dot { background: color-mix(in srgb, var(--chip-c, var(--text-3)) 82%, white); }
.sub-mono { font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.sub-dim { color: var(--text-3); }

/* Detail slide-out — sectioned, not a wall of text */
.sub-sec { padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--border); }
.sub-sec:first-child { padding-top: 0; margin-top: 0; border-top: none; }
.sub-sec-title {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase; color: var(--green); margin-bottom: 12px;
}
.sub-pairs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.sub-file-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.sub-play-btn { text-decoration: none; display: inline-flex; align-items: center; }
.sub-lyrics {
  font-family: var(--font-body); font-size: 13px; line-height: 1.65; color: var(--text-2);
  max-height: 320px; overflow-y: auto; padding: 14px 16px; border: 1px solid var(--border);
  border-radius: 10px; background: rgba(45,106,79,0.03);
  scrollbar-width: thin; scrollbar-color: rgba(45,106,79,0.25) transparent;
}
.sub-f { margin-bottom: 14px; }
.sub-f-label {
  font-family: var(--font-mono); font-size: 9px; font-weight: 700;
  letter-spacing: 0.8px; text-transform: uppercase; color: var(--text-3); margin-bottom: 3px;
}
.sub-f-val { font-family: var(--font-body); font-size: 13px; color: var(--text); line-height: 1.55; }
.sub-f-val.mono { font-family: var(--font-mono); font-size: 12px; }

/* runway checkbox row in the create modal */
.pj-runway-check {
  display: flex; align-items: flex-start; gap: 9px;
  font-family: var(--font-body); font-size: 12px; font-weight: 500;
  color: var(--text-2); line-height: 1.5; cursor: pointer;
}
.pj-runway-check input { margin-top: 3px; accent-color: var(--green); }
