:root { color-scheme: dark; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; background: #0b121a; color: #e4edf1; --surface: #111e29; --surface-raised: #182936; --border: #2b4250; --muted: #9ab0bb; --accent: #70d7c9; --warning: #edbd6c; --danger: #f08c83; } * { box-sizing: border-box; } body { margin: 0; min-width: 280px; min-height: 100vh; min-height: 100dvh; } button, input, select, textarea { font: inherit; } button, select { cursor: pointer; } button, input, select, textarea { min-height: 44px; border: 1px solid var(--border); border-radius: 9px; background: #12232e; color: inherit; } button { padding: .6rem .9rem; font-weight: 650; } button:hover:not(:disabled) { background: #213c48; border-color: #52717c; } button:active:not(:disabled) { transform: translateY(1px); } button:disabled { cursor: not-allowed; opacity: .48; } input, select, textarea { width: 100%; padding: .6rem .7rem; } select { appearance: none; padding-right: 1.8rem; background-image: linear-gradient(45deg, transparent 50%, #9ab0bb 50%), linear-gradient(135deg, #9ab0bb 50%, transparent 50%); background-position: calc(100% - 15px) center, calc(100% - 10px) center; background-size: 5px 5px; background-repeat: no-repeat; } input[type="checkbox"], input[type="radio"] { width: auto; min-height: auto; accent-color: var(--accent); } label { display: grid; gap: .35rem; color: var(--muted); font-size: .88rem; font-weight: 600; } a { color: var(--accent); } :focus-visible { outline: 3px solid #9af4e5; outline-offset: 3px; } h1, h2, h3, p { margin-top: 0; } h1 { font-size: clamp(1.15rem, 2.4vw, 1.55rem); margin-bottom: 0; } h2 { font-size: 1rem; margin-bottom: .8rem; } h3 { font-size: .9rem; margin-bottom: .55rem; } .shell { width: min(100%, 1680px); margin: 0 auto; padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); } .topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .65rem 1rem; padding: .3rem .1rem .9rem; } .topbar p { margin: .2rem 0 0; color: var(--muted); font-size: .82rem; } .status, [role="status"] { color: var(--muted); font-size: .85rem; } .tabs { display: flex; gap: .4rem; overflow-x: auto; padding: 0 0 .75rem; scrollbar-width: thin; } .tabs button, .tabs a { flex: 0 0 auto; } .tabs [aria-selected="true"], .tabs [aria-current="page"], .tabs .active { background: #1b4c4a; border-color: #70d7c9; color: #e6fffa; } .workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: .85rem; align-items: start; } .map-column, .side-panel { min-width: 0; display: grid; gap: .75rem; } .map-wrap { position: relative; overflow: hidden; min-height: 260px; border: 1px solid #35515d; border-radius: 12px; background: #101c24; } .map-wrap canvas { display: block; width: 100%; height: auto; touch-action: none; } .map-tools, .toolbar, .row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; } .map-tools > *, .toolbar > * { flex: 0 1 auto; } .card { min-width: 0; padding: 1rem; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); } .card > :last-child { margin-bottom: 0; } .card + .card { margin-top: 0; } .list { display: grid; gap: .5rem; padding: 0; margin: 0; list-style: none; } .list > * { min-width: 0; padding: .7rem; border: 1px solid #29404c; border-radius: 8px; background: #142530; overflow-wrap: anywhere; } .empty { color: var(--muted); line-height: 1.5; padding: .6rem 0; } small, .muted { color: var(--muted); } .success { color: var(--accent); } .warning { color: var(--warning); } .error, .danger { color: var(--danger); } [hidden] { display: none !important; } dialog { width: min(90vw, 540px); max-height: min(85vh, 800px); overflow: auto; padding: 1.2rem; border: 1px solid #4d6974; border-radius: 14px; background: #152630; color: inherit; box-shadow: 0 20px 70px #0009; } dialog::backdrop { background: #02080dc9; } @media (max-width: 800px) { .workspace { grid-template-columns: minmax(0, 1fr); } .side-panel { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); } .map-wrap { min-height: 200px; } } @media (max-width: 420px) { .shell { padding-left: max(8px, env(safe-area-inset-left)); padding-right: max(8px, env(safe-area-inset-right)); } .card { padding: .8rem; } } @media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; animation-duration: 0s !important; } } .map-wrap canvas { height: clamp(280px, 59dvh, 690px); } .map-tools { justify-content: space-between; } .map-actions { display: flex; gap: .35rem; } .map-actions button { min-width: 44px; } .legend { display: flex; flex-wrap: wrap; gap: .65rem 1rem; padding: .65rem .85rem; } .legend label { display: flex; align-items: center; min-height: 34px; cursor: pointer; } .side-panel > .card { display: grid; gap: .7rem; } .pairing { max-width: 410px; margin: clamp(36px, 15vh, 160px) auto 0; } .pairing form, #scenario-form { display: grid; gap: .7rem; } .scroller { max-height: 380px; overflow-y: auto; scrollbar-color: #42636f transparent; } .list button { text-align: left; min-height: 44px; font-size: .9rem; } .list [aria-pressed="true"] { border-color: var(--accent); background: #193b40; } .subcard, .object-card:not(:empty) { border-bottom: 1px solid var(--border); padding-bottom: .7rem; } .subcard h3:not(:first-child) { margin-top: .9rem; } .scroller.chain { max-height: 225px; } .detail-row { margin: .25rem 0; line-height: 1.4; font-size: .9rem; } .fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; } .object-card button { margin-top: .5rem; } #history-more, #preview, #confirm-launch { color: #b6f3eb; border-color: #447672; } #launch-status:empty, #pair-error:empty, #map-status:empty { display: none; } @media (min-width: 801px) and (min-height: 680px) { .map-column { position: sticky; top: .75rem; } } @media (max-width: 800px) { .map-wrap canvas { height: clamp(240px, 46dvh, 580px); } }