/* Work queues and handoffs. Casey's original style.css remains intact. */
:root {
  --work-mint:#246347; --work-amber:#8a5318; --work-blue:#325f91;
  --work-card:#fff; --work-inset:#f2f5f1; --work-next:#edf6ee;
  --work-ring:0 0 0 1px var(--line),0 4px 14px rgb(20 40 30 / 3%);
}
html[data-theme="dark"] {
  --paper:#111517; --surface:#191e21; --surface-raised:#22292c; --input:#14191b;
  --ink:#edf1ed; --muted:#a4afb0; --line:#303a3e; --green:#b8e9c9;
  --pale:#26372e; --work-mint:#b8e9c9; --work-amber:#efc07d; --work-blue:#a6c8ee;
  --work-card:#191e21; --work-inset:#151a1d; --work-next:#1c2b23;
  --work-ring:0 0 0 1px var(--line),0 6px 24px rgb(0 0 0 / 6%);
}
body { -webkit-font-smoothing:antialiased; }
body .app-shell .sidebar { width:208px; padding:28px 18px 22px; }
body .app-shell .main-shell { margin-left:208px; width:calc(100% - 208px); }
body .app-shell main { padding:24px 38px; max-width:1720px; }
body .app-shell .topbar { height:70px; padding:0 38px; background:var(--paper); }
.sidebar .brand { font-size:24px; }
.sidebar .brand-sub { font-size:7px; letter-spacing:1.25px; margin-top:0; }
.sidebar .brand-mark { width:38px; height:40px; }
.sidebar .sidebar-note { background:var(--work-inset); border-color:var(--line); }
.sidebar .nav-item { min-height:44px; padding:11px; }
.sidebar .nav-item.active { color:var(--work-mint); background:var(--pale); }
.work-hero { display:flex; justify-content:space-between; gap:24px; align-items:end; padding:16px 0 24px; }
.work-eyebrow { font-size:10px; font-weight:650; letter-spacing:2px; color:var(--work-mint); }
.work-hero h1 { font:650 clamp(32px,3.5vw,46px)/1.12 Manrope,sans-serif; letter-spacing:-1.8px; margin:13px 0; text-wrap:balance; }
.work-hero p { color:var(--muted); font-size:13px; margin:0; }
.work-hero-actions { display:flex; align-items:end; flex-direction:column; gap:20px; padding-bottom:3px; }
.work-hero-actions .button { min-height:44px; border-radius:9px; padding:12px 19px; }
.work-hero-actions .button span { font-size:20px; line-height:1; font-weight:400; }
.work-live { font-size:10px; color:var(--muted); display:flex; align-items:center; gap:8px; white-space:nowrap; }
.work-live i { width:6px; height:6px; background:var(--work-mint); border-radius:50%; }
.work-summary { display:flex; gap:28px; align-items:center; padding:19px 0; border-block:1px solid var(--line); font-size:11px; color:var(--muted); }
.work-summary strong { font:650 21px Manrope,sans-serif; font-variant-numeric:tabular-nums; color:var(--ink); margin-right:5px; }
.work-summary .summary-waiting strong { color:var(--work-amber); }
.work-summary-hint { margin-left:auto; font-size:10px; }
.work-controls { display:flex; align-items:center; justify-content:space-between; gap:18px; margin:26px 0 30px; }
.work-modes { display:flex; background:var(--work-inset); padding:4px; border-radius:10px; box-shadow:0 0 0 1px var(--line); }
.work-modes button { min-height:40px; padding:8px 17px; border:0; background:none; color:var(--muted); font-weight:600; border-radius:7px; font-size:12px; transition:background-color .15s,color .15s,box-shadow .15s; }
.work-modes button[aria-pressed="true"] { background:var(--work-card); color:var(--ink); box-shadow:0 1px 4px rgb(0 0 0 / 12%); }
.work-modes button span { font-size:10px; display:inline-block; min-width:19px; padding:1px 5px; border-radius:4px; background:var(--surface-raised,var(--pale)); color:var(--work-amber); margin-left:4px; }
.work-person-filter { display:flex; align-items:center; gap:12px; font-size:11px; color:var(--muted); }
.work-person-filter select { min-height:42px; min-width:150px; border:1px solid var(--line); padding:8px 32px 8px 12px; border-radius:8px; background:var(--work-card); color:var(--ink); max-width:220px; }
.work-section-heading { display:flex; justify-content:space-between; align-items:center; gap:18px; margin-bottom:21px; }
.work-section-heading h2 { font:650 19px Manrope,sans-serif; letter-spacing:-.5px; margin:0 0 7px; }
.work-section-heading p { color:var(--muted); font-size:11px; margin:0; max-width:520px; }
.work-section-note { color:var(--muted); font-size:10px; white-space:nowrap; }
.work-queues { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; align-items:start; }
.work-person { min-width:0; background:var(--work-card); border-radius:15px; box-shadow:var(--work-ring); overflow:hidden; }
.work-person-header { display:flex; align-items:center; gap:12px; padding:21px 20px 18px; }
.work-avatar { display:grid; place-items:center; width:39px; height:39px; border-radius:12px; background:var(--pale); color:var(--work-mint); flex-shrink:0; font:650 13px Manrope,sans-serif; }
.work-person[data-tone="1"] .work-avatar { background:color-mix(in srgb,var(--work-blue) 12%,var(--work-card)); color:var(--work-blue); }
.work-person[data-tone="2"] .work-avatar { background:color-mix(in srgb,var(--work-amber) 12%,var(--work-card)); color:var(--work-amber); }
.work-person-header h3 { font:650 18px Manrope,sans-serif; letter-spacing:-.4px; margin:0 0 4px; }
.work-person-header p { font-size:10px; margin:0; color:var(--muted); }
.work-add { margin-left:auto; min-width:40px; min-height:40px; background:transparent; color:var(--muted); border:1px solid var(--line); border-radius:9px; font-size:21px; }
.work-add:hover { color:var(--work-mint); background:var(--work-next); }
.work-waiting-summary { display:flex; align-items:center; gap:8px; min-height:40px; font-size:10px; color:var(--work-amber); padding:8px 20px; width:100%; border:0; border-top:1px solid var(--line); background:var(--work-inset); text-align:left; }
.work-waiting-summary>span:last-child { margin-left:auto; }
.work-amber-dot { width:5px; height:5px; border-radius:50%; background:var(--work-amber); }
.work-items { list-style:none; padding:0 12px 12px; margin:0; }
.work-item { padding:17px 9px 15px; border-top:1px solid var(--line); }
.work-item.is-next { margin:0 -1px; padding:17px 10px 15px; background:var(--work-next); border:1px solid color-mix(in srgb,var(--work-mint) 32%,var(--line)); border-radius:9px; }
.work-item.is-next+.work-item { border-top-color:transparent; }
.work-item-top { display:flex; align-items:center; gap:10px; margin-bottom:8px; }
.work-position { font:500 10px/1.5 monospace; color:var(--muted); font-variant-numeric:tabular-nums; }
.is-next .work-position { color:var(--work-mint); }
.work-project { font-size:9px; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.work-next-label { color:var(--work-mint); font-size:8px; font-weight:700; margin-left:auto; text-transform:uppercase; letter-spacing:1px; white-space:nowrap; }
.work-title { display:block; min-height:40px; text-align:left; border:0; padding:0; background:none; font-size:13px; font-weight:550; color:var(--ink); line-height:1.6; overflow-wrap:anywhere; }
.work-title:hover,.dependency-task-title:hover { color:var(--work-mint); text-decoration:underline; text-underline-offset:4px; }
.work-next-action { font-size:11px; line-height:1.7; color:var(--muted); margin:5px 0 10px; overflow-wrap:anywhere; }
.work-item-footer { display:flex; justify-content:space-between; align-items:center; gap:8px; margin-top:11px; }
.work-status { max-width:calc(100% - 70px); min-width:0; min-height:40px; border:1px solid var(--line); background:var(--work-inset); border-radius:6px; padding:6px 24px 6px 8px; color:var(--muted); font-size:10px; }
.work-order-button { display:flex; align-items:center; gap:6px; min-height:40px; padding:7px; border:0; background:none; color:var(--muted); font-size:10px; }
.work-order-button span:first-child { font-size:16px; }
.work-order-button:hover { color:var(--work-mint); }
.work-waiting-link { display:flex; align-items:center; gap:5px; padding:8px 0; min-height:40px; text-align:left; border:0; background:none; color:var(--work-amber); font-size:10px; line-height:1.5; overflow-wrap:anywhere; }
.work-waiting-link span:last-child { margin-left:auto; }
.work-date { font-size:9px; margin:7px 0 0; color:var(--muted); }
.work-date.is-overdue { color:var(--work-amber); }
.work-more { min-height:44px; padding:12px 20px; display:flex; justify-content:space-between; border:0; border-top:1px solid var(--line); background:transparent; color:var(--work-mint); font-size:11px; width:100%; }
.work-no-tasks { padding:24px 8px; font-size:12px; color:var(--muted); }
.work-footnote { color:var(--muted); font-size:10px; margin:22px 0 0; line-height:1.8; }
.connection-legend { display:flex; flex-wrap:wrap; gap:5px 8px; align-items:center; font-size:9px; color:var(--muted); }
.connection-legend i { display:inline-block; width:5px; height:5px; border-radius:50%; margin-left:7px; }
.legend-person { background:var(--work-mint); }.legend-task { background:var(--work-blue); }.legend-other { background:var(--work-amber); }
.dependency-headings { display:grid; grid-template-columns:1.15fr 1fr; gap:130px; font-size:9px; font-weight:600; color:var(--muted); letter-spacing:1.4px; margin:30px 0 15px; }
.dependency-map { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); gap:130px; position:relative; isolation:isolate; }
.dependency-sources { display:grid; gap:16px; align-content:start; }
.dependency-targets { display:flex; flex-direction:column; justify-content:space-around; gap:24px; }
.dependency-lines { position:absolute; inset:0; width:100%; height:100%; z-index:-1; overflow:visible; pointer-events:none; }
.dependency-path { fill:none; stroke:var(--work-amber); stroke-width:1.5; opacity:.42; transition:opacity .16s,stroke-width .16s; }
.dependency-source,.dependency-target { min-width:0; border-radius:12px; background:var(--work-card); box-shadow:var(--work-ring); transition:opacity .16s,box-shadow .16s; position:relative; }
.dependency-source { padding:19px; }
.dependency-source::after { content:""; position:absolute; right:-4px; top:calc(50% - 3px); width:6px; height:6px; border-radius:50%; background:var(--work-amber); }
.dependency-owner { display:flex; align-items:center; gap:9px; color:var(--muted); font-size:10px; margin-bottom:11px; }
.work-small-avatar { display:grid; place-items:center; width:25px; height:25px; border-radius:8px; background:var(--pale); color:var(--work-mint); font-size:9px; flex-shrink:0; }
.dependency-wait-label { margin-left:auto; color:var(--work-amber); font-size:9px; }
.dependency-task-title { display:block; min-height:40px; border:0; padding:0; color:var(--ink); background:none; font-size:13px; font-weight:550; line-height:1.65; text-align:left; overflow-wrap:anywhere; }
.dependency-source-footer { display:flex; gap:12px; justify-content:space-between; font-size:10px; color:var(--muted); border-top:1px solid var(--line); padding-top:12px; margin-top:13px; }
.dependency-source-footer span:first-child { overflow-wrap:anywhere; }
.dependency-mobile-target { color:var(--work-amber); font-size:10px; line-height:1.7; margin:10px 0; overflow-wrap:anywhere; }
.dependency-mobile-target strong { font-weight:500; }
.dependency-target { --target-color:var(--work-amber); box-shadow:0 0 0 1px color-mix(in srgb,var(--target-color) 40%,var(--line)); }
.dependency-target.type-person { --target-color:var(--work-mint); }.dependency-target.type-task { --target-color:var(--work-blue); }
.dependency-target::before { content:""; position:absolute; top:calc(50% - 3px); left:-4px; width:6px; height:6px; border-radius:50%; background:var(--target-color); }
.dependency-target-select { display:flex; flex-direction:column; gap:9px; padding:20px; width:100%; min-height:44px; text-align:left; border:0; background:none; color:inherit; border-radius:12px; }
.dependency-type { color:var(--target-color); font-size:8px; letter-spacing:1.4px; font-weight:650; }
.dependency-target-select strong { font:600 16px/1.5 Manrope,sans-serif; letter-spacing:-.3px; overflow-wrap:anywhere; }
.dependency-detail { font-size:10px; color:var(--muted); line-height:1.7; }
.dependency-count { display:flex; justify-content:space-between; width:100%; font-size:10px; color:var(--target-color); margin-top:7px; }
.dependency-open { min-height:40px; padding:10px 20px; background:none; border:0; border-top:1px solid var(--line); color:var(--muted); text-align:left; width:100%; font-size:10px; }
.dependency-open:hover { color:var(--target-color); }
.has-highlight .dependency-path:not(.is-highlighted) { opacity:.15; }
.has-highlight .dependency-target.is-highlighted { box-shadow:0 0 0 2px var(--target-color); }
.has-highlight .dependency-path.is-highlighted { stroke-width:2.5; opacity:1; }
.has-highlight .dependency-source.is-highlighted { box-shadow:0 0 0 1px var(--work-amber); }
.work-empty-map { padding:65px 25px; text-align:center; background:var(--work-card); box-shadow:var(--work-ring); border-radius:15px; }
.work-empty-symbol { font-size:30px; color:var(--work-mint); }.work-empty-map h2 { font:600 23px Manrope,sans-serif; letter-spacing:-.6px; }
.work-empty-map p { color:var(--muted); font-size:12px; line-height:1.8; max-width:440px; margin:0 auto 24px; }
.work-modes button:active,.work-add:active { scale:.96; }
@media(min-width:1550px) { .work-queues { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:1100px) { body .app-shell main { padding:24px; }.work-summary-hint { display:none; }.work-section-note { display:none; }.work-hero h1 { font-size:38px; }.work-person-filter { gap:8px; }.work-person-filter>span { display:none; }.work-controls { gap:12px; }.work-person-filter select { min-width:130px; max-width:155px; }.work-section-heading { align-items:start; flex-direction:column; gap:12px; }.dependency-map,.dependency-headings { gap:70px; } }
@media(max-width:1000px) { .dependency-map { grid-template-columns:minmax(0,1fr); gap:28px; }.dependency-targets { display:grid; gap:15px; grid-template-columns:repeat(2,minmax(0,1fr)); }.dependency-lines,.dependency-headings,.dependency-source::after,.dependency-target::before { display:none; } }
@media(max-width:850px) { body .app-shell .sidebar { width:175px; padding:24px 12px; }body .app-shell .main-shell { margin-left:175px; width:calc(100% - 175px); }.work-queues { grid-template-columns:minmax(0,1fr); }.work-controls { flex-wrap:wrap; }.work-hero { align-items:start; }.work-hero h1 { font-size:35px; }.work-hero-actions { padding-top:30px; }.work-live { display:none; }.work-summary { gap:20px; } }
@media(max-width:600px) { body .app-shell .sidebar { position:relative; width:100%; padding:17px 18px 12px; }body .app-shell .main-shell { margin:0; width:100%; }body .app-shell main { padding:16px 18px 24px; }body .app-shell .topbar { padding:10px 16px; height:auto; min-height:56px; }.sidebar nav { flex-wrap:wrap; gap:5px; }.sidebar .nav-item { flex:1 1 auto; font-size:10px; padding:9px 7px; }.sidebar .more-tools { margin-top:0; }.sidebar .brand-sub { font-size:7px; }.work-hero { flex-direction:column; gap:16px; padding:18px 0 24px; }.work-hero h1 { font-size:38px; letter-spacing:-1.7px; margin:14px 0; }.work-hero-actions { flex-direction:row; align-items:center; padding:0; gap:15px; }.work-live { display:flex; font-size:9px; order:2; }.work-hero-actions .button { min-height:42px; padding:10px 15px; }.work-hero p { font-size:12px; }.work-summary { gap:20px; font-size:10px; }.work-summary strong { display:block; font-size:24px; margin:0 0 3px; }.work-summary>span { flex:1; }.work-controls { margin:24px 0; gap:16px; }.work-modes { flex:1; }.work-modes button { flex:1; padding-inline:13px; }.work-person-filter { width:100%; justify-content:space-between; }.work-person-filter>span { display:inline; font-size:11px; }.work-person-filter select { max-width:none; min-width:165px; }.work-section-heading h2 { font-size:18px; }.work-section-heading p { font-size:10px; line-height:1.8; }.work-queues { gap:20px; }.work-person-header { padding:20px; }.work-title { font-size:14px; }.work-project { font-size:10px; }.work-status,.work-order-button { font-size:11px; }.work-items { padding-inline:12px; }.dependency-targets { grid-template-columns:minmax(0,1fr); }.work-footnote { font-size:10px; }.dependency-task-title { font-size:14px; }.dependency-mobile-target { font-size:11px; } }
@media(prefers-reduced-motion:reduce) { :is(.work-modes button,.dependency-source,.dependency-target,.dependency-path) { transition:none; }.work-modes button:active,.work-add:active { scale:1; } }

/* Keep useful work close to the top on phones. */
@media(max-width:600px){
  .sidebar>.brand{display:none}
  body .app-shell .sidebar{padding-block:10px}
  .sidebar nav{margin-top:0}
  .work-hero{padding:10px 0 18px;gap:12px}
  .work-hero .work-eyebrow,.work-hero>div>p,.work-live{display:none}
  .work-hero h1{font-size:31px;letter-spacing:-1.3px;margin:8px 0 3px}
  .work-summary{padding-block:13px;gap:16px}
  .work-summary strong{font-size:22px}
  .work-controls{flex-wrap:nowrap;gap:12px;margin:20px 0}
  .work-modes{flex:1;min-width:0}
  .work-modes button{padding-inline:9px;font-size:11px;white-space:nowrap}
  .work-person-filter{width:auto;flex-shrink:0}
  .work-person-filter>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
  .work-person-filter select{width:135px;min-width:0;max-width:135px;font-size:11px}
  .work-section-heading p{display:none}
  .work-section-heading{margin-bottom:18px}
}

.work-person-header>div{min-width:0}.work-person-header h3{overflow-wrap:anywhere}
.dependency-owner>span:nth-child(2){min-width:0;overflow-wrap:anywhere}
@media(max-width:360px){.work-controls{flex-wrap:wrap}.work-modes{flex-basis:100%}.work-person-filter{width:100%}.work-person-filter select{width:100%;max-width:none}}

/* People-first overview: stage markers show recorded state, not a score. */
.business-tabs{display:flex;gap:7px;flex-wrap:wrap;padding:0 0 18px;border-bottom:1px solid var(--line)}
.business-tabs button{min-height:40px;padding:8px 16px;border:1px solid var(--line);border-radius:22px;background:transparent;color:var(--muted);font-size:12px}
.business-tabs button[aria-pressed="true"]{background:var(--work-mint);border-color:var(--work-mint);color:var(--paper);font-weight:650}
.work-controls{margin:20px 0 14px}
.scope-controls{display:flex;gap:18px;flex-wrap:wrap;align-items:center;margin-bottom:22px}
.scope-controls .work-person-filter{gap:8px}
.scope-controls select{font-size:11px;min-width:145px;max-width:200px}
.scope-controls .motion-toggle{margin-left:auto;min-height:40px;font-size:11px}
.work-summary{margin-bottom:24px;gap:24px}
.yesterday-glance{margin-left:auto;display:flex;align-items:center;gap:14px;font-size:10px}
.yesterday-glance b{font-size:8px;letter-spacing:1px;font-weight:600;max-width:90px;line-height:1.7}
.yesterday-kept{color:var(--work-mint)}
.progress-overview{--runner-mint:#a7dcbb;--runner-amber:#f0be7a;--runner-blue:#a8c9ed;--runner-purple:#c8b9ec}
html[data-theme="light"] .progress-overview{--runner-mint:#3d7b58;--runner-amber:#9c6227;--runner-blue:#3c719e;--runner-purple:#7d5baf}
.progress-key{display:flex;align-items:center;gap:7px;font-size:10px;color:var(--muted);white-space:nowrap}
.progress-key i{height:6px;width:6px;border-radius:50%;margin-left:7px}
.key-move{background:var(--runner-blue)}.key-wait{background:var(--work-amber)}.key-kept{background:var(--work-mint)}
.progress-stage-head{display:grid;grid-template-columns:140px minmax(0,1fr) 230px;gap:25px;padding:10px 20px 16px;color:var(--muted);font-size:8px;letter-spacing:1.1px}
.progress-stage-head>div{display:flex;justify-content:space-between;padding:0 12px;letter-spacing:0;text-transform:uppercase}
.people-map{position:relative;isolation:isolate;border:1px solid var(--line);border-radius:16px;background:var(--work-card);overflow:hidden}
.people-links{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:2;overflow:visible}
.people-links path:not(defs path){fill:none;stroke:var(--work-amber);stroke-width:1.7;stroke-dasharray:4 5;opacity:.55;transition:opacity .2s,stroke-width .2s}
.people-links path.selected{stroke-width:2.5;opacity:1;stroke-dasharray:none}
.person-lane{--person-color:var(--runner-mint);display:grid;grid-template-columns:140px minmax(0,1fr) 230px;gap:25px;align-items:center;min-height:150px;padding:16px 20px;border-bottom:1px solid var(--line);position:relative}
.person-lane:last-child{border-bottom:0}
.person-lane[data-tone="1"]{--person-color:var(--runner-blue)}.person-lane[data-tone="2"]{--person-color:var(--runner-purple)}.person-lane[data-tone="3"]{--person-color:var(--runner-amber)}
.person-lane.lane-waiting{background:linear-gradient(90deg,color-mix(in srgb,var(--work-amber) 5%,transparent),transparent 70%)}
.lane-identity{display:flex;flex-direction:column;gap:6px;align-items:flex-start;min-width:0}
.lane-name{font:650 15px/1.4 Manrope,sans-serif;letter-spacing:-.3px;color:var(--ink);background:none;border:0;text-align:left;padding:5px 0;min-height:40px;overflow-wrap:anywhere}
.lane-name:hover{color:var(--work-mint)}
.lane-tally{font-size:10px;color:var(--muted);font-variant-numeric:tabular-nums}
.lane-extra-wait{background:none;border:0;padding:8px 0;color:var(--work-amber);font-size:10px;min-height:36px;text-align:left}
.person-track{position:relative;min-width:0;height:116px;margin:0 12px}
.track-road{position:absolute;left:0;right:0;bottom:24px;border-top:1px dashed var(--line);display:flex;justify-content:space-between}
.track-road:after{content:"";position:absolute;top:10px;left:-12px;right:-12px;height:1px;background:var(--line)}
.track-stop{width:7px;height:7px;border:1px solid var(--line);background:var(--work-card);border-radius:50%;margin-top:-4px}
.track-stop.reached{background:color-mix(in srgb,var(--person-color) 50%,var(--work-card));border-color:var(--person-color)}
.person-token{position:absolute;bottom:16px;left:calc(var(--stage)*25%);transform:translateX(-50%);height:108px;width:74px;display:flex;align-items:center;flex-direction:column;justify-content:end;border:0;background:none;color:var(--person-color);padding:0;z-index:3;border-radius:10px}
.person-token:hover{background:color-mix(in srgb,var(--person-color) 8%,transparent)}
.person-token:focus-visible{outline:2px solid var(--work-mint);outline-offset:4px}
.person-state{display:inline-block;white-space:nowrap;background:var(--work-card);border:1px solid var(--line);font-size:9px;font-weight:650;padding:4px 8px;border-radius:14px;color:var(--muted);margin-top:0}
.lane-waiting .person-state{color:var(--work-amber);border-color:color-mix(in srgb,var(--work-amber) 50%,var(--line))}
.person-figure{height:83px;width:70px;overflow:visible;flex-shrink:0}
.person-figure path{stroke:currentColor;stroke-width:5;stroke-linecap:round;stroke-linejoin:round;fill:none}
.person-figure .person-head{fill:#e4ba97}
.person-figure .person-hair{fill:#343d43;stroke-width:0}
.person-figure .person-eye{fill:#493627}
.person-figure .person-smile{stroke:#76513b;stroke-width:1}
.person-figure .person-shirt{fill:currentColor;stroke-width:1}
.person-figure .person-shadow{fill:var(--line);opacity:.55}
.person-figure .shoe{stroke:var(--ink);stroke-width:5}
.person-figure .wait-ticks path,.person-figure .speed-ticks path{stroke-width:1.5;opacity:.7}
.person-figure .kept-spark{stroke:var(--work-mint);stroke-width:2}
.pose-running .person-body{animation:runner-bob .65s ease-in-out infinite}
.pose-running .leg-front{transform-origin:35px 56px;animation:runner-leg .65s ease-in-out infinite alternate}
.pose-running .leg-back{transform-origin:35px 56px;animation:runner-leg .65s ease-in-out infinite alternate-reverse}
.pose-running .arm-front{transform-origin:41px 37px;animation:runner-arm .65s ease-in-out infinite alternate}
.pose-running .arm-back{transform-origin:29px 37px;animation:runner-arm .65s ease-in-out infinite alternate-reverse}
.pose-waiting .tapping-foot{transform-origin:43px 77px;animation:toe-tap 1.8s ease-in-out infinite}
.lane-waiting .person-figure{color:var(--runner-amber)}
@keyframes runner-bob{50%{transform:translateY(-3px)}}
@keyframes runner-leg{to{transform:rotate(28deg)}}
@keyframes runner-arm{to{transform:rotate(-18deg)}}
@keyframes toe-tap{0%,18%,36%,100%{transform:rotate(0)}9%,27%{transform:rotate(-20deg)}}
.motion-paused *{animation-play-state:paused!important}
.lane-promise{display:flex;flex-direction:column;min-width:0;gap:5px;position:relative;z-index:3}
.lane-task{display:block;min-height:40px;border:0;background:none;color:var(--ink);font-size:12px;line-height:1.6;font-weight:550;text-align:left;padding:0;overflow-wrap:anywhere}
.lane-task:hover{color:var(--work-mint)}.lane-task>span{color:var(--muted);white-space:nowrap}
.lane-date{color:var(--muted);font-size:9px}
.lane-handoff{border:0;background:none;padding:7px 0;min-height:40px;font-size:10px;color:var(--work-amber);text-align:left;line-height:1.6;overflow-wrap:anywhere}
.lane-handoff strong{font-weight:600}.lane-handoff>span{display:block;color:var(--muted);font-size:9px;margin-top:3px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.lane-stage-mobile{display:none}
.progress-caption{display:flex;align-items:center;gap:12px;padding:18px 4px;font-size:10px;line-height:1.8;color:var(--muted)}
.progress-caption>span:nth-child(2){max-width:530px}.progress-caption .caption-icon{font-size:23px;color:var(--work-amber)}.progress-caption button{margin-left:auto;white-space:nowrap;min-height:40px;font-size:10px}
.promise-recipients{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:12px;border:1px solid var(--line);border-radius:8px}
.promise-recipients legend{font-size:12px;color:var(--muted);padding-inline:4px}.promise-recipients label{padding:7px 9px;display:flex;gap:7px;align-items:center;border:1px solid var(--line);border-radius:7px;font-size:11px;min-height:40px}
@media(max-width:1250px){.progress-stage-head,.person-lane{grid-template-columns:110px minmax(0,1fr) 190px;gap:18px}.person-lane{padding-inline:16px}.yesterday-glance{gap:9px}.yesterday-glance b{display:none}.scope-controls{gap:12px}.scope-controls .work-person-filter>span{display:none}}
@media(max-width:1000px){.person-lane{grid-template-columns:110px minmax(0,1fr);min-height:180px;gap:0 30px}.lane-identity{grid-row:1/3}.lane-promise{grid-column:2;display:flex;gap:5px;padding-bottom:10px}.person-track{height:110px}.lane-task{min-height:32px}.progress-stage-head{grid-template-columns:110px minmax(0,1fr);gap:30px}.progress-stage-head>span:last-child{display:none}.people-links{display:none}.yesterday-glance{flex-wrap:wrap;max-width:220px;gap:5px 12px}.progress-key{font-size:9px}.scope-controls .work-person-filter{width:auto}.scope-controls select{max-width:190px;min-width:125px}}
@media(max-width:600px){.work-hero{flex-direction:row;align-items:center;gap:12px}.work-hero h1{font-size:27px;max-width:200px}.work-hero-actions .button{font-size:10px;white-space:nowrap;padding:9px 11px}.work-hero-actions .button span{font-size:15px}.business-tabs{gap:6px;padding-bottom:14px}.business-tabs button{padding:7px 11px;font-size:10px;min-height:36px}.work-controls{flex-wrap:wrap;gap:10px;margin-block:15px}.work-modes{flex-basis:100%}.work-person-filter{width:auto;max-width:100%}.work-person-filter select{width:100%;max-width:none;min-width:0}.work-controls>.work-person-filter{width:100%}.scope-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;margin-bottom:16px}.scope-controls .work-person-filter{width:100%;min-width:0}.scope-controls select{width:100%;max-width:none;min-width:0;font-size:10px;padding-left:9px}.scope-controls .motion-toggle{margin:0;justify-self:end}.work-summary{flex-wrap:wrap;gap:12px;margin-bottom:24px}.work-summary>span{flex:1}.work-summary .yesterday-glance{flex-basis:100%;width:100%;max-width:none;flex-wrap:nowrap;justify-content:space-between;margin:4px 0 0;padding-top:12px;border-top:1px solid var(--line);font-size:9px;gap:5px}.yesterday-glance b{display:block;font-size:7px;max-width:65px}.progress-overview .work-section-heading{flex-direction:row;align-items:center}.progress-key{gap:5px;font-size:8px}.progress-key i{margin-left:2px}.progress-stage-head{display:none}.person-lane{grid-template-columns:minmax(0,1fr);gap:0;padding:15px 18px 16px;min-height:220px}.lane-identity{grid-row:auto;display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;gap:6px 12px}.lane-name{font-size:14px;min-height:32px}.lane-tally{margin-left:auto;font-size:9px}.lane-extra-wait{min-height:30px}.person-track{margin:16px 30px 0;height:118px}.lane-promise{grid-column:1;padding:0;gap:3px}.lane-task{font-size:12px;min-height:36px}.lane-date{font-size:9px}.lane-handoff{font-size:11px;min-height:36px}.lane-handoff>span{font-size:10px}.progress-caption{align-items:start;flex-wrap:wrap;gap:9px;font-size:9px}.progress-caption>span:nth-child(2){flex:1}.progress-caption button{flex-basis:100%;text-align:right}.person-state{font-size:9px}.person-token{bottom:14px}.person-track:after{content:"Confirm                          Kept";white-space:pre;position:absolute;left:0;right:0;bottom:-3px;color:var(--muted);font-size:8px;display:flex;justify-content:space-between}.person-track:after{content:"Confirm → Ready → Moving → Review → Kept";text-align:center;font-size:7px;justify-content:center}.lane-empty{font-size:11px;color:var(--muted)}}
@media(prefers-reduced-motion:reduce){.person-figure *{animation:none!important}.people-links path{transition:none}}

/* Filters expand on demand so the people stay close to the top. */
body .app-shell .topbar{height:60px}
body .app-shell main{padding-top:12px}
.work-hero{padding:8px 0 18px}
.work-hero h1{font-size:34px;margin:9px 0 2px;letter-spacing:-1.3px}
.work-hero .work-eyebrow{font-size:8px;letter-spacing:1.6px}
.business-tabs{padding-bottom:14px}
.work-controls{display:block;margin:14px 0 0}
.work-modes{display:inline-flex}
.board-filter-panel{margin:10px 0 14px;border:0}
.board-filter-panel>summary{display:flex;align-items:center;justify-content:space-between;gap:15px;min-height:40px;padding:0 2px;color:var(--muted);font-size:11px;cursor:pointer;list-style:none}
.board-filter-panel>summary::-webkit-details-marker{display:none}
.board-filter-panel>summary>span:last-child{color:var(--work-mint);font-size:10px;white-space:nowrap}
.board-filter-panel[open]>summary{margin-bottom:10px}
.board-filter-panel .scope-controls{margin-bottom:12px;gap:10px}
.board-filter-panel .work-person-filter>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.work-summary{padding:12px 0;margin-bottom:18px}
.work-summary strong{font-size:18px}
.progress-overview .work-section-heading{margin-bottom:14px}
.progress-stage-head{padding-bottom:12px}
.lane-task{font-size:13px}
@media(max-width:600px){
  body .app-shell .topbar{height:auto}
  .sidebar nav{display:flex}
  .sidebar nav>.nav-item{flex:1 1 0;padding:8px 4px;font-size:9px;white-space:normal;text-align:center;justify-content:center}
  .work-hero{padding:5px 0 12px}
  .work-hero h1{font-size:25px;max-width:220px;margin:5px 0}
  .work-hero-actions .button{min-height:40px;font-size:9px;padding:8px}
  .business-tabs{flex-wrap:nowrap;overflow-x:auto;padding-bottom:10px;gap:6px;scrollbar-width:thin}
  .business-tabs button{flex-shrink:0;min-height:36px;padding:7px 11px}
  .work-controls{margin:12px 0 0}
  .work-modes{display:flex}
  .board-filter-panel{margin:8px 0 12px}
  .board-filter-panel>summary{font-size:10px}
  .board-filter-panel .scope-controls{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .work-summary{gap:12px;padding-block:10px;margin-bottom:20px;font-size:9px}
  .work-summary strong{display:inline;font-size:18px;margin-right:3px}
  .work-summary .yesterday-glance{font-size:8px;padding-top:10px}
  .progress-overview .work-section-heading h2{font-size:16px}
  .progress-key{font-size:7px;gap:4px}
}
