/* EMERALD ROOTS 1.1: interactions only; MASTER visual rules remain in styles.css. */
.opt:focus-visible,.imageChoice:focus-visible,.garment:focus-visible,.dropzone:focus-visible{outline:2px solid #5b7455;outline-offset:4px}
.questionReference{display:block;max-height:340px;max-width:100%;object-fit:contain;margin:20px auto 28px}
.centralSaveState[data-state="pending"]{color:#426939}
.certPerson{overflow-wrap:anywhere}
/* Corrige el margen negativo desktop heredado en el encabezado móvil del MASTER. */
@media(max-width:600px){.resultHero{margin:-28px -16px 28px}}

/* Dashboard ejecutivo por dirección y responsable */
.dashboard .dashHierarchy{display:flex;gap:8px;flex-wrap:wrap;margin:25px 0 12px}
.dashboard .dashHierarchy button,.dashboard .dashSupervisorNav button{appearance:none;background:#fff;border:1px solid #c9d6c6;color:#3c4939;padding:10px 15px;font:inherit;font-size:10px;letter-spacing:.1em;cursor:pointer}
.dashboard .dashHierarchy button.active,.dashboard .dashSupervisorNav button.active{background:#243628;color:#fff;border-color:#243628}
.dashboard .dashSupervisorNav{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:13px 0 20px;border-bottom:1px solid #d8e2d6}
.dashboard .dashSupervisorNav>span{width:100%;font-size:9px;letter-spacing:.16em;color:#66755e;margin:0 0 2px}
.dashboard .dashSupervisorNav button{font-size:10px;letter-spacing:.02em;padding:8px 12px}
.dashboard .dashViewTitle{display:flex;align-items:end;justify-content:space-between;gap:16px;margin:26px 0 5px}
.dashboard .dashViewTitle h2,.dashboard .dashPanelHead h2{margin:5px 0 0;font-size:23px;font-weight:400;color:#243628}
.dashboard .dashViewTitle>span,.dashboard .dashPanelHead>span{font-size:11px;color:#66755e}
.dashboard .dashCardsV25{grid-template-columns:repeat(5,minmax(0,1fr))}
.dashboard .dashCard{min-height:86px}
.dashboard .dashCardReinforce{background:#f7efd9}
.dashboard .dashCardPending{background:#eeece9}
.dashboard .dashPanel{margin:25px 0 32px;padding:20px 22px;background:#fff;border:1px solid #d8e2d6}
.dashboard .dashPanelHead{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:18px}
.dashboard .dashPanelHead h2{font-size:20px}
.dashboard .dashTeamChart{display:grid;gap:8px}
.dashboard .dashTeamChartRow{display:grid;grid-template-columns:minmax(135px,220px) minmax(100px,1fr) 58px;align-items:center;gap:12px;text-align:left;border:0;background:transparent;padding:7px 4px;color:#243628;cursor:pointer}
.dashboard .dashTeamChartRow:hover .dashTeamName{text-decoration:underline}
.dashboard .dashTeamName{font-size:12px}
.dashboard .dashTeamChartRow>b{text-align:right;font-size:11px;font-weight:500}
.dashboard .dashStack{display:flex;height:12px;overflow:hidden;border-radius:8px;background:#e8ede7}
.dashboard .dashStack i,.dashboard .dashLegend i{display:block;height:100%}
.dashboard .dashStack .cert,.dashboard .dashLegend .cert{background:#43834d}
.dashboard .dashStack .reinforce,.dashboard .dashLegend .reinforce{background:#d1a21f}
.dashboard .dashStack .pending,.dashboard .dashLegend .pending{background:#bfc7bd}
.dashboard .dashLegend{display:flex;gap:18px;flex-wrap:wrap;margin:16px 0 0 4px;font-size:10px;color:#64725d}
.dashboard .dashLegend span{display:flex;align-items:center;gap:6px}
.dashboard .dashLegend i{width:9px;height:9px;border-radius:50%}
.dashboard .dashCompetencies{display:grid;gap:13px;max-width:740px}
.dashboard .dashBarLabel{display:flex;justify-content:space-between;gap:12px;margin-bottom:5px;font-size:11px;color:#475643}
.dashboard .dashBarLabel small{display:block;margin-top:2px;font-size:9px;color:#66755e}
.dashboard .dashBarLabel b{font-weight:500}
.dashboard .dashBarTrack{height:9px;background:#e8ede7;border-radius:8px;overflow:hidden}
.dashboard .dashBarTrack i{display:block;height:100%;border-radius:8px;background:#43834d}
.dashboard .dashBarTrack i.gap{background:#d1a21f}
.dashboard .dashChartNote{font-size:10px;color:#66755e;margin:15px 0 0}
.dashboard .dashRosterNotice{padding:13px 16px;margin:16px 0;background:#f1f7f0;border-left:2px solid #7fa077;color:#4e5f4a;font-size:11px;line-height:1.55}
.dashboard .dashRosterTools{display:flex;justify-content:space-between;align-items:center;gap:18px;margin:28px 0 12px;padding:17px 0;border-top:1px solid #d8e2d6;border-bottom:1px solid #d8e2d6}
.dashboard .dashRosterTools b{font-size:12px;font-weight:500}
.dashboard .dashRosterTools p{margin:5px 0 0;font-size:10px;color:#66755e}
.dashboard .dashRosterTools>div:last-child{display:flex;gap:8px;flex-wrap:wrap}
.dashboard .dashUploadButton{position:relative;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.dashboard .dashUploadButton input{position:absolute;inset:0;opacity:0;cursor:pointer}
.dashboard .dashFollowTable{min-width:900px}
.dashboard .dashFollowTable td{vertical-align:middle}
.dashboard .dashFollowTable td:nth-child(n+4):nth-child(-n+7){text-align:center}
.dashboard .dashFollowTable th:nth-child(n+4):nth-child(-n+7){text-align:center}
.dashboard .statusPending{color:#697766;font-size:10px;font-weight:600;letter-spacing:.04em}
.dashboard .dashStatusReason{display:block;margin-top:3px;color:#8a6a20;font-size:9px;line-height:1.35}
.dashboard .dashOutOfRoster{display:block;color:#82977c;font-size:9px;margin-top:3px}
.dashboard .dashUnlisted{background:#faf7f5}
.dashboard .dashEmpty{font-size:11px;color:#66755e}
@media(max-width:760px){.dashboard .dashCardsV25{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard .dashPanel{padding:16px 12px}.dashboard .dashViewTitle,.dashboard .dashPanelHead,.dashboard .dashRosterTools{align-items:flex-start;flex-direction:column}.dashboard .dashTeamChartRow{grid-template-columns:minmax(100px,135px) minmax(60px,1fr) 46px;gap:8px;padding:7px 0}.dashboard .dashTeamName{font-size:10px}.dashboard .dashTeamChartRow>b{font-size:10px}.dashboard .dashHierarchy button{font-size:9px;padding:9px}.dashboard .dashSupervisorNav button{font-size:9px}.dashboard .dashRosterTools>div:last-child{width:100%}}
/* Didáctica V3 · acciones observables y controles táctiles */
.d3Meta{display:flex;justify-content:space-between;gap:12px;margin:6px 0 14px;color:#6a7c66;font-size:12px;letter-spacing:.08em;text-transform:uppercase}
.d3Instruction{font-size:15px;line-height:1.55;color:#4d5d49;margin:12px 0 18px}
.d3Choice{text-align:left;width:100%;font:inherit;line-height:1.5}
.d3VisualGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.d3VisualCard{border:1px solid #d3dcd1;padding:10px;background:#fff;cursor:pointer;color:#243121;font:inherit}
.d3VisualCard:hover,.d3VisualCard:focus-visible{outline:2px solid #566f50}
.d3VisualCard img{display:block;width:100%;height:220px;object-fit:contain;background:#faf8f6}
.d3VisualCard span{display:block;padding:10px 4px 3px;text-align:center;font-size:12px;letter-spacing:.06em}
.d3MatchList{display:grid;gap:10px}
.d3MatchCard{border:1px solid #d6e0d4;padding:14px;background:#fff}
.d3MatchCard p{margin:0 0 12px;line-height:1.5}
.d3MatchActions{display:flex;flex-wrap:wrap;gap:8px}
.d3MatchActions button,.d3OrderList button{border:1px solid #beccbb;background:#fff;color:#243121;padding:9px 11px;font:500 11px Jost,Arial,sans-serif;letter-spacing:.04em;cursor:pointer}
.d3MatchActions button.chosen,.d3BuildOpts button.chosen{background:#243121;color:#fff;border-color:#243121}
.d3MatchCard small{display:block;margin-top:8px;color:#6a7c66}
.d3OrderList{display:grid;gap:9px;padding-left:28px}
.d3OrderList li{display:grid;grid-template-columns:1fr auto auto;gap:7px;align-items:center;border:1px solid #d6e0d4;padding:10px;background:#fff}
.d3OrderList li span{line-height:1.4}
.d3BuildOpts{display:grid;gap:8px;margin:8px 0 18px}
.d3BuildOpts button{border:1px solid #d3dcd1;background:#fff;text-align:left;padding:12px 14px;font:14px/1.45 Jost,Arial,sans-serif;color:#243121;cursor:pointer}
.d3BuildOpts button:hover{border-color:#566f50}
.d3BranchOpt{display:block;width:100%;text-align:left;font:inherit;line-height:1.5}
.d3Route{margin:24px 0;padding:20px 22px;border:1px solid #d6e0d4;background:#faf8f6;color:#3a4836}
.d3Route h2{font-size:22px;font-weight:400;margin:6px 0 10px}
.d3Route ul{padding-left:20px;line-height:1.6}
.d3Route li{margin:8px 0}
.d3Route p{font-size:12px;color:#66755e;margin:12px 0 0}
@media(max-width:620px){.d3Meta{font-size:10px}.d3VisualGrid{grid-template-columns:1fr}.d3VisualCard img{height:250px}.d3MatchActions{display:grid}.d3MatchActions button{width:100%}.d3OrderList li{grid-template-columns:1fr auto auto}}

/* Construcción en una sola pantalla: dos decisiones breves y una validación. */
.d3BuildGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:start;margin:12px 0}
.d3BuildGroup{min-width:0;margin:0;padding:10px;border:1px solid #d6e0d4;background:#fff}
.d3BuildGroup legend{padding:0 5px;font:600 11px Jost,Arial,sans-serif;letter-spacing:.06em;color:#566f50}
.d3BuildOpts{gap:6px;margin:4px 0 0}
.d3BuildOpts button{padding:9px 10px;font-size:12px;line-height:1.3}
.d3BuildHelp{min-height:22px;margin:8px 0}
@media(max-width:620px){.d3BuildGrid{grid-template-columns:1fr;gap:7px}.d3BuildGroup{padding:8px}.d3BuildOpts{grid-template-columns:1fr 1fr;gap:6px}.d3BuildOpts button{padding:8px;font-size:12px}}

/* Identidad Emerald Roots y semáforo del resultado. */
.score.score-result-green{color:#376b48!important}.score.score-result-yellow{color:#9a7416!important}.score.score-result-red{color:#639d55!important}
.certificateViewer,.certificateExportStage,.certificateExportStage .certCanvas,.certificateExportStage .certificateLuxury.certMasterRose{background:#dde3d5!important}

.emeraldCharts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.emeraldChart{border:1px solid #dce2d7;padding:20px;background:#fff}.emeraldChart h3{font-size:12px;letter-spacing:.14em;font-weight:500}.emeraldCount{font-size:38px;color:#294e38}.emeraldCount small{display:block;color:#626e60;font-size:11px;letter-spacing:.08em}.emeraldStatusBar{height:8px;display:flex;background:#e8ece6;margin:15px 0}.emeraldStatusBar i{background:#477458}.emeraldStatusBar em{background:#7ab06c}.emeraldLabels{display:grid;gap:6px;font-size:12px}.emeraldLabels span{display:flex;justify-content:space-between;gap:8px}.emeraldLabels b{font-weight:500}@media(max-width:700px){.emeraldCharts{grid-template-columns:1fr}}
