/* A single selected growth stage, with explicit one-time hero selection. */
#main .opening-journey{max-width:760px;margin:0 auto;font-size:13px;line-height:1.45;min-width:0}
#main .opening-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:0 0 8px}
#main .opening-heading h2{font-size:20px;margin:0;letter-spacing:1px}
#main .opening-heading p{font-size:12px;color:var(--muted);margin:2px 0 0}
#main .opening-heading>span{font-size:11px;color:var(--muted);white-space:nowrap}
#main .opening-stage-nav{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin:0 0 10px}
#main .opening-stage-nav>button{display:flex;flex-direction:column;justify-content:center;align-items:center;min-width:0;min-height:48px;padding:5px 2px;font-size:12px;line-height:1.3;white-space:nowrap;border-radius:7px}
#main .opening-stage-nav>button small{font-size:10px;opacity:.8}
#main .opening-stage-nav>button[aria-current=step],#main .opening-candidates>button[aria-pressed=true]{border-color:var(--green,#4c6b5e);background:var(--green-soft,#e7eee8);box-shadow:inset 0 -2px var(--green,#4c6b5e);color:var(--green,#4c6b5e)}
#main .opening-stage-card{padding:12px;border:1px solid var(--line,#d3ded8);border-radius:12px;background:var(--panel,#fff);min-width:0}
#main .opening-stage-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 8px}
#main .opening-stage-heading h3{font-size:17px;margin:0;line-height:1.35}
#main .opening-stage-heading>span{flex-shrink:0;font-size:11px;color:var(--muted)}
#main .opening-stage-heading>.opening-status-ready{color:var(--green,#4c6b5e)}
#main .opening-candidates{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:8px}
#main .opening-candidates>button{min-width:0;min-height:36px;padding:5px;font-size:13px}
#main .opening-portrait{display:block;flex:0 0 42px;width:42px!important;height:52px!important;margin:0!important;float:none!important;border-radius:6px;overflow:hidden;aspect-ratio:auto!important}
#main .opening-portrait img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 20%}
#main .opening-choice-preview,#main .opening-current-hero{display:flex;align-items:center;gap:9px;margin:0 0 7px;min-width:0}
#main .opening-choice-preview>div,#main .opening-current-hero>div{flex:1;min-width:0}
#main .opening-choice-preview strong,#main .opening-current-hero strong{display:block;font-size:15px;line-height:1.35}
#main .opening-choice-preview strong small{font-size:10px;color:var(--muted);margin-left:8px;font-weight:400}
#main .opening-choice-preview p{margin:2px 0;font-size:12px;line-height:1.4}
#main .opening-choice-preview p.note{font-size:11px}
#main .opening-current-hero span{display:block;font-size:11px;color:var(--muted)}
#main .opening-choice-note{font-size:11px;line-height:1.4;margin:5px 0;color:var(--muted)}
#main .opening-choice>.primary{width:100%;min-height:36px;padding:6px;font-size:13px}
#main .opening-requirements{list-style:none;padding:0;margin:7px 0;display:grid;gap:4px}
#main .opening-requirements li{display:flex;gap:7px;align-items:flex-start;font-size:12px;line-height:1.45}
#main .opening-requirements li>span{flex:0 0 14px;color:var(--muted)}
#main .opening-requirements li.done>span{color:var(--green,#4c6b5e)}
#main .opening-requirements p{margin:0;min-width:0}
#main .opening-rewards{display:flex;align-items:center;flex-wrap:wrap;gap:4px 9px;padding:7px 0;border-top:1px solid var(--line);font-size:11px;line-height:1.5}
#main .opening-rewards>span{white-space:nowrap}
#main .opening-reward-label{color:var(--muted)}
#main .opening-stage-note{font-size:11px;line-height:1.4;color:var(--muted);margin:4px 0}
#main .opening-primary-action{display:flex;margin-top:7px}
#main .opening-primary-action>button{flex:1;min-width:0;min-height:38px;padding:6px;font-size:13px}
#main .opening-budget{margin-top:8px;padding:8px 10px;border:1px solid var(--line);border-radius:9px;background:var(--panel,#fff)}
#main .opening-budget-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px}
#main .opening-budget p{font-size:11px;line-height:1.4;margin:3px 0}
#main .opening-budget small{font-size:10px;color:var(--muted)}
#main .opening-budget .text-action,#main .opening-current-hero .text-action,#main .opening-hero-tools>button{font-size:11px;min-height:26px;padding:2px 0}
#main .opening-hero-tools{display:flex;justify-content:space-between;gap:8px;margin-top:5px}
#main .opening-footnote{font-size:10px;line-height:1.4;color:var(--muted);margin:6px 0 0}
#main .opening-home p{display:block;margin:4px 0;line-height:1.4}
@media(max-width:900px){
 #main .opening-journey{font-size:12px;line-height:1.35}
 #main .opening-heading{margin-bottom:6px}
 #main .opening-heading h2{font-size:17px}
 #main .opening-stage-nav{gap:4px;margin-bottom:7px}
 #main .opening-stage-nav>button{min-height:39px;padding:3px 1px;font-size:11px}
 #main .opening-stage-nav>button small{font-size:9px}
 #main .opening-stage-card{padding:8px}
 #main .opening-stage-heading{margin-bottom:5px}
 #main .opening-stage-heading h3{font-size:15px}
 #main .opening-choice-preview p{font-size:11px}
 #main .opening-choice-preview p.note{font-size:10px}
 #main .opening-choice-note{font-size:10px;margin:4px 0}
 #main .opening-portrait{width:34px!important;height:44px!important;flex-basis:34px}
 #main .opening-candidates{gap:5px;margin-bottom:5px}
 #main .opening-candidates>button{min-height:31px;font-size:12px;padding:3px}
 #main .opening-requirements{gap:3px;margin:5px 0}
 #main .opening-requirements li{font-size:11px;line-height:1.35}
 #main .opening-rewards{padding:5px 0;font-size:10px;gap:2px 7px}
 #main .opening-stage-note{font-size:10px;line-height:1.35;margin:3px 0}
 #main .opening-primary-action{margin-top:5px}
 #main .opening-primary-action>button,#main .opening-choice>.primary{min-height:33px;padding:5px;font-size:12px}
 #main .opening-budget{margin-top:6px;padding:6px 8px}
 #main .opening-budget-heading{font-size:11px}
 #main .opening-budget p{font-size:10.5px;line-height:1.35;margin:2px 0}
 #main .opening-budget small{font-size:9.5px}
 #main .opening-footnote{font-size:9.5px;margin-top:4px}
 #main .opening-hero-tools{margin-top:3px}
}
@media(max-width:350px){
 #main .opening-stage-nav{grid-template-columns:repeat(4,minmax(0,1fr));gap:3px}
 #main .opening-stage-nav>button{min-height:31px;padding:2px}
 #main .opening-stage-nav>button span,#main .opening-stage-nav>button small{display:inline;font-size:10px}
 #main .opening-stage-nav>button{flex-direction:row;gap:4px}
 #main .opening-heading h2{font-size:16px}
 #main .opening-choice-preview strong{font-size:13px}
 #main .opening-choice-preview p.note{font-size:10px}
 #main .opening-budget small{display:block}
}

#main .opening-footer{display:flex;align-items:center;gap:8px;margin-top:4px}
#main .opening-footer>button{flex-shrink:0;min-height:26px;padding:2px 0;font-size:11px}
#main .opening-footer .opening-footnote{margin:0}

/* These scoped rules take priority over the legacy viewport-wide compact rules. */
@media(max-width:900px){
 #main .opening-journey p{font-size:11px!important;line-height:1.4!important}
 #main .opening-journey .opening-choice-note,#main .opening-journey .opening-choice-readiness,#main .opening-journey .opening-stage-note,#main .opening-journey .opening-budget p,#main .opening-journey .opening-footnote{font-size:10px!important;line-height:1.35!important}
 #main .opening-journey button{font-size:11px!important;line-height:1.3!important;min-height:31px!important;padding:4px 6px!important}
 #main .opening-stage-nav>button{font-size:11px!important;min-height:39px!important;padding:3px 1px!important}
 #main .opening-journey .opening-hero-tools>button,#main .opening-journey .opening-budget button,#main .opening-journey .opening-current-hero button,#main .opening-journey .opening-footer>button{min-height:26px!important;padding:2px 0!important;font-size:10px!important}
 #main .opening-choice-readiness{margin:5px 0;color:var(--muted)}
}
@media(max-width:900px) and (max-height:650px){
 #main .opening-heading{margin-bottom:5px}
 #main .opening-heading>div{display:flex;align-items:baseline;gap:7px}
 #main .opening-heading h2{font-size:15px;letter-spacing:0;line-height:1.4}
 #main .opening-journey .opening-heading p{font-size:10px!important;margin:0}
 #main .opening-heading>span{font-size:10px}
 #main .opening-stage-nav{grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;margin-bottom:5px}
 #main .opening-stage-nav>button{flex-direction:column;gap:0;min-height:34px!important;font-size:10px!important;padding:2px 0!important}
 #main .opening-stage-nav>button span,#main .opening-stage-nav>button small{font-size:9px;line-height:1.2}
 #main .opening-stage-card{padding:6px 7px}
 #main .opening-stage-heading{margin-bottom:4px}
 #main .opening-stage-heading h3{font-size:13px}
 #main .opening-choice-preview,#main .opening-current-hero{margin-bottom:4px;gap:7px}
 #main .opening-candidates{margin-bottom:4px}
 #main .opening-choice-note{margin:3px 0}
 #main .opening-journey .opening-choice-preview .note{font-size:10px!important;line-height:1.3!important}
 #main .opening-portrait{width:30px!important;height:39px!important;flex-basis:30px}
 #main .opening-requirements{margin:4px 0;gap:2px}
 #main .opening-journey .opening-requirements p{font-size:10px!important;line-height:1.3!important}
 #main .opening-requirements li{font-size:10px;line-height:1.3}
 #main .opening-rewards{font-size:9.5px;gap:1px 6px;padding:4px 0;line-height:1.4}
 #main .opening-budget{margin-top:4px;padding:4px 7px}
 #main .opening-budget p{margin:2px 0}
 #main .opening-hero-tools{margin-top:1px}
 #main .opening-footer{margin-top:2px;gap:7px}
 #main .opening-journey .opening-footnote{font-size:9px!important}
}

#main .opening-current-hero>button{flex-shrink:0;white-space:nowrap}
@media(max-width:900px) and (max-height:650px){
 #main .opening-hero-tools{display:none}
 #main .opening-budget-heading{min-height:22px}
 #main .opening-budget p{margin:0!important}
 #main .opening-journey .opening-budget button{min-height:22px!important}
}

#main .opening-budget-actions{display:flex;gap:8px;align-items:center;flex-shrink:0}

#main .opening-current-hero>button{display:inline-flex;align-items:center;gap:2px}
#main .opening-current-hero>button>span{display:inline}
