/* Map — one stylesheet, phone-first. Wider screens are handled at the bottom.
   Colors, radii and type come from design/map-mockup-desktop.dc.html.
   To restyle, start with the variables below. */

:root {
  --ink: #16181D;
  --ink-2: #3A3F4B;
  --muted: #5B616E;
  --bg: #F4F4F1;
  --tray: #E9E9E4;          /* pipeline column background */
  --surface: #FFFFFF;
  --line: #E1E2E6;
  --line-2: #D6D8DD;
  --line-3: #ECEDEF;
  --link: #1F5BC4;
  --review-bg: #FFD98A;     /* "In review" amber */
  --review-ink: #4A3000;
  --review-border: #D98E04;
  --review-card: #FFFBF0;
  --review-btn: #8A5A00;
  --danger: #B42318;
  --danger-bg: #FDECEA;
  --ok: #4CC38A;
  /* Calendar layers: one color each. */
  --l-post: #17753F;
  --l-post-soft: #DDF3E5;
  --l-shoot: #16181D;
  --l-due: #A8246F;
  --l-due-soft: #FBE6F2;
  --l-events: #3B3FA8;
  --l-events-soft: #E6E7F8;
  /* Per-account tint; overridden inline on cards, chips and pills. */
  --acc: #3A3F4B;
  --acc-soft: #ECEDEF;
  --font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Space Grotesk", Inter, system-ui, sans-serif;
  --gutter: 16px;
  --bottom-nav: 62px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  padding-bottom: calc(var(--bottom-nav) + env(safe-area-inset-bottom));
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.45 var(--font);
}

a { color: var(--link); }
a:hover { color: var(--ink); }

h1 { margin: 0; font: 600 24px/1.2 var(--display); }
h2 { margin: 0; font: 600 17px/1.2 var(--display); }

/* ---------- header ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px var(--gutter);
  background: var(--ink);
  color: #fff;
}

.top-left, .top-right { display: flex; align-items: center; gap: 12px; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font: 700 24px var(--display);
  letter-spacing: -0.01em;
}
.brand:hover { color: #fff; }

.tabs { display: none; gap: 4px; padding: 4px; border-radius: 12px; background: #2A2E37; }

.tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 9px;
  color: #C9CDD6;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.tabs a.on { background: #fff; color: var(--ink); }

.backup { display: none; align-items: center; gap: 6px; color: #C9CDD6; font-size: 12px; white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.dot-stale { background: var(--review-bg); }

.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink-2);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.avatar:hover { color: #fff; }

/* ---------- phone tab bar ---------- */

.bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  padding: 4px 0 calc(4px + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 52px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.bottom-nav a.on { color: var(--ink); font-weight: 700; }

/* ---------- page frame ---------- */

main { max-width: 1360px; margin: 0 auto; padding: 18px var(--gutter) 24px; }

.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin: 0 0 14px;
}
.page-head h1 { overflow-wrap: anywhere; }
.page-head .chip + h1, .page-head .chip ~ h1 { margin-top: 8px; }

.crumb { margin: 0 0 10px; font-size: 14px; }

.section { margin: 26px 0 12px; }
.page-head .section { margin: 0; }
.page-head:has(.section) { margin-top: 26px; }

.minor { margin: 0; color: var(--muted); font-size: 14px; }
.list + .minor { margin-top: 14px; }

.empty {
  margin: 0;
  padding: 16px;
  border: 1px dashed #C9CDD6;
  border-radius: 12px;
  color: var(--muted);
  font-size: 14px;
}

.count {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font: 600 13px var(--font);
  vertical-align: middle;
}
.section .count { background: var(--tray); }

.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1360px;
  margin: 8px auto 0;
  padding: 16px var(--gutter) 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font: 600 14px var(--font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-primary:hover { color: #fff; }
.btn-light   { border: 0; padding: 0 14px; }
.btn-small   { min-height: 40px; padding: 0 12px; font-size: 13px; }
.btn-step    { min-height: 40px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--ink); color: #fff; font-size: 13px; }
.btn-approve { background: var(--review-btn); }

/* ---------- pills: account filter, phase jump, project tabs ---------- */

.filter, .jump, .subtabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 calc(-1 * var(--gutter)) 12px;
  padding: 2px var(--gutter);
  scrollbar-width: none;
}
.filter::-webkit-scrollbar, .jump::-webkit-scrollbar, .subtabs::-webkit-scrollbar { display: none; }

.pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.pill.on, .pill.on:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.pill-acc { color: var(--acc); }
.pill-acc.on, .pill-acc.on:hover { background: var(--acc); border-color: var(--acc); color: #fff; }

.jump .pill { min-height: 36px; background: transparent; color: var(--muted); font-weight: 500; }
.jump b { color: var(--ink); }

/* ---------- pipeline board ---------- */

.board { display: grid; gap: 16px; align-items: start; }

.column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border-radius: 16px;
  background: var(--tray);
  scroll-margin-top: 72px;
}

.column-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 6px 0; }
.column-counts { display: flex; align-items: center; gap: 6px; }
.column-steps { margin: 0 6px 4px; color: var(--muted); font-size: 12px; }
.column .empty { border-color: #C9CDD6; background: transparent; }

.review-count {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--review-bg);
  color: #5A3A00;
  font-size: 12px;
  font-weight: 700;
}

/* ---------- cards ---------- */

.list { display: grid; gap: 10px; }

.card {
  background: var(--surface);
  border: 2px solid var(--surface);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(22, 24, 29, 0.08);
  overflow: hidden;
}

.dcard { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border-left: 4px solid var(--acc); }
.card-review.dcard { border-left-width: 2px; border-left-color: var(--review-border); }
.card-off { opacity: 0.6; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }

.chip {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--line-3);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.chip-acc { background: var(--acc-soft); color: var(--acc); }

.card-title {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  overflow-wrap: anywhere;
}
a.card-title:hover { text-decoration: underline; }

.card-path { align-self: flex-start; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }

.dots { display: flex; gap: 4px; }
.dots span { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.dots span.on { background: var(--acc); }

.card-step { color: var(--ink-2); font-size: 13px; }
.card-step strong { color: var(--ink); }

.dates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.dates div { display: flex; flex-direction: column; gap: 1px; min-width: 0; padding: 6px 8px; border-radius: 8px; background: var(--bg); }
.date-label { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.date-value { font-size: 13px; font-weight: 600; }

.overdue { color: var(--danger); }

.card-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.card-foot form { margin: 0 0 0 auto; }
.initials {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--acc-soft);
  color: var(--acc);
  font-size: 11px;
  font-weight: 700;
}
.card-date { color: var(--ink-2); font-size: 13px; font-weight: 600; white-space: nowrap; }
.card-date .date-label { margin-right: 2px; }

.ideas-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px dashed #A7ABB4;
  border-radius: 12px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.ideas-link:hover { background: var(--surface); }

/* One strip for everything overdue */
.overdue-strip {
  margin: 0 0 14px;
  border: 1px solid var(--danger);
  border-radius: 12px;
  background: var(--danger-bg);
  color: var(--danger);
}
.overdue-strip summary { min-height: 44px; padding: 12px 14px; font-size: 14px; font-weight: 700; cursor: pointer; }
.overdue-strip ul { margin: 0; padding: 0 14px 10px; list-style: none; }
.overdue-strip li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; padding: 8px 0; border-top: 1px solid rgba(180, 35, 24, 0.2); font-size: 14px; }
.overdue-strip a { color: var(--ink); font-weight: 600; }
.overdue-strip li span { color: var(--ink-2); font-size: 13px; }

.show-all { margin-top: 18px; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.actions form { margin: 0; }
.btn-quiet { background: transparent; color: var(--muted); }
.banner-off { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: var(--tray); color: var(--ink-2); font-size: 14px; font-weight: 600; }
.banner-late { background: var(--danger-bg); color: var(--danger); }

/* In review: the cards a reviewer must not miss */
.card-review {
  background: var(--review-card);
  border-color: var(--review-border);
  box-shadow: 0 4px 14px rgba(217, 142, 4, 0.25);
}

.review-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -14px -14px 2px;
  padding: 8px 14px;
  background: var(--review-bg);
  color: var(--review-ink);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Project (campaign / event / ministry) cards */
.pcard {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
  border-color: var(--line);
  border-left: 4px solid var(--acc);
  box-shadow: none;
  color: var(--ink);
  text-decoration: none;
}
.pcard:hover { border-color: var(--acc); color: var(--ink); }
.pcard-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.pcard-date { flex: none; color: var(--muted); font-size: 13px; white-space: nowrap; }
.pcard-sub { color: var(--muted); font-size: 13px; }
.bar { display: block; height: 6px; border-radius: 3px; background: var(--tray); overflow: hidden; }
.bar span { display: block; height: 6px; background: var(--acc); }

/* ---------- parent detail ---------- */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 6px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.facts div { min-width: 0; padding: 6px 8px; border-radius: 8px; background: var(--bg); }
.facts dt { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.facts dd { margin: 1px 0 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }

.notes { white-space: pre-wrap; margin: 12px 0 0; color: var(--ink-2); font-size: 14px; }

.links { margin: 0; padding-left: 20px; }
.links li { padding: 4px 0; }

/* ---------- forms ---------- */

.form {
  display: grid;
  gap: 14px;
  max-width: 680px;
  margin-top: 14px;
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.form label { display: grid; gap: 5px; min-width: 0; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }

.form input, .form select, .form textarea, .who select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font: 400 16px var(--font);   /* 16px stops iOS zooming on focus */
  text-transform: none;
  letter-spacing: 0;
}

.form textarea { min-height: 96px; resize: vertical; }

.form input:focus, .form select:focus, .form textarea:focus, .who select:focus,
.btn:focus-visible, a:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row-3 { grid-template-columns: 1fr; }

.hint { font-weight: 400; font-size: 13px; text-transform: none; letter-spacing: 0; }

.form-actions { display: flex; gap: 10px; margin-top: 4px; }
.form-actions .btn-primary { flex: 1; }

.errors {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--danger-bg);
  color: var(--danger);
  font-size: 14px;
  font-weight: 600;
}
.errors p { margin: 2px 0; }

/* ---------- my tasks ---------- */

.who { display: flex; align-items: center; gap: 10px; margin: 14px 0 4px; }
.who label { font-weight: 600; white-space: nowrap; }
.who select { flex: 1; }

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

.cal-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cal-nav .btn { min-width: 44px; min-height: 44px; }

.seg { display: inline-flex; gap: 4px; margin-left: 6px; padding: 4px; border-radius: 12px; background: var(--tray); }
.seg a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.seg a.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(22, 24, 29, 0.12); }

.cal-tools { display: grid; gap: 4px; }
.cal-group {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  margin: 0 calc(-1 * var(--gutter)) 8px;
  padding: 2px var(--gutter);
  scrollbar-width: none;
}
.cal-group::-webkit-scrollbar { display: none; }
.cal-group-label {
  flex: none;
  width: 52px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Layer toggles: filled with the layer's color when on, struck through when off. */
.layer { --l: var(--ink); color: var(--muted); text-decoration: line-through; }
.layer::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--l); }
.layer.on, .layer.on:hover { background: var(--l); border-color: var(--l); color: #fff; text-decoration: none; }
.layer.on::before { background: #fff; }
.l-post { --l: var(--l-post); }
.l-shoot { --l: var(--l-shoot); }
.l-due { --l: var(--l-due); }
.l-events { --l: var(--l-events); }

.preset { border-style: dashed; border-color: #A7ABB4; color: var(--ink); }
.preset.on { border-style: solid; }

/* The grid (wide screens only; phones get .agenda) */
.cal-wrap { display: none; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.cal { min-width: 900px; }
.cal-dow, .cal-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-dow { border-bottom: 1px solid var(--line); }
.cal-dow div { padding: 10px 12px; color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }

.cal-day {
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  min-height: 124px;
  padding: 8px;
  border-right: 1px solid var(--line-3);
  border-bottom: 1px solid var(--line-3);
}
.cal-day:nth-child(7) { border-right: 0; }
.cal-week:last-child .cal-day { border-bottom: 0; }
.cal-day.out { background: #F7F7F5; }
.cal.view-week .cal-day { min-height: 340px; }

.cal-num { height: 22px; margin-bottom: 2px; font-size: 13px; font-weight: 600; }
.cal-num small { color: var(--muted); font-size: 12px; font-weight: 500; }
.cal-day.out .cal-num { color: #6B7180; }
.cal-day.today .cal-num span {
  display: inline-block;
  min-width: 24px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  text-align: center;
}

/* Room left in every day of the week for the campaign bars laid over it. */
.cal-lanes { flex: none; height: calc(var(--lanes) * 20px); }

.cal-bar {
  grid-row: 1;
  align-self: start;
  z-index: 1;
  height: 16px;
  margin: calc(36px + var(--lane) * 20px) 0 0;
  padding: 0 6px;
  overflow: hidden;
  background: var(--acc-soft);
  border-top: 2px solid var(--acc);
  color: var(--acc);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 14px;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cal-bar.starts { margin-left: 6px; border-radius: 4px 0 0 4px; }
.cal-bar.ends { margin-right: 6px; border-radius: 0 4px 4px 0; }
.cal-bar.starts.ends { border-radius: 4px; }
.cal-bar:hover { background: var(--acc); color: #fff; }

.cal-item {
  display: block;
  padding: 4px 6px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 11.5px;
  line-height: 1.3;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cal.view-week .cal-item { white-space: normal; overflow-wrap: anywhere; font-size: 12.5px; }
.cal-item:hover { filter: brightness(0.93); }

.k-event  { background: var(--l-events); border-color: var(--l-events); color: #fff; }
.k-launch { background: var(--surface); border: 2px solid var(--l-events); color: var(--l-events); }
.k-shoot  { background: var(--l-shoot); border-color: var(--l-shoot); color: #fff; }
.k-due    { background: var(--surface); border-color: var(--l-due); color: var(--l-due); }
.k-post   { background: var(--l-post-soft); border-color: var(--l-post-soft); color: var(--l-post); }
.k-post.is-done { background: var(--l-post); border-color: var(--l-post); color: #fff; }
.k-event:hover, .k-shoot:hover, .k-post.is-done:hover { color: #fff; }

/* Overdue: red, with a marker that doesn't rely on color alone. */
.k-due.is-overdue { background: var(--danger-bg); border-color: var(--danger); color: var(--danger); }
.cal-item.is-overdue::before, .agenda-item.is-overdue .agenda-kind::before {
  content: "!";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 4px;
  border-radius: 50%;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 14px;
  text-align: center;
}

.cal-more { padding: 2px 6px; color: var(--muted); font-size: 11.5px; font-weight: 600; }
.cal-note { margin-top: 14px; }

/* The agenda (phones) */
.agenda { display: grid; gap: 18px; }
.agenda-day { display: grid; gap: 8px; }
.agenda-day h2 { font-size: 15px; }
.agenda-item {
  --l: var(--ink);
  display: grid;
  gap: 2px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--l);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}
.agenda-item.k-event, .agenda-item.k-launch { --l: var(--l-events); }
.agenda-item.k-shoot { --l: var(--l-shoot); }
.agenda-item.k-due { --l: var(--l-due); }
.agenda-item.k-post { --l: var(--l-post); }
.agenda-item.k-window { --l: var(--acc); }
.agenda-item.is-overdue { --l: var(--danger); border-color: var(--danger); background: var(--danger-bg); }
.agenda-kind { color: var(--l); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.agenda-title { font-size: 15px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.agenda-sub { color: var(--muted); font-size: 13px; }

/* ---------- shoot day (phone-first: big targets, big type) ---------- */

.shoot { display: grid; gap: 12px; max-width: 900px; }

.shoot-hero {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 12px;
  border-radius: 16px;
  background: var(--ink);
  color: #fff;
}
.shoot-day { flex: 1; min-width: 0; text-align: center; }
.shoot-eyebrow { color: #C9CDD6; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.shoot-hero h1 { font-size: 28px; }
.shoot-sub { color: #C9CDD6; font-size: 14px; }
.shoot-arrow {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #2A2E37;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  text-decoration: none;
}
.shoot-arrow:hover { background: var(--ink-2); color: #fff; }
.shoot-jump { text-align: center; }

.shoot-note { margin: 0; padding: 12px 14px; border-radius: 12px; background: #FFF4E0; color: #6B4300; font-size: 14px; }
.shoot-note a { color: inherit; font-weight: 600; }
.shoot-done { background: var(--tray); color: var(--ink-2); font-weight: 600; }

.shoot-count { display: flex; align-items: center; justify-content: space-between; font-size: 15px; font-weight: 600; }
.shoot-bar { background: var(--line); }
.shoot-bar span { background: var(--ink); }

.shoot-group { display: grid; gap: 8px; margin-top: 6px; }
.shoot-group h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 16px; }
.shoot-group h2 a { color: var(--ink); text-decoration: none; }

.shoot-item { display: flex; gap: 8px; scroll-margin-top: 90px; }
.shoot-item form { flex: 1; min-width: 0; margin: 0; }
.shoot-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  min-height: 64px;
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--acc);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.shoot-row.is-shot { border-color: var(--ink); }
.shoot-row:disabled { opacity: 0.6; cursor: default; }
.shoot-box {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-top: 1px;
  border: 2px solid #A7ABB4;
  border-radius: 8px;
  background: var(--surface);
}
.is-shot .shoot-box { border-color: var(--ink); background: var(--ink); }
.shoot-text { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.shoot-title { font-size: 17px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.is-shot .shoot-title { color: var(--muted); text-decoration: line-through; }
.shoot-meta { color: var(--muted); font-size: 14px; }
.shoot-notes { color: var(--ink-2); font-size: 14px; white-space: pre-line; overflow-wrap: anywhere; }
.shoot-warn {
  align-self: flex-start;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--review-bg);
  color: var(--review-ink);
  font-size: 12px;
  font-weight: 700;
}
.shoot-warn::before { content: "! "; }
.shoot-open {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--muted);
  font-size: 22px;
  text-decoration: none;
}

.shoot-add { border: 1px dashed #A7ABB4; border-radius: 14px; }
.shoot-add summary { min-height: 48px; padding: 13px 14px; font-size: 15px; font-weight: 600; cursor: pointer; }
.shoot-add form, .shoot-add > p { display: grid; gap: 10px; margin: 0; padding: 0 14px 14px; }
.shoot-add select {
  width: 100%;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font: 400 16px var(--font);
}

/* Close-out button stays in reach above the phone tab bar. */
.shoot-close {
  position: sticky;
  bottom: calc(var(--bottom-nav) + env(safe-area-inset-bottom));
  display: flex;
  gap: 10px;
  margin: 0 calc(-1 * var(--gutter));
  padding: 12px var(--gutter);
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.shoot-close .btn { min-height: 52px; font-size: 15px; }
.shoot-close .btn-primary { flex: 1; }

.shoot-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.shoot-list li { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 16px; }
.shoot-list li span { color: var(--muted); font-size: 14px; }
.shoot-list a { color: var(--ink); }

/* ---------- weekly ---------- */

.weekly-tabs .pill { min-width: 44px; justify-content: center; }
.weekly { display: grid; gap: 16px; align-items: start; }
.weekly-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  scroll-margin-top: 80px;
}
.weekly-col > form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; }
.weekly-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px; }
.weekly-head h2 { font-size: 20px; }
.weekly-status { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #E3ECFB;
  color: #1F5BC4;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.status-badge.is-review { background: var(--review-bg); color: var(--review-ink); }
.status-badge.is-done { background: var(--ink); color: #fff; }
.status-badge.is-none { border: 1px dashed #7A7F8A; background: var(--surface); color: var(--muted); }

.weekly-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.weekly-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.weekly-row.is-lead { padding: 11px; border: 2px solid var(--ink); background: var(--bg); }
.weekly-row.can-drag .weekly-num { cursor: grab; }
.weekly-row.dragging { opacity: 0.45; }
.weekly-num {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.weekly-body { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.weekly-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.weekly-name a { color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.weekly-name a:hover { text-decoration: underline; }
.weekly-blurb { margin: 0; font-size: 14px; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }
.weekly-empty { color: var(--muted); font-style: italic; }
.weekly-from { font-size: 12px; }
.weekly-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.weekly-acts form, .weekly-move form, .weekly-removed form { margin: 0; }
.weekly-acts .btn { min-height: 36px; }
.weekly-move { flex: none; display: flex; flex-direction: column; gap: 4px; }
.btn-move { width: 44px; min-height: 40px; padding: 0; border-radius: 8px; }

.flag { padding: 2px 8px; border-radius: 999px; background: var(--line-3); color: var(--ink-2); font-size: 11px; font-weight: 700; white-space: nowrap; }
.flag-lead { background: var(--ink); color: #fff; }
.flag-new { background: #DDF2EF; color: #0B6B61; }
.flag-final, .flag-today { background: var(--review-bg); color: var(--review-ink); }

.weekly-removed { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.weekly-copy { display: grid; gap: 8px; }
.weekly-copy .btn { justify-self: start; }
.weekly-copy summary, .weekly-more summary { min-height: 36px; padding: 8px 0; color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; }
.weekly-copy textarea, .weekly-pick select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font: 400 16px/1.45 var(--font);
}
.weekly-more form { display: grid; gap: 6px; margin: 0 0 12px; }
.weekly-pick { display: flex; gap: 8px; }
.weekly-pick select { flex: 1; }

/* "Runs in" switches on an event's page, and a campaign's blurb */
.runs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--tray); }
.runs form { margin: 0; }
.runs .pill { cursor: pointer; font-family: inherit; }
.runs .pill b { font-size: 11px; text-transform: uppercase; }
.blurb-box { display: grid; gap: 4px; margin: 14px 0 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 14px; white-space: pre-line; }
.checks { display: grid; gap: 8px; margin: 0; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px; }
.checks legend { padding: 0 6px; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.form .checks label { display: flex; align-items: center; gap: 10px; min-height: 36px; color: var(--ink); font-size: 15px; font-weight: 500; text-transform: none; letter-spacing: 0; }
.form .checks input { width: 22px; min-height: 22px; height: 22px; padding: 0; accent-color: var(--ink); }

/* ---------- wider screens ---------- */

/* ---------- Capacity planning: drafts, suggested values, crew, tasks ---------- */
.flag-draft { background: transparent; border: 1px dashed var(--muted); color: var(--ink-2); }
.card-draft { border-style: dashed; background: var(--bg); }
.banner-draft { border: 1px dashed var(--muted); background: transparent; }
/* A value Map suggested and nobody has accepted yet. */
.is-suggested { outline: 2px dotted var(--muted); outline-offset: 1px; }
span.is-suggested { padding: 0 4px; border-radius: 4px; }
.suggested-note, .counter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 0; }
.suggested-note form, .counter form { margin: 0; }
.template-apply { display: grid; gap: 6px; margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--tray); }
.template-apply select, .crew select {
  min-height: 40px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 10px;
  background: var(--surface); color: var(--ink); font: inherit; font-size: 16px;
}
.crew, .task-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.crew li, .task-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.crew li b { flex: 1 1 130px; }
.crew form, .task-list form { display: flex; gap: 6px; margin: 0; }
.task-list li.minor { border-style: dashed; background: transparent; }
.task-body { display: grid; gap: 2px; flex: 1 1 180px; min-width: 0; }
.task-list .is-done .task-body b { color: var(--muted); text-decoration: line-through; }
.task-check {
  width: 40px; height: 40px; border: 2px solid var(--line-2); border-radius: 10px;
  background: var(--surface); color: #fff; font-size: 20px; font-weight: 700; cursor: pointer;
}
.task-check[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); }
.task-add { margin: 12px 0 0; }
.task-add summary { min-height: 40px; cursor: pointer; font-weight: 600; }
.row-5 { grid-template-columns: 1fr 1fr; }

/* ---------- Team page ---------- */
.foot-links { display: flex; gap: 8px; }
.team-weeks { justify-content: flex-start; }
.team-list { display: grid; gap: 10px; }
.team-person {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; align-items: end;
  margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
}
.team-name { grid-column: 1 / -1; font-size: 17px; }
.team-person label { display: grid; gap: 4px; min-width: 0; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.team-person input[type=number], .team-person select {
  width: 100%; min-height: 44px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 10px;
  background: var(--surface); color: var(--ink); font: inherit; font-size: 16px;
}
.team-person .team-active { display: flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink); font-size: 14px; font-weight: 500; text-transform: none; letter-spacing: 0; }
.team-active input { width: 22px; height: 22px; accent-color: var(--ink); }
.team-person .btn { min-height: 44px; }
.team-sum { grid-column: 1 / -1; margin: 0; color: var(--ink-2); font-size: 13px; }
.team-total { margin: 12px 0 4px; padding: 10px 14px; border-radius: 12px; background: var(--tray); font-size: 14px; }
.team-add { margin: 12px 0 0; }
.team-add summary { min-height: 40px; cursor: pointer; font-weight: 600; }
/* ---------- Bulk edit ---------- */
.foot { flex-wrap: wrap; gap: 10px; }
.foot-links { flex-wrap: wrap; }
.bulk-filter, .bulk-fill { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; align-items: end; margin: 0 0 12px; }
.bulk-fill { padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--tray); }
.bulk-fill legend { padding: 0 6px; font-size: 13px; font-weight: 700; }
.bulk-fill .hint { grid-column: 1 / -1; color: var(--muted); }
.bulk label, .bulk-filter label { display: grid; gap: 4px; min-width: 0; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.bulk select, .bulk input[type=date], .bulk input[type=number], .bulk-filter select {
  width: 100%; min-width: 0; min-height: 44px; padding: 0 8px; border: 1px solid var(--line-2); border-radius: 10px;
  background: var(--surface); color: var(--ink); font: inherit; font-size: 16px;
}
.bulk-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; margin: 0 0 10px; padding: 8px 0; background: var(--bg); }
.bulk-bar .btn-primary { margin-left: auto; }
.bulk-bar-end { position: static; margin-top: 12px; }
.bulk .bulk-all { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 14px; font-weight: 600; text-transform: none; letter-spacing: 0; }
.bulk-all[hidden] { display: none; }
.bulk input[type=checkbox] { width: 24px; height: 24px; accent-color: var(--ink); }
.bulk-list { display: grid; gap: 8px; }
.bulk-row {
  display: grid; grid-template-columns: 34px 1fr 1fr; gap: 8px 10px; align-items: end;
  padding: 10px 12px; border: 1px solid var(--line); border-left: 4px solid var(--acc); border-radius: 12px; background: var(--surface);
}
.bulk .bulk-pick { display: flex; align-items: center; justify-content: center; min-height: 44px; align-self: start; }
.bulk-title { grid-column: 2 / -1; display: grid; gap: 2px; min-width: 0; align-self: center; }
.bulk-title a { font-weight: 600; overflow-wrap: anywhere; }
/* Phone: fields sit under the title, clear of the tick-box column. */
.bulk-row > label:nth-of-type(2), .bulk-row > label:nth-of-type(4) { grid-column: 2; }
.bulk-row > label:nth-of-type(6) { grid-column: 2 / -1; }
.bulk-head { display: none; }
.suggest-values { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; font-size: 14px; font-weight: 600; }
@media (min-width: 1000px) {
  .bulk-filter { grid-template-columns: repeat(3, minmax(0, 220px)) auto; justify-content: start; }
  .bulk-fill { grid-template-columns: repeat(4, 1fr); }
  .bulk-row { grid-template-columns: 34px minmax(0, 2.4fr) 1.3fr 70px 70px 1fr 150px; align-items: center; }
  .bulk-title, .bulk-row > label:nth-of-type(n) { grid-column: auto; }
  .bulk-head { display: grid; padding: 0 12px; border: 0; background: transparent; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
  .bulk-row label { font-size: 0; gap: 0; }                     /* the column is obvious on a wide screen */
}

/* ---------- Capacity page ---------- */
.cap-key { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 12px; }
.cap-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; }
.cap-swatch.is-over { background: var(--danger-bg); border: 1px solid var(--danger); }
.cap-swatch.is-maybe { background: var(--review-card); border: 1px dashed var(--review-border); }
.cap-room { color: var(--muted); font-weight: 500; }
.cap-draft { margin-left: 5px; padding: 0 5px; border: 1px dashed var(--muted); border-radius: 999px; color: var(--ink-2); font-size: 12px; font-weight: 600; white-space: nowrap; }
.cap-wrap { display: none; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.cap { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.cap th, .cap td { padding: 0; border-bottom: 1px solid var(--line-3); text-align: right; white-space: nowrap; }
.cap thead th { padding: 10px 12px; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.cap thead th.is-now { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }
.cap th[scope=row], .cap thead th:first-child { padding: 10px 14px; text-align: left; font-weight: 600; }
.cap td a, .cap td .cap-none { display: block; padding: 10px 12px; color: var(--ink); text-decoration: none; }
.cap tfoot td { padding: 10px 12px; }
.cap td a:hover { background: var(--bg); }
.cap td .cap-none b { color: var(--muted); font-weight: 500; }
.cap tfoot th, .cap tfoot td { border-top: 2px solid var(--line-2); border-bottom: 0; background: var(--bg); }
.cap td.is-over { background: var(--danger-bg); }
.cap td.is-over b { color: var(--danger); }
.cap td.is-maybe { background: var(--review-card); box-shadow: inset 0 0 0 1px var(--review-border); }
.cap td.is-open { outline: 2px solid var(--ink); outline-offset: -2px; }
.cap-stack { display: grid; gap: 14px; }
.cap-week { padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.cap-week h2 { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 6px; font-size: 15px; }
.cap-total.is-over b { color: var(--danger); }
.cap-week ul { margin: 0; padding: 0; list-style: none; }
.cap-week li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; min-height: 44px; padding: 6px 0; border-top: 1px solid var(--line-3); font-size: 15px; }
.cap-week li > a, .cap-week li > span:first-child { font-weight: 600; }
.cap-nums { font-variant-numeric: tabular-nums; }
.cap-nums em { margin-left: 6px; font-size: 12px; font-style: normal; font-weight: 700; }
.cap-week li.is-over .cap-nums b, .cap-week li.is-over em { color: var(--danger); }
.cap-week li.is-maybe em { color: var(--review-btn); }
.cap-bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.cap-bar i { display: block; height: 100%; border-radius: 3px; background: var(--ink); }
.cap-week li.is-over .cap-bar i { background: var(--danger); }
.cap-detail { margin-top: 8px; scroll-margin-top: 80px; }
.cap-detail .task-list li > b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.cap-unsized { margin: 16px 0 0; }
.cap-unsized summary { min-height: 40px; cursor: pointer; font-weight: 600; }
@media (min-width: 900px) {
  .cap-wrap { display: block; }
  .cap-stack { display: none; }
}
@media (min-width: 760px) {
  .team-person { grid-template-columns: minmax(120px, 1.2fr) 1fr 1fr 1fr auto auto; }
  .team-name { grid-column: auto; align-self: center; }
}

@media (min-width: 560px) {
  .row-3 { grid-template-columns: 1fr 1fr 1fr; }
  .row-5 { grid-template-columns: repeat(5, 1fr); }
  .form { padding: 22px; }
  .form-actions .btn-primary { flex: none; min-width: 140px; }
  .who { max-width: 420px; }
}

@media (min-width: 700px) {
  .cal-wrap { display: block; }
  .agenda { display: none; }
  .list { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); align-items: start; }
}

@media (min-width: 900px) {
  :root { --gutter: 32px; }
  body { padding-bottom: 0; }
  h1 { font-size: 30px; }
  .top { padding-top: 14px; padding-bottom: 14px; }
  .top-left { gap: 24px; }
  .top-right { gap: 14px; }
  .tabs { display: flex; }
  .backup { display: flex; }
  .bottom-nav { display: none; }
  main { padding-top: 24px; padding-bottom: 40px; }
  .filter { justify-content: flex-end; flex-wrap: wrap; overflow: visible; }
  .jump { display: none; }
  .cal-tools { display: flex; flex-wrap: wrap; gap: 4px 22px; }
  .weekly { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }
  .weekly-col { padding: 18px; }
  .weekly-tabs { justify-content: flex-start; }
  .shoot-close { position: static; margin: 0; padding: 4px 0 0; border: 0; background: none; justify-content: flex-end; }
  .shoot-close .btn-primary { flex: none; min-width: 220px; }
  .cal-group { flex-wrap: wrap; overflow: visible; margin: 0 0 8px; padding: 2px 0; }
  .cal-group-label { width: auto; margin-right: 4px; }
  .board { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
}

/* ---------- team password page ---------- */

.login-page { display: flex; min-height: 100vh; min-height: 100dvh; align-items: center; justify-content: center; padding: 24px var(--gutter); }
.login-box { width: 100%; max-width: 360px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.login-title { margin: 0 0 4px; font: 700 28px var(--display); }
.login-sub { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.login-box label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; }
.login-input { box-sizing: border-box; width: 100%; min-height: 48px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); color: var(--ink); font: 400 16px var(--font); }
.login-btn { width: 100%; margin: 16px 0; min-height: 48px; }
.login-box .login-sub:last-child { margin: 0; font-size: 13px; }
