/* ═══════════ SCOUT PLANNER — light mode only ═══════════
   Geometry from the supplied references; colour and type are Scout's.

   THE RULE THIS SHEET FOLLOWS: differentiate with space, size and weight —
   not with boxes. The references almost never draw a container. Ref 5's week
   grid sits straight on the page with hairline rules and no outer card; its
   filter chips are flat fills with no stroke; the only strokes anywhere are
   1px hairlines between grid cells. Where a card DOES exist (ref 1, ref 4) it
   is generous inside: ~18–20px of padding, big radius, real line-height.

   So: one hairline weight, few fills, no nested borders, and air. */

/* the section owns its own measure */
.dash-body.dash-wide { max-width: 1460px; }

.pl {
  --pl-line: #F0EEE7;      /* the only rule weight in the grid */
  --pl-line2: #F6F4EF;
  --pl-gut: 58px;
  --pl-soft: #F4F2EC;      /* flat chip / control fill, no stroke */
  position: relative;
}

/* ── header ──────────────────────────────────────────────
   Title, a generous gap, then controls. No box anywhere. */
.pl-top { padding: 0 0 26px; }
.pl-title-row { display: flex; align-items: center; gap: 18px; }
.pl-title { font-size: clamp(30px, 3.4vw, 42px); font-weight: 700; letter-spacing: -.035em; line-height: 1.02; }
.pl-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.pl-ic { width: 34px; height: 34px; border-radius: 50%; border: none; background: transparent;
  display: inline-flex; align-items: center; justify-content: center; color: var(--ink3); transition: all .16s var(--ease); }
.pl-ic:hover { background: var(--pl-soft); color: var(--ink); }
.pl-today { height: 34px; padding: 0 16px; border-radius: 999px; border: none; background: var(--pl-soft);
  font-size: 13px; font-weight: 600; color: var(--ink2); transition: all .16s var(--ease); }
.pl-today:hover { background: var(--ink); color: #fff; }

.pl-bar { display: flex; align-items: center; gap: 20px; margin-top: 22px; flex-wrap: wrap; }
/* view switch — a flat row of pills, no container fill */
.pl-views { display: inline-flex; gap: 4px; }
.pl-v { padding: 9px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--ink3);
  background: transparent; transition: all .18s var(--ease); }
.pl-v:hover { color: var(--ink); background: var(--pl-soft); }
.pl-v.on { background: var(--ink); color: #fff; }
.pl-chips { display: flex; gap: 7px; flex-wrap: wrap; margin-left: auto; }
.pl-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px;
  border: none; background: var(--pl-soft); font-size: 12.5px; font-weight: 500; color: var(--ink2);
  transition: all .16s var(--ease); }
.pl-chip .pl-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c); transition: all .16s; }
.pl-chip:hover { color: var(--ink); }
.pl-chip.off { background: transparent; color: var(--ink3); }
.pl-chip.off .pl-dot { background: var(--ink3); opacity: .4; }

/* ── the honesty strip ──
   Ref 2's stat row: big numerals, tiny uppercase labels, thin vertical rules
   between. No card, no border, no fill. */
.pl-cap { display: flex; align-items: center; gap: 0; padding: 0 0 24px; flex-wrap: wrap; }
.pl-cap-k { display: flex; flex-direction: column; gap: 3px; padding-right: 32px; margin-right: 32px;
  border-right: 1px solid var(--pl-line); }
.pl-cap-k:nth-child(3) { border-right: none; }
.pl-cap-k .k { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); }
.pl-cap-k b { font-size: 26px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.pl-cap-k b.bad { color: var(--red); } .pl-cap-k b.good { color: var(--green-deep); }
.pl-cap-bar { flex: 1; height: 3px; border-radius: 2px; background: var(--pl-line); overflow: hidden; min-width: 90px; margin-right: 24px; }
.pl-cap-bar i { display: block; height: 100%; border-radius: 2px; background: var(--ink); }
.pl-cap.tight .pl-cap-bar i { background: var(--red); }
.pl-cap-act { display: flex; gap: 8px; }

/* ── quick capture — a line, not a box ── */
.pl-quick { display: flex; align-items: center; gap: 12px; padding: 0 2px 14px; margin-bottom: 22px;
  border-bottom: 1px solid var(--pl-line); transition: border-color .18s; }
.pl-quick:focus-within { border-bottom-color: var(--ink); }
.pl-q-ic { color: var(--ink3); display: inline-flex; }
.pl-q-in { flex: 1; border: none; background: none; font: inherit; font-size: 15.5px; outline: none; min-width: 0; }
.pl-q-in::placeholder { color: var(--ink3); }
.pl-q-hint { font-size: 12px; color: var(--ink3); white-space: nowrap; }

/* ══ WEEK / DAY (ref 5) — no outer card ══ */
.pl-week { background: transparent; }
.pl-week-head { display: grid; grid-template-columns: var(--pl-gut) repeat(7, 1fr);
  position: sticky; top: 0; z-index: 6; background: var(--canvas); padding-bottom: 10px; }
.pl-day1 .pl-week-head, .pl-day1 .pl-week-body { grid-template-columns: var(--pl-gut) 1fr; }
.pl-dh { padding: 8px 4px; text-align: center; border: none; }
.pl-dh .n { display: block; font-size: 19px; font-weight: 700; letter-spacing: -.025em; line-height: 1.15; }
.pl-dh .w { display: block; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); margin-top: 3px; }
/* the active day is a pill around the numeral only — not the whole cell */
.pl-dh.on .n { background: var(--ink); color: #fff; width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; margin: 0 auto; }
.pl-dh.on .w { color: var(--ink); font-weight: 600; }
.pl-week-body { display: grid; grid-template-columns: var(--pl-gut) repeat(7, 1fr);
  max-height: 64vh; overflow-y: auto; position: relative; border-top: 1px solid var(--pl-line);
  /* reserve the scrollbar track so it never sits on top of Sunday */
  scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: var(--pl-line) transparent; }
.pl-week-body::-webkit-scrollbar { width: 8px; }
.pl-week-body::-webkit-scrollbar-thumb { background: var(--pl-line); border-radius: 4px; }
.pl-week-body::-webkit-scrollbar-track { background: transparent; }
/* the header must reserve the same gutter or the columns fall out of alignment */
.pl-week-head { padding-right: 8px; }
.pl-gutter-head, .pl-gutter { border: none; }
.pl-h { position: relative; }
.pl-h span { position: absolute; top: -8px; left: 0; font-size: 11px; color: var(--ink3); font-variant-numeric: tabular-nums; }
.pl-col { border-left: 1px solid var(--pl-line); position: relative; min-width: 0; }
.pl-col.today { background: color-mix(in srgb, var(--red) 2%, transparent); }
.pl-col-allday { display: flex; flex-direction: column; gap: 4px; padding: 6px 5px; min-height: 6px; }
.pl-col-grid { position: relative; }
.pl-slot { border-bottom: 1px solid var(--pl-line); }
.pl-slot:hover { background: color-mix(in srgb, var(--ink) 2%, transparent); }

/* now line */
.pl-now { position: absolute; left: 0; right: 0; height: 0; border-top: 1.5px solid var(--ink); z-index: 5; pointer-events: none; }
.pl-now i { position: absolute; left: -3px; top: -3.5px; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }

/* ── event blocks: a soft fill, no stroke, real padding ── */
.pl-b { position: absolute; border-radius: 12px; padding: 9px 11px; overflow: hidden; cursor: grab; z-index: 2;
  background: color-mix(in srgb, var(--c) 12%, #fff); border: none;
  transition: box-shadow .18s var(--ease), transform .18s var(--ease); }
.pl-b:hover { box-shadow: 0 8px 24px rgba(16, 16, 16, .10); z-index: 4; }
.pl-b:active, .pl-b.dragging { cursor: grabbing; box-shadow: 0 16px 38px rgba(16, 16, 16, .18); z-index: 9; }
.pl-b-in { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pl-b b { font-size: 13px; font-weight: 650; line-height: 1.35; letter-spacing: -.012em; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* height tiers: never render text the block cannot show in full */
.pl-b.h-tiny { padding: 4px 9px; border-radius: 9px; }
.pl-b.h-tiny b { -webkit-line-clamp: 1; font-size: 12px; }
.pl-b.h-short b { -webkit-line-clamp: 1; }
.pl-b.h-mid b { -webkit-line-clamp: 2; }
.pl-b .t { font-size: 11.5px; line-height: 1.4; white-space: nowrap; color: color-mix(in srgb, var(--c) 62%, var(--ink2)); font-variant-numeric: tabular-nums; }
.pl-b .why { font-size: 11px; line-height: 1.45; color: var(--ink3); margin-top: 3px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pl-b-grip { position: absolute; left: 0; right: 0; bottom: 0; height: 10px; cursor: ns-resize; }
.pl-b-grip::after { content: ''; position: absolute; left: 50%; bottom: 3px; width: 24px; height: 2px; border-radius: 2px;
  transform: translateX(-50%); background: color-mix(in srgb, var(--c) 50%, transparent); opacity: 0; transition: opacity .16s; }
.pl-b:hover .pl-b-grip::after { opacity: 1; }
.pl-b.is-done { opacity: .5; }
.pl-b.is-done b { text-decoration: line-through; }
.pl-b-badge { position: absolute; right: 8px; bottom: 7px; display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: #fff; color: var(--green-deep); }
.pl-b.s-overdue { box-shadow: inset 0 0 0 1.5px var(--red); }
.pl-b.s-now { box-shadow: inset 0 0 0 1.5px var(--ink); }
.pl-b.clash { box-shadow: inset 0 0 0 1.5px var(--red); }
.pl-b-clash { position: absolute; top: 7px; right: 8px; width: 16px; height: 16px; border-radius: 50%; background: var(--red);
  color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: center; }
.pl-ghost { position: absolute; left: 3px; right: 3px; border-radius: 12px; background: color-mix(in srgb, var(--ink) 8%, transparent);
  z-index: 8; font-size: 11px; color: var(--ink2); padding: 7px 10px; pointer-events: none; }

.pl-pt { display: inline-flex; align-items: center; gap: 6px; width: 100%; padding: 5px 9px; border-radius: 8px;
  background: color-mix(in srgb, var(--c) 13%, #fff); color: color-mix(in srgb, var(--c) 72%, var(--ink));
  font-size: 11px; font-weight: 600; text-align: left; transition: all .14s; }
.pl-pt span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-pt:hover { background: color-mix(in srgb, var(--c) 22%, #fff); }
.pl-pt.is-done { opacity: .45; text-decoration: line-through; }
.pl-over { position: absolute; bottom: 8px; left: 8px; right: 8px; font-size: 10.5px; text-align: center; color: var(--red); }
.pl-day-meta { padding: 10px 2px 16px; font-size: 12.5px; color: var(--ink3); }

/* ══ MONTH (ref 2) — hairlines only ══ */
.pl-month { background: transparent; }
.pl-mh { display: grid; grid-template-columns: repeat(7, 1fr); }
.pl-mh span { padding: 0 4px 12px; text-align: left; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); }
.pl-mg { display: grid; grid-template-columns: repeat(7, 1fr); grid-auto-rows: minmax(118px, 1fr); border-top: 1px solid var(--pl-line); }
.pl-mc { border-right: 1px solid var(--pl-line); border-bottom: 1px solid var(--pl-line); padding: 10px;
  display: flex; flex-direction: column; gap: 7px; text-align: left; background: none; transition: background .14s; min-width: 0; }
.pl-mc:nth-child(7n) { border-right: none; }
.pl-mc:hover { background: color-mix(in srgb, var(--ink) 2.5%, transparent); }
.pl-mc.out { opacity: .3; }
.pl-mc-n { font-size: 14px; font-weight: 600; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; }
.pl-mc.today .pl-mc-n { background: var(--ink); color: #fff; }
.pl-mc-dots { display: flex; gap: 4px; }
.pl-mc-dots i { width: 5px; height: 5px; border-radius: 50%; }
.pl-mc-list { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pl-mc-list em { font-style: normal; font-size: 11px; line-height: 1.35; color: var(--ink2); padding-left: 9px; position: relative;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-mc-list em::before { content: ''; position: absolute; left: 0; top: 6px; width: 4px; height: 4px; border-radius: 50%; background: var(--c); }
.pl-mc-list em.more { color: var(--ink3); padding-left: 0; }
.pl-mc-list em.more::before { display: none; }

/* ══ AGENDA (ref 4) — airy rows ══ */
.pl-agenda { display: flex; flex-direction: column; gap: 34px; }
.pl-ad-h { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.pl-ad-h b { font-size: 17px; font-weight: 700; letter-spacing: -.025em; }
.pl-ad-h span { font-size: 12.5px; color: var(--ink3); }
.pl-rail { list-style: none; }
.pl-r { display: grid; grid-template-columns: 64px 24px 1fr auto; align-items: start; gap: 14px;
  padding: 14px 0; position: relative; cursor: pointer; border-radius: 10px; transition: background .14s; }
.pl-r:hover { background: color-mix(in srgb, var(--ink) 2.5%, transparent); }
.pl-r::before { content: ''; position: absolute; left: 89px; top: 40px; bottom: -14px; width: 1px; background: var(--pl-line); }
.pl-r.last::before { display: none; }
.pl-r-t { font-size: 12.5px; color: var(--ink3); font-variant-numeric: tabular-nums; padding-top: 3px; text-align: right; }
.pl-r.s-now .pl-r-t, .pl-r.s-next .pl-r-t { color: var(--ink); font-weight: 600; }
.pl-r-box { width: 23px; height: 23px; border-radius: 50%; border: 1.5px solid var(--pl-line); background: transparent;
  display: grid; place-items: center; color: #fff; transition: all .16s var(--ease); }
.pl-r-box:hover { border-color: var(--c); }
.pl-r-box.on { background: var(--c); border-color: var(--c); }
.pl-r-m { min-width: 0; }
.pl-r-m b { font-size: 14.5px; font-weight: 600; line-height: 1.4; display: block; letter-spacing: -.012em; }
.pl-r-m i { font-style: normal; font-size: 12px; line-height: 1.5; color: var(--ink3); display: inline-flex; align-items: center; gap: 5px; margin-top: 3px; }
.pl-r.is-done .pl-r-m b { text-decoration: line-through; color: var(--ink3); }
.pl-r-r { display: flex; align-items: center; gap: 10px; padding-top: 2px; }
.pl-r-d { font-size: 11.5px; color: var(--ink3); }
.pl-r-open { font-size: 12px; font-weight: 600; color: var(--ink2); display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 12px; border-radius: 999px; background: var(--pl-soft); transition: all .16s; }
.pl-r-open:hover { background: var(--ink); color: #fff; }
.pl-state { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; }
.pl-state.overdue { background: color-mix(in srgb, var(--red) 11%, #fff); color: var(--red); }
.pl-state.now { background: var(--ink); color: #fff; }
.pl-state.next { background: color-mix(in srgb, var(--orange) 15%, #fff); color: #9A5B00; }
.pl-state.blocked { background: var(--pl-soft); color: var(--ink3); }
.pl-state.done { background: color-mix(in srgb, var(--green) 14%, #fff); color: var(--green-deep); }

/* ══ PLANNER lanes — no lane fill; the cards do the work (ref 1) ══ */
.pl-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; align-items: start; }
.pl-lane { background: transparent; padding: 0; min-height: 120px; }
.pl-lane-h { display: flex; align-items: center; gap: 8px; padding: 0 2px 16px; color: var(--ink3); }
.pl-lane-h b { font-size: 14px; font-weight: 650; color: var(--ink); letter-spacing: -.015em; }
.pl-lane-h span { margin-left: auto; font-size: 12px; color: var(--ink3); font-variant-numeric: tabular-nums; }
.pl-lane-b { display: flex; flex-direction: column; gap: 12px; min-height: 60px; border-radius: 14px; transition: background .16s; }
.pl-lane-b.over { background: color-mix(in srgb, var(--ink) 4%, transparent); }
.pl-lane-empty { font-size: 12px; color: var(--ink3); text-align: center; padding: 26px 0; }
/* the one place a card is right — and it is generous inside */
.pl-card { background: var(--card); border: none; border-radius: 18px; padding: 0; overflow: hidden; cursor: grab;
  box-shadow: 0 1px 2px rgba(16, 16, 16, .04); transition: all .18s var(--ease); }
.pl-card:hover { box-shadow: 0 14px 40px rgba(16, 16, 16, .10); transform: translateY(-3px); }
.pl-card.drag { opacity: .4; }
.pl-card-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.pl-cchip { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600;
  padding: 6px 11px; border-radius: 999px; background: var(--pl-soft); color: var(--ink2); }
.pl-cchip svg { color: var(--c, currentColor); }
.pl-cchip.h-now { background: color-mix(in srgb, var(--red) 11%, #fff); color: var(--red); }
.pl-cchip.h-soon { background: color-mix(in srgb, var(--orange) 15%, #fff); color: #9A5B00; }
.pl-cchip.st-overdue { background: color-mix(in srgb, var(--red) 11%, #fff); color: var(--red); }
.pl-cchip.st-now { background: var(--ink); color: #fff; }
.pl-card h4 { font-size: 15.5px; font-weight: 650; letter-spacing: -.018em; line-height: 1.35; }
.pl-card p { font-size: 12.5px; line-height: 1.5; color: var(--ink3); margin-top: 7px; display: inline-flex; align-items: flex-start; gap: 6px; }
.pl-card footer { display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--pl-line); }
.pl-card-when { font-size: 11.5px; color: var(--ink3); display: inline-flex; align-items: center; gap: 6px; }
.pl-card footer button { color: var(--ink3); display: inline-flex; }
.pl-card footer button:hover { color: var(--ink); }

/* ══ THE RAIL ══════════════════════════════════════════════
   One column, two states: the default briefing, or the inspector for a
   selected item. Never blank. Type follows Vanilla's label rule — uppercase,
   0.1em tracking — and its 20/24/32 spacing scale. */
.pl-split { display: grid; grid-template-columns: minmax(0, 1fr) 312px; gap: 32px; align-items: start; }
/* the Planner board is already a full-width instrument — it does not share */
.pl-split.solo { grid-template-columns: 1fr; }
.pl-split.solo .pl-rail-col { display: none; }
@media (max-width: 1180px) { .pl-split { grid-template-columns: minmax(0, 1fr) 272px; gap: 24px; } }
/* Seven columns need real width. Below this the rail would squeeze each day to
   ~75px, so the grid views take the whole measure and the rail stands down —
   its content is still one tap away in Agenda and in the triage sheet.
   Day / Agenda are single-column and keep the rail all the way down. */
@media (max-width: 1370px) {
  .pl-split.grid7 { grid-template-columns: 1fr; }
  .pl-split.grid7 .pl-rail-col { display: none; }
}
.pl-stage { min-width: 0; }
.pl-rail-col { position: sticky; top: 8px; align-self: start; max-height: calc(100vh - 96px);
  overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--pl-line) transparent; }
.pl-rail-col::-webkit-scrollbar { width: 6px; }
.pl-rail-col::-webkit-scrollbar-thumb { background: var(--pl-line); border-radius: 3px; }
.plr { display: flex; flex-direction: column; gap: 32px; }
.plr-sec h5, .insp-sec h5 { font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink3); margin-bottom: 12px; font-weight: 600; }
.plr-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.plr-item { display: grid; grid-template-columns: 8px 1fr auto; gap: 11px; align-items: start;
  padding: 11px 10px; margin: 0 -10px; border-radius: 10px; cursor: pointer; transition: background .14s; }
.plr-item:hover { background: var(--pl-soft); }
.plr-pip { width: 7px; height: 7px; border-radius: 50%; background: var(--ink3); margin-top: 6px; }
.plr-item b { font-size: 13.5px; font-weight: 600; line-height: 1.4; display: block; letter-spacing: -.012em; }
.plr-item em { font-style: normal; font-size: 11.5px; line-height: 1.45; color: var(--ink3); display: block; margin-top: 2px; }
.plr-go { color: var(--ink3); padding: 4px; border-radius: 8px; display: inline-flex; }
.plr-go:hover { color: var(--ink); background: var(--pl-soft); }
/* Vanilla's 5-step risk ramp, remapped for paper */
.plr-item.r-critical .plr-pip { background: #C41E2A; }
.plr-item.r-high     .plr-pip { background: var(--red); }
.plr-item.r-medium   .plr-pip { background: var(--orange); }
.plr-item.r-low      .plr-pip { background: #C9A227; }
.plr-item.r-clear    .plr-pip { background: var(--green-deep); }
.plr-item.r-critical em, .plr-item.r-high em { color: var(--red); }
.plr-none { font-size: 12.5px; line-height: 1.6; color: var(--ink3); display: flex; gap: 7px; align-items: flex-start; }

/* mini month */
.mm-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.mm-h b { font-size: 13.5px; font-weight: 650; letter-spacing: -.015em; }
.mm-h span { display: inline-flex; gap: 2px; }
.mm-h button { width: 24px; height: 24px; border-radius: 6px; color: var(--ink3); display: inline-flex; align-items: center; justify-content: center; }
.mm-h button:hover { background: var(--pl-soft); color: var(--ink); }
.mm-w { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 4px; }
.mm-w span { text-align: center; font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); }
.mm-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; }
.mm-c { position: relative; aspect-ratio: 1; border-radius: 50%; font-size: 11.5px; font-weight: 500;
  color: var(--ink2); display: grid; place-items: center; transition: all .14s; }
.mm-c:hover { background: var(--pl-soft); }
.mm-c.out { color: var(--ink3); opacity: .4; }
.mm-c.today { font-weight: 700; color: var(--red); }
.mm-c.sel { background: var(--ink); color: #fff; }
.mm-c i { position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%); width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; }

/* ══ INSPECTOR — the rail's selected state ══ */
.pl-rail-col.open { }

.insp-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.insp-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--c); }
.insp-x { color: var(--ink3); } .insp-x:hover { color: var(--ink); }
.insp-t { font-size: 22px; font-weight: 700; letter-spacing: -.03em; line-height: 1.25; width: 100%; }
.insp-edit { border: none; background: none; font-family: inherit; outline: none; border-bottom: 1.5px solid transparent; padding-bottom: 2px; }
.insp-edit:focus { border-bottom-color: var(--ink); }
.insp-sub { font-size: 13px; color: var(--ink3); margin-top: 4px; }
.insp-when { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 18px 0; font-size: 13px; color: var(--ink2); }
.insp-when b { font-weight: 650; color: var(--ink); }
.insp-heat { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--pl-soft); }
.insp-heat.h-now { background: color-mix(in srgb, var(--red) 11%, #fff); color: var(--red); }
.insp-heat.h-soon { background: color-mix(in srgb, var(--orange) 15%, #fff); color: #9A5B00; }
.insp-row { display: flex; gap: 10px; margin-bottom: 18px; }
.insp-row label { flex: 1; display: flex; flex-direction: column; gap: 6px; font-size: 10.5px;
  letter-spacing: .09em; text-transform: uppercase; color: var(--ink3); }
.insp-row input, .insp-row select { border: none; border-bottom: 1px solid var(--pl-line); border-radius: 0; padding: 6px 0;
  font: inherit; font-size: 13.5px; background: transparent; color: var(--ink); }
.insp-row input:focus, .insp-row select:focus { outline: none; border-bottom-color: var(--ink); }
.insp-stages { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; margin-bottom: 20px; }
.insp-st { padding: 11px; border-radius: 11px; border: none; background: var(--pl-soft);
  font-size: 12.5px; font-weight: 600; color: var(--ink2); transition: all .16s; }
.insp-st:hover { color: var(--ink); }
.insp-st.on { background: var(--ink); color: #fff; }
.insp-why { font-size: 12px; line-height: 1.6; color: var(--ink3); display: flex; gap: 7px; margin-bottom: 18px; }
.insp-sec { border-top: 1px solid var(--pl-line); padding-top: 20px; margin-top: 20px; }
.insp-sec h5 { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); margin-bottom: 12px; }
.insp-effort { display: flex; align-items: baseline; gap: 10px; }
.insp-effort b { font-size: 30px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.insp-effort span { font-size: 12px; line-height: 1.5; color: var(--ink3); }
.insp-prog { height: 4px; border-radius: 2px; background: var(--pl-line); margin-top: 14px; overflow: hidden; }
.insp-prog i { display: block; height: 100%; background: var(--orange); border-radius: 2px; }
.insp-acts { display: flex; flex-direction: column; gap: 7px; align-items: stretch; }
.insp-acts .pill { justify-content: flex-start; width: 100%; }
.insp-acts .pill.danger:hover { background: var(--red); color: #fff; border-color: var(--red); }
.insp-note { font-size: 11.5px; line-height: 1.6; color: var(--ink3); margin-top: 20px; display: flex; gap: 7px; }

/* ══ SHEET ══ */
.pl-sheet-wrap { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; opacity: 0; transition: opacity .22s; }
.pl-sheet-wrap.on { opacity: 1; }
.pl-sheet-bg { position: absolute; inset: 0; background: rgba(16, 16, 16, .3); backdrop-filter: blur(3px); }
.pl-sheet { position: relative; width: min(580px, calc(100vw - 32px)); max-height: 82vh; overflow-y: auto;
  background: var(--card); border-radius: 26px; box-shadow: 0 30px 90px rgba(16, 16, 16, .2);
  transform: translateY(10px); transition: transform .24s var(--ease); }
.pl-sheet-wrap.on .pl-sheet { transform: none; }
.pl-sheet header { display: flex; align-items: center; justify-content: space-between; padding: 26px 28px 14px; }
.pl-sheet header b { font-size: 20px; font-weight: 700; letter-spacing: -.025em; }
.pl-sheet header button { color: var(--ink3); } .pl-sheet header button:hover { color: var(--ink); }
.pl-sheet-b { padding: 0 28px 28px; }
.tri-lead { font-size: 15px; line-height: 1.7; color: var(--ink2); margin-bottom: 22px; }
.tri-lead b { color: var(--ink); font-weight: 700; }
.pl-triage h5 { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); margin: 22px 0 12px; }
.tri-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.tri-list li { display: grid; grid-template-columns: 20px 1fr auto; gap: 12px; align-items: center;
  padding: 14px 0; border: none; border-bottom: 1px solid var(--pl-line); }
.tri-list li:last-child { border-bottom: none; }
.tri-list li b { font-size: 14px; font-weight: 600; }
.tri-list li em { font-style: normal; font-size: 12px; color: var(--ink3); }
.tri-ok { color: var(--green-deep); } .tri-no { color: var(--red); }
.tri-acts { grid-column: 2/-1; display: flex; gap: 7px; margin-top: 8px; }
.tri-foot { font-size: 11.5px; color: var(--ink3); line-height: 1.7; margin-top: 24px; }

.pl-empty { text-align: center; padding: 72px 20px; color: var(--ink3); }
.pl-empty svg { color: var(--ink3); margin-bottom: 16px; }
.pl-empty b { display: block; font-size: 19px; color: var(--ink); letter-spacing: -.025em; }
.pl-empty p { font-size: 14px; margin: 10px auto 20px; max-width: 360px; line-height: 1.6; }

/* ══ RESPONSIVE ══ */
@media (max-width: 900px) {
  .pl-cap { gap: 0 20px; }
  .pl-cap-k { padding-right: 20px; margin-right: 20px; }
  .pl-cap-bar { flex-basis: 100%; margin: 14px 0 0; }
  .pl-cap-act { flex-basis: 100%; margin-top: 16px; }
  .pl-split { grid-template-columns: 1fr; gap: 34px; }
  .pl-rail-col { position: static; max-height: none; }
  /* selected: the rail lifts into a bottom sheet so it can't push the grid away */
  .pl-rail-col.open { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 90;
    background: var(--card); border-radius: 26px 26px 0 0; padding: 24px; max-height: 82vh; overflow-y: auto;
    box-shadow: 0 -18px 60px rgba(16,16,16,.18); animation: sheetUp .26s var(--ease); }
  @keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
}
@media (max-width: 720px) {
  .pl { --pl-gut: 42px; }
  .pl-title { font-size: 28px; }
  .pl-chips { margin-left: 0; width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .pl-chips::-webkit-scrollbar { display: none; }
  .pl-views { width: 100%; overflow-x: auto; }
  /* a 7-column week is unreadable on a phone: show 3 days and let Day/Agenda lead */
  .pl-week-head, .pl-week-body { grid-template-columns: var(--pl-gut) repeat(3, 1fr); }
  .pl-col:nth-child(n+5), .pl-dh:nth-child(n+5) { display: none; }
  .pl-mg { grid-auto-rows: minmax(76px, 1fr); }
  .pl-mc-list { display: none; }
  .pl-r { grid-template-columns: 46px 23px 1fr; gap: 12px; }
  .pl-r::before { left: 69px; }
  .pl-r-r { grid-column: 2/-1; margin-top: 6px; }
}
@media (prefers-reduced-motion: reduce) { .pl-insp, .pl-sheet, .pl-b, .pl-card { animation: none !important; transition: none !important; } }

/* ══ ARTWORK ═══════════════════════════════════════════════
   One component at three sizes. A stock photo repeated across 30 rows is
   noise, so `artFor` only passes a real org banner or the org's own thumb —
   otherwise this draws a domain-tinted monogram, which at least differs
   per organisation. */
.pl-art { position: relative; flex: none; display: grid; place-items: center; overflow: hidden;
  background: color-mix(in srgb, var(--t, var(--ink3)) 13%, #fff); color: color-mix(in srgb, var(--t, var(--ink3)) 78%, var(--ink));
  border-radius: 9px; }
.pl-art i { font-style: normal; font-weight: 650; letter-spacing: -.02em; }
.pl-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pl-art.xs { width: 24px; height: 24px; border-radius: 7px; }
.pl-art.xs i { font-size: 11.5px; }
.pl-art.sm { width: 44px; height: 44px; border-radius: 11px; }
.pl-art.sm i { font-size: 16px; }
.pl-art.md { width: 64px; height: 64px; border-radius: 14px; }
.pl-art.md i { font-size: 22px; }
.pl-art.is-kind { background: color-mix(in srgb, var(--c) 13%, #fff); color: var(--c); }
/* domain tints, same mapping as the Board's node art */
.pl-art[data-dom="AI/ML"], .pl-art[data-dom="Engineering"] { --t: var(--blue); }
.pl-art[data-dom="ClimaTech"], .pl-art[data-dom="Life Sciences"], .pl-art[data-dom="HealthTech"] { --t: var(--green); }
.pl-art[data-dom="Business"], .pl-art[data-dom="Finance"] { --t: var(--orange); }
.pl-art[data-dom="Design"], .pl-art[data-dom="Arts"] { --t: var(--rose, #FF3F6C); }
.pl-art[data-dom="Policy"], .pl-art[data-dom="Social Impact"] { --t: var(--red-deep); }

/* agenda + rail rows make room for it */
.pl-r { grid-template-columns: 64px 24px 44px 1fr auto; }
.pl-r::before { left: 89px; }
.plr-item { grid-template-columns: 8px 24px 1fr auto; }

/* ══ LIST (ref 3) ══════════════════════════════════════════ */
.pl-list { overflow-x: auto; }
.pl-list table { width: 100%; border-collapse: collapse; }
.pl-list thead th { text-align: left; font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink3); font-weight: 600; padding: 0 14px 12px 0; border-bottom: 1px solid var(--pl-line); white-space: nowrap; }
.pl-lr { border-bottom: 1px solid var(--pl-line); cursor: pointer; transition: background .14s; }
.pl-lr:hover { background: color-mix(in srgb, var(--ink) 2.5%, transparent); }
.pl-lr td { padding: 16px 14px 16px 0; vertical-align: middle; }
.pl-lr td:last-child { padding-right: 0; }
.c-name { display: flex; align-items: center; gap: 14px; min-width: 0; }
.lr-t { min-width: 0; display: block; }
.lr-t b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.015em; line-height: 1.35;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lr-t em { font-style: normal; font-size: 12px; color: var(--ink3); display: block; margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-lr.s-done .lr-t b { text-decoration: line-through; color: var(--ink3); }
.lr-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--ink2);
  background: var(--pl-soft); border-radius: 999px; padding: 5px 11px; white-space: nowrap; }
.lr-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.c-when b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; }
.c-when em { font-style: normal; font-size: 11.5px; color: var(--ink3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lr-heat { font-size: 12px; font-weight: 600; color: var(--ink3); white-space: nowrap; }
.lr-heat.h-now { color: var(--red); } .lr-heat.h-soon { color: #9A5B00; }
.lr-heat.h-gone { color: var(--ink3); text-decoration: line-through; }
.lr-stage { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; background: var(--pl-soft); color: var(--ink2); white-space: nowrap; }
.lr-stage.st-doing { background: color-mix(in srgb, var(--orange) 15%, #fff); color: #9A5B00; }
.lr-stage.st-blocked { background: color-mix(in srgb, var(--red) 11%, #fff); color: var(--red); }
.lr-stage.st-done { background: color-mix(in srgb, var(--green) 14%, #fff); color: var(--green-deep); }
.c-fit b { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.lr-dash { color: var(--ink3); }
.c-act { text-align: right; white-space: nowrap; }
.c-act button { color: var(--ink3); padding: 7px; border-radius: 8px; display: inline-flex; }
.c-act button:hover { color: var(--ink); background: var(--pl-soft); }

/* columns drop out as the measure narrows — never a sideways scroll */
@media (max-width: 1240px) { .pl-list .c-fit { display: none; } }
@media (max-width: 1060px) { .pl-list .c-heat { display: none; } }
@media (max-width: 860px)  { .pl-list .c-kind { display: none; } }
@media (max-width: 680px)  {
  .pl-list .c-stage { display: none; }
  .pl-art.md { width: 48px; height: 48px; }
  .pl-r { grid-template-columns: 46px 23px 36px 1fr; }
  .pl-r::before { left: 69px; }
  .pl-art.sm { width: 36px; height: 36px; }
}

/* artwork in a block sits in the corner: it costs no vertical space, so even a
   90-minute block can carry it without squeezing the title or the reason */
.pl-art.corner { position: absolute; top: 8px; right: 8px; z-index: 2; }
.pl-b:has(.pl-art.corner) .pl-b-in b { padding-right: 30px; }

/* ══ COVER — the Discover card's media frame at 75% scale ══
   Same grammar as .scard .im: 4:3, cover-fit; a real org banner letterboxes
   over a blurred copy of itself; the org's small thumb sits as a corner chip
   when the banner is stock; the type rides top-left as a glass pill. */
.plc-im { position: relative; aspect-ratio: 4/3; overflow: hidden;
  background: linear-gradient(155deg, color-mix(in srgb, var(--t, var(--ink3)) 15%, #fff), color-mix(in srgb, var(--t, var(--ink3)) 5%, #fff)); }
.plc-im[data-dom="AI/ML"], .plc-im[data-dom="Engineering"] { --t: var(--blue); }
.plc-im[data-dom="ClimaTech"], .plc-im[data-dom="Life Sciences"], .plc-im[data-dom="HealthTech"] { --t: var(--green); }
.plc-im[data-dom="Business"], .plc-im[data-dom="Finance"] { --t: var(--orange); }
.plc-im[data-dom="Design"], .plc-im[data-dom="Arts"] { --t: var(--rose, #FF3F6C); }
.plc-im[data-dom="Policy"], .plc-im[data-dom="Social Impact"] { --t: var(--red-deep); }
.plc-main { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1;
  transition: transform .6s var(--ease); }
.plc-im.contain .plc-main { object-fit: contain; }
.pl-card:hover .plc-main { transform: scale(1.04); }
.plc-blur { position: absolute; inset: -10%; width: 120%; height: 120%; max-width: none; object-fit: cover;
  filter: blur(18px) saturate(1.25); opacity: .85; z-index: 0; }
.plc-mono { position: absolute; inset: 0; z-index: 0; display: grid; place-items: center; font-style: normal;
  font-size: 36px; font-weight: 650; letter-spacing: -.02em;
  color: color-mix(in srgb, var(--t, var(--ink3)) 55%, var(--ink3)); opacity: .5; }
.plc-type { position: absolute; top: 10px; left: 10px; z-index: 2; padding: 5px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, .62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 10.5px; font-weight: 500; color: var(--ink);
  max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plc-logo { position: absolute; right: 10px; bottom: 10px; z-index: 2; width: 30px; height: 30px; border-radius: 9px;
  background: #fff; padding: 2px; box-shadow: var(--sh-sm); }
.plc-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 7px; }
.plc-im img { -webkit-user-drag: none; }

.pl-card-bd { padding: 15px 16px 14px; }
.pl-card-org { font-size: 12.5px; color: var(--ink3); margin-top: 3px; }
.pl-card-r { display: inline-flex; align-items: center; gap: 8px; }
.pl-card-fit { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ══ THE DYNAMIC GRID — List's cards layout ══ */
.pl-lt { display: flex; justify-content: flex-end; gap: 2px; margin-bottom: 16px; }
.pl-lt button { padding: 8px 11px; border-radius: 9px; color: var(--ink3); display: inline-flex; }
.pl-lt button:hover { color: var(--ink); background: var(--pl-soft); }
.pl-lt button.on { background: var(--pl-soft); color: var(--ink); }
.pl-cardgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 22px; align-items: start; }
