/* OZI FIT — tasarım sistemi: siyah · antrasit · lime. OLED için gerçek siyah arka plan. */
:root, [data-theme="dark"] {
  --bg: #000; --s1: #0e0f0f; --s2: #161817; --s3: #202322; --s4: #2b2f2d;
  --line: rgba(255,255,255,.07); --line-2: rgba(255,255,255,.13);
  --tx: #f3f5ef; --tx-2: #a5aaa1; --tx-3: #6b7069;
  --lime: #c6f53b; --accent: #c6f53b; --lime-dim: rgba(198,245,59,.34); --lime-soft: rgba(198,245,59,.11); --on-lime: #0a0d04;
  --danger: #ff5d50; --warn: #ffb547; --info: #5ac8fa; --good: #8fe36a; --violet: #c79bff;
  --carb: #ffcf5c; --fat: #69c3ff;
  --map-base: #1f2321; --map-n: #131615;
  --glass: rgba(10,11,11,.78); --glass-2: rgba(22,24,23,.94);
  --shadow: 0 14px 40px rgba(0,0,0,.55);
  --hero: radial-gradient(120% 130% at 100% 0%, rgba(198,245,59,.22), transparent 55%), linear-gradient(160deg, #161916, #0a0b0a);
}
[data-theme="light"] {
  --bg: #f1f2ee; --s1: #ffffff; --s2: #f6f7f3; --s3: #eceee8; --s4: #dfe2db;
  --line: rgba(12,14,10,.08); --line-2: rgba(12,14,10,.15);
  --tx: #0d0f0b; --tx-2: #565b52; --tx-3: #8a8f85;
  --lime: #b9e82c; --accent: #4a6d00; --lime-dim: rgba(130,180,10,.45); --lime-soft: rgba(150,200,20,.16); --on-lime: #0a0d04;
  --good: #2f9a3a; --warn: #c27800; --danger: #d93a2e; --info: #1a8fd0; --carb: #d69c00; --fat: #1a8fd0;
  --map-base: #dde0d8; --map-n: #eceee8;
  --glass: rgba(246,247,243,.82); --glass-2: rgba(255,255,255,.96);
  --shadow: 0 12px 34px rgba(30,35,25,.16);
  --hero: radial-gradient(120% 130% at 100% 0%, rgba(185,232,44,.45), transparent 55%), linear-gradient(160deg, #ffffff, #eef0ea);
}
:root {
  --r: 20px; --r-sm: 14px;
  --st: env(safe-area-inset-top, 0px); --sb: env(safe-area-inset-bottom, 0px);
  --tab-h: 62px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-d: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --font-r: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.2,.8,.2,1);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--tx); font-family: var(--font); font-size: 15px; line-height: 1.4; -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; overflow: hidden; overscroll-behavior: none; }
body { position: fixed; inset: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; cursor: pointer; background: none; border: 0; padding: 0; text-align: inherit; }
button:disabled { opacity: .4; cursor: default; }
a { color: var(--accent); }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-d); letter-spacing: -.01em; }
p { margin: 0 0 6px; }
ul { margin: 0; }
svg.ic { flex: none; display: block; }
.dim { opacity: .5; }
.muted { color: var(--tx-2); } .small { font-size: 13px; } .center { text-align: center; justify-content: center; }
.good { color: var(--good) !important; } .bad { color: var(--danger) !important; }
.warn-text { color: var(--warn); } .pain-text { color: var(--danger); } .pr-text, .lime-text { color: var(--accent); }
.danger-text { color: var(--danger) !important; }
.hint { font-size: 12.5px; color: var(--tx-3); line-height: 1.45; margin: 8px 2px; }
.hint.center { text-align: center; }
* { scrollbar-width: none; } *::-webkit-scrollbar { display: none; }

/* ---------- Ana yapı ---------- */
.view { position: fixed; inset: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain; padding: calc(var(--st) + 10px) 16px calc(var(--tab-h) + var(--sb) + 28px); outline: none; }
body.has-minibar .view { padding-bottom: calc(var(--tab-h) + var(--sb) + 96px); }
.page { max-width: 580px; margin: 0 auto; }
.page-enter { animation: fadeUp .32s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: calc(var(--tab-h) + var(--sb)); padding-bottom: var(--sb); display: flex; justify-content: center; background: var(--glass); -webkit-backdrop-filter: blur(24px) saturate(170%); backdrop-filter: blur(24px) saturate(170%); border-top: 1px solid var(--line); }
.tabbar button { flex: 0 1 116px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--tx-3); font-size: 10.5px; font-weight: 600; letter-spacing: .01em; transition: color .2s; }
.tabbar button.on { color: var(--accent); }
.tabbar button.on svg { transform: translateY(-1px) scale(1.06); }
.tabbar button svg { transition: transform .25s var(--ease); }
body.wk-open .tabbar { pointer-events: none; }

/* ---------- Başlıklar ---------- */
.page-head { display: flex; align-items: center; gap: 6px; margin: 4px 0 14px; min-height: 44px; }
.page-head .page-title { flex: 1; min-width: 0; }
.page-head h1 { font-size: 30px; font-weight: 800; letter-spacing: -.025em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page-head.with-back h1 { font-size: 22px; }
.page-head p { font-size: 13px; color: var(--tx-2); margin: 2px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page-head.with-back { margin-left: -8px; }
.page-actions { display: flex; gap: 2px; }
.kicker { font-size: 11px; font-weight: 800; letter-spacing: .14em; color: var(--accent); }
.section { margin-top: 24px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin: 0 4px 10px; gap: 10px; }
.section-head h2 { font-size: 12.5px; font-weight: 700; color: var(--tx-2); text-transform: uppercase; letter-spacing: .09em; display: flex; gap: 6px; align-items: center; font-family: var(--font); }
.link { color: var(--accent); font-size: 13.5px; font-weight: 600; }
.link-strong { color: var(--tx); font-size: 17px; font-weight: 700; text-align: left; font-family: var(--font-d); }
.group-h { font-size: 13px; font-weight: 700; color: var(--tx-2); margin: 20px 4px 8px; font-family: var(--font); }
.group-h small { color: var(--tx-3); font-weight: 500; margin-left: 4px; }

/* ---------- Temel bileşenler ---------- */
.card { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-bottom: 12px; }
.card h4 { font-size: 14px; margin-bottom: 8px; } .card h4 small { color: var(--tx-3); font-weight: 500; font-size: 12px; }
.btn { height: 48px; padding: 0 18px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--s3); color: var(--tx); font-size: 15px; font-weight: 700; transition: transform .12s, background .2s, opacity .2s; white-space: nowrap; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn.primary { background: var(--lime); color: var(--on-lime); }
.btn.outline { background: transparent; border: 1.5px solid var(--line-2); }
.btn.ghost { background: transparent; color: var(--tx-2); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.big { height: 58px; font-size: 16.5px; border-radius: 18px; }
.btn.sm { height: 36px; font-size: 13.5px; padding: 0 12px; border-radius: 11px; }
.btn.full { width: 100%; } .btn.grow { flex: 1; }
.stack { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: var(--tx); position: relative; transition: background .2s; flex: none; }
.icon-btn:active { background: var(--s3); }
.icon-btn.sm { width: 32px; height: 32px; border-radius: 10px; }
.icon-btn.on { color: var(--accent); }
.dot-badge { position: absolute; top: 3px; right: 3px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--lime); color: var(--on-lime); font-size: 10px; font-style: normal; font-weight: 800; display: grid; place-items: center; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: var(--s3); color: var(--tx-2); font-size: 11.5px; font-weight: 600; white-space: nowrap; vertical-align: middle; }
.badge.lime { background: var(--lime-soft); color: var(--accent); } .badge.warn { background: rgba(255,181,71,.13); color: var(--warn); } .badge.pain { background: rgba(255,93,80,.13); color: var(--danger); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.seg { display: flex; background: var(--s2); border-radius: 13px; padding: 3px; gap: 2px; margin-bottom: 12px; border: 1px solid var(--line); }
.seg button { flex: 1; height: 36px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--tx-2); display: inline-flex; align-items: center; justify-content: center; gap: 5px; white-space: nowrap; transition: background .2s, color .2s; padding: 0 6px; }
.seg button.on { background: var(--s4); color: var(--tx); box-shadow: 0 1px 4px rgba(0,0,0,.25); }
[data-theme="light"] .seg button.on { background: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; }
.chips.scroll-x { flex-wrap: nowrap; overflow-x: auto; margin-left: -16px; margin-right: -16px; padding: 0 16px; }
.sheet .chips.scroll-x { margin-left: -18px; margin-right: -18px; padding: 0 18px; }
.chip { height: 34px; padding: 0 13px; border-radius: 999px; background: var(--s3); color: var(--tx-2); font-size: 13.5px; font-weight: 600; border: 1px solid transparent; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; flex: none; transition: all .2s; }
.chip.sm { height: 30px; font-size: 12.5px; }
.chip.on { background: var(--lime-soft); color: var(--accent); border-color: var(--lime-dim); }
.chip.on.pain { background: rgba(255,93,80,.14); color: var(--danger); border-color: rgba(255,93,80,.35); }
.chip.warn.on { background: rgba(255,181,71,.14); color: var(--warn); border-color: rgba(255,181,71,.35); }
.chip small { opacity: .7; font-weight: 500; }
.chip-select { height: 34px; border-radius: 999px; background: var(--s3); color: var(--tx-2); border: 0; padding: 0 12px; font-size: 13.5px; font-weight: 600; }
.rating { display: flex; gap: 6px; }
.rating button { width: 36px; height: 36px; border-radius: 50%; background: var(--s3); color: var(--tx-2); font-weight: 700; font-size: 14px; transition: all .2s; display: grid; place-items: center; }
.rating button.on { background: var(--lime); color: var(--on-lime); transform: scale(1.06); }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.stat-grid.four { grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stat, .stat-btn { min-width: 0; }
.stat { background: var(--s1); border: 1px solid var(--line); border-radius: 16px; padding: 13px 14px; display: flex; flex-direction: column; gap: 2px; height: 100%; }
.stat-btn { display: block; width: 100%; text-align: left; }
.stat-label { font-size: 11.5px; color: var(--tx-3); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-value { font-family: var(--font-d); font-size: 22px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-sub { font-size: 11.5px; color: var(--tx-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat.good .stat-value, .stat.accent .stat-value { color: var(--accent); }
.stat-grid.four .stat { padding: 11px 10px; } .stat-grid.four .stat-value { font-size: 17px; } .stat-grid.four .stat-label { font-size: 10.5px; }
.empty { text-align: center; padding: 34px 16px; }
.empty.small { padding: 18px 8px; }
.empty-ic { width: 60px; height: 60px; border-radius: 18px; background: var(--s2); display: grid; place-items: center; margin: 0 auto 14px; color: var(--accent); border: 1px solid var(--line); }
.empty h4 { font-size: 17px; margin-bottom: 6px; }
.empty p { color: var(--tx-2); font-size: 14px; max-width: 360px; margin: 0 auto 14px; }
.bar-track { height: 8px; border-radius: 99px; background: var(--s3); overflow: hidden; }
.bar-track i { display: block; height: 100%; background: var(--lime); border-radius: 99px; transition: width .6s var(--ease); }
.bar-track.info i { background: var(--info); } .bar-track.c i { background: var(--carb); } .bar-track.f i { background: var(--fat); }
.switch { width: 50px; height: 30px; border-radius: 99px; background: var(--s4); position: relative; flex: none; transition: background .25s; cursor: pointer; }
.switch i { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.switch.on { background: var(--lime); } .switch.on i { transform: translateX(20px); }

/* ---------- Form ---------- */
.form { display: block; }
.field { display: block; margin: 10px 0; }
.field-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--tx-2); margin: 12px 2px 6px; }
.field-label small { color: var(--tx-3); font-weight: 500; }
.field .field-label { margin-top: 0; }
.field-input { display: flex; align-items: center; background: var(--s2); border: 1px solid var(--line); border-radius: 13px; padding: 0 12px; gap: 8px; transition: border-color .2s; }
.field-input:focus-within { border-color: var(--lime-dim); }
.field-input input, .field-input select, .field-input textarea { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: var(--tx); font-size: 16px; height: 46px; -webkit-appearance: none; appearance: none; }
.field-input textarea { height: auto; padding: 12px 0; resize: vertical; line-height: 1.4; }
.field-input select { background-image: none; }
.field-input em { font-style: normal; color: var(--tx-3); font-size: 13px; white-space: nowrap; }
.field .hint { margin: 4px 2px 0; display: block; }
input[type="date"], input[type="time"] { min-height: 46px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.form-row .field { margin: 6px 0; }
.check-row { display: flex; gap: 12px; align-items: center; padding: 10px 2px; font-size: 14.5px; cursor: pointer; }
.check-row input { width: 22px; height: 22px; accent-color: var(--lime); flex: none; }
.search-box { display: flex; align-items: center; gap: 8px; background: var(--s2); border: 1px solid var(--line); border-radius: 14px; padding: 0 12px; margin-bottom: 10px; color: var(--tx-3); }
.search-box input { flex: 1; min-width: 0; height: 44px; background: transparent; border: 0; outline: none; color: var(--tx); font-size: 16px; -webkit-appearance: none; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }

/* ---------- Liste ---------- */
.list-card { padding: 2px 14px; }
.li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); width: 100%; text-align: left; color: var(--tx); min-height: 50px; }
.li:last-child { border-bottom: 0; }
.li-ic { width: 32px; height: 32px; border-radius: 10px; background: var(--s3); display: grid; place-items: center; color: var(--tx-2); flex: none; }
.li-ic.pr { background: var(--lime-soft); color: var(--accent); } .li-ic.pain { background: rgba(255,93,80,.12); color: var(--danger); } .li-ic.good { color: var(--good); } .li-ic.warn { color: var(--warn); background: rgba(255,181,71,.11); }
.li-txt { flex: 1; min-width: 0; font-size: 14px; color: var(--tx-2); }
.li-txt b { display: block; font-size: 15px; font-weight: 600; color: var(--tx); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li-txt small { display: block; font-size: 12.5px; color: var(--tx-2); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; }
.li-txt b + small { margin-top: 2px; }
.li-val { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 14px; }
.li-val small { font-size: 11.5px; font-weight: 600; }
.li-val.small { font-size: 12.5px; font-weight: 600; color: var(--tx-2); }
.menu-list button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 2px; border-bottom: 1px solid var(--line); color: var(--tx); font-size: 15px; text-align: left; }
.menu-list button:last-child { border-bottom: 0; }
.menu-list button b { color: var(--accent); font-weight: 600; margin-left: auto; text-align: right; }
.menu-list button small { color: var(--tx-3); font-size: 12.5px; display: block; margin-top: 2px; }
.menu-list button span { flex: 1; }
.menu-list button.on { color: var(--accent); }
.menu-list.tall button { padding: 16px 2px; }
.menu-list.tall b { margin-left: 0; color: var(--tx); display: block; font-size: 15.5px; }
.menu-list button svg { color: var(--tx-2); }

/* ---------- Ana sayfa ---------- */
.home-head { display: flex; justify-content: space-between; align-items: center; margin: 2px 0 16px; }
.brand { display: flex; align-items: center; gap: 10px; }
.logo-mark { display: block; border-radius: 10px; }
.wordmark { font-family: var(--font-d); font-weight: 900; font-style: italic; letter-spacing: .01em; font-size: 19px; }
.wordmark span { color: var(--accent); margin-left: 5px; }
.hello h1 { font-size: 29px; font-weight: 800; letter-spacing: -.025em; }
.hello p { color: var(--tx-2); margin: 2px 0 12px; font-size: 14px; }
.quote { display: flex; gap: 10px; align-items: flex-start; background: var(--s1); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; color: var(--tx-2); margin-bottom: 12px; }
.quote svg { color: var(--accent); margin-top: 2px; }
.quote p { margin: 0; font-size: 14px; font-style: italic; line-height: 1.45; }
.quick-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.quick-row button { height: 64px; background: var(--s1); border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; font-size: 12px; font-weight: 600; transition: transform .12s; }
.quick-row button svg { color: var(--accent); }
.quick-row button:active { transform: scale(.96); }
.hero { background: var(--hero); border: 1px solid var(--lime-dim); border-radius: 26px; padding: 20px; margin-bottom: 12px; position: relative; overflow: hidden; }
.hero-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.hero h2 { font-size: 28px; font-weight: 800; letter-spacing: -.025em; }
.hero p { color: var(--tx-2); margin: 4px 0 12px; font-size: 14px; }
.hero-ex { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.hero-ex span { font-size: 12px; padding: 5px 9px; border-radius: 9px; background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--tx-2); }
[data-theme="light"] .hero-ex span { background: rgba(255,255,255,.7); }
.hero .btn.ghost { margin-top: 6px; }
.pulse { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); animation: pulse 1.4s infinite; flex: none; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.8); } }
.week-card { display: flex; gap: 16px; align-items: center; }
.week-right { flex: 1; min-width: 0; }
.week-dots { display: flex; justify-content: space-between; margin-bottom: 10px; }
.week-dots span { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 10.5px; color: var(--tx-3); font-weight: 600; }
.week-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--s3); display: block; }
.week-dots .on i { background: var(--lime); box-shadow: 0 0 10px var(--lime-dim); }
.week-dots .today { color: var(--tx); }
.mini-stats { display: flex; gap: 14px; font-size: 13px; color: var(--tx-2); flex-wrap: wrap; }
.mini-stats b { color: var(--tx); font-variant-numeric: tabular-nums; }
.ring { position: relative; flex: none; }
.ring svg { display: block; }
.ring-bg { stroke: var(--s3); }
.ring-fg { transition: stroke-dashoffset .9s var(--ease); }
.ring-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; line-height: 1.1; }
.ring-text b { font-family: var(--font-d); font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ring-text small { font-size: 10.5px; color: var(--tx-3); margin-top: 2px; }
.cal-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.cal-nav b { font-size: 15px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-h { text-align: center; font-size: 10.5px; color: var(--tx-3); font-weight: 700; padding-bottom: 4px; }
.cal-d { aspect-ratio: 1; border-radius: 10px; font-size: 13px; color: var(--tx-2); display: grid; place-items: center; position: relative; font-variant-numeric: tabular-nums; }
.cal-d.on { background: var(--lime); color: var(--on-lime); font-weight: 800; }
.cal-d.today { box-shadow: inset 0 0 0 1.5px var(--lime-dim); color: var(--tx); }
.cal-d i { position: absolute; top: 2px; right: 4px; font-size: 9px; font-style: normal; font-weight: 800; }
.cons-row { display: flex; justify-content: space-between; margin: 14px 0 6px; font-size: 14px; color: var(--tx-2); }
.cons-row b { color: var(--tx); font-variant-numeric: tabular-nums; }
.muscle-card .mc-map { max-width: 240px; margin: 0 auto 10px; cursor: pointer; }
.banner { display: flex; align-items: center; gap: 12px; width: 100%; background: rgba(255,181,71,.08); border: 1px solid rgba(255,181,71,.28); border-radius: 16px; padding: 12px 14px; margin-bottom: 12px; text-align: left; }
.banner > svg:first-child { color: var(--warn); }
.banner span { flex: 1; } .banner b { display: block; font-size: 14.5px; } .banner small { color: var(--tx-2); font-size: 12.5px; }
.onboard { display: flex; gap: 12px; align-items: flex-start; } .onboard > svg { color: var(--accent); margin-top: 2px; } .onboard p { color: var(--tx-2); font-size: 13.5px; margin: 4px 0 10px; }
.slogan { text-align: center; font-size: 11.5px; font-weight: 800; letter-spacing: .24em; color: var(--tx-3); margin: 34px 0 6px; }
.slogan-sm { font-weight: 800; letter-spacing: .18em; font-size: 12px; }

/* ---------- Grafikler ---------- */
.chart { position: relative; }
.chart-svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart-svg .grid { stroke: var(--line); stroke-width: 1; }
.chart-svg .ax { fill: var(--tx-3); font-size: 10px; font-family: var(--font); font-variant-numeric: tabular-nums; }
.chart-svg circle.chart-pt { fill: var(--bg); stroke: var(--c, var(--lime)); stroke-width: 2.2; cursor: pointer; }
.chart-svg circle.chart-pt.hollow { stroke-dasharray: 2 2; fill: var(--s1); }
.chart-svg circle.chart-pt.hl { fill: var(--c, var(--lime)); }
.chart-svg rect.bar { cursor: pointer; transition: opacity .2s; }
.chart-svg rect.bar.hl { filter: drop-shadow(0 0 4px var(--lime-dim)); }
.chart-svg .band { fill: var(--lime-soft); }
.chart-svg .goal { stroke: var(--tx-3); stroke-dasharray: 4 4; stroke-width: 1.2; }
.chart-svg .line2 { stroke: var(--tx-2); stroke-width: 1.6; stroke-dasharray: 4 3; }
.chart-tip { position: absolute; z-index: 3; background: var(--s4); color: var(--tx); font-size: 12px; font-weight: 600; padding: 5px 9px; border-radius: 8px; pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s; white-space: nowrap; box-shadow: var(--shadow); }
.chart-tip.show { opacity: 1; transform: none; }
.chart-empty { padding: 30px 10px; text-align: center; color: var(--tx-3); font-size: 13px; }
.spark { display: block; } .spark-empty { display: inline-block; width: 84px; }
.hbars { display: flex; flex-direction: column; }
.hbar-row { display: grid; grid-template-columns: 88px 1fr 56px; align-items: center; gap: 10px; padding: 6px 0; width: 100%; font-size: 13px; text-align: left; }
.hbar-label { color: var(--tx-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar-track { height: 10px; background: var(--s3); border-radius: 99px; overflow: hidden; display: flex; }
.hbar-p { background: var(--lime); height: 100%; transition: width .6s var(--ease); }
.hbar-s { background: var(--lime-dim); height: 100%; transition: width .6s var(--ease); }
.hbar-val { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.hbar-val small { color: var(--tx-3); font-weight: 600; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11.5px; color: var(--tx-3); margin-top: 8px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.lg-p { background: var(--lime); } .lg-s { background: var(--lime-dim); } .lg-h { border: 2px dashed var(--lime); border-radius: 50% !important; }
.lg-line { width: 14px !important; height: 0 !important; border-top: 2px dashed var(--tx-2); border-radius: 0 !important; }

/* ---------- Kas haritası ---------- */
.bodymap { width: 100%; max-width: 380px; display: block; margin: 0 auto; }
.bodymap .mz { fill: var(--map-base); stroke: var(--bg); stroke-width: .9; transition: fill .45s var(--ease); }
.bodymap .mz.l1 { fill: color-mix(in srgb, var(--lime) 26%, var(--map-base)); }
.bodymap .mz.l2 { fill: color-mix(in srgb, var(--lime) 48%, var(--map-base)); }
.bodymap .mz.l3 { fill: color-mix(in srgb, var(--lime) 74%, var(--map-base)); }
.bodymap .mz.l4 { fill: var(--lime); }
.bodymap .mz-n { fill: var(--map-n); stroke: var(--bg); stroke-width: .9; }
.bodymap .mz-line { stroke: var(--bg); stroke-width: 1; fill: none; opacity: .6; }
.bodymap .map-lbl { fill: var(--tx-3); font-size: 11px; font-weight: 700; letter-spacing: .14em; font-family: var(--font); }
.bodymap.interactive .mz { cursor: pointer; }
.bodymap.interactive .mz:active { opacity: .7; }
.map-legend { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; font-size: 11px; color: var(--tx-3); margin-top: 10px; justify-content: center; }
.map-legend span { margin-right: 4px; }
.map-legend .sw { width: 16px; height: 10px; border-radius: 3px; background: var(--map-base); display: inline-block; }
.map-legend .sw.l1 { background: color-mix(in srgb, var(--lime) 26%, var(--map-base)); } .map-legend .sw.l2 { background: color-mix(in srgb, var(--lime) 48%, var(--map-base)); }
.map-legend .sw.l3 { background: color-mix(in srgb, var(--lime) 74%, var(--map-base)); } .map-legend .sw.l4 { background: var(--lime); }
.map-legend em { font-style: normal; margin-right: 6px; }
.map-card h4 { text-align: center; }

/* ---------- Antrenman kartları / geçmiş ---------- */
.wcard { display: block; width: 100%; text-align: left; background: var(--s1); border: 1px solid var(--line); border-radius: 20px; padding: 14px 16px; margin-bottom: 10px; transition: transform .12s, border-color .2s; }
.wcard:active { transform: scale(.985); }
.wcard.selected { border-color: var(--lime); box-shadow: 0 0 0 1px var(--lime-dim); }
.wcard-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.wcard-top h3 { font-size: 16.5px; font-weight: 700; }
.wcard-top p { font-size: 12.5px; color: var(--tx-2); margin: 2px 0 0; }
.wcard-stats { display: flex; gap: 12px; margin: 10px 0 6px; font-size: 12.5px; color: var(--tx-2); flex-wrap: wrap; }
.wcard-stats span { display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.wcard-ex { font-size: 12.5px; color: var(--tx-3); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sel-dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; flex: none; }
.selected .sel-dot { background: var(--lime); color: var(--on-lime); border-color: var(--lime); }
.toolbar { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.toolbar .seg { flex: 1; margin: 0; }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--lime-soft); color: var(--accent); border-radius: 999px; padding: 5px 6px 5px 12px; font-size: 13px; font-weight: 600; margin: 0 6px 10px 0; }
.filter-chip button { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.15); }
.sticky-cta { position: sticky; bottom: calc(var(--tab-h) + var(--sb) + 10px); z-index: 5; margin-top: 14px; padding-top: 6px; }
.sticky-cta.two { display: flex; gap: 8px; background: var(--glass-2); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border: 1px solid var(--line-2); border-radius: 22px; padding: 8px; box-shadow: var(--shadow); }
.sticky-cta.two .btn.big { height: 52px; }
.ttable { display: flex; flex-direction: column; margin-top: 4px; }
.trow { display: grid; grid-template-columns: 30px 1fr; column-gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); align-items: center; }
.trow:last-child { border-bottom: 0; }
.tno { width: 26px; height: 24px; border-radius: 7px; background: var(--s3); font-size: 12px; font-weight: 800; display: grid; place-items: center; color: var(--tx-2); }
.tno.t-warmup { color: var(--warn); } .tno.t-drop { color: var(--info); } .tno.t-failure { color: var(--danger); } .tno.t-restpause { color: var(--violet); }
.tval { font-size: 14.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tdet { grid-column: 2; font-size: 12px; color: var(--tx-2); }
.tdet:empty { display: none; }
.tdet em { color: var(--tx-2); }
.trow.undone { opacity: .55; }
.ex-detail .exd-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; text-align: left; }
.ex-detail .exd-head b { display: block; font-size: 15.5px; } .ex-detail .exd-head small { display: block; font-size: 12px; color: var(--tx-2); }
.ex-detail .exd-head .muted { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.raw { font-size: 12px; color: var(--tx-3); font-style: italic; margin: 6px 0 4px; }
.flag-line { font-size: 12px; color: var(--warn); margin: 3px 0; display: flex; gap: 5px; align-items: flex-start; }
.flag-line svg { margin-top: 2px; }
.ex-note { font-size: 13px; color: var(--tx-2); background: var(--s2); border-radius: 10px; padding: 8px 10px; margin: 6px 0; }
.info-box, .warn-box { display: flex; gap: 10px; align-items: flex-start; background: rgba(90,200,250,.07); border: 1px solid rgba(90,200,250,.22); border-radius: 14px; padding: 12px; font-size: 13.5px; color: var(--tx-2); margin-bottom: 12px; }
.info-box > svg { color: var(--info); margin-top: 1px; }
.warn-box { background: rgba(255,181,71,.08); border-color: rgba(255,181,71,.25); margin: 12px 0 4px; }
.warn-box > svg { color: var(--warn); margin-top: 1px; }
.warn-box b { color: var(--tx); }
.note-card { display: flex; gap: 10px; align-items: flex-start; } .note-card > svg { color: var(--accent); margin-top: 2px; } .note-card p { margin: 0; }
.btn-card { width: 100%; text-align: left; }
.action-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.action-grid button { height: 74px; background: var(--s1); border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; font-weight: 600; }
.action-grid button svg { color: var(--accent); }
.action-grid button.danger-text svg { color: var(--danger); }
.cmp-head { display: flex; align-items: stretch; gap: 8px; }
.cmp-col { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cmp-col b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .cmp-col small, .cmp-col span { font-size: 12.5px; color: var(--tx-2); }
.cmp-col .lime-text { color: var(--accent); font-weight: 700; }
.cmp-vs { color: var(--tx-3); align-self: center; }
.cmp-row h4 { font-size: 15px; }
.cmp-cells { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.cmp-cells > div { background: var(--s2); border-radius: 12px; padding: 10px; font-size: 13px; font-variant-numeric: tabular-nums; }
.cmp-cells small { display: block; color: var(--tx-3); margin-top: 4px; }
.summary-hero { text-align: center; padding: 26px 0 12px; }
.summary-hero h1 { font-size: 30px; font-weight: 800; margin-top: 6px; letter-spacing: -.02em; }
.summary-hero p { color: var(--tx-2); }
.done-badge { width: 78px; height: 78px; border-radius: 50%; background: var(--lime); color: var(--on-lime); display: grid; place-items: center; margin: 0 auto 16px; animation: pop .55s var(--ease), glow 2.4s ease-out .3s; }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
@keyframes glow { 0% { box-shadow: 0 0 0 0 rgba(198,245,59,.55); } 100% { box-shadow: 0 0 0 26px rgba(198,245,59,0); } }
.pr-list .li-val { color: var(--accent); }

/* ---------- Program ---------- */
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 4px; }
.qbtn { height: 96px; border-radius: 20px; background: var(--s1); border: 1px solid var(--line); padding: 14px; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 2px; text-align: left; transition: transform .12s; }
.qbtn:active { transform: scale(.97); }
.qbtn svg { margin-bottom: auto; color: var(--accent); }
.qbtn b { font-size: 15.5px; } .qbtn small { font-size: 12px; color: var(--tx-2); }
.qbtn.primary { background: var(--lime); border-color: var(--lime); color: var(--on-lime); }
.qbtn.primary svg, .qbtn.primary small { color: var(--on-lime); opacity: .85; }
.program-card .pc-head, section .pc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 4px; }
.pc-head h3 { font-size: 17px; font-weight: 700; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pc-head p { color: var(--tx-2); font-size: 13px; margin: 2px 0 0; }
.program-card.active { border-color: var(--lime-dim); }
.day-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.day-row > div { flex: 1; min-width: 0; }
.day-row b { font-size: 15px; } .day-row .badge { margin-left: 6px; }
.day-row small { display: block; font-size: 12.5px; color: var(--tx-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.day-row.next b { color: var(--accent); }
.link-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.link-grid button { background: var(--s1); border: 1px solid var(--line); border-radius: 18px; padding: 14px; text-align: left; display: flex; flex-direction: column; gap: 4px; min-height: 104px; }
.link-grid svg { color: var(--accent); margin-bottom: 6px; }
.link-grid b { font-size: 14px; } .link-grid small { font-size: 12px; color: var(--tx-3); }
.day-card .day-head { display: flex; gap: 8px; align-items: center; margin-bottom: 4px; }
.day-name { flex: 1; min-width: 0; background: transparent; border: 0; border-bottom: 1px dashed var(--line-2); color: var(--tx); font-size: 17px; font-weight: 700; padding: 6px 0; outline: none; font-family: var(--font-d); }
.pex-row { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pex-txt { flex: 1; min-width: 0; } .pex-txt b { font-size: 14.5px; display: block; }
.pex-txt small { display: block; font-size: 12.5px; color: var(--tx-2); } .pex-txt em { display: block; font-size: 12px; color: var(--tx-3); }
.pex-btns { display: flex; gap: 2px; }

/* ---------- Kütüphane ---------- */
.lib-list, .pick-list { display: flex; flex-direction: column; }
.lib-row, .pick-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 2px; border-bottom: 1px solid var(--line); text-align: left; }
.lib-txt, .pick-txt { flex: 1; min-width: 0; }
.lib-txt b, .pick-txt b { display: block; font-size: 15px; font-weight: 600; }
.lib-txt small, .pick-txt small { display: block; font-size: 12px; color: var(--tx-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.tags i { font-style: normal; font-size: 11px; background: var(--s3); padding: 2px 7px; border-radius: 6px; color: var(--tx-2); }
.tags i.dim { opacity: .7; background: transparent; border: 1px solid var(--line); } .tags i.lime { color: var(--accent); background: var(--lime-soft); }
.lib-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; color: var(--tx-3); font-size: 12px; }
.fav { color: var(--accent); }
.pick-check { width: 30px; height: 30px; border-radius: 50%; background: var(--s3); display: grid; place-items: center; flex: none; color: var(--tx-2); transition: all .2s; }
.pick-row.on .pick-check { background: var(--lime); color: var(--on-lime); }
.pick-row.dim { opacity: .5; }
.ex-info { display: grid; grid-template-columns: 128px 1fr; gap: 14px; align-items: center; }
.ex-map .bodymap { max-width: 128px; }
.ex-facts > div { margin-bottom: 9px; } .ex-facts small { display: block; font-size: 11.5px; color: var(--tx-3); } .ex-facts b { font-size: 14px; font-weight: 600; }
.tips { padding-left: 18px; } .tips li { margin: 7px 0; color: var(--tx-2); font-size: 14px; } .tips li b { color: var(--tx); }

/* ---------- Asistan paneli ---------- */
.assist-panel { display: flex; flex-direction: column; gap: 4px; }
.ap-sug { background: var(--s2); border: 1px solid var(--line-2); border-radius: 16px; padding: 14px; }
.ap-sug.increase { background: linear-gradient(135deg, var(--lime-soft), transparent 70%), var(--s2); border-color: var(--lime-dim); }
.ap-sug-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; } .ap-sug-head svg { color: var(--accent); }
.ap-sug-head b { flex: 1; font-size: 15.5px; }
.ap-sug p { font-size: 14px; }
.ap-list { padding-left: 0; list-style: none; margin: 8px 0; }
.ap-list li { font-size: 13px; color: var(--tx-2); margin: 5px 0; display: flex; gap: 6px; align-items: flex-start; }
.ap-list li::before { content: "•"; color: var(--tx-3); }
.ap-list.caution li { color: var(--warn); } .ap-list.caution li::before { content: none; } .ap-list.caution svg { margin-top: 2px; }
.ap-block { margin: 12px 0 2px; }
.ap-block h4 { font-size: 12.5px; font-weight: 700; color: var(--tx-2); text-transform: uppercase; letter-spacing: .07em; display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-family: var(--font); }
.ap-block h4 small { text-transform: none; letter-spacing: 0; color: var(--tx-3); font-weight: 500; }
.ap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 4px; }
.ap-grid > div { background: var(--s2); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.ap-grid small { display: block; color: var(--tx-3); font-size: 11.5px; }
.ap-grid b { display: block; font-size: 16.5px; font-weight: 800; font-variant-numeric: tabular-nums; font-family: var(--font-d); }
.ap-grid em { display: block; font-style: normal; color: var(--tx-3); font-size: 11px; }
.ap-hist > div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; font-variant-numeric: tabular-nums; }
.ap-hist span:first-child { color: var(--tx-3); white-space: nowrap; }
.ap-hist span:last-child { text-align: right; }
.notes-list .note-item { display: flex; gap: 8px; font-size: 13px; padding: 6px 0; color: var(--tx-2); align-items: flex-start; }
.note-item svg { margin-top: 2px; color: var(--tx-3); } .note-item.pain svg { color: var(--danger); } .note-item.form svg { color: var(--warn); }
.note-item b { color: var(--tx); font-weight: 600; }

/* ---------- Antrenman kayıt ekranı ---------- */
.workout-layer { position: fixed; inset: 0; z-index: 50; background: var(--bg); transform: translateY(102%); transition: transform .4s var(--ease); visibility: hidden; }
.workout-layer.open { transform: none; visibility: visible; }
.wk { display: flex; flex-direction: column; height: 100%; max-width: 640px; margin: 0 auto; position: relative; }
.wk-head { display: flex; align-items: center; gap: 8px; padding: calc(var(--st) + 6px) 12px 10px; border-bottom: 1px solid var(--line); background: var(--glass); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); z-index: 2; }
.wk-title { flex: 1; min-width: 0; }
.wk-name { width: 100%; background: transparent; border: 0; outline: none; color: var(--tx); font-size: 17px; font-weight: 700; padding: 2px 0; font-family: var(--font-d); }
.wk-sub { display: block; font-size: 12.5px; color: var(--tx-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
#wk-clock { color: var(--accent); font-weight: 700; }
.wk-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 12px 12px calc(var(--sb) + 150px); overscroll-behavior: contain; }
.wk-meta { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.wk-meta.card { gap: 6px; }
.meta-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--tx-2); flex-wrap: wrap; }
.meta-row > span { display: inline-flex; align-items: center; gap: 6px; }
.meta-row .chips { margin: 0; }
.meta-note { display: flex; gap: 8px; align-items: center; width: 100%; text-align: left; background: var(--s1); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; color: var(--tx-2); font-size: 13.5px; }
.ex-card { background: var(--s1); border: 1px solid var(--line); border-radius: 22px; padding: 12px 10px 10px; margin-bottom: 12px; }
.ex-head { display: flex; align-items: flex-start; gap: 4px; padding: 0 2px; }
.ex-name { flex: 1; min-width: 0; text-align: left; padding: 2px; }
.ex-name b { display: block; font-size: 17px; font-weight: 700; font-family: var(--font-d); }
.ex-name small { display: block; font-size: 12px; color: var(--tx-3); }
.ex-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 2px; }
.mini-chip { height: 28px; padding: 0 10px; border-radius: 9px; background: var(--s3); color: var(--tx-2); font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mini-chip.accent { color: var(--accent); background: var(--lime-soft); }
.mini-chip.pain { color: var(--danger); background: rgba(255,93,80,.12); } .mini-chip.warn { color: var(--warn); background: rgba(255,181,71,.12); }
.mini-chip.dim { opacity: .65; }
.assist { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line-2); background: var(--s2); border-radius: 14px; padding: 9px 10px 9px 12px; margin: 4px 2px 10px; cursor: pointer; }
.assist.increase { border-color: var(--lime-dim); background: linear-gradient(90deg, var(--lime-soft), transparent 80%), var(--s2); }
.assist-ic { color: var(--accent); flex: none; }
.assist-txt { flex: 1; min-width: 0; }
.assist-txt b { display: block; font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.assist-txt small { display: block; font-size: 12px; color: var(--tx-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.assist-apply { background: var(--lime); color: var(--on-lime); font-size: 12.5px; font-weight: 800; padding: 7px 11px; border-radius: 10px; flex: none; }
.ex-pin { font-size: 12.5px; color: var(--tx-2); background: var(--lime-soft); border-radius: 10px; padding: 8px 10px; margin: 0 2px 8px; display: flex; gap: 6px; align-items: flex-start; }
.ex-pin svg { color: var(--accent); margin-top: 1px; }
.ex-flags { margin: 0 2px 6px; }
.flag { display: inline-block; font-size: 11px; background: rgba(255,181,71,.1); color: var(--warn); padding: 3px 7px; border-radius: 6px; margin: 0 4px 4px 0; }
.sets-head, .set-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) 64px 56px 42px 46px; gap: 6px; align-items: center; }
.sets-head.no-rir, .set-row.no-rir { grid-template-columns: 30px minmax(0, 1fr) 74px 64px 0 46px; }
.sets-head.c-plates, .set-row.c-plates { grid-template-columns: 30px minmax(0, 1fr) 104px 52px 40px 46px; }
.sets-head.c-plates.no-rir, .set-row.c-plates.no-rir { grid-template-columns: 30px minmax(0, 1fr) 112px 58px 0 46px; }
.sets-head.c-uni, .set-row.c-uni { grid-template-columns: 30px minmax(0, .9fr) minmax(0, 1.9fr) 40px 46px; }
.sets-head.c-uni.no-rir, .set-row.c-uni.no-rir { grid-template-columns: 30px minmax(0, .9fr) minmax(0, 2fr) 0 46px; }
.sets-head.c-cardio, .set-row.c-cardio { grid-template-columns: 30px minmax(0, 1fr) 68px 68px 0 46px; }
.sets-head { padding: 0 0 4px; }
.sets-head span { font-size: 10px; font-weight: 700; color: var(--tx-3); letter-spacing: .06em; text-align: center; white-space: nowrap; overflow: hidden; }
.sets-head span:first-child { text-align: left; padding-left: 4px; }
.sets-head span svg { margin: 0 auto; }
.set-wrap { margin: 3px 0; }
.set-row { min-height: 46px; border-radius: 12px; padding: 3px 0; transition: background .25s; }
.set-row.done { background: color-mix(in srgb, var(--lime) 9%, transparent); }
.set-no { width: 30px; height: 34px; border-radius: 9px; background: var(--s3); color: var(--tx-2); font-size: 13px; font-weight: 800; display: grid; place-items: center; }
.set-no.t-warmup { color: var(--warn); } .set-no.t-drop { color: var(--info); } .set-no.t-failure { color: var(--danger); } .set-no.t-restpause { color: var(--violet); font-size: 11px; }
.set-prev { color: var(--tx-3); font-size: 12.5px; font-variant-numeric: tabular-nums; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; height: 34px; padding: 0 2px; }
.set-prev.uni { height: auto; display: flex; flex-direction: column; gap: 22px; padding: 6px 0; }
.in { width: 100%; height: 40px; background: var(--s3); border: 1.5px solid transparent; border-radius: 10px; color: var(--tx); font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: center; padding: 0 2px; outline: none; -webkit-appearance: none; appearance: none; transition: border-color .15s, background .15s; min-width: 0; }
.in:focus { border-color: var(--lime); background: var(--s2); }
.in.sug { color: var(--tx-3); }
.in.bad { border-color: var(--danger); }
.in::placeholder { color: var(--tx-3); font-weight: 500; font-size: 13px; }
.in-rir { font-size: 15px; }
.set-row.done .in { background: transparent; color: var(--tx); }
.set-check { width: 46px; height: 40px; border-radius: 11px; background: var(--s3); color: var(--tx-3); display: grid; place-items: center; transition: background .2s, color .2s, transform .12s; }
.set-check:active { transform: scale(.92); }
.set-row.done .set-check { background: var(--lime); color: var(--on-lime); animation: pop .35s var(--ease); }
.pl-in { display: flex; align-items: center; gap: 3px; } .pl-in i { color: var(--tx-3); font-style: normal; font-size: 12px; }
.uni-cols { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.uni-line { display: grid; grid-template-columns: 26px 1fr 1fr; gap: 4px; align-items: center; }
.uni-line span { font-size: 10.5px; font-weight: 700; color: var(--tx-3); }
.uni-line .in { height: 36px; }
.set-det { font-size: 12px; color: var(--tx-2); padding: 2px 4px 4px 38px; }
.set-det em { color: var(--tx-2); }
.set-row.is-pr .set-no { background: var(--lime); color: var(--on-lime); animation: prglow 1.6s ease-out 2; }
@keyframes prglow { 0% { box-shadow: 0 0 0 0 rgba(198,245,59,.7); } 100% { box-shadow: 0 0 0 12px rgba(198,245,59,0); } }
.shake { animation: shake .4s; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
.ex-foot { display: flex; gap: 8px; margin-top: 8px; }
.add-set { flex: 1; height: 40px; border-radius: 11px; background: var(--s2); border: 1px dashed var(--line-2); color: var(--tx-2); font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.add-set.ghost { flex: 0 0 auto; border: 0; background: transparent; padding: 0 12px; }
.add-ex { margin: 6px 0 16px; width: 100%; }
.wk-bottom-space { height: 40px; }
.rest-dock { position: absolute; left: 10px; right: 10px; bottom: calc(var(--sb) + 10px); z-index: 4; background: var(--glass-2); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 1px solid var(--lime-dim); border-radius: 22px; padding: 8px 10px 10px; transform: translateY(160%); transition: transform .35s var(--ease); box-shadow: var(--shadow); }
.rest-dock.show { transform: none; }
.rest-dock.over { border-color: var(--lime); box-shadow: 0 0 0 1px var(--lime-dim), var(--shadow); }
.rest-bar { height: 4px; background: var(--s3); border-radius: 99px; overflow: hidden; margin: 2px 6px 8px; }
.rest-bar i { display: block; height: 100%; background: var(--lime); transform-origin: left; transition: transform .25s linear; }
.rest-row { display: grid; grid-template-columns: 58px 1fr 58px 50px; gap: 8px; align-items: center; }
.rest-btn { height: 46px; border-radius: 13px; background: var(--s3); color: var(--tx); font-size: 14.5px; font-weight: 700; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.rest-btn.skip { color: var(--tx-2); }
.rest-time { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.rest-time small { font-size: 11px; color: var(--tx-2); margin-bottom: 3px; white-space: nowrap; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.rest-time b { font-family: var(--font-r); font-size: 36px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.rest-dock.over .rest-time b { color: var(--accent); animation: pulse 1.2s infinite; }
.rest-big { position: relative; display: grid; place-items: center; margin: 4px auto 14px; width: 240px; height: 240px; }
.rest-big .ring { position: absolute; inset: 0; }
.rb-time { position: relative; font-family: var(--font-r); font-size: 60px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.rest-big.over .rb-time { color: var(--accent); }
.rest-adj { display: flex; gap: 10px; justify-content: center; margin-bottom: 6px; }
.finish-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 6px; text-align: center; }
.finish-sum > div { background: var(--s2); border-radius: 14px; padding: 12px 6px; }
.finish-sum b { display: block; font-size: 24px; font-weight: 800; font-family: var(--font-d); font-variant-numeric: tabular-nums; }
.finish-sum small { color: var(--tx-3); font-size: 12px; }

.minibar { position: fixed; left: 12px; right: 12px; bottom: calc(var(--tab-h) + var(--sb) + 8px); z-index: 41; max-width: 556px; margin: 0 auto; transform: translateY(20px); opacity: 0; pointer-events: none; transition: all .3s var(--ease); }
.minibar.show { transform: none; opacity: 1; pointer-events: auto; }
.mb-main { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--glass-2); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 1px solid var(--lime-dim); border-radius: 18px; box-shadow: var(--shadow); text-align: left; }
.mb-txt { flex: 1; min-width: 0; } .mb-txt b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .mb-txt small { font-size: 12px; color: var(--tx-2); font-variant-numeric: tabular-nums; }
.mb-rest { font-family: var(--font-r); font-size: 16px; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }

/* ---------- Alt sayfa (sheet) ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 80; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); opacity: 0; transition: opacity .3s; }
.sheet-wrap.open .sheet-backdrop { opacity: 1; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-width: 620px; margin: 0 auto; max-height: calc(100dvh - var(--st) - 30px); background: var(--s1); border-radius: 26px 26px 0 0; border: 1px solid var(--line); border-bottom: 0; display: flex; flex-direction: column; transform: translateY(105%); transition: transform .36s var(--ease); padding-bottom: var(--sb); box-shadow: 0 -10px 40px rgba(0,0,0,.4); }
[data-theme="dark"] .sheet { background: #111312; }
.sheet-wrap.open .sheet { transform: none; }
.sheet-tall { height: calc(100dvh - var(--st) - 30px); }
.sheet-grab { padding: 8px 0 2px; display: grid; place-items: center; touch-action: none; cursor: grab; }
.sheet-grab span { width: 38px; height: 5px; border-radius: 3px; background: var(--s4); }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 2px 10px 6px 18px; touch-action: none; gap: 8px; }
.sheet-head h3 { font-size: 18px; font-weight: 700; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-body { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0 18px 16px; flex: 1; overscroll-behavior: contain; }
.sheet-foot { display: flex; gap: 10px; padding: 10px 18px 12px; border-top: 1px solid var(--line); }
.sheet-compact .sheet-body p { font-size: 15px; }
.sheet-compact .sheet-foot .btn { flex: 1; }
.sheet h4 { font-size: 13px; font-weight: 700; color: var(--tx-2); text-transform: uppercase; letter-spacing: .07em; margin: 18px 0 8px; font-family: var(--font); }
.sheet-share .share-preview { text-align: center; margin: 4px 0; }
.sheet-share .share-preview img { max-height: 52dvh; max-width: 100%; border-radius: 14px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.file-ready { display: flex; gap: 12px; align-items: center; background: var(--s2); border-radius: 14px; padding: 14px; margin-bottom: 10px; }
.file-ready svg { color: var(--accent); } .file-ready b { display: block; word-break: break-all; } .file-ready small { color: var(--tx-3); }

/* ---------- Bildirim ---------- */
.toasts { position: fixed; top: calc(var(--st) + 8px); left: 12px; right: 12px; z-index: 120; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; max-width: 520px; width: 100%; display: flex; gap: 10px; align-items: center; background: var(--glass-2); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 1px solid var(--line-2); border-radius: 16px; padding: 11px 14px; box-shadow: var(--shadow); font-size: 14px; transform: translateY(-16px) scale(.98); opacity: 0; transition: transform .35s var(--ease), opacity .3s; }
.toast.show { transform: none; opacity: 1; }
.toast-ic { color: var(--accent); flex: none; } .toast-err .toast-ic { color: var(--danger); } .toast-warn .toast-ic { color: var(--warn); }
.toast-text { flex: 1; min-width: 0; }
.toast-btn { background: var(--lime); color: var(--on-lime); border-radius: 10px; padding: 7px 12px; font-size: 13px; font-weight: 800; flex: none; }
.toast-pr { border-color: var(--lime); position: relative; overflow: hidden; }
.toast-pr .pr-glow { position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(198,245,59,.22) 50%, transparent 70%); animation: shimmer 1.8s var(--ease) 2; pointer-events: none; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.pr-ic { width: 38px; height: 38px; border-radius: 50%; background: var(--lime); color: var(--on-lime) !important; display: grid; place-items: center; }
.toast-pr .toast-text b { display: block; font-size: 15px; } .toast-pr .toast-text small { display: block; font-size: 12.5px; color: var(--tx-2); }

/* ---------- Vücut ---------- */
.big-num { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.big-num b { display: block; font-family: var(--font-d); font-size: 46px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.05; margin-top: 4px; }
.big-num b small { font-size: 18px; color: var(--tx-2); font-weight: 600; }
.big-num p { color: var(--tx-2); font-size: 13px; margin: 2px 0 0; }
.mtable { padding: 4px 14px; }
.mrow { display: grid; grid-template-columns: 1.15fr 1fr 1fr .75fr; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; width: 100%; text-align: left; align-items: center; font-variant-numeric: tabular-nums; }
.mtable .mrow:last-child { border-bottom: 0; }
.mrow small { display: block; color: var(--tx-3); font-size: 11px; }
.mrow.head { font-size: 11px; color: var(--tx-3); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 6px 0; }
.mrow.on { background: var(--lime-soft); border-radius: 10px; }
.photo-day h4 { font-size: 13.5px; margin: 16px 2px 8px; color: var(--tx); text-transform: none; letter-spacing: 0; }
.photo-day h4 small { color: var(--tx-3); font-weight: 500; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.photo { position: relative; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: var(--s2); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo span { position: absolute; left: 6px; bottom: 6px; font-size: 11px; background: rgba(0,0,0,.62); color: #fff; padding: 2px 7px; border-radius: 6px; font-weight: 600; }
.photo.sel { outline: 3px solid var(--lime); outline-offset: -3px; }
.photo i { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; background: var(--lime); color: var(--on-lime); font-style: normal; font-weight: 800; font-size: 12px; display: grid; place-items: center; }
.photo-full img { width: 100%; border-radius: 14px; display: block; }
.ba-wrap { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 16px; background: var(--s2); }
.ba-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-top { position: absolute; inset: 0; }
.ba-line { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--lime); transform: translateX(-1px); box-shadow: 0 0 8px rgba(0,0,0,.5); }
.ba-tag { position: absolute; top: 10px; font-size: 12px; background: rgba(0,0,0,.62); color: #fff; padding: 3px 8px; border-radius: 8px; font-weight: 600; }
.ba-tag.l { left: 10px; } .ba-tag.r { right: 10px; }
.ba-range { width: 100%; margin: 14px 0 4px; accent-color: var(--lime); height: 28px; }
.side-by-side { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.side-by-side figure { margin: 0; } .side-by-side img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; display: block; }
.side-by-side figcaption { font-size: 12px; color: var(--tx-2); text-align: center; margin-top: 6px; }

/* ---------- Beslenme ---------- */
.date-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.date-lbl { text-align: center; } .date-lbl b { display: block; font-size: 17px; } .date-lbl small { color: var(--tx-3); font-size: 12px; }
.nut-sum { display: flex; gap: 16px; align-items: center; }
.nut-macros { flex: 1; min-width: 0; }
.macro { margin-bottom: 10px; }
.macro-top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 5px; color: var(--tx-2); gap: 6px; }
.macro-top b { color: var(--tx); font-variant-numeric: tabular-nums; white-space: nowrap; }
.water-card { display: flex; flex-direction: column; gap: 10px; }
.water-card > div:first-child { display: flex; gap: 10px; align-items: center; }
.water-card > div:first-child svg { color: var(--info); }
.water-card span b { display: block; font-size: 17px; font-variant-numeric: tabular-nums; } .water-card span small { color: var(--tx-3); font-size: 12px; }
.water-card .chips { margin: 0; }
.water-big { display: grid; place-items: center; margin: 4px 0 16px; }
.meal-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 2px; }
.meal-head h3 { font-size: 16px; }
.macro-preview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.macro-preview > div { background: var(--s2); border-radius: 12px; padding: 10px 4px; text-align: center; }
.macro-preview b { display: block; font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; } .macro-preview small { color: var(--tx-3); font-size: 11.5px; }

/* ---------- Gelişim ---------- */
.ach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ach { background: var(--s1); border: 1px solid var(--line); border-radius: 16px; padding: 12px; opacity: .6; }
.ach.on { opacity: 1; border-color: var(--lime-dim); }
.ach-ic { width: 32px; height: 32px; border-radius: 10px; background: var(--s3); display: grid; place-items: center; color: var(--tx-3); }
.ach.on .ach-ic { background: var(--lime-soft); color: var(--accent); }
.ach b { display: block; font-size: 14px; margin: 8px 0 2px; } .ach small { display: block; font-size: 12px; color: var(--tx-3); line-height: 1.3; }
.ach em { display: block; font-style: normal; font-size: 11.5px; color: var(--accent); margin-top: 6px; font-weight: 600; }
.ach .bar-track { margin-top: 8px; height: 5px; }
.report-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.report-head h3 { font-size: 18px; margin-top: 2px; }
.report-lines { padding-left: 18px; } .report-lines li { margin: 7px 0; font-size: 14px; color: var(--tx-2); }
.period-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 16px 0 8px; }
.period-nav span { font-size: 12.5px; font-weight: 700; color: var(--tx-2); text-transform: uppercase; letter-spacing: .1em; min-width: 50px; text-align: center; }

/* ---------- Ayarlar / içe aktarma ---------- */
.about-mini { display: flex; gap: 14px; align-items: center; }
.about-mini small { display: block; color: var(--tx-3); font-size: 12px; margin-top: 2px; letter-spacing: .04em; }
.about { text-align: center; } .about .logo-mark { margin: 6px auto 10px; border-radius: 18px; } .about h2 { font-size: 30px; }
.import-sum h3 { font-size: 18px; }
.confirm-card .seg { margin: 10px 0 0; }
.map-table { padding: 4px 14px; }
.map-row { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.map-row:last-child { border-bottom: 0; }
.map-src b { display: block; font-size: 15px; } .map-src small { display: block; font-size: 12px; color: var(--tx-3); margin-top: 2px; }
.map-src small.warn-text { color: var(--warn); display: flex; gap: 5px; align-items: flex-start; margin-top: 4px; }
.map-src small.warn-text svg { margin-top: 2px; }
.map-row select { width: 100%; height: 42px; background: var(--s2); border: 1px solid var(--line); border-radius: 11px; color: var(--tx); font-size: 15px; padding: 0 10px; }
.wprev summary { display: flex; justify-content: space-between; align-items: center; list-style: none; cursor: pointer; gap: 10px; }
.wprev summary::-webkit-details-marker { display: none; }
.wprev summary b { display: block; font-size: 15px; } .wprev summary small { display: block; color: var(--tx-3); font-size: 12px; }
.wprev[open] summary svg { transform: rotate(180deg); }
.wprev.dup { opacity: .5; }
.wprev-ex { padding: 10px 0; border-top: 1px solid var(--line); margin-top: 10px; font-size: 14px; }
.wprev-ex small { color: var(--accent); }
.psets { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; }
.pset { font-size: 12.5px; background: var(--s3); border-radius: 8px; padding: 4px 8px; font-variant-numeric: tabular-nums; }
.pset.miss { background: rgba(255,181,71,.1); }
.file-btn { position: relative; overflow: hidden; margin-top: 12px; }
.file-btn input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.done-card { text-align: center; }
.done-card h3 { font-size: 20px; margin-bottom: 8px; }
.error-card { display: flex; gap: 12px; align-items: flex-start; border-color: rgba(255,93,80,.3); }
.error-card > svg { color: var(--danger); }

/* ---------- Açılış ekranı ---------- */
#splash { position: fixed; inset: 0; z-index: 200; background: #000; display: grid; place-items: center; transition: opacity .45s; }
#splash.hide { opacity: 0; pointer-events: none; }
.splash-in { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.splash-in img { border-radius: 20px; animation: breathe 1.6s ease-in-out infinite; }
.splash-in b { font-family: var(--font-d); font-weight: 900; font-style: italic; font-size: 26px; color: #fff; letter-spacing: .01em; }
.splash-in b span { color: #c6f53b; margin-left: 6px; }
.splash-in small { color: #6b7069; font-size: 10.5px; letter-spacing: .24em; font-weight: 700; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }

@media (min-width: 700px) {
  .view { padding-left: 24px; padding-right: 24px; }
  .stat-grid.four .stat-value { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
