/* Tier follows the module palette; illuminated wheels retain legible names. */
#section-tier .tier-weekbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:22px 0 8px}
#section-tier .tier-weekbar h3{margin:7px 0;font-size:21px;color:var(--module-ink)}
#section-tier .tier-weekbar p{margin:0;line-height:1.5}
#section-tier .tier-kicker{font-size:11px;letter-spacing:1.5px;font-weight:800;color:var(--module-accent)}
#section-tier .tier-notice{min-height:24px;line-height:1.5;margin:8px 0;color:var(--module-ink)}
#section-tier .tier-notice.is-error{color:#b32340}
#section-tier .tier-wheels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;max-width:1120px;margin:0 auto 24px}
#section-tier .tier-role{--wheel:#39d3d1;--wheel-dark:#183b4e;--wheel-mid:#24596b;position:relative;text-align:center;padding:23px;border:1px solid #aec6ce;border-radius:22px;background:linear-gradient(150deg,#fff,#eef6f7);overflow:hidden;box-shadow:0 8px 22px #233f5412}
#section-tier .tier-time{--wheel:#d797b4;--wheel-dark:#443d5a;--wheel-mid:#635372}
#section-tier .tier-role-label{letter-spacing:2px;font-weight:800;font-size:13px;color:var(--module-ink);margin:0 0 20px}
#section-tier .tier-wheel{position:relative;width:min(100%,300px);aspect-ratio:1;margin:0 auto 20px;border:2px solid var(--wheel);border-radius:50%;box-shadow:0 0 0 6px #e9f2f5,0 0 0 7px #8eb8c9,0 0 25px color-mix(in srgb,var(--wheel) 35%,transparent);background:var(--wheel-dark)}
#section-tier .tier-disc{width:100%;height:100%;display:block;will-change:transform;overflow:visible}
#section-tier .tier-segment path,#section-tier .tier-segment circle{fill:var(--wheel-dark);stroke:var(--wheel);stroke-width:1}
#section-tier .tier-segment-1 path{fill:var(--wheel-mid)}
#section-tier .tier-segment text{fill:#fff;font:12px Arial,sans-serif}
#section-tier .tier-pointer{position:absolute;top:-9px;left:calc(50% - 10px);width:20px;height:22px;background:var(--wheel);clip-path:polygon(0 0,100% 0,50% 100%);z-index:2;filter:drop-shadow(0 0 6px var(--wheel))}
#section-tier .tier-hub{position:absolute;left:35%;top:35%;width:30%;height:30%;display:flex;align-items:center;justify-content:center;flex-direction:column;border:1px solid var(--wheel);border-radius:50%;background:var(--wheel-dark);color:#fff;font-size:18px;font-weight:800;letter-spacing:2px;box-shadow:0 0 20px color-mix(in srgb,var(--wheel) 35%,transparent);pointer-events:none}
#section-tier .tier-hub span{font-size:9px;letter-spacing:1px;margin-top:5px}
#section-tier .tier-result{padding:13px 12px;min-height:83px;border:1px solid #c8d8df;border-radius:12px;background:#f7fafb;color:#415e6b;display:flex;flex-direction:column;justify-content:center;gap:6px;overflow-wrap:break-word}
#section-tier .tier-result span{font-size:10px;letter-spacing:1.2px;font-weight:700}
#section-tier .tier-result strong{font-size:22px;line-height:1.2}
#section-tier .tier-result:is(.is-assigned,.is-proposed){background:var(--wheel-dark);color:#fff;border-color:var(--wheel);box-shadow:0 0 18px color-mix(in srgb,var(--wheel) 45%,transparent),inset 0 0 22px color-mix(in srgb,var(--wheel) 12%,transparent)}
#section-tier .tier-result:is(.is-assigned,.is-proposed) span{color:var(--wheel)}
#section-tier .tier-spin{margin:15px 0 3px;width:100%;min-height:44px}
#section-tier .tier-note{font-size:12px;line-height:1.5;margin:7px 0}
#section-tier .tier-candidates{text-align:left;font-size:12px;margin-top:12px}
#section-tier .tier-candidates ol{columns:2;padding-left:25px;overflow-wrap:break-word}
#section-tier .tier-participants summary{cursor:pointer;font-weight:700;color:var(--module-ink);padding:6px 0}
#section-tier .tier-people{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 26px}
#section-tier .tier-person{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #dbe5e8;padding:15px 0;min-width:0}
#section-tier .tier-person>div{min-width:0;overflow-wrap:break-word}
#section-tier .tier-person strong,#section-tier .tier-person span,#section-tier .tier-person small{display:block}
#section-tier .tier-person span{font-size:12px;margin:4px 0;color:#496473}
#section-tier .tier-person small{font-size:11px;line-height:1.5;color:#506675}
#section-tier .tier-person .btn{flex-shrink:0;font-size:12px}
#section-tier .tier-person.is-excluded strong{color:#755067}
#section-tier .tier-history-week{display:grid;grid-template-columns:1.1fr 1fr 1fr;gap:16px;padding:16px 0;border-top:1px solid #dbe5e8;align-items:center}
#section-tier .tier-history-week span{display:block;font-size:12px;color:#496473;margin-bottom:5px}
#section-tier .tier-history-week b{overflow-wrap:break-word}
#section-tier .tier-history p,#section-tier .tier-participants p{line-height:1.5}
@keyframes tier-reveal{from{transform:translateY(7px);opacity:.25}to{transform:none;opacity:1}}
#section-tier .tier-reveal{animation:tier-reveal 800ms ease-out both}
@media(max-width:760px){#section-tier .tier-wheels,#section-tier .tier-people{grid-template-columns:1fr}#section-tier .tier-weekbar{align-items:flex-start;flex-direction:column}#section-tier .tier-role{padding:20px 16px}#section-tier .tier-history-week{grid-template-columns:1fr;gap:9px}#section-tier .tier-person{align-items:flex-start}#section-tier .tier-person .btn{max-width:110px;white-space:normal}}
@media(prefers-reduced-motion:reduce){#section-tier .tier-reveal{animation:none}}
@media print{#section-tier .tier-wheel,#section-tier button,#section-tier .tier-candidates{display:none!important}}

#section-tier .tier-presence{padding:14px 0 0}
#section-tier .tier-presence>div{display:flex;justify-content:center;flex-wrap:wrap;gap:9px;margin:10px 0}
#section-tier .tier-presence p{font-size:12px;line-height:1.5;margin:4px 0}
#section-tier .tier-person-actions{display:flex;align-items:flex-end;flex-direction:column;gap:8px}

#section-tier .tier-weekbar{background:#f6fafc;border:1px solid #b1cbd3;border-radius:16px;padding:18px 22px;color:var(--module-ink)}
#section-tier .tier-notice:not(:empty){background:#f6fafc;border-left:3px solid var(--module-accent);border-radius:8px;padding:12px 16px}

/* 1.0 · Ventana de líderes confirmados */
dialog.tier-final-result{--tfr-ink:var(--module-ink,#173754);--tfr-acc:var(--module-accent,#0a8fc2);position:relative;width:min(640px,calc(100vw - 32px));padding:26px 28px 22px;border:0;border-radius:24px;background:#fff;color:#17334d;box-shadow:0 30px 80px rgba(6,24,38,.45);overflow:hidden;text-align:center}
dialog.tier-final-result::backdrop{background:rgba(8,26,40,.6)}
.tier-final-result .tfr-head{display:flex;flex-direction:column;align-items:center;gap:10px;margin:0 0 18px;padding:0!important;border:0!important;background:none!important;-webkit-mask:none!important;mask:none!important;min-height:0!important}
.tier-final-result .tfr-badge{display:grid;place-items:center;width:62px;height:62px;border-radius:50%;background:#1f8a4c;color:#fff;box-shadow:0 0 0 8px #e3f4ea}
.tier-final-result .tfr-kicker{display:block;font:700 12px/1.3 Arial,Helvetica,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:#5d6f7d}
.tier-final-result h2{margin:4px 0 0;font:800 28px/1.15 Arial,Helvetica,sans-serif;color:var(--tfr-ink)}
.tier-final-result .tfr-people{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.tier-final-result .tfr-person{display:flex;flex-direction:column;align-items:center;gap:8px;padding:18px 14px 16px;border-radius:18px;border:2px solid #d6e3ee;background:linear-gradient(180deg,#f5f9fd,#fff)}
.tier-final-result .tfr-process{border-color:color-mix(in srgb,var(--tfr-acc) 45%,#fff)}
.tier-final-result .tfr-time{border-color:#e9c77a;background:linear-gradient(180deg,#fff9ec,#fff)}
.tier-final-result .tfr-avatar{display:grid;place-items:center;width:64px;height:64px;border-radius:50%;background:var(--tfr-acc);color:#fff;font:800 22px Arial,Helvetica,sans-serif;letter-spacing:.04em}
.tier-final-result .tfr-time .tfr-avatar{background:#c58a12}
.tier-final-result .tfr-role{display:inline-flex;align-items:center;gap:6px;font:700 12.5px Arial,Helvetica,sans-serif;text-transform:uppercase;letter-spacing:.06em;color:#4d6275}
.tier-final-result .tfr-person strong{font:800 20px/1.25 Arial,Helvetica,sans-serif;color:var(--tfr-ink);overflow-wrap:anywhere}
.tier-final-result .tfr-note{margin:16px 0 8px;font:13px/1.45 Arial,Helvetica,sans-serif;color:#4d6275}
.tier-final-result .tfr-timer{height:5px;border-radius:3px;background:#e6edf3;overflow:hidden}
.tier-final-result .tfr-timer i{display:block;height:100%;width:100%;background:var(--tfr-acc);transform-origin:left;animation:tfr-timer 10s linear forwards}
.tier-final-result .tfr-actions{margin-top:16px;display:flex;justify-content:center}
.tier-final-result .tfr-actions .btn{min-width:150px;min-height:44px}
.tier-final-result .tfr-confetti{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.tier-final-result .tfr-confetti i{position:absolute;top:-14px;left:var(--x);width:8px;height:14px;border-radius:2px;background:#1f8a4c;opacity:0;transform:rotate(var(--r))}
.tier-final-result .tfr-confetti i:nth-child(3n){background:#e0a526}.tier-final-result .tfr-confetti i:nth-child(3n+1){background:var(--tfr-acc)}
@media (prefers-reduced-motion:no-preference){
 .tier-final-result .tfr-confetti i{animation:tfr-fall 2.4s ease-in var(--d) 1 forwards}
 .tier-final-result .tfr-badge{animation:tfr-pop .5s ease-out both}
 .tier-final-result .tfr-person{animation:tfr-rise .45s ease-out both}.tier-final-result .tfr-time{animation-delay:.12s}
}
@media (prefers-reduced-motion:reduce){.tier-final-result .tfr-timer i{animation:none}}
@keyframes tfr-fall{0%{opacity:1;transform:translateY(0) rotate(var(--r))}100%{opacity:0;transform:translateY(420px) rotate(calc(var(--r) + 300deg))}}
@keyframes tfr-pop{0%{transform:scale(.3);opacity:0}70%{transform:scale(1.12);opacity:1}100%{transform:scale(1)}}
@keyframes tfr-rise{0%{transform:translateY(14px);opacity:0}100%{transform:none;opacity:1}}
@keyframes tfr-timer{from{transform:scaleX(1)}to{transform:scaleX(0)}}
@media (max-width:520px){.tier-final-result .tfr-people{grid-template-columns:1fr}.tier-final-result h2{font-size:23px}}
