:root {
  --bg: #f4f4f2;
  --card: #ffffff;
  --ink: #1c1d1f;
  --muted: #6b6f75;
  --line: #e1e2e4;
  --soft: #f0f0ee;
  --acc: #d4553a;
  --acc2: #f2b19d;
  --acc-ink: #ffffff;
  --ok: #2f7d4f;
  --warn: #b8741a;
  --bad: #b8402b;

  --fig: #2f3237;
  --fig-arm: #4b5057;
  --fig-far: #a4a9ae;
  --eq: #8a9097;
  --eq-pad: #c3c7cc;
  --eq-back: #ecedef;
  --ground: #cdd0d4;
  --fig-bg: #fafaf9;
  --map-sil: #ebebeb;
  --map-off: #d9d9d9;

  --radius: 14px;
  --nav-h: 64px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111214;
    --card: #1b1c1f;
    --ink: #ececec;
    --muted: #9a9ea4;
    --line: #2c2e32;
    --soft: #232528;
    --acc: #ff7a5c;
    --acc2: #8f4c40;
    --acc-ink: #1b1c1f;
    --ok: #5fc58a;
    --warn: #e0a548;
    --bad: #ff8a73;

    --fig: #e6e6e6;
    --fig-arm: #c4c6c9;
    --fig-far: #5f646a;
    --eq: #80868d;
    --eq-pad: #4a4f55;
    --eq-back: #25272a;
    --ground: #3a3d42;
    --fig-bg: #18191b;
    --map-sil: #2b2d31;
    --map-off: #3c3f44;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 12px);
}

a { color: inherit; }

.container { max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* ---------- Üst çubuk ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding-top: 8px; padding-bottom: 8px; gap: 12px; }
.topbar .sub { margin-top: 2px; }
.topbar h1 { font-size: 18px; margin: 0; letter-spacing: .2px; }
.topbar .sub { font-size: 13px; color: var(--muted); }

.offline-banner {
  display: none; background: var(--warn); color: #fff; font-size: 14px;
  text-align: center; padding: 6px 12px;
}
body.is-offline .offline-banner { display: block; }
.queue-banner {
  background: var(--soft); color: var(--ink); font-size: 13.5px;
  text-align: center; padding: 6px 12px; border-top: 1px solid var(--line);
}
.queue-banner[hidden] { display: none; }
.queue-banner a { color: var(--acc); font-weight: 600; }

/* ---------- Alt gezinme ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: var(--card); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar ul { display: flex; margin: 0 auto; padding: 0; list-style: none; max-width: 760px; }
.tabbar li { flex: 1; }
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  height: var(--nav-h); text-decoration: none; color: var(--muted); font-size: 11.5px; font-weight: 500;
}
.tabbar a svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a[aria-current="page"] { color: var(--acc); }

/* ---------- Genel bileşenler ---------- */
main.container { padding-top: 20px; }

h2 { font-size: 20px; margin: 18px 0 10px; }
h3 { font-size: 16px; margin: 16px 0 8px; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 12px;
}
.card h3:first-child, .card h2:first-child { margin-top: 0; }

a.card, a.stat { display: block; text-decoration: none; }
.shop-list { list-style: none; margin: 0; padding: 0; }
.exp-item .store { display: block; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.stat .label { font-size: 12.5px; color: var(--muted); }
.stat .value { font-size: 22px; font-weight: 650; margin-top: 2px; }
.stat .hint { font-size: 12.5px; color: var(--muted); }

ul.plain, ol.plain { margin: 0; padding-left: 20px; }
ul.plain li, ol.plain li { margin-bottom: 4px; }

.segmented {
  display: flex; background: var(--soft); border-radius: 12px; padding: 4px; gap: 4px; margin-bottom: 14px;
  overflow-x: auto; scrollbar-width: none;
}
.segmented a {
  flex: 1; text-align: center; padding: 8px 10px; border-radius: 9px; text-decoration: none;
  font-weight: 600; font-size: 14.5px; color: var(--muted); white-space: nowrap;
}
.segmented a[aria-current="page"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / .08); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-weight: 600; font-size: 15px;
  min-height: 44px; padding: 0 16px; border-radius: 11px; cursor: pointer;
  border: 1px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none;
}
.btn.primary { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.btn.danger { color: var(--bad); }
.btn.block { width: 100%; }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 14px; }
.btn[aria-pressed="true"] { border-color: var(--acc); color: var(--acc); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.spacer { flex: 1; }

/* ---------- Formlar ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 5px; }
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: 11px;
  padding: 11px 12px; min-height: 46px;
}
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--acc) 50%, transparent); border-color: var(--acc); }
.field-validation-error, .validation-summary-errors { color: var(--bad); font-size: 13.5px; }
.validation-summary-errors ul { margin: 0 0 10px; padding-left: 18px; }
.input-error { border-color: var(--bad) !important; }

.alert { border-radius: 11px; padding: 10px 12px; margin-bottom: 12px; font-size: 14.5px; }
.alert.ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.alert.err { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); }
.alert ul { margin: 6px 0 8px; padding-left: 18px; }

/* ---------- Antrenman ---------- */
.day-hero { display: grid; grid-template-columns: 132px 1fr; gap: 14px; align-items: center; }
.day-hero .map svg { width: 100%; height: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0; }
.chip { font-size: 12.5px; padding: 3px 9px; border-radius: 20px; background: var(--soft); }
.chip.p { background: var(--acc); color: var(--acc-ink); }
.chip.s { background: var(--acc2); color: var(--ink); }
@media (prefers-color-scheme: dark) { .chip.s { color: #fff; } }

.anim-controls { display: flex; gap: 8px; justify-content: flex-end; margin: 4px 0 10px; }

details.ex {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 10px; overflow: hidden;
}
details.ex > summary {
  list-style: none; cursor: pointer; padding: 13px 16px; display: flex; align-items: center; gap: 12px;
}
details.ex > summary::-webkit-details-marker { display: none; }
details.ex > summary .num {
  width: 28px; height: 28px; border-radius: 50%; background: var(--soft); flex-shrink: 0;
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
}
details.ex > summary .title { flex: 1; min-width: 0; }
details.ex > summary .name { font-weight: 650; line-height: 1.3; }
details.ex > summary .meta { font-size: 13px; color: var(--muted); }
details.ex > summary .sets { font-weight: 650; font-size: 14px; white-space: nowrap; }
details.ex > summary .chev { transition: transform .2s; color: var(--muted); }
details.ex[open] > summary .chev { transform: rotate(180deg); }
details.ex .body { padding: 0 16px 16px; }

.visuals { display: grid; grid-template-columns: 1.25fr 1fr; gap: 12px; align-items: start; }
.anim-box { background: var(--fig-bg); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.anim-box svg.fig { display: block; width: 100%; height: auto; }
.tempo { height: 3px; background: var(--line); }
.tempo-fill { height: 100%; background: var(--acc); transform-origin: left; transform: scaleX(0); }
.phase { font-size: 12.5px; color: var(--muted); padding: 6px 10px; min-height: 30px; }
.view-note { font-size: 12px; color: var(--muted); padding: 0 10px 6px; }
.map svg { width: 100%; height: auto; display: block; }
.map-caption { font-size: 12.5px; color: var(--muted); text-align: center; min-height: 18px; }

.feel { margin-top: 12px; padding: 8px 12px; background: var(--soft); border-left: 3px solid var(--acc); border-radius: 0 8px 8px 0; font-size: 14.5px; }
ul.err-list { list-style: none; padding: 0; margin: 0; }
ul.err-list li { position: relative; padding-left: 20px; margin-bottom: 4px; }
ul.err-list li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 2px; background: var(--bad); transform: rotate(45deg); }
ul.err-list li::after { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 2px; background: var(--bad); transform: rotate(-45deg); }

/* SVG figür sınıfları */
.f-body { fill: var(--fig); }
.f-arm { fill: var(--fig-arm); }
.f-far { fill: var(--fig-far); }
.m-pri { fill: var(--acc); }
.m-sec { fill: var(--acc2); }
.m-off { fill: var(--map-off); }
.eq { stroke: var(--eq); fill: none; }
.eq-f { fill: var(--eq); }
.eq-hub { fill: var(--fig-bg); }
.eq-ring { fill: none; stroke: var(--fig-bg); stroke-width: 1.2; }
.eq-pad { stroke: var(--eq-pad); fill: none; }
.eq-pad-f { fill: var(--eq-pad); }
.eq-back { fill: var(--eq-back); }
.eq-back-s { stroke: var(--eq-back); fill: none; }
.eq-cable { stroke: var(--eq); fill: none; }
.ground { stroke: var(--ground); stroke-width: 1.5; }
.f-arrow path { stroke: var(--acc); stroke-width: 1.6; opacity: .55; }
.f-arrow polygon { fill: var(--acc); opacity: .7; }
.map-sil { fill: var(--map-sil); }
.map-svg [data-muscle] { cursor: pointer; }
.map-label { font-size: 10px; fill: var(--muted); }

/* ---------- Beslenme ---------- */
details.meal { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
details.meal > summary { list-style: none; cursor: pointer; padding: 13px 16px; display: flex; justify-content: space-between; font-weight: 650; }
details.meal > summary::-webkit-details-marker { display: none; }
details.meal .body { padding: 0 16px 14px; }
table.macros { width: 100%; border-collapse: collapse; }
table.macros td { padding: 8px 0; border-bottom: 1px solid var(--line); }
table.macros tr:last-child td { border-bottom: 0; }
table.macros td:last-child { text-align: right; font-weight: 650; }

/* ---------- Alışveriş ---------- */
.shop-group { margin-bottom: 14px; }
.shop-summary { align-items: center; justify-content: space-between; flex-wrap: wrap; }
.shop-tools progress { width: 100%; height: 8px; margin: 12px 0; accent-color: var(--acc); }
.shop-filter { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.shop-item[hidden], .shop-group[hidden] { display: none; }
.photo-actions { flex-wrap: wrap; margin-top: 8px; }
.photo-actions .btn { flex: 1; }
.photo-preview { max-width: 100%; object-fit: contain; }
[data-photo-status].bad { color: var(--bad); }
.shop-group h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin: 0 0 6px 4px; }
.shop-list { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.shop-item { display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.shop-item:last-child { border-bottom: 0; }
.shop-item form.toggle { flex: 1; margin: 0; }
.shop-item form.toggle button {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left;
  background: none; border: 0; font: inherit; color: inherit; padding: 12px 14px; min-height: 50px; cursor: pointer;
}
.box {
  width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line); flex-shrink: 0;
  display: grid; place-items: center;
}
.box svg { width: 14px; height: 14px; stroke: var(--acc-ink); stroke-width: 3; fill: none; opacity: 0; }
.shop-item.checked .box { background: var(--acc); border-color: var(--acc); }
.shop-item.checked .box svg { opacity: 1; }
.shop-item.checked .label { text-decoration: line-through; color: var(--muted); }
.shop-item form.remove button { background: none; border: 0; color: var(--muted); padding: 12px 14px; cursor: pointer; font-size: 20px; line-height: 1; }

/* ---------- Harcamalar ---------- */
.month-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.month-nav .title { font-weight: 650; font-size: 17px; text-transform: capitalize; }
.total-card { display: flex; justify-content: space-between; align-items: baseline; }
.total-card .value { font-size: 26px; font-weight: 700; }
.exp-list { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.exp-item { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); text-decoration: none; }
.exp-item:last-child { border-bottom: 0; }
.exp-thumb { width: 48px; height: 48px; border-radius: 9px; object-fit: cover; background: var(--soft); flex-shrink: 0; display: grid; place-items: center; color: var(--muted); }
.exp-thumb svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.exp-item .info { flex: 1; min-width: 0; }
.exp-item .store { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.exp-item .date { font-size: 13px; color: var(--muted); }
.exp-item .amount { font-weight: 700; white-space: nowrap; }
.receipt-full { width: 100%; border-radius: 12px; border: 1px solid var(--line); display: block; }
.photo-preview { margin-top: 8px; max-height: 220px; border-radius: 10px; display: none; }
.photo-preview.show { display: block; }

.fab {
  position: fixed; right: 18px; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 16px); z-index: 25;
  width: 56px; height: 56px; border-radius: 50%; background: var(--acc); color: var(--acc-ink);
  display: grid; place-items: center; box-shadow: 0 6px 18px rgb(0 0 0 / .2); text-decoration: none;
}
.fab svg { width: 26px; height: 26px; stroke: currentColor; stroke-width: 2.4; fill: none; stroke-linecap: round; }

/* ---------- Takip ---------- */
.rec { border-left: 4px solid var(--muted); }
.rec.OnTrack { border-color: var(--ok); }
.rec.SlowGain, .rec.NotEnoughData { border-color: var(--warn); }
.rec.IncreaseCalories, .rec.TooFast, .rec.WaistTooFast { border-color: var(--bad); }
.rec .title { font-weight: 700; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .w-line { fill: none; stroke: var(--fig-far); stroke-width: 1.5; }
.chart .a-line { fill: none; stroke: var(--acc); stroke-width: 2.5; stroke-linejoin: round; }
.chart .t-line { stroke: var(--ok); stroke-width: 1; stroke-dasharray: 4 4; }
.chart .axis { font-size: 10px; fill: var(--muted); }
.legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); margin-top: 6px; flex-wrap: wrap; }
.legend span::before { content: ""; display: inline-block; width: 14px; height: 3px; margin-right: 6px; vertical-align: middle; background: var(--c); }
table.list { width: 100%; border-collapse: collapse; font-size: 15px; }
table.list th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 600; padding: 6px 4px; border-bottom: 1px solid var(--line); }
table.list td { padding: 9px 4px; border-bottom: 1px solid var(--line); }
table.list td.num, table.list th.num { text-align: right; }
table.list form { margin: 0; }
table.list .del { background: none; border: 0; color: var(--muted); font-size: 18px; cursor: pointer; padding: 4px 8px; }

/* ---------- Plan ---------- */
.plan-list { list-style: none; margin: 10px 0 0; padding: 0; }
.plan-day {
  display: grid; grid-template-columns: 74px 1fr auto; gap: 10px; align-items: center;
  padding: 9px 0; border-top: 1px solid var(--line);
}
.plan-day:first-child { border-top: 0; }
.plan-day .when { display: flex; flex-direction: column; line-height: 1.2; }
.plan-day .name { font-weight: 650; font-size: 14.5px; }
.plan-day .date { font-size: 12.5px; color: var(--muted); }
.plan-day .what { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; min-width: 0; }
.plan-day .what a { font-weight: 650; text-decoration: none; }
.plan-day .acts { display: flex; gap: 6px; }
.plan-day form { margin: 0; }
.plan-day.today .name { color: var(--acc); }
.plan-day.rest .what, .plan-day.skipped .what { opacity: .8; }
.tag { font-size: 12px; padding: 2px 8px; border-radius: 20px; background: var(--soft); color: var(--muted); }
.tag.ok { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.tag.bad { background: color-mix(in srgb, var(--bad) 16%, transparent); color: var(--bad); }
a.card.week-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; padding: 8px; color: inherit; }
.week-strip .wd, .protein-week .pd { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.week-strip .wd { padding: 6px 0 7px; border-radius: 10px; }
.week-strip .wd.today { background: var(--soft); }
.week-strip .n { text-transform: capitalize; }
.week-strip .w { font-size: 11px; line-height: 1.1; min-height: 1.1em; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.week-strip .planned .w, .week-strip .done .w { color: var(--ink); font-weight: 600; }
.week-strip .dot, .protein-week .dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line); }
.week-strip .planned .dot { border-color: var(--acc); }
.week-strip .done .dot { background: var(--ok); border-color: var(--ok); }
.week-strip .missed .dot { border-color: var(--bad); border-style: dashed; }
.week-strip .skipped .dot { background: var(--line); }
.week-strip .today .n { color: var(--acc); font-weight: 700; }

/* ---------- Set kaydı ---------- */
details.ex.logged > summary .num { background: var(--ok); color: #fff; }
.log-box { margin: 12px 0; border-radius: 12px; background: var(--soft); }
.log-box > summary {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px;
  cursor: pointer; list-style: none; user-select: none;
}
.log-box > summary::-webkit-details-marker { display: none; }
.log-box > summary .t { font-weight: 650; }
.log-box > summary [data-log-hint] { margin-left: auto; text-align: right; }
.log-box > summary .chev { flex: none; color: var(--muted); transition: transform .2s; }
.log-box[open] > summary .chev { transform: rotate(180deg); }
.log-box .log { padding: 0 12px 12px; }
.log-box .history { margin: 0; padding: 0 12px 12px; }
.advice { margin: 8px 0 0; font-size: 13.5px; padding: 7px 10px; border-radius: 10px; border-left: 3px solid var(--muted); background: var(--card); }
.advice.Increase { border-color: var(--ok); }
.advice.Decrease, .advice.Deload { border-color: var(--warn); }
.sets-grid { display: grid; grid-template-columns: 28px 1fr 1fr; gap: 6px 8px; align-items: center; margin: 10px 0; }
.sets-grid .set-no { font-weight: 700; color: var(--muted); text-align: center; }
.sets-grid input[type=number] { padding: 8px 10px; }
.log-status { margin-top: 6px; min-height: 1em; }
.log-status.ok { color: var(--ok); }
.log-status.bad { color: var(--bad); }
.history { margin: 0 0 12px; }
.history summary { cursor: pointer; color: var(--muted); }
.history ul { margin-top: 6px; }

/* ---------- Protein / bütçe ---------- */
.protein-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 12px; }
.protein-week .ok .dot { background: var(--ok); border-color: var(--ok); }
.protein-week .bad .dot { background: var(--bad); border-color: var(--bad); }
.stat .hint.warn { color: var(--warn); }
.stat .hint.bad { color: var(--bad); }
.total-card { flex-wrap: wrap; }
.budget { flex-basis: 100%; margin-top: 10px; }
.budget .bar { height: 8px; border-radius: 4px; background: var(--soft); overflow: hidden; margin-bottom: 4px; }
.budget .bar span { display: block; height: 100%; background: var(--ok); }
.budget.warn .bar span { background: var(--warn); }
.budget.bad .bar span { background: var(--bad); }

/* ---------- Gelişim ---------- */
details.more { margin-bottom: 12px; }
details.more summary { cursor: pointer; color: var(--muted); margin-bottom: 8px; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.compare figure { margin: 0; text-align: center; }
.compare img, .photo-cell img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; display: block; background: var(--soft); }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.photo-cell form { margin: 0; }
.photo-cell .del { background: none; border: 0; color: var(--muted); font-size: 18px; cursor: pointer; padding: 2px 6px; }

/* ---------- Giriş ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth .card { width: 100%; max-width: 380px; padding: 24px 22px; }
.auth h1 { margin: 0 0 4px; font-size: 24px; }
body.auth-page { padding-bottom: 0; }

@media (max-width: 520px) {
  .visuals { grid-template-columns: 1fr; }
  .visuals .map { max-width: 260px; margin: 0 auto; width: 100%; }
  .day-hero { grid-template-columns: 1fr; }
  .day-hero .map { max-width: 240px; margin: 0 auto; width: 100%; }
}

/* ---------- Uyarı penceresi ---------- */
.swal {
  border: 0; border-radius: 20px; padding: 26px 22px 20px;
  width: min(360px, calc(100vw - 32px)); max-height: calc(100dvh - 40px);
  background: var(--card); color: var(--ink); text-align: center;
  box-shadow: 0 24px 60px rgb(0 0 0 / .3); overflow: hidden;
  animation: swal-in .24s cubic-bezier(.2, .9, .3, 1.25);
}
.swal::backdrop { background: rgb(0 0 0 / .45); backdrop-filter: blur(2px); animation: swal-fade .2s ease-out; }
@keyframes swal-in { from { opacity: 0; transform: scale(.86); } }
@keyframes swal-fade { from { opacity: 0; } }

.swal-icon {
  width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%;
  display: grid; place-items: center; color: var(--acc);
  background: color-mix(in srgb, currentColor 13%, transparent);
}
.swal.success .swal-icon { color: var(--ok); }
.swal.error .swal-icon { color: var(--bad); }
.swal.warning .swal-icon { color: var(--warn); }
.swal-icon svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.swal-icon .draw { stroke-dasharray: 30; stroke-dashoffset: 30; animation: swal-draw .4s .12s ease-out forwards; }
@keyframes swal-draw { to { stroke-dashoffset: 0; } }

.swal-title { font-size: 18px; line-height: 1.35; margin: 0; font-weight: 650; }
.swal-text { margin: 8px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.swal-list { text-align: left; margin: 12px 0 0; padding-left: 20px; font-size: 14px; max-height: 40dvh; overflow: auto; }
.swal-list li + li { margin-top: 4px; }
.swal-actions { display: flex; gap: 10px; margin-top: 20px; }
.swal-actions .btn { flex: 1; }
.swal-actions .btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.swal-timer {
  position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
  background: var(--ok); transform-origin: left; animation: swal-timer linear forwards;
}
.swal.info .swal-timer { background: var(--acc); }
@keyframes swal-timer { from { transform: scaleX(1); } to { transform: scaleX(0); } }

.toast {
  position: fixed; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 50;
  transform: translateX(-50%); max-width: calc(100vw - 32px);
  background: var(--ink); color: var(--bg); font-size: 14px; padding: 10px 16px; border-radius: 999px;
  box-shadow: 0 8px 24px rgb(0 0 0 / .2); transition: opacity .3s, transform .3s;
  animation: toast-in .25s ease-out;
}
.toast.hide { opacity: 0; transform: translate(-50%, 8px); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } }

@media (prefers-reduced-motion: reduce) {
  details.ex > summary .chev, .log-box > summary .chev { transition: none; }
  .swal, .swal::backdrop, .toast { animation: none; }
  .swal-icon .draw { animation: none; stroke-dashoffset: 0; }
}
