
@font-face {
    font-family: "Antonio";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("assets/fonts/antonio-400.ttf") format("truetype");
}

@font-face {
    font-family: "Antonio";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("assets/fonts/antonio-700.ttf") format("truetype");
}

:root {
    color-scheme: dark;
    --bg: #0d1420;
    --bg-deep: #080d15;
    --surface: linear-gradient(180deg, rgba(69, 85, 128, 0.42), rgba(52, 68, 112, 0.58));
    --surface-soft: linear-gradient(180deg, rgba(69, 85, 128, 0.28), rgba(52, 68, 112, 0.42));
    --surface-panel: rgba(52, 68, 112, 0.88);
    --surface-dark: rgba(25, 33, 51, 0.92);
    --text: #f5f8ff;
    --muted: #cfd6e6;
    --accent: #ff9966;
    --accent-strong: #ffcc99;
    --accent-soft: #ffcc99;
    --accent-lilac: #cc99ff;
    --accent-ice: #99ccff;
    --accent-link: #99ccff;
    --accent-muted: rgba(255, 153, 102, 0.12);
    --border: rgba(255, 153, 102, 0.24);
    --border-soft: rgba(153, 204, 255, 0.20);
    --good: #88ffff;
    --warn: #ffcc99;
    --bad: #ff3500;
    --danger-soft: rgba(255, 53, 0, 0.16);
    --danger-border: rgba(255, 53, 0, 0.34);
    --success-soft: rgba(136, 255, 255, 0.12);
    --success-border: rgba(136, 255, 255, 0.28);
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.34), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    text-rendering: geometricPrecision;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.dashboard-page,
body.settings-page,
body.expeditions-page,
body.launcher-page {
    margin: 0;
    color: var(--text);
    font-family: "Antonio", "Trebuchet MS", "Segoe UI", sans-serif;
    font-synthesis: none;
    background:
        radial-gradient(circle at top right, rgba(204, 153, 255, 0.08), transparent 18%),
        radial-gradient(circle at top left, rgba(69, 85, 128, 0.20), transparent 24%),
        radial-gradient(circle at bottom right, rgba(255, 153, 102, 0.04), transparent 18%),
        linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 100%);
}

body.dashboard-page a,
body.settings-page a,
body.expeditions-page a,
body.launcher-page a {
    color: var(--accent-link);
}

body.dashboard-page .top-nav,
body.settings-page .top-nav,
body.expeditions-page .top-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 10px 12px;
    margin-bottom: 14px;
    border: 1px solid var(--border);
    border-radius: 18px 10px 18px 10px;
    background: linear-gradient(180deg, rgba(69, 85, 128, 0.36), rgba(52, 68, 112, 0.52));
    box-shadow: var(--shadow);
}

body.dashboard-page .top-nav-link,
body.settings-page .top-nav-link,
body.expeditions-page .top-nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 153, 102, 0.24);
    background: #ff9966;
    color: #2a1830;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
}

body.dashboard-page .top-nav-link.is-active,
body.settings-page .top-nav-link.is-active,
body.expeditions-page .top-nav-link.is-active {
    background: #cc99ff;
    border-color: rgba(204, 153, 255, 0.42);
    color: #26153b;
}

body.dashboard-page .top-nav-form,
body.settings-page .top-nav-form,
body.expeditions-page .top-nav-form {
    margin: 0;
}

body.dashboard-page .top-nav-form button,
body.settings-page .top-nav-form button,
body.expeditions-page .top-nav-form button {
    font: inherit;
    cursor: pointer;
}

.page-title,
body.launcher-page h1 {
    margin: 0;
    color: var(--accent-soft);
    font-size: clamp(1.7rem, 3.2vw, 2.7rem);
    line-height: 1.08;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.dashboard-page button,
body.dashboard-page .button-link,
body.settings-page .hero-actions a,
body.settings-page .save-rail button,
body.settings-page .inline-actions button,
body.expeditions-page .actions a,
body.expeditions-page .actions button,
body.expeditions-page .primary-button,
body.launcher-page .actions a {
    border: 0;
    border-radius: 999px;
    padding: 8px 14px;
    font: inherit;
    font-weight: 700;
    color: #231429;
    background: #ff9966;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(245, 248, 255, 0.08), 0 10px 22px rgba(15, 24, 44, 0.28);
}

body.dashboard-page .button-secondary,
body.settings-page .hero-actions .secondary,
body.settings-page .save-rail .secondary,
body.settings-page .inline-actions .secondary,
body.expeditions-page .ghost-button,
body.expeditions-page .actions .secondary {
    color: var(--text);
    background: #ff9966;
    border: 1px solid var(--border-soft);
    box-shadow: none;
}
body.dashboard-page input[type="text"],
body.dashboard-page input[type="password"],
body.dashboard-page input[type="number"],
body.dashboard-page input[type="datetime-local"],
body.dashboard-page select,
body.dashboard-page textarea,
body.settings-page input[type="text"],
body.settings-page input[type="number"],
body.settings-page input[type="file"],
body.settings-page select,
body.settings-page textarea,
body.expeditions-page input[type="text"],
body.expeditions-page input[type="number"],
body.expeditions-page select,
body.expeditions-page textarea {
    border: 1px solid var(--border-soft);
    border-radius: 14px 8px 14px 8px;
    padding: 8px 10px;
    font: inherit;
    color: var(--text);
    background: linear-gradient(180deg, rgba(24, 30, 46, 0.94), rgba(17, 23, 36, 0.96));
    box-shadow: inset 0 0 0 1px rgba(102, 204, 255, 0.05);
}

body.dashboard-page .toggle-card,
body.settings-page .toggle-card,
body.expeditions-page .toggle-card {
    border: 1px solid var(--border-soft);
    background: linear-gradient(90deg, rgba(255, 153, 102, 0.10), rgba(204, 153, 255, 0.08));
}

body.settings-page .toggle-card,
body.expeditions-page .toggle-card,
body.settings-page .field-card,
body.expeditions-page .field-card,
body.settings-page .planet-pill,
body.settings-page .ship-group,
body.expeditions-page .ship-group,
body.settings-page .ship-row,
body.expeditions-page .ship-row,
body.expeditions-page .profile-list-item,
body.expeditions-page .summary-pill {
    border: 1px solid rgba(119, 153, 221, 0.40);
    background: rgba(24, 33, 51, 0.78);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.02);
}

body.dashboard-page .section-tag,
body.expeditions-page .section-tag,
body.dashboard-page .status-chip {
    color: #2a1830;
    background: #ff9966;
    border-color: rgba(255, 153, 102, 0.36);
}

body.dashboard-page .danger-button,
body.expeditions-page .danger-button {
    color: #fff2ee;
    background: linear-gradient(90deg, rgba(255, 53, 0, 0.92) 0%, rgba(204, 85, 0, 0.88) 100%);
}

body.expeditions-page .danger-button {
    border: 1px solid rgba(255, 85, 85, 0.34);
    border-radius: 999px;
    background: #ff5555;
    color: #2a1020;
    box-shadow: inset 0 0 0 1px rgba(255, 245, 245, 0.08), 0 10px 22px rgba(15, 24, 44, 0.28);
}

body.dashboard-page .notice,
body.dashboard-page .error,
body.dashboard-page .warning,
body.expeditions-page .alert,
body.settings-page .alert {
    border-radius: 16px 10px 16px 10px;
    padding: 10px 12px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
}

body.dashboard-page .notice,
body.expeditions-page .alert-success,
body.settings-page .alert-success {
    color: var(--good);
    border-color: var(--success-border);
    background: var(--success-soft);
}

body.dashboard-page .error,
body.expeditions-page .alert-error,
body.settings-page .alert-error {
    color: #ff9f8e;
    border-color: var(--danger-border);
    background: var(--danger-soft);
}

body.dashboard-page .warning {
    color: var(--warn);
    border-color: rgba(153, 204, 255, 0.32);
    background: rgba(46, 58, 89, 0.72);
}

body.settings-page .page,
body.expeditions-page .page {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 22px 18px 40px;
}

body.settings-page .hero,
body.expeditions-page .hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 16px;
}

body.settings-page .hero p,
body.expeditions-page .hero p,
body.launcher-page p {
    color: var(--muted);
}

body.settings-page .layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

body.settings-page .sidebar {
    position: sticky;
    top: 18px;
    display: grid;
    gap: 14px;
}

body.settings-page .sidebar-card,
body.settings-page .section-card,
body.expeditions-page .card,
body.dashboard-page .panel,
body.launcher-page .card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px 12px 20px 12px;
    box-shadow: var(--shadow);
}

body.settings-page .sidebar-card,
body.settings-page .section-card,
body.expeditions-page .card,
body.launcher-page .card {
    padding: 18px;
}

body.settings-page .sidebar-card { padding: 14px; }
body.settings-page .sidebar-card h2 { margin: 0 0 10px; font-size: 1rem; }
body.settings-page .nav-list { display: grid; gap: 8px; }
body.settings-page .nav-list a { display: block; padding: 9px 11px; border-radius: 14px 8px 14px 8px; border: 1px solid transparent; color: var(--text); text-decoration: none; background: linear-gradient(90deg, rgba(85, 136, 238, 0.10), rgba(102, 204, 255, 0.06)); }
body.settings-page .nav-list a:hover { border-color: var(--border-soft); background: linear-gradient(90deg, rgba(85, 136, 238, 0.18), rgba(102, 204, 255, 0.12)); }
body.settings-page .save-rail { display: grid; gap: 10px; }
body.settings-page .sections { display: grid; gap: 16px; }
body.settings-page .priority-sync-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
body.settings-page .priority-sync-grid .section-card { height: 100%; }
body.settings-page .section-header { display: flex; justify-content: space-between; align-items: end; gap: 14px; margin-bottom: 14px; }
body.settings-page .section-header h2 { margin: 0 0 4px; font-size: 1.18rem; }
body.settings-page .section-header p { margin: 0; color: var(--muted); line-height: 1.3; font-size: 0.92rem; }
body.settings-page .section-tag { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; padding: 2px 8px; border-radius: 999px; border: 1px solid rgba(204, 153, 255, 0.24) !important; background: rgba(52, 68, 112, 0.56) !important; color: var(--accent-soft) !important; font-size: 0.72rem; font-weight: 700; line-height: 1.2; white-space: nowrap; text-transform: none !important; letter-spacing: normal !important; box-shadow: none !important; }
body.settings-page .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 320px)); gap: 12px; justify-content: start; align-items: start; }
body.settings-page .grid.two { grid-template-columns: repeat(auto-fit, minmax(240px, 320px)); }
body.settings-page .split-grid { display: grid; grid-template-columns: minmax(220px, 320px) minmax(0, 1fr); gap: 12px; align-items: start; }
body.settings-page .fleet-layout,
body.settings-page .activity-layout { display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); gap: 12px; align-items: start; }
body.settings-page .stack-grid,
body.settings-page .timing-stack { display: grid; gap: 10px; align-content: start; }
body.settings-page .compact-field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 320px)); gap: 12px; justify-content: start; align-items: start; }
body.settings-page .timing-card { width: 100%; max-width: 420px; }
body.settings-page .timing-row { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; align-items: center; }
body.settings-page .timing-row .label { margin-bottom: 0; }
body.settings-page .field-card { width: 100%; max-width: 320px; padding: 12px; border-radius: 16px; }
body.settings-page .field-card.wide { grid-column: 1 / -1; max-width: none; }
body.settings-page label, body.settings-page .label { display: block; margin-bottom: 5px; font-size: 0.88rem; font-weight: 700; }
body.settings-page input[type="text"], body.settings-page input[type="number"], body.settings-page input[type="file"], body.settings-page select, body.settings-page textarea { width: min(100%, 280px); min-height: 38px; }
body.settings-page textarea { width: 100%; min-height: 92px; resize: vertical; }
body.settings-page .hint { margin-top: 4px; color: var(--muted); font-size: 0.8rem; line-height: 1.22; }
body.settings-page .duration-row { display: flex; align-items: center; gap: 8px; }
body.settings-page .duration-row input { flex: 0 0 112px; width: 112px; min-width: 112px; }
body.settings-page .duration-preview { flex: 0 0 auto; min-width: 68px; text-align: right; color: var(--muted); font-size: 0.77rem; }
body.settings-page .toggle-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 320px)); gap: 10px; justify-content: start; }
body.settings-page .toggle-card { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; border-radius: 16px; font-weight: 700; }
body.settings-page .planet-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 280px)); gap: 10px; margin-top: 10px; justify-content: start; }
body.settings-page .planet-pill { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 8px 12px; border-radius: 16px; }
body.settings-page .planet-pill-image, body.settings-page .planet-pill-image-empty, body.settings-page .fleet-ship-option-icon, body.settings-page .ship-row-icon, body.settings-page .ship-row-icon-empty { border-radius: 10px; background: rgba(11, 16, 25, 0.72); }
body.settings-page .planet-pill-image { width: 52px; height: 52px; object-fit: contain; object-position: center; border: 1px solid rgba(119, 153, 221, 0.40); flex: 0 0 auto; }
body.settings-page .planet-pill-image.is-moon { padding: 13px; box-sizing: border-box; }
body.settings-page .planet-pill-image-empty { width: 52px; height: 52px; display: grid; place-items: center; border: 1px dashed rgba(119, 153, 221, 0.32); color: var(--muted); font-size: 0.78rem; flex: 0 0 auto; }
body.settings-page .planet-pill-content { min-width: 0; }
body.settings-page .planet-pill.is-moon .planet-pill-content { color: #b7d7e8; }
body.settings-page .planet-pill.is-moon .planet-pill-content strong { color: #def8ff; }
body.settings-page .planet-pill small { color: var(--muted); }
body.settings-page .planet-group-divider { margin: 14px 0 10px; padding-top: 12px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
body.settings-page .ship-group-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
body.settings-page .ship-group { width: 100%; max-width: none; border-radius: 16px; padding: 12px; }
body.settings-page .ship-group-title { margin: 0 0 10px; font-size: 0.96rem; font-weight: 700; }
body.settings-page .ship-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 8px; padding-bottom: 2px; }
body.settings-page .ship-list .toggle-card { width: 100%; min-height: 56px; padding: 4px 10px; border-radius: 16px; font-size: 0.82rem; white-space: nowrap; }
body.settings-page .fleet-ship-option { width: 100%; gap: 8px; justify-content: flex-start; }
body.settings-page .fleet-ship-option-icon, body.settings-page .ship-row-icon { width: 50px; height: 50px; object-fit: contain; object-position: center; border: 1px solid rgba(119, 153, 221, 0.32); flex: 0 0 auto; }
body.settings-page .ship-row { width: 100%; display: grid; grid-template-columns: auto 50px minmax(0, 1fr) 90px; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 16px; min-height: 56px; }
body.settings-page .ship-row label { display: contents; margin: 0; }
body.settings-page .ship-row-icon-empty { width: 50px; height: 50px; display: grid; place-items: center; border: 1px dashed rgba(119, 153, 221, 0.28); color: var(--muted); font-size: 0.72rem; }
body.settings-page .ship-name { font-size: 0.88rem; font-weight: 700; line-height: 1.2; }
body.settings-page .ship-row input[type="number"] { width: 90px; min-height: 34px; text-align: right; }
body.settings-page .inline-actions { display: flex; gap: 10px; align-items: center; margin-top: 12px; flex-wrap: wrap; }

body.dashboard-page .page { width: 100%; max-width: none; margin: 0; padding: 22px 16px 28px; }
body.dashboard-page .page.is-login { width: min(100%, 760px); max-width: 760px; margin: 0 auto; min-height: 100vh; display: flex; align-items: center; justify-content: center; }
body.dashboard-page .hero { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 16px; align-items: center; margin-bottom: 16px; }
body.dashboard-page .hero p { margin: 8px 0 0; color: var(--muted); max-width: 860px; }
body.dashboard-page .grid { display: grid; gap: 12px; grid-template-columns: 1.25fr 0.95fr; }
body.dashboard-page .table-panel-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr); gap: 12px; align-items: start; }
body.dashboard-page .dashboard-column { display: grid; gap: 12px; align-content: start; min-width: 0; }
body.dashboard-page .panel { padding: 14px; backdrop-filter: blur(6px); min-width: 0; }
body.dashboard-page .panel h2, body.dashboard-page .panel h3 { margin-top: 0; }
body.dashboard-page .stats { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr) max-content max-content; margin-bottom: 12px; align-items: stretch; }
body.dashboard-page .stat.is-wide { min-width: 0; }
body.dashboard-page .stat { background: var(--surface-soft); border: 1px solid var(--border-soft); border-radius: 16px 10px 16px 10px; padding: 10px 12px; }
body.dashboard-page .stat-compact { width: max-content; min-width: 170px; }
body.dashboard-page .stat strong { display: block; font-size: 1.18rem; margin-top: 2px; }
body.dashboard-page .stat-heading, body.dashboard-page .panel-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
body.dashboard-page .stat-heading-meta { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
body.dashboard-page .panel-heading-row h2 { margin: 0; }
body.dashboard-page .status-chip { display: inline-flex; align-items: center; justify-content: center; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border-soft); font-size: 0.72rem; font-weight: 700; line-height: 1.2; white-space: nowrap; }
body.dashboard-page .status-chip-quiet { border-color: rgba(204, 153, 255, 0.36); background: #cc99ff; color: #26153b; }
body.dashboard-page .refresh-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; padding: 2px 8px; border-radius: 999px; border: 1px solid rgba(153, 204, 255, 0.26); background: rgba(52, 68, 112, 0.56); color: var(--accent-ice); font-size: 0.72rem; font-weight: 700; line-height: 1.2; white-space: nowrap; }
body.dashboard-page .refresh-badge.is-paused { color: var(--accent-soft); border-color: rgba(204, 153, 255, 0.24); background: rgba(52, 68, 112, 0.56); }
body.dashboard-page .sync-status-list { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; }
body.dashboard-page .sync-status-item { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; line-height: 1.2; white-space: nowrap; }
body.dashboard-page .sync-status-name { color: var(--muted); }
body.dashboard-page .sync-status-time { font-weight: 700; transition: color .18s ease, text-shadow .18s ease, background-color .18s ease; border-radius: 6px; padding: 1px 5px; margin: -1px -5px; }
body.dashboard-page .sync-status-time.is-disabled { color: #ff7b7b; }
body.dashboard-page .sync-status-time.is-flash { animation: sync-status-flash 1s ease-out; }
@keyframes sync-status-flash { 0% { color: #eafff0; background: rgba(136,255,255,.28); text-shadow: 0 0 14px rgba(136,255,255,.45); } 100% { color: inherit; background: transparent; text-shadow: none; } }
body.dashboard-page .hero-meta { text-align: right; }
body.dashboard-page .hero-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
body.dashboard-page .hero-tools { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; align-items: center; }
body.dashboard-page .hero-links { line-height: 1.45; }
body.dashboard-page .login-shell { width: 100%; }
body.dashboard-page .login-card { max-width: 520px; margin: 0 auto; padding: 22px; }
body.dashboard-page .login-card p { color: var(--muted); }
body.dashboard-page .form-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
body.dashboard-page .login-form { display: grid; gap: 14px; max-width: 420px; }
body.dashboard-page .settings-stack { display: grid; gap: 12px; }
body.dashboard-page .settings-section { border: 1px solid var(--border-soft); border-radius: 16px 10px 16px 10px; padding: 12px; background: var(--surface-soft); }
body.dashboard-page .settings-section-toggle { list-style: none; cursor: pointer; }
body.dashboard-page .settings-section-toggle::-webkit-details-marker { display: none; }
body.dashboard-page .settings-section-toggle::marker { content: ""; }
body.dashboard-page .settings-section-toggle-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
body.dashboard-page .settings-section-toggle-icon { flex: 0 0 auto; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border-soft); border-radius: 999px; background: rgba(52,68,112,.72); color: var(--accent-soft); font-size: .9rem; line-height: 1; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
body.dashboard-page .settings-section[open] .settings-section-toggle-icon { transform: rotate(90deg); background: rgba(69,85,128,.86); border-color: rgba(136,255,255,.38); }
body.dashboard-page .settings-section-header { margin-bottom: 0; }
body.dashboard-page .settings-section-header h3 { margin-bottom: 4px; }
body.dashboard-page .settings-section-header p { margin: 0; color: var(--muted); font-size: 0.92rem; }
body.dashboard-page .settings-section-content { margin-top: 12px; }
body.dashboard-page label, body.dashboard-page .label { display: block; font-size: .88rem; font-weight: 700; margin-bottom: 5px; }
body.dashboard-page input[type="text"], body.dashboard-page input[type="password"], body.dashboard-page input[type="number"], body.dashboard-page input[type="datetime-local"], body.dashboard-page select, body.dashboard-page textarea { width: 100%; }
body.dashboard-page textarea { min-height: 120px; resize: vertical; }
body.dashboard-page .checkbox-row, body.dashboard-page .ship-grid, body.dashboard-page .ship-requirements { display: grid; gap: 8px; }
body.dashboard-page .checkbox-row { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
body.dashboard-page .toggle-card { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 16px 8px 16px 8px; margin-bottom: 0; }
body.dashboard-page .field-hint { margin-top: 4px; color: var(--muted); font-size: 0.8rem; line-height: 1.22; }
body.dashboard-page .duration-input-row { display: flex; align-items: center; gap: 6px; }
body.dashboard-page .duration-input-row input { flex: 1 1 auto; }
body.dashboard-page .duration-preview { flex: 0 0 auto; white-space: nowrap; color: var(--muted); font-size: 0.77rem; }
body.dashboard-page .ship-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
body.dashboard-page .ship-group, body.dashboard-page .ship-requirements-group { border: 1px solid var(--border-soft); border-radius: 16px 10px 16px 10px; padding: 10px; background: var(--surface-soft); }
body.dashboard-page .ship-requirements { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
body.dashboard-page .fleet-saver-requirement-groups { display: grid; gap: 10px; margin-top: 12px; }
body.dashboard-page .fleet-saver-requirement-group { border: 1px solid var(--border-soft); border-radius: 16px 10px 16px 10px; padding: 10px; background: rgba(52,68,112,.68); }
body.dashboard-page .fleet-saver-requirement-group-title { margin: 0 0 8px; font-size: .96rem; font-weight: 700; }
body.dashboard-page .fleet-saver-requirement-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
body.dashboard-page .fleet-saver-requirement-row { display: grid; grid-template-columns: auto minmax(0,1fr) 88px; align-items: center; gap: 8px; padding: 7px 8px; border: 1px solid rgba(102,204,255,.16); border-radius: 14px 8px 14px 8px; background: rgba(38,48,77,.78); }
body.dashboard-page .fleet-saver-requirement-row label { margin: 0; display: contents; }
body.dashboard-page .fleet-saver-requirement-name { font-size: .88rem; line-height: 1.2; font-weight: 600; }
body.dashboard-page .fleet-saver-requirement-input { min-width: 0; }
body.dashboard-page .fleet-saver-requirement-input input { padding: 6px 8px; text-align: right; }
body.dashboard-page .ship-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
body.dashboard-page .ship-row:last-child { margin-bottom: 0; }
body.dashboard-page .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
body.dashboard-page .task-list { display: grid; gap: 6px; }
body.dashboard-page .refresh-status { color: var(--muted); font-size: 0.82rem; }
body.dashboard-page .queue-panel-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
body.dashboard-page .task-card { border: 1px solid var(--border-soft); border-radius: 16px 10px 16px 10px; padding: 10px 12px; background: var(--surface-soft); }
body.dashboard-page .queue-task-card { padding: 8px 10px; border-radius: 14px 8px 14px 8px; background: rgba(52,68,112,.82); }
body.dashboard-page .queue-task-card.is-alert { border-color: var(--danger-border); background: rgba(70, 26, 19, 0.68); }
body.dashboard-page .task-card header { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
body.dashboard-page .task-card h3 { margin: 0; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.dashboard-page .task-card p { margin: 0; color: var(--muted); font-size: .86rem; }
body.dashboard-page .queue-task-header, body.dashboard-page .queue-task-main { display: flex; align-items: center; gap: 8px; }
body.dashboard-page .queue-task-main { min-width: 0; flex: 1 1 auto; }
body.dashboard-page .queue-task-next-run { flex: 0 0 auto; width: 88px; text-align: center; font-variant-numeric: tabular-nums; }
body.dashboard-page .task-status { display: inline-block; border-radius: 999px 8px 999px 8px; padding: 3px 7px; font-size: .74rem; font-weight: 700; border: 1px solid var(--border); background: rgba(52,68,112,.8); white-space: nowrap; flex: 0 0 auto; }
body.dashboard-page .task-status.is-running { color: var(--good); border-color: rgba(102,204,255,.32); }
body.dashboard-page .task-status.is-queued { color: var(--accent-soft); }
body.dashboard-page .task-status.is-due, body.dashboard-page .task-status.is-alert { color: #ff9c9c; border-color: var(--danger-border); background: rgba(70,26,19,.7); }
body.dashboard-page details summary { cursor: pointer; font-weight: 700; color: var(--text); }
body.dashboard-page details summary::marker { color: var(--accent); }
body.dashboard-page .panel-toggle { border: 1px solid var(--border); border-radius: 20px 12px 20px 12px; background: var(--surface); box-shadow: var(--shadow); padding: 0; }
body.dashboard-page .panel-toggle > summary { list-style: none; padding: 12px 14px; }
body.dashboard-page .panel-toggle > summary::-webkit-details-marker { display: none; }
body.dashboard-page .panel-toggle > summary .panel-toggle-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
body.dashboard-page .panel-toggle-meta { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
body.dashboard-page .panel-toggle > summary .panel-toggle-title span:last-child { color: var(--muted); font-size: .9rem; }
body.dashboard-page .panel-toggle .panel-toggle-body { padding: 0 14px 14px; }
body.dashboard-page .panel-toggle-inline { margin: 0; }
body.dashboard-page .button-small { padding: 5px 9px; font-size: 0.78rem; }
body.dashboard-page .small { color: var(--muted); font-size: 0.84rem; }
body.dashboard-page .inline-form { display: inline; margin: 0; }
body.dashboard-page .pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    background: rgba(52, 68, 112, 0.58);
    color: var(--text);
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.2;
}
body.dashboard-page .table-shell {
    overflow-x: auto;
    margin-top: 12px;
    border: 1px solid rgba(102, 204, 255, 0.14);
    border-radius: 14px;
    background: rgba(13, 20, 32, 0.42);
    max-width: 100%;
}
body.dashboard-page table {
    width: 100%;
    border-collapse: collapse;
    min-width: 0;
    font-size: 0.86rem;
}
body.dashboard-page tbody tr {
    background: rgba(24, 33, 51, 0.46);
}
body.dashboard-page thead th {
    padding: 9px 12px 8px;
    text-align: left;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(102, 204, 255, 0.16);
}
body.dashboard-page tbody td {
    padding: 7px 12px;
    border-bottom: 1px solid rgba(102, 204, 255, 0.12);
    vertical-align: middle;
}
body.dashboard-page tbody tr:last-child td {
    border-bottom: 0;
}
body.dashboard-page .movement-status-cell {
    width: 40px;
}
body.dashboard-page .movements-table {
    font-size: 0.82rem;
    border-spacing: 0;
}
body.dashboard-page .movements-table thead th {
    padding: 7px 10px 6px;
    font-size: 0.7rem;
}
body.dashboard-page .movements-table tbody td {
    padding: 4px 10px;
    line-height: 1.15;
}
body.dashboard-page .movement-location-cell {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    font-size: 0.76rem;
}
body.dashboard-page .movement-progress-cell {
    min-width: 320px;
    position: relative;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
body.dashboard-page .movement-progress-wrap {
    position: absolute;
    inset: 0 10px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    width: auto;
    min-height: 0;
}
body.dashboard-page .movement-progress {
    position: relative;
    width: 100%;
    height: 50%;
    min-height: 0;
    max-height: 14px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(13, 20, 32, 0.72);
    border: 1px solid rgba(102, 204, 255, 0.14);
    display: block;
    align-self: stretch;
}
body.dashboard-page .movement-progress-bar {
    position: relative;
    display: block;
    height: 100%;
    border-radius: inherit;
    background:
        linear-gradient(180deg,
            rgba(10, 55, 121, 0.96) 0%,
            rgba(21, 103, 184, 0.98) 24%,
            rgba(54, 149, 205, 0.82) 50%,
            rgba(18, 111, 192, 0.98) 74%,
            rgba(7, 46, 106, 0.96) 100%);
    overflow: hidden;
    transition: width .35s ease-out;
    box-shadow:
        inset 0 0 8px rgba(108, 222, 255, 0.10),
        inset 0 1px 1px rgba(255, 255, 255, 0.10),
        inset 0 -1px 1px rgba(3, 18, 61, 0.48);
    margin-left: 0;
    margin-right: auto;
}
body.dashboard-page .movement-progress-bar::before {
    content: "";
    position: absolute;
    inset: 1px 0;
    border-radius: inherit;
    background:
        linear-gradient(180deg,
            rgba(255, 255, 255, 0.00) 0%,
            rgba(148, 227, 243, 0.10) 18%,
            rgba(126, 214, 233, 0.34) 50%,
            rgba(104, 207, 229, 0.10) 82%,
            rgba(255, 255, 255, 0.00) 100%),
        linear-gradient(90deg,
            rgba(255, 255, 255, 0.00) 0%,
            rgba(126, 214, 233, 0.16) 18%,
            rgba(162, 227, 241, 0.38) 50%,
            rgba(126, 214, 233, 0.16) 82%,
            rgba(255, 255, 255, 0.00) 100%);
    opacity: .62;
    pointer-events: none;
}
body.dashboard-page .movement-progress-bar::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background-image: url("assets/ui/warp-core.webp");
    background-repeat: repeat-x;
    background-position: center;
    background-size: auto 100%;
    opacity: .52;
    pointer-events: none;
}
body.dashboard-page tr.is-returning .movement-progress-bar,
body.dashboard-page tr.is-hostile .movement-progress-bar {
    margin-left: auto;
    margin-right: 0;
}
body.dashboard-page tr.is-returning .movement-progress-bar::after,
body.dashboard-page tr.is-hostile .movement-progress-bar::after {
    transform: scaleX(-1);
}
body.dashboard-page .movement-progress-label {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    color: var(--muted);
    white-space: nowrap;
}
body.dashboard-page .movement-arrival-cell,
body.dashboard-page .movement-details {
    font-size: 0.76rem;
}
body.dashboard-page .movement-progress-label.is-unknown {
    color: rgba(207, 214, 230, 0.52);
}
@media (prefers-reduced-motion: reduce) {
    body.dashboard-page .movement-progress-bar {
        transition: none;
    }
}
body.dashboard-page .movement-details {
    font-family: inherit;
    font-size: inherit;
    white-space: nowrap;
}
body.dashboard-page .status-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(52, 68, 112, 0.62);
    color: var(--accent-soft);
}
body.dashboard-page .status-icon svg {
    width: 12px;
    height: 12px;
    display: block;
}
body.dashboard-page .status-icon-hostile {
    background: rgba(255, 53, 0, 0.18);
    color: #ffb2a2;
}
body.dashboard-page .status-icon-return {
    background: rgba(85, 136, 238, 0.18);
    color: #cce2ff;
}
body.dashboard-page .status-icon-flight {
    background: rgba(102, 204, 255, 0.18);
    color: #bfffff;
}
body.dashboard-page .mission-cell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: rgba(13, 20, 32, 0.52);
    border: 1px solid rgba(102, 204, 255, 0.14);
}
body.dashboard-page .mission-cell img {
    width: 12px;
    height: 12px;
    display: block;
    object-fit: contain;
}
body.dashboard-page .movement-row.is-hostile {
    background: rgba(70, 26, 19, 0.22);
}
body.dashboard-page .movement-row.is-returning {
    background: rgba(52, 68, 112, 0.14);
}
body.dashboard-page .movement-row.is-flight.is-transport,
body.dashboard-page .movement-row.is-flight.is-deep-space {
    background: rgba(52, 68, 112, 0.10);
}
body.dashboard-page .snapshot-table { min-width: 880px; font-size: 0.8rem; }
body.dashboard-page .snapshot-stack {
    display: grid;
    gap: 6px;
}
body.dashboard-page .snapshot-stack-line {
    display: flex;
    align-items: center;
    min-height: 22px;
}
body.dashboard-page .snapshot-stack-line.is-moon {
    padding-left: 16px;
    color: #d4ecff;
    font-size: 0.88em;
}
body.dashboard-page .snapshot-planet-image-cell {
    width: 84px;
}
body.dashboard-page .snapshot-planet-image,
body.dashboard-page .snapshot-planet-image-empty {
    width: 52px;
    height: 52px;
    border-radius: 12px;
}
body.dashboard-page .snapshot-planet-image {
    display: block;
    object-fit: contain;
    object-position: center;
    border: 1px solid rgba(102, 204, 255, 0.16);
    background: rgba(13, 20, 32, 0.58);
}
body.dashboard-page .snapshot-planet-image.is-moon {
    width: 28px;
    height: 28px;
    padding: 4px;
}
body.dashboard-page .snapshot-planet-image-empty {
    display: inline-grid;
    place-items: center;
    border: 1px dashed rgba(102, 204, 255, 0.18);
    color: var(--muted);
    font-size: 0.72rem;
}
body.dashboard-page .snapshot-planet-name {
    font-weight: 700;
}
body.dashboard-page .snapshot-planet-name.is-moon {
    color: #d4ecff;
}
body.dashboard-page .snapshot-cell.is-fill-good {
    color: #bfffff;
}
body.dashboard-page .snapshot-cell.is-fill-warn {
    color: #cfe2ff;
}
body.dashboard-page .snapshot-cell.is-fill-bad {
    color: #ffb2a2;
}
body.dashboard-page .snapshot-delta,
body.dashboard-page .log-context,
body.dashboard-page pre {
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.72rem;
    line-height: 1.4;
    white-space: pre-wrap;
    word-break: break-word;
}
body.dashboard-page .queue-play-button img {
    display: block;
    width: 14px;
    height: 14px;
}
body.dashboard-page .queue-panel-toolbar .danger-button {
    background: #ff9966;
    color: #2a1830;
    border: 1px solid rgba(255, 153, 102, 0.24);
}
body.dashboard-page .log-message {
    min-width: 180px;
}
body.dashboard-page .debug-log-card {
    border: 1px solid rgba(102, 204, 255, 0.14);
    border-radius: 14px;
    background: rgba(13, 20, 32, 0.46);
    padding: 10px 12px;
    margin-bottom: 10px;
}

body.expeditions-page code { font-family: Consolas, "Courier New", monospace; }
body.expeditions-page #expeditions-form { display: grid; gap: 16px; }
body.expeditions-page .card { background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
body.expeditions-page .top-nav { border-radius: 18px 10px 18px 10px; }
body.expeditions-page .hero { gap: 16px; }
body.expeditions-page .alert { border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; border: 1px solid transparent; }
body.expeditions-page .card h2 { margin: 0 0 6px; font-size: 1.12rem; }
body.expeditions-page .card p { margin: 0; color: var(--muted); line-height: 1.35; }
body.expeditions-page .section-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
body.expeditions-page .section-tag { flex: 0 0 auto; padding: 5px 10px; border-radius: 999px; font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
body.expeditions-page .toggle-card { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 14px; border-radius: 16px; font-weight: 700; margin-bottom: 0; }
body.expeditions-page .settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 280px)); gap: 12px; align-items: start; }
body.expeditions-page .field-card { padding: 12px; border-radius: 16px; }
body.expeditions-page .duration-row { display: flex; align-items: center; gap: 8px; }
body.expeditions-page .duration-row input { flex: 0 0 118px; width: 118px; }
body.expeditions-page .duration-preview { min-width: 68px; text-align: right; color: var(--muted); font-size: 0.8rem; }
body.expeditions-page .info-pills-card { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px; }
body.expeditions-page label { display: block; margin-bottom: 5px; font-size: 0.88rem; font-weight: 700; }
body.expeditions-page input[type="text"], body.expeditions-page input[type="number"], body.expeditions-page select, body.expeditions-page textarea { width: min(100%,280px); min-height: 38px; }
body.expeditions-page textarea { width: 100%; min-height: 92px; resize: vertical; }
body.expeditions-page .hint { margin-top: 4px; color: var(--muted); font-size: 0.8rem; line-height: 1.22; }
body.expeditions-page .inline-summary { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
body.expeditions-page .summary-pill { display: inline-flex; align-items: center; min-height: 32px; padding: 0 10px; border-radius: 16px; font-size: 0.8rem; color: var(--muted); }
body.expeditions-page .profile-layout { display: grid; gap: 14px; }
body.expeditions-page .profile-tabs-panel,
body.expeditions-page .profile-editor {
    border: 1px solid rgba(102, 204, 255, 0.16);
    border-radius: 16px;
    padding: 14px;
    background: rgba(52, 68, 112, 0.32);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.02);
}
body.expeditions-page .profile-tabs-head, body.expeditions-page .profile-editor-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 12px; }
body.expeditions-page .profile-tabs-head h3, body.expeditions-page .profile-editor-head h3 { margin: 0; font-size: 1rem; }
body.expeditions-page .ghost-button, body.expeditions-page .primary-button, body.expeditions-page .danger-button { padding: 9px 14px; cursor: pointer; font-weight: 700; }
body.expeditions-page .profile-list { display: flex; flex-wrap: wrap; gap: 8px; }
body.expeditions-page .profile-list-item { min-width: 0; text-align: left; padding: 9px 11px; border-radius: 16px; color: var(--text); cursor: pointer; }
body.expeditions-page .profile-list-item.is-active {
    border-color: rgba(255, 204, 153, 0.88);
    background: rgba(44, 58, 89, 0.88);
    box-shadow: inset 0 0 0 1px rgba(255, 204, 153, 0.18), 0 0 0 1px rgba(255, 153, 102, 0.14);
}
body.expeditions-page .profile-list-row { display: grid; grid-template-columns: 60px minmax(0,1fr); gap: 10px; align-items: center; }
body.expeditions-page .profile-list-planet-image, body.expeditions-page .profile-list-planet-image-empty { width: 60px; height: 60px; border-radius: 12px; }
body.expeditions-page .profile-list-planet-image { display: block; object-fit: contain; object-position: center; border: 1px solid var(--border-soft); background: rgba(20,26,40,.82); }
body.expeditions-page .profile-list-planet-image.is-moon { padding: 15px; box-sizing: border-box; }
body.expeditions-page .profile-list-planet-image-empty { display: grid; place-items: center; border: 1px dashed var(--border-soft); color: var(--muted); font-size: 0.78rem; }
body.expeditions-page .profile-list-title { display: flex; gap: 8px; align-items: center; font-weight: 700; min-width: 0; }
body.expeditions-page .profile-list-item.is-moon .profile-list-title { color: #c4efff; }
body.expeditions-page .profile-list-item.is-moon .profile-list-meta { color: #9ec5e8; }
body.expeditions-page .profile-list-meta { margin-top: 3px; color: var(--muted); font-size: 0.78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.expeditions-page .profile-status { flex: 0 0 auto; padding: 3px 8px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; }
body.expeditions-page .profile-status.is-on { background: rgba(136,255,255,.16); color: #bfffff; }
body.expeditions-page .profile-status.is-off { background: var(--danger-soft); color: #ffc8bc; }
body.expeditions-page .profile-empty { padding: 14px; border-radius: 16px; border: 1px dashed var(--border-soft); color: var(--muted); text-align: center; }
body.expeditions-page .profile-form-grid { display: grid; grid-template-columns: minmax(220px,320px) minmax(0,1fr); gap: 12px; align-items: start; }
body.expeditions-page .ship-group-grid { display: grid; grid-template-columns: minmax(0,932px) minmax(320px,460px); gap: 12px; align-items: start; }
body.expeditions-page .ship-group { border-radius: 16px; padding: 12px; }
body.expeditions-page .ship-group:not(.is-compact) { min-width: 0; max-width: 932px; }
body.expeditions-page .ship-group.is-compact { width: 100%; max-width: 460px; justify-self: start; }
body.expeditions-page .ship-group.is-compact .ship-list { grid-template-columns: 1fr; }
body.expeditions-page .ship-group-title { margin: 0 0 10px; font-size: 0.96rem; font-weight: 700; }
body.expeditions-page .ship-list { display: grid; grid-template-columns: repeat(2, minmax(0,460px)); gap: 8px; justify-content: start; }
body.expeditions-page .ship-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; align-items: center; min-height: 38px; padding: 7px 8px; border-radius: 16px; }
body.expeditions-page .ship-row-label { min-width: 0; display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 8px; align-items: center; }
body.expeditions-page .ship-row-icon { width: 28px; height: 28px; object-fit: contain; object-position: center; border-radius: 6px; border: 1px solid var(--border-soft); background: rgba(20,26,40,.78); }
body.expeditions-page .ship-row-icon-empty { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 6px; border: 1px dashed var(--border-soft); color: var(--muted); font-size: 0.72rem; }
body.expeditions-page .ship-row-text { min-width: 0; }
body.expeditions-page .ship-row-title { font-size: 0.88rem; font-weight: 700; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.expeditions-page .ship-row-stock { margin-top: 3px; color: var(--muted); font-size: 0.76rem; line-height: 1.2; }
body.expeditions-page .ship-row-input-wrap { display: flex; flex-direction: row; gap: 6px; align-items: center; justify-content: flex-end; flex: 0 0 auto; }
body.expeditions-page .ship-row-fill-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 42px;
    height: 34px;
    padding: 0 10px;
    border: 0;
    border-radius: 18px 8px 8px 18px;
    background: linear-gradient(90deg, #f6a05d, #ffbf86);
    color: #231429;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: lowercase;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(255, 243, 229, 0.24);
}
body.expeditions-page .ship-row-fill-button:hover { filter: brightness(1.06); }
body.expeditions-page .ship-row-fill-button:focus-visible { outline: 2px solid rgba(255, 191, 134, 0.92); outline-offset: 2px; }
body.expeditions-page .ship-row input { width: 72px; min-height: 34px; text-align: right; padding: 6px 8px; border-radius: 8px 18px 18px 8px; }
body.expeditions-page .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
body.expeditions-page .actions .secondary { box-shadow: none; }

body.launcher-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    font: 16px/1.5 "Segoe UI", Tahoma, sans-serif;
}

body.launcher-page .card {
    width: min(560px, calc(100vw - 32px));
    padding: 28px;
}

body.launcher-page h1 { margin: 0 0 10px; font-size: 1.8rem; }
body.launcher-page p { margin: 0 0 12px; }
body.launcher-page .actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
body.launcher-page .actions a:hover { filter: brightness(1.05); }
body.launcher-page #ogenhance-launcher-status { margin-top: 18px; padding: 14px 16px; border-radius: 18px 10px 18px 10px; border: 1px solid var(--border-soft); background: rgba(52,68,112,.52); color: var(--text); font-weight: 700; }

@media (max-width: 1400px) {
    body.settings-page .priority-sync-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    body.expeditions-page .profile-form-grid,
    body.expeditions-page .ship-group-grid,
    body.expeditions-page .ship-list {
        grid-template-columns: 1fr;
    }

    body.expeditions-page .ship-group.is-compact {
        max-width: none;
    }
}

@media (max-width: 900px) {
    body.settings-page .priority-sync-grid,
    body.settings-page .split-grid,
    body.settings-page .fleet-layout,
    body.settings-page .activity-layout,
    body.dashboard-page .grid,
    body.dashboard-page .table-panel-grid {
        grid-template-columns: 1fr;
    }
}
