:root { --bg: #060a10; --bg2: #0d141e; --bg3: #142030; --ink: #e6eef8; --dim: #9db0c6; --mute: #5c6f86; --line: rgba(230,238,248,.1); --acc: #5cc8ff; --sun: #ffd166; --ok: #7ee787; --bad: #ff7b72; color-scheme: dark; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); font: 14.5px/1.45 ui-sans-serif, -apple-system, "Segoe UI", Roboto, sans-serif; }
button, select, input { font: inherit; color: inherit; }
.top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: calc(10px + env(safe-area-inset-top)) 14px 10px; border-bottom: 1px solid var(--line); }
.logo { font-size: 18px; } .logo span { color: var(--acc); } .grow { flex: 1; }
.pill { font: 600 11px/1 ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--ok); white-space: nowrap; } .pill.sim { color: var(--sun); }
select, input { height: 38px; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; min-width: 0; }
#q { width: 240px; }
.btn { height: 34px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg2); cursor: pointer; } .btn:hover { border-color: var(--acc); } .btn.sm { height: 30px; font-size: 13px; }
main { display: grid; grid-template-columns: minmax(0, 1fr) 360px; height: calc(100vh - 59px); min-height: 520px; }
.mapwrap { position: relative; overflow: hidden; background: #0a1018; }
#map { position: absolute; inset: 0; background: #0a1018; }
.nomap { position: absolute; inset: 0; display: grid; place-items: center; color: var(--mute); padding: 20px; text-align: center; } .nomap[hidden] { display: none; }
.tbar { position: absolute; left: 12px; bottom: 12px; z-index: 500; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; background: rgba(6,10,16,.82); border: 1px solid var(--line); border-radius: 12px; padding: 6px; backdrop-filter: blur(6px); }
.tbar .now { color: var(--ok); }
.sp { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; } .sp button { border: 0; background: transparent; padding: 0 10px; height: 32px; cursor: pointer; color: var(--dim); font-size: 13px; } .sp button.on { background: var(--bg3); color: var(--acc); }
.side { border-left: 1px solid var(--line); padding: 12px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
.card { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 8px; min-width: 0; }
.ch { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.mute { color: var(--mute); margin: 0; font-size: 12.5px; }
.sel h2 { margin: 0; font-size: 19px; line-height: 1.2; } .sel .id { font: 12px ui-monospace, monospace; color: var(--mute); }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; } .kv div { display: grid; } .kv small { color: var(--mute); font-size: 11.5px; } .kv b { font: 600 15px ui-monospace, monospace; }
.lit { color: var(--sun); } .ecl { color: var(--dim); }
.obs { font-size: 12.5px; color: var(--dim); text-align: right; }
.row2 { display: flex; gap: 6px; flex-wrap: wrap; }
.next { font-size: 13.5px; color: var(--dim); } .next b { color: var(--ink); }
#sky { width: 100%; max-width: 300px; aspect-ratio: 1; justify-self: center; }
.passes { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.passes li { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); cursor: pointer; display: grid; gap: 2px; font-size: 13px; } .passes li:hover { border-color: rgba(92,200,255,.5); } .passes li.on { border-color: var(--acc); background: var(--bg3); }
.passes .t { display: flex; justify-content: space-between; gap: 8px; } .passes .t b { font-weight: 600; } .passes small { color: var(--dim); }
.tag { font: 600 10.5px/1 ui-monospace, monospace; letter-spacing: .06em; text-transform: uppercase; padding: 3px 6px; border-radius: 6px; border: 1px solid var(--line); white-space: nowrap; } .tag.vis { color: var(--sun); border-color: rgba(255,209,102,.4); } .tag.day { color: var(--mute); } .tag.shd { color: var(--dim); }
.passes button { justify-self: start; border: 1px solid var(--line); background: transparent; border-radius: 7px; font-size: 12px; padding: 2px 8px; color: var(--dim); cursor: pointer; margin-top: 3px; }
.note { margin: 0; color: var(--mute); font-size: 12px; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--bg3); border: 1px solid var(--acc); border-radius: 12px; padding: 10px 14px; z-index: 1000; max-width: calc(100vw - 32px); } .toast[hidden] { display: none; }
.leaflet-container { background: #0a1018; font: inherit; } .leaflet-tooltip.satlbl { background: rgba(6,10,16,.85); color: var(--ink); border: 1px solid var(--acc); box-shadow: none; font: 600 12px ui-sans-serif, sans-serif; } .leaflet-tooltip.satlbl::before { display: none; }
.leaflet-control-attribution { background: rgba(6,10,16,.7) !important; color: var(--mute) !important; } .leaflet-control-attribution a { color: var(--dim) !important; }
@media (max-width: 860px) {
  main { display: flex; flex-direction: column; height: auto; }
  .mapwrap { height: 56vh; min-height: 320px; }
  .side { border-left: 0; border-top: 1px solid var(--line); overflow: visible; }
  #q { width: 100%; order: 5; } .top select { flex: 1; }
  .tbar { left: 8px; bottom: 26px; } .leaflet-control-attribution { font-size: 10px !important; }
}
