/* ============================================================
   CRM Buildout Tracker — light NextLevel theme.
   The client's brand colours drive --brand-*; everything else
   references those three so the page restyles for free.
   ============================================================ */

:root {
  --brand-1: #057EEF;   /* primary  — buttons, links, rings */
  --brand-2: #033362;   /* deep     — headings, dark accents */
  --brand-3: #EBF5FF;   /* wash     — soft brand-tinted surfaces */

  --bg:        #F6F9FD;
  --card:      #FFFFFF;
  --wash:      #F1F6FC;
  --line:      #DCE6F2;
  --line-soft: #EAF0F8;

  --ink:    #0F172A;
  --body:   #334155;
  --muted:  #5B6B80;

  /* Only two status colours: brand blue for progress/done, burgundy for "needs you". */
  --ok:     #0E7C4A;
  --warn:   #7B102C;
  --hold:   #64748B;

  --r-sm: 8px;
  --r:    12px;
  --r-lg: 18px;

  --shadow:    0 1px 2px rgba(15,32,60,.06), 0 4px 16px -6px rgba(15,32,60,.10);
  --shadow-lg: 0 2px 6px rgba(15,32,60,.07), 0 18px 44px -20px rgba(15,32,60,.28);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Anton', 'Inter', sans-serif;
  --on-brand: #FFFFFF;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* Soft brand wash behind the hero only — light pages don't need an ambient mesh. */
body::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 620px;
  z-index: 0; pointer-events: none;
  background:
    radial-gradient(60vw 42vw at 12% -8%, color-mix(in srgb, var(--brand-1) 16%, transparent), transparent 68%),
    radial-gradient(46vw 36vw at 92% -14%, color-mix(in srgb, var(--brand-2) 12%, transparent), transparent 66%);
  transition: background 800ms var(--ease);
}

a { color: var(--brand-1); text-decoration: none; font-weight: 550; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); letter-spacing: -0.018em; line-height: 1.2; font-weight: 700; }

.wrap { position: relative; z-index: 1; max-width: 940px; margin: 0 auto; padding: 0 24px 110px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.topbar-in { max-width: 940px; margin: 0 auto; padding: 11px 24px; display: flex; align-items: center; gap: 14px; }
.tb-logo { height: 32px; width: auto; max-width: 160px; object-fit: contain; display: block; }
.tb-mark {
  height: 32px; width: 32px; border-radius: 9px; flex: none; display: grid; place-items: center;
  font-weight: 800; font-size: 14px; color: var(--on-brand); background: var(--brand-1);
}
.tb-name { font-weight: 700; font-size: 15px; color: var(--ink); }
.tb-sub { font-size: 11px; color: var(--muted); letter-spacing: .07em; text-transform: uppercase; font-weight: 700; }
.tb-spacer { flex: 1; }

.pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 999px;
  font-size: 13px; font-weight: 650; white-space: nowrap;
  border: 1px solid var(--line); background: #fff; color: var(--body);
}
.pill.hot { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); background: color-mix(in srgb, var(--warn) 7%, #fff); }
.pill.hot .dot { background: var(--warn); }
.pill.good { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); background: color-mix(in srgb, var(--ok) 8%, #fff); }
.pill.good .dot { background: var(--ok); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex: none; }

.saveflag { font-size: 12.5px; font-weight: 650; opacity: 0; transition: opacity 250ms var(--ease); white-space: nowrap; color: var(--muted); }
.saveflag.on { opacity: 1; color: var(--ok); }
.saveflag.busy { opacity: 1; }
.saveflag.fail { opacity: 1; color: var(--warn); }

/* ---------- hero ---------- */
.hero { padding: 40px 0 4px; }
.eyebrow { font-size: 11.5px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; color: var(--brand-1); margin-bottom: 14px; }
.hero h1 {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(34px, 6vw, 56px); line-height: 1.02; letter-spacing: .004em; color: var(--brand-2);
}
.hero .lede { font-size: 17px; color: var(--body); max-width: 620px; margin: 12px 0 0; }
.hero .lede b { color: var(--ink); }
.hero-cta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; }

.countdown { display: flex; gap: 8px; }
.cd-box { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 7px 13px; text-align: center; }
.cd-box b { display: block; font-size: 17px; font-weight: 800; color: var(--ink); }
.cd-box span { font-size: 9.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }

/* ---------- the two lanes ---------- */
.lane-head { display: flex; align-items: center; gap: 14px; margin: 8px 0 18px; }
.lane-head h2 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; white-space: nowrap; }
.lane-head .rule { flex: 1; height: 1px; background: var(--line); }
.lane-yours .lane-head h2 { color: var(--warn); }
.lane-ours  .lane-head h2 { color: var(--brand-1); }
.lane-intro {
  background: var(--brand-3); border: 1px solid color-mix(in srgb, var(--brand-1) 22%, transparent);
  border-radius: var(--r); padding: 18px 22px; margin-bottom: 22px; color: var(--body); font-size: 15.5px;
}
.lane-intro b { color: var(--ink); }
.lane-ours { margin-top: 56px; }

/* section headings that replace the old lane chrome */
.block-h { font-size: 13px; letter-spacing: .13em; text-transform: uppercase; font-weight: 800;
           color: var(--muted); margin: 36px 0 14px; }
.block-h:first-of-type { margin-top: 26px; }
.block-pct { float: right; color: var(--brand-1); letter-spacing: .06em; }
.pinned-note { background: color-mix(in srgb, var(--warn) 6%, #fff); border: 1px solid color-mix(in srgb, var(--warn) 28%, transparent);
               border-left-width: 3px; border-radius: var(--r); padding: 12px 16px; margin-bottom: 12px; font-size: 15px; color: var(--ink); }

/* ---------- cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 26px; margin-bottom: 12px; box-shadow: var(--shadow); }
.card.tight { padding: 8px 26px; }

/* a task section — folds shut once it's finished */
.card.sec { padding: 0; }
.card.sec > summary { list-style: none; cursor: pointer; padding: 18px 24px; display: flex; align-items: center; gap: 14px; }
.card.sec > summary::-webkit-details-marker { display: none; }
.card.sec .sec-title { font-size: 19px; font-weight: 700; color: var(--ink); flex: 1; min-width: 0; }
.card.sec .chip { flex: none; }
.card.sec .sec-body { padding: 0 24px 22px; }
.card.sec .sec-blurb { margin: 0 0 6px; }
.card.sec[open] > summary { border-bottom: 1px solid var(--line-soft); }
.card.done-sec > summary { background: color-mix(in srgb, var(--ok) 5%, #fff); border-radius: var(--r-lg); }
.card.done-sec[open] > summary { border-radius: var(--r-lg) var(--r-lg) 0 0; }
.card.quiet { background: transparent; box-shadow: none; border-style: dashed; }

.sec-head { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 4px; }
.sec-kicker {
  width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center;
  font-size: 14px; font-weight: 800; color: var(--on-brand); background: var(--brand-1); margin-top: 1px;
}
.card.done-sec .sec-kicker { background: var(--ok); }
.sec-head h2 { font-size: 21px; }
.sec-blurb { color: var(--muted); font-size: 15px; margin: 6px 0 20px; max-width: 660px; }

/* ---------- fields ---------- */
.field { padding: 17px 0; border: none; border-top: 1px solid var(--line-soft); margin: 0; min-width: 0; }
.field:first-of-type { border-top: none; padding-top: 6px; }
.field.hidden { display: none; }
.f-label { display: flex; align-items: center; gap: 9px; font-weight: 650; font-size: 16px; color: var(--ink); margin-bottom: 5px; }
.req { font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--warn);
       border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); background: color-mix(in srgb, var(--warn) 7%, #fff);
       padding: 2px 7px; border-radius: 5px; flex: none; }
.tick { color: var(--ok); font-size: 16px; font-weight: 800; }
.f-help { color: var(--muted); font-size: 14.5px; margin: 0 0 14px; max-width: 640px; }

input[type=text], input[type=url], input[type=number], input[type=date], textarea, select {
  width: 100%; background: #fff; color: var(--ink); border: 1.5px solid var(--line); border-radius: var(--r-sm);
  padding: 11px 13px; font: inherit; font-size: 15px;
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
input::placeholder, textarea::placeholder { color: #93A2B5; opacity: 1; }
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--brand-1);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-1) 18%, transparent);
}
textarea { min-height: 84px; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);
         background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px,5px 5px; background-repeat: no-repeat; padding-right: 38px; }

.choices { display: flex; flex-wrap: wrap; gap: 9px; }
.choice { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; border: 1.5px solid var(--line);
          background: #fff; border-radius: 10px; padding: 11px 15px; font-size: 15px; font-weight: 550; color: var(--body);
          transition: all 160ms var(--ease); user-select: none; }
.choice:hover { border-color: var(--brand-1); }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice:focus-within { border-color: var(--brand-1); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-1) 18%, transparent); }
.choice .box { width: 17px; height: 17px; border-radius: 50%; border: 1.8px solid var(--line); flex: none; display: grid; place-items: center; transition: all 160ms var(--ease); }
.choice.on { color: var(--ink); border-color: var(--brand-1); background: var(--brand-3); }
.choice.on .box { background: var(--brand-1); border-color: var(--brand-1); }
.choice.on .box::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #fff; }

/* the big "I did it" checkbox — the main control on the client's page */
.task-check { display: flex; align-items: center; gap: 13px; cursor: pointer; border: 1.5px solid var(--line);
              background: #fff; border-radius: var(--r); padding: 15px 17px; font-weight: 650; color: var(--body);
              transition: all 180ms var(--ease); user-select: none; }
.task-check:hover { border-color: var(--brand-1); background: var(--wash); }
.task-check:focus-within { border-color: var(--brand-1); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-1) 18%, transparent); }
.task-check .box { width: 23px; height: 23px; border-radius: 7px; border: 2px solid var(--line); flex: none; display: grid; place-items: center; transition: all 180ms var(--ease); }
.task-check.on { border-color: color-mix(in srgb, var(--ok) 45%, transparent); background: color-mix(in srgb, var(--ok) 6%, #fff); color: var(--ok); }
.task-check.on .box { background: var(--ok); border-color: var(--ok); }
.task-check.on .box::after { content: '✓'; color: #fff; font-weight: 900; font-size: 13px; line-height: 1; }
.task-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }

.btn { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; border-radius: 10px; padding: 11px 18px;
       font: inherit; font-size: 15px; font-weight: 650; border: 1.5px solid var(--line); background: #fff; color: var(--ink);
       transition: all 160ms var(--ease); text-decoration: none; }
.btn:hover { border-color: var(--brand-1); color: var(--brand-1); text-decoration: none; }
.btn.primary { background: var(--brand-1); border-color: var(--brand-1); color: var(--on-brand); box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--brand-1) 60%, transparent); }
.btn.primary:hover { filter: brightness(1.07); color: var(--on-brand); }
.btn.sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn.ghost { background: transparent; }
.btn.big { padding: 14px 24px; font-size: 16px; }

.copylist { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.copyrow { display: flex; align-items: center; gap: 10px; font-family: ui-monospace,'SF Mono',Menlo,monospace; font-size: 14px;
           background: var(--wash); border: 1px solid var(--line); border-radius: 8px; padding: 10px 13px; }
.copyrow b { flex: 1; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; }

.drop { display: block; border: 1.8px dashed var(--line); border-radius: var(--r); padding: 24px; text-align: center;
        cursor: pointer; color: var(--muted); font-size: 14.5px; transition: all 180ms var(--ease); background: var(--wash); }
.drop:hover, .drop.over { border-color: var(--brand-1); background: var(--brand-3); color: var(--brand-1); }
.drop b { color: var(--ink); }
.drop:hover b { color: var(--brand-1); }
.drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.drop:focus-within { border-color: var(--brand-1); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-1) 18%, transparent); }
.upshot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.upshot img { max-height: 70px; max-width: 200px; border-radius: 10px; padding: 8px; background: #fff; border: 1px solid var(--line); object-fit: contain; }
.upshot .fname { font-size: 13px; color: var(--muted); }

.swatches { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.sw { display: flex; flex-direction: column; gap: 6px; }
.sw label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .09em; font-weight: 700; }
.sw .row { display: flex; gap: 8px; align-items: center; }
.sw input[type=color] { width: 46px; height: 42px; padding: 0; border: 1.5px solid var(--line); border-radius: 9px; background: #fff; cursor: pointer; }
.sw input[type=color]::-webkit-color-swatch-wrapper { padding: 3px; }
.sw input[type=color]::-webkit-color-swatch { border: none; border-radius: 6px; }
.sw input[type=text] { width: 100px; font-family: ui-monospace, monospace; font-size: 13.5px; text-transform: uppercase; }
.extracted { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; align-items: center; }
.ex-chip { width: 34px; height: 34px; border-radius: 9px; cursor: pointer; border: 2px solid #fff;
           box-shadow: 0 0 0 1px var(--line); transition: transform 160ms var(--ease); animation: popin 380ms var(--ease) backwards; }
.ex-chip:hover { transform: scale(1.12) translateY(-2px); }
@keyframes popin { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }

.dpreview { display: grid; gap: 8px; }
.dp-row { display: flex; align-items: center; gap: 12px; padding: 12px 15px; background: var(--wash);
          border: 1px solid var(--line); border-radius: 10px; font-size: 14.5px; animation: slidein 420ms var(--ease) backwards; }
.dp-row .ic { width: 17px; height: 17px; flex: none; color: var(--brand-1); display: block; }
.dp-row code { font-family: ui-monospace,'SF Mono',Menlo,monospace; font-size: 14px; color: var(--brand-2); font-weight: 650; overflow-wrap: anywhere; }
.dp-row .what { color: var(--muted); font-size: 13px; margin-left: auto; text-align: right; flex: none; }
@keyframes slidein { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@media (max-width: 620px) { .dp-row { flex-wrap: wrap; } .dp-row .what { margin-left: 29px; text-align: left; } }

/* ---------- sign-offs ---------- */
.signoff { border: 2px solid var(--brand-1); background: var(--brand-3); border-radius: var(--r-lg); padding: 24px 26px; margin-bottom: 16px; }
.signoff h3 { font-size: 19px; margin-bottom: 6px; }
.signoff p { color: var(--body); font-size: 15px; margin: 0 0 18px; max-width: 620px; }
.signoff.approved { border-color: color-mix(in srgb, var(--ok) 45%, transparent); background: color-mix(in srgb, var(--ok) 6%, #fff); }
.signoff .stamp { display: inline-flex; align-items: center; gap: 8px; color: var(--ok); font-weight: 700; font-size: 15px; }

/* ---------- what we agreed ---------- */
.agreed { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px,1fr)); gap: 1px; background: var(--line);
          border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.agreed .cell { background: #fff; padding: 14px 16px; }
.agreed .cell.wide { grid-column: 1 / -1; }
.agreed .k { font-size: 11px; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); font-weight: 700; margin-bottom: 3px; }
.agreed .v { font-size: 16px; color: var(--ink); font-weight: 650; }
.agreed .v.empty { color: #93A2B5; font-weight: 400; font-style: italic; font-size: 14.5px; }

/* ---------- progress ---------- */
.phase { display: flex; gap: 12px; padding: 11px 0; align-items: flex-start; }
.phase + .phase { border-top: 1px solid var(--line-soft); }
.ph-dot { width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2.2px solid var(--line); flex: none; margin-top: 7px; }
.phase.is-done .ph-dot { background: var(--ok); border-color: var(--ok); }
.phase.is-go   .ph-dot { background: var(--brand-1); border-color: var(--brand-1); }
.phase.is-wait .ph-dot { background: var(--warn); border-color: var(--warn); }
.ph-body { flex: 1; min-width: 0; }
.ph-top { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.ph-top h4 { font-size: 15.5px; font-weight: 650; }
.ph-pct { margin-left: auto; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 600; }
.ph-note { margin-top: 10px; font-size: 14.5px; color: var(--ink); background: var(--brand-3);
           border-left: 3px solid var(--brand-1); border-radius: 0 8px 8px 0; padding: 10px 14px; }
.ph-note.pinned { margin: 0 0 20px; border-left-color: var(--warn); background: color-mix(in srgb, var(--warn) 6%, #fff); }
.ph-bar { height: 4px; border-radius: 99px; background: var(--line-soft); margin-top: 7px; overflow: hidden; }
.ph-bar i { display: block; height: 100%; border-radius: 99px; background: var(--brand-1); transition: width 800ms var(--ease); }
.phase.is-done .ph-bar i { background: var(--ok); }

.chip { font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; background: #fff; }
.st-done { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); background: color-mix(in srgb, var(--ok) 7%, #fff); }
.st-go   { color: var(--brand-1); border-color: color-mix(in srgb, var(--brand-1) 35%, transparent); background: var(--brand-3); }
.st-wait { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 38%, transparent); background: color-mix(in srgb, var(--warn) 7%, #fff); }
.st-hold { color: var(--hold); border-color: var(--line); }
.st-idle { color: var(--muted); }
.st-na   { color: var(--muted); text-decoration: line-through; }

.ph-mark-btn {
  font-size: 11.5px; font-weight: 700; padding: 4px 11px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--muted); flex: none;
  transition: all 150ms var(--ease);
}
.ph-mark-btn:hover { border-color: var(--ok); color: var(--ok); }

/* uploaded files for a multi-file field */
.filegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.filecard { position: relative; border: 1px solid var(--line); border-radius: var(--r); background: #fff; padding: 10px; text-align: center; }
.filecard img { max-height: 64px; max-width: 100%; object-fit: contain; display: block; margin: 0 auto 8px; }
.filecard .fileicon { height: 64px; display: grid; place-items: center; color: var(--muted); }
.filecard .fileicon svg { width: 26px; height: 26px; }
.filecard .fmeta { font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }
.filecard .fmeta span { display: block; color: var(--muted); }
.filecard .fx {
  position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--muted); cursor: pointer;
  font-size: 15px; line-height: 1; display: grid; place-items: center; box-shadow: var(--shadow);
}
.filecard .fx:hover { border-color: var(--warn); color: var(--warn); }

/* the team's checklist for a phase, folded under the row the client sees */
.phase.has-detail .ph-top { cursor: default; }
.ph-detail {
  margin-top: 14px; padding: 6px 16px 16px; background: var(--wash);
  border: 1px solid var(--line); border-radius: var(--r);
}
.phase.open { background: color-mix(in srgb, var(--brand-1) 3%, transparent); }
.ph-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-top: 16px; }

/* ---------- activity ---------- */
.feed { display: grid; }
.feed-row { display: flex; gap: 12px; padding: 10px 0; font-size: 14.5px; align-items: baseline; border-top: 1px solid var(--line-soft); }
.feed-row:first-child { border-top: none; }
.feed-row .who { font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 2px 7px; border-radius: 5px; flex: none; }
.who.team   { color: var(--brand-1); background: var(--brand-3); }
.who.client { color: var(--warn); background: color-mix(in srgb, var(--warn) 8%, #fff); }
.feed-row .when { color: var(--muted); font-size: 12.5px; margin-left: auto; flex: none; }

/* ---------- team view ---------- */
.adm-bar { margin-bottom: 22px; background: var(--brand-2); border-radius: var(--r); padding: 12px 16px;
           display: flex; align-items: center; gap: 11px; flex-wrap: wrap; }
.adm-bar .tag { font-size: 10.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--brand-2); background: #fff; padding: 4px 9px; border-radius: 6px; }
.adm-bar > span { color: #fff; }
.adm-bar .btn { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.28); color: #fff; }
.adm-bar .btn:hover { background: #fff; color: var(--brand-2); border-color: #fff; }
.adm-bar input[type=date] { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.28); color: #fff; }

/* the pinned "waiting on them" box — the thing Sean actually needs at a glance */
.onthem { border: 2px solid color-mix(in srgb, var(--warn) 40%, transparent); background: color-mix(in srgb, var(--warn) 5%, #fff);
          border-radius: var(--r-lg); padding: 22px 24px; margin-bottom: 18px; }
.onthem h3 { color: var(--warn); font-size: 17px; margin-bottom: 4px; }
.onthem .sub { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.onthem ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.onthem li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--ink);
             background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 10px 13px; }
.onthem li .ph { font-size: 11px; color: var(--muted); margin-left: auto; flex: none; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.onthem .clear { color: var(--ok); font-weight: 650; font-size: 15px; }

.acc { border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 9px; overflow: hidden; background: #fff; }
.acc-h { display: flex; align-items: center; gap: 12px; padding: 13px 16px; cursor: pointer; user-select: none; transition: background 150ms var(--ease); }
.acc-h:hover { background: var(--wash); }
.acc-h .caret { transition: transform 220ms var(--ease); color: var(--muted); font-size: 10px; flex: none; }
.acc.open .acc-h .caret { transform: rotate(90deg); }
.acc-h h4 { font-size: 15px; font-weight: 650; flex: 1; min-width: 0; }
.acc-h .count { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; flex: none; font-weight: 600; }
.acc-body { display: none; padding: 2px 16px 16px; }
.acc.open .acc-body { display: block; }

.ck { display: flex; align-items: center; gap: 11px; padding: 9px 0; border-top: 1px solid var(--line-soft); font-size: 14.5px; }
.ck:first-child { border-top: none; }
.ck .b { width: 19px; height: 19px; border-radius: 6px; border: 1.8px solid var(--line); background: #fff; flex: none; cursor: pointer;
         display: grid; place-items: center; padding: 0; transition: all 150ms var(--ease); }
.ck.done .b { background: var(--ok); border-color: var(--ok); }
.ck.done .b::after { content: '✓'; font-size: 11px; color: #fff; font-weight: 900; line-height: 1; }
.ck.done .t { color: var(--muted); text-decoration: line-through; }
.ck.na .t { color: var(--muted); text-decoration: line-through; opacity: .6; }
.ck .t { flex: 1; min-width: 0; color: var(--ink); }
.ck .own { font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 3px 8px; border-radius: 5px;
           flex: none; cursor: pointer; border: 1px solid var(--line); color: var(--muted); background: #fff; }
.ck .own.o-Client { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); background: color-mix(in srgb, var(--warn) 7%, #fff); }
.ck .nax { font-size: 10.5px; font-weight: 800; cursor: pointer; color: var(--muted); border: 1px solid var(--line); background: #fff; border-radius: 5px; padding: 3px 8px; flex: none; }
.ck.na .nax { color: var(--ink); border-color: var(--muted); }

.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 14px; }
.lbl { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .09em; font-weight: 700; display: block; margin-bottom: 6px; }

.clist { display: grid; gap: 9px; }
.crow { display: flex; align-items: center; gap: 13px; padding: 15px 17px; border: 1px solid var(--line); border-radius: var(--r);
        background: #fff; transition: all 160ms var(--ease); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.crow:hover { border-color: var(--brand-1); text-decoration: none; transform: translateY(-1px); }
.crow .nm { font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crow .chip { flex: none; }
.crow .meta { font-size: 12.5px; color: var(--muted); flex: none; }
.crow .barw { width: 110px; height: 6px; border-radius: 99px; background: var(--line-soft); overflow: hidden; flex: none; }
.crow .barw i { display: block; height: 100%; background: var(--brand-1); }
.crow.arch { opacity: .55; }
.crow.arch .nm::after { content: ' · archived'; color: var(--muted); font-weight: 500; font-size: 12px; }

.teamfoot { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 26px; }

/* everything configurable, folded away at the bottom */
.settings { margin-top: 34px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow); }
.settings > summary {
  list-style: none; cursor: pointer; padding: 16px 24px; font-weight: 650; color: var(--muted);
  display: flex; align-items: center; gap: 10px;
}
.settings > summary::-webkit-details-marker { display: none; }
.settings > summary::before { content: '▸'; font-size: 11px; transition: transform 200ms var(--ease); }
.settings[open] > summary::before { transform: rotate(90deg); }
.settings > summary:hover { color: var(--ink); }
.settings-body { padding: 0 10px 10px; }
.settings-body .card { box-shadow: none; }

/* ---------- misc ---------- */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%,22px); background: var(--brand-2); color: #fff;
         border-radius: 11px; padding: 12px 20px; font-size: 14.5px; font-weight: 600; z-index: 200; box-shadow: var(--shadow-lg);
         opacity: 0; pointer-events: none; transition: all 300ms var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%,0); }
.toast.err { background: var(--warn); }

.helpbox { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--brand-3);
           border: 1px solid color-mix(in srgb, var(--brand-1) 22%, transparent); border-radius: var(--r-lg); padding: 20px 24px; }
.helpbox p { margin: 0; flex: 1; min-width: 220px; color: var(--body); font-size: 15px; }
.helpbox b { color: var(--ink); }

.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 40px 0 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 300; }
.skel { border-radius: var(--r-sm); background: linear-gradient(90deg, var(--line-soft) 25%, #fff 50%, var(--line-soft) 75%);
        background-size: 300% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -150% 0; } }

@media (max-width: 620px) {
  .topbar-in { padding: 10px 16px; gap: 10px; }
  .tb-sub { display: none; }
  .tb-name { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 36vw; }
  .tb-logo { height: 26px; max-width: 88px; }
  .tb-mark { height: 28px; width: 28px; font-size: 12px; }
  .topbar .pill { font-size: 12px; padding: 5px 10px; }
  .topbar .pill.built { display: none; }
  .wrap { padding: 0 16px 80px; }
  .card, .signoff, .onthem { padding: 20px 18px; border-radius: 14px; }
  .hero { padding: 32px 0 20px; }
  .hero .lede { font-size: 16px; }
  .sec-head h2 { font-size: 19px; }
  .f-label { align-items: flex-start; font-size: 15.5px; }
  .lane-ours { margin-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
