/* Soft maturity/work signals. Details live in the inspector and node tooltips. */
.feature-status-legend{position:relative;align-self:flex-end;width:max-content;max-width:calc(100% - 32px);margin:9px 18px 0 auto;z-index:4;flex-shrink:0;color:#7b8978;font-size:10px}
.feature-status-legend summary{display:flex;align-items:center;gap:6px;cursor:pointer;list-style:none;padding:3px 0}
.feature-status-legend summary::-webkit-details-marker{display:none}
.feature-status-legend>div{position:absolute;right:0;top:27px;width:310px;max-width:calc(100vw - 38px);padding:13px 15px;border:1px solid #dce4d7;border-radius:8px;background:#fff;box-shadow:0 8px 30px #263f2222;line-height:1.7;color:#5c7058}
.status-swatch{width:9px;height:9px;border:1px solid #00000012;border-radius:3px;margin-left:6px}.status-swatch.prototype{background:#dfd1f2}.status-swatch.bug{background:#f2cbbd}.status-swatch.idea{background:#c0e2e9}
.status-swatch.test{background:#f1d875}
.feature-signal-tags{display:flex;justify-content:inherit;gap:4px;flex-wrap:wrap;flex-shrink:0}.feature-signal-tags:empty{display:none}
.feature-tag.signal-prototype{background:#eee4fb;border-color:#d9c6ef;color:#755392}.feature-tag.signal-bug{background:#fce5dc;border-color:#ecc4b5;color:#9b5640}.feature-tag.signal-idea{background:#e1f2f6;border-color:#bbdce4;color:#386c7d}
.feature-tag.signal-test{background:#fff2bc;border-color:#e5cd74;color:#856a20}
.feature-card>.feature-signal-tags{order:-1;margin-bottom:9px}.feature-card-header{order:-2}
.discovery-bubble>.feature-signal-tags{justify-content:center;margin-top:5px;max-width:calc(100% - 28px)}
.discovery-bubble .feature-signal-tags .feature-tag{font-size:8px;padding:1px 5px}
.feature-deck>.feature-signal-tags{grid-row:1;justify-content:flex-start;margin-bottom:-5px}
.feature-build-note{display:flex;flex-direction:column;gap:3px;padding:10px 12px;border-radius:7px;background:#f1f3ed;color:#677460;font-size:11px!important;line-height:1.6!important;margin:0 0 12px!important}
.feature-build-note.prototype{background:#eee5f8;color:#755b8d}.feature-build-note>strong{font-size:9px;text-transform:uppercase;letter-spacing:.05em;font-weight:600}
.deck-header .feature-build-note{margin-top:9px!important}
.feature-card[data-feature-tints~="prototype"],.discovery-bubble[data-feature-tints~="prototype"],.mindmap-node[data-feature-tints~="prototype"]{background:#f4eefb;border-color:#d5c1eb}
.feature-card[data-feature-tints~="idea"],.discovery-bubble[data-feature-tints~="idea"],.mindmap-node[data-feature-tints~="idea"]{background:#edf7fa;border-color:#b9dce5}
.feature-card[data-feature-tints~="bug"],.discovery-bubble[data-feature-tints~="bug"],.mindmap-node[data-feature-tints~="bug"]{background:#fcf0eb;border-color:#e8c1b2}
.feature-card[data-feature-tints~="prototype"][data-feature-tints~="idea"],.discovery-bubble[data-feature-tints~="prototype"][data-feature-tints~="idea"],.mindmap-node[data-feature-tints~="prototype"][data-feature-tints~="idea"]{background:linear-gradient(125deg,#f4eefb,#edf7fa)}
.feature-card[data-feature-tints~="prototype"][data-feature-tints~="bug"],.discovery-bubble[data-feature-tints~="prototype"][data-feature-tints~="bug"],.mindmap-node[data-feature-tints~="prototype"][data-feature-tints~="bug"]{background:linear-gradient(125deg,#f4eefb,#fcf0eb)}
.feature-card[data-feature-tints~="bug"][data-feature-tints~="idea"],.discovery-bubble[data-feature-tints~="bug"][data-feature-tints~="idea"],.mindmap-node[data-feature-tints~="bug"][data-feature-tints~="idea"]{background:linear-gradient(125deg,#fcf0eb,#edf7fa)}
.feature-card[data-feature-tints~="test"],.discovery-bubble[data-feature-tints~="test"],.capability-mindmap .mindmap-node[data-feature-tints~="test"],.capability-mindmap .mindmap-node.is-selected[data-feature-tints~="test"]{background:#fff8dc;border-color:#e2ca76}
:is(.feature-card,.discovery-bubble,.mindmap-node)[data-feature-tints~="test"][data-feature-tints~="prototype"]{background:linear-gradient(125deg,#fff8dc 40%,#f4eefb)}
:is(.feature-card,.discovery-bubble,.mindmap-node)[data-feature-tints~="test"][data-feature-tints~="idea"]{background:linear-gradient(125deg,#fff8dc 40%,#edf7fa)}
:is(.feature-card,.discovery-bubble,.mindmap-node)[data-feature-tints~="test"][data-feature-tints~="bug"]{background:linear-gradient(125deg,#fff8dc 40%,#fcf0eb)}
.mindmap-node .feature-signal-tags{display:none}
@media(max-width:760px){.feature-status-legend{margin:6px 15px 0 auto;font-size:9px}.feature-status-legend summary{gap:4px}.feature-build-note{font-size:10px!important;padding:9px 10px}}
/* Status compositions summarise branches without changing saved appearance. */
:is(.feature-card,.discovery-bubble,.mindmap-node,.map-option-thumb)[data-node-tints]:not([data-node-tints=""]){background:var(--node-status-fill)!important}
:is(.feature-card,.discovery-bubble,.mindmap-node,.map-option-thumb)[data-node-tints~="bug"]{border-color:#d8aa9e}
.capability-mindmap .mindmap-node[data-node-tints]:not([data-node-tints=""]) :is(.mindmap-node-title,.mindmap-node-kind,.mindmap-node-info,.topology-icon){color:#355b40}
.feature-tag.thumbnail-work-tag{background:var(--work-tag-fill);border-color:color-mix(in srgb,var(--work-tag-fill) 65%,#89957f);color:#53634b}
.node-bug-label{display:flex;justify-content:inherit}
.inspector-category-tile .node-bug-label{flex-basis:100%;justify-content:center}
/* Inset shadows follow the full node silhouette, making a lower rim rather
   than a separate strip. Pills and ovals retain their own curved contour. */
.capability-mindmap .mindmap-node[data-node-tints~="bug"]::before{
 content:'';position:absolute;inset:0;z-index:1;pointer-events:none;
 display:var(--map-bug-band-display,block);border-radius:inherit;
 box-shadow:inset 0 -1px 1px #ac69543d,
  inset 0 calc(1px - var(--map-bug-band-height,7px)) 0 #e7ad9b,
  inset 0 calc(-1 * var(--map-bug-band-height,7px)) 0 #f3cdbf;
}
.capability-mindmap .mindmap-node[data-map-shape="text"][data-node-tints~="bug"]::before{border-radius:4px}
.capability-mindmap .mindmap-node[data-node-tints="bug"]:not([data-node-tints=""]) :is(.mindmap-node-title,.mindmap-node-kind,.mindmap-node-info,.topology-icon){color:var(--node-ink,#355b40)}
/* The same contour treatment continues through overview circles and cards. */
.discovery-bubble{--thumbnail-default-fill:color-mix(in srgb,var(--bubble-color) 7%,#fff)}
.discovery-bubble[data-node-tints~="bug"]::before{content:'';position:absolute;inset:2px;border-radius:inherit;pointer-events:none;box-shadow:inset 0 -1px 1px #ac69543d,inset 0 -8px 0 #e7ad9b,inset 0 -9px 0 #f3cdbf}
.feature-card{position:relative}
.feature-card[data-node-tints~="bug"]::before{content:'';position:absolute;inset:0;border-radius:inherit;pointer-events:none;box-shadow:inset 0 -1px 1px #ac69543d,inset 0 -4px 0 #e7ad9b,inset 0 -5px 0 #f3cdbf}
