/* Owner 2026-10-28: one current role; four small real-instance slots and one path. */
#bfStageBar{padding:9px 12px;margin:8px 0;border-radius:14px;box-shadow:0 3px 12px #52674914}
.bf-stage-current{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.bf-current-identity{display:flex;align-items:center;gap:9px;min-width:100px;flex:1}
#bfCurrentStageArt{width:40px;height:40px;object-fit:contain;flex:none}
#bfCurrentStageLabel{display:block;font:500 10px/1.3 system-ui;color:#78856f}
#bfStageTitle{font:650 22px/1.15 Georgia,serif;color:#315944;margin:2px 0 0}
.bf-owned-stages{flex:none;max-width:100%}
#bfStageOwned{display:block;font:650 11px/1.3 system-ui;color:#61775c;text-align:right;margin-bottom:3px}
#bfStageTrack{display:flex;gap:4px}
#bfStageTrack .bf-stage-card{display:grid;place-items:center;flex:none;width:44px;height:44px;min-height:44px;padding:3px;border-radius:10px;position:relative;background:#f9fbf0;box-shadow:none;grid-template-columns:1fr}
#bfStageTrack .bf-stage-card:before{display:none}
#bfStageTrack .bf-stage-card img{width:28px;height:28px;filter:none}
#bfStageTrack .bf-stage-card.is-empty{border-style:dashed;border-color:#c6cbb7;background:transparent}
#bfStageTrack .bf-stage-card.is-empty img{opacity:.35;filter:grayscale(1)}
#bfStageTrack .bf-stage-card[aria-pressed="true"]{background:#e0ecd9;border-color:#547e60;box-shadow:inset 0 0 0 1px #547e60}
#bfStageTrack .bf-stage-card:focus-visible{outline:3px solid #a78342;outline-offset:2px}
.bf-stage-slot-mark{position:absolute;bottom:3px;right:3px;width:7px;height:7px;border-radius:50%;background:#b59a66;border:1px solid #fff9e8}
.is-active .bf-stage-slot-mark{background:#4d8058}
.is-empty .bf-stage-slot-mark{background:#faf8e9;width:14px;height:14px;font:700 12px/12px system-ui;color:#7e8c70}
#bfStageConditions{grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;padding-top:6px;margin-top:6px}
#bfStageConditions .bf-stage-cond-title{font-size:12px;line-height:1.35;margin-bottom:3px}
#bfStageConditions .bf-stage-cond-title span{font-weight:500;color:#809073;white-space:nowrap}
#bfStageConditions .bf-condition-list{display:flex;flex-wrap:wrap;gap:3px 8px}
#bfStageConditions .bf-condition{background:none;border:0;padding:0;font-size:12px;line-height:1.5;border-radius:0}
body.world-sandbox-active #bfStageBar .bf-stage-next{display:inline-flex!important;align-items:center;justify-content:center;min-height:44px;width:auto;max-width:none;padding:7px 10px;border:1px solid #b9c8ad;background:#f3f6e8;color:#416449;font-size:11px}
#bfStageSummary{font:500 11px/1.4 system-ui;color:#7a876e;text-align:left;max-width:none;margin-top:3px;overflow-wrap:anywhere}
.world-lineage-link{display:flex;justify-content:space-between;align-items:center;gap:8px;width:100%;min-height:44px;border:1px solid #c9d4bd;background:#f2f5e8;border-radius:10px;padding:8px 10px;color:#49694f;font:650 12px system-ui}
.world-lineage-link span{font-size:10px;font-weight:500}
.world-stage-hero{padding:10px 12px;gap:12px;margin:10px 0}
.world-stage-hero>img{width:44px!important;height:44px!important;object-fit:contain}
.world-stage-hero strong{font-size:23px!important;line-height:1.15!important;margin:2px 0!important}
.world-stage-hero small,.world-stage-hero span{font-size:11px!important;line-height:1.4!important}
.world-stage-budget{padding:10px 12px;font-size:12px;margin:8px 0}
.world-stage-details{border-top:1px solid #dddac5;margin-top:9px}
.world-stage-details>summary{cursor:pointer;min-height:44px;box-sizing:border-box;padding:13px 3px;color:#49694e;font:650 12px system-ui}
.world-stage-details>summary:focus-visible{outline:3px solid #a78342;outline-offset:2px}
@media(max-width:720px){
 #bfStageBar{padding:8px 10px}
 .bf-stage-current{gap:8px}
 #bfCurrentStageArt{width:32px;height:36px}
 .bf-current-identity{gap:6px;min-width:90px}
 #bfStageTitle{font-size:20px}
 #bfCurrentStageLabel{font-size:10px;max-width:100px}
 #bfStageConditions .bf-condition{font-size:12px}
}
@media(max-width:365px){#bfStageBar{padding:7px 8px}#bfStageTrack{gap:3px}#bfStageTitle{font-size:18px}}
@media(min-width:900px){
 #bfStageBar:not([hidden]){display:grid;grid-template-columns:200px minmax(0,1fr) auto;grid-template-rows:auto auto;column-gap:16px;align-items:center}
 .bf-stage-current{display:contents}
 .bf-current-identity{grid-column:1;grid-row:1}
 .bf-owned-stages{grid-column:3;grid-row:1 / span 2}
 #bfStageConditions{grid-column:2;grid-row:1 / span 2;border-top:0;border-left:1px solid #d6decc;padding:0 0 0 16px;margin:0}
 #bfStageSummary{grid-column:1;grid-row:2;margin-top:3px}
}
