.msea-guide .msea-head { margin-bottom:12px; }
.msea-guide .msea-head h2 { margin-bottom:5px; font-size:clamp(26px,3.5vw,36px); }
.msea-guide .msea-head p { line-height:1.45; }
.msea-guide .terms { display:flex; flex-wrap:wrap; gap:6px; margin-block:0 10px; }
.msea-guide button { font:inherit; font-weight:750; border:1px solid #d9dce4; border-radius:9px; background:#fff; color:#161923; padding:6px 12px; cursor:pointer; }
.msea-guide button[aria-pressed="true"] { background:#be2237; color:#fff; border-color:#be2237; }
.msea-guide button:focus-visible { outline:2px solid #aa5f00; outline-offset:2px; }
.msea-guide button:disabled { opacity:.55; cursor:default; }
.msea-guide [hidden] { display:none !important; }
.msea-guide .guide-card { background:#fff; padding:clamp(10px,2vw,16px); border:1px solid #dedfe6; border-radius:20px; box-shadow:0 16px 36px #1720310d; }
.msea-guide #term { margin:0 0 5px; font-size:clamp(20px,2.5vw,27px); line-height:1.2; }
.msea-guide #mode { margin:0; color:#555e6d; }
.msea-guide .scene { margin:10px 0 0; overflow:hidden; border-radius:16px; color:#f6f7fb; background:radial-gradient(ellipse at 72% 10%,#4e2230,#171c28 68%); }
.msea-guide .scene svg { display:block; width:100%; height:auto; }
.msea-guide .stages { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:2px; text-align:center; margin:-3px 0 8px; padding:0; list-style:none; font-size:clamp(.65rem,1.4vw,.85rem); color:#d4dce9; overflow-wrap:anywhere; }
.msea-guide .stages .active { color:#ff96a4; font-weight:800; }
.msea-guide .stages .freight-end { color:#a4e6ff; font-weight:800; }
.msea-guide .route-summary { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(200px,100%),1fr)); gap:8px; padding:8px 12px; background:#101520a8; border-top:1px solid #ffffff24; }
.msea-guide .route-summary div { border-left:3px solid #ff7284; padding-left:10px; color:#e5e8f0; }
.msea-guide .route-summary .freight { border-color:#76d8ff; }
.msea-guide .route-summary .cover { border-color:#93eabb; }
.msea-guide .route-summary span { display:block; font-size:.82rem; }
.msea-guide .route-summary strong { display:block; margin-top:2px; color:#fff; font-size:.91rem; line-height:1.35; }
.msea-guide .route-summary .freight strong { color:#b2eaff; }
.msea-guide .route-summary .cover strong { color:#b6ffda; }
.msea-guide .controls { margin:8px 0; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.msea-guide .controls span, .msea-guide .note { font-size:.85rem; color:#555e6d; }
.msea-guide .note { margin:8px 0 0; }
.msea-guide .details { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(245px,100%),1fr)); gap:8px; margin-top:8px; }
.msea-guide .details div { background:#f3f4f7; border:1px solid #e4e7ed; border-radius:10px; padding:9px 11px; }
.msea-guide .details p { color:#4a5261; font-size:.91rem; margin:4px 0 0; line-height:1.4; }
.msea-guide #cargo { transform:translate(var(--stop,0px),0); }
.msea-guide .journey { animation:msea-cargo-travel var(--duration,2s) ease-in-out; }
@keyframes msea-cargo-travel { from { transform:translate(var(--start,0px),0); } to { transform:translate(var(--stop),0); } }
.msea-guide .journey-via-handover { animation-name:msea-cargo-via-handover; }
@keyframes msea-cargo-via-handover {
  from { transform:translate(var(--start,0px),0); }
  56%, 78% { transform:translate(var(--handover),0); }
  to { transform:translate(var(--stop),0); }
}
@media (prefers-reduced-motion:reduce) { .msea-guide .journey { animation:none; } }


@media (min-width:981px) {
  .msea-guide .guide-card {
    display:grid;
    grid-template-columns:minmax(0, 2.35fr) minmax(0, 1fr);
    column-gap:16px;
    align-items:start;
    padding:22px;
    border-radius:32px;
  }
  .msea-guide #term, .msea-guide #mode, .msea-guide .note { grid-column:1 / -1; }
  .msea-guide .scene { grid-area:3 / 1; }
  .msea-guide .controls { grid-area:4 / 1; }
  .msea-guide .details {
    grid-area:3 / 2 / 5 / 3;
    grid-template-columns:minmax(0,1fr);
    margin-top:10px;
  }
}

@media (max-width:480px) {
  .msea-guide .terms { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); }
  .msea-guide .terms button { min-height:40px; padding-inline:4px; }
  .msea-guide .route-summary { grid-template-columns:minmax(0,1fr); }
  .msea-guide .stages { min-width:0; line-height:1.25; }
  .msea-guide .details > div { min-width:0; overflow-wrap:anywhere; }
}
