/* Feed/RiskCard composition, adapted from the product rather than restyled prose.
   Shared by the homepage excerpt and the full, locally interactive Feed. */
.feed-experience { --feed-edge: #dedede; --feed-secondary: #616161; --feed-purple: #542394; --preview-line: #dedede; --preview-muted: #686868; container-type: inline-size; }
/* Neutral working surfaces; brand color belongs to signals and controls, not
   every container. Keep these overrides scoped away from the approved maps. */
.product-preview.feed-experience { background: #f4f4f4; border: 1px solid #d6d6d6; border-radius: 16px; box-shadow: 0 2px 3px #00000004, 0 12px 28px -12px #00000014, 0 32px 64px -40px #00000024; }
.feed-experience :is(h3,h4,h5) { font-family: "IBM Plex Sans", sans-serif; letter-spacing: -.018em; color: #242424; }
.feed-experience :is(a,button,summary):focus-visible { outline: 2px solid #6428ab; outline-offset: -3px; }
.feed-experience .icon { flex: none; }
.feed-experience .product-bar { min-height: 72px; background: #fff; padding: 14px 28px; }
.feed-experience .product-bar h3 { margin: 0; font-size: 17px; line-height: 1.4; font-weight: 600; letter-spacing: 0; }
.feed-experience .preview-emblem { background: transparent; width: 28px; height: 30px; flex-basis: 28px; border-radius: 0; }
.feed-experience .preview-tag { background: #fff; border-color: #dedede; color: #525252; padding: 4px 9px; font-size: 14px; font-weight: 500; }
.feed-experience .preview-tag-opportunity { color: var(--feed-purple); }
.feed-workspace { padding: 24px; }
.product-preview.feed-experience .feed-sidebar { display: flex; flex-wrap: wrap; padding: 0; margin-bottom: 24px; gap: 8px; background: transparent; border: 0; }
.product-preview.feed-experience .feed-sidebar > button { flex: none; display: flex; align-items: center; gap: 9px; width: auto; min-height: 48px; padding: 10px 14px; border: 1px solid #dedede; border-radius: 10px; background: #fff; margin: 0; font-size: 15px; font-weight: 500; color: #595959; box-shadow: 0 1px 2px #00000004; }
.product-preview.feed-experience .feed-sidebar > button.is-active { color: #4500a9; border-color: #bdbdbd; background: #fff; }
.product-preview.feed-experience .feed-sidebar.motion-selection > button { background: transparent; }
.product-preview.feed-experience .feed-sidebar.motion-selection > .selection-marker { padding: 0; margin: 0; border-radius: 10px; background: #fff; border-color: #bdbdbd; box-shadow: 0 1px 3px #0000000a; }
html:not(.js) .feed-experience .feed-sidebar { display: none; }
.feed-experience .feed-filter-count { display: grid; place-items: center; min-width: 23px; height: 24px; padding-inline: 5px; border-radius: 6px; background: #ededed; color: #595959; font-size: 14px; }
.product-preview.feed-experience .feed-content { padding: 0; background: transparent; overflow-anchor: none; }
.product-preview.feed-experience .feed-item { display: block; padding: 0; margin: 0 0 14px; border: 1px solid var(--feed-edge); border-radius: 16px; background: #fff; box-shadow: 0 1px 2px #00000005; overflow: clip; }
.product-preview.feed-experience .feed-item:last-child { margin-bottom: 0; border-bottom: 1px solid var(--feed-edge); }
.product-preview.feed-experience .feed-item[open] { border-color: #bfbfbf; box-shadow: 0 2px 4px #00000006, 0 8px 18px -12px #00000020; }
.feed-card-summary { display: block; position: relative; padding: 22px 28px; border-radius: 15px; list-style: none; cursor: pointer; transition: background-color 160ms ease; }
.feed-card-summary::-webkit-details-marker, .feed-source-records > summary::-webkit-details-marker { display: none; }
.feed-card-summary::marker, .feed-source-records > summary::marker { content: ""; }
.feed-card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; min-height: 32px; }
.feed-card-state { color: #737373; font-size: 14px; line-height: 1.4; }
.feed-card-chevron { margin-left: auto; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #dedede; border-radius: 50%; color: #616161; background: #fff; }
.feed-card-chevron .icon { width: 17px; height: 17px; transition: transform 220ms cubic-bezier(.22,1,.36,1); }
.feed-risk-card[open] > summary .feed-card-chevron .icon { transform: rotate(180deg); }
.product-preview.feed-experience .feed-card-summary h4 { margin: 14px 0 0; max-width: 900px; font-size: 24px; line-height: 1.3; font-weight: 600; }
.product-preview.feed-experience .feed-card-summary p { margin: 9px 0 0; max-width: 76ch; font-size: 16px; line-height: 1.55; color: var(--feed-secondary); }
.feed-risk-card[open] > summary { background: #fff; border-radius: 15px 15px 0 0; }
.feed-card-detail { border-top: 1px solid #e5e5e5; }
.feed-analysis-layout { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(220px, 1fr); gap: 0; }
.feed-ai-analysis { padding: 28px; container-type: inline-size; }
.feed-experience h5 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 16px; font-weight: 600; line-height: 1.4; color: #363636; }
.feed-experience h5 .preview-emblem { width: 22px; height: 24px; flex-basis: 22px; }
.feed-experience h5 .preview-emblem img { width: 18px; height: 22px; }
.product-preview.feed-experience .feed-ai-analysis > p { margin: 0; font-size: 16px; line-height: 1.6; color: #595959; max-width: 68ch; }
.feed-development-history { padding: 28px; border-left: 1px solid #e8e8e8; background: #fafafa; }
.feed-development-history ol { padding: 0; margin: 24px 0 0; list-style: none; }
.feed-development-history li { position: relative; padding: 0 0 28px 24px; }
.feed-development-history li:last-child { padding-bottom: 0; }
.feed-development-history li:not(:last-child)::after { content: ""; position: absolute; width: 1px; background: #d6d6d6; top: 13px; bottom: -1px; left: 4px; }
.feed-history-node { position: absolute; left: 0; top: 6px; width: 9px; height: 9px; border: 2px solid #b5b5b5; border-radius: 50%; background: #fff; }
.is-latest .feed-history-node { border-color: #7743b0; background: #7743b0; box-shadow: 0 0 0 4px #efe7f7; }
.feed-development-history strong { display: block; font-size: 17px; font-weight: 500; line-height: 1.45; color: #454545; }
.feed-development-history .is-latest strong { color: #303030; font-weight: 600; }
.product-preview.feed-experience .feed-development-history p { font-size: 16px; line-height: 1.55; margin: 8px 0 0; color: #686868; }
/* One dimensional source carries the finding. The supplier labels stay at
   reading size; the factory is never stretched to fit a narrow graph frame. */
.feed-dependency { width: 100%; max-width: 680px; margin: 28px auto 22px; }
.dependency-composition { position: relative; }
.dependency-art { display: block; width: 100%; height: auto; overflow: visible; }
.dependency-art path { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.dependency-art :is(path,polygon,circle) { vector-effect: non-scaling-stroke; }
.dependency-ground { fill: #f4f4f4; stroke: #e2e2e2; stroke-width: .6; }
.dependency-ground-edge { fill: #dedde0; }
.dependency-ground-shadow { fill: #000; opacity: .035; }
.dependency-grid { stroke: #d9d9dc; stroke-width: .45; }
.dependency-apron { stroke: #fff; stroke-width: 6; }
.dependency-factory .dependency-roof { fill: #645c70; }
.dependency-factory .dependency-front { fill: #413c49; }
.dependency-factory .dependency-side { fill: #302d35; }
.dependency-annex .dependency-roof { fill: #d8d6dc; }
.dependency-annex .dependency-front { fill: #aaa6b0; }
.dependency-annex .dependency-side { fill: #8b8693; }
.dependency-roof-unit .dependency-roof { fill: #ada2ba; }
.dependency-roof-unit .dependency-front { fill: #8e7e9e; }
.dependency-roof-unit .dependency-side { fill: #766587; }
.dependency-unit-slot { stroke: #51445f; stroke-width: .7; }
.dependency-roof-edge { stroke: #ffffff60; stroke-width: .65; }
.dependency-roof-rib { stroke: #c9b6dd; stroke-width: .9; opacity: .65; }
.dependency-cladding { stroke: #ffffff26; stroke-width: .6; }
.dependency-dock { fill: #242229; stroke: #b7adbf; stroke-width: .5; }
.dependency-edge { stroke: #807589; stroke-width: .6; }
.dependency-selection { stroke: #9259c5; stroke-width: .75; opacity: .6; }
.dependency-selection-corner { stroke: #8b43c4; stroke-width: 1.4; }
.dependency-route { stroke: #9364bb; stroke-width: 1.4; }
.dependency-shared-route { stroke: #69379a; stroke-width: 2.2; }
.dependency-port-ring { fill: #fff; stroke: #b69aca; stroke-width: .8; }
.dependency-port { fill: #8550ad; }
.dependency-source-ring { fill: #fff; stroke: #bfa68b; stroke-width: 1; }
.dependency-source-port { fill: #9b6832; }
.feed-dependency .signal-motion-path { stroke: #955ac5; filter: none; }
.dependency-source-label { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; gap: 5px; }
.dependency-source-label strong { font-size: 18px; font-weight: 600; line-height: 1.3; color: #29262e; }
.dependency-source-label > span { display: flex; align-items: center; gap: 7px; font-size: 16px; line-height: 1.35; color: #696360; }
.dependency-source-label i { width: 5px; height: 5px; background: #9b6832; border-radius: 50%; }
.dependency-wide .dependency-suppliers > span { position: absolute; left: 68.7%; font-size: 16px; font-weight: 500; line-height: 1.3; color: #39353e; transform: translateY(-50%); }
.dependency-wide .dependency-primary { top: 43.98%; }
.dependency-wide .dependency-backup { top: 78.95%; }
.dependency-compact { display: none; }
/* Selected Site model: dimensional assets, quiet neutral surfaces, one shared
   dependency. These styles also serve its preserved comparison context. */
.dependency-variant { max-width: 680px; width: 100%; margin: 28px auto 22px; }
.dv-composition { position: relative; }
.dv-compact { display: none; }
.dv-art { overflow: visible; }
.dv-art path, .dv-record-icon path { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.dv-source { position: absolute; left: 2%; top: 0; display: flex; flex-direction: column; gap: 6px; padding: 11px 14px; border: 1px solid #dbd8de; border-radius: 8px; background: #fff; box-shadow: 0 2px 2px #21182604, 0 6px 14px #21182605; }
.dv-source > strong { font-size: 18px; line-height: 1.3; font-weight: 600; color: #2e2a33; letter-spacing: -.02em; }
.dv-source-leader { stroke: #b8adbf; stroke-width: .8; }
.dv-status { display: flex; align-items: center; gap: 8px; font-size: 16px; line-height: 1.4; color: #6a5e51; }
.dv-stop { display: block; width: 16px; height: 16px; flex: 0 0 16px; color: #9b703c; }
.dv-pause { display: inline-flex; width: 22px; height: 22px; justify-content: center; align-items: center; gap: 3px; border: 1px solid #d6c9b9; border-radius: 5px; background: #fff; box-shadow: 0 1px 2px #00000008; }
.dv-pause i { width: 2px; height: 8px; background: #9b703c; }
.dv-supplier { position: absolute; }
.dv-supplier strong { font-size: 17px; line-height: 1.35; font-weight: 600; letter-spacing: -.015em; color: #39333e; }
.dv-supplier-base { fill: #efeeee; stroke: #dbd9dc; stroke-width: .6; }
.dv-supplier-roof { fill: #a79bae; }
.dv-supplier-front { fill: #645a6f; }
.dv-supplier-side { fill: #494250; }
.dv-roof-outline { stroke: #eee5f5; stroke-width: .6; }
.dv-supplier-rib { stroke: #d3c1e0; stroke-width: .8; }
.dv-supplier-dock { fill: #39333f; stroke: #b7aabc; stroke-width: .6; }
.dv-supplier-select { stroke: #a87cc7; stroke-width: .8; }
.dv-supplier-select-corner { stroke: #9262b4; stroke-width: 1; }
.dv-endpoint-halo { fill: #fff; stroke: #bda3ce; stroke-width: .7; }
.dv-endpoint { fill: #8250ab; }
.dependency-variant .signal-motion-head { stroke: #8a42c0; stroke-width:2.4; filter: drop-shadow(0 0 1px #a678ca40); }
.dv-spatial :is(.dependency-route,.dependency-shared-route) {stroke:#9364bb;stroke-width:1.5;}
.dv-spatial .signal-motion-point {stroke:#7432ad;stroke-width:3.4;filter:none;}
.dv-spatial .dependency-selection { opacity: .8; }
.dv-spatial .dv-wide .dv-supplier { left: 71.5%; width: 28.5%; transform: translateY(-50%); }
.dv-spatial .dv-wide .dv-supplier-0 { top: 31%; }
.dv-spatial .dv-wide .dv-supplier-1 { top: 77%; }
@container (max-width: 499px) {
  .dv-wide { display: none; }
  .dv-compact { display: block; width: min(100%,360px); margin: auto; }
  .dv-source { left: 0; max-width: 100%; padding: 10px 12px; }
  .dv-source > strong { font-size: 18px; }
  .dv-supplier strong { font-size: 16px; }
  .dv-compact .dv-suppliers { display: grid; grid-template-columns: 43% 43%; justify-content: space-between; }
  .dv-spatial .dv-compact .dv-supplier { position: static; text-align: center; }
}
.feed-business-impact { display: flex; align-items: start; gap: 12px; padding: 18px 0 0; border-top: 1px solid #e5e5e5; }
.feed-business-impact > .icon { color: #78509f; width: 20px; height: 20px; margin-top: 2px; }
.feed-business-impact strong { display: block; font-size: 16px; line-height: 1.4; font-weight: 600; color: #363636; }
.product-preview.feed-experience .feed-business-impact p { margin: 7px 0 0; color: #616161; font-size: 16px; line-height: 1.5; }
.product-preview.feed-experience .feed-business-impact > p { margin: 0; }
.feed-context-matches { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0; }
.feed-context-matches > span { display: flex; gap: 8px; align-items: center; font-size: 14px; padding: 10px 12px; background: #f4f4f4; border-radius: 8px; color: #595959; }
.feed-context-matches .icon { width: 18px; height: 18px; }
.feed-assessment-tools { display: flex; align-items: start; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; }
.feed-source-records { flex: 1 1 280px; min-width: 0; }
.feed-source-records > summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; min-height: 44px; width: fit-content; padding: 4px 0; color: #616161; font-size: 15px; font-weight: 500; border-radius: 6px; }
.feed-source-records > summary .icon { width: 18px; height: 18px; }
.feed-source-records > summary .icon:last-child { margin-left: 4px; width: 15px; transition: transform 200ms ease; }
.feed-source-records[open] > summary .icon:last-child { transform: rotate(180deg); }
.feed-source-records > div { padding: 10px 0; }
.feed-source-record { display: flex; gap: 12px; padding: 12px 0; }
.feed-source-record > span { color: #737373; padding-top: 2px; }
.feed-source-record .icon { width: 18px; height: 18px; }
.feed-source-record strong { color: #454545; font-size: 15px; font-weight: 600; }
.product-preview.feed-experience .feed-source-record p { margin-top: 6px; font-size: 16px; line-height: 1.55; color: #686868; }
.feed-open-assessment { display: inline-flex; align-items: center; justify-content: center; gap: 16px; padding: 10px 0; min-height: 44px; color: #542394; font-size: 15px; font-weight: 500; text-decoration: none; border-radius: 6px; }
.feed-open-assessment .icon { width: 18px; height: 18px; transition: transform 200ms cubic-bezier(.22,1,.36,1); }

/* One editorial surface: the finding, its connections and the next update.
   The full Feed workspace keeps its own interactive card anatomy. */
.product-preview.feed-highlight { padding: 32px; background: #fff; }
.feed-highlight .curated-heading { display: flex; padding: 0; min-height: 0; border: 0; background: transparent; }
.feed-highlight .curated-body { padding: 0; container-type: inline-size; }
.feed-highlight .curated-body h3 { font-size: 26px; line-height: 1.3; margin: 24px 0 0; max-width: none; }
.feed-highlight .curated-body > p { font-size: 16px; line-height: 1.55; margin-top: 12px; color: #686868; }
.feed-highlight .feed-dependency { margin: 32px auto 24px; }
.feed-highlight .dv-spatial .dv-source { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.feed-highlight .curated-alert { margin: 0; padding: 24px 0 0; gap: 12px; border: 0; border-top: 1px solid #e3e3e3; border-radius: 0; background: transparent; }
.feed-highlight .curated-alert > .icon { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 3px; }
.feed-highlight .curated-alert h4 { font-size: 18px; font-weight: 600; line-height: 1.4; }
.feed-highlight .curated-alert p { font-size: 16px; line-height: 1.55; margin-top: 6px; color: #686868; }
@media (hover:hover) and (pointer:fine) {
  .feed-card-summary:hover { background: #fafafa; }
  .feed-open-assessment:hover .icon { transform: translateX(3px); }
  .feed-source-records > summary:hover { color: #4500a9; }
}
@container (max-width: 850px) {
  .feed-analysis-layout { grid-template-columns: minmax(0, 1fr); }
  .feed-development-history { border-left: 0; border-top: 1px solid #e5e5e5; }
  .feed-development-history ol { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 18px; }
  .feed-development-history li { padding-bottom: 0; }
  .feed-development-history li:not(:last-child)::after { display: none; }
}
@container (max-width: 479px) {
  .dependency-wide { display: none; }
  .dependency-compact { display: grid; width: min(100%, 330px); margin: auto; }
  .dependency-compact .dependency-source-label { position: static; grid-row: 1; margin-bottom: 14px; }
  .dependency-compact .dependency-suppliers { display: grid; grid-template-columns: 1fr 1fr; gap: 18.6667%; font-size: 16px; font-weight: 500; line-height: 1.35; color: #39353e; text-align: center; }
  .dependency-compact .dependency-suppliers > span { max-width: 100px; margin: 0 auto; }
}
@media (max-width: 700px) {
  .feed-workspace { padding: 22px 8px 8px; }
  .product-preview.feed-experience .feed-sidebar { gap: 6px; margin-bottom: 18px; flex-wrap: nowrap; }
  .product-preview.feed-experience .feed-sidebar > button { min-width: 0; flex: 1 1 auto; padding: 10px 7px; font-size: 14px; gap: 5px; }
  .feed-experience .feed-filter-count { min-width: 18px; height: 22px; padding-inline: 3px; font-size: 13px; }
  .feed-card-summary { padding: 20px 16px; }
  .feed-card-meta { gap: 8px; padding-right: 30px; position: relative; }
  .feed-card-chevron { position: absolute; top: 0; right: -5px; width: 28px; height: 28px; }
  .product-preview.feed-experience .feed-card-summary h4 { font-size: 23px; }
  .feed-ai-analysis, .feed-development-history { padding: 22px 16px; }
  .feed-development-history ol { grid-template-columns: 1fr; gap: 24px; }
  .feed-development-history li:not(:last-child)::after { display: block; bottom: -25px; }
  .feed-assessment-tools { gap: 0; }
  .feed-open-assessment { width: 100%; justify-content: space-between; padding-block: 12px; }
  .feed-source-records { flex-basis: 100%; }
  .product-preview.feed-highlight { padding: 24px 20px; }
  .feed-highlight .curated-body h3 { font-size: 25px; }
  .feed-highlight .curated-alert { padding-top: 20px; }
}
@container (max-width: 330px) {
  .feed-experience .feed-filter-count { display: none; }
  .feed-experience .product-bar .preview-note { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .feed-experience *, .feed-experience *::before { transition: none !important; }
}
@media (forced-colors: active) {
  .dependency-art { forced-color-adjust: none; }
  .feed-card-chevron, .feed-history-node { border-color: CanvasText; }
}
