/* ── In-app guide: sidebar "Guide" button, per-page side panel, first-visit hint, Playbook page ──
   js/guide/guide.js + js/guide/playbook-page.js. DESIGN_SYSTEM.md palette (indigo #5B53E8). */

/* Sidebar button — a normal nav item at the top of the sidebar bottom. */
.gd-btn.is-open { background: var(--accent-subtle, #EEEDFC); color: #5B53E8; }

/* ── Side panel (non-modal: the page stays usable beside it) ── */
.gd-panel {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 1200;
    width: min(440px, 100vw); display: flex; flex-direction: column;
    background: #fff; border-left: 1px solid #E7E8EC; box-shadow: -18px 0 40px rgba(20, 23, 31, .10);
    transform: translateX(16px); opacity: 0; transition: transform .18s ease, opacity .18s ease;
    font-family: var(--font, 'IBM Plex Sans', system-ui, sans-serif); color: #1F2430;
}
.gd-panel.is-in { transform: none; opacity: 1; }
.gd-head { position: relative; padding: 20px 22px 16px; border-bottom: 1px solid #EFF0F3; background: linear-gradient(180deg, #F7F6FE 0%, #fff 100%); }
.gd-kicker { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #5B53E8; }
.gd-kicker svg { width: 15px; height: 15px; }
.gd-kicker em { font-style: normal; font-weight: 600; letter-spacing: 0; text-transform: none; color: #6B7280; background: #fff; border: 1px solid #E6E3FB; border-radius: 999px; padding: 2px 8px; margin-left: 4px; }
.gd-title { margin: 10px 40px 4px 0; font-size: 20px; font-weight: 700; color: #14171F; }
.gd-one { margin: 0; font-size: 13.5px; line-height: 1.5; color: #4B5563; }
.gd-body { flex: 1; overflow-y: auto; padding: 16px 22px 8px; }
.gd-why { margin: 0 0 8px; font-size: 13px; line-height: 1.6; color: #374151; }
.gd-when { margin: 0 0 6px; font-size: 12.5px; color: #6B7280; }
.gd-when strong { color: #374151; }
.gd-sec { margin-top: 18px; }
.gd-sec h3 { margin: 0 0 9px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #6B7280; }
.gd-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.gd-steps li { display: flex; gap: 10px; font-size: 13px; line-height: 1.5; color: #1F2430; }
.gd-num { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; background: #EEEDFC; color: #5B53E8; font-size: 11.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.gd-credit { display: inline-flex; align-items: flex-start; gap: 5px; margin-top: 4px; font-size: 11.5px; color: #9A6B0E; background: #FDF6E7; border-radius: 6px; padding: 3px 7px; }
.gd-credit svg { flex: 0 0 auto; margin-top: 2px; }
.gd-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.gd-list li { display: flex; gap: 10px; font-size: 13px; line-height: 1.45; }
.gd-list li div { display: flex; flex-direction: column; gap: 2px; }
.gd-list strong { font-weight: 600; color: #1F2430; }
.gd-list span { color: #6B7280; font-size: 12.5px; }
.gd-ico { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 6px; display: flex; align-items: center; justify-content: center; margin-top: 1px; font-style: normal; }
.gd-ico--do { background: #E7F7EE; color: #15803D; }
.gd-ico--no { background: #FDECEC; color: #C2410C; }
.gd-watch { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 5px; font-size: 13px; line-height: 1.45; color: #374151; }
.gd-nexts { display: flex; flex-wrap: wrap; gap: 8px; }
.gd-next { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #E6E3FB; background: #F7F6FE; color: #5B53E8; border-radius: 8px; padding: 7px 11px; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.gd-next:hover { background: #EEEDFC; }
.gd-src { margin: 18px 0 10px; font-size: 12px; color: #6B7280; }
.gd-src summary { cursor: pointer; font-weight: 600; color: #6B7280; }
.gd-src ul { margin: 8px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.gd-src a { color: #5B53E8; text-decoration: none; }
.gd-src a:hover { text-decoration: underline; }
.gd-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 22px; border-top: 1px solid #EFF0F3; background: #FBFBFC; }
.gd-go, .gd-pb { display: inline-flex; align-items: center; gap: 6px; border-radius: 9px; padding: 0 14px; height: 36px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.gd-go { background: #5B53E8; color: #fff; border: 1px solid #5B53E8; }
.gd-go:hover { background: #4F47DE; }
.gd-pb { background: #fff; color: #5B53E8; border: 1px solid #E6E3FB; }
.gd-pb:hover { background: #F7F6FE; }

/* ── First-visit hint (anchored beside the sidebar Guide button) ── */
.gd-hint {
    position: fixed; z-index: 1150; max-width: 320px; display: flex; flex-direction: column; gap: 10px;
    background: #1F2242; color: #fff; border-radius: 12px; padding: 13px 14px; box-shadow: 0 12px 30px rgba(20, 23, 31, .25);
    transform: translateX(-6px); opacity: 0; transition: transform .2s ease, opacity .2s ease; font-size: 12.5px; line-height: 1.45;
}
.gd-hint.is-in { transform: none; opacity: 1; }
/* A dialog opened AFTER the hint must not sit under it (the hint is z 1150, dialogs 1000): hide it while any is open. */
body:has(.modal-overlay, .pf-modal-overlay, .aih-wz-overlay, [role="dialog"][aria-modal="true"]) .gd-hint { display: none; }
.gd-hint::before { content: ''; position: absolute; left: -6px; bottom: 16px; width: 12px; height: 12px; background: #1F2242; transform: rotate(45deg); border-radius: 2px; }
.gd-hint__txt { display: flex; flex-direction: column; gap: 3px; }
.gd-hint__txt strong { font-size: 13px; }
.gd-hint__txt span { color: #646B78; }
.gd-hint__act { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gd-hint__go { background: #fff; color: #1F2242; border: none; border-radius: 8px; padding: 6px 11px; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.gd-hint__x { background: transparent; border: none; color: #646B78; cursor: pointer; display: flex; padding: 4px; }
.gd-hint__x:hover { color: #fff; }

/* ── Playbook page (#playbook) — the standard 1320 content column (DESIGN_SYSTEM.md) ──
   `pbk-` prefix on purpose: products.css owns `.pb-page` (capped at 1160) for a different view. */
.pbk { max-width: 1320px; margin: 0 auto; padding: 28px 28px 80px; box-sizing: border-box; font-family: var(--font, 'IBM Plex Sans', system-ui, sans-serif); color: #1F2430; }
.pbk-loading { display: flex; align-items: center; gap: 10px; padding: 60px 0; justify-content: center; color: #6B7280; font-size: 13.5px; }
.pbk-spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #E0DCFB; border-top-color: #5B53E8; animation: pbk-spin .8s linear infinite; }
@keyframes pbk-spin { to { transform: rotate(360deg); } }

.pbk-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.pbk-head__l { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.pbk-head__ico { width: 42px; height: 42px; border-radius: 11px; background: #EEEDFC; color: #5B53E8; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.pbk-head h1 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; color: #14171F; }
.pbk-head p { margin: 5px 0 0; font-size: 14px; line-height: 1.55; color: #6B7280; max-width: 760px; }
.pbk-head p strong { color: #1F2430; font-weight: 600; }
.pbk-lens { display: flex; gap: 4px; background: #ECEDF1; border-radius: 11px; padding: 4px; flex: 0 0 auto; }
.pbk-lens__b { border: none; background: transparent; color: #6B7280; font: inherit; font-size: 13px; font-weight: 600; padding: 7px 15px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.pbk-lens__b.is-on { background: #fff; color: #14171F; box-shadow: 0 1px 2px rgba(16, 24, 40, .12); }

.pbk-tabs { display: flex; gap: 2px; margin-top: 22px; border-bottom: 1px solid #E9EAEE; overflow-x: auto; scrollbar-width: none; }
.pbk-tabs::-webkit-scrollbar { display: none; }
.pbk-tab { position: relative; display: inline-flex; align-items: center; gap: 7px; border: none; background: none; font: inherit; font-size: 13.5px; font-weight: 600; color: #8A93A1; padding: 10px 14px 13px; cursor: pointer; white-space: nowrap; }
.pbk-tab:hover { color: #1F2430; }
.pbk-tab.is-on { color: #14171F; }
.pbk-tab.is-on::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: #5B53E8; }
.pbk-tab__n { font-size: 11px; font-weight: 700; color: #646B78; background: #E6E8EC; padding: 1px 7px; border-radius: 999px; }
.pbk-tab.is-on .pbk-tab__n { color: #5B53E8; background: #EEEDFC; }
.pbk-body { padding-top: 22px; }

.pbk-note { margin: 12px 0; padding: 11px 14px; border: 1px solid #E9EAEE; border-radius: 12px; background: #FBFBFC; font-size: 13px; color: #4B5563; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pbk-note--err { border-color: #F3C9C9; color: #9F2D2D; background: #FFF7F7; }
.pbk-note--soft { border-style: dashed; border-color: #D9D6F8; background: #FCFCFF; }

/* KPIs */
.pbk-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.pbk-kpi { background: #fff; border: 1px solid #E9EAEE; border-radius: 13px; padding: 13px 14px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); min-width: 0; }
.pbk-kpi__l { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #646B78; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pbk-kpi__v { margin-top: 6px; font-size: 21px; font-weight: 700; letter-spacing: -0.01em; color: #14171F; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pbk-kpi__s { margin-top: 3px; font-size: 11.5px; color: #6B7280; line-height: 1.4; }
.pbk-kpi.is-good { border-color: #CFEEDB; }
.pbk-kpi.is-good .pbk-kpi__v { color: #15803D; }
.pbk-kpi.is-warn { border-color: #F2E2B8; }
.pbk-kpi.is-warn .pbk-kpi__v { color: #9A6B0E; }
.pbk-kpi.is-bad { border-color: #F5CFCF; }
.pbk-kpi.is-bad .pbk-kpi__v { color: #B91C1C; }
.pbk-fresh { margin: 9px 0 0; font-size: 12px; color: #6B7280; }

.pbk-sec { margin-top: 26px; }
.pbk-sec__h h2 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; color: #14171F; }
.pbk-sec__h p { margin: 4px 0 14px; font-size: 13.5px; color: #6B7280; line-height: 1.5; max-width: 820px; }
.pbk-sec__h--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.pbk-sec__h--row p { margin-bottom: 0; }

/* Priority cards */
.pbk-cards { display: flex; flex-direction: column; gap: 10px; }
.pbk-card { position: relative; display: flex; gap: 18px; justify-content: space-between; align-items: flex-start; background: #fff; border: 1px solid #E9EAEE; border-radius: 13px; padding: 15px 16px 15px 20px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); overflow: hidden; }
.pbk-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: #CBD0D8; }
.pbk-card.is-critical::before { background: #DC2626; }
.pbk-card.is-high::before { background: #D97706; }
.pbk-card.is-medium::before { background: #5B53E8; }
.pbk-card.is-opportunity::before { background: #16A34A; }
.pbk-card.is-extra { display: none; }
.pbk-card__main { flex: 1; min-width: 0; }
.pbk-card__top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pbk-sev { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: #F0F1F4; color: #5B6473; }
.pbk-card.is-critical .pbk-sev { background: #FEE2E2; color: #B91C1C; }
.pbk-card.is-high .pbk-sev { background: #FEF3C7; color: #92400E; }
.pbk-card.is-medium .pbk-sev { background: #EEEDFC; color: #3F38C9; }
.pbk-card.is-opportunity .pbk-sev { background: #DCFCE7; color: #15803D; }
.pbk-chip { font-size: 11px; font-weight: 600; color: #5B6473; background: #F4F5F7; border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.pbk-card__t { margin: 8px 0 0; font-size: 15px; font-weight: 700; color: #14171F; line-height: 1.35; }
.pbk-card__e { margin: 4px 0 0; font-size: 13px; color: #4B5563; line-height: 1.5; }
.pbk-why { margin-top: 8px; }
.pbk-why summary { cursor: pointer; font-size: 12.5px; font-weight: 600; color: #5B53E8; list-style: none; display: inline-flex; align-items: center; gap: 4px; }
.pbk-why summary::-webkit-details-marker { display: none; }
.pbk-why summary::after { content: '\25BE'; font-size: 10px; }
.pbk-why[open] summary::after { content: '\25B4'; }
.pbk-why p { margin: 6px 0 0; font-size: 13px; line-height: 1.55; color: #4B5563; max-width: 820px; }
.pbk-src { color: #5B53E8; text-decoration: none; font-size: 12px; font-weight: 500; white-space: nowrap; display: inline-flex; align-items: center; gap: 3px; }
.pbk-src:hover { text-decoration: underline; }
.pbk-card__act { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: 0 0 auto; }
.pbk-card__sub { display: flex; gap: 12px; }
.pbk-link { border: none; background: none; padding: 0; font: inherit; font-size: 12px; font-weight: 500; color: #646B78; cursor: pointer; }
.pbk-link:hover { color: #1F2430; text-decoration: underline; }
.pbk-more { margin-top: 10px; border: 1px dashed #DCDEE5; background: #fff; border-radius: 10px; padding: 9px 14px; width: 100%; font: inherit; font-size: 13px; font-weight: 600; color: #5B6473; cursor: pointer; }
.pbk-more:hover { border-color: #B9B4F6; color: #5B53E8; }
.pbk-hidden { margin-top: 14px; font-size: 12.5px; color: #6B7280; }
.pbk-hidden summary { cursor: pointer; font-weight: 600; }
.pbk-hidden ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pbk-hidden li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 8px 12px; border: 1px solid #ECEDF1; border-radius: 10px; background: #FBFBFC; }
.pbk-hidden li strong { color: #374151; font-weight: 600; }

/* Meta suggests — Meta's own recommendations, visually distinct from Adplex's priorities */
.pbk-meta-badge { display: inline-flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #1877F2; background: #E8F0FE; border-radius: 6px; padding: 3px 7px; margin-right: 6px; vertical-align: 2px; }
.pbk-meta-score { flex: 0 0 auto; font-size: 12.5px; color: #4B5563; background: #fff; border: 1px solid #E9EAEE; border-radius: 999px; padding: 6px 12px; cursor: help; white-space: nowrap; }
.pbk-meta-score strong { color: #1877F2; font-size: 14px; }
.pbk-card.is-meta::before { background: #1877F2; }
.pbk-card.is-meta .pbk-sev { background: #E8F0FE; color: #1458B8; }
.pbk-btn--meta { background: #fff; color: #1458B8; border-color: #C9DCF8; text-decoration: none; }
.pbk-btn--meta:hover { background: #F2F7FE; border-color: #9FC1F2; color: #0F4A9E; }

/* Buttons */
.pbk-btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 15px; border-radius: 9px; border: 1px solid #5B53E8; background: #5B53E8; color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.pbk-btn:hover { background: #4A43D6; border-color: #4A43D6; }
.pbk-btn--soft { background: #F4F3FE; color: #5B53E8; border-color: #E6E3FB; }
.pbk-btn--soft:hover { background: #ECEAFC; border-color: #D6D2F7; color: #4A43D6; }
.pbk-btn--ghost { background: #fff; color: #4B5563; border-color: #E2E4EA; }
.pbk-btn--ghost:hover { background: #F7F7F9; color: #1F2430; border-color: #E2E4EA; }
.pbk-chip-btn { border: 1px solid #E0DCFB; background: #fff; color: #3F38C9; border-radius: 999px; padding: 7px 13px; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.pbk-chip-btn:hover { background: #F4F3FE; }

/* Empty states */
.pbk-empty { background: #fff; border: 1px dashed #DCDEE5; border-radius: 13px; padding: 40px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pbk-empty__ic { width: 46px; height: 46px; border-radius: 12px; background: #EEEDFC; color: #5B53E8; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.pbk-empty--good .pbk-empty__ic { background: #DCFCE7; color: #15803D; }
.pbk-empty__t { font-size: 15px; font-weight: 600; color: #1F2430; }
.pbk-empty__d { font-size: 13px; color: #6B7280; max-width: 560px; line-height: 1.5; margin-bottom: 10px; }
.pbk-empty__plays { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }


/* Plays */
.pbk-goals { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.pbk-goal { border: 1px solid #E2E4EA; background: #fff; color: #4B5563; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.pbk-goal span { font-size: 11px; color: #6B7280; }
.pbk-goal.is-on { background: #5B53E8; border-color: #5B53E8; color: #fff; }
.pbk-goal.is-on span { color: #E0DCFB; }
.pbk-plays { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
.pbk-play { background: #fff; border: 1px solid #E9EAEE; border-radius: 13px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.pbk-play:hover { border-color: #D9D5F7; box-shadow: 0 4px 14px rgba(91, 83, 232, .08); }
.pbk-play.is-open { grid-column: 1 / -1; border-color: #D6D2F7; }
.pbk-play__head { width: 100%; text-align: left; background: none; border: none; font: inherit; cursor: pointer; padding: 15px 16px; display: flex; flex-direction: column; gap: 4px; }
.pbk-play__goal { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #5B53E8; }
.pbk-play__t { font-size: 15px; font-weight: 700; color: #14171F; line-height: 1.35; }
.pbk-play__tag { font-size: 13px; color: #6B7280; line-height: 1.45; }
.pbk-play__meta { display: flex; gap: 6px; align-items: center; margin-top: 6px; }
.pbk-play__chev { margin-left: auto; color: #6B7280; display: inline-flex; transition: transform .15s; }
.pbk-play.is-open .pbk-play__chev { transform: rotate(180deg); }
.pbk-play__body { display: none; padding: 0 16px 16px; border-top: 1px solid #F0F1F4; }
.pbk-play.is-open .pbk-play__body { display: block; }
.pbk-play__why { margin: 14px 0 0; font-size: 13.5px; line-height: 1.6; color: #374151; max-width: 900px; }
.pbk-play__body h4 { margin: 16px 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #646B78; }
.pbk-play__body ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; line-height: 1.55; color: #374151; max-width: 900px; }
.pbk-nums, .pbk-bench table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pbk-nums th, .pbk-bench th { text-align: left; font-weight: 600; color: #374151; padding: 8px 12px 8px 0; width: 34%; vertical-align: top; border-bottom: 1px solid #F0F1F4; }
.pbk-nums td, .pbk-bench td { padding: 8px 0; color: #4B5563; vertical-align: top; border-bottom: 1px solid #F0F1F4; line-height: 1.5; }
.pbk-debate { margin-top: 14px; padding: 11px 14px; border-radius: 11px; background: #FFFBEB; border: 1px solid #F2E2B8; font-size: 13px; line-height: 1.55; color: #6B4E0E; max-width: 900px; }
.pbk-play__act { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.pbk-play__src { margin-top: 12px; font-size: 11.5px; color: #6B7280; line-height: 1.6; }
.pbk-play__src a { color: #6B7280; }
.pbk-bench { margin-top: 18px; background: #fff; border: 1px solid #E9EAEE; border-radius: 13px; padding: 14px 16px; }
.pbk-bench summary { cursor: pointer; font-size: 14px; font-weight: 700; color: #14171F; }
.pbk-bench table { margin-top: 10px; }

/* Setup */
.pbk-path { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pbk-stage { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border: 1px solid #E9EAEE; border-radius: 13px; background: #fff; }
.pbk-stage.is-next { border-color: #B9B4F6; box-shadow: 0 0 0 3px rgba(91, 83, 232, .08); }
.pbk-stage.is-done { background: #FBFCFB; }
.pbk-stage__dot { width: 30px; height: 30px; border-radius: 50%; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; background: #F1F2F5; color: #6B7280; }
.pbk-stage.is-next .pbk-stage__dot { background: #5B53E8; color: #fff; }
.pbk-stage.is-done .pbk-stage__dot { background: #E2F5EA; color: #15803D; }
.pbk-stage__txt { flex: 1; min-width: 0; }
.pbk-stage__t { font-size: 14px; font-weight: 600; color: #1F2430; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pbk-stage.is-done .pbk-stage__t { color: #4B5563; }
.pbk-stage__d { font-size: 12.5px; color: #6B7280; margin-top: 2px; line-height: 1.45; }
.pbk-stage__act { display: flex; gap: 8px; flex: 0 0 auto; }
.pbk-tag { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #5B53E8; background: #EEEDFC; border-radius: 999px; padding: 2px 8px; }

/* Rhythm */
.pbk-rhythm { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pbk-rcol { border: 1px solid #E9EAEE; border-radius: 13px; background: #fff; padding: 14px 14px 10px; display: flex; flex-direction: column; }
.pbk-rcol h3 { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: #1F2430; }
.pbk-rcol ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pbk-ritem { display: flex; align-items: flex-start; gap: 9px; padding: 6px 4px; border-radius: 8px; font-size: 13px; line-height: 1.45; color: #374151; }
.pbk-ritem:hover { background: #F8F8FA; }
.pbk-ritem.is-on .pbk-rtxt { color: #6B7280; text-decoration: line-through; }
.pbk-rbox { flex: 0 0 auto; width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid #CFD2DA; background: #fff; color: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; margin-top: 1px; }
.pbk-ritem.is-on .pbk-rbox { background: #5B53E8; border-color: #5B53E8; color: #fff; }
.pbk-rbox svg { width: 11px; height: 11px; }
.pbk-rtxt { flex: 1; min-width: 0; }
.pbk-rgo { flex: 0 0 auto; border: none; background: transparent; color: #6B7280; cursor: pointer; padding: 2px 4px; border-radius: 6px; display: flex; }
.pbk-rgo:hover { color: #5B53E8; background: #F4F3FE; }
.pbk-rcount { margin-top: 8px; font-size: 11.5px; color: #6B7280; }

/* Guides */
.pbk-guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.pbk-guide { display: flex; flex-direction: column; gap: 5px; text-align: left; border: 1px solid #E9EAEE; border-radius: 13px; background: #fff; padding: 14px; cursor: pointer; font: inherit; }
.pbk-guide:hover { border-color: #D9D5F7; box-shadow: 0 4px 14px rgba(91, 83, 232, .08); }
.pbk-guide__t { font-size: 14px; font-weight: 700; color: #1F2430; }
.pbk-guide__d { font-size: 12.5px; line-height: 1.45; color: #6B7280; flex: 1; }
.pbk-guide__c { font-size: 11px; font-weight: 600; color: #5B53E8; }
/* Guide panel: the section's task answers (open the full answer in the Playbook). */
.gd-tasks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.gd-task { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; color: #5B53E8; cursor: pointer; text-align: left; }
.gd-task:hover { color: #4A43D6; text-decoration: underline; }
.gd-task svg { flex: none; }

/* "How do I…" — searchable task answers above the section cards. */
.pbk-sec__h--gap { margin-top: 30px; }
.pbk-search { display: flex; align-items: center; gap: 9px; max-width: 640px; height: 44px; padding: 0 14px; border: 1px solid #DCDDE3; border-radius: 11px; background: #fff; color: #6B7280; margin-bottom: 18px; cursor: text; }
.pbk-search:focus-within { border-color: #5B53E8; box-shadow: 0 0 0 3px rgba(91, 83, 232, .14); color: #5B53E8; }
.pbk-search__in { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; color: #1F2430; }
.pbk-ans-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 18px 22px; align-items: start; }
.pbk-ans-group h3 { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #6B7280; }
.pbk-ans-list { display: flex; flex-direction: column; gap: 6px; }
.pbk-ans { border: 1px solid #E9EAEE; border-radius: 11px; background: #fff; }
.pbk-ans[open] { border-color: #D9D5F7; box-shadow: 0 4px 14px rgba(91, 83, 232, .07); }
.pbk-ans summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; cursor: pointer; list-style: none; font-size: 13.5px; font-weight: 600; color: #1F2430; }
.pbk-ans summary::-webkit-details-marker { display: none; }
.pbk-ans summary:hover .pbk-ans__q { color: #5B53E8; }
.pbk-ans summary svg { flex: none; color: #6B7280; transition: transform .15s ease; }
.pbk-ans[open] summary svg { transform: rotate(180deg); color: #5B53E8; }
.pbk-ans summary:focus-visible { outline: 2px solid #5B53E8; outline-offset: 2px; border-radius: 10px; }
.pbk-ans__b { padding: 0 14px 14px; }
.pbk-ans__a { margin: 0 0 10px; font-size: 13px; line-height: 1.55; color: #3B4252; }
.pbk-ans__steps { margin: 0 0 12px; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: 1.5; color: #1F2430; }
.pbk-ans__steps li::marker { color: #5B53E8; font-weight: 700; }
.pbk-ans__c { display: block; margin-top: 2px; font-size: 12px; color: #9A6B00; }
.pbk-ans__act { display: flex; flex-wrap: wrap; gap: 8px; }
.pbk-ans-none { padding: 18px; border: 1px dashed #DCDDE3; border-radius: 11px; font-size: 13.5px; color: #6B7280; max-width: 640px; }
.pbk-foot { margin: 32px 0 0; font-size: 12px; color: #6B7280; line-height: 1.6; max-width: 900px; }


@media (max-width: 900px) { .pbk-rhythm, .pbk-plays { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
    .pbk { padding: 18px 16px 60px; }
    .pbk-head { flex-direction: column; gap: 14px; }
    .pbk-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pbk-kpi__l { white-space: normal; }
    .pbk-kpi__v { font-size: 19px; }
    .pbk-head__ico { display: none; }
    .pbk-card { flex-direction: column; gap: 12px; }
    .pbk-card__act { align-items: stretch; width: 100%; }
    .pbk-card__act .pbk-btn { justify-content: center; white-space: normal; height: auto; min-height: 36px; padding: 8px 12px; text-align: center; }
    .pbk-card__sub { justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; }
    .pbk-chip { white-space: normal; }
    .pbk-stage { flex-wrap: wrap; }
    .pbk-stage__act { width: 100%; justify-content: flex-end; }
    .pbk-nums th, .pbk-bench th { width: auto; display: block; border-bottom: none; padding-bottom: 0; }
    .pbk-nums td, .pbk-bench td { display: block; }
}
@media (max-width: 640px) {
    .gd-hint { left: 12px !important; right: 12px; bottom: 12px !important; max-width: none; }
    .gd-hint::before { display: none; }
}
