:root {
  /* PetScreening brand */
  --pack-blue: #1F2257;
  --retriever-rust: #B17455;
  --tabby-yellow: #E2AB58;
  --sky-blue: #DAEBF5;
  --succulent-green: #8DAEA7;
  --catnip-green: #677848;
  --dog-bone-white: #F9F4E6;
  --whisker-beige: #D3CEBD;
  --greyhound-gray: #AFB2B3;
  --smokey-gray: #636569;
  --great-dane-gray: #4F5155;
  --cornflower-blue: #7D9BC1;
  --chew-toy-orange: #DD7B45;
  --fire-hydrant-red: #CF5A3F;
  --purrfect-purple: #685272;
  --font-primary: 'Poppins', Arial, sans-serif;
  --font-serif: 'Lora', Georgia, serif;
  --surface: #ffffff;
  --bg: #FBF8F0;
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--great-dane-gray);
  font-family: var(--font-primary); font-size: 14px;
}
h1, h2 { font-family: var(--font-serif); color: var(--pack-blue); font-weight: 700; }
h2 { font-size: 17px; margin: 0 0 12px; }
h2 .sub { font-family: var(--font-primary); font-weight: 400; font-size: 12px; color: var(--smokey-gray); margin-left: 8px; }

/* topbar — slim navy strip (navy used sparingly, as an accent bar) */
.topbar {
  display: flex; align-items: center; gap: 24px;
  background: var(--pack-blue); color: #fff; padding: 10px 22px;
}
.logo { height: 26px; }
.nav-btn {
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35);
  border-radius: 18px; padding: 6px 16px; font-family: var(--font-primary);
  font-size: 13px; cursor: pointer;
}
.nav-btn.active { background: var(--tabby-yellow); color: var(--pack-blue); border-color: var(--tabby-yellow); font-weight: 600; }
.nav-select {
  border-radius: 18px; padding: 6px 12px; border: 1px solid rgba(255,255,255,.35);
  background: transparent; color: #fff; font-family: var(--font-primary); font-size: 13px;
}
.nav-select option { color: var(--great-dane-gray); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.data-age { font-size: 11px; color: rgba(255,255,255,.7); }

.banner {
  background: var(--sky-blue); color: var(--pack-blue); padding: 10px 22px; font-size: 13px;
}
.banner.error { background: #F7E0DA; color: var(--fire-hydrant-red); }
.hidden { display: none !important; }

/* filters */
.filters {
  display: flex; gap: 10px; padding: 14px 22px; flex-wrap: wrap; align-items: center;
}
.filters select, .filters input {
  font-family: var(--font-primary); font-size: 13px; color: var(--great-dane-gray);
  border: 1px solid var(--whisker-beige); border-radius: 8px; padding: 7px 10px;
  background: var(--surface); min-width: 160px;
}
.filters input { flex: 1; max-width: 280px; }
.ghost-btn {
  background: transparent; border: 1px solid var(--whisker-beige); color: var(--smokey-gray);
  border-radius: 8px; padding: 7px 12px; cursor: pointer; font-family: var(--font-primary); font-size: 12px;
}
.ghost-btn:hover { border-color: var(--smokey-gray); }

.view { padding: 0 22px 40px; max-width: 1440px; margin: 0 auto; }

/* stat tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile {
  background: var(--surface); border: 1px solid #EFEAE0; border-radius: 12px; padding: 14px 16px;
}
.tile .label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--smokey-gray); }
.tile .value { font-family: var(--font-serif); font-size: 26px; color: var(--pack-blue); margin-top: 4px; }
.tile .value.warn { color: var(--fire-hydrant-red); }
.tile .value.good { color: var(--catnip-green); }
.tile .hint { font-size: 11px; color: var(--greyhound-gray); margin-top: 2px; }

.card {
  background: var(--surface); border: 1px solid #EFEAE0; border-radius: 12px;
  padding: 18px 20px; margin-bottom: 16px;
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 1000px) { .two-col { grid-template-columns: 1fr; } }

.chart-wrap { position: relative; height: 300px; }
.chart-wrap.tall { height: 460px; }

/* CSM cards */
.csm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.csm-card {
  border: 1px solid #EFEAE0; border-radius: 12px; padding: 14px 16px; cursor: pointer;
  transition: box-shadow .15s, transform .15s; background: var(--surface);
}
.csm-card:hover { box-shadow: 0 4px 14px rgba(31,34,87,.12); transform: translateY(-1px); }
.csm-card .name { font-family: var(--font-serif); font-size: 16px; color: var(--pack-blue); }
.csm-card .row { display: flex; justify-content: space-between; font-size: 12px; margin-top: 6px; }
.csm-card .row .k { color: var(--smokey-gray); }
.csm-card .gap-neg { color: var(--fire-hydrant-red); font-weight: 600; }
.csm-card .gap-pos { color: var(--catnip-green); font-weight: 600; }
.csm-card .nodata { font-size: 12px; color: var(--greyhound-gray); margin-top: 8px; font-style: italic; }
.csm-card .starbadge { color: var(--tabby-yellow); font-weight: 600; }

/* legend */
.legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; font-size: 12px; }
.legend .item { display: flex; align-items: center; gap: 6px; color: var(--smokey-gray); }
.legend .swatch { width: 12px; height: 12px; border-radius: 3px; }

/* table */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 12.5px; }
th {
  text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em;
  color: var(--smokey-gray); border-bottom: 2px solid var(--dog-bone-white); padding: 8px 8px; white-space: nowrap;
}
td { padding: 8px 8px; border-bottom: 1px solid #F3EFE6; vertical-align: top; }
tr:hover td { background: #FCFAF4; }
th.num, td.num { text-align: right; }
td .prop-name { font-weight: 500; color: var(--pack-blue); }
td .sub-line { font-size: 11px; color: var(--greyhound-gray); }
.reason-chip {
  display: inline-block; border-radius: 10px; padding: 2px 8px; font-size: 10.5px;
  color: #fff; margin: 1px 2px 1px 0; white-space: nowrap;
}
.star-btn { cursor: pointer; font-size: 16px; color: var(--whisker-beige); background: none; border: none; padding: 2px; }
.star-btn.on { color: var(--tabby-yellow); }
.action-link {
  display: inline-block; font-size: 11px; color: var(--pack-blue); border: 1px solid var(--sky-blue);
  background: var(--sky-blue); border-radius: 8px; padding: 2px 8px; margin: 1px 2px 1px 0;
  text-decoration: none; white-space: nowrap;
}
.action-link:hover { filter: brightness(.96); }
.action-link.report { background: var(--dog-bone-white); border-color: var(--whisker-beige); color: var(--retriever-rust); }
.action-link.disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }

/* engagement feed */
.scroll-y { max-height: 420px; overflow-y: auto; }
.feed-item { padding: 8px 4px; border-bottom: 1px solid #F3EFE6; display: flex; gap: 10px; }
.feed-item .when { color: var(--greyhound-gray); font-size: 11px; min-width: 74px; }
.feed-item .type {
  font-size: 10px; text-transform: uppercase; letter-spacing: .04em; border-radius: 8px;
  padding: 2px 7px; height: fit-content; color: #fff; min-width: 52px; text-align: center;
}
.feed-item .body { flex: 1; }
.feed-item .body .who { font-size: 11px; color: var(--smokey-gray); }
.feed-item .body .summ { font-size: 12px; color: var(--great-dane-gray); }
.feed-item .body .propname { font-size: 11px; color: var(--pack-blue); font-weight: 500; }

.am-header { display: flex; align-items: center; gap: 16px; padding: 14px 0 6px; }
.am-header h1 { margin: 0; font-size: 26px; }

.empty { color: var(--greyhound-gray); font-style: italic; padding: 14px; }

/* segmented control */
.seg { display: inline-flex; gap: 0; margin-left: 12px; border: 1px solid var(--whisker-beige); border-radius: 16px; overflow: hidden; vertical-align: middle; }
.seg-btn { background: transparent; border: none; padding: 4px 14px; font-family: var(--font-primary); font-size: 12px; color: var(--smokey-gray); cursor: pointer; }
.seg-btn.active { background: var(--tabby-yellow); color: var(--pack-blue); font-weight: 600; }

/* feed filter chips */
.feed-filters { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.chip { border: 1px solid var(--whisker-beige); background: transparent; border-radius: 14px; padding: 3px 12px; font-family: var(--font-primary); font-size: 11.5px; color: var(--greyhound-gray); cursor: pointer; }
.chip.on { border-color: var(--chip); color: var(--great-dane-gray); background: color-mix(in srgb, var(--chip) 14%, white); }

/* automated / personalized tags */
.auto-tag { font-size: 9.5px; text-transform: uppercase; letter-spacing: .05em; border-radius: 8px; padding: 1px 7px; margin-left: 6px; vertical-align: 1px; }
.auto-tag.auto { background: var(--dog-bone-white); color: var(--smokey-gray); border: 1px solid var(--whisker-beige); }
.auto-tag.pers { background: var(--sky-blue); color: var(--pack-blue); }

/* expandable feed detail */
.feed-item.expandable { cursor: pointer; }
.feed-item .detail { margin-top: 8px; padding: 10px 12px; background: #FCFAF4; border-left: 3px solid var(--whisker-beige); font-size: 12px; white-space: pre-wrap; color: var(--great-dane-gray); max-height: 320px; overflow-y: auto; }

/* modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(31,34,87,.35); display: flex; align-items: center; justify-content: center; z-index: 50; }
.modal { background: var(--surface); border-radius: 14px; width: min(720px, 92vw); max-height: 82vh; display: flex; flex-direction: column; box-shadow: 0 18px 50px rgba(31,34,87,.3); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 8px; }
.modal-head h2 { margin: 0; font-size: 16px; }
.modal-body { padding: 8px 20px 20px; overflow-y: auto; }
.badge { background: var(--fire-hydrant-red); color: #fff; border-radius: 9px; font-size: 10px; padding: 1px 6px; margin-left: 4px; }

/* report jobs */
.job { border-bottom: 1px solid #F3EFE6; padding: 10px 0; }
.job-head { font-size: 13px; }
.job-head .who { color: var(--greyhound-gray); font-size: 11px; }
.job-status { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; border-radius: 8px; padding: 2px 8px; margin-right: 8px; }
.job-status.queued { background: var(--dog-bone-white); color: var(--smokey-gray); }
.job-status.running { background: var(--sky-blue); color: var(--pack-blue); }
.job-status.done { background: #E4EDDA; color: var(--catnip-green); }
.job-status.done_empty { background: var(--dog-bone-white); color: var(--smokey-gray); }
.job-status.failed { background: #F7E0DA; color: var(--fire-hydrant-red); }
.job-err { color: var(--fire-hydrant-red); font-size: 12px; margin-top: 4px; }
.job-log { background: #FCFAF4; font-size: 10.5px; padding: 8px; border-radius: 6px; overflow-x: auto; color: var(--smokey-gray); }

/* report job polish */
.spinner { display: inline-block; width: 13px; height: 13px; border: 2px solid var(--whisker-beige); border-top-color: var(--pack-blue); border-radius: 50%; animation: spin .8s linear infinite; margin-right: 6px; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }
.job-note { font-size: 11.5px; color: var(--smokey-gray); margin: 4px 0; }
.sum-row { margin: 6px 0 4px; display: flex; flex-wrap: wrap; gap: 5px; }
.sum-chip { font-size: 11px; border: 1px solid var(--whisker-beige); background: var(--dog-bone-white); color: var(--great-dane-gray); border-radius: 10px; padding: 2px 9px; }
.sum-chip.main { background: var(--sky-blue); border-color: var(--sky-blue); color: var(--pack-blue); font-weight: 600; }

/* confirm dialog + primary button */
.confirm-box p { margin: 6px 0; font-size: 14px; }
.confirm-row { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }
.primary-btn { background: var(--pack-blue); color: #fff; border: none; border-radius: 8px; padding: 8px 18px; font-family: var(--font-primary); font-size: 13px; font-weight: 600; cursor: pointer; }
.primary-btn:hover { background: #2b2f6e; }
.mode-tag { font-size: 9px; background: var(--tabby-yellow); color: var(--pack-blue); border-radius: 6px; padding: 1px 5px; vertical-align: 2px; font-weight: 600; }
details.history { margin-top: 14px; }
details.history summary { font-size: 12px; color: var(--smokey-gray); cursor: pointer; padding: 6px 0; }
.dl-link.downloaded { opacity: .55; }

/* feed affordance + search */
.feed-q { font-family: var(--font-primary); font-size: 12px; border: 1px solid var(--whisker-beige); border-radius: 8px; padding: 6px 10px; margin-bottom: 8px; width: min(320px, 100%); color: var(--great-dane-gray); }
.feed-item .caret { color: var(--greyhound-gray); font-size: 11px; transition: transform .15s; margin-top: 2px; }
.feed-item.open .caret { transform: rotate(90deg); }
.feed-item.expandable:hover { background: #FCFAF4; }
#parent-table tbody tr, #colin-parent-table tbody tr { cursor: pointer; }

/* moneyball detail viewer + csv button */
.kv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 22px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 5px 2px; border-bottom: 1px solid #F5F1E8; font-size: 12px; }
.kv .k { color: var(--smokey-gray); }
.kv .v { color: var(--great-dane-gray); font-weight: 500; text-align: right; word-break: break-word; }
.modal-feed-scroll { max-height: 55vh; overflow-y: auto; }
.csv-btn { margin-left: 10px; text-decoration: none; font-size: 11px; padding: 4px 10px; }
@media (max-width: 800px) { .kv-grid { grid-template-columns: 1fr; } }

/* PMS footprint chips in the parent detail modal */
.pms-block { margin: 2px 0 12px; padding: 10px 12px; background: #FCFAF4; border-radius: 10px; }
.pms-title { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--smokey-gray); margin-bottom: 6px; }
.pms-chip { display: inline-block; font-size: 11.5px; border-radius: 10px; padding: 3px 10px; margin: 2px 4px 2px 0; border: 1px solid var(--whisker-beige); }
.pms-chip.on { background: var(--sky-blue); border-color: var(--sky-blue); color: var(--pack-blue); font-weight: 600; }
.pms-chip.off { background: transparent; color: var(--greyhound-gray); opacity: .6; text-decoration: line-through; }

/* ══════════ PLAYBOOK ══════════ */
.pb-overlay {
  position: fixed; inset: 0; z-index: 80; background: var(--bg);
  opacity: 0; transition: opacity .22s ease;
}
.pb-overlay.open { opacity: 1; }
.pb-scroll { position: absolute; inset: 0; overflow-y: auto; scroll-behavior: smooth; }
.pb-close {
  position: fixed; top: 18px; right: 22px; z-index: 82; width: 38px; height: 38px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: rgba(31,34,87,.75);
  color: #fff; font-size: 15px; cursor: pointer; backdrop-filter: blur(6px);
}
.pb-close:hover { background: var(--pack-blue); }

.pb-hero {
  background: linear-gradient(135deg, #1F2257 0%, #2b2f6e 55%, #685272 100%);
  color: #fff; padding: 58px 30px 46px;
}
.pb-hero-inner { max-width: 900px; margin: 0 auto; }
.pb-eyebrow {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--tabby-yellow); margin-bottom: 12px;
  animation: pbUp .5s ease both;
}
.pb-hero h1 {
  font-family: var(--font-serif); font-size: 40px; color: #fff; margin: 0 0 14px;
  animation: pbUp .5s .06s ease both;
}
.pb-hero p { font-size: 15px; line-height: 1.65; color: rgba(255,255,255,.82); max-width: 680px; margin: 0; animation: pbUp .5s .12s ease both; }
.pb-hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; animation: pbUp .5s .18s ease both; }
.pb-hchip { font-size: 12px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: 20px; padding: 6px 14px; color: rgba(255,255,255,.9); }
.pb-hchip b { color: var(--tabby-yellow); font-weight: 600; margin-right: 5px; }

.pb-nav {
  position: sticky; top: 0; z-index: 5; display: flex; gap: 4px; overflow-x: auto;
  background: rgba(251,248,240,.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid #EFEAE0; padding: 10px 30px;
}
.pb-navlink {
  font-size: 12px; color: var(--smokey-gray); text-decoration: none; white-space: nowrap;
  padding: 6px 13px; border-radius: 16px; transition: background .15s, color .15s;
}
.pb-navlink:hover { background: var(--dog-bone-white); color: var(--pack-blue); }
.pb-navlink.active { background: var(--tabby-yellow); color: var(--pack-blue); font-weight: 600; }

.pb-sec { max-width: 980px; margin: 0 auto; padding: 46px 30px 10px; }
.pb-h2 { font-family: var(--font-serif); font-size: 26px; color: var(--pack-blue); margin: 0 0 10px; }
.pb-lede { font-size: 14px; line-height: 1.7; color: var(--great-dane-gray); max-width: 760px; margin: 0 0 22px; }

.pb-anim { opacity: 0; transform: translateY(14px); transition: opacity .45s ease, transform .45s cubic-bezier(.2,.7,.3,1); }
.pb-anim.in { opacity: 1; transform: none; }
@keyframes pbUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.pb-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.pb-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.pb-card {
  background: var(--surface); border: 1px solid #EFEAE0; border-radius: 14px; padding: 20px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.pb-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(31,34,87,.09); }
.pb-card h3 { font-family: var(--font-serif); font-size: 16px; color: var(--pack-blue); margin: 0 0 8px; }
.pb-card p { font-size: 13px; line-height: 1.65; margin: 0; color: var(--great-dane-gray); }
.pb-num {
  width: 26px; height: 26px; border-radius: 50%; background: var(--tabby-yellow);
  color: var(--pack-blue); font-weight: 700; font-size: 13px; display: flex;
  align-items: center; justify-content: center; margin-bottom: 12px;
}

/* line illustration */
.pb-chartdemo { background: var(--surface); border: 1px solid #EFEAE0; border-radius: 14px; padding: 18px 20px 12px; margin-bottom: 22px; }
.pb-svg { width: 100%; height: auto; }
.pb-axis { stroke: #E8E2D4; stroke-width: 1; }
.pb-line { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1000; stroke-dashoffset: 1000; }
.pb-anim.in .pb-line { animation: pbDraw 1.4s ease forwards; }
.pb-anim.in .pb-act { animation-delay: .1s; }
.pb-anim.in .pb-bau { animation-delay: .25s; }
.pb-anim.in .pb-tgt { animation-delay: .4s; }
.pb-anim.in .pb-pot { animation-delay: .55s; }
@keyframes pbDraw { to { stroke-dashoffset: 0; } }
.pb-act { stroke: #1F2257; }
.pb-bau { stroke: #AFB2B3; stroke-dasharray: 4 4; }
.pb-tgt { stroke: #B17455; stroke-dasharray: 6 5; }
.pb-pot { stroke: #E2AB58; stroke-dasharray: 8 5; }
.pb-dot { fill: #1F2257; }
.pb-today { stroke: #D3CEBD; stroke-width: 1; stroke-dasharray: 3 3; }
.pb-svgtext { font-family: var(--font-primary); font-size: 10px; fill: var(--greyhound-gray); }
.pb-legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12px; color: var(--smokey-gray); padding-top: 6px; }
.pb-legend .sw { display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin-right: 7px; vertical-align: 3px; }
.sw-act { background: #1F2257; } .sw-bau { background: #AFB2B3; }
.sw-tgt { background: #B17455; } .sw-pot { background: #E2AB58; }

.pb-defs { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.pb-def {
  background: var(--surface); border: 1px solid #EFEAE0; border-left: 4px solid var(--accent, var(--pack-blue));
  border-radius: 12px; padding: 18px 20px; transition: transform .18s ease, box-shadow .18s ease;
}
.pb-def:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(31,34,87,.09); }
.pb-def h3 { font-family: var(--font-serif); font-size: 17px; color: var(--pack-blue); margin: 0 0 8px; }
.pb-tag { font-family: var(--font-primary); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; background: var(--dog-bone-white); color: var(--smokey-gray); border-radius: 8px; padding: 2px 8px; margin-left: 6px; vertical-align: 2px; font-weight: 500; }
.pb-what { font-size: 13.5px; line-height: 1.6; color: var(--great-dane-gray); margin: 0 0 8px; }
.pb-how { font-size: 12.5px; line-height: 1.65; color: var(--smokey-gray); margin: 0; }
.pb-def code, .pb-table code, .pb-card code { background: var(--dog-bone-white); border-radius: 4px; padding: 1px 5px; font-size: 11.5px; color: var(--retriever-rust); }

.pb-note, .pb-warn {
  border-radius: 12px; padding: 16px 18px; font-size: 13px; line-height: 1.7; margin-top: 18px;
  color: var(--great-dane-gray);
}
.pb-note { background: var(--sky-blue); }
.pb-warn { background: #F9EEE9; border-left: 4px solid var(--fire-hydrant-red); }

.pb-tilegrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.pb-tilecard { background: var(--surface); border: 1px solid #EFEAE0; border-radius: 12px; padding: 16px 18px; transition: transform .18s ease; }
.pb-tilecard:hover { transform: translateY(-2px); }
.pb-tl { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--pack-blue); font-weight: 600; margin-bottom: 7px; }
.pb-tilecard p { font-size: 12.5px; line-height: 1.6; margin: 0; color: var(--great-dane-gray); }
.pb-mini { display: block; margin-top: 7px; font-size: 11px; color: var(--retriever-rust); background: var(--dog-bone-white); border-radius: 6px; padding: 3px 8px; }

.pb-reasons { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px; margin-bottom: 20px; }
.pb-reason { background: var(--surface); border: 1px solid #EFEAE0; border-radius: 12px; padding: 14px 16px 14px 18px; position: relative; overflow: hidden; }
.pb-reason::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--c); }
.pb-reason b { display: block; font-size: 13.5px; color: var(--pack-blue); margin-bottom: 4px; }
.pb-reason span { font-size: 12.5px; line-height: 1.6; color: var(--great-dane-gray); }

.pb-flow { display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.pb-step { flex: 1; min-width: 170px; background: var(--surface); border: 1px solid #EFEAE0; border-radius: 12px; padding: 14px 16px; }
.pb-step span { display: block; font-size: 13.5px; font-weight: 600; color: var(--pack-blue); }
.pb-step small { font-size: 11.5px; color: var(--greyhound-gray); }
.pb-arrow { align-self: center; color: var(--tabby-yellow); font-size: 20px; font-weight: 700; }

.pb-table { width: 100%; border-collapse: collapse; font-size: 12.5px; background: var(--surface); border: 1px solid #EFEAE0; border-radius: 12px; overflow: hidden; }
.pb-table th { background: var(--dog-bone-white); text-align: left; padding: 11px 14px; font-size: 11px; }
.pb-table td { padding: 11px 14px; border-bottom: 1px solid #F3EFE6; vertical-align: top; line-height: 1.55; }

.pb-caveats { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.pb-caveats li { background: var(--surface); border: 1px solid #EFEAE0; border-radius: 10px; padding: 13px 16px; font-size: 13px; line-height: 1.65; color: var(--great-dane-gray); }
.pb-caveats b { color: var(--pack-blue); }

.pb-footer { max-width: 980px; margin: 34px auto 0; padding: 26px 30px 60px; border-top: 1px solid #EFEAE0; }
.pb-footer p { font-size: 13px; color: var(--smokey-gray); line-height: 1.7; margin: 0; }

@media (prefers-reduced-motion: reduce) {
  .pb-anim, .pb-overlay, .pb-card, .pb-def, .pb-tilecard { transition: none; }
  .pb-anim { opacity: 1; transform: none; }
  .pb-line { stroke-dashoffset: 0; }
  .pb-eyebrow, .pb-hero h1, .pb-hero p, .pb-hero-chips { animation: none; }
}
@media (max-width: 640px) {
  .pb-hero { padding: 40px 20px 34px; }
  .pb-hero h1 { font-size: 29px; }
  .pb-sec { padding: 34px 20px 6px; }
}

/* playbook: step cards + mini table */
.pb-h3 { font-family: var(--font-serif); font-size: 19px; color: var(--pack-blue); margin: 30px 0 14px; }
.pb-steps { display: grid; gap: 12px; }
.pb-stepcard { background: var(--surface); border: 1px solid #EFEAE0; border-radius: 14px; padding: 20px 22px; }
.pb-stepcard h4 { font-family: var(--font-serif); font-size: 16px; color: var(--pack-blue); margin: 0 0 8px; }
.pb-stepcard p { font-size: 13.5px; line-height: 1.7; color: var(--great-dane-gray); margin: 0 0 10px; }
.pb-stepcard .pb-num { margin-bottom: 10px; }
.pb-fine { font-size: 12.5px !important; color: var(--smokey-gray) !important; border-left: 3px solid var(--whisker-beige); padding-left: 12px; margin-bottom: 0 !important; }
.pb-mini-table { margin: 12px 0 14px; font-size: 12px; }
.pb-mini-table td, .pb-mini-table th { padding: 8px 12px; }
.pb-mini-table tbody tr:hover td { background: #FCFAF4; }

/* prominent playbook CTA */
.pb-cta {
  background: var(--tabby-yellow); color: var(--pack-blue); border: 1px solid var(--tabby-yellow);
  border-radius: 8px; padding: 7px 14px; cursor: pointer; font-family: var(--font-primary);
  font-size: 12px; font-weight: 600; box-shadow: 0 0 0 0 rgba(226,171,88,.55);
  animation: pbPulse 2.6s ease-out 3;
}
.pb-cta:hover { background: #efbd6c; border-color: #efbd6c; }
@keyframes pbPulse {
  0% { box-shadow: 0 0 0 0 rgba(226,171,88,.55); }
  70% { box-shadow: 0 0 0 10px rgba(226,171,88,0); }
  100% { box-shadow: 0 0 0 0 rgba(226,171,88,0); }
}

/* table progressive disclosure */
.tbl-more { display: flex; align-items: center; gap: 8px; padding: 12px 4px 2px; flex-wrap: wrap; }
.tbl-count { font-size: 12px; color: var(--smokey-gray); margin-right: 4px; }
.tbl-btn { font-size: 11.5px; padding: 5px 12px; }
.tbl-btn.on { background: var(--dog-bone-white); border-color: var(--whisker-beige); color: var(--pack-blue); font-weight: 600; }

/* engagement feed toolbar */
.feed-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.feed-tools label { font-size: 11.5px; color: var(--smokey-gray); display: flex; align-items: center; gap: 5px; }
.feed-date { font-family: var(--font-primary); font-size: 12px; border: 1px solid var(--whisker-beige); border-radius: 8px; padding: 5px 8px; color: var(--great-dane-gray); }
.feed-count { font-size: 11.5px; color: var(--greyhound-gray); margin-left: auto; }

/* playbook coverage table states */
.pb-mini-table td.ok { color: var(--catnip-green); font-weight: 600; }
.pb-mini-table td.wip { color: var(--chew-toy-orange); font-weight: 600; }
.pb-mini-table td.soon { color: var(--smokey-gray); }
.pb-mini-table td.no { color: var(--greyhound-gray); }

/* ── multi-select typeahead picker ── */
.picker { position: relative; flex: 1; min-width: 320px; max-width: 620px; }
.picker-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 5px; }
.picker-chips:empty { display: none; }
.pick {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px;
  background: var(--surface); border: 1px solid var(--whisker-beige);
  border-radius: 16px; padding: 3px 6px 3px 4px; color: var(--great-dane-gray);
  animation: pickIn .18s ease both;
}
@keyframes pickIn { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
.pick.parent { border-color: var(--purrfect-purple); }
.pick.property { border-color: var(--cornflower-blue); }
.pick.text { border-color: var(--tabby-yellow); }
.pick-kind {
  font-style: normal; font-size: 9.5px; text-transform: uppercase; letter-spacing: .05em;
  border-radius: 10px; padding: 2px 7px; background: var(--dog-bone-white); color: var(--smokey-gray);
}
.pick.parent .pick-kind { background: #EDE7F0; color: var(--purrfect-purple); }
.pick.property .pick-kind { background: var(--sky-blue); color: var(--pack-blue); }
.pick.text .pick-kind { background: #FBF0DA; color: var(--retriever-rust); }
.pick-x { border: none; background: none; cursor: pointer; color: var(--greyhound-gray); font-size: 11px; padding: 0 3px; }
.pick-x:hover { color: var(--fire-hydrant-red); }
.picker-input {
  width: 100%; font-family: var(--font-primary); font-size: 13px; color: var(--great-dane-gray);
  border: 1px solid var(--whisker-beige); border-radius: 8px; padding: 7px 10px; background: var(--surface);
}
.picker-input:focus { outline: none; border-color: var(--cornflower-blue); box-shadow: 0 0 0 3px rgba(125,155,193,.16); }
.picker-menu {
  position: absolute; left: 0; right: 0; top: 100%; margin-top: 5px; z-index: 40;
  background: var(--surface); border: 1px solid #EFEAE0; border-radius: 12px;
  box-shadow: 0 12px 32px rgba(31,34,87,.16); max-height: 340px; overflow-y: auto;
  animation: pickIn .14s ease both;
}
.pick-opt { display: flex; gap: 9px; align-items: flex-start; padding: 9px 12px; cursor: pointer; border-bottom: 1px solid #F5F1E8; }
.pick-opt:last-child { border-bottom: none; }
.pick-opt:hover, .pick-opt.on { background: #FCFAF4; }
.pick-badge {
  font-size: 9.5px; text-transform: uppercase; letter-spacing: .05em; border-radius: 10px;
  padding: 2px 7px; margin-top: 2px; white-space: nowrap;
}
.pick-badge.parent { background: #EDE7F0; color: var(--purrfect-purple); }
.pick-badge.property { background: var(--sky-blue); color: var(--pack-blue); }
.pick-badge.text { background: #FBF0DA; color: var(--retriever-rust); }
.pick-body { flex: 1; min-width: 0; }
.pick-body b { display: block; font-size: 13px; font-weight: 500; color: var(--pack-blue); }
.pick-body small { display: block; font-size: 11px; color: var(--greyhound-gray); margin-top: 1px; }
.pick-note { padding: 9px 12px; font-size: 11px; color: var(--smokey-gray); background: var(--dog-bone-white); }
