/* EVE exploration panels. Independent override; remove both new links to roll back.
   Measurements follow the 1920 x 1080 game canvas, which resizeGame scales once. */
#modal-content.exploration-preparation-modal, #game-container #choice-container.eve-area-select-panel > .eve-area-select-shell {
    --exp-edge: #6dabc43b;
    --exp-muted: #95afc2;
    position: relative;
    isolation: isolate;
    box-sizing: border-box;
    color: #e5f3fb;
    border: 0 !important;
    border-radius: 0 !important;
    background: linear-gradient(125deg, #e0fcff, #1abaff 22%, #82e8ff 52%, #1689df 78%, #d9fbff) !important;
    clip-path: polygon(22px 0, calc(100% - 22px) 0, 100% 22px, 100% calc(100% - 22px), calc(100% - 22px) 100%, 22px 100%, 0 calc(100% - 22px), 0 22px);
    box-shadow: none !important;
}
#modal-content.exploration-preparation-modal::before, #game-container #choice-container.eve-area-select-panel > .eve-area-select-shell::before {
    content: "";
    position: absolute;
    inset: 3px;
    height: auto;
    z-index: -2;
    pointer-events: none;
    clip-path: polygon(20px 0, calc(100% - 20px) 0, 100% 20px, 100% calc(100% - 20px), calc(100% - 20px) 100%, 20px 100%, 0 calc(100% - 20px), 0 20px);
    background: radial-gradient(ellipse at 15% 0%, #23425838, transparent 50%), linear-gradient(135deg, #0e1b2b, #081321 70%, #102236);
    box-shadow: inset 0 0 18px #35caff50, inset 0 0 5px #d6faff;
}
#modal-content.exploration-preparation-modal::after, #game-container #choice-container.eve-area-select-panel > .eve-area-select-shell::after {
    content: "";
    position: absolute;
    inset: 10px;
    z-index: -1;
    border: 1px solid #7ee7ff70;
    border-radius: 8px;
    box-shadow: 0 0 7px #36caff70;
    pointer-events: none;
}
#modal-content.exploration-preparation-modal button, #game-container #choice-container.eve-area-select-panel button {
    color: #e4f4fc;
    background: linear-gradient(125deg, #192f44, #102033);
    border: 1px solid #608ca654;
    border-radius: 4px;
    box-shadow: inset 0 1px 0 #d6f6ff12;
    text-shadow: none;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
#modal-content.exploration-preparation-modal button:hover:not(:disabled):not([aria-disabled="true"]), #game-container #choice-container.eve-area-select-panel button:hover:not(:disabled) {
    background: linear-gradient(125deg, #20465f, #142d43);
    border-color: #8fe5ff;
    box-shadow: inset 0 0 16px #44d4ff12;
    transform: none;
}
#modal-content.exploration-preparation-modal button:focus-visible, #game-container #choice-container.eve-area-select-panel button:focus-visible {
    outline: 2px solid #d2f6ff;
    outline-offset: -4px;
}
#modal-content.exploration-preparation-modal button:disabled, #game-container #choice-container.eve-area-select-panel button:disabled { cursor: default; }
#modal-content.exploration-preparation-modal, #modal-content.exploration-preparation-modal *, #game-container #choice-container.eve-area-select-panel, #game-container #choice-container.eve-area-select-panel * { scrollbar-width: thin; scrollbar-color: #559fbd #091625; }
#modal-content.exploration-preparation-modal ::-webkit-scrollbar, #game-container #choice-container.eve-area-select-panel ::-webkit-scrollbar { width: 8px; height: 8px; }
#modal-content.exploration-preparation-modal ::-webkit-scrollbar-thumb, #game-container #choice-container.eve-area-select-panel ::-webkit-scrollbar-thumb { background: #559fbd; border-radius: 4px; }
#modal-content.exploration-preparation-modal ::-webkit-scrollbar-track, #game-container #choice-container.eve-area-select-panel ::-webkit-scrollbar-track { background: #091625; }

/* Preparation: fixed title, status strip and footer around one scrolling body. */
#modal-content.exploration-preparation-modal {
    display: flex;
    flex-direction: column;
    width: 1360px !important;
    height: 940px !important;
    max-width: calc(100% - 48px) !important;
    max-height: calc(100% - 48px) !important;
    padding: 36px 40px 28px !important;
    overflow: hidden;
}
#modal-content.exploration-preparation-modal #modal-title {
    flex: 0 0 auto;
    min-height: 54px;
    margin: 0 64px 22px 0;
    padding: 0 0 16px 20px;
    border-left: 4px solid #b9efff;
    border-bottom: 1px solid #63b9d64a;
    color: #edfaff;
    font-size: 29px;
    line-height: 1.25;
    text-shadow: 0 0 14px #4acbff40;
}
#modal-content.exploration-preparation-modal .modal-x-btn { top: 30px; right: 36px; width: 46px; height: 42px; min-height: 0; padding: 0; font-size: 25px; }
#modal-content.exploration-preparation-modal #modal-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    max-height: none !important;
    padding: 0 !important;
    overflow: hidden !important;
}
#modal-content.exploration-preparation-modal .eve-prep-status-grid {
    flex: 0 0 auto;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
    margin: 0 0 18px;
    border: 1px solid var(--exp-edge);
    background: #122335;
}
#modal-content.exploration-preparation-modal .eve-prep-status-grid > div { min-height: 86px; padding: 16px 20px; gap: 10px; border: 0; border-right: 1px solid var(--exp-edge); border-radius: 0; background: transparent; box-shadow: none; }
#modal-content.exploration-preparation-modal .eve-prep-status-grid > div:last-child { border-right: 0; }
#modal-content.exploration-preparation-modal .eve-prep-status-grid > div::before { content: none; }
#modal-content.exploration-preparation-modal .eve-prep-status-grid span { font-size: 11px; color: var(--exp-muted); letter-spacing: .04em; }
#modal-content.exploration-preparation-modal .eve-prep-status-grid strong { font-size: 26px; color: #eef9ff; }
#modal-content.exploration-preparation-modal .eve-prep-content-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    padding: 0 8px 0 0;
}
#modal-content.exploration-preparation-modal .eve-prep-section { margin: 0 0 16px; padding: 0; border: 1px solid var(--exp-edge); border-radius: 4px; background: #0d1c2c; box-shadow: none; }
#modal-content.exploration-preparation-modal .eve-prep-section:last-child { margin-bottom: 0; }
#modal-content.exploration-preparation-modal .eve-prep-section > header { margin: 0; padding: 14px 20px; min-height: 48px; border-bottom: 1px solid var(--exp-edge); background: #15293b; }
#modal-content.exploration-preparation-modal .eve-prep-section > header strong { font-size: 15px; letter-spacing: .04em; }
#modal-content.exploration-preparation-modal .eve-prep-slot-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; padding: 18px; }
#modal-content.exploration-preparation-modal .eve-prep-slot {
    width: 100%;
    max-width: none;
    height: 184px;
    grid-template-rows: 26px 112px minmax(0, 1fr);
    justify-self: stretch;
    border: 1px solid #658aa647;
    border-radius: 4px;
    background: #102133;
    box-shadow: none;
}
#modal-content.exploration-preparation-modal .eve-prep-slot.is-filled { border-color: #6bcfe582; box-shadow: inset 0 -2px 0 #6bcfe5; }
#modal-content.exploration-preparation-modal .eve-prep-slot > span:first-child { font-size: 10px; color: #9dbbce; background: #1a3043; }
#modal-content.exploration-preparation-modal .eve-prep-slot-art { width: 112px; height: 112px; border-radius: 0; background: #091827; box-shadow: none; }
#modal-content.exploration-preparation-modal .eve-prep-slot-art img { padding: 8px; filter: none; }
#modal-content.exploration-preparation-modal .eve-prep-slot > strong { padding: 6px 10px; font-size: 13px; line-height: 1.35; background: #122638; }
#modal-content.exploration-preparation-modal .eve-prep-slot:is(.is-empty, .is-locked) { grid-template-rows: 26px minmax(0, 1fr); opacity: 1; filter: none; }
#modal-content.exploration-preparation-modal .eve-prep-slot:is(.is-empty, .is-locked) > strong { width: 100%; height: 100%; align-self: stretch; background: transparent; border-radius: 0; }
#modal-content.exploration-preparation-modal .eve-prep-slot.is-empty > strong { font-size: 32px; color: #76aec7; }
#modal-content.exploration-preparation-modal .eve-prep-slot.is-locked { background: #0b1825; border-color: #68849d26; }
#modal-content.exploration-preparation-modal .eve-prep-slot.is-locked > strong { color: #71899b; font-size: 11px; }
#modal-content.exploration-preparation-modal .eve-prep-slot.is-locked > span { color: #627e92; background: #112131; }
#modal-content.exploration-preparation-modal .eve-prep-skill-scroll { max-height: none; overflow: visible; padding: 18px; scrollbar-gutter: auto; }
#modal-content.exploration-preparation-modal .eve-prep-skill-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
#modal-content.exploration-preparation-modal .eve-prep-skill-card { width: 100%; height: 154px; grid-template-rows: 108px minmax(0, 1fr); border-radius: 4px; background: #102133; box-shadow: none; }
#modal-content.exploration-preparation-modal .eve-prep-skill-art { width: 108px; height: 108px; border-radius: 0; background: #0a1827; box-shadow: none; }
#modal-content.exploration-preparation-modal .eve-prep-skill-art img { padding: 8px; filter: none; }
#modal-content.exploration-preparation-modal .eve-prep-skill-card > strong { padding: 6px 8px; font-size: 13px; line-height: 1.4; background: #122638; }
#modal-content.exploration-preparation-modal .eve-prep-skill-card.is-equipped { border-color: #73d5b6; box-shadow: inset 0 -3px 0 #73d5b6; }
#modal-content.exploration-preparation-modal .eve-prep-skill-card.is-full { opacity: .55; }
#modal-content.exploration-preparation-modal .eve-prep-passive-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 18px; gap: 12px; }
#modal-content.exploration-preparation-modal .eve-prep-passive-chip { min-width: 0; gap: 12px; padding: 12px; border-radius: 3px; background: #112b30; border-color: #73bfa333; }
#modal-content.exploration-preparation-modal .eve-prep-passive-chip > img { width: 42px; height: 42px; flex-basis: 42px; }
#modal-content.exploration-preparation-modal .eve-prep-passive-chip strong { font-size: 13px; }
#modal-content.exploration-preparation-modal .eve-prep-passive-chip small { font-size: 12px; }
#modal-content.exploration-preparation-modal .eve-prep-passive-empty { grid-column: 1 / -1; padding: 8px; font-size: 13px; color: #91a9bc; }
#modal-content.exploration-preparation-modal .eve-prep-footer { flex: 0 0 auto; margin: 18px 0 0; padding: 16px 0 0; min-height: 74px; border-top: 1px solid #70b4d24d; background: transparent; }
#modal-content.exploration-preparation-modal .eve-prep-start-btn { min-width: 260px; min-height: 58px; padding: 14px 32px; border: 1px solid #8ae4ff; border-radius: 0; background: linear-gradient(120deg, #235774, #17384f); box-shadow: inset 0 -2px 0 #76dfff; font-size: 18px; clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }

/* Area selection: below the HUD, leaving the character column unobstructed. */
#game-container #choice-container.eve-area-select-panel { top: 216px !important; left: 430px !important; right: 24px !important; bottom: 24px !important; width: auto !important; height: auto !important; padding: 0 !important; overflow: visible !important; }
#game-container #choice-container.eve-area-select-panel > .eve-area-select-shell {
    display: grid;
    grid-template-columns: 264px minmax(0, 1fr);
    grid-template-rows: 66px minmax(0, 1fr) 126px 66px;
    grid-template-areas: "heading heading" "areas briefing" "loadout loadout" "actions actions";
    gap: 16px;
    width: 100%;
    height: 100%;
    padding: 28px 30px;
    overflow: hidden;
}
#game-container #choice-container.eve-area-select-panel .eve-exploration-header { grid-area: heading; min-height: 0; padding: 0 0 12px 18px; margin: 0; border-left: 3px solid #b6f0ff; border-bottom: 1px solid #66b1d248; align-items: flex-start; }
#game-container #choice-container.eve-area-select-panel .eve-exploration-header h2 { margin: 7px 0 0; font-size: 26px; line-height: 1.2; }
#game-container #choice-container.eve-area-select-panel .eve-exploration-kicker { font-size: 10px; letter-spacing: .18em; color: #8dc8e0; }
#game-container #choice-container.eve-area-select-panel .eve-exploration-kicker::before { content: none; }
#game-container #choice-container.eve-area-select-panel .eve-area-grid { grid-area: areas; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(5, minmax(76px, 1fr)); min-height: 0; gap: 8px; padding: 0 4px 0 0; margin: 0; overflow-y: auto; }
#game-container #choice-container.eve-area-select-panel .eve-area-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-content: center;
    gap: 7px 10px;
    min-height: 76px;
    margin: 0;
    padding: 12px 18px;
    text-align: left;
    border: 1px solid #688da63d;
    border-radius: 4px;
    background: #112437;
    box-shadow: none;
    transform: none;
}
#game-container #choice-container.eve-area-select-panel .eve-area-card::before, #game-container #choice-container.eve-area-select-panel .eve-area-card::after { content: none; }
#game-container #choice-container.eve-area-select-panel .eve-area-number { grid-column: 1; margin: 0; color: #88b2c8; font-size: 10px; letter-spacing: .12em; }
#game-container #choice-container.eve-area-select-panel .eve-area-card strong { grid-column: 1 / -1; grid-row: 2; margin: 0; color: #e3f1f9; font-size: 17px; line-height: 1.35; }
#game-container #choice-container.eve-area-select-panel .eve-area-card small { grid-column: 2; grid-row: 1; margin: 0; color: #8ebace; font-size: 10px; line-height: 1.3; }
#game-container #choice-container.eve-area-select-panel .eve-area-card.is-selected { background: linear-gradient(100deg, #22455c, #152e43); border-color: #80dcf7; box-shadow: inset 3px 0 0 #80dcf7; transform: none; }
#game-container #choice-container.eve-area-select-panel .eve-area-card:disabled { opacity: 1; background: #0e1c2c; border-color: #688da62a; }
#game-container #choice-container.eve-area-select-panel .eve-area-card:disabled strong { color: #7f99ad; }
#game-container #choice-container.eve-area-select-panel .eve-area-card:disabled :is(small, .eve-area-number) { color: #607e94; }
#game-container #choice-container.eve-area-select-panel .eve-area-briefing { grid-area: briefing; display: flex; flex-direction: column; min-height: 0; margin: 0; padding: 0; overflow: auto; border: 1px solid var(--exp-edge); border-radius: 4px; background: #0c1a2a; }
#game-container #choice-container.eve-area-select-panel .eve-area-briefing-title { flex: 0 0 auto; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 8px; min-height: 88px; padding: 20px 24px; border: 0; border-bottom: 1px solid var(--exp-edge); background: #162c40; }
#game-container #choice-container.eve-area-select-panel .eve-area-briefing-title span { margin: 0; font-size: 10px; letter-spacing: .12em; color: #94c4da; }
#game-container #choice-container.eve-area-select-panel .eve-area-briefing-title strong { font-size: 24px; }
#game-container #choice-container.eve-area-select-panel .eve-area-briefing-grid { flex: 1 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; padding: 8px 24px 16px; }
#game-container #choice-container.eve-area-select-panel .eve-area-briefing-grid > div { min-height: 80px; padding: 16px 18px 16px 0; border: 0; border-bottom: 1px solid #6589a12b; background: none; }
#game-container #choice-container.eve-area-select-panel .eve-area-briefing-grid > div:nth-child(2n) { padding-left: 20px; border-left: 1px solid #6589a12b; }
#game-container #choice-container.eve-area-select-panel .eve-area-briefing-grid > div:nth-child(3) { grid-column: 1 / -1; border-left: 0; }
#game-container #choice-container.eve-area-select-panel .eve-area-briefing-grid > div:nth-child(4) { padding-left: 0; border-left: 0; }
#game-container #choice-container.eve-area-select-panel .eve-area-briefing-grid > div:nth-child(5) { padding-left: 20px; border-left: 1px solid #6589a12b; }
#game-container #choice-container.eve-area-select-panel .eve-area-briefing-grid span { display: block; margin-bottom: 9px; color: #88a8bd; font-size: 12px; letter-spacing: .02em; }
#game-container #choice-container.eve-area-select-panel .eve-area-briefing-grid strong { font-size: 15px; line-height: 1.7; color: #dceef8; white-space: normal; word-break: keep-all; overflow-wrap: anywhere; }
#game-container #choice-container.eve-area-select-panel .eve-area-briefing.is-empty { align-items: center; justify-content: center; min-height: 0; border: 1px solid var(--exp-edge); background: radial-gradient(ellipse at center, #17304780, transparent 70%), #0c1a2a; }
#game-container #choice-container.eve-area-select-panel .eve-area-briefing.is-empty > span { max-width: 80%; padding: 24px; font-size: 15px; line-height: 1.7; text-align: center; color: #9ab7c9; }
#game-container #choice-container.eve-area-select-panel .eve-loadout-panel { grid-area: loadout; min-height: 0; margin: 0; padding: 12px 16px; border: 1px solid var(--exp-edge); border-radius: 4px; background: #112335; }
#game-container #choice-container.eve-area-select-panel .eve-loadout-header { margin: 0 0 10px; padding: 0; }
#game-container #choice-container.eve-area-select-panel .eve-loadout-header strong { font-size: 13px; color: #c8e3ef; letter-spacing: .05em; }
#game-container #choice-container.eve-area-select-panel .eve-loadout-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; border: 1px solid var(--exp-edge); background: #0b1a29; }
#game-container #choice-container.eve-area-select-panel .eve-loadout-item, #game-container #choice-container.eve-area-select-panel .eve-loadout-item:last-child { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 64px; padding: 10px 16px; border: 0; border-right: 1px solid var(--exp-edge); border-radius: 0; background: transparent; }
#game-container #choice-container.eve-area-select-panel .eve-loadout-item:last-child { border-right: 0; }
#game-container #choice-container.eve-area-select-panel .eve-loadout-info strong { font-size: 15px; }
#game-container #choice-container.eve-area-select-panel .eve-loadout-info small { margin-top: 6px; font-size: 11px; color: #8faabd; }
#game-container #choice-container.eve-area-select-panel .eve-loadout-controls { display: flex; align-items: center; gap: 7px; }
#game-container #choice-container.eve-area-select-panel .eve-loadout-control { width: 32px; height: 32px; min-width: 32px; padding: 0; border-radius: 3px; font-size: 18px; }
#game-container #choice-container.eve-area-select-panel .eve-loadout-max { min-width: 44px; height: 32px; padding: 0 7px; border-radius: 3px; font-size: 11px; }
#game-container #choice-container.eve-area-select-panel .eve-loadout-count { min-width: 30px; font-size: 16px; color: #f2faff; font-variant-numeric: tabular-nums; }
#game-container #choice-container.eve-area-select-panel .eve-exploration-lobby-actions { grid-area: actions; display: flex; flex-direction: row-reverse; align-items: center; justify-content: space-between; gap: 16px; min-height: 0; margin: 0; padding: 12px 0 0; border-top: 1px solid #70b4d24d; }
#game-container #choice-container.eve-area-select-panel .eve-exploration-lobby-actions .scenario-choice-btn { position: static !important; width: 240px !important; min-height: 54px !important; margin: 0 !important; padding: 12px 24px !important; font-size: 17px !important; line-height: 1.3; background: linear-gradient(120deg, #235774, #17384f) !important; border: 1px solid #8ae4ff !important; border-radius: 0 !important; box-shadow: inset 0 -2px 0 #76dfff !important; clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
#game-container #choice-container.eve-area-select-panel .eve-exploration-lobby-actions .scenario-choice-btn::before, #game-container #choice-container.eve-area-select-panel .eve-exploration-lobby-actions .scenario-choice-btn::after { content: none !important; }
#game-container #choice-container.eve-area-select-panel .eve-exploration-lobby-actions .eve-exploration-cancel-btn { width: 180px !important; background: #122337 !important; border-color: #6a8ba654 !important; box-shadow: none !important; }
#game-container #choice-container.eve-area-select-panel .eve-exploration-lobby-actions .scenario-choice-btn:disabled { color: #7c95a9; background: #132436 !important; border-color: #6a8ba654 !important; box-shadow: none !important; opacity: .65; }
