:root {
  color-scheme: dark;
  /* UI/UX Pro Max önerisi: "HUD / Sci-Fi FUI" + yıldız beyazı ve fırlatma mavisi; Exo + Roboto Mono */
  --bg: #07080d;
  --surface-1: #101219;
  --surface-2: #171a23;
  --surface-3: #222634;
  --card: rgba(13, 15, 22, 0.84);
  --line: #1e293b;
  --line-2: #2a3547;
  --grid: #1f2633;
  --text-primary: #f8fafc;
  --text-secondary: #b6c0cf;
  --text-muted: #8591a3;
  --accent: #3b82f6;
  --accent-2: #5ee7ff;
  --series-1: #3b82f6;
  --good: #34d399;
  --warn: #f5b93a;
  --bad: #f87171;
  --radius: 12px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Exo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-family: var(--font);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text-primary); overflow: hidden; }
#app { position: fixed; inset: 0; }
#view { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
#view:active { cursor: grabbing; }
#labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.lbl { position: absolute; left: 0; top: 0; font-size: 12px; color: var(--text-secondary); text-shadow: 0 1px 3px #000; white-space: nowrap; }
.lbl-veh { color: #ffe0a3; } .lbl-site { color: #9ff0c1; }
kbd { font: 11px var(--mono); padding: 0 4px; border: 1px solid var(--line-2); border-radius: 4px; color: var(--text-secondary); background: var(--surface-2); }
.k { color: var(--text-muted); font-size: 12px; }
.k em { font-style: normal; color: var(--text-muted); }
.v, .num, .mono { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); }
.ico { flex: none; vertical-align: -3px; }
h3 .ico { vertical-align: -3px; margin-right: 2px; color: var(--text-muted); }
button { font: inherit; font-size: 13px; color: var(--text-primary); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 10px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease); }
button:hover { background: var(--surface-3); border-color: #3a4960; }
button:disabled { opacity: .5; cursor: default; }
button.on { border-color: var(--accent); color: #fff; background: rgba(59, 130, 246, .22); }
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; min-width: 96px; }
button.primary:hover { background: #2f74e6; }
button:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
select { font: inherit; font-size: 13px; color: var(--text-primary); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 8px; padding: 5px 8px; color-scheme: dark; cursor: pointer; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 8px 30px rgba(0, 0, 0, .35); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 8px 30px rgba(0, 0, 0, .35); }

/* çalışma alanları: Ay Görevi / Canlı Gökyüzü */
body[data-mode="mission"] [data-for="sky"], body[data-mode="sky"] [data-for="mission"] { display: none !important; }
#modebar { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; align-items: center; gap: 10px; padding: 5px 6px 5px 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 8px 30px rgba(0, 0, 0, .35); }
#modebar .brand { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; letter-spacing: .08em; font-size: 14px; }
#modebar .seg { display: flex; gap: 4px; }
#modebar .seg button { font-family: var(--font); font-size: 13px; border-radius: 999px; padding: 6px 14px; font-weight: 600; background: transparent; border-color: transparent; color: var(--text-secondary); }
#modebar .seg button:hover { color: var(--text-primary); background: var(--surface-2); }
#modebar .seg button.on { background: var(--accent); border-color: var(--accent); color: #fff; }

#hud, #skyHud { position: absolute; top: 14px; left: 14px; width: 318px; padding: 12px 14px; }
.hud-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.phase { margin: 8px 0 6px; font-size: 16px; font-weight: 600; }
.big { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.big > div { display: flex; flex-direction: column; }
.bv { font-size: 21px; font-weight: 600; font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.sub { font-size: 12px; color: var(--text-secondary); margin: 4px 0 8px; font-variant-numeric: tabular-nums; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 13px; margin-bottom: 8px; }
.bar { display: grid; grid-template-columns: 1fr auto; font-size: 13px; margin-top: 6px; }
.bar .track { grid-column: 1 / -1; }
.track { height: 6px; background: var(--surface-3); border-radius: 3px; overflow: hidden; margin-top: 4px; }
.fill { height: 100%; width: 0; background: var(--series-1); border-radius: 3px; }
.fill.thr { background: #f08a3c; }
.status { margin-top: 8px; min-height: 16px; font-size: 13px; color: var(--warn); }

#panel, #skyPanel { position: absolute; top: 14px; right: 14px; bottom: 76px; width: 368px; display: flex; flex-direction: column; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; border-bottom: 1px solid var(--line); }
.tab { flex: 1 0 18%; padding: 6px 2px; font-size: 12.5px; min-width: 0; font-weight: 600; color: var(--text-secondary); background: transparent; border-color: transparent; }
.tab:hover { color: var(--text-primary); background: var(--surface-2); }
.tab.on { color: #fff; background: rgba(59, 130, 246, .2); border-color: rgba(59, 130, 246, .6); }
.tabpage { padding: 4px 12px 12px; overflow-y: auto; flex: 1; }
.tabpage h3 { font-size: 13px; color: var(--text-secondary); font-weight: 600; margin: 12px 0 6px; }
.plan, .log { list-style: none; margin: 0; padding: 0; }
.plan li { display: grid; grid-template-columns: 14px 1fr auto; align-items: center; gap: 8px; padding: 5px 0; font-size: 13px; border-bottom: 1px solid #1a1f27; }
.pl-dot { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--text-muted); }
.plan li.done .pl-dot { background: var(--good); border-color: var(--good); }
.plan li.next .pl-dot { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 3px rgba(57, 135, 229, 0.25); }
.plan li.later { color: var(--text-muted); }
.pl-t { font-variant-numeric: tabular-nums; color: var(--text-secondary); font-size: 12px; }
.plan li.next .pl-t { color: var(--text-primary); font-weight: 600; }
.log li { display: grid; grid-template-columns: auto 1fr; gap: 8px; padding: 5px 0; font-size: 12.5px; border-bottom: 1px solid #1a1f27; }
.ev-t { font-variant-numeric: tabular-nums; color: var(--text-muted); white-space: nowrap; }
.log li.warn .ev-m { color: var(--warn); } .log li.bad .ev-m { color: var(--bad); }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th, .tbl td { padding: 6px 4px; border-bottom: 1px solid #1d222b; text-align: left; }
.tbl th { color: var(--text-muted); font-weight: 500; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl td.dev { color: var(--warn); }
.tbl tfoot td { color: var(--text-secondary); }
.note { font-size: 12px; color: var(--text-muted); line-height: 1.45; }
.chart { width: 100%; height: 170px; display: block; margin-top: 10px; background: var(--surface-1); border-radius: 8px; }

#controls, #skyControls { position: absolute; left: 50%; transform: translateX(-50%); bottom: 14px; max-width: calc(100% - 28px); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 7px 8px; z-index: 5;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.grp { display: flex; align-items: center; gap: 6px; }
.warp { min-width: 64px; text-align: center; font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 500; }
.chk { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-secondary); }

#manual { position: absolute; left: 50%; transform: translateX(-50%); bottom: 78px; width: min(720px, calc(100% - 28px)); padding: 10px 12px; background: rgba(34, 22, 8, 0.88); border: 1px solid #6b4a17; border-radius: var(--radius); }
.mrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0; }
.mrow input[type=range] { flex: 1; accent-color: #f08a3c; }
.mrow.hint { font-size: 12px; color: var(--text-secondary); }

.daterow { display: flex; gap: 6px; align-items: center; margin: 6px 0; flex-wrap: wrap; }
.daterow input[type=date] { flex: 1; font: inherit; font-size: 13px; color: var(--text-primary); background: var(--surface-2); border: 1px solid var(--line); border-radius: 7px; padding: 5px 8px; color-scheme: dark; }
button.sm { min-width: 0; padding: 6px 12px; }
.presets button { font-size: 12px; padding: 4px 8px; }
.dinfo { font-size: 12.5px; color: var(--text-secondary); line-height: 1.55; margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.dinfo b { color: var(--text-primary); font-weight: 600; }
.dlog summary { font-size: 12px; color: var(--text-muted); cursor: pointer; }
.dlog ul { list-style: none; margin: 4px 0 0; padding: 0; font-size: 11.5px; color: var(--text-muted); max-height: 160px; overflow: auto; }
.lbl-emb { color: #ffffff; }
.cfg { margin: 8px 0 4px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px 8px; background: rgba(255,255,255,0.02); }
.cfg summary { font-size: 13px; font-weight: 600; color: var(--text-secondary); cursor: pointer; }
.cfg select, .cfg input { font: inherit; font-size: 12.5px; color: var(--text-primary); background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 4px 6px; color-scheme: dark; }
.cfg input[type=number] { width: 64px; }
.frow { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-size: 12.5px; color: var(--text-secondary); }
.frow > label:first-child { min-width: 38px; }
.frow select { flex: 1; min-width: 0; }
.frow .inl { display: inline-flex; align-items: center; gap: 4px; }
.frow .inl input { width: 46px; }
.frow3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 4px 0; font-size: 12px; color: var(--text-muted); }
.frow3 label { display: flex; flex-direction: column; gap: 3px; }
.frow3 label span { display: flex; align-items: center; gap: 3px; color: var(--text-secondary); }
.fttl { font-size: 12px; color: var(--text-muted); margin-top: 8px; }
.dvmini { width: 100%; border-collapse: collapse; font-size: 12px; margin: 6px 0 2px; }
.dvmini td { padding: 2px 0; color: var(--text-secondary); }
.dvmini td.num { text-align: right; font-variant-numeric: tabular-nums; color: var(--text-primary); }
.dvmini tr.tot td { border-top: 1px solid var(--line); font-weight: 600; color: var(--text-primary); }
.cmp tbody tr { cursor: pointer; }
.cmp tbody tr:hover td { background: rgba(255,255,255,0.04); }
.cmp tbody tr.cur td { color: #fff; font-weight: 600; }
.cmp td small { display: block; color: var(--text-muted); font-size: 11px; font-weight: 400; }
.lbl-lp, .lbl-lp2 { color: #d7b8ff; font-size: 11px; }
.lbl-sat { color: #ffe08a; font-size: 11.5px; } .lbl-msat { color: #ff9ee8; font-size: 11.5px; }
.sgroups, .sresults { list-style: none; margin: 4px 0; padding: 0; font-size: 12.5px; }
.sgroups li { display: grid; grid-template-columns: 18px 12px 1fr auto; align-items: center; gap: 6px; padding: 3px 0; color: var(--text-secondary); }
.sgroups .sw { width: 10px; height: 10px; border-radius: 50%; }
.sgroups .v { color: var(--text-primary); }
.sresults li { padding: 4px 6px; border-radius: 6px; cursor: pointer; color: var(--text-secondary); }
.sresults li:hover { background: var(--surface-3); color: var(--text-primary); }
input[type=search] { flex: 1; font: inherit; font-size: 13px; color: var(--text-primary); background: var(--surface-2); border: 1px solid var(--line); border-radius: 7px; padding: 5px 8px; }
.tbl tr.sec th { padding-top: 14px; color: var(--text-secondary); font-weight: 600; font-size: 12.5px; border-bottom-color: var(--line); }
#ephtable td:first-child { color: var(--text-secondary); font-size: 12.5px; }
#loadBack { margin-top: 12px; }

#pick { position: absolute; z-index: 4; width: 300px; max-height: calc(100% - 100px); overflow-y: auto; padding: 10px 12px 10px; background: rgba(12, 15, 21, 0.9); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(6px); font-size: 12.5px; }
#pick .ph { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
#pick .pt { font-size: 14px; font-weight: 600; color: var(--text-primary); }
#pick .ps { color: var(--text-muted); font-size: 11.5px; margin: 2px 0 6px; }
#pick .px { background: none; border: none; color: var(--text-muted); font-size: 16px; line-height: 1; padding: 0 2px; cursor: pointer; }
#pick table { width: 100%; border-collapse: collapse; }
#pick td { padding: 2.5px 0; color: var(--text-secondary); vertical-align: top; }
#pick td.num { text-align: right; color: var(--text-primary); font-variant-numeric: tabular-nums; }
#pick .pa { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
#pick .pa button { font-size: 12px; padding: 5px 9px; }
.hovertip { position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; padding: 2px 7px; font-size: 12px; color: var(--text-primary); background: rgba(12, 15, 21, 0.85); border: 1px solid var(--line); border-radius: 6px; white-space: nowrap; }
#loading { position: absolute; inset: 0; display: grid; place-items: center; background: var(--bg); z-index: 5; }
.lbox { width: 320px; text-align: center; }
.ltitle { font-size: 22px; font-weight: 700; letter-spacing: 0.08em; margin-bottom: 10px; }
#loadMsg { font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; }

/* asteroitler ve saptırma */
.lbl-ast { color: #ffb36b; font-size: 11.5px; } .lbl-astbig { color: #b9c7e3; font-size: 11px; }
.lbl-df { color: #d8dde6; font-size: 11px; } .lbl-df2 { color: #ff8a3d; font-size: 11px; }
.dinfo.small, .small { font-size: 11.5px; color: var(--text-muted); }
.lsub { display: block; font-size: 12px; font-weight: 500; letter-spacing: 0.3em; color: var(--text-muted); margin-top: 2px; }
.tbl.cas tr { cursor: pointer; } .tbl.cas tr.on td { color: var(--text-primary); background: rgba(57, 135, 229, 0.12); }
.tbl.cas td { font-size: 12px; } .tbl.cas input { margin: 0; }
.bcell { display: flex; align-items: flex-end; justify-content: flex-end; }
.dfout .tbl td { font-size: 12px; } .dfout .tbl td.num { white-space: normal; }
.dfout tr.hl td { color: var(--text-primary); font-weight: 600; } .dfout tr.good td.num { color: var(--good); } .dfout tr.bad td.num { color: var(--bad); }
.chart.sq { aspect-ratio: 1 / 1; height: auto; }
#dfSweep { height: 190px; }
#btnPanel { display: none; }
/* alt çubuk ağaç menüleri */
.dock button.icon { padding: 7px 9px; }
.warpgrp { gap: 2px; } .warpgrp button { padding: 6px 10px; }
.tm { position: relative; }
.tm-btn { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; }
.tm-btn .tm-k { color: var(--text-muted); font-size: 12px; }
.tm-btn .tm-val { font-weight: 600; font-size: 13px; white-space: nowrap; }
.tm-btn .chev { width: 14px; height: 14px; opacity: .7; transform: rotate(180deg); transition: transform .2s var(--ease); }
.tm.open .tm-btn { border-color: var(--accent); background: rgba(59, 130, 246, .12); }
.tm.open .tm-btn .chev { transform: none; }
.tm.warn .tm-val { color: var(--warn); }
.tm-pop { position: absolute; bottom: calc(100% + 10px); left: 0; min-width: 230px; max-height: min(70vh, 520px); overflow: auto; padding: 6px; z-index: 7;
  background: rgba(10, 13, 20, .97); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 16px 40px rgba(0, 0, 0, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.tm-pop.right { left: auto; right: 0; }
.tm-pop > button, .tm-sub > button, .tm-toggle { display: flex; align-items: center; gap: 8px; width: 100%; justify-content: flex-start; text-align: left; padding: 7px 10px 7px 26px; border: 0; border-radius: 8px; background: transparent; font-size: 13px; color: var(--text-primary); position: relative; cursor: pointer; }
.tm-pop > button:hover, .tm-sub > button:hover, .tm-toggle:hover { background: var(--surface-2); }
.tm-pop button.on { color: var(--accent-2); background: rgba(94, 231, 255, .07); }
.tm-pop button.on::before { content: ''; position: absolute; left: 10px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 8px rgba(94, 231, 255, .7); }
.tm-pop small { color: var(--text-muted); font-size: 11.5px; margin-left: auto; white-space: nowrap; }
.tm-pop kbd { margin-left: auto; }
.tm-pop details { margin: 2px 0; }
.tm-pop summary { list-style: none; display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 8px; cursor: pointer; font: 600 11px var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); user-select: none; }
.tm-pop summary::-webkit-details-marker { display: none; }
.tm-pop summary::before { content: ''; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform .15s var(--ease); margin-right: 2px; }
.tm-pop details[open] > summary::before { transform: rotate(45deg); }
.tm-pop summary:hover { color: var(--text-secondary); }
.tm-sub { margin-left: 11px; padding-left: 6px; border-left: 1px solid var(--line); }
.tm-sub.seg { display: flex; flex-wrap: nowrap; gap: 4px; padding: 4px 0 4px 8px; }
.tm-sub.seg > button { width: auto; padding: 6px 9px; font: 12px var(--mono); border: 1px solid var(--line); background: var(--surface-1); }
.tm-sub.seg > button.on { border-color: var(--accent-2); }
.tm-sub.seg > button.on::before { display: none; }
.tm-toggle { padding-left: 10px; }
.tm-toggle input { appearance: none; -webkit-appearance: none; flex: none; width: 30px; height: 17px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-2); position: relative; margin: 0; cursor: pointer; transition: background-color .2s var(--ease); }
.tm-toggle input::after { content: ''; position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: var(--text-secondary); transition: transform .2s var(--ease); }
.tm-toggle input:checked { background: var(--accent); border-color: var(--accent); }
.tm-toggle input:checked::after { transform: translateX(13px); background: #fff; }
[hidden] { display: none !important; }
#tab-saptirma select, #tab-saptirma input:not([type=checkbox]):not([type=radio]):not([type=search]) { font: inherit; font-size: 12.5px; color: var(--text-primary); background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 4px 6px; color-scheme: dark; min-width: 0; }
#tab-saptirma .frow3 label span input { width: 100%; }
#tab-saptirma .frow3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#tab-saptirma .frow input[type=date] { flex: 1; }
#dfM { display: block; margin: 2px 0 4px; }

@media (max-width: 1100px) {
  #panel { width: 300px; }
  #hud { width: 280px; }
}
@media (max-width: 760px) {
  #panel { display: none; }
  #panel.open { display: flex; left: 8px; right: 8px; width: auto; top: 8px; bottom: 120px; z-index: 4; }
  #btnPanel { display: inline-block; }
  #hud { width: calc(100% - 28px); }
}

/* Canlı Gökyüzü */
.live { display: inline-flex; align-items: center; gap: 7px; font: 600 11.5px var(--mono); letter-spacing: .12em; color: var(--good); }
.live .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: pulse 2s infinite; }
.live.off { color: var(--warn); } .live.off .pulse { background: var(--warn); animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .55); } 70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.clockbig { font: 500 34px var(--mono); letter-spacing: -.02em; margin: 6px 0 0; font-variant-numeric: tabular-nums; }
.kv { display: grid; grid-template-columns: 72px 1fr; gap: 6px; font-size: 12.5px; margin: 3px 0; color: var(--text-secondary); }
.nextpass { margin: 10px 0 6px; padding: 8px 10px; border: 1px solid rgba(94, 231, 255, .35); border-radius: 10px; background: rgba(94, 231, 255, .06); font-size: 12.5px; line-height: 1.5; }
.nextpass b { color: var(--accent-2); font-size: 14px; }
.watch { list-style: none; margin: 4px 0; padding: 0; }
.witem { padding: 8px 0; border-bottom: 1px solid var(--grid); }
.witem .wtop { display: flex; align-items: center; gap: 7px; }
.witem .wname { font-size: 13.5px; }
.wdot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; }
.witem .wvals { display: flex; flex-wrap: wrap; gap: 4px 10px; font: 12px var(--mono); color: var(--text-secondary); margin: 5px 0 6px 16px; }
.witem .wacts { display: flex; gap: 5px; flex-wrap: wrap; margin-left: 16px; }
.watch .empty { color: var(--text-muted); font-size: 12.5px; padding: 6px 0; }
button.xs { font-size: 12px; padding: 3px 9px; border-radius: 6px; }
.tag { display: inline-block; font: 600 10.5px var(--font); letter-spacing: .04em; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-secondary); }
.tag.sun { color: #ffd166; border-color: rgba(255, 209, 102, .45); } .tag.shadow { color: #93a4bd; }
.tag.up { color: var(--accent-2); border-color: rgba(94, 231, 255, .5); } .tag.down { color: var(--text-muted); }
.tag.vis { color: #0b1220; background: var(--accent-2); border-color: var(--accent-2); } .tag.day { color: var(--text-muted); }
.tbl.passes td { font-size: 12px; } .tbl.passes tbody tr { cursor: pointer; transition: background-color .15s var(--ease); }
.tbl.passes tbody tr:hover td { background: rgba(255, 255, 255, .04); } .tbl.passes tbody tr.on td { background: rgba(59, 130, 246, .14); }
.sresults li.dim { opacity: .5; }
#obsCity { flex: 1; }
.toasts { position: absolute; left: 50%; top: 64px; transform: translateX(-50%); z-index: 6; display: flex; flex-direction: column; gap: 8px; pointer-events: none; width: min(520px, calc(100% - 28px)); }
.toast { pointer-events: auto; padding: 10px 14px; border-radius: 10px; background: rgba(15, 23, 42, .95); border: 1px solid rgba(94, 231, 255, .4); color: var(--text-primary); font-size: 13px; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.toast.out { opacity: 0; transform: translateY(-6px); }
.lbl-watch { font-weight: 600; font-size: 12px; } .lbl-obs { color: #fff; font-size: 11.5px; }
.seg { display: inline-flex; gap: 3px; } .seg button { padding: 6px 9px; font-family: var(--mono); font-size: 12px; }
#btnSkyPanel { display: none; }
@media (max-width: 1240px) { #hud, #skyHud { top: 64px; } #panel, #skyPanel { top: 64px; } }
@media (max-width: 760px) {
  #skyPanel { display: none; }
  #skyPanel.open { display: flex; left: 8px; right: 8px; width: auto; top: 8px; bottom: 120px; z-index: 4; }
  #btnSkyPanel { display: inline-flex; }
  #modebar { top: 8px; left: 8px; right: 8px; transform: none; justify-content: space-between; padding: 4px 4px 4px 10px; }
  #modebar .seg button { padding: 6px 10px; font-size: 12.5px; }
  #hud, #skyHud { top: 60px; left: 8px; width: calc(100% - 16px); padding: 8px 12px; }
  #skyDate, #skyUtc, #skyCounts, #skyHud .kv { display: none; }
  .clockbig { font-size: 24px; margin-top: 2px; }
  .nextpass { margin: 6px 0 0; padding: 6px 8px; }
  #controls, #skyControls { left: 8px; right: 8px; transform: none; max-width: none; bottom: 8px; gap: 6px; padding: 6px; justify-content: space-between; flex-wrap: nowrap; }
  .dock > button:not(.icon) span, .tm-btn .tm-k { display: none; }
  .tm-btn { padding: 7px 8px; gap: 5px; } .tm-btn .tm-val { font-size: 12.5px; } .tm-btn .chev { display: none; }
  .tm-val[data-from] { display: none; } .tm.warn .tm-btn { border-color: rgba(251, 191, 36, .6); color: var(--warn); }
  .dock > button.primary { min-width: 0; padding: 7px 14px; }
  .warp { min-width: 44px; } .warpgrp button { padding: 6px 9px; }
  .tm { position: static; }
  .tm-pop { left: 8px; right: 8px; bottom: 62px; position: fixed; min-width: 0; }
  #panel.open, #skyPanel.open { top: 60px; bottom: 64px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* yüzey parçası yükleme göstergesi */
.tilestatus { position: fixed; left: 16px; bottom: 16px; z-index: 5; padding: 6px 12px; border-radius: 999px; font-size: 12px; color: var(--text-secondary); background: rgba(12, 15, 21, .85); border: 1px solid var(--line-2); backdrop-filter: blur(6px); pointer-events: none; }
.tilestatus[hidden] { display: none; }
.tilestatus.warn { color: var(--warn); border-color: var(--warn); max-width: 360px; border-radius: 12px; }
.tilemode { position: fixed; left: 16px; bottom: 54px; z-index: 5; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-family: var(--font); color: var(--text-secondary); background: rgba(12, 15, 21, .85); border: 1px solid var(--line-2); backdrop-filter: blur(6px); cursor: pointer; }
.tilemode:hover { color: var(--text-primary); border-color: var(--accent); }
.tilemode[hidden] { display: none; }
