/* Nükleer Etki Simülatörü v2 — arayüz stilleri
   Görsel kimlik: koyu grafit yüzeyler, sinyal turuncusu / alarm kırmızısı vurgular, ince cam paneller. */

:root {
  --bg: #0b0c0f;
  --g0: #0f1115;
  --g1: #13161b;
  --g2: #191c22;
  --g3: #20242c;
  --g4: #2a2f39;
  --line: rgba(255, 255, 255, .075);
  --line2: rgba(255, 255, 255, .14);
  --text: #eceef1;
  --text2: #c6cad1;
  --muted: #959ca7;
  --dim: #6c737e;
  --sig: #ff5b1f;
  --sig2: #ff8a3d;
  --sig-glow: rgba(255, 91, 31, .38);
  --red: #ff3a45;
  --amber: #ffb020;
  --ok: #3ddc97;
  --info: #5ab2ff;
  --glass: rgba(15, 17, 21, .78);
  --glass2: rgba(19, 22, 27, .9);
  --blur: saturate(140%) blur(14px);
  --r: 14px;
  --r2: 10px;
  --r3: 7px;
  --pw: 344px;               /* panel genişliği */
  --gap: 14px;
  --tl-h: 58px;              /* zaman çizelgesi yüksekliği */
  --shadow: 0 10px 30px rgba(0, 0, 0, .45), 0 1px 0 rgba(255, 255, 255, .04) inset;
  --f-ui: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-disp: 'Chakra Petch', 'IBM Plex Sans', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); }
body {
  color: var(--text);
  font: 14px/1.45 var(--f-ui);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; border-radius: 6px; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .12); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(255, 255, 255, .2); }
::-webkit-scrollbar-track { background: transparent; }
* { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .14) transparent; }

/* ───────────── Yükleme ekranı ───────────── */
#loading {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center;
  background: radial-gradient(1200px 700px at 50% 60%, #1a1410 0%, var(--bg) 60%);
  transition: opacity .6s var(--ease), visibility .6s;
}
body.ready #loading { opacity: 0; visibility: hidden; pointer-events: none; }
.loading-inner { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 24px; }
.loading-mark { width: 74px; height: 74px; }
.loading-mark circle { fill: none; transform-origin: 32px 32px; }
.lm-ring { stroke: var(--sig); stroke-width: 3; stroke-dasharray: 120 50; animation: spin 1.6s linear infinite; }
.lm-ring2 { stroke: var(--amber); stroke-width: 2.5; stroke-dasharray: 40 73; animation: spin 1.1s linear infinite reverse; }
.lm-core { fill: #fff !important; animation: pulse 1.4s ease-in-out infinite; }
.loading-title { font: 600 20px/1.2 var(--f-disp); letter-spacing: .04em; }
.loading-text { color: var(--muted); font-size: 13px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .45; transform: scale(.8); } }

/* ───────────── Ana düzen ───────────── */
#app { position: fixed; inset: 0; }
#globe {
  position: absolute; inset: 0; right: var(--pw);
  background: radial-gradient(900px 600px at 45% 45%, #121820 0%, #07080a 70%);
  overflow: hidden; outline: none;
}
#globe.fake-globe { display: grid; place-items: center; cursor: crosshair; }

/* Cesium atıf satırı: zaman çizelgesinin üstünde, sağ altta görünür kalsın */
#globe .cesium-viewer-bottom {
  left: auto !important; right: 10px; bottom: calc(var(--tl-h) + var(--gap) + 8px) !important;
  padding-right: 0; max-width: 60%;
}
#globe .cesium-widget-credits { font-size: 10px; opacity: .75; }
#globe .cesium-credit-logoContainer img { max-height: 18px; }

/* Ortak cam yüzey */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}

/* ───────────── Arama çubuğu ───────────── */
#topbar {
  position: absolute; top: var(--gap); z-index: 30;
  left: calc(50% - var(--pw) / 2); transform: translateX(-50%);
  width: min(560px, calc(100vw - var(--pw) - 2 * 350px));
  min-width: 360px;
  display: flex; gap: 8px; align-items: stretch;
}
.search {
  position: relative; flex: 1; min-width: 0;
  display: flex; align-items: center; height: 44px; padding: 0 6px 0 12px; border-radius: 12px;
}
.search > svg { flex: none; width: 18px; height: 18px; color: var(--muted); }
.search input {
  flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; padding: 0 10px; font-size: 14.5px;
}
.search input::placeholder { color: var(--dim); }
.search input:focus-visible { outline: none; }
.search:focus-within { border-color: rgba(255, 138, 61, .5); box-shadow: var(--shadow), 0 0 0 3px rgba(255, 91, 31, .16); }
.search .spin { width: 16px; height: 16px; margin-right: 6px; }
.search-clear { flex: none; width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); display: grid; place-items: center; }
.search-clear:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.results {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none;
  max-height: min(360px, 60vh); overflow: auto; border-radius: 12px; background: var(--glass2);
}
.results li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.results li[aria-selected="true"], .results li:hover { background: rgba(255, 91, 31, .13); }
.results li svg { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--sig2); }
.results .r-main { font-weight: 600; font-size: 13.5px; }
.results .r-sub { color: var(--muted); font-size: 12px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.results .r-empty { color: var(--muted); cursor: default; font-size: 13px; }
.results .r-empty:hover { background: none; }

.city-pick { position: relative; flex: none; height: 44px; border-radius: 12px; display: flex; align-items: center; }
.city-pick select {
  appearance: none; -webkit-appearance: none; height: 100%; border: 0; background: transparent;
  padding: 0 34px 0 14px; font-size: 13.5px; color: var(--text2); cursor: pointer; max-width: 150px;
}
.city-pick select option, .city-pick select optgroup { background: var(--g2); color: var(--text); }
.city-pick svg { position: absolute; right: 11px; width: 14px; height: 14px; pointer-events: none; color: var(--muted); }
.city-pick:focus-within { border-color: rgba(255, 138, 61, .5); }

/* ───────────── İstatistik kartları ───────────── */
#stats {
  position: absolute; top: var(--gap); left: var(--gap); z-index: 20;
  width: 318px; max-height: calc(100% - var(--tl-h) - 3 * var(--gap) - 40px);
  display: flex; flex-direction: column; gap: 10px; overflow: auto; padding-bottom: 2px;
}
.card { padding: 0; overflow: hidden; flex: none; }
.card-h {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 11px 14px 10px; border: 0; background: transparent; text-align: left;
}
.card-h .ico { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 8px; background: rgba(255, 91, 31, .12); color: var(--sig2); }
.card-h .ico svg { width: 15px; height: 15px; }
.card-h .ttl { flex: 1; min-width: 0; }
.card-h .ttl b { display: block; font: 600 13px/1.2 var(--f-disp); letter-spacing: .06em; text-transform: uppercase; }
.card-h .ttl small { display: block; color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-h .chev { width: 16px; height: 16px; color: var(--dim); transition: transform .2s var(--ease); }
.card.collapsed .chev { transform: rotate(-90deg); }
.card.collapsed .card-b { display: none; }
.card-h:hover .chev { color: var(--text); }
.card-b { padding: 0 8px 10px; }
.card .badge-live {
  font: 600 10px/1 var(--f-ui); letter-spacing: .08em; text-transform: uppercase; padding: 4px 6px; border-radius: 5px;
  color: var(--amber); background: rgba(255, 176, 32, .12); flex: none;
}

.rows { list-style: none; margin: 0; padding: 0; }
.row-it {
  display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: center;
  padding: 7px 8px; border-radius: 8px; cursor: pointer; user-select: none; position: relative;
}
.row-it:hover { background: rgba(255, 255, 255, .045); }
.row-it .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent), 0 0 10px color-mix(in srgb, var(--c) 50%, transparent); }
.row-it .lbl { min-width: 0; }
.row-it .lbl b { display: block; font-weight: 600; font-size: 13px; line-height: 1.25; }
.row-it .lbl small { display: block; color: var(--muted); font-size: 11.5px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-it .val { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.row-it .val b { display: block; font-weight: 600; font-size: 13.5px; }
.row-it .val small { display: block; color: var(--muted); font-size: 11.5px; }
.rows.compact .row-it .lbl small { display: none; }
.rows.compact .row-it { padding: 5px 8px; }
.rows.compact .row-it .val b { font-size: 13px; line-height: 1.2; }
.rows.compact .row-it .val small { font-size: 11px; line-height: 1.2; }
.row-it.off { opacity: .38; }
.row-it.off .dot { box-shadow: none; background: transparent; border: 2px solid var(--c); }
.row-it.zero .val b { color: var(--dim); font-weight: 500; font-size: 12px; }
.row-it .eye { position: absolute; right: -2px; top: 50%; transform: translateY(-50%); opacity: 0; }

.kv {
  display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; margin: 6px 8px 0; padding-top: 8px;
  border-top: 1px dashed var(--line2); font-size: 12px; color: var(--muted);
}
.kv span:nth-child(even) { color: var(--text2); text-align: right; font-variant-numeric: tabular-nums; }

.cas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 6px; }
.cas {
  border-radius: 10px; padding: 10px 12px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line);
}
.cas .n { font: 600 22px/1.1 var(--f-disp); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.cas .l { color: var(--muted); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; margin-top: 3px; }
.cas.dead .n { color: var(--red); }
.cas.inj .n { color: var(--amber); }
.cas.wide { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; padding: 8px 12px; }
.cas.wide .n { font-size: 16px; color: var(--text2); }
.cas.wide .l { margin: 0; }
.msg { margin: 0 8px; padding: 10px 12px; border-radius: 10px; font-size: 12.5px; color: var(--text2); background: rgba(255, 255, 255, .035); border: 1px solid var(--line); display: flex; gap: 10px; align-items: flex-start; }
.msg svg { flex: none; width: 16px; height: 16px; margin-top: 1px; color: var(--muted); }
.msg.warn { border-color: rgba(255, 176, 32, .28); background: rgba(255, 176, 32, .07); }
.msg.warn svg { color: var(--amber); }
.msg.err { border-color: rgba(255, 58, 69, .3); background: rgba(255, 58, 69, .07); }
.msg.err svg { color: var(--red); }
.msg code { font: 600 12px/1 ui-monospace, 'Cascadia Code', Consolas, monospace; background: rgba(0, 0, 0, .35); padding: 3px 6px; border-radius: 5px; color: var(--amber); white-space: nowrap; }
.foot-note { margin: 8px 10px 0; color: var(--dim); font-size: 11px; line-height: 1.4; }

.spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .14); border-top-color: var(--sig2); animation: spin .8s linear infinite; flex: none; }
.loading-row { display: flex; align-items: center; gap: 10px; color: var(--text2); font-size: 13px; padding: 4px 8px 6px; }
.skel { height: 22px; border-radius: 6px; background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.09), rgba(255,255,255,.04)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ───────────── İpuçları ───────────── */
#hints {
  position: absolute; left: var(--gap); bottom: calc(var(--tl-h) + var(--gap) + 8px); z-index: 15;
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
  padding: 5px 6px 5px 12px; border-radius: 999px; font-size: 12px; color: var(--muted);
  max-width: calc(100% - var(--pw) - 2 * var(--gap));
}
#hints kbd, .kbd {
  font: 600 10.5px/1 var(--f-ui); color: var(--text2); background: rgba(255, 255, 255, .07);
  border: 1px solid var(--line2); border-bottom-width: 2px; border-radius: 5px; padding: 3px 5px;
}
#hints .sep { color: var(--dim); margin: 0 3px; }
#hints .hint-btn { margin-left: 6px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .05); color: var(--text); border-radius: 999px; padding: 4px 10px; font-size: 12px; display: inline-flex; gap: 6px; align-items: center; }
#hints .hint-btn:hover { background: rgba(255, 91, 31, .16); border-color: rgba(255, 91, 31, .5); }
#hints .hint-btn svg { width: 13px; height: 13px; }

/* ───────────── Zaman çizelgesi ───────────── */
#timeline {
  position: absolute; z-index: 25; left: var(--gap); right: calc(var(--pw) + var(--gap)); bottom: var(--gap);
  height: var(--tl-h); display: flex; align-items: center; gap: 6px; padding: 0 14px 0 8px;
}
#timeline.idle { opacity: .72; }
.tl-btn {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid transparent; background: transparent;
  display: grid; place-items: center; color: var(--text2); flex: none;
}
.tl-btn svg { width: 18px; height: 18px; }
.tl-btn:hover:not(:disabled) { background: rgba(255, 255, 255, .07); color: var(--text); }
.tl-btn.play { background: var(--sig); color: #fff; width: 42px; height: 42px; border-radius: 50%; box-shadow: 0 4px 14px var(--sig-glow); }
.tl-btn.play:hover:not(:disabled) { background: var(--sig2); }
.tl-btn:disabled { opacity: .4; cursor: default; box-shadow: none; }
.tl-track { flex: 1; min-width: 0; position: relative; height: 40px; margin: 0 10px; }
.tl-ticks { position: absolute; left: 0; right: 0; top: 23px; height: 14px; pointer-events: none; }
.tl-ticks i { position: absolute; top: 0; width: 1px; height: 5px; background: rgba(255, 255, 255, .2); }
.tl-ticks i.major { height: 8px; background: rgba(255, 255, 255, .35); }
.tl-ticks i.major::after { content: attr(data-l); position: absolute; top: 9px; left: 50%; transform: translateX(-50%); font: 500 9.5px/1 var(--f-ui); color: var(--dim); font-style: normal; white-space: nowrap; }
.tl-ticks .ev { position: absolute; top: -18px; width: 2px; height: 10px; border-radius: 2px; background: var(--c, var(--amber)); transform: translateX(-1px); }
.tl-time { flex: none; font: 600 13px/1 var(--f-disp); font-variant-numeric: tabular-nums; color: var(--text2); min-width: 92px; text-align: right; letter-spacing: .02em; }
.tl-time span { color: var(--dim); }

/* Kaydırıcılar (ortak) */
input[type=range] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; margin: 0; cursor: pointer;
  --p: 50%;
}
input[type=range]::-webkit-slider-runnable-track {
  height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--sig) 0 var(--p), rgba(255, 255, 255, .12) var(--p) 100%);
}
input[type=range]::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .12); }
input[type=range]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--sig); }
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; margin-top: -6px;
  background: #fff; border: 3px solid var(--sig); box-shadow: 0 0 0 4px rgba(255, 91, 31, .16), 0 2px 6px rgba(0, 0, 0, .5);
  transition: transform .15s var(--ease);
}
input[type=range]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--sig); }
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.15); }
input[type=range]:focus-visible { outline: none; }
input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--amber), 0 2px 6px rgba(0, 0, 0, .5); }
input[type=range]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px var(--amber); }
input[type=range]:disabled { opacity: .45; cursor: default; }
.tl-track input[type=range] { position: absolute; left: 0; right: 0; top: 4px; }

/* ───────────── Kontrol paneli ───────────── */
#panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: var(--pw); z-index: 40;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, #13161b, #0d0f13);
  border-left: 1px solid var(--line);
  box-shadow: -12px 0 40px rgba(0, 0, 0, .35);
}
.p-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px 16px; border-bottom: 1px solid var(--line); flex: none; }
.logo { width: 34px; height: 34px; flex: none; }
.brand { flex: 1; min-width: 0; }
.brand b { display: block; font: 700 15px/1.1 var(--f-disp); letter-spacing: .03em; }
.brand small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; margin-top: 3px; }
.pro-on {
  font: 700 9.5px/1 var(--f-ui); letter-spacing: .1em; color: #1a1205; padding: 4px 6px 3px; border-radius: 5px;
  background: linear-gradient(135deg, #ffd27a, var(--amber) 55%, #ff8a3d); box-shadow: 0 0 12px rgba(255, 176, 32, .35);
  white-space: nowrap;
}
.icon-btn {
  width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03);
  color: var(--text2); display: grid; place-items: center; flex: none;
}
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn:hover { background: rgba(255, 255, 255, .08); color: var(--text); border-color: var(--line2); }

.p-scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 6px 0 10px; overscroll-behavior: contain; }

.sec { border-bottom: 1px solid var(--line); }
.sec-h {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 13px 16px; border: 0; background: transparent; text-align: left;
}
.sec-h .ico { width: 18px; height: 18px; color: var(--sig2); flex: none; display: grid; }
.sec-h .ico svg { width: 18px; height: 18px; }
.sec-h b { flex: 1; font: 600 12.5px/1 var(--f-disp); letter-spacing: .12em; text-transform: uppercase; color: var(--text); }
.sec-h .sum { color: var(--muted); font-size: 11.5px; max-width: 130px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sec-h .chev { width: 15px; height: 15px; color: var(--dim); transition: transform .2s var(--ease); }
.sec-h[aria-expanded="false"] .chev { transform: rotate(-90deg); }
.sec-h:hover b { color: #fff; }
.sec-b { padding: 2px 16px 16px; display: grid; gap: 14px; }
.sec-h[aria-expanded="false"] + .sec-b { display: none; }

.field { display: grid; gap: 7px; min-width: 0; }
.field-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.field-h label, .field-h .lab { font-size: 12.5px; color: var(--text2); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.field-h .lab svg, .field-h label svg { width: 15px; height: 15px; flex: none; }
.field-h .v { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 12.5px; color: var(--amber); white-space: nowrap; }
.field-h .v small { color: var(--muted); font-weight: 400; }
.help { font-size: 11.5px; color: var(--muted); line-height: 1.45; margin: 0; }

.pro {
  display: inline-flex; align-items: center; gap: 3px; font: 700 9.5px/1 var(--f-ui); letter-spacing: .06em;
  color: var(--amber); border: 1px solid rgba(255, 176, 32, .4); background: rgba(255, 176, 32, .08); border-radius: 4px; padding: 2px 4px;
  text-transform: uppercase; white-space: nowrap; vertical-align: middle;
}

/* Metin / sayı girişleri */
.inp {
  height: 36px; border-radius: 9px; border: 1px solid var(--line2); background: rgba(0, 0, 0, .28);
  padding: 0 10px; font-variant-numeric: tabular-nums; min-width: 0; width: 100%;
}
.inp:hover { border-color: rgba(255, 255, 255, .22); }
.inp:focus { border-color: var(--sig2); box-shadow: 0 0 0 3px rgba(255, 91, 31, .16); outline: none; }
.inp[aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 3px rgba(255, 60, 60, .16); }
.help.warn-help { color: var(--amber); margin-top: 6px; }
.seg.busy button[aria-checked="true"] { animation: segBusy 1s ease-in-out infinite alternate; }
@keyframes segBusy { to { opacity: .55; } }
select.inp { appearance: none; -webkit-appearance: none; padding-right: 26px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23959ca7' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center; background-size: 14px; }
select.inp option { background: var(--g2); }
input[type=date].inp { color-scheme: dark; }
.inp-row { display: flex; gap: 8px; align-items: center; }
.inp-row .inp.unit { flex: 0 0 76px; }
.inp-row .inp.short { flex: 0 0 92px; }
.inp-suffix { color: var(--muted); font-size: 12px; flex: none; }

/* Segmentli seçici */
.seg {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; padding: 3px;
  background: rgba(0, 0, 0, .3); border: 1px solid var(--line); border-radius: 10px;
}
.seg button {
  border: 0; background: transparent; color: var(--muted); border-radius: 7px; padding: 7px 6px; font-size: 12.5px; font-weight: 500;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px; white-space: nowrap; min-width: 0;
  transition: background .15s, color .15s;
}
.seg button:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.seg button[aria-checked="true"] {
  color: #fff; background: linear-gradient(180deg, #ff6a2e, #e94c12); box-shadow: 0 2px 10px rgba(255, 91, 31, .3), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.seg button[aria-checked="true"] .pro { color: #fff; border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .12); }

/* Anahtarlar */
.toggles { display: grid; gap: 2px; margin: 0 -8px; }
.tgl {
  display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 9px; border: 0; background: transparent; text-align: left; width: 100%;
}
.tgl:hover { background: rgba(255, 255, 255, .04); }
.tgl .t-txt { flex: 1; min-width: 0; }
.tgl .t-txt b { display: flex; align-items: center; gap: 6px; font-weight: 500; font-size: 13px; }
.tgl .t-txt small { display: block; color: var(--muted); font-size: 11.5px; line-height: 1.3; }
.sw {
  flex: none; width: 36px; height: 21px; border-radius: 999px; background: rgba(255, 255, 255, .13); position: relative;
  transition: background .2s var(--ease); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .4);
}
.sw::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: #d7dbe0;
  transition: transform .2s var(--ease), background .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .5);
}
.tgl[aria-checked="true"] .sw { background: var(--sig); }
.tgl[aria-checked="true"] .sw::after { transform: translateX(15px); background: #fff; }

/* Silah seçici */
.wpick { position: relative; }
.wbtn {
  width: 100%; display: grid; grid-template-columns: 74px 1fr 16px; align-items: center; gap: 12px; text-align: left;
  padding: 10px 12px 10px 10px; border-radius: 12px; border: 1px solid var(--line2);
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
}
.wbtn:hover { border-color: rgba(255, 138, 61, .5); }
.wbtn[aria-expanded="true"] { border-color: var(--sig2); box-shadow: 0 0 0 3px rgba(255, 91, 31, .14); }
.wthumb { width: 74px; height: 30px; display: block; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .5)); }
.wbtn .w-name { display: block; font-weight: 600; font-size: 14px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wbtn .w-meta { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wbtn .w-yield { color: var(--amber); font-weight: 600; font-variant-numeric: tabular-nums; }
.wbtn > svg { width: 16px; height: 16px; color: var(--muted); }
.est { color: var(--dim); font-style: italic; }

.wpop {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60; border-radius: 12px; overflow: hidden;
  background: var(--g1); border: 1px solid var(--line2); box-shadow: 0 18px 50px rgba(0, 0, 0, .6);
  display: flex; flex-direction: column; max-height: min(460px, 62vh);
}
.wpop .w-search { padding: 8px; border-bottom: 1px solid var(--line); }
.wlist { overflow: auto; padding: 4px 6px 8px; list-style: none; margin: 0; }
.wgroup { font: 600 10.5px/1 var(--f-disp); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); padding: 12px 8px 6px; }
.wopt {
  display: grid; grid-template-columns: 60px 1fr auto; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; cursor: pointer;
}
.wopt img { width: 60px; height: 24px; object-fit: contain; }
.wopt .o-name { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wopt .o-meta { color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wopt .o-y { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 12.5px; color: var(--amber); text-align: right; white-space: nowrap; }
.wopt .o-y small { display: block; font-weight: 400; color: var(--dim); font-size: 10px; font-style: italic; }
.wopt[aria-selected="true"] { background: rgba(255, 91, 31, .16); }
.wopt.active { background: rgba(255, 255, 255, .07); outline: 1px solid rgba(255, 138, 61, .5); }
.wopt:hover { background: rgba(255, 255, 255, .06); }
.wempty { padding: 16px; color: var(--muted); font-size: 13px; text-align: center; }

/* Yükseklik kaydırıcısı + optimum işareti */
.hob-wrap { position: relative; padding-top: 14px; }
.hob-opt {
  position: absolute; top: 0; font: 600 9.5px/1 var(--f-ui); color: var(--ok); letter-spacing: .04em;
  white-space: nowrap; pointer-events: none; text-transform: uppercase;
}
.hob-opt::after { content: ''; position: absolute; left: calc(var(--ax, .5) * 100%); top: 12px; width: 2px; height: 12px; background: var(--ok); transform: translateX(-50%); border-radius: 2px; }
.mini-btn {
  border: 1px solid var(--line2); background: rgba(255, 255, 255, .04); border-radius: 7px; padding: 5px 9px; font-size: 11.5px; color: var(--text2); white-space: nowrap;
}
.mini-btn:hover { border-color: rgba(255, 138, 61, .5); color: var(--text); }
.mini-btn[aria-pressed="true"] { background: rgba(61, 220, 151, .12); border-color: rgba(61, 220, 151, .45); color: var(--ok); }
.sub-box { display: grid; gap: 12px; padding: 12px; border-radius: 11px; background: rgba(255, 255, 255, .025); border: 1px dashed var(--line2); }

/* Pusula */
.wind-row { display: grid; grid-template-columns: 132px 1fr; gap: 14px; align-items: center; }
.compass { width: 132px; height: 132px; touch-action: none; cursor: grab; border-radius: 50%; }
.compass:active { cursor: grabbing; }
.compass:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 50%; }
.compass .c-face { fill: rgba(0, 0, 0, .35); stroke: var(--line2); }
.compass .c-tick { stroke: rgba(255, 255, 255, .22); }
.compass .c-tick.major { stroke: rgba(255, 255, 255, .5); stroke-width: 1.6; }
.compass .c-lbl { paint-order: stroke; stroke: rgba(10,11,14,.9); stroke-width: 3px; fill: var(--muted); font: 600 10px var(--f-disp); text-anchor: middle; dominant-baseline: central; }
.compass .c-lbl.n { fill: var(--sig2); }
.compass .c-arrow { fill: var(--amber); }
.compass .c-shaft { stroke: var(--amber); stroke-width: 3; stroke-linecap: round; }
.compass .c-tail { fill: #fff; stroke: var(--sig); stroke-width: 2; }
.compass .c-plume { fill: url(#plumeGrad); }
.wind-info { display: grid; gap: 6px; font-size: 12px; color: var(--muted); }
.wind-info b { color: var(--text); font-weight: 600; }
.wind-info .big { font: 600 20px/1 var(--f-disp); color: var(--text); font-variant-numeric: tabular-nums; }

/* Saat ikonu */
.daynight { width: 16px; height: 16px; color: var(--amber); }

/* Google anahtar formu */
.key-form { display: grid; gap: 10px; padding: 12px; border-radius: 11px; background: rgba(90, 178, 255, .06); border: 1px solid rgba(90, 178, 255, .25); }
.key-form ol { margin: 0; padding-left: 18px; font-size: 12px; color: var(--text2); display: grid; gap: 3px; }
.key-form a { color: var(--info); }
.key-form .inp-row .btn { flex: none; }

/* Düğmeler */
.btn { text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 9px;
  border: 1px solid var(--line2); background: rgba(255, 255, 255, .05); color: var(--text); font-size: 13px; font-weight: 500; white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:hover:not(:disabled) { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .24); }
.btn:disabled { opacity: .42; cursor: default; }
.btn.primary { background: linear-gradient(180deg, #ff6a2e, #e94c12); border-color: #ff6a2e; color: #fff; box-shadow: 0 4px 16px rgba(255, 91, 31, .28); }
.btn.primary:hover:not(:disabled) { background: linear-gradient(180deg, #ff7c45, #f2561b); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.btn.danger:hover:not(:disabled) { border-color: rgba(255, 58, 69, .55); background: rgba(255, 58, 69, .12); color: #ffd1d4; }

/* Panel alt kısmı: eylemler + PATLAT */
.p-foot {
  flex: none; border-top: 1px solid var(--line); padding: 10px 14px 14px;
  background: linear-gradient(180deg, rgba(20, 23, 28, .6), rgba(10, 11, 14, .95));
}
.actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 12px; }
.act {
  display: grid; justify-items: center; gap: 4px; padding: 7px 2px 6px; border-radius: 9px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03); color: var(--text2); font-size: 10.5px; font-weight: 500; line-height: 1.15; text-align: center;
}
.act svg { width: 17px; height: 17px; }
.act:hover:not(:disabled) { background: rgba(255, 255, 255, .08); color: var(--text); border-color: var(--line2); }
.act:disabled { opacity: .38; cursor: default; }
.fire-row { display: flex; align-items: center; gap: 14px; }
.fire-info { flex: 1; min-width: 0; display: grid; gap: 3px; }
.fire-info .tgt { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; gap: 6px; align-items: center; }
.fire-info .tgt svg { width: 14px; height: 14px; flex: none; color: var(--sig2); }
.fire-info .tgt.none { color: var(--muted); font-weight: 500; }
.fire-info .cfg { color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fire-info .kb { color: var(--dim); font-size: 11px; }

.fire {
  --sz: 104px;
  position: relative; flex: none; width: var(--sz); height: var(--sz); border-radius: 50%; border: 0; padding: 0;
  background: transparent; color: #fff; isolation: isolate;
}
.fire .f-ring {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    repeating-conic-gradient(from -8deg, #1b1d22 0 10deg, #ffb020 10deg 20deg);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(0, 0, 0, .6);
}
.fire .f-bezel {
  position: absolute; inset: 7px; border-radius: 50%;
  background: linear-gradient(160deg, #3a3f48, #121418 70%);
  box-shadow: inset 0 2px 1px rgba(255, 255, 255, .18), inset 0 -3px 6px rgba(0, 0, 0, .6), 0 0 0 1px rgba(0, 0, 0, .7);
}
.fire .f-cap {
  position: absolute; inset: 14px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 38% 30%, #ff9a6a 0%, #ff4a1a 32%, #c51d0b 70%, #7c0e05 100%);
  box-shadow:
    inset 0 -6px 10px rgba(80, 0, 0, .65), inset 0 5px 8px rgba(255, 220, 190, .45),
    0 6px 0 #5a0a03, 0 9px 14px rgba(0, 0, 0, .55), 0 0 26px rgba(255, 70, 20, .45);
  transform: translateY(-3px);
  transition: transform .08s ease, box-shadow .08s ease, filter .2s;
}
.fire .f-cap::before {
  content: ''; position: absolute; left: 18%; right: 18%; top: 8%; height: 34%; border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0)); filter: blur(.5px);
}
.fire .f-txt { position: relative; font: 700 15px/1 var(--f-disp); letter-spacing: .14em; text-shadow: 0 1px 0 rgba(0, 0, 0, .55), 0 0 8px rgba(255, 180, 120, .5); padding-left: .14em; }
.fire:hover:not([aria-disabled="true"]) .f-cap { filter: brightness(1.08); }
.fire:active:not([aria-disabled="true"]) .f-cap, .fire.pressed .f-cap {
  transform: translateY(2px);
  box-shadow: inset 0 -3px 8px rgba(80, 0, 0, .7), inset 0 4px 8px rgba(255, 220, 190, .35), 0 1px 0 #5a0a03, 0 3px 6px rgba(0, 0, 0, .5), 0 0 34px rgba(255, 70, 20, .6);
}
.fire:not([aria-disabled="true"])::after {
  content: ''; position: absolute; inset: -6px; border-radius: 50%; z-index: -1; border: 2px solid rgba(255, 91, 31, .5);
  animation: armed 2s ease-out infinite;
}
@keyframes armed { 0% { transform: scale(.94); opacity: .9; } 100% { transform: scale(1.18); opacity: 0; } }
.fire[aria-disabled="true"] { cursor: not-allowed; }
.fire[aria-disabled="true"] .f-cap { filter: grayscale(.85) brightness(.55); }
.fire[aria-disabled="true"] .f-ring { background: repeating-conic-gradient(from -8deg, #1b1d22 0 10deg, #4b4e55 10deg 20deg); }
.fire:focus-visible { outline: 3px solid var(--amber); outline-offset: 4px; border-radius: 50%; }

/* Mobil sayfa tutamacı (masaüstünde gizli) */
.sheet-handle { display: none; }

/* ───────────── Toast ───────────── */
#toasts {
  position: absolute; z-index: 90; top: 70px; left: calc(50% - var(--pw) / 2); transform: translateX(-50%);
  display: grid; gap: 8px; justify-items: center; pointer-events: none; width: max-content; max-width: min(460px, calc(100vw - 32px));
}
/* popover olarak üst katmanda: tarayıcı varsayılanlarını sıfırla */
#toasts[popover] { position: fixed; right: auto; bottom: auto; margin: 0; padding: 0; border: 0; background: transparent; overflow: visible; color: inherit; }
#toasts[popover]:popover-open { display: grid; }
#toasts[popover]:not(:popover-open) { display: none; }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 11px; font-size: 13px;
  background: rgba(24, 27, 33, .96); border: 1px solid var(--line2); box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  animation: toastIn .25s var(--ease);
}
.toast svg { width: 16px; height: 16px; flex: none; color: var(--ok); }
.toast.warn svg { color: var(--amber); }
.toast.error svg { color: var(--red); }
.toast.out { animation: toastOut .25s var(--ease) forwards; }
.toast-act {
  margin-left: 4px; padding: 5px 11px; border-radius: 8px; font: inherit; font-weight: 700; cursor: pointer;
  color: #ffd27a; background: rgba(255, 176, 32, .12); border: 1px solid rgba(255, 176, 32, .45);
}
.toast-act:hover { background: rgba(255, 176, 32, .22); }
.toast-act:focus-visible { outline: 2px solid #ffd27a; outline-offset: 2px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-6px); } }

/* ───────────── Modallar ───────────── */
dialog.modal {
  width: min(520px, calc(100vw - 24px)); max-height: min(86vh, 760px); padding: 0; border: 1px solid var(--line2); border-radius: 16px;
  background: var(--g1); color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, .7); overflow: hidden;
}
dialog.modal[open] { display: flex; flex-direction: column; animation: dlgIn .22s var(--ease); }
dialog.modal-wide { width: min(720px, calc(100vw - 24px)); }
dialog.modal::backdrop { background: rgba(4, 5, 7, .62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
@keyframes dlgIn { from { opacity: 0; transform: translateY(10px) scale(.985); } }
.m-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); flex: none; }
.m-head .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 91, 31, .12); color: var(--sig2); flex: none; }
.m-head .ico svg { width: 18px; height: 18px; }
.m-head h2 { flex: 1; margin: 0; font: 600 17px/1.2 var(--f-disp); letter-spacing: .03em; }
.m-head h2 small { display: block; font: 400 12px/1.3 var(--f-ui); color: var(--muted); letter-spacing: 0; margin-top: 2px; }
.m-body { padding: 16px 18px 18px; overflow: auto; display: grid; gap: 14px; align-content: start; }
.m-foot { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; flex: none; flex-wrap: wrap; }

.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bar { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.bar .flag { font-size: 20px; line-height: 1; text-align: center; }
.bar .flag.iso { font: 700 10.5px/1 var(--f-disp); letter-spacing: .06em; color: var(--text2); background: rgba(255, 255, 255, .07); border: 1px solid var(--line2); border-radius: 5px; padding: 5px 0; }
.bar .b-main { min-width: 0; }
.bar .b-name { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.bar .b-name span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar .b-track { height: 7px; border-radius: 5px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.bar .b-fill { height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--sig), var(--amber)); }
.bar .b-n { font: 600 14px/1 var(--f-disp); font-variant-numeric: tabular-nums; min-width: 32px; text-align: right; }
.bar .rank { color: var(--dim); font-size: 11px; margin-right: 6px; font-variant-numeric: tabular-nums; }
.empty { text-align: center; color: var(--muted); padding: 26px 10px; display: grid; gap: 8px; justify-items: center; font-size: 13px; }
.empty svg { width: 36px; height: 36px; color: var(--dim); }

.share-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.share-opt {
  display: grid; gap: 8px; justify-items: start; text-align: left; padding: 14px; border-radius: 12px; border: 1px solid var(--line2);
  background: rgba(255, 255, 255, .03);
}
.share-opt:hover:not(:disabled) { border-color: rgba(255, 138, 61, .55); background: rgba(255, 91, 31, .07); }
.share-opt:disabled { opacity: .5; cursor: default; }
.share-opt svg { width: 22px; height: 22px; color: var(--sig2); }
.share-opt b { font-size: 14px; }
.share-opt small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.share-preview { border-radius: 10px; overflow: hidden; border: 1px solid var(--line2); background: #000; aspect-ratio: 1200 / 630; display: grid; place-items: center; }
.share-preview img, .share-preview canvas { width: 100%; height: 100%; display: block; object-fit: contain; }
.share-preview .loading-row { color: var(--muted); }

.about h3 { margin: 4px 0 6px; font: 600 13px/1.2 var(--f-disp); letter-spacing: .1em; text-transform: uppercase; color: var(--sig2); }
.about p, .about li { margin: 0 0 8px; color: var(--text2); font-size: 13.5px; line-height: 1.55; }
.about ul { margin: 0; padding-left: 18px; }
.about a { color: var(--info); }
.about .disc {
  border-radius: 12px; padding: 14px 16px; background: rgba(255, 58, 69, .07); border: 1px solid rgba(255, 58, 69, .3);
  display: flex; gap: 12px;
}
.about .disc svg { flex: none; width: 22px; height: 22px; color: var(--red); margin-top: 2px; }
.about .disc p { margin: 0; color: #f3d6d8; }
.about .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }

/* ───────────── Mobil (≤ 820 px) ───────────── */
@media (max-width: 820px) {
  :root { --pw: 0px; --gap: 10px; --tl-h: 50px; --sheet-peek: 120px; }
  .fire-info .kb { display: none; }
  #globe { right: 0; bottom: 0; }
  #topbar { left: var(--gap); right: var(--gap); transform: none; width: auto; min-width: 0; top: calc(var(--gap) + env(safe-area-inset-top)); }
  .search { height: 42px; }
  .city-pick { height: 42px; }
  .city-pick select { max-width: 104px; padding-left: 10px; padding-right: 26px; font-size: 13px; }
  .city-pick svg { right: 8px; }
  #toasts { left: 50%; top: 64px; }

  #stats { top: 62px; left: var(--gap); width: min(280px, calc(100vw - 2 * var(--gap))); gap: 6px;
    max-height: calc(100% - var(--sheet-peek) - var(--tl-h) - 90px); }
  .card-h { padding: 8px 10px 7px; gap: 8px; }
  .card-h .ico { width: 22px; height: 22px; }
  .card-h .ttl b { font-size: 11.5px; }
  .card-h .ttl small { font-size: 11px; }
  .row-it { padding: 5px 6px; gap: 8px; }
  .row-it .lbl small { display: none; }
  .row-it .val small { display: none; }
  .cas .n { font-size: 18px; }
  .kv { display: none; }

  #hints { display: none; }
  #timeline { left: var(--gap); right: var(--gap); bottom: calc(var(--sheet-peek) + var(--gap)); padding: 0 10px 0 6px; gap: 2px; }
  .tl-btn { width: 34px; height: 34px; }
  .tl-btn.play { width: 38px; height: 38px; }
  .tl-btn.stop { display: none; }
  .tl-time { min-width: 0; font-size: 12px; }
  .tl-track { margin: 0 6px; }
  #globe .cesium-viewer-bottom { bottom: calc(var(--sheet-peek) + var(--tl-h) + 2 * var(--gap) + 4px) !important; }

  #panel {
    top: auto; left: 0; right: 0; bottom: 0; width: auto; height: min(84vh, calc(100% - 64px));
    border-left: 0; border-top: 1px solid var(--line2); border-radius: 18px 18px 0 0;
    transform: translateY(calc(100% - var(--sheet-peek)));
    transition: transform .32s var(--ease);
    box-shadow: 0 -12px 40px rgba(0, 0, 0, .5);
    padding-bottom: env(safe-area-inset-bottom);
  }
  #panel.open { transform: translateY(0); }
  #panel.dragging { transition: none; }
  .sheet-handle {
    display: flex; align-items: center; justify-content: center; gap: 8px; flex: none; height: 22px; border: 0; background: transparent; width: 100%;
    touch-action: none; cursor: grab; color: var(--muted); font-size: 11px;
  }
  .sheet-handle::before { content: ''; width: 42px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .28); }
  /* Mobil sıralama: tutamaç → PATLAT satırı → başlık → bölümler */
  .p-foot { order: -1; border-top: 0; border-bottom: 1px solid var(--line); padding: 2px 14px 10px; background: transparent; }
  .sheet-handle { order: -2; }
  .p-head { padding: 10px 14px; }
  .actions { margin: 10px 0 0; order: 2; }
  .p-foot { display: flex; flex-direction: column; }
  .fire { --sz: 88px; }
  .fire .f-txt { font-size: 13px; }
  .fire-row { order: 1; }
  .sec-h { padding: 12px 14px; }
  .sec-b { padding: 2px 14px 14px; }
  .wind-row { grid-template-columns: 120px 1fr; }
  .compass { width: 120px; height: 120px; }
  .share-opts { grid-template-columns: 1fr; }
  .about .grid2 { grid-template-columns: 1fr; }
  dialog.modal { max-height: 90vh; }
}


/* Orta genişlikte (821–1180 px) istatistik kartı ile aramanın çakışmasını önle */
@media (min-width: 821px) and (max-width: 1380px) {
  #topbar { left: calc(318px + 2 * var(--gap)); right: calc(var(--pw) + var(--gap)); transform: none; width: auto; min-width: 0; }
  .city-pick select { max-width: 120px; }
}

/* Hareket azaltma */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .fire:not([aria-disabled="true"])::after { display: none; }
}

input[type=search]::-webkit-search-cancel-button, input[type=search]::-webkit-search-decoration { -webkit-appearance: none; display: none; }
