/* Linea Studio — on the Linea Group brand, light surfaces.
   Not a compromise between brand and light: the brand's own Website Palette IS
   light (black #0e0e0e on #f4f4f4). What follows the brand and did not before:
   ink black as primary rather than a generic blue, no shadows, 2px radii,
   structure from 1px rules instead of tinted fills, Mona Sans and DM Mono.

   One rule worth stating because it is counter-intuitive: the brand accents
   (green #22c55e, amber, blue, purple) are a DARK-mode palette. On white they
   measure 2.1 to 2.7:1 and cannot carry text or even a graphical mark. They keep
   their brand values on the player's black stage; on light surfaces the darker
   -ink sibling does the work. */

@font-face { font-family: "Mona Sans"; src: url("/fonts/Mona-Sans-Regular.woff2") format("woff2");
             font-weight: 400; font-display: swap; }
@font-face { font-family: "Mona Sans"; src: url("/fonts/Mona-Sans-Medium.woff2") format("woff2");
             font-weight: 500; font-display: swap; }
@font-face { font-family: "Mona Sans"; src: url("/fonts/Mona-Sans-SemiBold.woff2") format("woff2");
             font-weight: 600; font-display: swap; }
@font-face { font-family: "Mona Sans"; src: url("/fonts/Mona-Sans-Bold.woff2") format("woff2");
             font-weight: 700; font-display: swap; }
@font-face { font-family: "Mona Sans Narrow"; src: url("/fonts/Mona-Sans-ExtraBoldNarrow.woff2") format("woff2");
             font-weight: 800; font-display: swap; }
@font-face { font-family: "Mona Sans Narrow"; src: url("/fonts/Mona-Sans-BlackNarrow.woff2") format("woff2");
             font-weight: 900; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("/fonts/DMMono-Regular.woff2") format("woff2");
             font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("/fonts/DMMono-Medium.woff2") format("woff2");
             font-weight: 500; font-display: swap; }

:root {
  color-scheme: light;
  /* Styles the raw checkboxes and date pickers in one line. */
  accent-color: #0e0e0e;

  /* surfaces — brand Website Palette */
  --bg:           #f4f4f4;
  --surface:      #ffffff;
  --surface-2:    #fafafa;
  --surface-3:    #f0f0f0;
  --surface-ink:  #0e0e0e;   /* primary button, active nav, toast */
  --ink-2:        #1d1d1d;   /* its hover */
  --surface-dark: #0a0a0a;   /* the review stage, and only that */
  --surface-dark-2: #141414;
  --border-dark:  #252525;

  /* rules */
  --border:        #e6e6e6;
  --border-strong: #acacac;
  --control:       #8d8d8d;  /* 3.32:1 — interactive boundaries need 3:1 */
  --border-ink:    #0e0e0e;

  /* text */
  --text:           #0e0e0e;  /* 19.30:1 */
  --text-secondary: #646464;  /*  5.92:1 — every label, eyebrow and table head */
  --text-dim:       #8d8d8d;  /*  3.32:1 — placeholder and disabled ONLY */
  --text-on-ink:    #ffffff;

  /* accents: brand hex for dark surfaces and marks, -ink for text on white */
  --positive: #22c55e;  --positive-ink: #15803d;
  --caution:  #f59e0b;  --caution-ink:  #b45309;
  --negative: #ef4444;  --negative-ink: #b91c1c;
  --info:     #60a5fa;  --info-ink:     #1d4ed8;

  /* the seven stages: mark for the 3px bars and dots, ink for the text */
  --st-assigned:  #8d8d8d;  --st-assigned-ink:  #646464;
  --st-progress:  #646464;  --st-progress-ink:  #1d1d1d;
  --st-internal:  #2563eb;  --st-internal-ink:  #1d4ed8;
  --st-client:    #7c3aed;  --st-client-ink:    #6d28d9;
  --st-revision:  #d97706;  --st-revision-ink:  #b45309;
  --st-confirmed: #15803d;  --st-confirmed-ink: #166534;
  --st-published: #0e0e0e;  --st-published-ink: #0e0e0e;

  --radius: 2px;
  --radius-sm: 2px;
  --sidebar-w: 232px;
  --topbar-h: 60px;
  --shadow: none;
  --shadow-lg: none;

  --display: "Mona Sans Narrow", "Mona Sans", Impact, sans-serif;
  --font: "Mona Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Aliases so every existing call site keeps working through the migration.
     --blue points at ink, not at a darker blue: otherwise step one of the
     restyle just changes the shade of blue and leaves a blue-to-black hover. */
  --blue: var(--surface-ink);
  --blue-hover: var(--ink-2);
  --blue-soft: var(--surface-3);
  --blue-border: var(--border-strong);
  --green: var(--positive-ink);
  --amber: var(--caution-ink);
  --red: var(--negative-ink);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Numbers never reflow as they tick. */
.mono, .timecode, table.list td, .pipeline-seg .n, .load-cell strong { font-variant-numeric: tabular-nums; }

a { color: var(--text); text-decoration: underline; text-underline-offset: 2px;
    text-decoration-color: var(--border-strong); }
a:hover { text-decoration-color: var(--text); }
a:hover { text-decoration: underline; }
button { font-family: inherit; }

/* ---------- layout ---------- */

.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}

.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar-brand {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: var(--radius);
  background: var(--surface-ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
}

.nav { padding: 14px 10px; flex: 1; overflow-y: auto; }
.nav-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  padding: 14px 10px 6px;
  font-weight: 600;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  font-weight: 500;
  user-select: none;
}
.nav-item:hover { background: var(--surface-3); color: var(--text); }
.nav-item.active { background: var(--surface-ink); color: var(--text-on-ink); font-weight: 600; }
.nav-item .count {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.sidebar-foot {
  border-top: 1px solid var(--border);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.main { display: flex; flex-direction: column; min-width: 0; }

.topbar {
  height: var(--topbar-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.topbar h1 { font-size: 16px; margin: 0; font-weight: 650; letter-spacing: -0.01em; }
.topbar .spacer { flex: 1; }

.content { padding: 20px; flex: 1; min-width: 0; }

/* ---------- controls ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 550;
  cursor: pointer;
  white-space: nowrap;
}
.btn { border-color: var(--control); }
.btn:hover { background: var(--surface-3); border-color: var(--border-ink); }
.btn.primary { background: var(--surface-ink); border-color: var(--surface-ink); color: var(--text-on-ink); }
.btn.primary:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn.danger { color: var(--red); border-color: #fecaca; }
.btn.danger:hover { background: #fef2f2; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.sm { padding: 5px 10px; font-size: 12px; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--surface-2); }

.input, .select, textarea.input {
  width: 100%;
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  outline: none;
}
.input, .select, textarea.input { border-color: var(--control); }
.input:focus, .select:focus, textarea.input:focus {
  border-color: var(--border-ink);
  outline: 2px solid var(--border-ink);
  outline-offset: -2px;
}
.input::placeholder, textarea.input::placeholder { color: var(--text-dim); }
.select { cursor: pointer; padding-right: 28px; }
textarea.input { resize: vertical; min-height: 76px; line-height: 1.5; }

.label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.field { margin-bottom: 14px; }

.filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.filters .select, .filters .input { width: auto; min-width: 150px; }

.segmented {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
}
.segmented button {
  padding: 7px 13px;
  border: none;
  background: transparent;
  font-size: 12.5px;
  font-weight: 550;
  color: var(--text-secondary);
  cursor: pointer;
}
.segmented button + button { border-left: 1px solid var(--border); }
.segmented button.active { background: var(--surface-ink); color: var(--text-on-ink); }

/* ---------- cards, board ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.card-pad { padding: 16px; }

.board {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  overflow-x: auto;
  padding-bottom: 20px;
}
/* Seven stages have to be readable at once — that is the whole point of the
   board — so columns share the width and only start scrolling on small
   screens. */
.column {
  flex: 1 1 0;
  min-width: 172px;
  background: transparent;
  border-top: 2px solid var(--seg, var(--border-strong));
  padding: 10px 8px;
  min-height: 120px;
}

/* Pipeline strip: the counts per stage, always visible, never scrolls. */
.pipeline {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}
.pipeline-seg {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 11px;
  cursor: pointer;
  border-top: 3px solid var(--seg, var(--border));
  min-width: 0;
}
.pipeline-seg:hover { border-color: var(--border-strong); border-top-color: var(--seg); }
.pipeline-seg.active { background: var(--surface-ink); }
.pipeline-seg.active .l { color: var(--text-dim); }
.pipeline-seg.active .n { color: var(--text-on-ink) !important; }
.pipeline-seg .n { font-family: var(--display); font-size: 22px; font-weight: 900; line-height: 1; letter-spacing: -0.02em; }
.pipeline-seg .l {
  font-size: 9.5px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.column.drag-over { background: var(--surface-3); outline: 1px dashed var(--border-ink); }
.column-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px 10px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
  text-transform: uppercase;
}
.column-head .count {
  margin-left: auto;
  background: var(--surface-3);
  border-radius: 20px;
  padding: 1px 8px;
  font-size: 11px;
  color: var(--text-secondary);
}
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }

.task-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 12px;
  margin-bottom: 8px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.task-card:hover { border-color: var(--border-ink); }
.task-card.dragging { opacity: 0.45; }
.task-card .client-bar {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
}
.task-card .card-client {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-left: 6px;
  margin-bottom: 3px;
}
.task-card .title { font-weight: 600; line-height: 1.35; margin-bottom: 8px; padding-left: 6px; }
.task-card .meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding-left: 6px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  white-space: nowrap;
}
.chip.blue { border-color: var(--info-ink); color: var(--info-ink); }
.chip.amber { border-color: var(--caution-ink); color: var(--caution-ink); }
.chip.green { border-color: var(--positive-ink); color: var(--positive-ink); }
.chip.red { border-color: var(--negative-ink); color: var(--negative-ink); }

.avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  display: grid;
  place-items: center;
  font-size: 10.5px;
  font-weight: 700;
  flex: none;
  border: 1px solid var(--control);
}
.avatar.lg { width: 32px; height: 32px; font-size: 12px; }
.avatar.more { background: var(--surface-2); color: var(--text-secondary); border-color: var(--border); }

/* Overlapping avatars: several people on one ad is the normal case. */
.avatar-stack { display: flex; }
.avatar-stack > * { margin-left: -7px; box-shadow: 0 0 0 2px var(--surface); }
.avatar-stack > *:first-child { margin-left: 0; }

.picker {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  max-height: 190px;
  overflow-y: auto;
}
.picker-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  cursor: pointer;
  font-size: 13px;
}
.picker-row + .picker-row { border-top: 1px solid var(--border); }
.picker-row:hover { background: var(--surface-3); }
.picker-row.on { background: var(--surface-3); }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 3px 9px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid currentColor;
  white-space: nowrap;
}

/* ---------- calendar ---------- */

.calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.cal-head {
  background: var(--surface-2);
  padding: 8px 10px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}
.cal-cell {
  background: var(--surface);
  min-height: 124px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.cal-cell.empty { background: var(--surface-2); }
.cal-cell.weekend { background: var(--surface-2); }
.cal-cell.today { box-shadow: inset 0 0 0 2px var(--border-ink); }
.cal-cell.drag-over { background: var(--surface-3); }
.cal-day { font-size: 11.5px; font-weight: 600; color: var(--text-secondary); margin-bottom: 2px; }
.cal-cell.today .cal-day { color: var(--text); }
/* Client on top, ad underneath: at column width a single line truncates both
   into uselessness. */
.cal-task {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 5px 7px;
  border-radius: 5px;
  background: var(--surface-2);
  border-left: 3px solid var(--border-strong);
  cursor: pointer;
  min-width: 0;
}
.cal-task:hover { background: var(--surface-3); }
.cal-task-client {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-task-client .dot { width: 6px; height: 6px; }
.cal-task-title {
  font-size: 11.5px;
  line-height: 1.25;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- table ---------- */

table.list { width: 100%; border-collapse: collapse; }
table.list th {
  text-align: left;
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  padding: 11px 12px;
  border-bottom: 1px solid var(--border-strong);
  font-weight: 600;
}
table.list td { padding: 11px 12px; border-bottom: 1px solid var(--border); }
table.list tr:hover td { background: var(--surface-3); cursor: pointer; }

/* ---------- stepper ---------- */

.stepper { display: flex; flex-wrap: wrap; gap: 6px; }
.step {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  cursor: pointer;
  white-space: nowrap;
}
.step:hover:not(.disabled) { border-color: var(--border-strong); color: var(--text-secondary); }
.step.done { color: var(--text-secondary); }
.step.current { color: #fff; border-color: transparent; }
.step.disabled { cursor: not-allowed; opacity: 0.55; }

/* ---------- modal ---------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  display: grid;
  place-items: center;
  z-index: 100;
  padding: 20px;
}
.modal {
  background: var(--surface);
  border-radius: 16px;
  width: 520px;
  max-width: 100%;
  max-height: 88vh;
  overflow-y: auto;
}
.modal-head {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  font-weight: 650;
  font-size: 15px;
  display: flex;
  align-items: center;
}
.modal-body { padding: 20px; }
.modal-foot {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  position: sticky;
  bottom: 0;
  background: var(--surface);
}

/* ---------- misc ---------- */

.empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-dim);
}
.empty h3 { color: var(--text-secondary); margin: 0 0 6px; font-size: 15px; }

.detail-row { padding: 11px 0; border-bottom: 1px solid var(--border); }
.detail-row:last-child { border-bottom: none; padding-bottom: 0; }
.detail-row:first-child { padding-top: 0; }
.detail-label {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-bottom: 5px;
}
.detail-value { font-size: 13px; line-height: 1.45; }

.muted { color: var(--text-dim); }
.small { font-size: 12px; }
.mono { font-family: var(--mono); font-size: 12px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.grid-2 { display: grid; grid-template-columns: 1fr 320px; gap: 18px; align-items: start; }

.progress {
  height: 6px;
  background: var(--border);
  border-radius: 20px;
  overflow: hidden;
}
.progress > div { height: 100%; background: var(--surface-ink); transition: width 0.25s ease; }

/* Quota: solid = delivered, hatched = booked but not delivered yet. */
.quota-bar {
  display: flex;
  height: 7px;
  background: var(--border);
  border-radius: 20px;
  overflow: hidden;
}
.quota-bar .done { background: var(--positive-ink); }
.quota-bar .flight { background: var(--control); }

.toast-host {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 200;
}
.toast {
  background: var(--surface-ink);
  color: #fff;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  max-width: 380px;
}
.toast.error { background: var(--negative-ink); }

/* ---------- review / player ---------- */

.review { display: grid; grid-template-columns: 1fr 360px; gap: 16px; align-items: start; }

.player-wrap {
  background: var(--surface-dark);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.stage { position: relative; display: grid; place-items: center; background: var(--surface-dark); }
/* Shrink-wraps the video so the annotation overlay lines up with the picture
   exactly, letterboxing included, without measuring anything. */
.frame { position: relative; display: inline-block; line-height: 0; }
.frame video { max-width: 100%; max-height: 66vh; display: block; }
.stage-overlay { position: absolute; inset: 0; }
.stage-overlay.pinning { cursor: crosshair; }
.stage-overlay.drawing { cursor: crosshair; }

.pin {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50% 50% 50% 2px;
  background: var(--positive);
  border: 2px solid #fff;
  transform: translate(-50%, -100%) rotate(-45deg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}
.pin > span { transform: rotate(45deg); }
.pin.draft { background: var(--caution); }

.controls {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--surface-dark-2);
  color: #e6e6e6;
}
.controls button {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #e2e8f0;
  border-radius: 7px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}
.controls button:hover { background: rgba(255, 255, 255, 0.16); }
.controls button.active { background: var(--positive); color: #0a0a0a; }
.timecode { font-family: var(--mono); font-size: 12px; color: #cbd5e1; white-space: nowrap; }

.timeline {
  position: relative;
  height: 44px;
  background: var(--surface-dark);
  cursor: pointer;
  border-top: 1px solid var(--border-dark);
}
.timeline .played {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  background: rgba(255, 255, 255, 0.14);
  pointer-events: none;
}
.timeline .playhead {
  position: absolute;
  top: 0; bottom: 0;
  width: 2px;
  background: #fff;
  pointer-events: none;
}
.timeline .marker {
  position: absolute;
  bottom: 5px;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: var(--caution);
  border: 2px solid #0b1220;
  cursor: pointer;
}
.timeline .marker.resolved { background: var(--positive); }
.timeline-thumb {
  position: absolute;
  bottom: 52px;
  border-radius: 6px;
  border: 2px solid #fff;
  background-repeat: no-repeat;
  pointer-events: none;
  transform: translateX(-50%);
}

.comment {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--surface);
  cursor: pointer;
}
.comment:hover { border-color: var(--border-strong); }
.comment.active { border-color: var(--border-ink); outline: 1px solid var(--border-ink); }
.comment.resolved { opacity: 0.55; }
.comment .head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.comment .stamp {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-on-ink);
  background: var(--surface-ink);
  padding: 1px 6px;
  border-radius: 5px;
  font-weight: 600;
}
.comment .body { line-height: 1.45; white-space: pre-wrap; word-break: break-word; }

.dropzone {
  border: 1px dashed var(--control);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  color: var(--text-dim);
  background: var(--surface-2);
  cursor: pointer;
}
.dropzone.over { border-color: var(--border-ink); background: var(--surface-3); color: var(--text); }

.mobile-menu { display: none; }

@media (max-width: 1100px) {
  .review { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .mobile-menu { display: inline-flex; }
  .sidebar { display: none; }
  .sidebar.open {
    display: flex;
    position: fixed;
    inset: 0 auto 0 0;
    width: 260px;
    z-index: 90;
  }
  .content { padding: 14px; }
}

/* ---------- workload ---------- */

.load-table td { vertical-align: top; }
.load-cell { min-width: 175px; }
.load-cell.over { background: var(--surface-3); border-radius: 8px; padding: 6px; margin: -6px; }
.load-bar {
  height: 7px;
  background: var(--border);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 7px;
}
.load-bar > div { height: 100%; transition: width 0.25s ease; }
.load-tasks { display: flex; flex-direction: column; gap: 3px; }
.load-task {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  padding: 3px 6px;
  border-radius: 5px;
  background: var(--surface-2);
  cursor: pointer;
}
.load-task:hover { background: var(--surface-3); }
.load-task-text { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- brand marks ---------- */

/* The canonical logo is the LINEA wordmark on its own. Never with "GROUP",
   never inside a coloured square. "Studio" sits beside it as a plain suffix so
   the logo itself is never altered. */
.brand-logo { height: 15px; width: auto; display: block; }
.brand-suffix {
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
}

/* The one display line per screen. */
.topbar h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
