.rote-command-header { align-items: center; }
.rote-view-switcher {
  display: flex;
  gap: 8px;
  padding: 8px;
  border: 1px solid #213451;
  border-radius: 16px;
  background: #0b1425;
  width: fit-content;
}
.rote-view-switcher button {
  background: transparent;
  color: #91a5c5;
  border: 1px solid transparent;
  padding: 10px 14px;
}
.rote-view-switcher button.active {
  color: #06151b;
  border-color: #6df1dd;
  background: linear-gradient(90deg, #70def0, #73f0cb);
}
.rote-map-view[hidden], .rote-operations-view[hidden] { display: none !important; }
.rote-map-view { display: grid; gap: 14px; }
.rote-map-layout {
  display: grid;
  grid-template-columns: minmax(620px, 1.35fr) minmax(360px, .65fr);
  gap: 14px;
  align-items: start;
}
.rote-map-card { padding: 18px; overflow: hidden; }
.rote-map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.rote-map-toolbar h3 { margin: 0; }
.rote-map-legend { display: flex; flex-wrap: wrap; gap: 6px; }
.rote-map-legend span {
  border-radius: 999px;
  border: 1px solid #2b3d5d;
  background: #0a1221;
  color: #91a3c0;
  padding: 5px 8px;
  font-size: .66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.rote-map-legend .deep { border-color: rgba(98,255,193,.5); color: #a6ffd7; }
.rote-map-legend .ready { border-color: rgba(112,222,240,.5); color: #baf7ff; }
.rote-map-legend .thin { border-color: rgba(255,197,80,.5); color: #ffe39a; }
.rote-map-legend .blocked { border-color: rgba(255,100,100,.45); color: #ffaaa5; }

.rote-galaxy-map {
  position: relative;
  min-height: 690px;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(99,219,255,.24);
  background:
    radial-gradient(circle at 50% 102%, rgba(34,153,189,.24), transparent 30%),
    radial-gradient(circle at 18% 22%, rgba(128,61,202,.18), transparent 23%),
    radial-gradient(circle at 78% 18%, rgba(34,122,204,.18), transparent 24%),
    radial-gradient(circle at 52% 48%, rgba(16,57,91,.52), rgba(5,11,23,.92) 58%),
    #06101e;
  box-shadow: inset 0 0 80px rgba(0,0,0,.42);
}
.rote-galaxy-map::before,
.rote-galaxy-map::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.rote-galaxy-map::before {
  opacity: .32;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.8) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(112,222,240,.55) 0 1px, transparent 1.5px);
  background-size: 54px 54px, 88px 88px;
  background-position: 8px 12px, 31px 41px;
}
.rote-galaxy-map::after {
  inset: 7% 7% -35% 7%;
  border: 1px solid rgba(97,221,255,.16);
  border-radius: 50%;
  box-shadow:
    0 0 0 72px rgba(71,207,255,.025),
    0 0 0 144px rgba(71,207,255,.018),
    0 0 0 216px rgba(71,207,255,.012);
}
.rote-galaxy-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.rote-galaxy-lines .route { fill: none; stroke-width: .55; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 4px currentColor); }
.rote-galaxy-lines .dark { stroke: #e75a78; color: #e75a78; }
.rote-galaxy-lines .mixed { stroke: #e6bd58; color: #e6bd58; }
.rote-galaxy-lines .light { stroke: #62d7f4; color: #62d7f4; }
.rote-galaxy-lines .bonus { stroke: #a77ff2; color: #a77ff2; stroke-dasharray: 3 2; }
.rote-map-phase-label {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(172,196,228,.34);
  font-size: .62rem;
  letter-spacing: .14em;
  font-weight: 900;
  pointer-events: none;
}
.rote-map-core {
  position: absolute;
  left: 50%;
  top: 96%;
  transform: translate(-50%,-50%);
  z-index: 2;
  width: 94px;
  height: 94px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid rgba(112,222,240,.4);
  background: radial-gradient(circle, #153c5d, #07111f 68%);
  box-shadow: 0 0 34px rgba(84,223,244,.24);
  color: #dffcff;
}
.rote-map-core span { font-weight: 950; letter-spacing: .1em; }
.rote-map-core small { font-size: .58rem; color: #78ddec; letter-spacing: .13em; }

.rote-planet-node {
  position: absolute;
  z-index: 3;
  transform: translate(-50%,-50%);
  width: 132px;
  min-height: 60px;
  padding: 7px 9px 7px 58px;
  border-radius: 14px;
  text-align: left;
  background: rgba(6,15,28,.88);
  color: #dce9fb;
  border: 1px solid #2a3d5d;
  box-shadow: 0 10px 28px rgba(0,0,0,.32);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.rote-planet-node:hover,
.rote-planet-node.selected {
  transform: translate(-50%,-50%) scale(1.045);
  border-color: #73e6f1;
  box-shadow: 0 0 0 2px rgba(115,230,241,.1), 0 14px 36px rgba(0,0,0,.42);
}
.rote-planet-node.bonus { border-style: dashed; }
.rote-planet-orb {
  position: absolute;
  left: 10px;
  top: 50%;
  width: 38px;
  height: 38px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #d5f5ff, #46698a 24%, #14263b 68%);
  border: 2px solid #506984;
  box-shadow: 0 0 18px rgba(80,105,132,.3);
}
.rote-planet-node.status-deep .rote-planet-orb { border-color: #65efb6; box-shadow: 0 0 20px rgba(101,239,182,.36); }
.rote-planet-node.status-ready .rote-planet-orb { border-color: #69dff2; box-shadow: 0 0 20px rgba(105,223,242,.34); }
.rote-planet-node.status-thin .rote-planet-orb { border-color: #f3c45b; box-shadow: 0 0 20px rgba(243,196,91,.28); }
.rote-planet-node.status-blocked .rote-planet-orb { border-color: #df6670; box-shadow: 0 0 20px rgba(223,102,112,.25); filter: saturate(.55); }
.rote-planet-copy { display: grid; gap: 3px; min-width: 0; }
.rote-planet-copy strong { font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rote-planet-copy small { color: #8295b4; font-size: .59rem; line-height: 1.25; }

.rote-mission-board { padding: 18px; display: grid; gap: 16px; max-height: 940px; overflow: auto; position: sticky; top: 72px; }
.rote-board-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.rote-board-head h3 { margin: 0 0 5px; font-size: 1.45rem; }
.rote-board-head p { margin: 0; color: #899bb8; line-height: 1.45; font-size: .78rem; }
.rote-board-status { flex: 0 0 auto; border-radius: 999px; border: 1px solid #2d4263; padding: 7px 9px; font-size: .63rem; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.rote-board-status.status-deep { color: #9fffcf; border-color: rgba(100,239,182,.38); background: rgba(100,239,182,.07); }
.rote-board-status.status-ready { color: #b8f7ff; border-color: rgba(105,223,242,.38); background: rgba(105,223,242,.07); }
.rote-board-status.status-thin { color: #ffe29a; border-color: rgba(243,196,91,.38); background: rgba(243,196,91,.07); }
.rote-board-status.status-blocked { color: #ffaaa5; border-color: rgba(223,102,112,.38); background: rgba(223,102,112,.07); }
.rote-board-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.rote-board-summary > div { border: 1px solid #1f304b; background: #0a1322; border-radius: 11px; padding: 9px; }
.rote-board-summary span { display: block; color: #7186a7; font-size: .58rem; text-transform: uppercase; letter-spacing: .06em; }
.rote-board-summary strong { display: block; margin-top: 4px; font-size: .85rem; }
.rote-board-section { display: grid; gap: 10px; padding-top: 4px; border-top: 1px solid #1a2a43; }
.rote-board-section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rote-board-section-head span { color: #72dff0; font-size: .61rem; font-weight: 800; letter-spacing: .1em; }
.rote-board-section-head h4 { margin: 3px 0 0; font-size: .95rem; }
.rote-board-section-head > b { color: #b9cae1; font-size: .8rem; }
.rote-board-section-head button { padding: 7px 9px; font-size: .66rem; }
.rote-mission-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rote-mission-chips span { border: 1px solid #243954; border-radius: 999px; background: #101b2e; color: #c3d1e7; padding: 6px 8px; font-size: .66rem; }
.rote-boundary-note { margin: 0; color: #7588a7; font-size: .69rem; line-height: 1.45; }
.rote-gate-core { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 6px; }
.rote-gate-unit { border: 1px solid #21334e; border-radius: 12px; background: #0c1626; padding: 8px; text-align: center; min-width: 0; }
.rote-gate-rank { color: #6edfee; font-size: .52rem; font-weight: 900; letter-spacing: .07em; }
.rote-gate-portrait { width: 48px; height: 48px; margin: 6px auto; overflow: hidden; border-radius: 50%; border: 2px solid #314866; display: grid; place-items: center; background: #16243a; color: #87dff0; font-weight: 900; }
.rote-gate-portrait img { width: 100%; height: 100%; object-fit: cover; }
.rote-gate-unit > strong { display: block; font-size: .65rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rote-gate-unit > span { display: block; color: #788ca9; font-size: .56rem; margin: 4px 0 7px; line-height: 1.3; }
.rote-gate-unit button { width: 100%; padding: 6px 5px; font-size: .55rem; }
.rote-candidate-grid { display: grid; gap: 6px; }
.rote-candidate { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 8px; padding: 7px; background: #0b1525; color: #dfeaff; border: 1px solid #1f324e; text-align: left; }
.rote-candidate:hover { border-color: #4bb8cc; }
.rote-candidate-portrait { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; border: 1px solid #324a69; display: grid; place-items: center; background: #14243a; font-size: .6rem; font-weight: 900; }
.rote-candidate-portrait img { width: 100%; height: 100%; object-fit: cover; }
.rote-candidate strong, .rote-candidate small { display: block; }
.rote-candidate strong { font-size: .7rem; }
.rote-candidate small { color: #7488a7; font-size: .59rem; margin-top: 2px; }
.rote-candidate b { font-size: 1rem; color: #75e8dc; }
.rote-map-empty { color: #8092ae; border: 1px dashed #263a58; border-radius: 13px; padding: 18px; text-align: center; font-size: .78rem; }
.rote-map-boundary { color: #8497b4; font-size: .76rem; line-height: 1.5; }
.rote-map-boundary strong { color: #dfeaff; }

@media (max-width: 1200px) {
  .rote-map-layout { grid-template-columns: 1fr; }
  .rote-mission-board { position: static; max-height: none; }
}
@media (max-width: 820px) {
  .rote-galaxy-map { min-height: 760px; overflow-x: auto; }
  .rote-planet-node { width: 112px; padding-left: 48px; }
  .rote-planet-orb { width: 32px; height: 32px; left: 8px; }
  .rote-gate-core { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .rote-board-summary { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 560px) {
  .rote-map-card { padding: 10px; }
  .rote-map-toolbar { align-items: flex-start; flex-direction: column; }
  .rote-galaxy-map { min-height: 820px; }
  .rote-planet-node { width: 96px; min-height: 50px; padding: 6px 6px 6px 38px; }
  .rote-planet-orb { width: 26px; height: 26px; left: 6px; }
  .rote-planet-copy strong { font-size: .66rem; }
  .rote-planet-copy small { font-size: .51rem; }
  .rote-board-head { flex-direction: column; }
  .rote-board-summary { grid-template-columns: 1fr 1fr; }
  .rote-gate-core { grid-template-columns: 1fr 1fr; }
}
