/* Animated stage pipelines, the shared sheet card and the revenue cards. Uses the page's own colors. */
.cd { --gold: #F0C25E; --win: #8FB98F; }

/* Pipeline section */
.cd-pipe-key { display: flex; gap: 8px 18px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin: 0; padding: 0; list-style: none; }
.cd-pipe-key li { display: inline-flex; align-items: center; gap: 7px; }
.cd-pipe-key i { width: 10px; height: 10px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 22%, transparent); }
.cd-pipe-key i.pile { background: transparent; box-shadow: none; position: relative; width: 16px; }
.cd-pipe-key i.pile::before, .cd-pipe-key i.pile::after { content: ""; position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); top: 2px; }
.cd-pipe-key i.pile::before { left: 0; } .cd-pipe-key i.pile::after { left: 8px; opacity: .55; }
.cd-pipe-key i.gate { background: var(--gold); border-radius: 2px; transform: rotate(45deg) scale(.85); box-shadow: none; }
.cd-pipe-key i.win { background: var(--win); box-shadow: 0 0 0 3px color-mix(in srgb, var(--win) 25%, transparent); }
.cd-pipe-key i.exit { background: transparent; border: 1.5px dashed var(--muted); box-shadow: none; }

.cd-pipe-box { position: relative; overflow: hidden; border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--shadow);
  background:
    radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--acc) 9%, transparent), transparent 60%),
    radial-gradient(90% 80% at 100% 100%, color-mix(in srgb, var(--win) 7%, transparent), transparent 60%),
    var(--card); }
.cd-pipe-box::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(color-mix(in srgb, var(--fg) 9%, transparent) 1px, transparent 1.2px); background-size: 22px 22px; }
.cd-pipe-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 14px 18px 0; }
.cd-pipe-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--t-acc, var(--acc)); background: color-mix(in srgb, var(--acc) 10%, transparent); border: 1px solid color-mix(in srgb, var(--acc) 30%, transparent); padding: 5px 10px; border-radius: 999px; }
.cd-pipe-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--acc); }
@media (prefers-reduced-motion: no-preference) { .cd-pipe-badge::before { animation: cd-pp-blink 1.6s ease-in-out infinite; } }
@keyframes cd-pp-blink { 50% { opacity: .25; } }
.cd-pipe-asof { font-size: 12.5px; color: var(--muted); font-family: var(--mono); }
.cd-pipe { position: relative; min-height: 330px; }
.cd-pipe svg { display: block; width: 100%; overflow: visible; }
.cd-pipe text { font-family: var(--sans); fill: var(--fg); }
.cd-pipe .pl-lbl { font-size: 13px; font-weight: 700; }
.cd-pipe .pl-sub { font-size: 11.5px; fill: var(--muted); }
.cd-pipe .pl-num { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.cd-pipe .pl-num.big { font-size: 18px; }
.cd-pipe .pl-num.sm { font-size: 13px; }
.cd-pipe .pl-track { fill: none; stroke: var(--acc); stroke-opacity: .16; stroke-width: 8; stroke-linecap: round; }
.cd-pipe .pl-flow { fill: none; stroke: var(--acc); stroke-opacity: .55; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 2 13; }
.cd-pipe .pl-lane { fill: none; stroke: var(--acc); stroke-opacity: .2; stroke-width: 5; stroke-linecap: round; }
.cd-pipe .pl-exitp { fill: none; stroke: var(--muted); stroke-opacity: .45; stroke-width: 1.6; stroke-dasharray: 4 5; }
.cd-pipe .pl-back { fill: none; stroke: var(--acc); stroke-opacity: .5; stroke-width: 1.8; stroke-dasharray: 6 7; }
@media (prefers-reduced-motion: no-preference) {
  .cd-pipe .pl-flow { animation: cd-pp-dash 1.1s linear infinite; }
  .cd-pipe .pl-back { animation: cd-pp-dash 1.4s linear infinite reverse; }
  .cd-pipe .pl-orbit { animation: cd-pp-spin var(--spin, 14s) linear infinite; }
  .cd-pipe .pl-halo { animation: cd-pp-breathe 3.2s ease-in-out infinite; }
}
@keyframes cd-pp-dash { to { stroke-dashoffset: -15; } }
@keyframes cd-pp-spin { to { transform: rotate(360deg); } }
@keyframes cd-pp-breathe { 50% { opacity: .55; } }
.cd-pipe .pl-orbit { transform-box: view-box; }
.cd-pipe .pl-node { fill: color-mix(in srgb, var(--k, var(--acc)) 12%, var(--card)); stroke: var(--k, var(--acc)); stroke-width: 2.4; transition: transform .25s; }
.cd-pipe .pl-halo { fill: var(--k, var(--acc)); opacity: .14; }
.cd-pipe g.pl-n { --k: var(--acc); --t-k: var(--t-acc, var(--acc)); cursor: default; }
.cd-pipe g.pl-n.gate { --k: var(--gold); --t-k: var(--t-gold, var(--gold)); }
.cd-pipe g.pl-n.win { --k: var(--win); --t-k: var(--t-win, var(--win)); }
.cd-pipe g.pl-n.lane .pl-node { stroke-width: 2; }
.cd-pipe g.pl-n .pl-num { fill: var(--k); }
.cd-pipe g.pl-n.gate .pl-ico, .cd-pipe g.pl-n.win .pl-ico { fill: none; stroke: var(--k); stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.cd-pipe g.pl-n.hit .pl-halo { opacity: .42; }
.cd-pipe g.pl-n:hover .pl-halo, .cd-pipe g.pl-n:focus .pl-halo { opacity: .35; }
.cd-pipe g.pl-n:focus { outline: none; }
.cd-pipe .pl-dot { fill: var(--acc); }
.cd-pipe .pl-pile circle { fill: var(--acc); }
.cd-pipe .pl-chip rect { fill: color-mix(in srgb, var(--muted) 8%, var(--card)); stroke: var(--line); }
.cd-pipe .pl-chip .pl-num { fill: var(--muted); }
.cd-pipe .pl-p .core { fill: var(--acc); }
.cd-pipe .pl-p .glow { fill: var(--acc); opacity: .22; }
.cd-pipe .pl-p.towin .core, .cd-pipe .pl-p.towin .glow { fill: var(--win); }
.cd-pipe .pl-p.toexit .core, .cd-pipe .pl-p.toexit .glow { fill: var(--muted); }
.cd-pipe .pl-spark { fill: var(--win); }
.cd-pipe .pl-spark.g { fill: var(--gold); }
.cd-pipe .pl-spark.a { fill: var(--acc); }
.cd-pipe .pl-ring { fill: none; stroke: var(--win); stroke-width: 2.5; }
.cd-pipe-side { position: relative; display: flex; flex-wrap: wrap; gap: 10px; padding: 0 18px 18px; margin: 0; list-style: none; }
.cd-pipe-side li { display: flex; align-items: baseline; gap: 8px; background: color-mix(in srgb, var(--acc) 6%, var(--card)); border: 1px solid color-mix(in srgb, var(--acc) 22%, var(--line)); border-radius: 12px; padding: 8px 12px; font-size: 13px; color: var(--muted); min-width: 0; }
.cd-pipe-side b { font-size: 18px; font-weight: 800; color: var(--fg); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cd-pipe-foot { position: relative; margin: 0; padding: 12px 18px 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.cd-pipe-foot a { color: var(--t-acc, var(--acc)); font-weight: 600; }
.cd-pipe-foot code { font-family: var(--mono); font-size: 12px; background: color-mix(in srgb, var(--fg) 6%, transparent); padding: 1px 6px; border-radius: 6px; color: var(--fg); }
.cd-pipe .cd-tip { white-space: normal; max-width: 260px; }
.cd-pipe .cd-tip small { display: block; color: var(--muted); margin-top: 4px; font-size: 11px; }

/* HubSpot scanner */
.cd-scan { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; align-items: center; padding: 10px 18px 18px; }
@media (max-width: 680px) { .cd-scan { grid-template-columns: 1fr; } }
.cd-scan-grid { position: relative; min-height: 260px; }
.cd-scan-grid svg { display: block; width: 100%; overflow: visible; }
.cd-scan-grid .sd { fill: var(--acc); opacity: .85; transition: fill .35s, opacity .35s; }
.cd-scan-grid .sd.flag { fill: var(--gold); opacity: 1; }
.cd-scan-grid .sd.ok { fill: var(--win); opacity: 1; }
.cd-scan-grid .sd-ring { fill: none; stroke: var(--gold); stroke-width: 2; opacity: 0; }
.cd-scan-grid .sd-ring.on { opacity: 1; }
.cd-scan-grid .sd-ring.ok { stroke: var(--win); }
.cd-scan-grid .frame { fill: color-mix(in srgb, var(--acc) 5%, transparent); stroke: color-mix(in srgb, var(--acc) 30%, var(--line)); stroke-dasharray: 3 5; }
.cd-scan-grid .beam { fill: var(--acc); opacity: .12; }
.cd-scan-grid .beam-edge { stroke: var(--acc); stroke-width: 2; opacity: .9; }
.cd-scan-grid text { font-family: var(--sans); fill: var(--muted); font-size: 11.5px; }
.cd-scan-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cd-scan-stat { --k: var(--acc); --t-k: var(--t-acc, var(--acc)); background: color-mix(in srgb, var(--k) 7%, var(--card)); border: 1px solid color-mix(in srgb, var(--k) 28%, var(--line)); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cd-scan-stat.flag, .cd-scan-stat.open { --k: var(--gold); --t-k: var(--t-gold, var(--gold)); }
.cd-scan-stat.fixed { --k: var(--win); --t-k: var(--t-win, var(--win)); }
.cd-scan-stat b { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; color: var(--t-k, var(--k)); font-variant-numeric: tabular-nums; }
.cd-scan-stat span { font-size: 13.5px; font-weight: 600; color: var(--fg); }
.cd-scan-stat small { font-size: 12px; color: var(--muted); }

/* Revenue and conversion cards */
.cd-money { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.cd-mcard { position: relative; overflow: hidden; border-radius: 18px; padding: 22px 22px 20px; border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; min-width: 0;
  background: radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--k) 16%, transparent), transparent 55%), var(--card); }
.cd-mcard::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--k), color-mix(in srgb, var(--k) 25%, transparent)); }
.cd-mcard.c1, .cd-flip.c1 { --k: var(--wrm); --t-k: var(--t-wrm, var(--wrm)); } .cd-mcard.c2, .cd-flip.c2 { --k: var(--win); --t-k: var(--t-win, var(--win)); } .cd-mcard.c3, .cd-flip.c3 { --k: var(--snv); --t-k: var(--t-snv, var(--snv)); }
.cd-mcard .cd-eyebrow { color: var(--t-k, var(--k)); }
.cd-mcard .v { font-size: clamp(40px, 5.4vw, 56px); font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.cd-mcard .v small { font-size: .38em; font-weight: 700; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.cd-mcard p { margin: 0; font-size: 14px; color: var(--muted); }
.cd-money-who { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cd-money-who li { font-size: 13px; padding: 6px 10px; border-radius: 999px; background: color-mix(in srgb, var(--acc) 10%, var(--card)); border: 1px solid color-mix(in srgb, var(--acc) 30%, var(--line)); }
.cd-money-who li b { font-weight: 700; }
/* Revenue cards turn over to show the merchants behind each number */
.cd-flip { position: relative; perspective: 1400px; min-width: 0; }
.cd-flip-in { position: relative; z-index: 1; display: grid; height: 100%; transform-style: preserve-3d; }
.cd-flip-in > .cd-face { grid-area: 1 / 1; -webkit-backface-visibility: hidden; backface-visibility: hidden; transition: border-color .2s; }
.cd-flip .cd-back { transform: rotateY(180deg); }
.cd-flip.on .cd-flip-in { transform: rotateY(180deg); }
.cd-flip-btn { all: unset; position: absolute; inset: 0; z-index: 2; border-radius: 18px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cd-flip-btn:focus-visible { outline: 2px solid var(--t-k, var(--k)); outline-offset: 3px; }
.cd-flip:hover .cd-face { border-color: color-mix(in srgb, var(--k) 45%, var(--line)); }
.cd-flip-hint { margin-top: auto; padding-top: 8px; align-self: flex-end; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--t-k, var(--k)); opacity: .75; transition: opacity .2s; }
.cd-flip:hover .cd-flip-hint, .cd-flip-btn:focus-visible + .cd-flip-in .cd-flip-hint { opacity: 1; }
.cd-flip-list { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cd-flip-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: baseline; padding-top: 10px; border-top: 1px solid var(--line); }
.cd-flip-list li:first-child { padding-top: 0; border-top: 0; }
.cd-flip-list b { font-size: 15px; font-weight: 700; color: var(--fg); overflow-wrap: anywhere; }
.cd-flip-list .amt { font-size: 15px; font-weight: 800; color: var(--fg); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.cd-flip-list .meta { grid-column: 1 / -1; font-size: 13px; line-height: 1.4; color: var(--muted); }
.cd-flip-list .tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; vertical-align: 1px; color: var(--t-k, var(--k)); background: color-mix(in srgb, var(--k) 14%, transparent); border: 1px solid color-mix(in srgb, var(--k) 35%, transparent); }
.cd-flip-list .none, .cd-flip-list .more { display: block; border-top: 0; padding-top: 0; font-size: 13px; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .cd-flip-in { transition: transform .75s cubic-bezier(.2, .8, .2, 1); }
}
@media (prefers-reduced-motion: reduce) {
  .cd-flip.on .cd-flip-in, .cd-flip .cd-back { transform: none; }
  .cd-flip-in > .cd-face { transition: opacity .3s ease, visibility .3s; }
  .cd-flip .cd-back, .cd-flip.on .cd-front { opacity: 0; visibility: hidden; }
  .cd-flip.on .cd-back { opacity: 1; visibility: visible; }
}
.cd-money-rule { font-size: 13px; color: var(--muted); margin: 0; max-width: 80ch; }

/* Shared sheet card */
.cd-sheet { --gs: #188038; position: relative; overflow: hidden; border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--card); }
.cd-sheet-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 18px 20px; border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, color-mix(in srgb, var(--gs) 9%, transparent), transparent 70%); }
.cd-sheet-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--gs); color: #fff; flex: none; }
.cd-sheet-ic svg { width: 24px; height: 24px; }
.cd-sheet-ttl { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 200px; }
.cd-sheet-ttl p { margin: 0; font-size: 13px; color: var(--muted); }
.cd-sheet-open { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: 14px; color: #fff; background: var(--gs); padding: 10px 16px; border-radius: 999px; box-shadow: 0 6px 16px color-mix(in srgb, var(--gs) 35%, transparent); }
.cd-sheet-open:hover { filter: brightness(1.08); }
.cd-sheet-open:focus-visible { outline: 2px solid var(--gs); outline-offset: 3px; }
.cd-sheet-open svg { width: 16px; height: 16px; }
.cd-sheet-kpis { display: flex; gap: 8px 22px; flex-wrap: wrap; padding: 14px 20px 0; font-size: 14px; color: var(--muted); }
.cd-sheet-kpis b { color: var(--fg); font-size: 22px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-right: 4px; }
.cd-sheet-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px; padding: 16px 20px 0; }
@media (max-width: 760px) { .cd-sheet-body { grid-template-columns: 1fr; } }
.cd-sheet-list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cd-sheet-row { all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); transition: border-color .2s, background .2s, transform .2s; }
.cd-sheet-row:hover { border-color: color-mix(in srgb, var(--acc) 50%, var(--line)); }
.cd-sheet-row:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.cd-sheet-row[aria-pressed="true"] { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 8%, var(--card)); }
@media (prefers-reduced-motion: no-preference) { .cd-sheet-row[aria-pressed="true"] { transform: translateX(3px); } }
.cd-sheet-row .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--acc); }
.cd-sheet-row .nm { display: flex; flex-direction: column; min-width: 0; }
.cd-sheet-row .nm code { font-family: var(--mono); font-size: 12.5px; color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cd-sheet-row .nm span { font-size: 12px; color: var(--muted); }
.cd-sheet-row .n { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cd-sheet-row .n small { font-size: 11px; font-weight: 600; color: var(--muted); margin-left: 3px; }
.cd-sheet-pv { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cd-sheet-pv h4 { margin: 0; font-size: 15px; }
.cd-sheet-pv p { margin: 0; font-size: 13.5px; color: var(--muted); }
.cd-sheet-meta { display: flex; gap: 6px 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); font-family: var(--mono); }
.cd-sheet-meta b { color: var(--fg); }
.cd-grid-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--color-bg); }
.cd-grid-tbl { border-collapse: collapse; font-size: 12px; font-family: var(--sans); min-width: 100%; }
.cd-grid-tbl th, .cd-grid-tbl td { border: 1px solid color-mix(in srgb, var(--line) 80%, transparent); padding: 5px 8px; height: 26px; white-space: nowrap; text-align: left; }
.cd-grid-tbl thead th { background: color-mix(in srgb, var(--fg) 5%, var(--card)); color: var(--muted); font-weight: 600; text-align: center; font-size: 11px; }
.cd-grid-tbl .rn { background: color-mix(in srgb, var(--fg) 5%, var(--card)); color: var(--muted); text-align: center; width: 30px; font-size: 11px; }
.cd-grid-tbl tr.hdr td { font-weight: 700; color: var(--fg); background: color-mix(in srgb, var(--acc) 8%, var(--card)); }
.cd-grid-tbl .bar { display: block; height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--fg) 10%, transparent); }
@media (prefers-reduced-motion: no-preference) {
  .cd-grid-tbl .bar { background: linear-gradient(90deg, color-mix(in srgb, var(--fg) 8%, transparent), color-mix(in srgb, var(--fg) 18%, transparent), color-mix(in srgb, var(--fg) 8%, transparent)); background-size: 200% 100%; animation: cd-pp-shimmer 1.8s linear infinite; }
}
@keyframes cd-pp-shimmer { to { background-position: -200% 0; } }
.cd-sheet-tabbar { display: flex; gap: 2px; overflow-x: auto; padding: 0 12px; margin-top: 16px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--fg) 3%, var(--card)); scrollbar-width: none; }
.cd-sheet-tabbar::-webkit-scrollbar { display: none; }
.cd-sheet-tab { all: unset; cursor: pointer; font-size: 12.5px; font-family: var(--mono); padding: 9px 12px 8px; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; }
.cd-sheet-tab[aria-selected="true"] { color: var(--gs); border-bottom-color: var(--gs); background: var(--card); font-weight: 700; }
.cd-sheet-tab:focus-visible { outline: 2px solid var(--gs); outline-offset: -2px; }
.cd-sheet-note { margin: 0; padding: 10px 20px 14px; font-size: 12.5px; color: var(--muted); }
.cd-scan-host { position: relative; min-height: 300px; }
.cd-pipe-side:empty { display: none; }

/* Team overview: agents around the HubSpot hub */
.cd-hub-box { position: relative; overflow: hidden; border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow);
  background:
    radial-gradient(60% 70% at 44% 50%, color-mix(in srgb, var(--hub) 10%, transparent), transparent 70%),
    radial-gradient(40% 50% at 92% 50%, color-mix(in srgb, var(--win) 10%, transparent), transparent 70%),
    var(--card); }
.cd-hub-box::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: radial-gradient(color-mix(in srgb, var(--fg) 9%, transparent) 1px, transparent 1.2px); background-size: 22px 22px; }
.cd-hub-box .cd-pipe-badge { --acc: var(--hub); }
.cd-hub { position: relative; min-height: 320px; }
@media (max-width: 699px) { .cd-hub { min-height: 400px; } }
.cd-hub svg { display: block; width: 100%; overflow: visible; }
.cd-hub text { font-family: var(--sans); fill: var(--fg); }
.cd-hub .hub-track { fill: none; stroke: var(--acc); stroke-opacity: .18; stroke-width: 6; stroke-linecap: round; transition: stroke-opacity .4s; }
.cd-hub .hub-flow { fill: none; stroke: var(--acc); stroke-opacity: .5; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 2 12; transition: stroke-opacity .4s; }
.cd-hub .hub-e.back .hub-track { stroke-opacity: .08; }
.cd-hub .hub-e.back .hub-flow { stroke-dasharray: 6 7; stroke-opacity: .45; }
.cd-hub .hub-e.win { --acc: var(--win); }
@media (prefers-reduced-motion: no-preference) {
  .cd-hub .hub-flow { animation: cd-pp-dash 1s linear infinite; }
  .cd-hub .hub-core .ring { animation: cd-pp-spin 22s linear infinite; }
  .cd-hub .hub-n .halo { animation: cd-pp-breathe 3.4s ease-in-out infinite; }
}
.cd-hub svg[data-step] .hub-e:not(.lit) .hub-track { stroke-opacity: .07; }
.cd-hub svg[data-step] .hub-e:not(.lit) .hub-flow { stroke-opacity: .15; }
.cd-hub svg[data-step] .hub-e.lit .hub-track { stroke-opacity: .36; stroke-width: 8; }
.cd-hub svg[data-step] .hub-e.lit .hub-flow { stroke-opacity: .95; stroke-width: 2.6; }
.cd-hub svg[data-step] .hub-lbl:not(.lit) { opacity: .45; }
.cd-hub .hub-lbl { transition: opacity .4s; }
.cd-hub .hub-lbl rect { fill: var(--card); stroke: color-mix(in srgb, var(--acc) 45%, var(--line)); }
.cd-hub .hub-lbl text { font-size: 11.5px; fill: var(--muted); }
.cd-hub .hub-lbl .n { font-weight: 800; fill: var(--acc); }
.cd-hub .hub-n { cursor: pointer; transition: opacity .4s; }
.cd-hub .hub-n:focus { outline: none; }
.cd-hub .hub-n:focus-visible .disc { stroke-width: 4; }
.cd-hub svg[data-step] .hub-n:not(.lit) { opacity: .55; }
.cd-hub svg[data-focus] .hub-n { opacity: .45; }
.cd-hub svg[data-focus="clay"] [data-n="clay"], .cd-hub svg[data-focus="warm"] [data-n="warm"], .cd-hub svg[data-focus="salesnav"] [data-n="salesnav"],
.cd-hub svg[data-focus="instantly"] [data-n="instantly"], .cd-hub svg[data-focus="linkedin"] [data-n="linkedin"], .cd-hub svg[data-focus="hub"] [data-n="hub"] { opacity: 1; }
.cd-hub .hub-n .halo { fill: var(--acc); opacity: .13; }
.cd-hub .hub-n.lit .halo { opacity: .28; }
.cd-hub .hub-n.hit .halo { opacity: .45; }
.cd-hub .hub-n .disc { fill: color-mix(in srgb, var(--acc) 13%, var(--card)); stroke: var(--acc); stroke-width: 2.6; }
.cd-hub .hub-n .num { font-size: 19px; font-weight: 800; fill: var(--acc); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.cd-hub .hub-n .num.sm { font-size: 15px; }
.cd-hub .hub-n .num.big { font-size: 28px; }
.cd-hub .hub-n .nm { font-size: 13.5px; font-weight: 800; }
.cd-hub .hub-n .un { font-size: 11.5px; fill: var(--muted); }
.cd-hub .hub-n .un.strong { font-weight: 700; fill: var(--acc); font-size: 10.5px; }
.cd-hub .hub-n .un .n { font-weight: 800; fill: var(--fg); }
.cd-hub .hub-core .disc { fill: color-mix(in srgb, var(--hub) 16%, var(--card)); stroke-width: 3; }
.cd-hub .hub-core .ring { fill: none; stroke: var(--hub); stroke-opacity: .35; stroke-width: 1.5; stroke-dasharray: 3 9; }
.cd-hub .hub-core .scan { fill: none; stroke: var(--hub); stroke-width: 3; stroke-linecap: round; opacity: 0; transition: opacity .4s; }
.cd-hub svg.scanning .hub-core .scan { opacity: .9; }
.cd-hub .hub-core .nm { font-size: 17px; }
.cd-hub .hub-core .num { font-size: 26px; }
.cd-hub .hub-gate { --acc: var(--gold); cursor: default; }
.cd-hub .hub-gate .ico { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.cd-hub .hub-win { --acc: var(--win); }
.cd-hub .hub-p .core { fill: var(--acc); }
.cd-hub .hub-p .glow { fill: var(--acc); opacity: .22; }
.cd-hub .hub-p.win { --acc: var(--win); }
.cd-hub .hub-p:not(.lit) { opacity: .55; }
.cd-hub .hub-ring { fill: none; stroke: var(--win); stroke-width: 3; }
.cd-hub .hub-spark { fill: var(--acc); }
.cd-hub-steps { position: relative; list-style: none; margin: 0; padding: 0 18px 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; counter-reset: hs; }
.cd-hub-steps li { counter-increment: hs; position: relative; cursor: pointer; border: 1px solid var(--line); background: var(--card); border-radius: 14px; padding: 12px 12px 12px 44px; display: flex; flex-direction: column; gap: 3px; transition: border-color .3s, background .3s, transform .3s; }
.cd-hub-steps li::before { content: counter(hs); position: absolute; left: 12px; top: 12px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--muted); border: 1.5px solid var(--line); }
.cd-hub-steps li b { font-size: 14px; }
.cd-hub-steps li span { font-size: 12.5px; color: var(--muted); }
.cd-hub-steps li.on { border-color: var(--hub); background: color-mix(in srgb, var(--hub) 7%, var(--card)); }
.cd-hub-steps li.on::before { background: var(--t-hub, var(--hub)); border-color: var(--t-hub, var(--hub)); color: #fff; }
@media (prefers-reduced-motion: no-preference) { .cd-hub-steps li.on { transform: translateY(-2px); } }
.cd-hub-steps li:focus-visible { outline: 2px solid var(--hub); outline-offset: 2px; }

.cd-grid-tbl.cd-daily td.num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--mono); }
.cd-grid-tbl.cd-daily tr.hdr td.num { font-family: var(--sans); font-size: 11.5px; white-space: normal; min-width: 64px; line-height: 1.2; }
.cd-grid-tbl.cd-daily td.day { color: var(--fg); font-weight: 600; }
.cd-grid-tbl.cd-daily tbody tr:not(.hdr) td.num { background: color-mix(in srgb, var(--acc) var(--heat, 0%), var(--card)); }
.cd-grid-tbl.cd-daily td.blank { background: repeating-linear-gradient(135deg, transparent 0 5px, color-mix(in srgb, var(--fg) 5%, transparent) 5px 6px) !important; }
.cd-daily-note { margin: 0; font-size: 12px !important; color: var(--muted); }

/* Team overview delivery map */
.cd-map { display: flex; flex-direction: column; gap: 12px; }
.cd-map-svg { width: 100%; height: auto; display: block; overflow: visible; }
.cd-map.tall .cd-map-svg { max-width: 460px; margin: 0 auto; }
.cd-map .m-road path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.cd-map .m-road .edge { stroke: color-mix(in srgb, var(--fg) 13%, transparent); stroke-width: 24; }
.cd-map .m-road .asphalt { stroke: color-mix(in srgb, var(--fg) 7%, var(--card)); stroke-width: 20; }
.cd-map .m-road .tint { stroke: var(--acc); stroke-width: 20; opacity: 0; transition: opacity .5s; }
.cd-map .m-road.lit .tint { opacity: .15; }
.cd-map .m-road .lane { stroke: color-mix(in srgb, var(--fg) 28%, transparent); stroke-width: 1.6; stroke-dasharray: 7 9; }
.cd-map .m-road.lit .lane { stroke: var(--acc); stroke-width: 2; animation: cd-lane 0.9s linear infinite; }
.cd-map .m-road.back .lane { stroke-dasharray: 2 6; }
.cd-map .m-road.win, .cd-map .m-sign.win, .cd-map .m-truck.win, .cd-map .m-win { --acc: var(--win); }
.cd-map .m-dc { --acc: var(--hub); }
@keyframes cd-lane { to { stroke-dashoffset: -16; } }
.cd-map-svg .m-road, .cd-map-svg .m-sign, .cd-map-svg [data-n] { transition: opacity .45s; }
.cd-map-svg:not(.all) .m-road:not(.lit) { opacity: .5; }
.cd-map-svg:not(.all) .m-sign:not(.lit) { opacity: .55; }
.cd-map-svg:not(.all) [data-n]:not(.lit) { opacity: .6; }
.cd-map .card { fill: var(--card); stroke: color-mix(in srgb, var(--acc) 45%, var(--line)); stroke-width: 1.5; transition: stroke-width .2s; }
.cd-map [data-n].lit .card { stroke: var(--acc); stroke-width: 2.2; }
.cd-map [data-n].hit .card { stroke-width: 3.5; }
.cd-map .band { fill: var(--acc); }
.cd-map .ico { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; }
.cd-map .nm { fill: #fff; font: 700 12.5px var(--sans); }
.cd-map .num { fill: var(--acc); font: 800 27px var(--sans); font-variant-numeric: tabular-nums; }
.cd-map .num.big { font-size: 42px; }
.cd-map .un { fill: var(--muted); font: 500 12px var(--sans); }
.cd-map .un.strong { fill: var(--acc); font-weight: 700; }
.cd-map .tag { fill: var(--acc); font: 700 10px var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.cd-map [data-n][role="link"] { cursor: pointer; }
.cd-map [data-n][role="link"]:focus-visible { outline: none; }
.cd-map [data-n][role="link"]:focus-visible .card { stroke: var(--fg); stroke-width: 3; }
.cd-map .m-dc .ring { fill: none; stroke: var(--hub); stroke-width: 2; stroke-dasharray: 5 7; opacity: .35; }
.cd-map-svg.scanning .m-dc .ring { opacity: .8; animation: cd-lane 1.2s linear infinite; }
.cd-map .scan { fill: var(--hub); opacity: 0; transition: opacity .4s; }
.cd-map-svg.scanning .scan { opacity: .1; }
.cd-map .m-win .row { fill: var(--muted); font: 500 13px var(--sans); }
.cd-map .m-win .row .n { fill: var(--fg); font-weight: 800; font-size: 18px; }
.cd-map .m-gate .booth { fill: var(--gold); }
.cd-map .m-gate .tick { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.cd-map .m-gate .bar { fill: var(--gold); stroke: var(--card); stroke-width: 1.2; }
.cd-map .m-gate .nm { fill: var(--fg); font-size: 13.5px; }
.cd-map .m-sign rect { fill: var(--card); stroke: var(--acc); stroke-width: 1.5; }
.cd-map .m-sign text { fill: var(--muted); font: 600 12.5px var(--sans); }
.cd-map .m-sign .n { fill: var(--acc); font-weight: 800; }
.cd-map .m-truck .box { fill: var(--acc); }
.cd-map .m-truck .cab { fill: color-mix(in srgb, var(--acc) 65%, #000); }
.cd-map .m-truck .glass { fill: #fff; opacity: .75; }
.cd-map .m-truck .load { fill: #fff; opacity: .28; }
.cd-map .m-confetti { fill: var(--acc); }
.cd-map-bar { display: flex; gap: 10px 16px; align-items: center; flex-wrap: wrap; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--hub) 6%, var(--card)); border: 1px solid color-mix(in srgb, var(--hub) 18%, var(--line)); }
.cd-map-ctl { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cd-map-btn { font: 600 13px var(--sans); padding: 8px 16px; border-radius: 999px; background: var(--t-hub, var(--hub)); color: #fff; border: 1px solid var(--t-hub, var(--hub)); cursor: pointer; min-height: 36px; }
.cd-map-btn.ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.cd-map-btn:focus-visible, .cd-map-dots button:focus-visible { outline: 2px solid var(--hub); outline-offset: 2px; }
.cd-map-dots { display: flex; gap: 2px; align-items: center; }
.cd-map-dots button { width: 22px; height: 28px; border: 0; padding: 0; background: none; cursor: pointer; position: relative; }
.cd-map-dots button::before { content: ""; position: absolute; left: 6px; top: 9px; width: 10px; height: 10px; border-radius: 5px; background: var(--line); transition: all .3s; }
.cd-map-dots button.done::before { background: color-mix(in srgb, var(--hub) 45%, var(--line)); }
.cd-map-dots button[aria-selected="true"]::before { background: var(--hub); left: 2px; width: 18px; }
.cd-map-cap { margin: 0; flex: 1 1 320px; font-size: 15px; line-height: 1.5; color: var(--fg); min-height: 3em; }
.cd-map-cap .k { display: inline-block; margin-right: 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--t-hub, var(--hub)); }
.cd-map-cap b:not(.k) { color: var(--t-hub, var(--hub)); font-variant-numeric: tabular-nums; }
.cd-map-leg { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12px; color: var(--muted); padding: 0 4px; }
.cd-map-leg span { display: inline-flex; align-items: center; gap: 7px; }
.cd-map-leg i { display: inline-block; }
.cd-map-leg .k-truck i { width: 18px; height: 10px; border-radius: 2px; background: var(--hub); box-shadow: 5px 0 0 -1px color-mix(in srgb, var(--hub) 65%, #000); }
.cd-map-leg .k-sign i { width: 20px; height: 11px; border: 1.5px solid var(--hub); border-radius: 6px; }
.cd-map-leg .k-gate i { width: 11px; height: 11px; border-radius: 3px; background: var(--gold); }
.cd-map-leg .k-tap i { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--muted); }
@media (prefers-reduced-motion: reduce) { .cd-map .m-road.lit .lane, .cd-map-svg.scanning .m-dc .ring { animation: none; } }

/* Team overview: isometric city */
.cd-city { --city-plate: color-mix(in srgb, var(--fg) 4%, var(--card)); --city-side: color-mix(in srgb, var(--fg) 12%, var(--card)); --city-side2: color-mix(in srgb, var(--fg) 18%, var(--card));
  --city-grass: color-mix(in srgb, #4ade80 16%, var(--card)); --city-lot: color-mix(in srgb, var(--fg) 6%, var(--card)); --city-road: color-mix(in srgb, var(--fg) 12%, var(--card)); --city-zebra: color-mix(in srgb, var(--card) 70%, #fff);
  --city-wall: color-mix(in srgb, var(--fg) 3%, var(--card)); --city-wall2: color-mix(in srgb, var(--fg) 12%, var(--card)); --city-roof: color-mix(in srgb, var(--fg) 6%, var(--card));
  --city-solar: #1e293b; --city-dock: color-mix(in srgb, var(--fg) 22%, var(--card)); --city-glass: color-mix(in srgb, #bfdbfe 70%, var(--card)); --city-win: #64748b; --city-door: #b45309; --city-walk: color-mix(in srgb, var(--fg) 7%, var(--card)); --city-water: color-mix(in srgb, #38bdf8 40%, var(--card));
  display: flex; flex-direction: column; gap: 12px; }
.cd-city-stage { position: relative; animation: cd-city-drift 9s ease-in-out infinite alternate; }
@keyframes cd-city-drift { from { transform: translateY(-3px); } to { transform: translateY(4px); } }
.cd-city-svg { width: 100%; height: auto; display: block; overflow: visible; }
.cd-city-svg .lane { stroke: color-mix(in srgb, var(--card) 40%, #fbeee0); stroke-width: 1.4; stroke-dasharray: 7 8; opacity: .8; }
.cd-city-svg .f { stroke: color-mix(in srgb, #000000 8%, transparent); stroke-width: .4; stroke-linejoin: round; }
.cd-city-svg .win.on { fill: #fbe0a6 !important; }
.cd-city-svg .solar { stroke: color-mix(in srgb, #fbeee0 25%, transparent); stroke-width: .5; }
.cd-city-svg .leaf { fill: #a3bca3; } .cd-city-svg .leaf.hi { fill: #c5d6c5; opacity: .7; }
.cd-city-svg .shadow, .cd-city-svg .vshadow { fill: #1c1c1b; opacity: .08; }
.cd-city-svg .lamp { fill: #fbe0a6; } .cd-city-svg .mast { stroke: #a39b92; stroke-width: 1.4; }
.cd-city-svg .beacon { fill: #e79c91; }
.cd-city-svg .sign-ico { fill: #fbeee0; stroke: var(--ins); stroke-width: 1.4; stroke-linejoin: round; }
.cd-city-svg .gate-badge { fill: var(--gold); stroke: #fbeee0; stroke-width: 2; }
.cd-city-svg .gate-tick { fill: none; stroke: #fbeee0; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cd-city-svg .arm { stroke: #e79c91; stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 6 5; }
.cd-city-svg .vtag { fill: var(--lin); stroke: #fbeee0; stroke-width: 1; }
.cd-city-svg .hot { cursor: pointer; outline: none; }
.cd-city-svg .hot:hover .f, .cd-city-svg .hot:focus-visible .f { filter: brightness(1.06); }
.cd-city-svg .ring polygon { fill: none; stroke: var(--rc); opacity: 0; transition: opacity .3s; }
.cd-city-svg .ring .r1 { stroke-width: 3; }
.cd-city-svg .ring .r2 { fill: var(--rc); stroke: none; }
.cd-city-svg .ring.hov .r1, .cd-city-svg .ring.sel .r1 { opacity: .9; }
.cd-city-svg .ring.hov .r2, .cd-city-svg .ring.sel .r2 { opacity: .12; }
.cd-city-svg .ring.sel .r1 { animation: cd-ring 1.6s ease-in-out infinite; }
@keyframes cd-ring { 50% { opacity: .35; } }
.cd-city-tags { position: absolute; inset: 0; pointer-events: none; }
.cd-city-tag { position: absolute; transform: translate(-50%, -100%); pointer-events: auto; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font: 600 12px var(--sans); color: var(--fg);
  padding: 5px 10px 5px 8px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--rc) 35%, var(--line)); background: color-mix(in srgb, var(--card) 94%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px -8px rgba(15, 23, 42, .35); cursor: pointer; animation: cd-tag-bob 4s ease-in-out infinite; }
.cd-city-tag:nth-child(2n) { animation-delay: -1.3s; } .cd-city-tag:nth-child(3n) { animation-delay: -2.4s; }
@keyframes cd-tag-bob { 50% { transform: translate(-50%, calc(-100% - 2px)); } }
.cd-city-tag i { width: 9px; height: 9px; border-radius: 50%; background: var(--rc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rc) 22%, transparent); }
.cd-city-tag b { font-weight: 800; color: var(--rc); font-variant-numeric: tabular-nums; }
.cd-city-tag:focus-visible { outline: 2px solid var(--rc); outline-offset: 2px; }
.cd-city.narrow .cd-city-tag { padding: 3px 7px 3px 5px; gap: 4px; font-size: 11px; }
.cd-city.narrow .cd-city-tag i { width: 7px; height: 7px; box-shadow: none; }
.cd-city.narrow .cd-city-tag b { color: var(--fg); }
.cd-city-pop { position: absolute; z-index: 3; width: 284px; padding: 14px 16px 16px; border-radius: 18px; border: 1px solid color-mix(in srgb, var(--rc) 25%, var(--line));
  background: color-mix(in srgb, var(--card) 80%, transparent); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 24px 48px -20px rgba(15, 23, 42, .45), 0 2px 6px rgba(15, 23, 42, .08); animation: cd-pop-in .28s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes cd-pop-in { from { opacity: 0; transform: translateY(8px) scale(.96); } }
.cd-city.narrow .cd-city-pop { position: relative; width: auto; margin-top: 10px; left: auto; top: auto; }
.cd-city-pop .hd { display: flex; align-items: center; gap: 10px; }
.cd-city-pop .ic { width: 34px; height: 34px; border-radius: 50%; flex: none; background: color-mix(in srgb, var(--rc) 16%, var(--card)); position: relative; }
.cd-city-pop .ic::after { content: ""; position: absolute; inset: 11px; border-radius: 3px; background: var(--rc); }
.cd-city-pop .tt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.cd-city-pop .tt b { font: 800 16px var(--sans); color: var(--fg); }
.cd-city-pop .asof { display: inline-flex; align-items: center; gap: 6px; font: 600 10.5px var(--mono, monospace); letter-spacing: .06em; text-transform: uppercase; color: var(--rc); }
.cd-city-pop .asof i { width: 6px; height: 6px; border-radius: 50%; background: var(--rc); }
.cd-city-pop .x { width: 30px; height: 30px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
.cd-city-pop .x:hover { background: color-mix(in srgb, var(--fg) 7%, transparent); }
.cd-city-pop .role { margin: 8px 0 6px; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.cd-city-pop dl { margin: 0; display: flex; flex-direction: column; }
.cd-city-pop dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0; border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.cd-city-pop dt { font-size: 13px; color: var(--muted); }
.cd-city-pop dd { margin: 0; font: 800 17px var(--sans); color: var(--fg); font-variant-numeric: tabular-nums; }
.cd-city-pop .go { margin-top: 10px; width: 100%; padding: 9px 12px; border-radius: 12px; border: 0; background: var(--rc); color: #fff; font: 700 13px var(--sans); cursor: pointer; }
.cd-city-pop .go:focus-visible, .cd-city-pop .x:focus-visible { outline: 2px solid var(--rc); outline-offset: 2px; }
.cd-city-cap { display: flex; flex-direction: column; gap: 10px; }
.cd-city-cap p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.cd-city-cap p b { color: var(--fg); }
.cd-city-leg { display: flex; flex-wrap: wrap; gap: 6px; }
.cd-city-leg button { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--fg); font: 600 12.5px var(--sans); cursor: pointer; }
.cd-city-leg button:hover { border-color: var(--rc); }
.cd-city-leg i { width: 9px; height: 9px; border-radius: 50%; background: var(--rc); }
.cd-city-leg em { font-style: normal; font-weight: 800; color: var(--muted); }
.cd-city-leg b { color: var(--rc); font-variant-numeric: tabular-nums; }
.cd-city.narrow .cd-city-leg { display: grid; grid-template-columns: 1fr 1fr; }
.cd-city.narrow .cd-city-leg button { justify-content: flex-start; border-radius: 12px; text-align: left; }
.cd-city.narrow .cd-city-leg b { margin-left: auto; }
.cd-city-scroll { position: relative; }
.cd-city.narrow .cd-city-scroll { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 0 -4px; }
.cd-city.narrow .cd-city-scroll::-webkit-scrollbar { display: none; }
.cd-city.narrow .cd-city-stage { min-width: 760px; }
.cd-city-svg .road { stroke: none; }
.cd-city-svg .bay { stroke: color-mix(in srgb, var(--card) 30%, #fbeee0); stroke-width: 1; opacity: .7; }
.cd-city-svg .water { stroke: color-mix(in srgb, #86add7 50%, transparent); stroke-width: .8; }
.cd-city-svg .leaf.pine { fill: #81a381; }
.cd-city-svg .radar .dish { fill: #f6e9dc; stroke: #a39b92; stroke-width: 1; }
.cd-city-svg .radar .feed { stroke: #777472; stroke-width: 1.2; }
.cd-city-svg .wave { fill: none; stroke: var(--wrm); stroke-width: 1.4; }
.cd-city-svg .ping { fill: none; stroke: var(--lin); stroke-width: 1.4; }
.cd-city-svg .env { fill: #fbeee0; stroke: var(--lin); stroke-width: 1.2; stroke-linejoin: round; }
.cd-city-svg .env.ins { stroke: var(--ins); }
.cd-city-svg .waver .head { fill: #f2c9a0; }
.cd-city-svg .waver .body { fill: var(--win); }
.cd-city-svg .waver .arm2 { stroke: #f2c9a0; stroke-width: 1.6; stroke-linecap: round; }
.cd-city-svg .door { transition: fill .3s; }
.cd-city-svg .door.open { fill: #fbe0a6 !important; }
.cd-city-svg .cloud circle { fill: #fbeee0; }
.cd-city-svg .cloud { filter: drop-shadow(0 2px 3px rgb(15 23 42 / .08)); pointer-events: none; }
.cd-city-svg .cloud-shadow { fill: #1c1c1b; pointer-events: none; }
.cd-city-pop .big { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; }
.cd-city-pop .big b { font: 800 30px var(--sans); color: var(--rc); font-variant-numeric: tabular-nums; line-height: 1; }
.cd-city-pop .big span { font-size: 13px; color: var(--muted); }
.cd-city-pop .note { margin: 6px 0 0; font-size: 11.5px; color: var(--muted); }
.cd-city-svg .mpin .pin { fill: #f5b529; stroke: #fbeee0; stroke-width: 1.4; }
.cd-city-svg .mpin .tick { fill: none; stroke: #fbeee0; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cd-city-svg .wheel .tyre { fill: #2b2a29; }
.cd-city-svg .wheel .hub { fill: #d3c8bc; }
.cd-city-svg .wheel .spoke { stroke: #e5d9cd; stroke-width: 1; stroke-linecap: round; }
.cd-city-svg .vlight { fill: #fbe0a6; }
.cd-city-svg .vdoor { stroke: #a39b92; stroke-width: .6; stroke-linejoin: round; }
.cd-city-svg .carry .cbody { fill: #76a1cf; }
.cd-city-svg .carry .chead { fill: #f2c9a0; }
.cd-city-svg .carry .clegs { stroke: #444241; stroke-width: 1.3; stroke-linecap: round; fill: none; }
@media (prefers-reduced-motion: reduce) { .cd-city-stage, .cd-city-tag, .cd-city-svg .ring.sel .r1 { animation: none; } }
/* Growing city: districts, construction, street life, zoom, time slider and the explainer */
.cd-city { --city-dirt: color-mix(in srgb, #b45309 22%, var(--city-lot)); --city-fence: color-mix(in srgb, #f59e0b 60%, transparent); }
.cd-city.narrow .cd-city-scroll { overflow: visible; margin: 0; }
.cd-city.narrow .cd-city-stage { min-width: 0; }
.cd-city-stage { overflow: hidden; border-radius: 16px; user-select: none; -webkit-user-select: none; }
.cd-city-stage.zoomed { animation: none; cursor: grab; }
.cd-city-stage.zoomed:active { cursor: grabbing; }
.cd-city-svg .zd { stroke-width: 1.2; stroke-opacity: .55; stroke-dasharray: 5 4; cursor: pointer; }
.cd-city-svg .zd:hover { stroke-opacity: .95; }
.cd-city-svg .nextlot { stroke: var(--muted); stroke-opacity: .5; stroke-width: 1.2; stroke-dasharray: 3 5; }
.cd-city-svg .dirt { stroke: none; }
.cd-city-svg .fence { stroke: #f6bd41; stroke-width: .6; }
.cd-city-svg .lattice { stroke: #dc614e; stroke-width: .7; opacity: .7; }
.cd-city-svg .jib { stroke: #f6bd41; stroke-width: 2.6; stroke-linecap: round; }
.cd-city-svg .cweight { fill: #777472; }
.cd-city-svg .cable { stroke: #444241; stroke-width: .8; }
.cd-city-svg .ped .phead { fill: #f2c9a0; } .cd-city-svg .ped .phat { fill: #f7c14d; stroke: #f5b01c; stroke-width: .4; }
.cd-city-svg .plegs { stroke: #444241; stroke-width: 1.3; stroke-linecap: round; fill: none; }
.cd-city-svg .dogb { fill: #e9a20b; } .cd-city-svg .leash { stroke: #777472; stroke-width: .6; }
.cd-city-svg .tl { fill: #444241; } .cd-city-svg .tl.r.on { fill: #e79c91; } .cd-city-svg .tl.y.on { fill: #f6bd41; } .cd-city-svg .tl.g.on { fill: #79ab79; }
.cd-city-svg .stop { fill: #da8a7e; stroke: #fbeee0; stroke-width: .9; } .cd-city-svg .stopbar { stroke: #fbeee0; stroke-width: 1.1; }
.cd-city-svg .btyre { fill: none; stroke: #2b2a29; stroke-width: 1.2; } .cd-city-svg .bframe { fill: none; stroke-width: 1.3; stroke-linecap: round; }
.cd-city-svg .helmet { fill: #e4d9cc; stroke: #575654; stroke-width: .5; }
.cd-city-svg .vlabel rect { fill: var(--card); stroke-width: 1.2; opacity: .96; }
.cd-city-svg .vlabel text { font: 700 8.5px var(--sans); fill: var(--fg); font-variant-numeric: tabular-nums; }
.cd-city-svg.far .vlabel { display: none; }
.cd-city-svg .van.hot { cursor: pointer; }
.cd-city-tag small { font: 700 9.5px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 1px 6px; border-radius: 999px; background: color-mix(in srgb, var(--rc) 12%, transparent); }
.cd-city-zoom { position: absolute; right: 10px; top: 10px; z-index: 2; display: flex; gap: 6px; }
.cd-city-zoom button { min-width: 34px; height: 34px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: color-mix(in srgb, var(--card) 92%, transparent); color: var(--fg); font: 700 16px var(--sans); cursor: pointer; box-shadow: var(--shadow); }
.cd-city-zoom button.all { font-size: 12.5px; }
.cd-city-zoom button:focus-visible { outline: 2px solid var(--hub); outline-offset: 2px; }
.cd-city-hist { position: absolute; left: 10px; top: 10px; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 999px; background: var(--fg); color: var(--card); font: 700 12.5px var(--sans); box-shadow: var(--shadow); }
.cd-city-hist button { border: 0; border-radius: 999px; padding: 5px 10px; background: var(--card); color: var(--fg); font: 700 12px var(--sans); cursor: pointer; }
.cd-city-pop { max-height: calc(100% - 16px); overflow-y: auto; }
.cd-city-pop .phead { margin: 10px 0 0; font: 700 10.5px var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.cd-city-pop .grow { margin: 6px 0 2px; padding: 10px 12px; border-radius: 14px; background: color-mix(in srgb, var(--rc) 7%, var(--card)); border: 1px solid color-mix(in srgb, var(--rc) 20%, var(--line)); }
.cd-city-pop .grow .gh { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.cd-city-pop .grow .gh b { color: var(--fg); font-variant-numeric: tabular-nums; }
.cd-city-pop .grow .tier { font: 800 15px var(--sans); color: var(--rc); }
.cd-city-pop .gbar { height: 6px; border-radius: 99px; background: color-mix(in srgb, var(--rc) 14%, transparent); margin: 8px 0 6px; overflow: hidden; }
.cd-city-pop .gbar i { display: block; height: 100%; border-radius: inherit; background: var(--rc); }
.cd-city-pop .gnext, .cd-city-pop .gwk { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.4; }
.cd-city-pop .gwk { margin-top: 6px; font-weight: 700; color: var(--fg); }
.cd-city-pop .grow dl > div { padding: 5px 0; } .cd-city-pop .grow dd { font-size: 15px; } .cd-city-pop .grow dt { font-size: 12.5px; }
.cd-city-howbtn { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--fg); font: 700 12.5px var(--sans); cursor: pointer; }
.cd-city-howbtn i, .cd-info { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--fg); color: var(--card); font: italic 800 12px Georgia, serif; }
.cd-info { border: 0; cursor: pointer; vertical-align: middle; margin-left: 8px; width: 24px; height: 24px; font-size: 14px; position: relative; top: -2px; transition: transform .2s; }
.cd-info:hover { transform: scale(1.1); } .cd-info:focus-visible { outline: 2px solid var(--hub); outline-offset: 3px; }
.cd-city-time { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: color-mix(in srgb, var(--card) 85%, transparent); }
.cd-city-time .tr { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.cd-city-time .tl { color: var(--muted); font: 700 10.5px var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.cd-city-time .tw { color: var(--fg); }
.cd-city-time .stage { margin-left: auto; padding: 2px 9px; border-radius: 999px; font: 700 11px var(--sans); background: color-mix(in srgb, var(--hub) 12%, transparent); color: var(--t-hub, var(--hub)); }
.cd-city-time .today { border: 0; border-radius: 999px; padding: 4px 10px; background: var(--fg); color: var(--card); font: 700 12px var(--sans); cursor: pointer; }
.cd-city-time input[type=range] { width: 100%; accent-color: var(--hub); margin: 2px 0; }
.cd-city-time .ticks { display: flex; justify-content: space-between; font: 600 11px var(--mono); color: var(--muted); }
.cd-city-time .jumps { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cd-city-time .jumps button { border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; background: var(--card); color: var(--fg); font: 600 12px var(--sans); cursor: pointer; }
.cd-city-time .jumps button:disabled { opacity: .45; cursor: not-allowed; }
.cd-city-time .since { margin-left: auto; font-size: 12px; color: var(--muted); }
/* Explainer */
.cd-gx-back { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: color-mix(in srgb, #0f172a 45%, transparent); animation: cd-gx-in .2s ease-out; }
@keyframes cd-gx-in { from { opacity: 0; } to { opacity: 1; } }
.cd-gx { width: min(680px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; border-radius: 22px; background: var(--card); color: var(--fg); box-shadow: 0 24px 64px rgba(15,23,42,.28); overflow: hidden; animation: cd-gx-up .25s ease-out; }
@keyframes cd-gx-up { from { transform: translateY(14px); opacity: .6; } to { transform: none; opacity: 1; } }
.cd-gx .top { position: relative; padding: 20px 56px 14px 22px; background: linear-gradient(135deg, color-mix(in srgb, var(--hub) 12%, var(--card)), color-mix(in srgb, var(--wrm) 10%, var(--card))); border-bottom: 1px solid var(--line); }
.cd-gx .top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--rainbow); }
.cd-gx .eb { margin: 0; font: 700 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cd-gx h3 { margin: 2px 0 0; font: 800 22px var(--sans); }
.cd-gx .x { position: absolute; right: 12px; top: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: color-mix(in srgb, var(--fg) 7%, transparent); color: var(--fg); font-size: 22px; cursor: pointer; }
.cd-gx .body { overflow-y: auto; padding: 16px 22px 8px; display: flex; flex-direction: column; gap: 16px; }
.cd-gx .lead { margin: 0; font-size: 15.5px; line-height: 1.5; }
.cd-gx section h4 { margin: 0 0 8px; font: 800 14px var(--sans); }
.cd-gx section p { margin: 8px 0 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.cd-gx .weights { display: flex; flex-direction: column; gap: 8px; }
.cd-gx .w { display: grid; grid-template-columns: minmax(130px, 1.2fr) 2fr auto; grid-template-areas: "l bar n" ". s s"; align-items: center; gap: 2px 10px; }
.cd-gx .w .l { grid-area: l; font-size: 13.5px; font-weight: 600; } .cd-gx .w .bar { grid-area: bar; height: 12px; border-radius: 99px; background: color-mix(in srgb, var(--fg) 7%, transparent); overflow: hidden; }
.cd-gx .w .bar i { display: block; height: 100%; border-radius: inherit; }
.cd-gx .w.win .bar i { background: var(--win); } .cd-gx .w.meet .bar i { background: var(--gold); } .cd-gx .w.eff .bar i { background: var(--hub); } .cd-gx .w.resp .bar i { background: var(--lin); }
.cd-gx .w b { grid-area: n; font: 800 14px var(--sans); font-variant-numeric: tabular-nums; } .cd-gx .w small { grid-area: s; font-size: 12px; color: var(--muted); }
.cd-gx .cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.cd-gx .cmp .c { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--rc) 25%, var(--line)); background: color-mix(in srgb, var(--rc) 6%, var(--card)); font-size: 13px; color: var(--muted); }
.cd-gx .cmp .c b { color: var(--rc); font-size: 14px; } .cd-gx .cmp em { font-style: normal; font-weight: 800; color: var(--fg); } .cd-gx .cmp .pt { margin-top: 4px; color: var(--fg); }
.cd-gx .ladder { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cd-gx .step { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border-radius: 14px; background: color-mix(in srgb, var(--hub) calc(5% + var(--k, 0%)), var(--card)); border: 1px solid var(--line); text-align: center; }
.cd-gx .step.s1 { --k: 3%; } .cd-gx .step.s2 { --k: 6%; } .cd-gx .step.s3 { --k: 10%; }
.cd-gx .step .ico { display: flex; align-items: flex-end; gap: 3px; height: 32px; }
.cd-gx .step .ico i { width: 9px; height: var(--hh); border-radius: 2px 2px 0 0; background: color-mix(in srgb, var(--hub) 60%, #fff); }
.cd-gx .step b { font-size: 14px; } .cd-gx .step span { font-size: 12px; color: var(--muted); }
.cd-gx .keys { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cd-gx .keys li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--muted); }
.cd-gx .keys li i { flex: none; width: 26px; height: 26px; border-radius: 8px; background: color-mix(in srgb, var(--fg) 6%, transparent); position: relative; }
.cd-gx .keys li i::after { content: ""; position: absolute; inset: 7px; border-radius: 3px; }
.cd-gx .keys .crew i::after { background: #f97316; border-radius: 50%; } .cd-gx .keys .crane i::after { background: #f59e0b; inset: 4px 11px; }
.cd-gx .keys .van i::after { background: var(--hub); inset: 9px 5px; } .cd-gx .keys .car i::after { background: var(--gold); inset: 10px 6px; }
.cd-gx .example { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--rc) 30%, var(--line)); background: color-mix(in srgb, var(--rc) 6%, var(--card)); }
.cd-gx .example > div { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.cd-gx .example em { font-style: normal; font-weight: 700; color: var(--rc); white-space: nowrap; }
.cd-gx .example .tot { display: block; padding-top: 8px; border-top: 1px solid var(--line); line-height: 1.5; }
.cd-gx .tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.cd-gx .tbl th { text-align: left; font: 700 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 6px 6px; border-bottom: 1px solid var(--line); }
.cd-gx .tbl td { padding: 7px 6px; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); vertical-align: top; }
.cd-gx .tbl td i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--rc); margin-right: 6px; }
.cd-gx .tbl .n { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.cd-gx .done { margin: 8px 22px 18px; padding: 11px; border: 0; border-radius: 14px; background: var(--fg); color: var(--card); font: 700 14px var(--sans); cursor: pointer; }
@media (max-width: 560px) {
  .cd-gx-back { padding: 0; place-items: end stretch; }
  .cd-gx { width: 100%; max-height: 92vh; border-radius: 22px 22px 0 0; }
  .cd-gx .ladder { grid-template-columns: repeat(2, 1fr); }
  .cd-gx .cmp { grid-template-columns: 1fr; }
  .cd-gx .w { grid-template-columns: 1fr auto; grid-template-areas: "l n" "bar bar" "s s"; }
  .cd-city-time .since { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .cd-gx-back, .cd-gx { animation: none; } }
/* District health */
.cd-city-svg .win.board { fill: #ba766b !important; }
.cd-city-svg .peel { stroke: none; }
.cd-city-svg .weed { fill: #5a9f5a; opacity: .85; }
.cd-city-svg .deadtree { stroke: #716f6c; stroke-width: 1.4; stroke-linecap: round; fill: none; }
.cd-city-svg .bunting { fill: none; stroke: #a39b92; stroke-width: .8; }
.cd-city-svg .ball { fill: #444241; stroke: #1c1c1b; stroke-width: .6; }
.cd-city-tag small.h-thriving { color: var(--h-ok); } .cd-city-tag small.h-slipping { color: var(--h-warn); } .cd-city-tag small.h-struggling { color: var(--h-bad); }
.cd-city-pop .grow .health { display: inline-block; padding: 1px 8px; border-radius: 999px; font: 700 11px var(--sans); background: color-mix(in srgb, var(--fg) 8%, transparent); }
.cd-city-pop .grow .health.thriving { background: color-mix(in srgb, var(--h-ok) 16%, transparent); color: var(--h-ok); }
.cd-city-pop .grow .health.slipping { background: color-mix(in srgb, var(--h-warn) 16%, transparent); color: var(--h-warn); }
.cd-city-pop .grow .health.struggling { background: color-mix(in srgb, var(--h-bad) 16%, transparent); color: var(--h-bad); }
.cd-gx .tbl .hl { font-weight: 700; } .cd-gx .tbl .hl.thriving { color: var(--h-ok); } .cd-gx .tbl .hl.slipping { color: var(--h-warn); } .cd-gx .tbl .hl.struggling { color: var(--h-bad); }
.cd-gx .health4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.cd-gx .health4 div { padding: 9px 10px; border-radius: 12px; border: 1px solid var(--line); font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.cd-gx .health4 b { display: block; font-size: 13.5px; color: var(--fg); }
.cd-gx .health4 .thriving b { color: var(--h-ok); } .cd-gx .health4 .slipping b { color: var(--h-warn); } .cd-gx .health4 .struggling b { color: var(--h-bad); }
@media (max-width: 560px) { .cd-gx .health4 { grid-template-columns: 1fr 1fr; } }
.cd-city-svg .wx .core { fill: #f7c559; } .cd-city-svg .wx .ray { stroke: #f7c559; stroke-width: 1.8; stroke-linecap: round; }
.cd-city-svg .wx .wcloud circle { fill: #e5d9cd; } .cd-city-svg .wx.slipping .wcloud circle { fill: #a39b92; } .cd-city-svg .wx.struggling .wcloud circle { fill: #777472; } .cd-city-svg .wx.steady .wcloud circle { fill: #f1e5d7; }
.cd-city-svg .wx .drop { stroke: #9fbedf; stroke-width: 1.2; stroke-linecap: round; }
.cd-city-svg .gloom { stroke: none; pointer-events: none; }
.cd-city-svg .brokenlamp { stroke: #777472; stroke-width: 1.6; stroke-linecap: round; }
.cd-city-svg .litter { fill: #a0988f; }
.cd-city-svg .graffiti { fill: none; stroke: #da905f; stroke-width: 1.6; stroke-linecap: round; } .cd-city-svg .graffiti.g2 { stroke: #79ab79; }
.cd-city-svg .pothole { fill: #2b2a29; opacity: .55; }
.cd-city-svg .tumble circle { fill: none; stroke: #e9a20b; stroke-width: 1.1; } .cd-city-svg .tumble path { stroke: #e9a20b; stroke-width: .8; fill: none; }
.cd-city-svg .balloons .string { stroke: #a39b92; stroke-width: .6; }
.cd-city-svg .ribbon { stroke: #da8a7e; stroke-width: 1.8; } .cd-city-svg .bow { fill: #da8a7e; }
.cd-city.narrow .cd-city-hist { top: auto; bottom: 10px; }
.cd-city-pop .grow .ratio { font: 600 11px var(--sans); color: var(--muted); }
.cd-city-svg .jet { fill: none; stroke: #b1cae5; stroke-width: 1.4; stroke-linecap: round; }
.cd-city-svg .swing { fill: none; stroke: #777472; stroke-width: 1.3; } .cd-city-svg .swingrope { stroke: #a39b92; stroke-width: .6; }
.cd-city-svg .dogpark { stroke: none; }
.cd-city-svg .board.lit { filter: drop-shadow(0 0 3px color-mix(in srgb, #fbe0a6 80%, transparent)); }
.cd-city-svg .tear { fill: none; stroke: #f6e9dc; stroke-width: 1.2; }
.cd-city-svg .cone { fill: #e5897b; stroke: #fbeee0; stroke-width: .5; }
.cd-city-svg .crack { fill: none; stroke: #52504e; stroke-width: .8; opacity: .7; }
.cd-city-tag small.h-no { color: var(--muted); }
/* ---- Round 3 (Nov 18): city board, building types, new people, construction gear, zoom ---- */
.cd-city-fail { border: 1px dashed var(--line); border-radius: 16px; padding: 22px; background: var(--card); text-align: center; }
.cd-city-fail b { display: block; font: 700 16px var(--sans); color: var(--fg); }
.cd-city-fail p { margin: 6px auto 12px; max-width: 46ch; color: var(--muted); font-size: 14px; }
.cd-city-fail button { padding: 8px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--fg); color: var(--card); font: 700 13px var(--sans); cursor: pointer; }
.cd-city-board { margin: 12px 0 14px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: var(--shadow); }
.cd-city-board .bh { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.cd-city-board .bh h4 { margin: 0; font: 800 15px var(--sans); color: var(--fg); }
.cd-city-board .bh span { font-size: 13px; color: var(--muted); }
.cd-city-board .bg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.cd-city-board .bt { padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--fg) 4%, transparent); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cd-city-board .bt.wide { grid-column: span 2; }
.cd-city-board .bl { font: 700 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cd-city-board .bt > b { font: 800 22px var(--sans); color: var(--fg); font-variant-numeric: tabular-nums; }
.cd-city-board .bt small { font-size: 12.5px; color: var(--muted); }
.cd-city-board .bt small em { font-style: normal; font-weight: 700; color: var(--fg); }
.cd-city-board .gbar { height: 6px; border-radius: 99px; background: color-mix(in srgb, var(--hub) 14%, transparent); margin-top: 6px; overflow: hidden; }
.cd-city-board .gbar i { display: block; height: 100%; border-radius: inherit; background: var(--hub); }
.cd-city-board .health { display: inline-block; padding: 0 7px; border-radius: 999px; font: 700 11px var(--sans); background: color-mix(in srgb, var(--fg) 8%, transparent); color: var(--fg); }
.cd-city-board .health.thriving { background: color-mix(in srgb, var(--h-ok) 16%, transparent); color: var(--h-ok); }
.cd-city-board .health.slipping { background: color-mix(in srgb, var(--h-warn) 16%, transparent); color: var(--h-warn); }
.cd-city-board .health.struggling { background: color-mix(in srgb, var(--h-bad) 16%, transparent); color: var(--h-bad); }
.cd-city-board .brank { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; counter-reset: rk; }
.cd-city-board .brank li { counter-increment: rk; }
.cd-city-board .brank button { width: 100%; display: grid; grid-template-columns: auto auto 1fr auto; grid-template-rows: auto auto; align-items: center; column-gap: 7px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--fg); font: 600 13px var(--sans); text-align: left; cursor: pointer; }
.cd-city-board .brank button::before { content: counter(rk); grid-row: 1 / 3; font: 800 13px var(--mono); color: var(--muted); }
.cd-city-board .brank button:hover, .cd-city-board .brank button:focus-visible { border-color: var(--rc); outline: none; }
.cd-city-board .brank i { width: 9px; height: 9px; border-radius: 50%; background: var(--rc); grid-row: 1; }
.cd-city-board .brank .nm { grid-row: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cd-city-board .brank b { grid-row: 1; font-variant-numeric: tabular-nums; }
.cd-city-board .brank small { grid-column: 2 / 5; grid-row: 2; font-size: 12px; color: var(--muted); }
.cd-city-board .brank small.h-thriving { color: var(--h-ok); } .cd-city-board .brank small.h-slipping { color: var(--h-warn); } .cd-city-board .brank small.h-struggling { color: var(--h-bad); }
.cd-city-board .bn { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }
.cd-city.narrow .cd-city-board .bg { grid-template-columns: 1fr 1fr; }
.cd-city.narrow .cd-city-board .brank { grid-template-columns: 1fr; }
@media (max-width: 900px) { .cd-city-board .brank { grid-template-columns: 1fr 1fr; } }
.cd-city-zoom button:disabled { opacity: .45; cursor: default; }
.cd-city-stage:focus-visible { outline: 2px solid var(--hub); outline-offset: 2px; border-radius: 12px; }
/* building details */
.cd-city-svg .clock { fill: #fbeee0; stroke: #444241; stroke-width: .8; }
.cd-city-svg .flag { fill: #e79c91; }
.cd-city-svg .rosette { fill: color-mix(in srgb, #fbe0a6 70%, #bed3ea); stroke: #716f6c; stroke-width: .8; }
.cd-city-svg .shopwin { opacity: .9; }
.cd-city-svg .stadium { stroke: #a39b92; stroke-width: .6; } .cd-city-svg .pitch { stroke: #f6e9dc; stroke-width: 1; }
/* people */
.cd-city-svg .band { stroke: #e99b8f; stroke-width: 1.3; stroke-linecap: round; }
.cd-city-svg .dbox { fill: #e5897b; stroke: #d35e4c; stroke-width: .4; }
.cd-city-svg .guitar { stroke: #d45643; stroke-width: 2; stroke-linecap: round; }
.cd-city-svg .case { fill: #2b2a29; }
/* construction gear */
.cd-city-svg .digarm .arm, .cd-city-svg .hammer .arm { fill: none; stroke: #f5b01c; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cd-city-svg .hammer .arm { stroke: #777472; stroke-width: 1.2; }
.cd-city-svg .digarm .bucket { fill: #575654; }
.cd-city-svg .scaf { stroke: color-mix(in srgb, #a39b92 80%, transparent); stroke-width: .9; }
.cd-city-svg .drumb { fill: #e5d9cd; stroke: #a39b92; stroke-width: .6; } .cd-city-svg .drums { fill: none; stroke: #e5897b; stroke-width: 1.2; }
@media (prefers-reduced-motion: reduce) { .cd-city-svg .digarm, .cd-city-svg .drum { transition: none; } }
/* ---- Full screen and close-up detail (Nov 19) ---- */
.cd-city.full { position: fixed; inset: 0; z-index: 2147483000; background: var(--color-bg, var(--card)); margin: 0; padding: 0; overflow: hidden; }
.cd-city.full .cd-city-scroll { position: absolute; inset: 0; margin: 0; overflow: hidden; }
.cd-city.full .cd-city-stage { position: absolute; inset: 0; height: 100%; min-width: 0; border-radius: 0; animation: none; touch-action: none; }
.cd-city.full .cd-city-svg { width: 100%; height: 100%; }
.cd-city.full .cd-city-zoom { left: max(10px, env(safe-area-inset-left)); right: auto; top: max(10px, env(safe-area-inset-top)); }
.cd-city-zoom button.fs { font-size: 15px; }
.cd-city-zoom button.fs.exit { background: var(--fg); color: var(--card); }
.cd-city.full .cd-city-drawer { position: absolute; z-index: 3; background: var(--card); box-shadow: 0 8px 30px rgba(15,23,42,.22); overflow: auto; overscroll-behavior: contain; transition: transform .3s ease; padding: 44px 12px 12px; }
.cd-city.full.land .cd-city-drawer { top: 0; right: 0; bottom: 0; width: min(380px, 42vw); border-left: 1px solid var(--line); }
.cd-city.full.land .cd-city-drawer.shut { transform: translateX(calc(100% - 0px)); overflow: visible; }
.cd-city.full.port .cd-city-drawer { left: 0; right: 0; bottom: 0; max-height: 52%; border-top: 1px solid var(--line); border-radius: 18px 18px 0 0; padding-bottom: max(12px, env(safe-area-inset-bottom)); }
.cd-city.full.port .cd-city-drawer.shut { transform: translateY(calc(100% - 44px)); overflow: hidden; }
.cd-city.full .cd-city-drawer .dtog { position: absolute; top: 8px; left: 12px; right: 12px; height: 30px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--fg); font: 700 12.5px var(--sans); cursor: pointer; }
.cd-city.full.land .cd-city-drawer.shut .dtog { left: auto; right: calc(100% + 10px); width: auto; padding: 0 12px; top: 10px; box-shadow: var(--shadow); white-space: nowrap; }
.cd-city.full .cd-city-board { margin: 0 0 12px; box-shadow: none; }
.cd-city.full .cd-city-board .bg { grid-template-columns: 1fr 1fr; }
.cd-city.full .cd-city-board .brank { grid-template-columns: 1fr; }
.cd-city.full.narrow .cd-city-pop { position: absolute; left: 8px; right: 8px; bottom: 52px; top: auto; width: auto; max-height: 46%; overflow: auto; z-index: 4; margin: 0; }
.cd-city.full .cd-city-pop { z-index: 4; }
/* close-up labels: an HTML layer over the map, only for what is on screen */
.cd-city-lod { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }
.cd-city-lod .lod { position: absolute; left: 0; top: 0; white-space: nowrap; font-family: var(--sans); color: var(--fg); will-change: transform; }
.cd-city-lod .lod.street { font: 700 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: color-mix(in srgb, var(--fg) 62%, transparent); text-shadow: 0 0 3px var(--card), 0 0 3px var(--card); }
.cd-city-lod .lod.hood { display: flex; flex-direction: column; align-items: center; padding: 4px 10px; border-radius: 12px; background: color-mix(in srgb, var(--card) 88%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow); }
.cd-city-lod .lod.hood b { font: 800 13px var(--sans); }
.cd-city-lod .lod.hood small, .cd-city-lod .lod.bld small, .cd-city-lod .lod.beh small { font-size: 10.5px; color: var(--muted); }
.cd-city-lod .lod.bld { display: flex; flex-direction: column; align-items: center; padding: 2px 7px; border-radius: 8px; background: color-mix(in srgb, var(--card) 90%, transparent); border: 1px solid var(--line); }
.cd-city-lod .lod.bld b { font: 700 11px var(--sans); }
.cd-city-lod .lod.bld.site { border-color: #f59e0b; }
.cd-city-lod .lod.beh { display: flex; flex-direction: column; align-items: center; padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, #fde68a 75%, var(--card)); color: #422006; }
.cd-city-lod .lod.beh b { font: 700 10.5px var(--sans); }
.cd-city-lod .lod.beh small { color: #713f12; }
.cd-city-svg .beh { display: none; font-size: var(--fs, 3px); font-family: var(--sans); font-weight: 700; fill: #b53b28; paint-order: stroke; stroke: #fdf0d4; stroke-width: calc(var(--fs, 3px) * .28); }
.cd-city-svg.lod2 .beh { display: inline; }
/* Moving parts: crane trolley and hook, crew loads, brake lights, street halts */
.cd-city-svg .trolley { fill: #575654; }
.cd-city-svg .hookb { fill: #f6bd41; stroke: #444241; stroke-width: .6; }
.cd-city-svg .plank { stroke: #e9a20b; stroke-width: 1.7; stroke-linecap: round; }
.cd-city-svg .pail { fill: #a39b92; } .cd-city-svg .pailh { stroke: #575654; stroke-width: .7; fill: none; }
.cd-city-svg .brk { fill: #e79c91; transition: opacity .15s; }
.cd-city-svg .signpost { stroke: #575654; stroke-width: 1; }
.cd-city-svg .busplate { fill: #6597cc; stroke: #f6e9dc; stroke-width: .6; }
/* Labels never cover the controls */
.cd-city-zoom { z-index: 6; }
.cd-city-tags { z-index: 3; }
.cd-city-board .bcap { display: block; margin-top: 2px; font-size: 11px; color: var(--muted); }
/* Health chips: darker text in the light theme for 4.5:1 contrast (audit Nov 19) */
:root[data-cd-theme="light"] .cd .health.thriving { color: var(--h-ok); } :root[data-cd-theme="light"] .cd .health.slipping { color: var(--h-warn); } :root[data-cd-theme="light"] .cd .health.struggling { color: var(--h-bad); }
@media (prefers-color-scheme: light) { :root[data-cd-theme="auto"] .cd .health.thriving { color: var(--h-ok); } :root[data-cd-theme="auto"] .cd .health.slipping { color: var(--h-warn); } :root[data-cd-theme="auto"] .cd .health.struggling { color: var(--h-bad); } }
/* Character details (Benjamin Nov 18 evening): people, parcels, buildings, vehicles, assembly line */
.cd-city-svg .parms { stroke-width: 1.2; stroke-linecap: round; fill: none; filter: brightness(.85); }
.cd-city-svg .pvest { fill: #f9cf74; opacity: .95; }
.cd-city-svg .pbag { stroke: rgba(0,0,0,.25); stroke-width: .3; }
.cd-city-svg .ptape { fill: none; stroke: #e9a20b; stroke-width: 1.1; stroke-linejoin: round; opacity: .85; }
.cd-city-svg .plabel { fill: #f6e9dc; stroke: rgba(0,0,0,.2); stroke-width: .25; }
.cd-city-svg .acfan { fill: #575654; stroke: #d3c8bc; stroke-width: .5; }
.cd-city-svg .awning { stroke: rgba(255,255,255,.35); stroke-width: .4; }
.cd-city-svg .vseam { stroke: rgba(15,23,42,.35); stroke-width: .5; }
.cd-city-svg .vlogo { fill: #fbeee0; stroke-width: 1; }
.cd-city-svg .vtick { fill: none; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.cd-city-svg .belt { stroke: #777472; stroke-width: 2.2; stroke-dasharray: 1.2 4.8; }
.cd-city-svg .scanl { fill: #e79c91; stroke: #fbeee0; stroke-width: .5; } .cd-city-svg .scanl.go { fill: #79ab79; }
.cd-city-svg .rarm { fill: none; stroke: #e5897b; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cd-city-svg .rclaw { fill: none; stroke: #444241; stroke-width: 1; stroke-linecap: round; }
.cd-city-svg .rjoint { fill: #444241; }
.cd-city-tag .sh, .cd-city-tag .nn { display: none; }
.cd-city-tag.mini { padding: 2px 6px 2px 4px; gap: 3px; font-size: 10px; box-shadow: 0 1px 4px rgba(15,23,42,.18); }
.cd-city-tag.mini .nm, .cd-city-tag.mini small, .cd-city-tag.mini > b:not(.nn) { display: none; }
.cd-city-tag.mini .sh { display: inline; font-weight: 600; } .cd-city-tag.mini .nn { display: inline; font-weight: 800; }
.cd-city-tag.mini.tight .sh { display: none; }
.cd-city-tag.mini i { width: 6px; height: 6px; }
.cd-city-lod .lod.bld small.s2 { font-size: 10px; max-width: 220px; white-space: normal; text-align: center; line-height: 1.25; }
/* Audit 3 page fixes */
.cd-city.full.land:has(> .cd-city-drawer:not(.shut)) > .cd-city-scroll { right: min(380px, 42vw); }
.cd-city.full.port:has(> .cd-city-drawer:not(.shut)) > .cd-city-scroll { bottom: 52%; }
.cd .cd-city-stage, .cd .cd-city-pop { scroll-margin-top: 112px; }
:root[data-cd-theme="dark"] :is(.cd-city-tag b, .cd-city-leg b, .cd-city-pop .asof, .cd-city-pop .big b, .cd-city-pop .grow .tier, .cd-gx .cmp .c b, .cd-gx .example em) { color: color-mix(in srgb, var(--rc) 65%, var(--fg)); }
@media (prefers-color-scheme: dark) { :root[data-cd-theme="auto"] :is(.cd-city-tag b, .cd-city-leg b, .cd-city-pop .asof, .cd-city-pop .big b, .cd-city-pop .grow .tier, .cd-gx .cmp .c b, .cd-gx .example em) { color: color-mix(in srgb, var(--rc) 65%, var(--fg)); } }
:root[data-cd-theme="light"] .cd-city-tag small { color: #57534e; } :root[data-cd-theme="light"] .cd-city-tag small.h-thriving { color: var(--h-ok); } :root[data-cd-theme="light"] .cd-city-tag small.h-slipping { color: var(--h-warn); } :root[data-cd-theme="light"] .cd-city-tag small.h-struggling { color: var(--h-bad); }
@media (prefers-color-scheme: light) { :root[data-cd-theme="auto"] .cd-city-tag small { color: #57534e; } :root[data-cd-theme="auto"] .cd-city-tag small.h-thriving { color: var(--h-ok); } :root[data-cd-theme="auto"] .cd-city-tag small.h-slipping { color: var(--h-warn); } :root[data-cd-theme="auto"] .cd-city-tag small.h-struggling { color: var(--h-bad); } }
.cd-city.full.land .cd-city-drawer .dtog { right: 120px; }

/* City recolor (Benjamin Nov 19, City recolor brief): warm palette. Hue swaps in both themes; cream ground, white surround and cream pills in the light theme */
.cd-city-svg .leaf { fill: #8fb98f; } .cd-city-svg .leaf.hi { fill: #b9d4b5; } .cd-city-svg .leaf.pine { fill: #6f9f7a; }
:root[data-cd-theme="light"] .cd-hub-box { background: #fff; }
:root[data-cd-theme="light"] .cd-hub-box::before { display: none; }
:root[data-cd-theme="light"] .cd-hub-box .cd-pipe-badge { --acc: #6F9BCB; color: #3F74AE; background: #fff; border-color: #E6DED4; }
:root[data-cd-theme="light"] .cd-city { --city-plate: #F7EADC; --city-lot: #F3E6D8; --city-walk: #F1E4D6; --city-road: #EFE2D3; --city-wall: #FBEEE0; --city-wall2: #E9DCCD; --city-roof: #F3E6D8; --city-side: #E3D5C5; --city-side2: #D8C9B8; --city-dock: #D5C6B5; --city-zebra: #FFF8EF; --city-grass: #DCEBD6; --city-water: #CFDDEC; --city-glass: #D6E2EF; --city-solar: #2C2B2A; --city-win: #777472; --city-door: #DC614E; --city-fence: color-mix(in srgb, #F0C25E 70%, transparent); }
:root[data-cd-theme="light"] .cd-city.full { background: #fff; }
:root[data-cd-theme="light"] .cd-city-tag { background: #FFF8EF; border-color: color-mix(in srgb, var(--rc) 60%, #FFF8EF); color: #1c1917; }
:root[data-cd-theme="light"] :is(.cd-city-tag b, .cd-city-leg b, .cd-city-pop .asof, .cd-city-pop .big b, .cd-city-pop .grow .tier, .cd-gx .cmp .c b, .cd-gx .example em) { color: var(--rct, var(--rc)); }
:root[data-cd-theme="light"] .cd-city-tag small { color: #6B6259; background: color-mix(in srgb, var(--rc) 10%, #FFF8EF); }
:root[data-cd-theme="light"] .cd-city-tag small.h-thriving, :root[data-cd-theme="light"] .cd-city-board .brank small.h-thriving { color: var(--h-ok); }
:root[data-cd-theme="light"] .cd-city-svg .vlabel rect { fill: #FFF8EF; }
:root[data-cd-theme="light"] .cd-city-zoom button { background: #fff; border-color: #E6DED4; }
@media (prefers-color-scheme: light) {
  :root[data-cd-theme="auto"] .cd-hub-box { background: #fff; }
  :root[data-cd-theme="auto"] .cd-hub-box::before { display: none; }
  :root[data-cd-theme="auto"] .cd-hub-box .cd-pipe-badge { --acc: #6F9BCB; color: #3F74AE; background: #fff; border-color: #E6DED4; }
  :root[data-cd-theme="auto"] .cd-city { --city-plate: #F7EADC; --city-lot: #F3E6D8; --city-walk: #F1E4D6; --city-road: #EFE2D3; --city-wall: #FBEEE0; --city-wall2: #E9DCCD; --city-roof: #F3E6D8; --city-side: #E3D5C5; --city-side2: #D8C9B8; --city-dock: #D5C6B5; --city-zebra: #FFF8EF; --city-grass: #DCEBD6; --city-water: #CFDDEC; --city-glass: #D6E2EF; --city-solar: #2C2B2A; --city-win: #777472; --city-door: #DC614E; --city-fence: color-mix(in srgb, #F0C25E 70%, transparent); }
  :root[data-cd-theme="auto"] .cd-city.full { background: #fff; }
  :root[data-cd-theme="auto"] .cd-city-tag { background: #FFF8EF; border-color: color-mix(in srgb, var(--rc) 60%, #FFF8EF); color: #1c1917; }
  :root[data-cd-theme="auto"] :is(.cd-city-tag b, .cd-city-leg b, .cd-city-pop .asof, .cd-city-pop .big b, .cd-city-pop .grow .tier, .cd-gx .cmp .c b, .cd-gx .example em) { color: var(--rct, var(--rc)); }
  :root[data-cd-theme="auto"] .cd-city-tag small { color: #6B6259; background: color-mix(in srgb, var(--rc) 10%, #FFF8EF); }
  :root[data-cd-theme="auto"] .cd-city-tag small.h-thriving, :root[data-cd-theme="auto"] .cd-city-board .brank small.h-thriving { color: var(--h-ok); }
  :root[data-cd-theme="auto"] .cd-city-svg .vlabel rect { fill: #FFF8EF; }
  :root[data-cd-theme="auto"] .cd-city-zoom button { background: #fff; border-color: #E6DED4; }
}

/* Status colors from the new palette (Benjamin Nov 19): thriving sage, steady warm grey, slipping butter, struggling salmon */
.cd .health.steady, .cd-gx .tbl .hl.steady, .cd-gx .health4 .steady b, .cd-city-tag small.h-steady, .cd-city-board .brank small.h-steady { color: var(--h-steady, var(--muted)); }
:root[data-cd-theme="light"] .cd .health.thriving { color: var(--h-ok); } :root[data-cd-theme="light"] .cd .health.slipping { color: var(--h-warn); } :root[data-cd-theme="light"] .cd .health.struggling { color: var(--h-bad); }
@media (prefers-color-scheme: light) { :root[data-cd-theme="auto"] .cd .health.thriving { color: var(--h-ok); } :root[data-cd-theme="auto"] .cd .health.slipping { color: var(--h-warn); } :root[data-cd-theme="auto"] .cd .health.struggling { color: var(--h-bad); } }
:root[data-cd-theme="dark"] .cd-tab.cd-agent[aria-selected="true"] { color: #141413; } @media (prefers-color-scheme: dark) { :root[data-cd-theme="auto"] .cd-tab.cd-agent[aria-selected="true"] { color: #141413; } }
/* City level and status on the agent cards and agent tabs (Benjamin Nov 19) */
.cd-stag { display: inline-flex; align-self: flex-start; width: fit-content; font: 700 10.5px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--h-steady, var(--muted)); padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--acc, var(--muted)) 10%, var(--card)); border: 1px solid color-mix(in srgb, var(--acc, var(--muted)) 35%, var(--line)); white-space: nowrap; }
.cd-stag.h-thriving { color: var(--h-ok); } .cd-stag.h-slipping { color: var(--h-warn); } .cd-stag.h-struggling { color: var(--h-bad); }
.cd-card .cd-stag { margin: -2px 0 2px; }
.cd-agent-tab .cd-head > div:has(> .cd-h1) { flex-wrap: wrap; row-gap: 8px; }
/* Full page on a computer (Benjamin Nov 19): the city frame runs the width of the page; the side panel and phones keep the usual frame */
@media (min-width: 1240px) and (hover: hover) and (pointer: fine) {
  .cd-hub-box { width: calc(100vw - 48px); margin-left: calc(50% - 50vw + 24px); }
  .cd-hub-box .cd-city:not(.full) > :not(.cd-city-scroll) { width: 100%; max-width: 1086px; margin-left: auto; margin-right: auto; }
}
/* Full view inside the Claude app: keep every control below the app's own top strip, where clicks never reach the page (Benjamin Nov 19) */
.cd-city.full.emb .cd-city-zoom { top: 64px; }
.cd-city.full.emb.land .cd-city-drawer { padding-top: 108px; }
.cd-city.full.emb.land .cd-city-drawer .dtog, .cd-city.full.emb.land .cd-city-drawer.shut .dtog { top: 64px; }
.cd-agent-tab .cd-head .cd-stag { align-self: center; }
.cd-city-pop .go { background: var(--rct, var(--rc)); }
:root[data-cd-theme="dark"] .cd-city-pop .go { color: #141413; } @media (prefers-color-scheme: dark) { :root[data-cd-theme="auto"] .cd-city-pop .go { color: #141413; } }
:root[data-cd-theme="dark"] .cd-step::before, :root[data-cd-theme="dark"] .cd-hub-steps li.on::before, :root[data-cd-theme="dark"] .cd-map-btn { color: #141413; }
@media (prefers-color-scheme: dark) { :root[data-cd-theme="auto"] .cd-step::before, :root[data-cd-theme="auto"] .cd-hub-steps li.on::before, :root[data-cd-theme="auto"] .cd-map-btn { color: #141413; } }
:root[data-cd-theme] .cd-city-zoom button.fs.exit { background: var(--fg); border-color: var(--fg); color: var(--card); }
.cd-city-svg .vlabel text.vwho { font: 800 7.5px var(--sans); letter-spacing: .02em; }
/* Full page on a computer: room around the district list under the city (Benjamin Nov 19) */
@media (min-width: 1240px) and (hover: hover) and (pointer: fine) { .cd-hub-box .cd-city:not(.full) .cd-city-cap { padding: 14px 0 30px; } }
.cd-city-drawer > .cd-city-time { margin: 0 0 14px; }
/* Performance bands (Benjamin Nov 19: the one health signal): Performing sage, Watch butter, Refine salmon, Not enough data warm grey */
.cd { --pb-perf: var(--h-ok); --pb-watch: var(--h-warn); --pb-refine: var(--h-bad); --pb-nodata: var(--h-steady, var(--muted)); }
.pb-perf { --pbc: var(--pb-perf); } .pb-watch { --pbc: var(--pb-watch); } .pb-refine { --pbc: var(--pb-refine); } .pb-nodata { --pbc: var(--pb-nodata); }
.cd-stag .pbw, .cd-city-tag small.pb-perf, .cd-city-tag small.pb-watch, .cd-city-tag small.pb-refine, .cd-city-tag small.pb-nodata, .cd-city-board .brank .pbw, .cd-city-board .pteam .pbw, .cd-gx .tbl td.hl { color: var(--pbc, inherit); }
:root[data-cd-theme] .cd-city-tag small.pb-perf, :root[data-cd-theme] .cd-city-tag small.pb-watch, :root[data-cd-theme] .cd-city-tag small.pb-refine, :root[data-cd-theme] .cd-city-tag small.pb-nodata { color: var(--pbc); }
.cd-pfix { display: block; font: 500 12.5px/1.45 var(--sans); color: var(--muted); margin: 2px 0 4px; max-width: 62ch; }
.cd-card .cd-pfix { font-size: 12px; margin: 0 0 4px; }
.cd-agent-tab .cd-head .cd-pfix { flex-basis: 100%; text-align: center; margin: 4px auto 0; }
.cd-tab .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.cd-tab .pband { flex: none; font-weight: 700; color: var(--pbc, var(--muted)); }
.cd-tab.cd-agent[aria-selected="true"] .pband { color: #fff; }
@media (max-width: 640px) { .cd-tab.cd-agent { max-width: 62vw; } .cd-tab.cd-agent .nm { max-width: 26vw; } }
.cd-city-pop .perf { margin: 8px 0 2px; padding: 10px 12px; border-radius: 14px; background: color-mix(in srgb, var(--pbc, var(--muted)) 7%, var(--card)); border: 1px solid color-mix(in srgb, var(--pbc, var(--muted)) 22%, var(--line)); }
.cd-city-pop .perf .ph { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.cd-city-pop .perf .pl { font-weight: 700; color: var(--fg); }
.cd-city-pop .perf .pbadge { display: inline-block; padding: 1px 8px; border-radius: 999px; font: 700 11px var(--sans); color: var(--pbc); background: color-mix(in srgb, var(--pbc) 16%, transparent); }
.cd-city-pop .perf .ps { font: 800 15px var(--sans); color: var(--fg); font-variant-numeric: tabular-nums; }
.cd-city-pop .perf .pe { font: 600 11px var(--sans); color: var(--muted); }
.cd-city-pop .perf .pparts { display: grid; gap: 4px; margin-top: 8px; }
.cd-city-pop .perf .pparts > div { display: grid; grid-template-columns: 1fr 72px 28px; align-items: center; gap: 8px; font-size: 12px; }
.cd-city-pop .perf .pparts .l { color: var(--muted); }
.cd-city-pop .perf .pparts .bar { height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--fg) 8%, transparent); overflow: hidden; }
.cd-city-pop .perf .pparts .bar i { display: block; height: 100%; border-radius: 3px; background: var(--h-ok); }
.cd-city-pop .perf .pparts .bar i.low { background: var(--h-warn); }
.cd-city-pop .perf .pparts b { text-align: right; font-variant-numeric: tabular-nums; color: var(--fg); }
.cd-city-pop .perf .pfix { margin: 8px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--fg); }
.cd-city-board .pteam { font: 800 16px var(--sans); line-height: 1.3; }
.cd-city-board .pteam .pbw { white-space: nowrap; }
.cd-city-board .pneeds { font: 600 12.5px/1.4 var(--sans); color: var(--h-warn, var(--ink)); margin-top: 4px; }
.cd-gx .health4 .pb-perf b { color: var(--h-ok); } .cd-gx .health4 .pb-watch b { color: var(--h-warn); } .cd-gx .health4 .pb-refine b { color: var(--h-bad); } .cd-gx .health4 .pb-nodata b { color: var(--h-steady, var(--muted)); }
.cd-city-svg .wx.nodata .wcloud circle, .cd-city-svg .wcloud.plain circle { fill: #f3e6d8; }
.cd-city-svg .rwpost { stroke: #8c8278; stroke-width: 1; }
.cd-city-svg .rwsign path { fill: #e8a23d; stroke: #7a4e10; stroke-width: .5; } .cd-city-svg .rwsign path.rwman { fill: none; stroke: #3b2a12; stroke-width: .8; }
/* Street lamps read as lamps, not signals (Benjamin Nov 19): a white glow under a hood on an arm */
.cd-city-svg .lamp { fill: #fffaf0; stroke: #d9cfc4; stroke-width: .4; } .cd-city-svg .lamparm { stroke: #94a3b8; stroke-width: 1; } .cd-city-svg .lamphood { fill: #6b6259; }
/* Long histories: month labels placed on the track (Benjamin Nov 19, a year of weeks) */
.cd-city-time .ticks.many { position: relative; display: block; height: 15px; }
.cd-city-time .ticks.many span { position: absolute; top: 0; white-space: nowrap; }
.cd-city-time .ticks.many span.mid { transform: translateX(-50%); } .cd-city-time .ticks.many span.end { transform: translateX(-100%); }
/* Full page on a computer: the open land behind the whole city card (Benjamin Nov 19), faded toward the card's edges */
.cd-city { position: relative; }
.cd-city > .cd-land { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; animation: cd-city-drift 9s ease-in-out infinite alternate;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 4%, #000 96%, transparent); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 4%, #000 96%, transparent); mask-composite: intersect; }
.cd-city:not(.full):has(> .cd-land) > .cd-city-scroll, .cd-city:not(.full):has(> .cd-land) > .cd-city-drawer { position: relative; z-index: 1; }
.cd-city.full:has(> .cd-land) > .cd-city-scroll { z-index: 1; } .cd-city.full > .cd-land { -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent), linear-gradient(to bottom, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent), linear-gradient(to bottom, transparent, #000 5%, #000 95%, transparent); }
.cd-city:has(> .cd-land) .cd-city-time { background: var(--card); box-shadow: var(--shadow); }
.cd-city:has(> .cd-land) .cd-city-cap > p { background: color-mix(in srgb, var(--card) 92%, transparent); border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow); }
.cd-city:has(> .cd-land) .cd-city-leg button, .cd-city:has(> .cd-land) .cd-city-howbtn { box-shadow: var(--shadow); }
@media (prefers-reduced-motion: reduce) { .cd-city > .cd-land { animation: none; } }
.cd-land .lane { stroke: color-mix(in srgb, var(--card) 40%, #fbeee0); stroke-width: 1.4; stroke-dasharray: 7 8; opacity: .8; }
.cd-land .road { stroke: none; } .cd-land .water { stroke: color-mix(in srgb, #86add7 50%, transparent); stroke-width: .8; }
.cd-land .leaf { fill: #8fb98f; } .cd-land .leaf.hi { fill: #b9d4b5; } .cd-land .leaf.pine { fill: #6f9f7a; } .cd-land .shadow { fill: #1c1c1b; opacity: .08; }
.cd-land { opacity: .8; }
@media (min-width: 1240px) and (hover: hover) and (pointer: fine) { .cd-hub-box .cd-city:not(.full) > svg.cd-land.cd-land { position: absolute; width: 100%; max-width: none; margin: 0; } }
:root[data-cd-theme="dark"] .cd-land { opacity: .5; } @media (prefers-color-scheme: dark) { :root[data-cd-theme="auto"] .cd-land { opacity: .5; } }
.cd-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.cd-city-pop { overscroll-behavior: contain; }
/* Nov 19: the district panel keeps its name and close button at the top and its action button at the bottom while its middle scrolls */
.cd-city:not(.narrow) .cd-city-pop .hd { position: sticky; top: -14px; z-index: 2; margin: -14px -16px 0; padding: 14px 16px 8px; background: var(--card); border-radius: 18px 18px 0 0; }
.cd-city:not(.narrow) .cd-city-pop .go { position: sticky; bottom: 0; z-index: 2; box-shadow: 0 -10px 14px 2px var(--card), 0 14px 0 14px var(--card); }
/* Nov 19: one sun for the whole city, placed by the time of day */
.cd-city-svg .citysun .halo { fill: #fbbf24; opacity: .16; }
.cd-city-svg .citysun .core { fill: #fbbf24; stroke: #f59e0b; stroke-width: 1.5; }
.cd-city-svg .citysun .ray { stroke: #f59e0b; stroke-width: 2.2; stroke-linecap: round; }
.cd-city-svg .citysun[data-low="1"] .core { fill: #fb923c; stroke: #ea580c; }
.cd-city-svg .citysun[data-low="1"] .ray { stroke: #ea580c; }
.cd-city-svg .citysun[data-low="1"] .halo { fill: #fb923c; opacity: .2; }
/* Nov 19: the time slider floats small and see-through at the top right of the city on a computer (the district panel opens under it) */
.cd-city-time.float { position: absolute; z-index: 5; top: 52px; right: 14px; width: 284px; box-sizing: border-box; gap: 2px; padding: 7px 11px 6px; border-radius: 14px;
  background: color-mix(in srgb, var(--card) 66%, transparent) !important; -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2);
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent); box-shadow: 0 4px 14px rgba(0,0,0,.08) !important; }
.cd-city-time.float .tr { gap: 6px; font-size: 11.5px; flex-wrap: nowrap; }
.cd-city-time.float .tl { font-size: 9.5px; }
.cd-city-time.float .tw { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cd-city-time.float .stage { padding: 1px 7px; font-size: 10px; flex: none; }
.cd-city-time.float .today { padding: 2px 8px; font-size: 10.5px; flex: none; }
.cd-city-time.float input[type=range] { margin: 0; height: 16px; }
.cd-city-time.float .ticks { font-size: 9.5px; }
.cd-city-time.float .ticks.many { height: 12px; }
.cd-city.full .cd-city-time.float { top: max(10px, env(safe-area-inset-top)); right: max(14px, env(safe-area-inset-right)); }
.cd-city.full.emb .cd-city-time.float { top: 64px; }
/* Nov 19: sidewalks read as sidewalks, with a curb line along the road */
.cd-city { --city-pave: color-mix(in srgb, var(--card) 70%, #fff); --city-curb: color-mix(in srgb, var(--fg) 22%, var(--card)); }
:root[data-cd-theme="light"] .cd-city { --city-pave: #FBF6EF; --city-curb: #DCCBB8; }
:root[data-cd-theme="dark"] .cd-city { --city-pave: color-mix(in srgb, var(--fg) 17%, var(--card)); --city-curb: color-mix(in srgb, var(--fg) 30%, var(--card)); }
@media (prefers-color-scheme: light) { :root[data-cd-theme="auto"] .cd-city { --city-pave: #FBF6EF; --city-curb: #DCCBB8; } }
@media (prefers-color-scheme: dark) { :root[data-cd-theme="auto"] .cd-city { --city-pave: color-mix(in srgb, var(--fg) 17%, var(--card)); --city-curb: color-mix(in srgb, var(--fg) 30%, var(--card)); } }
.cd-city-svg .curb { stroke: var(--city-curb); stroke-width: 1; fill: none; }
/* Nov 19: an agent's own Performance card, opened from the band chip by its title or the band in its tab pill */
.cd-agent-tab .cd-head .cd-pfix { flex-basis: auto; text-align: left; margin: -6px 0 0 62px; max-width: 70ch; font-size: 13px; }
button.cd-stag { cursor: pointer; gap: 8px; align-items: center; font: 700 10.5px var(--mono); }
button.cd-stag:hover { border-color: color-mix(in srgb, var(--fg) 30%, var(--line)); }
button.cd-stag:focus-visible { outline: 2px solid var(--hub); outline-offset: 2px; }
button.cd-stag .pdmore { font: 600 10.5px var(--sans); letter-spacing: 0; text-transform: none; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
button.cd-stag .pdmore::after { content: ""; width: 6px; height: 6px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
button.cd-stag[aria-expanded="true"] .pdmore::after { transform: translateY(1px) rotate(-135deg); }
.cd-tab .pband { cursor: pointer; }
.cd-pdet { margin: 4px 0 0 62px; max-width: 760px; padding: 16px 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; font-size: 13px; color: var(--fg); }
.cd-pdet[hidden] { display: none; }
.cd-pdet .pdh { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.cd-pdet .pdh .pbw { font: 800 18px var(--sans); }
.cd-pdet .pds, .cd-pdet .pdn { color: var(--muted); font-size: 12.5px; margin: 0; }
.cd-pdet .pdparts { display: flex; flex-direction: column; gap: 10px; }
.cd-pdet .pdp { border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent); padding-top: 9px; }
.cd-pdet .pdt { display: grid; grid-template-columns: minmax(150px, auto) 1fr minmax(90px, 160px) 44px; align-items: center; gap: 10px; }
.cd-pdet .pdt b { font-weight: 700; }
.cd-pdet .pdw { color: var(--muted); font-size: 11.5px; }
.cd-pdet .pdbar { display: block; height: 6px; border-radius: 99px; background: color-mix(in srgb, var(--fg) 8%, transparent); overflow: hidden; }
.cd-pdet .pdbar i { display: block; height: 100%; border-radius: inherit; background: var(--muted); }
.cd-pdet .pdbar i.ok { background: var(--pb-perf, #4d7c4d); } .cd-pdet .pdbar i.mid { background: var(--pb-watch, #a16207); } .cd-pdet .pdbar i.low { background: var(--pb-refine, #c2410c); }
.cd-pdet .pdt em { font: 800 15px var(--sans); font-style: normal; text-align: right; font-variant-numeric: tabular-nums; }
.cd-pdet .pdf { margin: 4px 0 0; color: var(--fg); opacity: .85; line-height: 1.45; }
.cd-pdet .pdsrc { color: var(--muted); }
.cd-pdet .pdtrend { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cd-pdet .pdl { font: 700 10.5px var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-right: 2px; }
.cd-pdet .pdw2 { display: inline-flex; flex-direction: column; padding: 6px 10px; border-radius: 12px; border: 1px solid var(--line); }
.cd-pdet .pdw2 small { color: var(--muted); font-size: 11px; } .cd-pdet .pdw2 b { font-size: 13px; }
.cd-pdet .pdwhy, .cd-pdet .pdfix { margin: 0; line-height: 1.5; }
.cd-pdet .pdsug { padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--fg) 4%, var(--card)); }
.cd-pdet .pdsug .pdsn { color: var(--muted); font-size: 12px; }
.cd-pdet .pdsug ul { margin: 8px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; line-height: 1.45; }
.cd-pdet .pdsug p { margin: 8px 0 0; }
.cd-pdet .pdsug .pdcoach li { display: flex; flex-direction: column; gap: 2px; }
.cd-pdet .pdsug .pdcoach .pdcf { font-weight: 600; }
.cd-pdet .pdsug .pdcoach .pdcw { color: var(--muted); font-size: 12.5px; }
.cd-pfixnote { display: block; font: 500 12px/1.45 var(--sans); color: var(--muted); margin: 0 0 4px; max-width: 70ch; }
.cd-agent-tab .cd-head .cd-pfixnote { flex-basis: 100%; margin: 2px 0 0 62px; }
@media (max-width: 640px) {
  .cd-agent-tab .cd-head .cd-pfix, .cd-agent-tab .cd-head .cd-pfixnote, .cd-pdet { margin-left: 0; }
  .cd-pdet { padding: 14px; }
  .cd-pdet .pdt { grid-template-columns: 1fr 44px; row-gap: 4px; }
  .cd-pdet .pdt .pdw { grid-column: 1; grid-row: 2; } .cd-pdet .pdt .pdbar { grid-column: 1 / -1; grid-row: 3; } .cd-pdet .pdt em { grid-column: 2; grid-row: 1; }
}
.cd-city-time.float .tl { display: none; }
