.graph-node.is-hidden, .link.is-hidden { display: none; }
:root {
  --color-surface: #f5f5f0;
  --color-surface-alt: #ebebE6;
  --color-surface-raised: #ffffff;
  --color-text: #0a0a09;
  --color-text-soft: #4a4a45;
  --color-text-ghost: #9a9a95;
  --color-brand: #FF4D00;
  --color-highlight: #F5C400;
  --color-border: rgba(10, 10, 9, 0.12);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Instrument Sans', Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--color-surface); }
body { margin: 0; color: var(--color-text); font-family: var(--font-body); background: radial-gradient(circle at 92% 4%, rgba(245, 196, 0, .16), transparent 24rem), var(--color-surface); transition: background 240ms ease; }
body.is-diagram-fullscreen { overflow: hidden; }
body.is-presenter-dimmed { background: var(--color-text); }
button, a { font: inherit; }
button { color: inherit; }
.app-shell { width: min(1240px, calc(100% - 64px)); margin: 0 auto; padding: 28px 0 52px; }
.site-header { display: flex; align-items: center; justify-content: flex-end; border-bottom: 1px solid var(--color-border); padding-bottom: 21px; }
.wordmark { color: var(--color-text); font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; text-decoration: none; letter-spacing: -.02em; }
.wordmark span { color: var(--color-brand); }
.header-meta { display: flex; align-items: center; gap: 22px; color: var(--color-text-ghost); font-size: .75rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .625rem; }
.selection-count { color: var(--color-text-soft); }
.intro { max-width: 760px; padding: 74px 0 55px; }
.section-label { margin: 0 0 13px; color: var(--color-brand); font-size: .6875rem; font-weight: 500; letter-spacing: .15em; line-height: 1.2; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1, h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: -.035em; }
h1 { margin-bottom: 25px; font-size: clamp(3.1rem, 7vw, 6.3rem); line-height: .94; }
h1 em { color: var(--color-brand); font-style: normal; }
h2 { margin-bottom: 0; font-size: 2rem; line-height: 1; }
.intro-copy { max-width: 570px; margin-top: 0; margin-bottom: 0; padding-left: 0; color: var(--color-text-soft); font-size: 1.22rem; line-height: 1.65; list-style: none; counter-reset: intro-step; }
.intro-copy li { position: relative; padding-left: 38px; }
.intro-copy li + li { margin-top: 8px; }
.intro-copy li::before { content: counter(intro-step) "."; counter-increment: intro-step; position: absolute; left: 0; font-weight: 500; }
.intro-presenter-url { display: none; margin: 0; color: var(--color-brand); font-size: 2.2rem; font-weight: 500; line-height: 1.3; }
body.is-presenter-mode .intro-copy { display: none; }
body.is-presenter-mode .intro-presenter-url { display: block; }
.view-panel { opacity: 0; display: none; transition: opacity 300ms ease; }
.view-panel.is-visible { display: block; opacity: 1; animation: appear 300ms ease both; }
.panel-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.panel-actions { display: flex; align-items: center; gap: 9px; }
.panel-actions { margin-left: auto; }
.button { border: 1px solid var(--color-border); border-radius: 999px; cursor: pointer; font-size: .78rem; font-weight: 500; padding: 11px 17px; transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease; }
.button:hover:not(:disabled) { transform: translateY(-2px); }
.button-quiet { background: transparent; }
.button-quiet:hover { background: var(--color-surface-alt); }
.button-primary { border-color: var(--color-brand); color: var(--color-surface-raised); background: var(--color-brand); }
.button-primary:disabled { border-color: var(--color-surface-alt); color: var(--color-text-ghost); background: var(--color-surface-alt); cursor: not-allowed; }
.explore-wrap { position: relative; }
.tooltip { position: absolute; right: 0; bottom: calc(100% + 9px); z-index: 5; width: 205px; padding: 9px 11px; border-radius: 5px; color: var(--color-surface-raised); background: var(--color-text); font-size: .7rem; line-height: 1.35; opacity: 0; pointer-events: none; transform: translateY(4px); transition: opacity 150ms, transform 150ms; }
.explore-wrap:hover .tooltip, .explore-wrap:focus-within .tooltip { opacity: 1; transform: translateY(0); }
.bingo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.friction-card { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 154px; padding: 22px 20px; border: 1px solid var(--color-border); border-radius: 12px; background: var(--color-surface-raised); box-shadow: 0 5px 14px rgba(10, 10, 9, .04); cursor: pointer; text-align: center; transition: background 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease, opacity 220ms ease; }
.friction-card:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(10, 10, 9, .08); }
.friction-card h3 { margin: 0; font-family: var(--font-display); font-size: 1.3rem; font-weight: 400; line-height: 1.14; letter-spacing: -.025em; }
.friction-card.is-active { border-color: var(--color-brand); color: var(--color-surface-raised); background: var(--color-brand); }
.friction-card.is-winning { border-color: #4db8a8; color: var(--color-surface-raised); background: #4db8a8; animation: pulse 650ms ease-in-out 2; }
.grid-footer { display: flex; justify-content: space-between; margin-top: 17px; color: var(--color-text-ghost); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; }
.grid-footer-actions { display: flex; gap: 18px; }
.text-button { padding: 0; border: 0; color: var(--color-brand); background: transparent; cursor: pointer; font-size: inherit; letter-spacing: inherit; text-transform: inherit; }
.text-button:hover { text-decoration: underline; }
.friction-card.is-disabled { border-color: var(--color-border); color: var(--color-text-ghost); background: var(--color-surface-alt); box-shadow: none; cursor: not-allowed; opacity: .58; }
.friction-card.is-disabled:hover { transform: none; box-shadow: none; }
.friction-card.is-presenter-focus { outline: 3px solid var(--color-highlight); outline-offset: 4px; }
body.is-presenter-dimmed .friction-card { opacity: .5; }
body.is-presenter-dimmed .friction-card.is-presenter-focus { opacity: 1; }
.presenter-popover { position: absolute; z-index: 4; width: min(620px, calc(100vw - 32px)); padding: 16px; border: 1px solid var(--color-border); border-radius: 10px; background: var(--color-surface-raised); box-shadow: 0 14px 32px rgba(10, 10, 9, .15); animation: appear 180ms ease both; }
.presenter-popover::before { position: absolute; top: var(--arrow-top, 23px); width: 10px; height: 10px; border-top: 1px solid var(--color-border); border-left: 1px solid var(--color-border); background: var(--color-surface-raised); content: ''; transform: rotate(-45deg); }
.presenter-popover.popover-right::before { left: -6px; }
.presenter-popover.popover-left::before { right: -6px; transform: rotate(135deg); }
.popover-counter { margin: 0 0 10px; color: var(--color-text-ghost); font-size: .68rem; font-weight: 500; letter-spacing: .06em; }
.presenter-popover img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: 6px; object-fit: cover; }
.popover-description { margin: 14px 0 18px; color: var(--color-text-soft); font-size: 1.2rem; line-height: 1.45; }
.presenter-popover .button { width: 100%; }
.popover-finish { display: block; margin: 12px auto 0; font-size: .68rem; text-transform: none; }
.bingo-grid { position: relative; }
.view-panel { position: relative; }
.diagram-wrap { position: relative; display: flex; align-items: stretch; min-height: min(610px, calc(100vh - 180px)); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.diagram-content { position: relative; flex: 1; min-width: 0; }
.graph-stage { position: relative; height: min(610px, calc(100vh - 180px)); min-height: 480px; overflow: hidden; }
.diagram-view.is-visible { position: fixed; inset: 0; z-index: 20; padding: 0; background: var(--color-surface); }
.diagram-view.is-visible .panel-heading { position: absolute; top: 20px; left: 24px; z-index: 4; margin: 0; }
.diagram-view.is-visible .diagram-wrap, .diagram-view.is-visible .graph-stage { height: 100vh; min-height: 100vh; border: 0; }
#graph { display: block; width: 100%; height: 100%; }
.stage-controls { position: absolute; top: 16px; right: 16px; z-index: 3; display: flex; gap: 10px; }
.view-switch { display: flex; overflow: hidden; border: 1px solid var(--color-border); border-radius: 8px; background: rgba(255, 255, 255, .92); box-shadow: 0 4px 12px rgba(10, 10, 9, .06); }
.view-switch-button { padding: 0 12px; height: 34px; border: 0; border-right: 1px solid var(--color-border); background: transparent; color: var(--color-text-soft); cursor: pointer; font-size: .7rem; font-weight: 500; }
.view-switch-button:last-child { border-right: 0; }
.view-switch-button:hover { background: var(--color-surface-alt); }
.view-switch-button.is-active { background: var(--color-text); color: var(--color-surface-raised); }
.link { fill: none; stroke: rgba(10, 10, 9, .45); stroke-width: 1.5; opacity: var(--link-rest-opacity, 1); transition: opacity .18s ease; }
.link.is-connected { stroke: var(--color-brand); stroke-width: 3; opacity: 1; }
.graph-stage.has-highlight .link:not(.is-connected) { opacity: .08; }
.graph-node { cursor: grab; }
.focus-exit-button { position: absolute; z-index: 2; top: 8px; right: 8px; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 0; color: inherit; background: transparent; box-shadow: none; cursor: pointer; font-size: 1.15rem; line-height: 1; opacity: .65; }
.focus-exit-button:hover, .focus-exit-button:focus-visible { opacity: 1; }
.graph-node.is-connected { filter: drop-shadow(0 6px 12px rgba(10, 10, 9, .18)); }
.graph-stage.has-highlight .graph-node:not(.is-connected) { opacity: .28; }
.graph-node:active { cursor: grabbing; }
.graph-node .node-card { position: relative; width: 100%; padding: 14px 15px; border: 1px solid var(--color-border); border-radius: 10px; background: var(--color-surface-raised); box-shadow: 0 4px 12px rgba(10, 10, 9, .06); }
/* Graph cards keep their unscaled size; applyNodeGeometry() scales this wrapper
   to the zoom level, growing from the top-left corner rather than the centre. */
.node-scale { transform-origin: 0 0; }
.graph-node.is-entering .node-card { animation: node-enter .38s ease-out both; transform-origin: center; }
@media (prefers-reduced-motion: reduce) { .graph-node.is-entering .node-card { animation: none; } }
.graph-node.is-node-focused-origin .node-card { padding-right: 38px; }
.graph-node.friction .node-card { border-color: var(--color-brand); color: var(--color-surface-raised); background: var(--color-brand); }
.graph-node .node-title { margin: 0; font-family: var(--font-display); font-size: .95rem; font-weight: 600; line-height: 1.12; }
.graph-node .node-description, .node-tagline { font-family: var(--font-body); font-size: .72rem; font-weight: 400; line-height: 1.35; }
.graph-node .node-description { display: none; margin: 10px 0 0; color: inherit; }
.graph-node.is-detailed.friction .node-description { display: block; }
.graph-node.solution .node-title { font-family: var(--font-display); font-size: .95rem; font-weight: 600; line-height: 1.12; }
.graph-node.solution .node-card { border-left: 5px solid var(--color-text); }
.graph-node.solution.way-of-working .node-card { border-left-color: #4db8a8; }
.graph-node.solution.interaction-principle .node-card { border-left-color: var(--color-text); }
.graph-node.solution.architecture .node-card { border-left-color: #e0a900; }
.graph-node.solution.design-pattern .node-card { border-left-color: #8b5cf6; }
.node-details { display: none; margin-top: 9px; color: var(--color-text-soft); font-size: .7rem; line-height: 1.4; }
.graph-node.is-detailed.solution .node-details, .graph-node.is-summary.solution .node-details, .graph-node.is-full.solution .node-details { display: block; }
.graph-node.is-summary.solution .node-description, .graph-node.is-summary.solution .node-extra, .graph-node.is-full.solution .node-description, .graph-node.is-full.solution .node-extra { display: none; }
.graph-node.is-full.solution .node-description, .graph-node.is-full.solution .node-extra { display: block; }
.node-tagline { margin: 10px 0 0; color: var(--color-text-soft); }
.node-meta, .node-extra { color: var(--color-text-soft); font-size: .65rem; }
.node-pills { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0; }
.node-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 24px; padding: 4px 8px; border: 1px solid currentColor; border-radius: 999px; box-sizing: border-box; color: var(--color-text-soft); font-family: var(--font-body); font-size: .58rem; font-weight: 500; letter-spacing: .03em; line-height: 1; text-align: center; white-space: nowrap; }
.solution-category { margin: 0 0 10px; background: transparent; cursor: pointer; }
.solution-category:hover, .solution-category:focus-visible { color: var(--color-text); background: var(--color-surface-alt); }
.graph-node.solution .solution-category { display: none; }
.graph-node.is-summary.solution .solution-category, .graph-node.is-full.solution .solution-category { display: inline-flex; }
.solution-category.interaction-principle, .node-pill.interaction-principle { border-color: var(--color-text); color: var(--color-text); }
.solution-category.architecture, .node-pill.architecture { border-color: #e0a900; color: #a77d00; }
.solution-category.design-pattern, .node-pill.design-pattern { border-color: #8b5cf6; color: #7040d0; }
.solution-category.way-of-working, .node-pill.way-of-working { border-color: #4db8a8; color: #247f73; }
.graph-stage.is-detail-zoom .graph-node.solution .node-title { font-size: .92rem; }
.graph-stage.is-detail-zoom .graph-node.solution .node-details { font-size: .55rem; }
.graph-stage.is-summary-zoom .graph-node.solution .node-details { font-size: .62rem; }
.graph-stage.is-full-zoom .graph-node.solution .node-details { font-size: .55rem; }
.graph-stage.is-detail-zoom .graph-node.friction .node-title { font-size: .72rem; }
.graph-stage.is-detail-zoom .graph-node.friction .node-description { font-size: .56rem; }
.graph-stage.is-summary-zoom .graph-node .node-description, .graph-stage.is-summary-zoom .graph-node .node-tagline, .graph-stage.is-summary-zoom .graph-node .show-details-button { font-size: .62rem; }
.graph-stage.is-full-zoom .graph-node .node-description, .graph-stage.is-full-zoom .graph-node .node-tagline, .graph-stage.is-full-zoom .graph-node .show-details-button { font-size: .55rem; }
.graph-node.solution.is-expanded .node-details { display: block; }
.show-details-button { display: block; margin-top: 12px; padding: 0; border: 0; color: var(--color-text-soft); background: transparent; cursor: pointer; font: inherit; font-size: .72rem; text-decoration: underline; }
.graph-node-modal { position: absolute; inset: 0; z-index: 8; display: grid; place-items: center; padding: 24px; background: rgba(10, 10, 9, .2); }
.graph-node-modal-panel { position: relative; width: min(560px, 100%); max-height: min(680px, 100%); overflow: auto; padding: 24px; border: 1px solid var(--color-border); border-radius: 10px; background: var(--color-surface-raised); box-shadow: 0 16px 38px rgba(10, 10, 9, .2); }
.graph-popover-close { position: absolute; top: 8px; right: 10px; width: 26px; height: 26px; padding: 0; border: 0; color: var(--color-text-soft); background: transparent; cursor: pointer; font-size: 1.2rem; line-height: 1; }
.graph-popover-title { margin: 0 28px 13px 0; font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; line-height: 1.08; }
.graph-popover-description { margin: 0 0 14px; color: var(--color-text-soft); font-size: .86rem; line-height: 1.5; }
.graph-popover-tagline { margin: 0 0 10px; font-weight: 500; }
.graph-popover-meta, .graph-popover-extra { margin: 0 0 10px; color: var(--color-text-soft); font-size: .8rem; line-height: 1.45; }
.pairing-chips { display: inline-flex; flex-wrap: wrap; gap: 6px; vertical-align: middle; }
.pairing-chip { padding: 3px 10px; border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-surface-alt); color: var(--color-text-soft); cursor: pointer; font-family: var(--font-body); font-size: .72rem; }
.pairing-chip:hover { border-color: var(--color-brand); color: var(--color-brand); }
.pairing-chip:disabled { cursor: default; opacity: .5; }
.modal-pills { margin: 0 0 16px; }
.graph-node-modal-panel img { display: block; width: 100%; height: auto; margin-bottom: 14px; }
.graph-node-modal-panel a { color: var(--color-brand); font-size: .8rem; overflow-wrap: anywhere; }
.node-details img { display: none; width: 100%; height: auto; margin-top: 8px; border-radius: 4px; cursor: pointer; }
.graph-node.is-full .node-details img { display: block; }
.node-details a { display: inline-block; margin-top: 8px; color: var(--color-brand); font-weight: 500; }
.matrix-stage { position: relative; height: min(610px, calc(100vh - 180px)); min-height: 480px; padding: 60px 24px 24px; box-sizing: border-box; overflow: auto; }
.diagram-view.is-visible .matrix-stage { height: 100vh; min-height: 100vh; }
.matrix-grid { display: grid; grid-template-columns: 96px repeat(2, minmax(260px, 1fr)); grid-template-rows: 32px repeat(2, minmax(220px, 1fr)); gap: 8px; height: 100%; min-width: 600px; }
.matrix-col-label, .matrix-row-label { display: flex; align-items: center; justify-content: center; color: var(--color-text-ghost); font-family: var(--font-body); font-size: .62rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; text-align: center; }
.matrix-row-label { justify-content: flex-end; padding-right: 8px; text-align: right; }
.matrix-cell { position: relative; padding: 30px 10px 10px; border: 1px solid var(--color-border); border-radius: 10px; background: rgba(255, 255, 255, .8); display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px; }
.matrix-quadrant-label { position: absolute; top: 9px; left: 12px; font-family: var(--font-display); font-weight: 700; font-size: .72rem; color: var(--color-text); }
.matrix-cell .graph-node.matrix-node { width: 148px; cursor: pointer; }
.matrix-cell .graph-node.matrix-node.is-summary { width: 190px; }
.matrix-cell .graph-node.matrix-node .node-card { padding: 10px 12px; box-shadow: 0 2px 6px rgba(10, 10, 9, .06); }
.matrix-cell .graph-node.matrix-node:hover .node-card, .matrix-cell .graph-node.matrix-node:focus-visible .node-card { box-shadow: 0 4px 10px rgba(10, 10, 9, .14); }
.matrix-cell .graph-node.matrix-node .node-title { font-size: .82rem; }
.matrix-cell .graph-node.matrix-node .node-details { margin-top: 6px; }
.list-stage { position: relative; height: min(610px, calc(100vh - 180px)); min-height: 480px; padding: 60px 24px 40px; box-sizing: border-box; overflow: auto; }
.diagram-view.is-visible .list-stage { height: 100vh; min-height: 100vh; }
.list-friction { margin-bottom: 26px; }
.list-friction:last-child { margin-bottom: 0; }
.list-friction-node { display: block; margin-bottom: 14px; cursor: default; }
.list-friction-node .node-card { max-width: 640px; }
.list-solutions { display: flex; flex-wrap: wrap; gap: 14px; }
.list-solution-node { display: block; width: 260px; flex: 0 0 260px; cursor: default; }
.empty-list { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; color: var(--color-text-soft); text-align: center; }
.empty-list p { margin: 13px 0 0; font-family: var(--font-display); font-size: 1.35rem; }
.legend { position: absolute; bottom: 20px; left: 20px; z-index: 2; padding: 14px 16px; background: rgba(245, 245, 240, .9); }
.legend .section-label { margin-bottom: 9px; color: var(--color-text-ghost); font-size: .6rem; }
.legend-item { display: flex; align-items: center; gap: 8px; margin-top: 7px; color: var(--color-text-soft); font-size: .7rem; }
.legend-swatch { width: 9px; height: 9px; border-radius: 50%; background: var(--color-brand); }
.legend-swatch.pain-point { background: var(--color-brand); }
.legend-swatch.interaction-principle { background: var(--color-text); }
.legend-swatch.architecture { background: #e0a900; }
.legend-swatch.design-pattern { background: #8b5cf6; }
.legend-swatch.way-of-working { background: #4db8a8; }
.filter-toggle-button { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border: 1px solid var(--color-border); border-radius: 8px; background: rgba(255, 255, 255, .92); box-shadow: 0 4px 12px rgba(10, 10, 9, .06); color: var(--color-text-soft); cursor: pointer; font-family: var(--font-body); font-size: .7rem; font-weight: 500; }
.filter-toggle-button:hover { background: var(--color-surface-alt); }
.filter-toggle-button svg { width: 14px; height: 14px; flex: none; }
.filter-toggle-button[aria-expanded="true"] { border-color: var(--color-text); background: var(--color-text); color: var(--color-surface-raised); }
.filter-panel { position: relative; z-index: 4; flex: none; width: 280px; border-left: 1px solid var(--color-border); background: rgba(255, 255, 255, .97); box-shadow: -8px 0 20px rgba(10, 10, 9, .06); }
.filter-panel[hidden] { display: none; }
.filter-panel-body { height: 100%; padding: 20px 16px; box-sizing: border-box; overflow-y: auto; }
.filter-facet { margin-bottom: 20px; }
.facet-label { margin: 0 0 8px; color: var(--color-text-ghost); font-family: var(--font-body); font-size: .62rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.active-filters-section { padding-bottom: 16px; border-bottom: 1px solid var(--color-border); }
.active-filters-list { display: flex; flex-direction: column; gap: 6px; }
.active-filters-empty { margin: 0; color: var(--color-text-ghost); font-size: .72rem; }
.filter-pill { display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 10px; border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-surface-alt); }
.filter-pill.is-pinned { border-color: var(--color-brand); }
.filter-pill.is-disabled { opacity: .5; }
.filter-pill-label { flex: 1; min-width: 0; overflow: hidden; color: var(--color-text); font-family: var(--font-body); font-size: .72rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.filter-pill-icon { display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--color-text-soft); cursor: pointer; flex: none; }
.filter-pill-icon:hover { background: var(--color-surface-raised); color: var(--color-text); }
.filter-pill-icon svg { width: 12px; height: 12px; }
.filter-pill-icon.is-toggle-off { color: var(--color-text-ghost); }
.filter-pill-icon.is-delete:hover { color: var(--color-brand); }
.facet-checklist { display: flex; flex-direction: column; gap: 7px; }
.facet-checkbox { display: flex; align-items: center; gap: 8px; color: var(--color-text-soft); font-family: var(--font-body); font-size: .74rem; cursor: pointer; }
.facet-checkbox input { width: 14px; height: 14px; margin: 0; accent-color: var(--color-text); cursor: pointer; }
.facet-checkbox.is-checked { color: var(--color-text); font-weight: 600; }
.facet-checkbox.interaction-principle.is-checked { color: var(--color-text); }
.facet-checkbox.architecture.is-checked { color: #a77d00; }
.facet-checkbox.design-pattern.is-checked { color: #7040d0; }
.facet-checkbox.way-of-working.is-checked { color: #247f73; }
.range-slider { position: relative; padding: 9px 8px 24px; }
.range-slider-track { position: absolute; top: 9px; left: 8px; right: 8px; height: 4px; border-radius: 999px; background: var(--color-border); }
.range-slider-range { position: absolute; top: 9px; height: 4px; border-radius: 999px; background: var(--color-brand); }
.range-slider-input { position: absolute; top: 0; left: 0; width: 100%; margin: 0; height: 20px; background: transparent; -webkit-appearance: none; appearance: none; pointer-events: none; }
.range-slider-input:focus { outline: none; }
.range-slider-input::-webkit-slider-runnable-track { background: transparent; }
.range-slider-input::-moz-range-track { background: transparent; }
.range-slider-input::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 16px; height: 16px; margin-top: 1px; border: 2px solid var(--color-surface-raised); border-radius: 50%; background: var(--color-brand); box-shadow: 0 1px 3px rgba(10, 10, 9, .35); cursor: pointer; pointer-events: auto; }
.range-slider-input::-moz-range-thumb { width: 16px; height: 16px; border: 2px solid var(--color-surface-raised); border-radius: 50%; background: var(--color-brand); box-shadow: 0 1px 3px rgba(10, 10, 9, .35); cursor: pointer; pointer-events: auto; }
.range-slider-input:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--color-brand); outline-offset: 2px; }
.range-slider-ticks { position: absolute; left: 0; right: 0; top: 20px; display: flex; justify-content: space-between; color: var(--color-text-soft); font-family: var(--font-body); font-size: .62rem; }
.range-slider-ticks span { flex: 1; text-align: center; }
.range-slider-ticks span:first-child { text-align: left; }
.range-slider-ticks span:last-child { text-align: right; }
.filter-clear { width: 100%; padding: 8px; border: 1px solid var(--color-border); border-radius: 8px; background: transparent; color: var(--color-text-soft); cursor: pointer; font-family: var(--font-body); font-size: .7rem; }
.filter-clear:hover { background: var(--color-surface-alt); }
.filter-preview-tooltip { position: fixed; z-index: 10; width: 220px; padding: 9px 11px; border-radius: 5px; color: var(--color-surface-raised); background: var(--color-text); font-size: .68rem; line-height: 1.4; pointer-events: none; box-shadow: 0 8px 20px rgba(10, 10, 9, .2); }
.filter-preview-tooltip p { margin: 0 0 4px; font-weight: 600; }
.filter-preview-tooltip ul { margin: 0; padding-left: 14px; }
.filter-preview-tooltip[hidden] { display: none; }
.toast { position: fixed; z-index: 50; left: 50%; bottom: 28px; max-width: min(90vw, 380px); padding: 12px 16px; border-radius: 8px; color: var(--color-surface-raised); background: var(--color-text); font-size: .82rem; line-height: 1.45; text-align: center; box-shadow: 0 8px 20px rgba(10, 10, 9, .25); opacity: 0; pointer-events: none; transform: translate(-50%, 8px); transition: opacity 180ms ease, transform 180ms ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.graph-node.is-filter-preview { opacity: .4; }
.graph-node.is-filter-preview .node-card { border-style: dashed; }
.empty-graph { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; color: var(--color-text-soft); text-align: center; }
.empty-graph[hidden] { display: none; }
.empty-graph p { margin: 13px 0 0; font-family: var(--font-display); font-size: 1.35rem; }
.empty-mark { color: var(--color-brand); font-size: 2rem; }
@keyframes pulse { 50% { transform: scale(1.025); box-shadow: 0 0 0 8px rgba(77, 184, 168, .2); } }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }
@keyframes node-enter { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: scale(1); } }
@media (max-width: 760px) { .app-shell { width: min(100% - 32px, 540px); padding-top: 18px; } .header-meta .eyebrow { display: none; } .intro { padding: 57px 0 43px; } h1 { font-size: clamp(3rem, 14vw, 5rem); } .intro-copy { font-size: 1.05rem; } .panel-heading { align-items: flex-start; flex-direction: column; } .panel-actions { align-self: stretch; justify-content: space-between; } .bingo-grid { gap: 7px; } .friction-card { min-height: 112px; padding: 14px 9px; } .friction-card h3 { font-size: 1rem; } .grid-footer { align-items: flex-start; gap: 16px; line-height: 1.4; } .grid-note { text-align: right; } .presenter-popover { position: fixed; top: auto !important; left: 8px !important; right: 8px; bottom: 12px; width: auto; } .presenter-popover::before { top: -6px; left: 50%; right: auto; transform: rotate(45deg); } .diagram-wrap, .graph-stage { min-height: min(650px, calc(100vh - 150px)); height: min(650px, calc(100vh - 150px)); } .diagram-view.is-visible .diagram-wrap, .diagram-view.is-visible .graph-stage { min-height: 100vh; height: 100vh; } .diagram-view.is-visible .panel-heading { top: 14px; left: 16px; } .legend { bottom: 12px; left: 12px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
