/* ============================================================
   VOLT — koyu antrasit + elektrik lime
   Mobil öncelikli, tek vurgu rengi, ağır sayısal tipografi
   ============================================================ */

:root {
  /* zemin katmanları */
  --bg:        #0c0e12;
  --bg-2:      #12151b;
  --card:      #14181f;
  --card-2:    #191e27;
  --line:      #232935;
  --line-soft: #1b202a;

  /* metin */
  --tx:        #eef1f5;
  --tx-2:      #9aa4b4;
  --tx-3:      #626c7d;

  /* vurgu */
  --lime:      #c8f542;
  --lime-dim:  #8fae2e;
  --lime-ink:  #0c0e12;
  --danger:    #ff6b5e;

  /* uyarı tonu: deload kartı + "eksik" makro rozetleri.
     Kırmızı değil — bu bir hata değil, bir hatırlatma. */
  --warn:      #ffab5e;
  --warn-soft: rgba(255, 171, 94, .12);
  --warn-line: rgba(255, 171, 94, .38);

  /* tek istisna: su için soğuk vurgu (içme eylemi kalori/antrenmandan ayrışsın) */
  --water:      #7dd3fc;
  --water-dim:  #4c9dc4;
  --water-soft: rgba(125, 211, 252, .13);
  --water-line: rgba(125, 211, 252, .42);

  --r:   14px;   /* köşe yarıçapı */
  --r-s: 10px;
  --pad: 18px;   /* yatay sayfa boşluğu */
  --tabh: 62px;  /* sekme çubuğu yüksekliği */
  --app-w: 520px;    /* mobil kolon genişliği */
  --wide-w: 1180px;  /* masaüstü içerik genişliği */
  --chat-w: 720px;   /* sohbet kolonu */
  --snav-w: 250px;   /* sol yan menü */

  --ff: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--tx);
}

body {
  font-family: var(--ff);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" 1, "ss01" 1;
  overscroll-behavior-y: none;
  /* çok hafif ışık sızıntısı — düz siyahı kırar */
  background-image:
    radial-gradient(120% 60% at 82% -8%, rgba(200, 245, 66, .09), transparent 60%),
    radial-gradient(90% 50% at 0% 105%, rgba(200, 245, 66, .04), transparent 60%);
  background-attachment: fixed;
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

::selection { background: var(--lime); color: var(--lime-ink); }

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- yardımcılar ---------- */
.mono-num { font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.muted { color: var(--tx-2); }
.tiny { font-size: 12px; }
.up { text-transform: uppercase; letter-spacing: .14em; font-size: 11px; color: var(--tx-3); font-weight: 500; }
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stack { display: grid; gap: 12px; }
.grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.clip-tr { clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%); }
.clip-bl { clip-path: polygon(0 0, 100% 0, 100% 100%, 16px 100%, 0 calc(100% - 16px)); }
.rule { height: 1px; background: var(--line-soft); border: 0; margin: 4px 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ============================================================
   GİRİŞ / KAYIT
   ============================================================ */
.auth {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 32px var(--pad) calc(32px + env(safe-area-inset-bottom));
}
.auth-inner { width: 100%; max-width: 400px; }

.brand { display: flex; align-items: center; gap: 9px; margin-bottom: 34px; }
.brand-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: var(--lime); color: var(--lime-ink);
  font-size: 17px;
  clip-path: polygon(0 0, 100% 0, 100% 74%, 74% 100%, 0 100%);
}
.brand-name { font-weight: 700; letter-spacing: .22em; font-size: 14px; }

.auth-title { font-size: clamp(30px, 9vw, 40px); line-height: 1.05; font-weight: 700; }
.auth-title em { font-style: normal; color: var(--lime); }
.auth-sub { color: var(--tx-2); margin-top: 12px; font-size: 14px; }

.seg {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4px; padding: 4px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r);
  margin: 28px 0 18px;
}
.seg-btn {
  min-height: 44px; border: 0; border-radius: var(--r-s);
  background: transparent; color: var(--tx-2);
  font-weight: 600; font-size: 14px; cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.seg-btn.is-active { background: var(--lime); color: var(--lime-ink); }

.field { display: block; margin-bottom: 14px; }
.field-label { display: block; margin-bottom: 7px; font-size: 12px; color: var(--tx-2); font-weight: 500; }
.field input, .field select, .field textarea, .input {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  color: var(--tx);
  font-size: 16px; /* iOS zoom engeli */
  transition: border-color .16s var(--ease);
}
.field input::placeholder, .input::placeholder { color: var(--tx-3); }
.field input:focus, .input:focus { border-color: var(--lime); outline: none; }
textarea.input { min-height: 80px; resize: vertical; }

.form-error {
  margin: 6px 0 12px;
  color: var(--danger);
  font-size: 13px;
  border-left: 2px solid var(--danger);
  padding-left: 10px;
}
.auth-foot { margin-top: 22px; text-align: center; color: var(--tx-3); font-size: 12px; }

/* ============================================================
   DÜĞMELER
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  background: var(--card-2); color: var(--tx);
  font-weight: 600; font-size: 14px;
  cursor: pointer;
  transition: transform .12s var(--ease), background .16s var(--ease), opacity .16s var(--ease);
}
.btn:active { transform: scale(.975); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-primary { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.btn-ghost { background: transparent; }
.btn-danger { background: transparent; color: var(--danger); border-color: #3a2529; }
.btn-block { width: 100%; }
.btn-sm { min-height: 38px; padding: 0 13px; font-size: 13px; }

.icon-btn {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: transparent; border: 0; border-radius: 50%;
  color: var(--tx-2); font-size: 15px; cursor: pointer;
}
.icon-btn:active { background: var(--card-2); }
.icon-btn.is-danger { color: var(--tx-3); }
.icon-btn.is-danger:active { color: var(--danger); }

/* ============================================================
   UYGULAMA KABUĞU
   ============================================================ */
.app { min-height: 100dvh; }

.view {
  max-width: var(--app-w);
  margin: 0 auto;
  padding: calc(20px + env(safe-area-inset-top)) var(--pad)
           calc(var(--tabh) + 28px + env(safe-area-inset-bottom));
  outline: none;
}

.page-head { margin-bottom: 22px; }
.page-title { font-size: 27px; font-weight: 700; letter-spacing: -.03em; }
.page-sub { margin-top: 6px; }

/* Antrenman: başlık + birincil başlatma + ikincil eylemler + görünüm seçici
   tek blokta toplanır (dağınık düğmeler yerine tek ritim) */
.ant-head { margin-bottom: 16px; }
.ant-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 14px; }
.ant-actions .btn { flex: 1 1 150px; min-height: 44px; }
.ant-head .subseg { margin-bottom: 0; }

/* --- alt sekme çubuğu --- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 40;
  display: grid; grid-template-columns: repeat(6, 1fr);
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(12, 14, 18, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line-soft);
}
/* 6 öğe: yazı küçülür ama dokunma hedefi 62px yüksekliğinde kalır (≥44px) */
.tab {
  min-height: var(--tabh);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px;
  padding: 0 2px;
  min-width: 0;
  color: var(--tx-3);
  font-size: 9.5px; font-weight: 500; letter-spacing: 0;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.tab-ico { font-size: 14px; line-height: 1; }
.tab-tx {
  max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tab.is-active { color: var(--lime); }
.tab.is-active::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 22px; height: 2px; background: var(--lime);
}
/* çok dar telefonlarda "Antrenman" da sığsın */
@media (max-width: 349px) {
  .tab { font-size: 8.5px; gap: 2px; }
  .tab-ico { font-size: 13px; }
}

/* --- sol sabit yan menü (yalnız ≥900px) --- */
.snav { display: none; }
.snav-brand {
  display: flex; align-items: center; gap: 9px;
  padding: 4px 6px 26px;
}
.snav-list { display: grid; gap: 4px; }
.snav-link {
  display: flex; align-items: center; gap: 12px;
  min-height: 46px; padding: 0 14px;
  border-radius: var(--r-s);
  color: var(--tx-2);
  font-size: 14.5px; font-weight: 500;
  position: relative;
  transition: background .16s var(--ease), color .16s var(--ease);
}
.snav-link:hover { background: var(--card); color: var(--tx); }
.snav-link .tab-ico { font-size: 14px; width: 18px; text-align: center; }
.snav-link.is-active {
  background: var(--card-2); color: var(--lime);
  clip-path: polygon(0 0, 100% 0, 100% 74%, calc(100% - 12px) 100%, 0 100%);
}
.snav-link.is-active::before {
  content: ""; position: absolute; left: 0; top: 10px; bottom: 10px;
  width: 2px; background: var(--lime);
}
.snav-foot { margin-top: auto; display: grid; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.snav-user { display: flex; align-items: center; gap: 10px; min-width: 0; }
.snav-ava {
  width: 34px; height: 34px; flex: 0 0 34px;
  display: grid; place-items: center;
  background: var(--lime); color: var(--lime-ink);
  font-weight: 700; font-size: 15px;
  clip-path: polygon(0 0, 100% 0, 100% 74%, 74% 100%, 0 100%);
}
.snav-name { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============================================================
   KARTLAR
   ============================================================ */
.card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  padding: 16px;
}
.card-flat { background: transparent; border-color: var(--line-soft); }
.card-lime { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.card-lime .up, .card-lime .muted { color: rgba(12, 14, 18, .6); }

/* ============================================================
   BUGÜN
   ============================================================ */
.hero-date { color: var(--tx-3); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.hero-hi { font-size: clamp(26px, 7.5vw, 34px); font-weight: 700; line-height: 1.1; margin-top: 6px; overflow-wrap: anywhere; }
.hero-hi em { font-style: normal; color: var(--lime); }

/* asimetrik ızgara: büyük kalori kartı + iki dar kart */
.grid-today {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 10px;
  margin-top: 20px;
}
.grid-today .span-2 { grid-column: 1 / -1; }
/* büyük kalori kartı mobilde iki satır yüksekliğinde durur */
.g-hero { grid-row: span 2; }

.metric-val {
  font-weight: 700;
  line-height: .88;
  letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
  font-size: clamp(40px, 15vw, 62px);
  margin: 10px 0 2px;
}
.metric-val.sm { font-size: clamp(28px, 9vw, 38px); }
.metric-unit { font-size: .34em; font-weight: 600; letter-spacing: 0; color: var(--tx-3); margin-left: 4px; }
.card-lime .metric-unit { color: rgba(12, 14, 18, .55); }
.metric-cap { font-size: 12px; color: var(--tx-2); }

.streak-card { display: flex; align-items: center; gap: 14px; }
.streak-flame { font-size: 30px; line-height: 1; }
.streak-num { font-size: 22px; font-weight: 700; letter-spacing: -.03em; }
.streak-cell { text-align: right; }

/* makro barlar */
.bars { display: grid; gap: 11px; margin-top: 14px; }
.bar-row { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 10px; }
.bar-name { font-size: 12px; color: var(--tx-2); }
.bar-track { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--lime); border-radius: 99px; transition: width .5s var(--ease); }
.bar-fill.dim { background: var(--lime-dim); }
.bar-fill.soft { background: #4d5768; }
.bar-val { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--tx); min-width: 46px; text-align: right; }

/* makro yeterlilik rozeti — çubuğun altında ikinci satırda yaşar */
.bar-row.has-badge { row-gap: 4px; }
.bar-badge { grid-column: 2 / -1; justify-self: start; }
.mbadge {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
}
.mbadge.is-ok { background: rgba(200, 245, 66, .13); color: var(--lime); }
.mbadge.is-low { background: var(--warn-soft); color: var(--warn); }

/* --- ortak kompakt eylem şeridi (Bugün + Beslenme) ---
   4'lü ızgara, ikon + kısa etiket. Dokunma hedefi 60px — 44px sınırının üstünde. */
.act-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 14px;
}
.act-btn {
  min-height: 60px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px;
  padding: 8px 4px;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  color: var(--tx);
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .12s var(--ease), border-color .16s var(--ease), background .16s var(--ease);
}
.act-btn:hover { border-color: var(--lime-dim); }
.act-btn:active { transform: scale(.97); }
.act-btn[disabled] { opacity: .5; pointer-events: none; }
.act-btn.is-primary {
  background: var(--lime); color: var(--lime-ink); border-color: var(--lime);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}
/* 5 öğe: 6'lık ızgarada 3 + 2 olarak kırılır — etiketler kısalmadan sığar */
.act-strip.is-5 { grid-template-columns: repeat(6, 1fr); }
.act-strip.is-5 > .act-btn { grid-column: span 2; }
.act-strip.is-5 > .act-btn:nth-child(4),
.act-strip.is-5 > .act-btn:nth-child(5) { grid-column: span 3; }

/* 6 öğe: mobilde 3 + 3 — altıncı buton ("🎤 Anlat") etiketini kısaltmadan sığar */
.act-strip.is-6 { grid-template-columns: repeat(3, 1fr); }

@media (min-width: 480px) {
  .act-strip.is-5 { grid-template-columns: repeat(5, 1fr); }
  .act-strip.is-5 > .act-btn,
  .act-strip.is-5 > .act-btn:nth-child(4),
  .act-strip.is-5 > .act-btn:nth-child(5) { grid-column: auto; }
  .act-strip.is-6 { grid-template-columns: repeat(6, 1fr); }
}

.act-ico { font-size: 17px; line-height: 1; }
.act-tx {
  font-size: 11.5px; line-height: 1.1; letter-spacing: -.01em;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* --- ortak tek satırlık gezinme düğmesi (Haftalık Karne vb.) --- */
.row-btn {
  display: flex; align-items: center; gap: 12px;
  width: 100%; min-height: 56px;
  margin-top: 12px;
  padding: 11px 14px;
  text-align: left; cursor: pointer;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-s);
  color: inherit;
  transition: border-color .16s var(--ease), transform .12s var(--ease);
}
.row-btn:hover { border-color: var(--lime-dim); }
.row-btn:active { transform: scale(.99); }
.row-btn-ico { flex: 0 0 auto; font-size: 17px; line-height: 1; }
.row-btn-t { display: block; font-size: 14.5px; font-weight: 700; letter-spacing: -.02em; }
.row-btn-s { display: block; margin-top: 2px; font-size: 11.5px; color: var(--tx-3); line-height: 1.35; }
.row-btn-go { flex: 0 0 auto; color: var(--lime); font-size: 16px; font-weight: 700; }

/* --- Kreatin + Su: mobilde de yan yana, kompakt --- */
.duo {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; margin-top: 12px;
  align-items: start;
}
.duo > * { min-width: 0; }

/* --- iki kolonlu içerik bloğu (masaüstünde bölünür) --- */
.split { display: grid; gap: 0 22px; }
.split > * { min-width: 0; }

/* ============================================================
   SON 7 GÜN — saf CSS mini bar grafik
   ============================================================ */
.chart7 { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 6px; }
.c7-col { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.c7-kcal {
  font-size: 10px; font-variant-numeric: tabular-nums;
  color: var(--tx-3); letter-spacing: -.02em; line-height: 1;
  white-space: nowrap;
}
.c7-track {
  width: 100%; height: 96px;
  display: flex; align-items: flex-end;
  background: linear-gradient(var(--line-soft), var(--line-soft)) no-repeat center bottom / 100% 1px;
}
.c7-bar {
  width: 100%;
  min-height: 3px;
  background: #38414f;
  border-radius: 4px 4px 0 0;
  transition: height .5s var(--ease);
}
.c7-col.has-data .c7-bar { background: var(--lime-dim); }
.c7-col.is-today .c7-bar { background: var(--lime); }
.c7-col.is-today .c7-day { color: var(--lime); font-weight: 700; }
.c7-min { font-size: 11px; font-variant-numeric: tabular-nums; color: var(--tx-2); line-height: 1; }
.c7-day { font-size: 11px; color: var(--tx-3); letter-spacing: .04em; }
.chart-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
.chart-legend span { font-size: 11px; color: var(--tx-3); display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 9px; height: 9px; border-radius: 2px; background: var(--lime); display: inline-block; }
.chart-legend i.dim { background: #38414f; }

/* ============================================================
   ALT GÖRÜNÜM SEÇİCİ (Programım / Keşfet)
   ============================================================ */
.subseg {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  gap: 4px; padding: 4px;
  background: var(--card); border: 1px solid var(--line-soft);
  border-radius: var(--r);
  margin-bottom: 14px;
}
.subseg button {
  min-height: 44px; border: 0; border-radius: var(--r-s);
  background: transparent; color: var(--tx-2);
  font-weight: 600; font-size: 14px; cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.subseg button.is-active { background: var(--lime); color: var(--lime-ink); }

.toolbar { display: grid; gap: 10px; margin-bottom: 4px; }
.search-wrap { position: relative; }
.search-wrap .input { padding-left: 40px; }
.search-wrap::before {
  content: "⌕"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--tx-3); font-size: 18px; pointer-events: none;
}

/* ============================================================
   KEŞFET — görselli kart ızgarası
   ============================================================ */
.ex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.ex-tile {
  display: flex; flex-direction: column;
  text-align: left;
  padding: 0; overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  color: inherit; cursor: pointer;
  transition: border-color .16s var(--ease), transform .12s var(--ease);
}
.ex-tile:hover { border-color: var(--line); }
.ex-tile:active { transform: scale(.985); }
.ex-tile-img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  background: var(--bg-2);
}
.ex-tile-ph {
  width: 100%; aspect-ratio: 4 / 3;
  display: grid; place-items: center;
  background: var(--bg-2); color: var(--tx-3); font-size: 26px;
}
.ex-tile-body { padding: 11px 12px 13px; display: grid; gap: 7px; }
.ex-tile-name { font-size: 14px; font-weight: 600; line-height: 1.25; }
.ex-tile-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.load-more { margin-top: 16px; }
.disc-count { font-size: 12px; color: var(--tx-3); }

/* egzersiz detayı — panel içi görseller */
.sheet-imgs { display: grid; gap: 8px; grid-template-columns: 1fr; margin-bottom: 14px; }
.sheet-imgs.two { grid-template-columns: 1fr 1fr; }
.sheet-imgs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-s); background: var(--bg-2); }
.kv { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }

/* ============================================================
   CHIP'LER / FİLTRE
   ============================================================ */
.chips {
  display: flex; gap: 8px;
  overflow-x: auto;
  padding: 2px 0 10px;
  margin: 0 calc(var(--pad) * -1);
  padding-left: var(--pad); padding-right: var(--pad);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  min-height: 36px; padding: 0 14px;
  display: inline-flex; align-items: center;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--card);
  color: var(--tx-2);
  font-size: 13px; font-weight: 500;
  cursor: pointer; white-space: nowrap;
}
.chip.is-active { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.chip-tag {
  display: inline-flex; align-items: center;
  padding: 3px 9px;
  border-radius: 99px;
  background: rgba(200, 245, 66, .12);
  color: var(--lime);
  font-size: 11px; font-weight: 600;
  letter-spacing: .02em;
}
.chip-tag.neutral { background: var(--card-2); color: var(--tx-2); }

/* ============================================================
   EGZERSİZ KARTI
   ============================================================ */
.ex-list { display: grid; gap: 12px; margin-top: 14px; }
.ex {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  overflow: hidden;
}
.ex-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg-2); }
.ex-body { padding: 16px; }
.ex-name { font-size: 17px; font-weight: 600; }
.ex-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.ex-spec {
  display: flex; gap: 16px;
  margin-top: 13px; padding-top: 13px;
  border-top: 1px solid var(--line-soft);
}
.ex-spec div { min-width: 0; }
.ex-spec b { display: block; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.ex-spec span { font-size: 11px; color: var(--tx-3); }

details.how { margin-top: 13px; }
details.how > summary {
  list-style: none; cursor: pointer;
  min-height: 40px; display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; font-weight: 600; color: var(--lime);
}
details.how > summary::-webkit-details-marker { display: none; }
details.how > summary::after { content: "+"; font-size: 17px; color: var(--tx-3); }
details.how[open] > summary::after { content: "–"; }
.how ol { margin: 6px 0 0; padding-left: 18px; color: var(--tx-2); font-size: 13.5px; }
.how ol li { margin-bottom: 6px; }
.how-tip {
  margin-top: 10px; padding: 10px 12px;
  background: var(--bg-2); border-left: 2px solid var(--lime);
  border-radius: 0 var(--r-s) var(--r-s) 0;
  font-size: 13px; color: var(--tx-2);
}
.ex-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ex-actions .btn { flex: 1 1 40%; }

/* ============================================================
   LOG SATIRLARI (antrenman / öğün)
   ============================================================ */
.log-list { display: grid; gap: 8px; margin-top: 12px; }
.log {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 8px 12px 14px;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-s);
  min-width: 0;
}
.log-title { font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-sub { font-size: 12px; color: var(--tx-3); margin-top: 2px; }
/* mesafe rozeti — yalnızca distance_km dolu kayıtlarda (yürüyüş/koşu) */
.log-km {
  display: inline-block; margin-left: 6px;
  padding: 1px 7px 2px;
  background: var(--water-soft);
  border: 1px solid var(--water-line);
  border-radius: 99px;
  font-size: 11px; font-weight: 700; letter-spacing: -.01em;
  color: var(--water);
  vertical-align: 1px;
}
.log-num { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 15px; letter-spacing: -.02em; }
.log-num span { font-size: 10px; color: var(--tx-3); font-weight: 500; margin-left: 2px; }

.empty {
  padding: 26px 16px;
  text-align: center;
  color: var(--tx-3);
  font-size: 13px;
  border: 1px dashed var(--line);
  border-radius: var(--r);
}
/* boş durum tek ses tonunda: kısa başlık + motive edici alt satır */
.empty-t { color: var(--tx-2); font-weight: 600; font-size: 14px; }
.empty-s { margin-top: 5px; }

/* tüm sekmelerde aynı bölüm başlığı ölçeği */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px;
  margin: 24px 0 4px;
}
.section-head > h2 { min-width: 0; }

.skeleton {
  height: 76px; border-radius: var(--r);
  background: linear-gradient(90deg, var(--card) 25%, var(--card-2) 50%, var(--card) 75%);
  background-size: 300% 100%;
  animation: shimmer 1.3s linear infinite;
}
@keyframes shimmer { to { background-position: -300% 0; } }

/* ============================================================
   BESLENME — arama sonuçları
   ============================================================ */
.food-results { display: grid; gap: 6px; margin-top: 10px; max-height: 320px; overflow-y: auto; }
.food-row {
  display: flex; align-items: center; gap: 12px;
  width: 100%; text-align: left;
  min-height: 56px; padding: 10px 12px;
  background: var(--card); border: 1px solid var(--line-soft);
  border-radius: var(--r-s); cursor: pointer;
}
.food-row:active { border-color: var(--lime); }
.food-name { font-size: 14px; font-weight: 600; }
.food-portion { font-size: 11.5px; color: var(--tx-3); }
.food-kcal { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--lime); font-size: 14px; }

/* ============================================================
   AI KOÇ
   ============================================================ */
.chat-view {
  max-width: var(--app-w);
  margin: 0 auto;
  height: 100dvh;
  display: flex; flex-direction: column;
  padding: 0 var(--pad);
}
.chat-head {
  padding: calc(16px + env(safe-area-inset-top)) 0 12px;
  border-bottom: 1px solid var(--line-soft);
}
.chat-log {
  flex: 1; min-height: 0;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px 0;
  -webkit-overflow-scrolling: touch;
}
.msg {
  max-width: 84%;
  padding: 11px 14px;
  font-size: 14.5px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.msg-user {
  align-self: flex-end;
  background: var(--lime); color: var(--lime-ink);
  border-radius: var(--r) var(--r) 4px var(--r);
  font-weight: 500;
}
.msg-ai {
  align-self: flex-start;
  background: var(--card); border: 1px solid var(--line-soft);
  border-radius: var(--r) var(--r) var(--r) 4px;
}
.msg-err { border-color: #3a2529; color: #ffb3ac; }
.typing { display: inline-flex; gap: 4px; align-items: center; height: 12px; }
.typing i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--tx-3);
  animation: blink 1.2s infinite;
}
.typing i:nth-child(2) { animation-delay: .18s; }
.typing i:nth-child(3) { animation-delay: .36s; }
@keyframes blink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }

.chat-suggest { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
.chat-suggest::-webkit-scrollbar { display: none; }

.chat-form {
  display: flex; gap: 8px; align-items: flex-end;
  padding: 10px 0 calc(var(--tabh) + 14px + env(safe-area-inset-bottom));
  background: var(--bg);
}
.chat-form textarea {
  flex: 1;
  min-height: 46px; max-height: 120px;
  padding: 12px 14px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--r); color: var(--tx);
  font-size: 16px; resize: none;
}
.chat-form textarea:focus { border-color: var(--lime); outline: none; }
.chat-send {
  width: 46px; height: 46px; flex: 0 0 46px;
  display: grid; place-items: center;
  background: var(--lime); color: var(--lime-ink);
  border: 0; border-radius: var(--r);
  font-size: 17px; cursor: pointer;
}
.chat-send[disabled] { opacity: .45; }

/* ============================================================
   PROFİL
   ============================================================ */
.avatar {
  width: 68px; height: 68px;
  display: grid; place-items: center;
  background: var(--lime); color: var(--lime-ink);
  font-size: 27px; font-weight: 700;
  clip-path: polygon(0 0, 100% 0, 100% 76%, 76% 100%, 0 100%);
}
.profil-ad { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.surum { margin-top: 22px; text-align: center; }

/* --- katlanabilir bölümler (Profil) ---
   Sekmenin tamamı tek ekranda taranabilsin: her blok bir <details>. */
.acc-list { display: grid; gap: 8px; margin-top: 22px; }
.acc {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  overflow: hidden;
}
.acc[open] { border-color: var(--line); }
.acc-head {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 11px;
  min-height: 56px; padding: 12px 15px;
  -webkit-tap-highlight-color: transparent;
}
.acc-head::-webkit-details-marker { display: none; }
.acc-head:hover { background: var(--card-2); }
.acc-ico { flex: 0 0 auto; font-size: 16px; line-height: 1; }
.acc-t {
  flex: 1; min-width: 0;
  font-size: 14.5px; font-weight: 600; letter-spacing: -.01em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.acc-note {
  flex: 0 1 auto; min-width: 0;
  text-align: right; line-height: 1.2;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.acc-caret {
  flex: 0 0 auto;
  color: var(--tx-3); font-size: 13px; line-height: 1;
  transition: transform .18s var(--ease), color .18s var(--ease);
}
.acc[open] > .acc-head .acc-caret { transform: rotate(180deg); color: var(--lime); }
.acc-body { padding: 14px 15px 16px; border-top: 1px solid var(--line-soft); }
/* akordiyonun kendisi zaten bir kutu — birinci seviye kartlar düzleşir,
   iç içe çerçeve görüntüsü olmaz (kart içerikleri aynen kalır) */
.acc-body > .card,
.acc-body > div > .card {
  background: transparent;
  border-color: transparent;
  border-radius: 0;
  clip-path: none;
  padding: 0;
}
.acc-body > div > .card + .card { margin-top: 16px; }
/* dar telefonlarda başlık notu yer kaplamasın */
@media (max-width: 379px) { .acc-note { display: none; } }

/* ============================================================
   ALT PANEL (bottom sheet)
   ============================================================ */
.sheet { position: fixed; inset: 0; z-index: 90; }
.sheet-scrim { position: absolute; inset: 0; background: rgba(4, 5, 8, .68); animation: fade .2s var(--ease); }
.sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-width: var(--app-w); margin: 0 auto;
  max-height: 88dvh; overflow-y: auto;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  padding: 8px var(--pad) calc(24px + env(safe-area-inset-bottom));
  animation: rise .26s var(--ease);
}
.sheet-grab { width: 38px; height: 4px; border-radius: 99px; background: var(--line); margin: 4px auto 6px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.sheet-title { font-size: 18px; font-weight: 600; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }

@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(18px); opacity: 0; } }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  left: 50%; transform: translateX(-50%);
  bottom: calc(var(--tabh) + 20px + env(safe-area-inset-bottom));
  z-index: 120;
  max-width: calc(100vw - 40px);
  padding: 11px 16px;
  background: var(--lime); color: var(--lime-ink);
  border-radius: 99px;
  font-size: 13.5px; font-weight: 600;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .5);
  animation: rise .22s var(--ease);
}
.toast.is-err { background: var(--danger); color: #fff; }

/* ============================================================
   KREATİN KARTI (Bugün)
   ============================================================ */
.creat-card { display: grid; gap: 13px; }
.creat-head { align-items: center; }
.creat-head-r { gap: 8px; }

.creat-streak {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px 3px 8px;
  border-radius: 99px;
  background: rgba(200, 245, 66, .12);
  color: var(--lime);
  font-size: 12px; font-weight: 600;
}
.creat-streak b { font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.creat-streak.is-zero { background: var(--card-2); color: var(--tx-3); }

/* ---------- ortak "hap" düğme tabanı ----------
   "5 g ▾" (kreatin/su hedefi), "✎ Düzenle" (hedef kartı), "← Programlar".
   Üçü de aynı ölçüde, aynı davranışta. */
.gram-btn, .goal-inline-btn, .prog-back {
  display: inline-flex; align-items: center; gap: 4px;
  min-height: 32px; padding: 0 11px;
  background: var(--card-2); border: 1px solid var(--line);
  border-radius: 99px; color: var(--tx-2);
  font-size: 12px; font-weight: 600; cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.gram-btn:hover, .goal-inline-btn:hover, .prog-back:hover {
  color: var(--tx); border-color: var(--lime-dim);
}

/* tek dokunuş büyük toggle */
.creat-toggle {
  width: 100%; min-height: 62px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 0 18px;
  border: 1px solid var(--lime);
  background: var(--lime); color: var(--lime-ink);
  border-radius: var(--r-s);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  font-size: 16px; font-weight: 700; letter-spacing: -.01em;
  cursor: pointer;
  transition: transform .12s var(--ease), background .18s var(--ease), color .18s var(--ease);
}
.creat-toggle:active { transform: scale(.985); }
.creat-toggle[disabled] { opacity: .6; pointer-events: none; }
.creat-toggle .ct-sub { font-size: 12px; font-weight: 600; opacity: .62; }
/* alındı durumu: dolu ama sakin — geri almaya davet eder */
.creat-toggle.is-done {
  flex-direction: column; gap: 2px; padding: 12px 18px;
  background: rgba(200, 245, 66, .13);
  border-color: rgba(200, 245, 66, .45);
  color: var(--lime);
}
.creat-toggle.is-done .ct-sub { color: var(--tx-2); opacity: 1; }

/* son 7 günün nokta şeridi */
.cdots { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cdot-col { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cdot {
  width: 14px; height: 14px; border-radius: 50%;
  border: 1.5px solid var(--line);
  background: transparent;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.cdot.is-on { background: var(--lime); border-color: var(--lime); }
.cdot-col.is-today .cdot { box-shadow: 0 0 0 3px rgba(200, 245, 66, .16); }
.cdot-col.is-today .cdot-d { color: var(--lime); font-weight: 700; }
.cdot-d { font-size: 10.5px; color: var(--tx-3); letter-spacing: .03em; }

/* gram seçim listesi (alt panel içinde) */
.opt-list { display: grid; gap: 8px; }
.opt-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; min-height: 54px; padding: 10px 16px;
  background: var(--card); border: 1px solid var(--line-soft);
  border-radius: var(--r-s); color: inherit;
  font-size: 15px; font-weight: 600; cursor: pointer; text-align: left;
}
.opt-row:hover { border-color: var(--line); }
.opt-row.is-active { border-color: var(--lime); color: var(--lime); }
.opt-row .opt-note { font-size: 12px; font-weight: 500; color: var(--tx-3); }
.opt-row.is-active .opt-note { color: var(--lime-dim); }

/* ============================================================
   SU KARTI (Bugün) — uygulamanın tek soğuk vurgulu bileşeni
   ============================================================ */
.water-card { display: grid; gap: 14px; }
.water-head { align-items: center; }
.water-card .gram-btn { color: var(--water); border-color: rgba(125, 211, 252, .28); }
.water-card .gram-btn:hover { border-color: var(--water); }

.water-main { display: flex; align-items: flex-end; gap: 16px; }
.water-now { flex: 1; min-width: 0; }

.water-val {
  font-weight: 700; line-height: .88;
  letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
  font-size: clamp(34px, 11vw, 46px);
  color: var(--water);
  margin-bottom: 4px;
}
.water-unit {
  font-size: .34em; font-weight: 600; letter-spacing: 0;
  color: var(--water-dim); margin-left: 5px;
}
.water-cap { margin-bottom: 10px; }

.water-track {
  display: block; height: 6px;
  background: var(--line);
  border-radius: 99px; overflow: hidden;
}
.water-fill {
  display: block; height: 100%;
  background: var(--water-dim);
  border-radius: 99px;
  transition: width .45s var(--ease), background .2s var(--ease);
}
.water-fill.is-full { background: var(--water); }

/* ana eylem + geri alma: birlikte tek bir kontrol bloğu okunur */
.water-actions { display: flex; align-items: stretch; gap: 8px; flex: 0 0 auto; }
.water-add {
  min-height: 52px; padding: 0 18px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--water); color: var(--lime-ink);
  border: 1px solid var(--water);
  border-radius: var(--r-s);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  font-size: 15px; font-weight: 700; letter-spacing: -.01em;
  white-space: nowrap; cursor: pointer;
  font-variant-numeric: tabular-nums;
  transition: transform .12s var(--ease), opacity .16s var(--ease);
}
.water-add:active { transform: scale(.975); }
.water-undo {
  width: 52px; min-height: 52px; flex: 0 0 52px;
  display: grid; place-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  color: var(--tx-2);
  font-size: 22px; font-weight: 700; line-height: 1;
  cursor: pointer;
  transition: color .16s var(--ease), border-color .16s var(--ease), transform .12s var(--ease);
}
.water-undo:hover { color: var(--water); border-color: var(--water-line); }
.water-undo:active { transform: scale(.96); }
.water-add[disabled], .water-undo[disabled] { opacity: .4; pointer-events: none; }

/* bardak noktaları — her nokta 250 ml */
.wdots {
  display: grid;
  grid-template-columns: repeat(var(--wdot-n, 8), 1fr);
  gap: 6px;
}
.wdot {
  height: 12px; border-radius: 99px;
  border: 1.5px solid var(--line);
  background: transparent;
  transition: background .22s var(--ease), border-color .22s var(--ease);
}
.wdot.is-on { background: var(--water); border-color: var(--water); }
.wdot[data-last-dot] { box-shadow: 0 0 0 3px rgba(125, 211, 252, .16); }

/* su hedefi seçim listesi (alt panel) */
.opt-row.is-water.is-active { border-color: var(--water); color: var(--water); }
.opt-row.is-water.is-active .opt-note { color: var(--water-dim); }

/* başlık satırları dar kolonda sıkışmasın, satır atlasın */
.creat-head, .water-head { flex-wrap: wrap; row-gap: 6px; }

/* ------------------------------------------------------------
   Kreatin + Su, telefonda yan yana (.duo) — dikey yer kaplamasın:
   nokta şeritleri tek satıra iner, kontroller küçülür.
   ≥900px'te kartlar zaten geniş; oradaki iki kolonlu iç düzen korunur.
   ------------------------------------------------------------ */
@media (max-width: 899px) {
  .duo > .card { padding: 13px; gap: 10px; }
  .duo .up { font-size: 10px; letter-spacing: .1em; }

  /* kreatin */
  .duo .creat-head-r { gap: 6px; }
  .duo .creat-streak { padding: 2px 8px; font-size: 11px; }
  .duo .creat-toggle {
    min-height: 50px; padding: 8px 10px; font-size: 13px; line-height: 1.2;
    flex-direction: column; gap: 2px; text-align: center;
  }
  .duo .creat-toggle .ct-sub { font-size: 10.5px; }
  .duo .cdots { gap: 4px; }
  .duo .cdot-col { gap: 0; }
  .duo .cdot-d { display: none; }        /* nokta şeridi tek satır */
  .duo .cdot { width: 11px; height: 11px; }

  /* su */
  .duo .water-main { flex-direction: column; align-items: stretch; gap: 10px; }
  .duo .water-val { font-size: clamp(28px, 9vw, 36px); }
  .duo .water-cap { margin-bottom: 8px; }
  .duo .water-actions { width: 100%; }
  .duo .water-add { flex: 1; min-height: 46px; padding: 0 8px; font-size: 13.5px; }
  .duo .water-undo { width: 46px; flex: 0 0 46px; min-height: 46px; font-size: 20px; }
  .duo .wdots { gap: 4px; }
  .duo .wdot { height: 10px; }
}

/* çok dar telefonlarda iki kolon sıkışırsa alt alta düş */
@media (max-width: 339px) {
  .duo { grid-template-columns: 1fr; }
  .duo .cdot-d { display: block; }
}

/* ============================================================
   AI KOÇ — öğün önerisi kartları (yanıt balonunun altında)
   ============================================================ */
.meal-card {
  align-self: flex-start;
  max-width: 84%;
  display: grid; gap: 11px;
  padding: 14px 16px 15px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.meal-top { display: flex; align-items: flex-start; gap: 12px; }
.meal-name { font-size: 15.5px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; margin-top: 5px; }
.meal-kcal {
  flex: 0 0 auto; text-align: right;
  font-size: 30px; font-weight: 700; line-height: .95;
  letter-spacing: -.05em; color: var(--lime);
  font-variant-numeric: tabular-nums;
}
.meal-kcal span { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--tx-3); margin-top: 3px; }
.meal-macro {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  padding-top: 11px; border-top: 1px solid var(--line-soft);
  font-size: 11.5px; color: var(--tx-3); letter-spacing: .02em;
}
.meal-macro b { font-size: 13px; font-weight: 700; color: var(--tx); letter-spacing: -.02em; margin-left: 2px; }
.meal-dot { color: var(--line); }
/* eklendikten sonra buton kilitlenir — sakin, tamamlanmış durum */
.btn.meal-done {
  background: rgba(200, 245, 66, .12);
  border-color: rgba(200, 245, 66, .4);
  color: var(--lime);
  opacity: 1;
}

/* hızlı komut chip'leri (sohbet girişinin üstü) */
.chip-cmd { font-weight: 600; }
.chip-cmd:hover { border-color: var(--lime-dim); color: var(--tx); }

/* ============================================================
   KÜTLE REHBERİ (Antrenman → Programlar altı)
   ============================================================ */
.guide-list { display: grid; gap: 10px; margin-top: 14px; }
.guide-card {
  display: flex; align-items: flex-start; gap: 13px;
  width: 100%; text-align: left;
  padding: 16px;
  background: var(--card); border: 1px solid var(--line-soft);
  border-radius: var(--r);
  color: inherit; cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  transition: border-color .16s var(--ease), transform .12s var(--ease);
}
.guide-card:hover { border-color: var(--line); }
.guide-card:active { transform: scale(.99); }
.guide-emoji {
  width: 38px; height: 38px; flex: 0 0 38px;
  display: grid; place-items: center;
  background: var(--card-2);
  font-size: 19px;
  clip-path: polygon(0 0, 100% 0, 100% 74%, 74% 100%, 0 100%);
}
.guide-title { display: block; font-size: 15.5px; font-weight: 700; letter-spacing: -.02em; }
.guide-sum { display: block; margin-top: 4px; font-size: 12.5px; color: var(--tx-2); line-height: 1.45; }
.guide-meta { display: block; margin-top: 7px; font-size: 11px; color: var(--tx-3); letter-spacing: .06em; text-transform: uppercase; }
.guide-go { color: var(--lime); font-size: 15px; font-weight: 700; align-self: center; }

/* okuma paneli — uzun metin için ferah tipografi */
.guide-lede {
  font-size: 14px; line-height: 1.6; color: var(--tx-2);
  padding: 12px 14px; margin-bottom: 18px;
  background: var(--card);
  border-left: 2px solid var(--lime);
  border-radius: 0 var(--r-s) var(--r-s) 0;
}
.guide-read { max-width: 62ch; }
.guide-read h3 {
  font-size: 15px; font-weight: 700; letter-spacing: -.01em;
  color: var(--lime);
  margin: 22px 0 8px;
}
.guide-read h3:first-child { margin-top: 0; }
.guide-read p {
  font-size: 15px; line-height: 1.72; color: var(--tx-2);
  margin-bottom: 4px;
  overflow-wrap: anywhere;
}

/* ============================================================
   KİLO KARTI + SAF SVG ÇİZGİ GRAFİK (Profil)
   ============================================================ */
.weight-card { display: grid; gap: 16px; }
.w-head { align-items: flex-start; }
.w-now { font-size: clamp(34px, 11vw, 44px); font-weight: 700; line-height: .9; letter-spacing: -.05em; margin: 8px 0 4px; }
.w-now span { font-size: .34em; font-weight: 600; letter-spacing: 0; color: var(--tx-3); margin-left: 4px; }

/* değişim rozeti — kasıtlı olarak nötr renk (hedef kişiye göre değişir) */
.delta {
  display: inline-flex; flex-direction: column; align-items: flex-end; gap: 2px;
  padding: 7px 11px;
  background: var(--card-2); border: 1px solid var(--line);
  border-radius: var(--r-s);
}
.delta b { font-size: 14.5px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; color: var(--tx); }
.delta span { font-size: 10.5px; color: var(--tx-3); letter-spacing: .06em; text-transform: uppercase; }

.wchart { display: block; }
.wchart svg { width: 100%; height: auto; display: block; overflow: visible; }
.wchart .w-line { fill: none; stroke: var(--lime-dim); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.wchart .w-area { fill: rgba(200, 245, 66, .08); stroke: none; }
.wchart .w-grid { stroke: var(--line-soft); stroke-width: 1; }
.wchart .w-dot { fill: var(--lime); }
.wchart .w-dot-halo { fill: rgba(200, 245, 66, .18); }
.wchart-x { display: flex; justify-content: space-between; margin-top: 8px; }
.wchart-x span { font-size: 11px; color: var(--tx-3); }
.wchart-cap { font-size: 11px; color: var(--tx-3); }

.w-rows { display: grid; gap: 6px; }
.w-row {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 6px 8px 14px;
  background: var(--card-2); border: 1px solid var(--line-soft);
  border-radius: var(--r-s);
}
.w-row .w-date { font-size: 13px; color: var(--tx-2); }
.w-row .w-kg { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

/* ============================================================
   HAZIR PROGRAMLAR (Antrenman → Programlar)
   ============================================================ */
.prog-list { display: grid; gap: 12px; margin-top: 14px; }
.prog-card {
  display: grid; gap: 9px;
  width: 100%; text-align: left;
  padding: 16px;
  background: var(--card); border: 1px solid var(--line-soft);
  border-radius: var(--r);
  color: inherit; cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  transition: border-color .16s var(--ease), transform .12s var(--ease);
}
.prog-card:hover { border-color: var(--line); }
.prog-card:active { transform: scale(.99); }
.prog-name { font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.prog-desc { font-size: 13px; color: var(--tx-2); }
.prog-meta { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.prog-go { font-size: 12px; font-weight: 600; color: var(--lime); }

/* --- ✨ Program Sihirbazı: listenin en üstündeki davet kartı --- */
.wiz-card {
  display: flex; align-items: center; gap: 12px;
  width: 100%; margin-bottom: 16px;
  padding: 15px 15px 15px 16px;
  text-align: left; cursor: pointer;
  color: inherit;
  background:
    linear-gradient(135deg, rgba(200, 245, 66, .14), rgba(200, 245, 66, .04) 62%),
    var(--card);
  border: 1px solid rgba(200, 245, 66, .34);
  border-radius: var(--r);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  transition: border-color .16s var(--ease), transform .12s var(--ease);
}
.wiz-card:hover { border-color: var(--lime); }
.wiz-card.wiz-open:active { transform: scale(.99); }

/* seçim yapılmışsa kart bir kap olur: içindeki açma düğmesi + "yeniden seç" */
.wiz-card.is-done { display: block; padding: 0; cursor: default; }
.wiz-card.is-done .wiz-open {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 15px 15px 12px 16px;
  background: transparent; border: 0; color: inherit;
  text-align: left; cursor: pointer;
}
.wiz-card.is-done .wiz-open:active { transform: scale(.995); }

.wiz-ico { flex: 0 0 auto; font-size: 21px; line-height: 1; }
.wiz-kicker {
  display: block;
  text-transform: uppercase; letter-spacing: .14em;
  font-size: 10.5px; font-weight: 600; color: var(--lime-dim);
}
.wiz-title {
  display: block; margin-top: 3px;
  font-size: 16.5px; font-weight: 700; letter-spacing: -.025em;
}
.wiz-sub { display: block; margin-top: 3px; font-size: 12px; color: var(--tx-2); line-height: 1.4; }
.wiz-go { flex: 0 0 auto; color: var(--lime); font-size: 16px; font-weight: 700; }

.wiz-again {
  display: block; width: 100%;
  padding: 0 16px 13px;
  background: transparent; border: 0;
  color: var(--tx-3); font-size: 12px; font-weight: 500;
  text-align: left; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.wiz-again:hover { color: var(--lime); }

/* --- sihirbaz akışı (alt panel) --- */
.wiz-dots { display: flex; align-items: center; gap: 7px; margin-bottom: 16px; }
.wiz-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--line); transition: background .2s var(--ease), width .2s var(--ease);
}
.wiz-dot.is-done { background: var(--lime-dim); }
.wiz-dot.is-now { width: 20px; border-radius: 4px; background: var(--lime); }
.wiz-step { margin-left: auto; color: var(--tx-3); font-variant-numeric: tabular-nums; }

.wiz-q { font-size: 19px; font-weight: 700; letter-spacing: -.025em; line-height: 1.2; }

.wiz-why {
  margin-top: 14px; padding: 11px 12px 11px 13px;
  background: rgba(200, 245, 66, .09);
  border-left: 2px solid var(--lime);
  border-radius: 0 var(--r-s) var(--r-s) 0;
  font-size: 13px; line-height: 1.5; color: var(--tx-2);
}

.wiz-start { margin-top: 16px; padding: 14px; }
.wiz-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  border-top: 1px solid var(--line-soft);
}
.wiz-row:first-of-type { border-top: 0; }
.wiz-pct { color: var(--tx-3); font-variant-numeric: tabular-nums; }
.wiz-row b { font-size: 15px; color: var(--lime); letter-spacing: -.02em; }

/* geri düğmesi: ortak hap tabanı + biraz daha ferah dokunma alanı */
.prog-back { gap: 7px; min-height: 38px; padding: 0 13px 0 9px; background: transparent; font-size: 13px; }

.pdays { display: grid; gap: 10px; margin-top: 14px; }
.pday {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  overflow: hidden;
}
.pday > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 12px;
  min-height: 62px; padding: 12px 16px;
}
.pday > summary::-webkit-details-marker { display: none; }
.pday-idx {
  width: 30px; height: 30px; flex: 0 0 30px;
  display: grid; place-items: center;
  background: var(--card-2); color: var(--tx-2);
  font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}
.pday[open] .pday-idx { background: var(--lime); color: var(--lime-ink); }
.pday-title { font-size: 15px; font-weight: 600; }
.pday-sub { font-size: 11.5px; color: var(--tx-3); margin-top: 2px; }
.pday-caret { color: var(--tx-3); font-size: 17px; }
.pday[open] .pday-caret { color: var(--lime); }
.pday-body { padding: 0 16px 16px; border-top: 1px solid var(--line-soft); }

/* "Bugün ne çalışsam?" ya da sihirbaz bu güne yönlendirdiyse vurgulanır */
.pday.is-target { border-color: rgba(200, 245, 66, .4); }

.pex { display: grid; gap: 0; margin: 4px 0 14px; }
.pex-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
}
.pex-row:last-child { border-bottom: 0; }
.pex-name { font-size: 14px; font-weight: 500; }
.pex-spec {
  font-size: 13px; font-weight: 700; color: var(--lime);
  font-variant-numeric: tabular-nums; letter-spacing: -.02em; white-space: nowrap;
}
.pex-spec.dim { color: var(--tx-2); font-weight: 600; }

/* ============================================================
   HEDEF — seçici, ilerleme çubukları, karşılama kartı
   ============================================================ */

/* --- 3'lü hedef seçici (Profil kartı + Bugün karşılama kartı) --- */
.goal-pick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.goal-opt {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: 4px;
  min-height: 96px; padding: 13px 7px 12px;
  background: var(--card-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-s);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  color: var(--tx-2);
  text-align: center; cursor: pointer;
  transition: border-color .16s var(--ease), background .18s var(--ease),
              color .18s var(--ease), transform .12s var(--ease);
}
.goal-opt:hover { border-color: var(--line); color: var(--tx); }
.goal-opt:active { transform: scale(.98); }
.goal-opt.is-active {
  background: var(--lime); border-color: var(--lime); color: var(--lime-ink);
}
.goal-emoji { font-size: 22px; line-height: 1.1; }
.goal-label { font-size: 12.5px; font-weight: 700; letter-spacing: -.01em; color: var(--tx); line-height: 1.2; }
.goal-note { font-size: 10.5px; color: var(--tx-3); line-height: 1.2; }
.goal-opt.is-active .goal-label { color: var(--lime-ink); }
.goal-opt.is-active .goal-note { color: rgba(12, 14, 18, .6); }
/* karşılama kartındaki kompakt varyant */
.goal-pick.is-compact .goal-opt { min-height: 84px; padding: 11px 6px 10px; }
.goal-pick.is-compact .goal-emoji { font-size: 19px; }

/* --- Bugün: hedef ilerleme çubuğu --- */
.goal-wrap { display: grid; gap: 6px; margin-top: 13px; }
.goal-track {
  display: block; height: 6px;
  background: var(--line);
  border-radius: 99px; overflow: hidden;
}
.goal-fill {
  display: block; height: 100%;
  background: var(--lime);
  border-radius: 99px;
  transition: width .5s var(--ease), background .2s var(--ease);
}
/* hedef aşımı: kütle kazanımında lime kalır, diğer hedeflerde nötr gri */
.goal-fill.is-over-neutral { background: #5a6476; }
.goal-cap {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px;
  font-size: 11.5px; color: var(--tx-2);
}
.goal-cap b { font-size: 12.5px; font-weight: 700; color: var(--tx); letter-spacing: -.02em; }
.goal-flag { font-size: 10.5px; font-weight: 700; color: var(--lime); letter-spacing: .01em; }
.goal-flag.neutral { color: var(--tx-3); font-weight: 600; }

/* lime kartın içinde kontrast tersine döner */
.card-lime .goal-track { background: rgba(12, 14, 18, .16); }
.card-lime .goal-fill { background: var(--lime-ink); }
.card-lime .goal-fill.is-over-neutral { background: rgba(12, 14, 18, .42); }
.card-lime .goal-cap { color: rgba(12, 14, 18, .62); }
.card-lime .goal-cap b { color: var(--lime-ink); }
.card-lime .goal-flag { color: var(--lime-ink); }
.card-lime .goal-flag.neutral { color: rgba(12, 14, 18, .55); }

/* hedef yokken: çubuk yerine ince bağlantı */
.goal-link {
  justify-self: start;
  margin-top: 12px;
  display: inline-flex; align-items: center;
  min-height: 26px; padding: 0 0 2px;
  background: transparent; border: 0;
  border-bottom: 1px solid rgba(200, 245, 66, .38);
  color: var(--lime);
  font-size: 12px; font-weight: 600; cursor: pointer;
}
.goal-link:hover { border-bottom-color: var(--lime); }
.card-lime .goal-link { color: var(--lime-ink); border-bottom-color: rgba(12, 14, 18, .32); }
.card-lime .goal-link:hover { border-bottom-color: var(--lime-ink); }

/* --- Bugün: ilk kullanım karşılama kartı --- */
.goal-hint { position: relative; margin-top: 20px; padding: 16px; }
.goal-hint-x { position: absolute; top: 4px; right: 4px; }
.goal-hint > .up, .goal-hint-title { padding-right: 44px; }
.goal-hint-title {
  font-size: 20px; font-weight: 700; line-height: 1.15;
  letter-spacing: -.03em; margin: 7px 0 8px;
}
.goal-hint-title em { font-style: normal; color: var(--lime); }
/* karşılama kartı varken metrik ızgarası kartın altına yaslanır */
.goal-hint + .grid-today { margin-top: 12px; }

/* --- Profil: Hedefim kartı --- */
.goal-card { display: grid; gap: 14px; }
.goal-card .rule { margin: 0; }
.goal-card .field { margin-bottom: 0; }
.goal-card .form-grid { margin-top: 12px; }
.goal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.goal-msg { font-size: 12px; color: var(--tx-3); line-height: 1.45; }
.goal-msg b { color: var(--tx-2); font-weight: 700; }
.goal-msg.is-err { color: var(--danger); }
.goal-msg.is-err b { color: var(--danger); }
.goal-inline-btn { margin-left: 6px; background: transparent; color: var(--lime); }
.goal-inline-btn:hover { border-color: var(--lime); color: var(--lime); }

/* "Hedef belirle →" ile gelindiğinde kartı kısa süre vurgula */
#goal-card.is-focus > .card {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(200, 245, 66, .14);
}

/* aktivite seçicisi — yerel ok yerine tek çizgi lime karet */
.goal-card select.input {
  appearance: none; -webkit-appearance: none;
  padding-right: 38px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--tx-2) 50%),
    linear-gradient(135deg, var(--tx-2) 50%, transparent 50%);
  background-position: calc(100% - 19px) calc(50% + 1px), calc(100% - 13px) calc(50% + 1px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  cursor: pointer;
}
.goal-card select.input:focus { border-color: var(--lime); }
.goal-card select.input option { background: var(--bg-2); color: var(--tx); }

/* formun altındaki tek satırlık yöntem notu */
.goal-fine { margin-top: 11px; font-size: 11.5px; color: var(--tx-3); line-height: 1.45; }
/* basit formülde gösterilen "yağ oranını gir" ipucu */
.goal-tip { display: inline-block; margin-top: 5px; color: var(--lime-dim); font-weight: 600; }

/* --- "✦ Bana öner" döküm paneli (Katch-McArdle) --- */
.calc {
  display: grid; gap: 12px;
  padding: 14px 14px 15px;
  background: var(--card-2);
  border: 1px solid rgba(200, 245, 66, .22);
  border-radius: var(--r-s);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}
.calc-tag {
  font-size: 11px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--lime);
}

/* BMR → TDEE → hedef kcal akışı */
.calc-flow { display: flex; align-items: stretch; flex-wrap: wrap; gap: 8px; }
.calc-step {
  flex: 1 1 78px; min-width: 78px;
  display: grid; gap: 2px; align-content: center;
  padding: 9px 10px;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
}
.calc-step b { font-size: 17px; font-weight: 700; color: var(--tx); letter-spacing: -.03em; }
.calc-step span { font-size: 10.5px; color: var(--tx-3); letter-spacing: .04em; }
.calc-step.is-hi { background: var(--lime); border-color: var(--lime); }
.calc-step.is-hi b { color: var(--lime-ink); }
.calc-step.is-hi span { color: rgba(12, 14, 18, .62); }
.calc-arrow {
  flex: 0 0 auto; align-self: center;
  color: var(--tx-3); font-size: 13px;
}

/* P / Y / K gramları */
.calc-macros {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}
.calc-macro { display: grid; gap: 2px; }
.calc-macro b { font-size: 14.5px; font-weight: 700; color: var(--tx); letter-spacing: -.02em; }
.calc-macro span { font-size: 10.5px; color: var(--tx-3); }
.calc-note { font-size: 11px; color: var(--tx-3); line-height: 1.5; }

/* ============================================================
   SET SATIRLARI (kayıt formu — "Setleri tek tek gir")
   ============================================================ */
.wf-seg { grid-template-columns: 1fr 1fr; margin-bottom: 16px; }
.sheet-tools { display: flex; justify-content: flex-end; margin: -4px 0 10px; }
.sheet-actions { display: grid; gap: 10px; }

.setrows { display: grid; gap: 8px; }
.setrow {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 4px 6px 10px;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-s);
}
.setrow-no {
  flex: 0 0 22px;
  font-size: 12px; font-weight: 700; color: var(--tx-3);
  text-align: center;
}
.setrow-f { flex: 1; min-width: 0; margin: 0; display: block; }
.setrow-f .input { min-height: 42px; padding: 8px 10px; text-align: center; }
.setrow-x { color: var(--tx-3); font-size: 13px; }
.setrow-add { margin-top: 10px; }

/* ============================================================
   AKTİF ANTRENMAN — tam ekran odak modu
   ============================================================ */
.live {
  position: fixed; inset: 0; z-index: 60;
  overflow-y: auto;
  background: var(--bg);
  background-image:
    radial-gradient(120% 55% at 80% -10%, rgba(200, 245, 66, .13), transparent 62%),
    radial-gradient(90% 45% at 0% 108%, rgba(200, 245, 66, .05), transparent 60%);
  animation: fade .2s var(--ease);
}
/* dinlenme dolduğunda kısa görsel vurgu — sesin yerine geçer */
.live.is-flash { animation: liveflash 1.6s var(--ease); }
@keyframes liveflash {
  0%, 100% { box-shadow: inset 0 0 0 0 rgba(200, 245, 66, 0); }
  12%      { box-shadow: inset 0 0 0 4px var(--lime); }
  40%      { box-shadow: inset 0 0 0 2px rgba(200, 245, 66, .5); }
}

.live-wrap {
  max-width: var(--app-w);
  margin: 0 auto;
  padding: calc(14px + env(safe-area-inset-top)) var(--pad)
           calc(28px + env(safe-area-inset-bottom));
}

.live-head { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.live-head-mid { text-align: center; min-width: 0; }
.live-name {
  font-size: 15px; font-weight: 700; letter-spacing: -.02em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.live-clock {
  flex: 0 0 auto;
  font-size: 17px; font-weight: 700; color: var(--lime);
  min-width: 62px; text-align: right;
}

.live-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px; margin-bottom: 16px;
  padding: 12px 10px;
  background: var(--card); border: 1px solid var(--line-soft);
  border-radius: var(--r);
}
.live-stats div { text-align: center; min-width: 0; }
.live-stats b { display: block; font-size: 19px; font-weight: 700; letter-spacing: -.03em; }
.live-stats span { font-size: 10.5px; color: var(--tx-3); }

.live-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px 16px 16px;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}
.live-empty { text-align: center; }
.live-ex-head { display: flex; align-items: flex-start; gap: 10px; }
.live-ex-name {
  font-size: clamp(23px, 7vw, 30px);
  font-weight: 700; line-height: 1.08; letter-spacing: -.035em;
  margin-top: 6px;
}

.live-sets { display: grid; gap: 6px; margin: 16px 0 12px; }
.live-set {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 4px 7px 10px;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-s);
}
.live-set.is-done { border-color: rgba(200, 245, 66, .28); }
.live-set-no { flex: 0 0 20px; font-size: 12px; font-weight: 700; color: var(--tx-3); text-align: center; }
.live-set-tick { color: var(--lime); font-size: 13px; font-weight: 700; }
.live-set-val { font-size: 14.5px; font-weight: 600; }

.live-input {
  display: flex; align-items: center; gap: 8px;
  margin-top: 14px; padding: 8px 4px 8px 10px;
  background: var(--bg-2);
  border: 1px dashed var(--line);
  border-radius: var(--r-s);
}
.live-input .input { min-height: 48px; text-align: center; font-size: 17px; font-weight: 600; }

.live-done { min-height: 56px; margin-top: 14px; font-size: 15px; }
.live-rest-pick {
  display: block; width: 100%;
  margin-top: 10px; padding: 6px;
  background: transparent; border: 0;
  color: var(--tx-3); font-size: 12px; font-weight: 500;
  cursor: pointer;
}
.live-rest-pick:active { color: var(--lime); }

.live-hint {
  display: flex; align-items: center; gap: 10px;
  margin-top: 14px; padding: 10px 10px 10px 13px;
  background: rgba(200, 245, 66, .1);
  border-left: 2px solid var(--lime);
  border-radius: 0 var(--r-s) var(--r-s) 0;
  font-size: 12.5px; color: var(--tx-2);
}
/* --- program zekâsı: ağırlık öneri şeridi (set girişinin hemen üstü) --- */
.live-sug {
  display: flex; align-items: center; gap: 11px;
  width: 100%; margin-top: 14px;
  padding: 10px 12px 10px 13px;
  text-align: left; cursor: pointer;
  background: rgba(200, 245, 66, .09);
  border: 1px solid rgba(200, 245, 66, .3);
  border-radius: var(--r-s);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition: background .16s var(--ease), border-color .16s var(--ease), transform .12s var(--ease);
  animation: fade .22s var(--ease);
}
.live-sug:hover { background: rgba(200, 245, 66, .15); }
.live-sug:active { transform: scale(.985); }
.live-sug-ico { flex: 0 0 auto; font-size: 15px; line-height: 1; }
.live-sug-t {
  display: block;
  font-size: 14.5px; font-weight: 700; color: var(--lime); letter-spacing: -.02em;
}
.live-sug-s { display: block; margin-top: 2px; font-size: 11.5px; color: var(--tx-2); line-height: 1.35; }
.live-sug-go { flex: 0 0 auto; color: var(--lime-dim); font-size: 13px; font-weight: 700; }

/* takılma durumu uyarı tonuna geçer — bu bir hata değil, bir strateji */
.live-sug.is-stall {
  background: var(--warn-soft);
  border-color: var(--warn-line);
}
.live-sug.is-stall:hover { background: rgba(255, 171, 94, .18); }
.live-sug.is-stall .live-sug-t { color: var(--warn); }
.live-sug.is-stall .live-sug-go { color: var(--warn); }

.live-nav { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 14px; }
.live-foot { margin-top: 22px; }

/* --- süper set: rozet + seansın egzersiz listesi --- */
.live-card.is-super { border-color: rgba(200, 245, 66, .34); }

.sup-badge {
  display: inline-flex; flex-direction: column; gap: 1px;
  margin-bottom: 12px; padding: 6px 11px 7px;
  background: rgba(200, 245, 66, .12);
  border: 1px solid rgba(200, 245, 66, .34);
  border-radius: var(--r-s);
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%);
  max-width: 100%;
}
.sup-badge-t {
  font-size: 10.5px; font-weight: 700; letter-spacing: .14em;
  color: var(--lime);
}
.sup-badge-s {
  font-size: 11px; color: var(--tx-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.live-list { margin-top: 4px; }
.lx-row {
  position: relative;
  display: flex; align-items: center; gap: 6px;
  margin-top: 6px;
  padding-left: 10px;
}
.lx-main {
  display: flex; align-items: center; gap: 10px;
  flex: 1; min-width: 0;
  padding: 9px 12px;
  text-align: left; cursor: pointer;
  background: var(--card); border: 1px solid var(--line-soft);
  border-radius: var(--r-s);
  color: inherit;
  transition: border-color .16s var(--ease), transform .12s var(--ease);
}
.lx-main:active { transform: scale(.99); }
.lx-row.is-now .lx-main { border-color: var(--lime); background: var(--card-2); }
.lx-no {
  flex: 0 0 18px; text-align: center;
  font-size: 11.5px; font-weight: 700; color: var(--tx-3);
}
.lx-row.is-now .lx-no { color: var(--lime); }
.lx-name {
  font-size: 13.5px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lx-sets { flex: 0 0 auto; font-size: 11.5px; color: var(--tx-3); }

.lx-link {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  padding: 0; cursor: pointer;
  background: transparent;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-s);
  font-size: 13px; line-height: 1;
  filter: grayscale(1); opacity: .55;
  transition: opacity .16s var(--ease), border-color .16s var(--ease), filter .16s var(--ease);
}
.lx-link:hover { opacity: .9; border-color: var(--line); }
.lx-link.is-on {
  filter: none; opacity: 1;
  border-color: rgba(200, 245, 66, .45);
  background: rgba(200, 245, 66, .12);
}
.lx-link.is-off { border-color: transparent; background: transparent; pointer-events: none; }

/* bağlı çiftin sol köprüsü: iki satırı görsel olarak tek bloğa bağlar */
.lx-bridge {
  position: absolute; left: 0; width: 3px;
  background: var(--lime); border-radius: 2px;
  top: 50%; bottom: -6px; opacity: 0;
}
.lx-row.has-next > .lx-bridge { opacity: 1; }
.lx-row.has-prev > .lx-bridge { opacity: 1; top: -6px; bottom: 50%; }
/* hem üstten hem alttan bağlı satır olmaz (zincir yok) — yine de güvenli davran */
.lx-row.has-next.has-prev > .lx-bridge { top: -6px; bottom: -6px; }
.lx-row.has-next .lx-main,
.lx-row.has-prev .lx-main { border-color: rgba(200, 245, 66, .26); }

/* --- dinlenme geri sayımı --- */
.rest {
  position: fixed; inset: 0; z-index: 70;
  display: grid; place-items: center;
  padding: var(--pad);
  background: rgba(8, 10, 13, .88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fade .18s var(--ease);
}
.rest-panel { width: 100%; max-width: 340px; text-align: center; }
.rest-ring-wrap { position: relative; margin: 14px auto 12px; width: min(240px, 62vw); }
.rest-svg { width: 100%; height: auto; transform: rotate(-90deg); }
.rest-track { fill: none; stroke: var(--line); stroke-width: 8; }
.rest-prog {
  fill: none; stroke: var(--lime); stroke-width: 8; stroke-linecap: round;
  transition: stroke-dashoffset .96s linear;
}
.rest-num {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: clamp(48px, 16vw, 68px); font-weight: 700; letter-spacing: -.05em;
}
/* halkayı desteklemeyen dar ekranlar için ikinci okuma: düz bar */
.rest-track-bar {
  display: block; height: 6px; border-radius: 99px;
  background: var(--line); overflow: hidden;
}
.rest-bar { display: block; height: 100%; background: var(--lime); transition: width .96s linear; }
.rest-cap { margin-top: 12px; }
.rest-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }

/* --- bitiş özeti --- */
.live-summary { text-align: center; padding-top: calc(34px + env(safe-area-inset-top)); }
.live-done-mark {
  width: 62px; height: 62px; margin: 0 auto 18px;
  display: grid; place-items: center;
  background: var(--lime); color: var(--lime-ink);
  font-size: 30px; font-weight: 700;
  clip-path: polygon(0 0, 100% 0, 100% 74%, 74% 100%, 0 100%);
}
.live-done-title { font-size: clamp(26px, 8vw, 34px); line-height: 1.08; font-weight: 700; }
.live-done-title em { font-style: normal; color: var(--lime); }
.live-sum-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 22px 0 14px; text-align: left; }
.live-pr-box { text-align: left; display: grid; gap: 6px; }
.live-pr-row { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.live-share { text-align: left; margin-top: 14px; }
.live-share-tx {
  margin: 0; padding: 12px;
  background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: var(--r-s);
  font-family: var(--ff); font-size: 13px; line-height: 1.55; color: var(--tx-2);
  white-space: pre-wrap; word-break: break-word;
}
.live-share-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }

/* --- Antrenman sekmesindeki başlatma / devam şeridi --- */
.live-start {
  display: flex; align-items: center; gap: 13px;
  width: 100%; margin-top: 16px; padding: 16px;
  text-align: left; cursor: pointer;
  background: var(--lime); color: var(--lime-ink);
  border: 0; border-radius: var(--r);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  transition: transform .12s var(--ease);
}
.live-start:active { transform: scale(.985); }
.live-start.is-resume {
  background: var(--card); color: var(--tx);
  border: 1px solid var(--lime);
}
.live-start-ico {
  flex: 0 0 auto;
  width: 34px; height: 34px; display: grid; place-items: center;
  background: rgba(12, 14, 18, .12); border-radius: 50%;
  font-size: 14px;
}
.live-start.is-resume .live-start-ico { background: rgba(200, 245, 66, .14); color: var(--lime); }
.live-start-ico.is-live { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.live-start-t { display: block; font-size: 15.5px; font-weight: 700; letter-spacing: -.02em; }
.live-start-s { display: block; margin-top: 3px; font-size: 11.5px; opacity: .72; line-height: 1.35; }
.live-start-go { font-size: 17px; font-weight: 700; }

/* program gününün iki eylemi */
.pday-actions { display: grid; gap: 8px; }

/* ============================================================
   🏃 YÜRÜYÜŞ / KOŞU MODU
   Aynı #live kabuğu, kardiyo düzeni. Tek fark: ikincil vurgu
   su mavisi (--water) — kardiyo, kuvvet seansından ayrışsın.
   ============================================================ */

/* Antrenman başlığındaki ikincil giriş butonu */
.btn.btn-cardio {
  border-color: var(--water-line);
  color: var(--water);
}
.btn.btn-cardio:active { background: var(--water-soft); }

/* başlangıç panelindeki aktivite seçimi */
.opt-row.is-cardio.is-active { border-color: var(--water); color: var(--water); }
.opt-row.is-cardio.is-active .opt-note { color: var(--water-dim); }

/* "devam ediyor" şeridi kardiyo varyantı */
.live-start.is-resume.is-cardio { border-color: var(--water); }
.live-start.is-resume.is-cardio .live-start-ico {
  background: var(--water-soft); color: var(--water);
}

/* tam ekran kabuğun kardiyo teması — ışık sızıntısı da maviye döner */
.live.is-cardio {
  background-image:
    radial-gradient(120% 55% at 80% -10%, rgba(125, 211, 252, .13), transparent 62%),
    radial-gradient(90% 45% at 0% 108%, rgba(125, 211, 252, .05), transparent 60%);
}
.live.is-cardio .live-name { color: var(--water); }

.kd-wrap { text-align: left; }

/* kayıt durumu bayrağı (● KAYITTA / ❚❚ DURDU) */
.kd-flag {
  flex: 0 0 auto;
  font-size: 10.5px; font-weight: 700; letter-spacing: .12em;
  color: var(--tx-3);
}
.kd-flag.is-on { color: var(--water); animation: pulse 1.8s ease-in-out infinite; }

/* büyük kronometre bloğu */
.kd-clock-box {
  margin: 6px 0 14px;
  padding: 20px 16px 18px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--water-line);
  border-radius: var(--r);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}
.kd-clock {
  margin: 8px 0 6px;
  font-size: clamp(46px, 16vw, 68px);
  font-weight: 700; line-height: .92; letter-spacing: -.05em;
  color: var(--water);
}
.kd-gps { min-height: 18px; }

/* canlı metrik ızgarası */
.kd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kd-metric { padding: 14px; }
.kd-metric .metric-val { margin: 8px 0 2px; }
.kd-metric.is-key {
  border-color: var(--water-line);
  background: linear-gradient(180deg, var(--water-soft), transparent 70%), var(--card);
}
.kd-metric.is-key .metric-val { color: var(--water); }

.kd-actions { display: grid; gap: 10px; margin-top: 18px; }
.btn.kd-pause { border-color: var(--water-line); color: var(--water); }
.btn.kd-finish { background: var(--water); border-color: var(--water); color: var(--lime-ink); }

/* bitiş özeti */
.live-done-mark.is-cardio { background: var(--water); font-size: 28px; }
.kd-summary .live-done-title em { color: var(--water); }
.kd-summary .live-sum-grid { grid-template-columns: 1fr 1fr; }
.kd-summary .live-sum-grid .span-2 { grid-column: 1 / -1; }
.kd-summary .metric.kd-key { border-color: var(--water-line); }
.kd-summary .metric.kd-key .metric-val { color: var(--water); }
.kd-manual { text-align: left; margin-top: 4px; }
.kd-summary-actions { display: grid; gap: 10px; margin-top: 18px; }

@media (min-width: 900px) {
  .kd-grid { grid-template-columns: repeat(4, 1fr); }
  .kd-summary .live-sum-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   EGZERSİZ GEÇMİŞİ (panel) & REKORLAR (Profil)
   ============================================================ */
.hist-kpi {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 12px; text-align: center;
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r);
}
.hist-kpi b { display: block; font-size: 21px; font-weight: 700; letter-spacing: -.03em; color: var(--lime); }
.hist-kpi span { font-size: 10.5px; color: var(--tx-3); }

/* saf CSS mini hacim grafiği */
.hvchart {
  display: flex; align-items: flex-end; gap: 8px;
  height: 108px; padding: 8px 4px 0;
  background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: var(--r);
}
.hv-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; }
.hv-track { flex: 1; width: 100%; display: flex; align-items: flex-end; }
.hv-bar {
  width: 100%; border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--lime), var(--lime-dim));
  min-height: 3px;
}
.hv-col:last-child .hv-bar { box-shadow: 0 0 0 1px rgba(200, 245, 66, .35); }
.hv-day { font-size: 9.5px; color: var(--tx-3); white-space: nowrap; }

.hist-list { display: grid; gap: 8px; }
.hist-row {
  padding: 11px 13px;
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-s);
}
.hist-date { font-size: 13px; font-weight: 600; }
.hist-top { font-size: 14px; font-weight: 700; color: var(--lime); }
.hist-sets { margin-top: 6px; font-size: 12.5px; color: var(--tx-2); }
.hist-vol { margin-top: 4px; font-size: 11.5px; color: var(--tx-3); }

.pr-grid { display: grid; gap: 8px; margin-top: 14px; }
.pr-card {
  display: flex; align-items: center; gap: 12px;
  width: 100%; text-align: left; cursor: pointer;
  padding: 11px 13px;
  background: var(--card); border: 1px solid var(--line-soft);
  border-radius: var(--r-s); color: inherit;
  transition: border-color .16s var(--ease);
}
.pr-card:hover { border-color: var(--line); }
.pr-card.is-top { border-color: rgba(200, 245, 66, .35); background: var(--card-2); }
.pr-rank {
  flex: 0 0 26px; text-align: center;
  font-size: 13px; font-weight: 700; color: var(--tx-3);
}
.pr-card.is-top .pr-rank { font-size: 16px; }
.pr-name { display: block; font-size: 14.5px; font-weight: 600; }
.pr-meta { display: block; margin-top: 2px; font-size: 11px; color: var(--tx-3); }
.pr-nums { flex: 0 0 auto; text-align: right; }
.pr-nums b { display: block; font-size: 15px; font-weight: 700; color: var(--lime); letter-spacing: -.02em; }
.pr-nums span { display: block; font-size: 10.5px; color: var(--tx-3); }

/* rekor kutlaması — tek seferlik altın toast */
.toast.is-pr {
  background: linear-gradient(100deg, #ffd84d, var(--lime));
  color: var(--lime-ink);
  font-weight: 700;
  box-shadow: 0 10px 34px rgba(255, 216, 77, .28);
}

/* ============================================================
   MİNİ MARKDOWN (AI metinleri: sohbet balonu + haftalık karne)
   ============================================================ */
.md > *:first-child { margin-top: 0; }
.md > *:last-child { margin-bottom: 0; }
.md p { margin: 0 0 9px; }
.md b { font-weight: 700; color: var(--tx); }
.md i { font-style: italic; color: var(--tx-2); }
.md code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88em;
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(200, 245, 66, .1);
  color: var(--lime);
}
.md .md-list { margin: 0 0 10px; padding-left: 20px; }
.md .md-list li { margin-bottom: 5px; }
.md .md-list li::marker { color: var(--lime-dim); font-weight: 700; }
.msg-ai.md i { color: var(--tx-2); }
.msg-err.md b, .msg-err.md i { color: inherit; }

/* ============================================================
   ÖĞÜN ŞABLONLARI — "⭐ Şablonlarım" şeridi (Beslenme)
   ============================================================ */
/* Beslenme'de dört hızlı eylem: mobilde 2×2 ızgara (bkz. BARKOD bölümü) */

.tpl-strip { margin-top: 22px; }
.tpl-row {
  display: flex; gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.tpl-row::-webkit-scrollbar { display: none; }

.tpl-card {
  position: relative;
  flex: 0 0 auto;
  width: 158px;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-s);
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 0 100%);
  transition: border-color .16s var(--ease), transform .12s var(--ease), opacity .16s var(--ease);
}
.tpl-card:hover { border-color: var(--lime-dim); }
.tpl-card.is-busy { opacity: .55; }

.tpl-main {
  display: block; width: 100%; text-align: left;
  padding: 13px 30px 13px 14px;
  background: transparent; border: 0; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
}
.tpl-main:active { transform: scale(.985); }
.tpl-name {
  display: block;
  font-size: 13.5px; font-weight: 600; line-height: 1.25;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tpl-kcal {
  display: block; margin-top: 8px;
  font-size: 21px; font-weight: 700; color: var(--lime); letter-spacing: -.03em;
}
.tpl-kcal span { font-size: 10px; font-weight: 600; color: var(--tx-3); margin-left: 3px; letter-spacing: .1em; }
.tpl-meta { display: block; margin-top: 3px; font-size: 11px; color: var(--tx-3); }

.tpl-x {
  position: absolute; top: 4px; right: 4px;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  background: transparent; border: 0; border-radius: 50%;
  color: var(--tx-3); font-size: 11px; cursor: pointer;
}
.tpl-x:hover { color: var(--danger); background: var(--card-2); }

.tpl-new {
  clip-path: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  width: 118px; min-height: 104px;
  background: transparent;
  border-style: dashed; border-color: var(--line);
  color: var(--tx-2); cursor: pointer;
  padding: 12px 8px;
}
.tpl-new:hover { border-color: var(--lime); color: var(--lime); }
.tpl-new-ico { font-size: 20px; line-height: 1; color: var(--lime); }
.tpl-new-tx { font-size: 12px; font-weight: 600; text-align: center; line-height: 1.25; }

/* şablon oluşturma paneli */
.tpl-pick { display: grid; gap: 6px; max-height: 300px; overflow-y: auto; }
.tpl-pick-row {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-s);
  cursor: pointer;
}
.tpl-pick-row:has(input:checked) { border-color: var(--lime-dim); }
.tpl-pick-row input { width: 18px; height: 18px; flex: 0 0 18px; accent-color: var(--lime); }
.tpl-pick-name { display: block; font-size: 13.5px; font-weight: 600; }
.tpl-pick-macro { display: block; margin-top: 2px; font-size: 11px; color: var(--tx-3); }
.tpl-pick-kcal { flex: 0 0 auto; font-size: 14px; font-weight: 700; color: var(--lime); }

/* onay paneli */
.confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }

/* ============================================================
   PORSİYON ÇARPANI (öğün ekleme paneli)
   ============================================================ */
.mult-box {
  padding: 13px 14px 14px;
  margin-bottom: 16px;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-s);
}
.mult-live { font-size: 13.5px; font-weight: 700; color: var(--lime); letter-spacing: -.02em; }
.mult-live span { font-size: 10px; font-weight: 600; color: var(--tx-3); letter-spacing: .08em; }
.mult-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-top: 11px; }
.mult-btn {
  min-height: 40px;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  color: var(--tx-2);
  font-size: 14px; font-weight: 700; letter-spacing: -.02em;
  cursor: pointer;
  transition: background .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease);
}
.mult-btn:hover { border-color: var(--lime-dim); color: var(--tx); }
.mult-btn.is-active { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
.mult-free { margin: 12px 0 0; }
.mult-free .input { min-height: 42px; }

/* ============================================================
   FOTOĞRAFTAN ÖĞÜN
   ============================================================ */
.photo-note {
  padding: 11px 13px;
  margin-bottom: 12px;
  background: var(--bg-2);
  border-left: 2px solid var(--lime);
  border-radius: 0 var(--r-s) var(--r-s) 0;
  font-size: 13px; color: var(--tx-2); line-height: 1.5;
}
.photo-note p { margin: 0 0 6px; }
.photo-note p:last-child { margin-bottom: 0; }
.sheet-body .meal-card { max-width: none; margin-bottom: 10px; }

/* ============================================================
   HAFTALIK KARNE (Bugün) — grafiğin altında tek satır düğme
   ============================================================ */
.report-row .row-btn-ico { color: var(--lime); }
.report-read { font-size: 14px; line-height: 1.6; color: var(--tx-2); max-width: 62ch; }
.report-read b { color: var(--tx); }

/* ============================================================
   ROZETLER (Profil)
   ============================================================ */
.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 9px;
  margin-top: 14px;
}
.badge {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 14px 9px 12px;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-s);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  cursor: pointer; text-align: center;
  transition: border-color .16s var(--ease), transform .12s var(--ease);
}
.badge:active { transform: scale(.98); }
.badge:hover { border-color: var(--line); }
.badge-emoji { font-size: 26px; line-height: 1; filter: grayscale(1) opacity(.42); }
.badge-title {
  font-size: 12px; font-weight: 600; line-height: 1.25; color: var(--tx-3);
  overflow-wrap: anywhere;
}
.badge.is-earned { border-color: rgba(200, 245, 66, .38); background: var(--card-2); }
.badge.is-earned:hover { border-color: var(--lime); }
.badge.is-earned .badge-emoji { filter: none; }
.badge.is-earned .badge-title { color: var(--tx); }
.badge-flag { font-size: 10.5px; font-weight: 700; color: var(--lime); letter-spacing: .02em; }

.badge-prog { display: grid; gap: 4px; width: 100%; justify-items: center; }
.badge-track { width: 100%; height: 4px; background: var(--line); border-radius: 99px; overflow: hidden; }
.badge-fill { display: block; height: 100%; background: var(--lime-dim); border-radius: 99px; transition: width .5s var(--ease); }
.badge-num { font-size: 10.5px; color: var(--tx-3); font-weight: 600; }
.badge-prog.is-wide { gap: 7px; margin-top: 16px; }
.badge-prog.is-wide .badge-track { height: 7px; }
.badge-prog.is-wide .badge-num { font-size: 13px; color: var(--tx-2); }

.badge-sheet { text-align: center; padding: 6px 0 4px; }
.badge-sheet-emoji { display: block; font-size: 46px; line-height: 1; filter: grayscale(1) opacity(.45); }
.badge-sheet.is-earned .badge-sheet-emoji { filter: none; }
.badge-sheet-desc { margin-top: 12px; font-size: 14px; color: var(--tx-2); line-height: 1.55; }
.badge-sheet-flag {
  margin-top: 16px;
  font-size: 13px; font-weight: 700; color: var(--lime-ink);
  background: var(--lime); border-radius: 99px;
  padding: 9px 16px; display: inline-block;
}

/* ============================================================
   PUSH BİLDİRİMLERİ (Profil)
   ============================================================ */
.push-card { display: flex; align-items: center; gap: 13px; }
.push-ico {
  width: 40px; height: 40px; flex: 0 0 40px;
  display: grid; place-items: center;
  font-size: 18px;
  background: var(--card-2);
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}
.push-title { font-size: 15.5px; font-weight: 700; letter-spacing: -.02em; }
.push-note { margin-top: 3px; font-size: 12px; color: var(--tx-3); line-height: 1.45; }

.switch {
  flex: 0 0 auto;
  width: 52px; height: 30px;
  padding: 3px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 99px;
  cursor: pointer;
  transition: background .18s var(--ease), border-color .18s var(--ease);
}
.switch[disabled] { opacity: .5; pointer-events: none; }
.switch-knob {
  display: block;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--tx-3);
  transition: transform .18s var(--ease), background .18s var(--ease);
}
.switch.is-on { background: rgba(200, 245, 66, .22); border-color: var(--lime); }
.switch.is-on .switch-knob { transform: translateX(22px); background: var(--lime); }

/* ============================================================
   FFMI ÖLÇEĞİ (Analiz — Kas Kütlesi kartının içi)
   ============================================================ */
.ffmi-val {
  font-size: clamp(38px, 12vw, 50px);
  font-weight: 700; line-height: .9; letter-spacing: -.05em;
  margin: 8px 0 0;
}
.ffmi-class { align-self: flex-start; flex: 0 0 auto; }

/* yatay skala: 15–28, sınıf sınırları işaretli, kullanıcı lime nokta */
.ffmi-scale { display: grid; gap: 7px; }
.ffmi-track {
  position: relative;
  display: block; height: 8px;
  background: var(--line);
  border-radius: 99px;
}
.ffmi-fill {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--lime-dim), var(--lime));
  border-radius: 99px;
  transition: width .5s var(--ease);
}
.ffmi-tick { position: absolute; top: 0; transform: translateX(-50%); }
.ffmi-tick i {
  display: block; width: 1px; height: 8px;
  background: var(--bg);
  opacity: .85;
}
.ffmi-tick-tx {
  position: absolute; top: 11px; left: 50%;
  transform: translateX(-50%);
  font-size: 10px; color: var(--tx-3); font-weight: 600;
}
.ffmi-dot {
  position: absolute; top: 50%;
  width: 13px; height: 13px;
  margin: -6.5px 0 0 -6.5px;
  border-radius: 50%;
  background: var(--lime);
  border: 2px solid var(--card);
  box-shadow: 0 0 0 4px rgba(200, 245, 66, .18);
  transition: left .5s var(--ease);
}
.ffmi-ends {
  display: flex; justify-content: space-between;
  margin-top: 16px;   /* işaret etiketleri track'in altına taşıyor — payı bırak */
  font-size: 10px; color: var(--tx-3); font-weight: 600;
}

.ffmi-facts {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.ffmi-fact { display: grid; gap: 2px; }
.ffmi-fact b { font-size: 16px; font-weight: 700; color: var(--tx); letter-spacing: -.03em; }
.ffmi-fact span { font-size: 10.5px; color: var(--tx-3); letter-spacing: .03em; }

/* eksik alan durumu — ceza değil, davet */
.ffmi-invite {
  font-size: 19px; font-weight: 700; line-height: 1.2;
  letter-spacing: -.03em; margin-top: 8px;
}
.ffmi-invite em { font-style: normal; color: var(--lime); }
.ffmi-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 2px; }

/* ============================================================
   HAFTALIK TARTI HATIRLATMASI (Bugün)
   ============================================================ */
.weigh-card {
  position: relative;
  display: flex; align-items: center; gap: 13px; flex-wrap: wrap;
  margin-top: 20px;
  padding: 16px;
  border-color: rgba(200, 245, 66, .24);
}
.weigh-x { position: absolute; top: 4px; right: 4px; }
.weigh-ico {
  width: 42px; height: 42px; flex: 0 0 42px;
  display: grid; place-items: center;
  font-size: 20px;
  background: var(--card-2);
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}
.weigh-card .grow { padding-right: 34px; }
.weigh-tx {
  margin: 3px 0 4px;
  font-size: 15.5px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25;
}
.weigh-tx em { font-style: normal; color: var(--lime); }
.weigh-go { flex: 1 1 100%; }
/* karşılama kartı + tartı kartı üst üste gelirse aralar sıkışmasın */
.goal-hint + .weigh-card { margin-top: 12px; }
.weigh-card + .grid-today { margin-top: 12px; }

/* ============================================================
   GENİŞ EKRAN — gerçek web düzeni (sol yan menü + geniş içerik)
   ============================================================ */
@media (min-width: 900px) {
  :root { --pad: 32px; --tabh: 0px; }

  /* alt çubuk gider, yan menü gelir */
  .tabbar { display: none; }

  .app { padding-left: var(--snav-w); }

  .snav {
    display: flex; flex-direction: column;
    position: fixed; top: 0; bottom: 0; left: 0;
    width: var(--snav-w);
    z-index: 40;
    padding: 26px 16px 22px;
    background: rgba(18, 21, 27, .72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-right: 1px solid var(--line-soft);
    overflow-y: auto;
  }

  .view {
    max-width: var(--wide-w);
    padding: 40px var(--pad) 72px;
  }
  .page-head { margin-bottom: 28px; }
  .page-title { font-size: 32px; }
  .hero-hi { font-size: 36px; }

  /* Bugün: metrik kartları tek sırada */
  .grid-today { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .g-hero { grid-row: auto; grid-column: span 2; }
  .grid-today .span-2 { grid-column: 1 / -1; }
  .metric-val { font-size: 54px; }
  .metric-val.sm { font-size: 34px; }

  /* Bugün / Beslenme: iki kolonlu alt blok */
  .split { grid-template-columns: 1fr 1fr; }
  .split > * + * { margin-top: 0; }

  /* Antrenman & Beslenme: kart ızgarası 2–4 kolon */
  .ex-list { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; align-items: start; }
  .ex-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
  .log-list { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
  .stat-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .subseg { max-width: 470px; }

  /* Kreatin + Su: iki eşit kolon, kart içleri tek sütun akar */
  .duo { gap: 14px; max-width: 900px; }
  .creat-toggle { min-height: 68px; }
  .water-val { font-size: 42px; }
  .water-add { min-height: 56px; }
  .water-undo { min-height: 56px; width: 56px; flex-basis: 56px; }
  .wdot { height: 14px; }

  /* Ortak şeritler masaüstünde sonsuza uzamasın */
  .act-strip { max-width: 620px; gap: 12px; }
  .act-btn { min-height: 68px; }
  .act-tx { font-size: 12.5px; }
  .row-btn { max-width: 620px; padding: 14px 16px; }
  .acc-list { max-width: 860px; }
  .ant-actions { max-width: 470px; }

  /* Rehber kartları ızgaraya açılır */
  .guide-list { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); align-items: start; }
  .guide-read p { font-size: 15.5px; }

  /* Öğün kartları sohbet kolonunda biraz daha geniş durabilir */
  .meal-card { max-width: 76%; }

  /* Hedef: masaüstünde daha ferah */
  .goal-opt { min-height: 108px; padding: 16px 10px 14px; }
  .goal-emoji { font-size: 26px; }
  .goal-label { font-size: 13.5px; }
  .goal-note { font-size: 11px; }
  .goal-hint { margin-top: 4px; padding: 20px 22px 22px; }
  .goal-hint-title { font-size: 25px; }
  .goal-hint .goal-pick { max-width: 620px; }
  .goal-card .form-grid, .goal-actions { max-width: 560px; }
  .goal-card .goal-pick { max-width: 620px; }
  .calc { max-width: 620px; }
  .calc-flow { flex-wrap: nowrap; }
  .calc-step b { font-size: 19px; }

  /* FFMI & haftalık tartı */
  .ffmi-val { font-size: 54px; }
  .ffmi-scale, .ffmi-facts, .ffmi-cta { max-width: 560px; }
  .weigh-card { margin-top: 4px; padding: 18px 20px 19px; flex-wrap: nowrap; }
  .weigh-go { flex: 0 0 auto; }
  .weigh-card .grow { padding-right: 12px; }

  /* Aktif antrenman: ortalanmış geniş kolon, daha büyük tipografi */
  .live-wrap { max-width: 720px; padding: 44px var(--pad) 60px; }
  .live-clock { font-size: 20px; min-width: 76px; }
  .live-stats b { font-size: 24px; }
  .live-card { padding: 26px 24px 22px; }
  .live-input .input { min-height: 54px; font-size: 19px; }
  .live-done { min-height: 62px; }
  .live-sum-grid { grid-template-columns: repeat(4, 1fr); }
  .live-start { max-width: 620px; }

  /* Geçmiş & rekorlar */
  .hvchart { height: 132px; }
  .hist-list { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .pr-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

  /* Kilo & Programlar */
  .w-now { font-size: 46px; }
  .w-rows { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .prog-list { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); align-items: start; }
  .toolbar { grid-template-columns: minmax(240px, 380px) auto; align-items: center; }

  /* chip'ler artık taşmaz, satır atlar */
  .chips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 2px 0 12px; }

  /* AI Koç: ortalanmış sohbet kolonu */
  .chat-view { max-width: var(--chat-w); padding: 0 var(--pad); }
  .chat-head { padding-top: 34px; }
  .chat-form { padding-bottom: 26px; }

  /* Şablon kartları biraz daha ferah */
  .tpl-card { width: 178px; }
  .tpl-new { width: 132px; }

  /* Rozet ızgarası genişler */
  .badge-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
  .badge-emoji { font-size: 30px; }

  /* alt panel masaüstünde ortalanmış modal olur */
  .sheet-panel {
    left: 50%; top: 50%; bottom: auto; right: auto;
    transform: translate(-50%, -50%);
    width: min(560px, calc(100vw - 64px));
    max-height: 86dvh;
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 18px 24px 24px;
    animation: pop .22s var(--ease);
  }
  .sheet-grab { display: none; }

  .toast { bottom: 26px; left: auto; right: 26px; transform: none; }
}

@keyframes pop { from { transform: translate(-50%, -46%); opacity: 0; } }

/* çok geniş ekran: keşfet ızgarası 4+ kolona rahat açılsın */
@media (min-width: 1280px) {
  .ex-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
}

/* ============================================================
   ANALİZ SEKMESİ
   Grafiklerin tamamı saf CSS/SVG — hiçbir grafik kütüphanesi yok.
   Renk ekonomisi korunur: bir bakışta tek lime vurgu, gerisi gri.
   ============================================================ */

/* Profil'deki "Analiz'e git" köprüsü */
.an-link {
  display: flex; align-items: center; gap: 13px;
  margin-top: 18px;
  padding: 16px;
  transition: border-color .16s var(--ease);
}
.an-link:hover { border-color: var(--line); }
.an-link-ico {
  width: 40px; height: 40px; flex: 0 0 40px;
  display: grid; place-items: center;
  font-size: 19px;
  background: var(--card-2);
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}
.an-link-tx { display: block; margin-top: 2px; font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; }
.an-link-go { color: var(--lime); font-size: 17px; flex: 0 0 auto; }

/* Analiz içindeki chip şeritleri kart içinde yaşar → kenar taşması yok */
.an-chips { margin: 0 0 14px; padding: 2px 0 8px; flex-wrap: nowrap; }
.chip-num {
  margin-left: 6px;
  font-size: 11px; font-weight: 700; color: var(--tx-3);
  letter-spacing: -.02em;
}
.chip.is-active .chip-num { color: rgba(12, 14, 18, .6); }

/* ---------- Kas kütlesi (yıldız kart) ---------- */
.mass-card { display: grid; gap: 15px; }
.mass-card .rule { margin: 0; }
.mass-hero { display: grid; gap: 2px; }
.mass-lead { font-size: 13px; color: var(--tx-2); font-weight: 500; }
.mass-val {
  font-size: clamp(42px, 14vw, 58px);
  font-weight: 700; line-height: .92; letter-spacing: -.05em;
  color: var(--lime);
}
.mass-val span {
  font-size: .3em; font-weight: 600; letter-spacing: 0;
  color: var(--tx-3); margin-left: 6px;
}

/* boş durum: "FFMI görünmüyor" şikayetinin panzehiri — ne eksik, nereden girilir */
.mass-card.is-empty { gap: 12px; border-color: rgba(200, 245, 66, .24); }
.mass-empty-ico {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  font-size: 21px;
  background: var(--card-2);
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}
.mass-todo { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 8px; }
.mass-todo-row {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-s);
}
.mass-todo-ico {
  width: 22px; height: 22px; flex: 0 0 22px;
  display: grid; place-items: center;
  border-radius: 99px;
  background: var(--card-2); color: var(--tx-3);
  font-size: 12px; font-weight: 700;
}
.mass-todo-row.is-done .mass-todo-ico { background: rgba(200, 245, 66, .16); color: var(--lime); }
.mass-todo-row b { display: block; font-size: 13.5px; font-weight: 600; }
.mass-todo-row.is-done b { color: var(--tx-2); }
.mass-todo-where { display: block; font-size: 11px; color: var(--tx-3); margin-top: 1px; }
.mass-missing { font-size: 12.5px; color: var(--warn); font-weight: 600; }
.mass-missing b { font-weight: 700; }

/* ---------- Deload uyarısı ---------- */
.deload-card {
  display: flex; align-items: flex-start; gap: 13px;
  background: linear-gradient(180deg, var(--warn-soft), transparent 70%), var(--card);
  border-color: var(--warn-line);
}
.deload-ico {
  width: 40px; height: 40px; flex: 0 0 40px;
  display: grid; place-items: center;
  font-size: 19px;
  background: var(--warn-soft);
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}
.deload-card .up { color: var(--warn); }
.deload-tx { margin: 3px 0 5px; font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.deload-tx em { font-style: normal; color: var(--warn); }
.deload-why { font-size: 13px; color: var(--tx); line-height: 1.45; margin-bottom: 6px; }

/* ---------- Güç gelişimi ---------- */
.guc-card { display: block; }
.guc-kpi {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px; margin-bottom: 14px;
}
.guc-kpi div { display: grid; gap: 2px; min-width: 0; }
.guc-kpi b { font-size: 17px; font-weight: 700; letter-spacing: -.03em; }
.guc-kpi div:first-child b { color: var(--lime); }
.guc-kpi span { font-size: 10.5px; color: var(--tx-3); letter-spacing: .02em; }

/* ---------- Kas grubu dağılımı ---------- */
.kas-rows { display: grid; gap: 10px; }
.kas-row { display: grid; grid-template-columns: 68px 1fr auto; align-items: center; gap: 10px; }
.kas-name { font-size: 12.5px; color: var(--tx-2); font-weight: 500; }
.kas-track { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.kas-fill {
  display: block; height: 100%;
  background: #4d5768; border-radius: 99px;
  transition: width .5s var(--ease);
}
.kas-row.is-top .kas-fill { background: var(--lime); }
.kas-row.is-top .kas-name { color: var(--tx); font-weight: 700; }
.kas-val { font-size: 12px; color: var(--tx); min-width: 52px; text-align: right; }
.kas-row.is-zero { opacity: .55; }
.kas-row.is-zero .kas-track { background: var(--line-soft); }
.kas-row.is-zero .kas-val { font-size: 10.5px; color: var(--warn); min-width: 0; }
.kas-note { margin-top: 14px; color: var(--tx-3); line-height: 1.5; }
.kas-note b { color: var(--warn); font-weight: 700; }

/* ---------- 1RM hesaplayıcı (Güç Gelişimi'nin altı) ---------- */
.rm-card { display: grid; gap: 14px; }
.rm-inputs {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: end; gap: 10px;
}
.rm-inputs .input { min-height: 48px; text-align: center; font-size: 17px; font-weight: 600; }
.rm-x { padding-bottom: 13px; color: var(--tx-3); font-size: 15px; }

.rm-result { text-align: center; }
.rm-val {
  margin-top: 2px;
  font-size: 38px; font-weight: 700; line-height: 1.05;
  letter-spacing: -.045em; color: var(--lime);
}
.rm-val .metric-unit {
  margin-left: 5px; font-size: 14px; font-weight: 600;
  letter-spacing: -.01em; color: var(--tx-2);
}

.rm-pcts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.rm-pct {
  display: grid; gap: 1px; justify-items: center;
  padding: 9px 4px;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-s);
  min-width: 0;
}
.rm-pct-p { font-size: 10.5px; color: var(--tx-3); letter-spacing: .04em; }
.rm-pct-kg { font-size: 15px; font-weight: 700; letter-spacing: -.03em; }
.rm-hint { color: var(--tx-3); line-height: 1.5; }

@media (min-width: 560px) {
  .rm-pcts { grid-template-columns: repeat(6, 1fr); }
}

/* ---------- 🎲 "Bugün ne çalışsam?" paneli ---------- */
.nc-hit {
  text-align: center;
  padding: 18px 14px 16px;
  background:
    linear-gradient(160deg, rgba(200, 245, 66, .12), transparent 68%),
    var(--card);
  border: 1px solid rgba(200, 245, 66, .28);
  border-radius: var(--r);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}
.nc-emoji { display: block; font-size: 34px; line-height: 1; margin-bottom: 10px; }
.nc-name {
  margin-top: 4px;
  font-size: 27px; font-weight: 700; letter-spacing: -.035em; line-height: 1.05;
}
.nc-sets { margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--lime); }
.nc-note { margin-top: 12px; line-height: 1.55; }

/* ---------- Aylık özet ---------- */
.mn-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 14px;
}
.mn-arrow {
  width: 44px; height: 44px; flex: 0 0 44px;
  display: grid; place-items: center;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-s);
  color: var(--tx-2); font-size: 13px;
  cursor: pointer;
  transition: border-color .16s var(--ease), color .16s var(--ease);
}
.mn-arrow:hover { border-color: var(--line); color: var(--tx); }
.mn-arrow[disabled] { opacity: .32; pointer-events: none; }
.mn-label { text-align: center; line-height: 1.15; }
.mn-label b { display: block; font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.mn-label span { display: block; margin-top: 1px; }

.mn-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.mn-cell {
  display: grid; gap: 2px;
  padding: 12px;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-s);
  min-width: 0;
}
.mn-cell b { font-size: 20px; font-weight: 700; letter-spacing: -.04em; overflow-wrap: anywhere; }
.mn-cell span { font-size: 10.5px; color: var(--tx-3); letter-spacing: .02em; }
.mn-cell.is-hi { border-color: rgba(200, 245, 66, .28); }
.mn-cell.is-hi b { color: var(--lime); }

.best-list { display: grid; gap: 7px; }
.best-row {
  display: flex; align-items: center; gap: 11px;
  width: 100%; min-height: 46px;
  padding: 9px 12px;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-s);
  text-align: left; cursor: pointer;
  transition: border-color .16s var(--ease);
}
.best-row:hover { border-color: var(--line); }
.best-rank { font-size: 15px; flex: 0 0 auto; }
.best-name { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.best-num { font-size: 14px; font-weight: 700; letter-spacing: -.02em; flex: 0 0 auto; }

/* ---------- Vücut ölçüleri ---------- */
.ms-card { display: grid; gap: 15px; }
.ms-card .an-chips { margin-bottom: 0; }
.ms-head { align-items: flex-start; }
.ms-now { font-size: clamp(34px, 11vw, 44px); font-weight: 700; line-height: .9; letter-spacing: -.05em; margin: 8px 0 4px; }
.ms-now span { font-size: .34em; font-weight: 600; letter-spacing: 0; color: var(--tx-3); margin-left: 4px; }

.ms-card.is-empty { gap: 12px; border-color: rgba(200, 245, 66, .24); }
.ms-empty-ico {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  font-size: 21px;
  background: var(--card-2);
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}
.ms-invite {
  font-size: 19px; font-weight: 700; line-height: 1.25;
  letter-spacing: -.03em;
}
.ms-invite em { font-style: normal; color: var(--lime); }

/* ---------- Analiz: geniş ekran ---------- */
@media (min-width: 900px) {
  /* Kartlar tek uzun sütun yerine 2 kolonda yan yana akar — geniş ekranda boşa giden alan kalmasın */
  .analiz-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 24px;
  }
  .analiz-grid > div { margin: 0; }
  .analiz-grid .mass-card, .analiz-grid .ms-card,
  .analiz-grid .guc-card, .analiz-grid .kas-card,
  .analiz-grid .mn-card, .analiz-grid .deload-card { max-width: none; }

  .an-link { margin-top: 4px; padding: 18px 20px; }

  .mass-val { font-size: 64px; }
  .mass-card, .ms-card { max-width: 720px; }
  .mass-todo { grid-template-columns: repeat(3, 1fr); }
  .ffmi-cta { max-width: 560px; }

  .deload-card { max-width: 720px; padding: 18px 20px; }

  .an-chips { flex-wrap: wrap; overflow: visible; }
  .guc-card { max-width: 720px; }
  .guc-kpi b { font-size: 20px; }

  .kas-card { max-width: 720px; }
  .kas-row { grid-template-columns: 92px 1fr auto; }
  .kas-track { height: 10px; }

  .mn-card { max-width: 860px; }
  .mn-grid { grid-template-columns: repeat(4, 1fr); }
  .mn-cell b { font-size: 23px; }
  .best-list { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
  .ms-now { font-size: 46px; }
}

/* ============================================================
   ÖNCEKİ ANTRENMANI KOPYALA (paneli — tetikleyici Antrenman başlığında)
   ============================================================ */
.copy-head { margin-bottom: 14px; }
.copy-date { font-size: 21px; font-weight: 700; letter-spacing: -.03em; margin-top: 4px; }

.copy-list { display: grid; gap: 7px; max-height: 320px; overflow-y: auto; }
.copy-row {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-s);
}
.copy-name { display: block; font-size: 13.5px; font-weight: 600; }
.copy-sets { display: block; margin-top: 3px; font-size: 11.5px; color: var(--tx-3); }
.copy-min { flex: 0 0 auto; font-size: 14px; font-weight: 700; color: var(--lime); }
.copy-min span { font-size: 10px; font-weight: 600; color: var(--tx-3); margin-left: 2px; letter-spacing: .08em; }

/* ============================================================
   BARKODLA BESİN EKLEME (Beslenme)
   ============================================================ */
/* panelin başındaki tek satır bilgi notu — kamera olsun olmasın hep görünür */
.bk-note {
  margin: 0 0 12px;
  font-size: 12px; line-height: 1.45; color: var(--tx-3);
}

.bk-cam {
  position: relative;
  margin-bottom: 14px;
  background: #000;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}
.bk-video {
  display: block; width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #000;
}
/* tarama penceresi — kullanıcı barkodu nereye tutacağını görsün */
.bk-frame {
  position: absolute; left: 12%; right: 12%; top: 32%; bottom: 32%;
  border: 2px solid var(--lime);
  border-radius: 6px;
  box-shadow: 0 0 0 100vmax rgba(8, 10, 13, .42);
  pointer-events: none;
}
.bk-cam-note {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 9px 12px calc(9px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(transparent, rgba(8, 10, 13, .85) 40%);
  color: var(--tx-2); font-size: 12px; text-align: center;
}

.bk-hint {
  padding: 11px 13px;
  margin-bottom: 14px;
  background: var(--bg-2);
  border-left: 2px solid var(--lime);
  border-radius: 0 var(--r-s) var(--r-s) 0;
  font-size: 13px; color: var(--tx-2); line-height: 1.5;
}

.bk-manual {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.bk-manual .field { margin-bottom: 10px; }

/* ============================================================
   ARKADAŞLAR + HAFTALIK KIYAS (Profil)
   ============================================================ */
.fr-card { display: grid; gap: 12px; }

.fr-add { display: flex; align-items: center; gap: 8px; }
.fr-add .input { min-height: 46px; }
.fr-add-btn { flex: 0 0 auto; width: 52px; padding: 0; font-size: 18px; }

.fr-note {
  padding: 9px 12px;
  background: rgba(200, 245, 66, .09);
  border-left: 2px solid var(--lime);
  border-radius: 0 var(--r-s) var(--r-s) 0;
  font-size: 12.5px; color: var(--tx-2); line-height: 1.45;
}
.fr-note.is-err {
  background: rgba(255, 107, 94, .1);
  border-left-color: var(--danger);
  color: #ffb3ab;
}

.fr-list { display: grid; gap: 7px; }
.fr-row {
  display: flex; align-items: center; gap: 11px;
  padding: 7px 4px 7px 10px;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-s);
  transition: opacity .16s var(--ease);
}
.fr-row.is-busy { opacity: .5; pointer-events: none; }
.fr-ava {
  flex: 0 0 auto;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: var(--card-2);
  color: var(--tx-2);
  font-size: 13px; font-weight: 700;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}
.fr-name { display: block; font-size: 13.5px; font-weight: 600; }
.fr-state { display: block; margin-top: 1px; font-size: 11px; color: var(--tx-3); }
.fr-badge {
  flex: 0 0 auto;
  padding: 3px 8px;
  background: rgba(200, 245, 66, .14);
  border: 1px solid rgba(200, 245, 66, .32);
  border-radius: 999px;
  color: var(--lime); font-size: 11px; font-weight: 700;
}

.cmp-card { margin-top: 12px; }
.cmp-table { display: grid; gap: 5px; }
.cmp-row {
  display: grid;
  grid-template-columns: 1fr 34px 42px 62px 32px;
  gap: 6px; align-items: center;
  padding: 9px 11px;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-s);
  font-size: 13px;
}
.cmp-row > span:not(.cmp-name) { text-align: right; }
.cmp-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.cmp-head {
  background: transparent; border-color: transparent;
  padding: 0 11px;
  text-transform: uppercase; letter-spacing: .1em;
  font-size: 10px; color: var(--tx-3); font-weight: 500;
}

.cmp-row.is-me {
  background: rgba(200, 245, 66, .1);
  border-color: rgba(200, 245, 66, .34);
  color: var(--lime);
}
.cmp-row.is-me .cmp-name { font-weight: 700; }

/* ============================================================
   VERİLERİM + YÖNETİM (Profil)
   ============================================================ */
.data-note { font-size: 13px; color: var(--tx-2); line-height: 1.5; }

.adm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.adm-cell {
  display: grid; gap: 2px;
  padding: 12px;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-s);
  min-width: 0;
}
.adm-cell b { font-size: 22px; font-weight: 700; letter-spacing: -.04em; overflow-wrap: anywhere; }
.adm-cell span { font-size: 10.5px; color: var(--tx-3); letter-spacing: .02em; }
.adm-cell.is-hi { border-color: rgba(200, 245, 66, .28); }
.adm-cell.is-hi b { color: var(--lime); }

/* --- geniş ekran --- */
@media (min-width: 900px) {
  .fr-card, .cmp-card, .data-card, .adm-card { max-width: 720px; }
  .adm-grid { grid-template-columns: repeat(4, 1fr); }
  .cmp-row { grid-template-columns: 1fr 60px 60px 90px 50px; }
}

/* ============================================================
   ÇEVRİMDIŞI KAYIT ROZETİ (Bugün / Antrenman başlığı)
   ============================================================ */
.offq-badge {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px;
  min-height: 32px; padding: 0 12px;
  background: var(--warn-soft);
  border: 1px solid var(--warn-line);
  border-radius: 99px;
  color: var(--warn);
  font-size: 12px; font-weight: 600;
  cursor: pointer;
}
.offq-badge b { font-weight: 700; }
.offq-badge:active { transform: scale(.97); }

/* ============================================================
   HAFTALIK TAAHHÜT (Bugün)
   ============================================================ */
.cmt-card { margin-top: 12px; display: grid; gap: 12px; }
.cmt-card.is-busy { opacity: .6; pointer-events: none; }

.cmt-head { display: flex; align-items: flex-start; gap: 11px; }
.cmt-ico { flex: 0 0 auto; font-size: 20px; line-height: 1.1; }
.cmt-q { margin-top: 2px; font-size: 15px; font-weight: 700; letter-spacing: -.02em; }
.cmt-prog { margin-top: 2px; font-size: 14.5px; color: var(--tx-2); }
.cmt-prog b { color: var(--tx); font-size: 16px; font-weight: 700; letter-spacing: -.03em; }

.cmt-link {
  flex: 0 0 auto;
  background: transparent; border: 0; padding: 2px 0;
  color: var(--tx-3); font-size: 11.5px; font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer;
}
.cmt-link:hover { color: var(--lime); }

.cmt-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cmt-opt {
  min-height: 46px;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  color: var(--tx);
  font-size: 17px; font-weight: 700; letter-spacing: -.03em;
  cursor: pointer;
  transition: transform .12s var(--ease), border-color .16s var(--ease);
}
.cmt-opt:hover { border-color: var(--lime-dim); }
.cmt-opt:active { transform: scale(.97); }
.cmt-opt.is-active { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }

.cmt-bar { display: flex; gap: 5px; }
.cmt-seg {
  flex: 1 1 0; height: 8px;
  background: var(--line);
  border-radius: 3px;
  transition: background .3s var(--ease);
}
.cmt-seg.is-on { background: var(--lime); }

.cmt-msg { font-size: 12.5px; color: var(--tx-3); }
.cmt-msg.is-done { color: var(--lime); font-weight: 700; font-size: 14px; letter-spacing: -.01em; }
.cmt-note { margin-top: -2px; }

/* tamamlandı: sade lime tint — konfeti yok */
.cmt-card.is-done {
  background: rgba(200, 245, 66, .07);
  border-color: rgba(200, 245, 66, .34);
}

/* ============================================================
   TARİF DEFTERİ (Beslenme → "📖 Tariflerim")
   ============================================================ */
.rcp-strip { margin-top: 6px; }
.rcp-row-strip {
  display: flex; gap: 10px;
  margin-top: 12px;
  padding-bottom: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.rcp-row-strip::-webkit-scrollbar { display: none; }

.rcp-card {
  flex: 0 0 auto;
  width: 156px; min-height: 96px;
  display: flex; flex-direction: column; justify-content: center; gap: 3px;
  padding: 13px 14px;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  color: var(--tx);
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  transition: transform .12s var(--ease), border-color .16s var(--ease);
}
.rcp-card:hover { border-color: var(--lime-dim); }
.rcp-card:active { transform: scale(.985); }
.rcp-card.is-busy { opacity: .55; }

.rcp-name {
  font-size: 13.5px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rcp-kcal { font-size: 19px; font-weight: 700; letter-spacing: -.04em; color: var(--lime); }
.rcp-kcal span { font-size: 10px; font-weight: 600; color: var(--tx-3); margin-left: 3px; letter-spacing: .1em; }
.rcp-meta { font-size: 10.5px; color: var(--tx-3); }

.rcp-new {
  align-items: center; justify-content: center; text-align: center;
  background: transparent;
  border: 1px dashed var(--line);
  color: var(--tx-2);
  clip-path: none;
}
.rcp-new:hover { border-color: var(--lime); color: var(--lime); }
.rcp-new-ico { font-size: 20px; line-height: 1; color: var(--lime); }
.rcp-new-tx { font-size: 12px; font-weight: 600; line-height: 1.25; }

/* --- tarif detay paneli --- */
.rcp-items { display: grid; gap: 6px; max-height: 250px; overflow-y: auto; }
.rcp-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-s);
  font-size: 13px;
}
.rcp-item-macro { flex: 0 0 auto; }
.rcp-item-kcal { flex: 0 0 auto; font-weight: 700; font-size: 13px; }

.rcp-portions { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 11px; }
.rcp-portions .mult-btn { font-size: 13px; }

/* --- tarif formu --- */
.rcp-hits { display: grid; gap: 5px; }
.rcp-hit {
  display: flex; align-items: center; gap: 10px;
  width: 100%; min-height: 42px;
  padding: 8px 11px;
  text-align: left;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-s);
  color: var(--tx);
  font-size: 13px;
  cursor: pointer;
}
.rcp-hit:hover { border-color: var(--lime-dim); }

.rcp-lines { display: grid; gap: 10px; }
.rcp-line {
  padding: 11px 12px 12px;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-s);
}
.rcp-line-top { display: flex; align-items: center; gap: 8px; }
.rcp-line-name { min-height: 42px; }
.rcp-line-x {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: transparent; border: 0; border-radius: 50%;
  color: var(--tx-3); font-size: 13px; cursor: pointer;
}
.rcp-line-x:hover { color: var(--danger); background: var(--card-2); }

.rcp-line-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-top: 9px; }
.rcp-line-nums label { display: grid; gap: 4px; min-width: 0; }
.rcp-line-nums span {
  font-size: 10px; color: var(--tx-3); font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em;
}
.rcp-line-nums .input { min-height: 40px; padding: 8px 9px; font-size: 14px; }

.rcp-sum { margin-top: 14px; }
.rcp-sum-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.rcp-sum-grid > div {
  display: grid; gap: 2px;
  padding: 10px 11px;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-s);
  min-width: 0;
}
.rcp-sum-grid b { font-size: 17px; font-weight: 700; letter-spacing: -.04em; color: var(--lime); }
.rcp-sum-grid span { font-size: 10.5px; color: var(--tx-3); }

/* ============================================================
   AI KOTA ROZETİ (AI Koç başlığı)
   ============================================================ */
.quota-badge {
  flex: 0 0 auto;
  display: inline-flex; align-items: center;
  padding: 4px 10px;
  background: rgba(200, 245, 66, .1);
  border: 1px solid rgba(200, 245, 66, .3);
  border-radius: 99px;
  color: var(--lime);
  font-size: 11.5px; font-weight: 700;
  font-variant-numeric: tabular-nums; letter-spacing: -.01em;
  white-space: nowrap;
}
.quota-badge.is-out {
  background: var(--warn-soft);
  border-color: var(--warn-line);
  color: var(--warn);
  letter-spacing: 0;
}
/* kota bittiğinde chip'ler soluklaşır ama tıklanabilir kalır */
.chat-suggest.is-out .chip-cmd { opacity: .45; }

/* ============================================================
   YILLIK ISI TAKVİMİ (Analiz)
   ============================================================ */
.yr-card { --yr-sq: 10px; --yr-gap: 3px; }

.yr-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.yr-inner { display: inline-block; min-width: 100%; }

.yr-months {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--yr-sq);
  gap: var(--yr-gap);
  margin-bottom: 5px;
  height: 13px;
}
.yr-months span {
  font-size: 9.5px; color: var(--tx-3); font-weight: 600;
  letter-spacing: .04em; white-space: nowrap; overflow: visible;
}

.yr-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--yr-sq);
  grid-template-rows: repeat(7, var(--yr-sq));
  gap: var(--yr-gap);
}
.yr-cell {
  display: block;
  width: var(--yr-sq); height: var(--yr-sq);
  border-radius: 2px;
  background: #1b202a;
}
.yr-cell.is-0 { background: #1b202a; }
.yr-cell.is-1 { background: rgba(200, 245, 66, .26); }
.yr-cell.is-2 { background: rgba(200, 245, 66, .58); }
.yr-cell.is-3 { background: var(--lime); }
.yr-cell.is-off { background: transparent; }
.yr-cell.is-today { box-shadow: 0 0 0 1px var(--tx-2); }

.yr-foot {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
  margin-top: 12px;
}
.yr-foot b { color: var(--tx); }
.yr-legend { display: flex; align-items: center; gap: 4px; }
.yr-legend span { font-size: 10px; color: var(--tx-3); }
.yr-legend .yr-cell { width: 10px; height: 10px; }

/* ============================================================
   İLERLEME FOTOĞRAFLARI (Analiz)
   ============================================================ */
.ph-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }

.ph-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.ph-tile {
  position: relative;
  aspect-ratio: 3 / 4;
  padding: 0;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-s);
  cursor: pointer;
}
.ph-tile:hover { border-color: var(--lime-dim); }
.ph-tile:active { transform: scale(.985); }
.ph-tile.is-broken { border-style: dashed; }
.ph-img { width: 100%; height: 100%; object-fit: cover; }
.ph-date {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 4px 6px;
  background: linear-gradient(to top, rgba(12, 14, 18, .86), transparent);
  color: var(--tx);
  font-size: 10.5px; font-weight: 600;
  text-align: left;
}

.ph-big {
  border-radius: var(--r-s);
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
}
.ph-big-img { width: 100%; max-height: 60vh; object-fit: contain; background: var(--bg); }
.ph-note {
  margin-top: 12px;
  padding: 10px 12px;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-s);
  font-size: 13px; color: var(--tx-2); line-height: 1.5;
}

.ph-cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ph-cmp-col { margin: 0; display: grid; gap: 8px; }
.ph-cmp-img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-s);
}
.ph-cmp-col figcaption { display: grid; gap: 2px; }
.ph-cmp-col figcaption b { font-size: 14px; font-weight: 700; letter-spacing: -.02em; }

/* ============================================================
   HESAP GÜVENLİĞİ (Profil → Verilerim → Tehlikeli bölge)
   ============================================================ */
.danger-zone {
  margin-top: 20px;
  padding: 14px;
  background: rgba(255, 107, 94, .05);
  border: 1px solid #3a2529;
  border-radius: var(--r-s);
}
.danger-zone-t { color: var(--danger); margin-bottom: 6px; }

.acc-del-warn {
  padding: 14px;
  background: var(--bg-2);
  border: 1px solid #3a2529;
  border-radius: var(--r-s);
}
.acc-del-t { font-size: 15px; font-weight: 700; color: var(--danger); letter-spacing: -.02em; }
.acc-del-list { margin: 10px 0 12px; font-size: 13px; color: var(--tx-2); }

/* ============================================================
   GÜNÜN KOÇ MESAJI (Bugün → taahhüdün altı)
   Kart günde bir dolar; "yeni" vurgusu yalnızca o gün üretilen
   mesajda görünür. Hata hâli koca kart değil, tek satırdır.
   ============================================================ */
.koc-gun { position: relative; margin-top: 12px; padding: 15px 16px 16px; }
.koc-gun.is-mini { padding: 11px 14px; }
.koc-x { position: absolute; top: 4px; right: 4px; }

.koc-head { display: flex; align-items: center; gap: 9px; padding-right: 40px; margin-bottom: 9px; }
.koc-ico { font-size: 18px; line-height: 1; }
.koc-head .up { margin: 0; }

/* mesaj o gün üretildiyse ince lime nefes + rozet */
.koc-yeni {
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(200, 245, 66, .14);
  color: var(--lime);
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.koc-gun.is-new { border-color: rgba(200, 245, 66, .38); }
.koc-gun.is-new::before {
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px;
  width: 3px; background: var(--lime); border-radius: 0 3px 3px 0;
}

.koc-body { font-size: 14px; line-height: 1.6; color: var(--tx-2); max-width: 62ch; }
.koc-body b { color: var(--tx); }

.koc-link {
  padding: 0; background: none; border: 0; cursor: pointer;
  color: var(--lime); font-size: inherit; font-weight: 700;
  border-bottom: 1px solid rgba(200, 245, 66, .4);
}
.koc-link:hover { border-bottom-color: var(--lime); }

/* ============================================================
   🎤 ANLAT — sesli / serbest kayıt (Bugün → hızlı eylem şeridi)
   ============================================================ */
.anlat-lede { margin-bottom: 14px; line-height: 1.55; }

/* Mikrofon: dinlerken lime halka nabız atar — kırmızı bilerek kullanılmadı,
   bu bir hata değil, çalışan bir durum. */
.anlat-mic {
  display: flex; align-items: center; gap: 12px;
  width: 100%; min-height: 62px; margin-bottom: 12px;
  padding: 10px 14px;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  color: var(--tx); font-weight: 600; text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .16s var(--ease), background .16s var(--ease);
}
.anlat-mic:hover { border-color: var(--lime-dim); }
.anlat-mic.is-on { border-color: var(--lime); background: rgba(200, 245, 66, .07); }

.anlat-mic-ring {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--bg-2);
}
.anlat-mic.is-on .anlat-mic-ring {
  border-color: var(--lime);
  animation: micnabiz 1.5s var(--ease) infinite;
}
@keyframes micnabiz {
  0%   { box-shadow: 0 0 0 0 rgba(200, 245, 66, .45); }
  70%  { box-shadow: 0 0 0 12px rgba(200, 245, 66, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 245, 66, 0); }
}
.anlat-mic-ico { font-size: 18px; line-height: 1; }
.anlat-mic-tx { font-size: 14px; }
.anlat-mic.is-on .anlat-mic-tx { color: var(--lime); }

.anlat-nosupport {
  margin-bottom: 12px; padding: 10px 12px;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-s);
  font-size: 12.5px; color: var(--tx-2);
}

.anlat-field { margin-bottom: 6px; }
.anlat-tx { min-height: 132px; resize: vertical; line-height: 1.55; }
.anlat-say { text-align: right; margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.anlat-note { margin-top: 10px; line-height: 1.5; }

/* --- onay ekranı --- */
.anlat-liste { display: grid; gap: 10px; margin-bottom: 12px; }
.anlat-card { padding: 13px 14px 4px; }
.anlat-card.is-off, .anlat-meal.is-off { opacity: .45; }
.anlat-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.anlat-chk { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.anlat-chk input { width: 18px; height: 18px; accent-color: var(--lime); flex: 0 0 auto; }
.anlat-chk .up { margin: 0; }

.anlat-card .anlat-f { margin: 10px 0 0; }
.anlat-card .field-label { margin-bottom: 5px; font-size: 11px; }
.anlat-card .input { min-height: 42px; padding: 8px 10px; }
.anlat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.anlat-card .anlat-grid .anlat-f { margin: 0; }
.anlat-grid .anlat-f .input { text-align: center; }

.sheet-body .anlat-meal { max-width: none; margin: 0; }
.anlat-meal .meal-name { margin-top: 7px; }

.anlat-rows { display: grid; gap: 8px; margin-bottom: 14px; }
.anlat-row {
  display: flex; align-items: center; gap: 11px;
  min-height: 52px; padding: 10px 13px;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-s);
  cursor: pointer;
  transition: border-color .16s var(--ease), opacity .16s var(--ease);
  opacity: .5;
}
.anlat-row.is-on { border-color: rgba(200, 245, 66, .35); opacity: 1; }
.anlat-row input { width: 18px; height: 18px; accent-color: var(--lime); flex: 0 0 auto; }
.anlat-row-ico { font-size: 17px; line-height: 1; }
.anlat-row b { font-size: 15px; letter-spacing: -.02em; }

.anlat-foot { display: grid; gap: 8px; margin-top: 4px; }

/* ============================================================
   📤 PAYLAŞIM KARTI (Aktif antrenman → özet)
   ============================================================ */
.live-card-btn { margin-top: 10px; }
.pk-prev {
  padding: 12px;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-s);
}
.pk-img {
  width: 100%; max-width: 320px; margin: 0 auto;
  aspect-ratio: 1080 / 1350;
  border-radius: 8px;
}
.pk-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.pk-note { margin-top: 10px; line-height: 1.5; }

/* --- geniş ekran --- */
@media (min-width: 900px) {
  .cmt-card, .yr-card, .ph-card, .koc-gun { max-width: 720px; }
  .rcp-sum-grid { grid-template-columns: repeat(4, 1fr); }
  .ph-grid { grid-template-columns: repeat(5, 1fr); }
  .yr-card { --yr-sq: 12px; }
  .koc-gun { margin-top: 14px; padding: 18px 20px 19px; }
}

/* ============================================================
   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;
  }
}
