.rank-guide-link{display:flex;width:fit-content;margin-left:auto;align-items:center;justify-content:center;gap:8px;min-height:38px;padding:8px 13px;border:1px solid #c9d8ed;border-radius:5px;background:#f7faff;color:#2e619f;font:600 11px/1.4 var(--body);text-decoration:none;transition:background-color .2s,border-color .2s}
.rank-guide-link:hover{background:#eaf2fd;border-color:#9bbbe2;text-decoration:none;transform:none}
.configured-options{margin:16px 0 8px;border-top:1px solid var(--line)}
.configured-options>div{grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;padding:12px 0;align-items:center}
.configured-options>div>span{grid-column:1;grid-row:1;font-size:10px;line-height:1.4}
.configured-options>div>b{grid-column:1;grid-row:2;font-size:12px;line-height:1.5}
.configured-options>div>.summary-edit{grid-column:2;grid-row:1/3;align-self:center;padding:6px 9px;border:1px solid #d4e0ef;border-radius:4px;background:#f7faff;color:#3269ad;font:600 10px/1.3 var(--body);text-decoration:none;transition:background-color .2s,border-color .2s}
.configured-options>div>.summary-edit:hover{background:#eaf2fd;border-color:#a5bfdf;transform:none;text-decoration:none}
.configured-options>.chosen-heroes-summary>span{grid-column:1;grid-row:1}
.configured-options>.chosen-heroes-summary>#summary-hero-list{grid-column:1/-1;grid-row:2;margin:4px 0 0}
.configured-options>.chosen-heroes-summary>.summary-edit{grid-row:1}
.option-editor-open{overflow:hidden;scrollbar-gutter:stable}
dialog.option-editor{width:min(940px,calc(100% - 40px));max-width:none;max-height:calc(100dvh - 48px);padding:0;margin:auto;border:1px solid #cbd9eb;border-radius:12px;background:#fff;color:var(--navy);box-shadow:0 24px 80px #162e5340;overflow:hidden}
dialog.option-editor[open]{display:flex;flex-direction:column;animation:editor-enter .2s ease-out}
dialog.option-editor::backdrop{background:#142c4d66;backdrop-filter:blur(3px)}
dialog.option-editor[data-editor=role]{width:min(590px,calc(100% - 40px))}
.editor-header{display:flex;align-items:center;gap:12px;padding:22px 26px;border-bottom:1px solid #e3eaf3;flex:none}
.option-editor .editor-header h2{flex:1;margin:0;font:700 22px/1.3 var(--body);letter-spacing:-.4px;outline:none}
.editor-close,.editor-back{display:inline-flex;align-items:center;justify-content:center;flex:none;width:34px;height:34px;border:1px solid #d5e0ee;border-radius:5px;background:#f6f9fd;color:#3f6089;font:400 22px/1 var(--body)}
.editor-close:hover,.editor-back:hover{background:#eaf2fd}
.editor-body{min-height:0;overflow:auto;overscroll-behavior:contain;padding:24px 26px;scrollbar-gutter:stable}
.editor-footer{flex:none;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:16px 26px;border-top:1px solid #e3eaf3;background:#fafcff}
.editor-footer>div{display:flex;flex-direction:column;gap:3px}
.editor-footer span{font-size:10px;color:var(--muted)}
.editor-footer strong{font:700 24px/1.2 var(--display);color:#205dae}
.editor-footer .button{min-width:115px;margin:0}
.editor-status{flex-basis:100%;margin:0;font-size:12px;color:#965c21;line-height:1.5}
.editor-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
[data-editor=role] .editor-choices{grid-template-columns:repeat(3,minmax(0,1fr))}
.editor-choice{display:flex;align-items:center;justify-content:center;gap:10px;min-width:0;min-height:92px;padding:18px 14px;text-align:left;border:1px solid #cddaea;border-radius:7px;background:#fff;color:#263f63;transition:background-color .2s,border-color .2s}
.editor-choice:hover{background:#f5f9ff;border-color:#9bb8dc}
.editor-choice[aria-pressed=true]{background:#eaf2ff;border-color:#4980ce;box-shadow:inset 0 0 0 1px #4980ce}
.editor-choice b{display:block;font:700 15px/1.4 var(--body)}
.editor-choice small{display:block;margin-top:6px;font:400 12px/1.5 var(--body);color:#60738e}
.editor-choice .calc-select-icon{width:24px;height:24px;flex:none;color:#4675b3}
.editor-choice .calc-select-icon svg{width:100%;height:100%}
.option-editor .editor-body>.wrap{width:100%;max-width:none;margin:0!important;padding:0!important;border:0;background:none;box-shadow:none}
.option-editor .character-selector-heading>div,.option-editor .character-selection-footer,.option-editor .schedule-heading,.option-editor .schedule-footer{display:none}
.option-editor .character-selector-heading{justify-content:flex-end;margin:0 0 14px}
.option-editor .character-role-button{margin:0}
.option-editor .schedule-shell{margin:0;padding:0;border:0;border-radius:0}
.option-editor .schedule-workspace{grid-template-columns:minmax(230px,.9fr) minmax(0,1.1fr);gap:24px}

.option-editor .portrait-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
.option-editor[data-hero-mode=any] .character-gallery-heading,.option-editor[data-hero-mode=any] .portrait-grid{display:none}
.option-editor .character-availability{margin-bottom:0}
@keyframes editor-enter{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:650px){dialog.option-editor,dialog.option-editor[data-editor=role]{width:calc(100% - 24px);max-height:calc(100dvh - 24px);border-radius:9px}.editor-header{padding:17px 16px}.option-editor .editor-header h2{font-size:21px}.editor-body{padding:18px 16px}.editor-footer{padding:14px 16px}.editor-choices{grid-template-columns:1fr}.editor-choice{min-height:74px;padding:14px 10px}[data-editor=role] .editor-choice{flex-direction:column;text-align:center;gap:7px}.option-editor .schedule-workspace{grid-template-columns:1fr;gap:22px}.option-editor .portrait-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.editor-footer strong{font-size:22px}}
@media(prefers-reduced-motion:reduce){dialog.option-editor[open]{animation:none}}

.order-summary #route-meta.summary-badges{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:14px 0 0}
.summary-badge{display:inline-flex;align-items:center;justify-content:center;min-height:28px;padding:4px 12px;border:1px solid #d5e0ef;border-radius:5px;background:#f1f6fd;color:#426b9b;font:600 11px/1.4 var(--body)}
