/* style.css — fitHedef uygulama (SPA) teması — ana sayfa ile uyumlu açık/mavi */
:root {
    --bg: #f4f7fb;
    --panel: #ffffff;
    --panel-2: #f0f3f9;
    --sidebar: #0f1b34;
    --border: #e6ebf2;
    --text: #0e1726;
    --muted: #5b6675;
    --accent: #2f6bff;
    --accent-2: #1f53e0;
    --ok: #16a34a;
    --body-trend-loss: #e0554b;
    --body-trend-gain: #45a58a;
    --body-trend-neutral: #b7bdc6;
    --warn: #b45309;
    --danger: #dc2626;
    --action-primary: var(--accent);
    --action-primary-hover: var(--accent-2);
    --action-finish-bg: #93c5fd;
    --action-finish-hover: #60a5fa;
    --action-finish-text: #0f1b34;
    --action-finish-edge: #2563eb;
    --action-danger: var(--danger);
    --action-danger-hover: #b91c1c;
    --action-secondary-bg: var(--panel);
    --action-secondary-hover: var(--panel-2);
    --action-secondary-border: var(--border);
    --action-secondary-text: var(--text);
    --surface-bg: var(--panel);
    --surface-border: 1px solid var(--border);
    --surface-radius: 18px;
    --surface-strong-radius: 22px;
    --surface-shadow: var(--shadow);
    --radius: 16px;
    --shadow: 0 8px 24px rgba(16, 31, 64, .07);
    --input-bg: #ffffff;            /* form alanı zemini (dark'ta override) */
    --skeleton-shine: rgba(255,255,255,.6); /* iskelet parıltısı (dark'ta kısılır) */
    /* Easing — Emil design-eng güçlü eğrileri (landing ile aynı) */
    --ease-out: cubic-bezier(.23, 1, .32, 1);
    --ease-in-out: cubic-bezier(.77, 0, .175, 1);
    --ring: 0 0 0 3px rgba(47, 107, 255, .28);
}

* { box-sizing: border-box; }
/* Kök tipografi ölçeği: 81.25% × 16px = 13px. Tüm rem tabanlı yazı + boşluk
   buna göre orantılı ölçeklenir (tek kaldıraç). */
html { font-size: 81.25%; }
/* Küçük laptopta 13.5px, geniş masaüstünde 15px; tablet/mobilde 13px korunur. */
@media (min-width: 1025px) and (max-width: 1511px) { html { font-size: 84.375%; } }
@media (min-width: 1512px) { html { font-size: 93.75%; } }
html, body { margin: 0; padding: 0; }
body {
    background: var(--bg);
    color: var(--text);
    font: 1rem/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip; /* mobilde istemsiz yatay taşmaya karşı güvenlik (sticky'yi bozmaz) */
}
a { color: var(--accent); text-decoration: none; }
h1, h2, h3 { margin: 0 0 .6rem; }
.muted { color: var(--muted); }
.small { font-size: .85em; }

/* ── Auth ── */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 1rem;
    background: radial-gradient(900px 400px at 50% -10%, #e7eefc 0%, var(--bg) 60%); }
.auth-box { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; width: 100%; max-width: 380px; box-shadow: var(--shadow); }
.auth-box h1 { text-align: center; color: var(--accent); letter-spacing: -.02em; }
/* Alt başlık — h1'den küçük (şifre sıfırlama ekranları). */
.auth-sub { text-align: center; font-size: 1.05rem; font-weight: 600; margin: .2rem 0 .6rem; color: var(--text); }
.auth-ok { text-align: center; color: var(--text); font-size: .95rem; margin: 1rem 0; }
.auth-back { display: inline-block; color: var(--muted); font-size: .9rem; margin-bottom: .4rem; }
.auth-back:hover { color: var(--accent); }
/* Kayıtsız demo linki — giriş kutusunun altında ikincil yol (buton görünümsüz). */
.auth-demo-link { display: block; width: 100%; margin-top: 1rem; padding: .6rem .4rem 0;
    background: none; border: none; border-top: 1px dashed var(--border); cursor: pointer;
    color: var(--muted); font: inherit; font-size: .88rem; font-weight: 600; text-align: center;
    transition: color .2s var(--ease-out), transform .18s var(--ease-out); }
.auth-demo-link:hover { color: var(--accent); }
.auth-demo-link:disabled { opacity: .6; cursor: default; }
.auth-demo-link:active { transform: scale(.98); }
.auth-invite-notice { display: flex; align-items: flex-start; gap: .7rem; margin: .8rem 0 1rem;
    padding: .75rem; border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--border));
    border-radius: 13px; background: color-mix(in srgb, var(--accent) 7%, var(--panel-2)); }
.auth-invite-ic { flex: 0 0 38px; width: 38px; height: 38px; display: grid; place-items: center;
    border-radius: 11px; background: var(--panel); border: 1px solid var(--border); font-size: 1.15rem; }
.auth-invite-notice > div { min-width: 0; }
.auth-invite-notice p { margin: .18rem 0 0; color: var(--muted); font-size: .8rem; line-height: 1.4; }

/* ── Demo modu bilgi şeridi — sayfanın en üstünde tam-genişlik bar ──
   Sağda 136px boş bırakılır: sabit bildirim zili (right:20) + dil seçici (right:74)
   şeridin üstüne düşer; içerik o alana girmez → çakışma yok. */
.demo-banner { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
    padding: .55rem 136px .55rem .9rem; background: linear-gradient(90deg, #fff7e6, #fff1d6);
    border-bottom: 1px solid #f2ddb0; color: #7a5410; font-size: .86rem; font-weight: 600; }
:root[data-theme="dark"] .demo-banner { background: linear-gradient(90deg, #3a2f14, #33290f);
    border-bottom-color: #57431a; color: #f5d789; }
.demo-banner .db-ico { flex: 0 0 auto; font-size: 1rem; }
.demo-banner .db-txt { flex: 1 1 auto; min-width: 0; }
.demo-banner .db-cta { flex: 0 0 auto; padding: .38rem .8rem; border: none; border-radius: 9px;
    background: var(--action-primary); color: #fff; font: inherit; font-weight: 700; font-size: .8rem; cursor: pointer;
    transition: transform .18s var(--ease-out), filter .18s var(--ease-out); }
.demo-banner .db-cta:active { transform: scale(.96); }
@media (hover: hover) and (pointer: fine) { .demo-banner .db-cta:hover { filter: brightness(1.08); } }
.demo-banner .db-exit { flex: 0 0 auto; width: 28px; height: 28px; border: none; border-radius: 8px;
    background: transparent; color: inherit; opacity: .65; cursor: pointer; font-size: .85rem;
    transition: opacity .18s var(--ease-out); }
.demo-banner .db-exit:hover { opacity: 1; }
@media (max-width: 860px) {
    /* Dar ekran: metin kompakt; sabit ikon rezerv alanı korunur (zil/dil aynı konumda). */
    .demo-banner { font-size: .76rem; gap: .45rem; padding: .5rem 128px .5rem .7rem; }
    .demo-banner .db-cta { font-size: .74rem; padding: .32rem .65rem; }
}
.tabs { display: flex; gap: .5rem; margin: 1rem 0; }
.tab { flex: 1; background: var(--panel-2); border: 1px solid var(--border); color: var(--muted); padding: .55rem; border-radius: 10px; cursor: pointer; font: inherit; }
.tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }
/* Kayıt — yasal onay kutusu */
.consent-row { display: flex; align-items: flex-start; gap: .55rem; font-size: .82rem; color: var(--muted); line-height: 1.5; cursor: pointer; }
.consent-row input[type="checkbox"] { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--accent); cursor: pointer; }
.consent-row a { color: var(--accent); text-decoration: underline; }

/* ── Layout ── */
/* minmax(0,1fr): 1fr track içeriğin min-content'ine ŞİŞMESİN (geniş tablo blowout'unu önler). */
.layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; align-items: start; }
/* Sticky: sol menü viewport'a sabitlenir → uzun içerikte çıkış için aşağı kaydırmaya gerek yok. */
.sidebar { position: sticky; top: 0; align-self: start; height: 100vh; overflow-y: auto;
    background: var(--sidebar); color: #c4d0e6; display: flex; flex-direction: column; padding: 1rem; }
.brand { font-weight: 800; font-size: 1.35rem; color: #fff; margin-bottom: .8rem; letter-spacing: -.02em; }
/* Kullanıcı kimliği (ad + e-posta) — menünün en üstü. */
.side-ident { margin-bottom: 1rem; padding-bottom: .85rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.side-ident-name { color: #fff; font-weight: 700; font-size: .98rem; line-height: 1.2; word-break: break-word; }
.side-ident-mail { color: #8aa0c6; font-size: .8rem; margin-top: .15rem; word-break: break-all; }
nav { display: flex; flex-direction: column; gap: .25rem; flex: 1; }
.nav-link { padding: .6rem .8rem; border-radius: 10px; color: #aebbd6; }
.nav-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-link.active { background: var(--accent); color: #fff; }
.nav-link.group-active { color: #fff; background: rgba(255,255,255,.07); }
.nav-link.nav-role { display: flex; align-items: center; gap: .55rem; margin-top: .65rem;
    padding: .7rem .75rem; border: 1px solid rgba(255,255,255,.13); font-weight: 750; color: #fff; }
.nav-link.nav-role.role-coach { background: linear-gradient(135deg, rgba(95,99,255,.25), rgba(62,79,160,.14)); }
.nav-link.nav-role.role-student { background: linear-gradient(135deg, rgba(25,166,130,.24), rgba(34,105,119,.14)); }
.nav-link.nav-role.active, .nav-link.nav-role.group-active { border-color: rgba(255,255,255,.38); box-shadow: inset 3px 0 0 rgba(255,255,255,.72); }
.nav-role-ico { width: 1.35rem; text-align: center; }
.nav-link.nav-sub { display: flex; align-items: center; gap: .45rem; margin: -.08rem 0 .2rem .65rem;
    padding: .48rem .65rem; border-left: 1px solid rgba(255,255,255,.16); border-radius: 0 9px 9px 0;
    font-size: .82rem; color: #91a6cc; }
.nav-link.nav-sub.active { border-left-color: #8db0ff; background: rgba(47,107,255,.26); color: #fff; }
.nav-sub-ico { flex: 0 0 auto; color: #7694c8; }
.nav-link.nav-icon-link { display: flex; align-items: center; gap: .55rem; }
.nav-menu-ico { display: inline-flex; flex: 0 0 1.35rem; width: 1.35rem; align-items: center;
    justify-content: center; font-size: 1rem; line-height: 1; }
.role-context { display: inline-flex; margin-bottom: .4rem; padding: .3rem .55rem; border-radius: 999px; }
.role-context.coach-context { background: rgba(95,99,255,.12); color: #7377ff; }
.role-context.student-context { background: rgba(25,166,130,.12); color: #159373; }
.nav-ico { font-size: 1rem; line-height: 1; }
.nav-link.nav-daily { display: flex; align-items: center; gap: .5rem; }
/* "Panelim" sekmesi — belirgin, ev ikonlu (eski Ana Sayfa butonunun tasarımı). */
.nav-link.nav-panel { display: flex; align-items: center; gap: .5rem; margin-bottom: .35rem;
    background: var(--accent); color: #fff; font-weight: 700; box-shadow: 0 2px 10px rgba(47,107,255,.35); }
.nav-link.nav-panel:hover { filter: brightness(1.08); background: var(--accent); color: #fff; }
.nav-link.nav-panel.active { filter: brightness(1.08); }
.sidebar-foot { border-top: 1px solid rgba(255,255,255,.12); padding-top: .8rem; margin-top: .8rem; display: flex; flex-direction: column; gap: .5rem; }
.sidebar-foot .muted { color: #8aa0c6; }
.sidebar-foot a { color: #aebbd6; font-size: .9rem; }
.sidebar-foot a:hover { color: #fff; }
/* Site ana sayfası uygulama navigasyonundan ayrıdır ve sidebar açılır açılmaz görünür. */
.side-home { display: flex; align-items: center; justify-content: flex-start; gap: .55rem;
    min-height: 44px; margin: 0 0 .85rem; padding: .5rem .8rem; border-radius: 10px;
    text-decoration: none; transition: background .14s var(--ease-out), color .14s var(--ease-out); }
.side-home:hover { background: rgba(255,255,255,.1); color: #fff; }
.side-home .nav-ico { font-size: .95rem; }
.sidebar .btn.ghost { color: #fff; border-color: rgba(255,255,255,.25); background: transparent; }
.sidebar .btn.ghost:hover { background: rgba(255,255,255,.1); }
.content { padding: 1.6rem 2rem; overflow: auto; min-width: 0; }
.content h2 { font-size: 1.6rem; letter-spacing: -.01em; }

/* Küçük/orta laptoplar: 13–14" ekranlarda içerik ve sol menü gereksiz büyümesin. */
@media (min-width: 861px) and (max-width: 1511px) {
    .layout { grid-template-columns: 212px minmax(0, 1fr); }
    .sidebar { padding: .8rem; }
    .brand { font-size: 1.22rem; margin-bottom: .65rem; }
    .side-ident { margin-bottom: .7rem; padding-bottom: .65rem; }
    .nav-link { padding: .5rem .65rem; border-radius: 9px; }
    .content { padding: 1.15rem 1.35rem; }
}

/* ── Mobil üst bar + hamburger + backdrop (varsayılan: masaüstünde gizli) ── */
.app-topbar { display: none; }
.app-scrim { display: none; }
.app-burger { display: none; }
/* Geniş tabloları taşmadan yatay kaydırılır kılan sarmalayıcı. */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap .data-table { min-width: max-content; }

/* ── Cards / tables ── */
.card { background: var(--surface-bg); border: var(--surface-border); border-radius: var(--surface-radius); padding: 1.2rem 1.3rem; margin-bottom: 1.2rem; box-shadow: var(--surface-shadow); }
@media (min-width: 861px) and (max-width: 1511px) {
    .card { padding: 1rem 1.1rem; margin-bottom: 1rem; }
}
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--border); }
.data-table th { color: var(--muted); font-weight: 600; font-size: .8rem; letter-spacing: .03em; }
.data-table td .btn { white-space: nowrap; }

/* ── Stats ── */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin-bottom: 1.2rem; }
.stat { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.3rem; box-shadow: var(--shadow); }
.stat-val { font-size: 1.8rem; font-weight: 800; color: var(--accent); }
.stat-lbl { color: var(--muted); font-size: .85rem; }
/* Hedefim + herkese açık profil ortak Hedefe İlerleme bileşeni (SPA görsel dili). */
.goal-progress-view .pf-stat-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); gap: .8rem; margin-bottom: .9rem; }
.goal-progress-view .pf-stat { display: flex; align-items: center; gap: .75rem; min-width: 0; padding: .85rem;
    border: 1px solid color-mix(in srgb,var(--accent) 24%,var(--border)); border-radius: 14px;
    background: linear-gradient(135deg,color-mix(in srgb,var(--accent) 7%,var(--panel)),var(--panel)); }
.goal-progress-view .pf-stat-ic { flex: 0 0 auto; width: 40px; height: 40px; display: grid; place-items: center;
    border-radius: 11px; background: color-mix(in srgb,var(--accent) 12%,var(--panel)); font-size: 1.2rem; }
.goal-progress-view .pf-stat-body { min-width: 0; }
.goal-progress-view .pf-stat-val { font-size: 1.15rem; font-weight: 800; overflow-wrap: anywhere; }
.goal-progress-view .pf-stat-lbl { margin-top: .1rem; color: var(--muted); font-size: .7rem; letter-spacing: .03em; }
.goal-progress-view .pf-table { width: 100%; border-collapse: collapse; }
.goal-progress-view .pf-table th,.goal-progress-view .pf-table td { padding: .62rem .7rem; text-align: left; border-bottom: 1px solid var(--border); }
.goal-progress-view .pf-table th { color: var(--muted); font-weight: 600; white-space: nowrap; }
.goal-progress-view .pf-table td { font-weight: 600; }
.goal-progress-view .pf-table tr:last-child th,.goal-progress-view .pf-table tr:last-child td { border-bottom: 0; }
/* Vücut ölçümleri — small multiples (her ölçü ayrı küçük çizgi grafiği). */
.sm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .8rem; }
.sm-card { border: 1px solid var(--border); border-radius: 12px; padding: .55rem .65rem; background: var(--panel); min-width: 0; }
.sm-head { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; margin-bottom: .25rem; }
.sm-title { font-weight: 700; font-size: .8rem; letter-spacing: -.01em; min-width: 0; overflow-wrap: anywhere; }
.sm-delta { font-size: .74rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.sm-chart { height: 118px; }

/* Ortak kompakt seçim/filtre standardı — bkz. SELECTION_FILTER_STANDARD.md. */
.selection-filter { display: grid; gap: .4rem; min-width: 0; margin: .2rem 0 .7rem; }
.selection-filter-label { color: var(--text); font-size: .8rem; font-weight: 700; }
.selection-filter-hint { margin: -.12rem 0 .1rem; color: var(--muted); font-size: .72rem; line-height: 1.4; }
.selection-chip-group { display: flex; flex-wrap: wrap; gap: .5rem; min-width: 0; }
.selection-chip,.chip { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: .42rem;
    padding: .48rem .88rem; border: 1px solid var(--border); border-radius: 999px; background: var(--panel);
    color: var(--text); font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer;
    transition: border-color .14s var(--ease-out), background .14s var(--ease-out), color .14s var(--ease-out), transform .14s var(--ease-out); }
.selection-chip:hover,.chip:hover { border-color: var(--accent); }
.selection-chip:active,.chip:active { transform: scale(.98); }
.selection-chip.active,.selection-chip[aria-checked="true"],.selection-chip[aria-pressed="true"],.chip.active {
    border-color: var(--accent); background: var(--accent); color: #fff; }
.selection-chip-group.is-multiple .selection-chip::before { content: ''; display: grid; place-items: center; flex: 0 0 16px;
    width: 16px; height: 16px; border: 1.5px solid currentColor; border-radius: 4px; font-size: 11px; line-height: 1; }
.selection-chip-group.is-multiple .selection-chip[aria-pressed="true"]::before { content: '✓'; border-color: #fff; background: #fff; color: var(--accent); }
.stat-ranges,.cb-ranges,.notif-filters,.ai-templates,.nutrition-filter-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
@media (max-width: 480px) {
    .selection-chip-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .selection-chip { width: 100%; padding-inline: .55rem; }
}
@media (prefers-reduced-motion: reduce) { .selection-chip,.chip { transition: none; } }

/* ── Günlük kayıt kartları (Son Günlük Kayıtlar — tablo yerine gün başına kart) ── */
.dlog-list { display: flex; flex-direction: column; gap: 10px; }
.dlog-empty { margin: .25rem 0 0; }
.dlog-card { border: 1px solid var(--border); border-radius: 14px; background: var(--panel); overflow: hidden; transition: border-color .14s var(--ease-out); }
.dlog-card.is-open { border-color: var(--accent); }
.dlog-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; min-width: 0; }
.dlog-head:hover { background: var(--panel-2); }
.dlog-head:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.dlog-date { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 10px; background: var(--panel-2); line-height: 1; }
.dlog-date-day { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.dlog-date-mon { font-size: .62rem; color: var(--muted); margin-top: 3px; }
.dlog-main { flex: 1 1 auto; min-width: 0; }
.dlog-title-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; margin: 0 0 6px; }
.dlog-title { margin: 0; font-size: .92rem; font-weight: 600; color: var(--text); }
/* Doluluk göstergesi — ilerleme çubuğu kalıbı `.meas-progress-track` ile aynı (renk --ok). */
.dlog-fill { display: grid; gap: 3px; flex: 0 0 auto; width: 112px; }
.dlog-fill-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; line-height: 1; }
.dlog-fill-head strong { font-size: .8rem; font-weight: 800; color: var(--text); }
.dlog-fill-head small { font-size: .66rem; color: var(--muted); white-space: nowrap; }
.dlog-fill-track { display: block; height: 5px; overflow: hidden; border-radius: 99px; background: var(--border); }
.dlog-fill-track > span { display: block; height: 100%; border-radius: inherit; background: var(--ok); }
.dlog-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dlog-chip { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; padding: 3px 9px; border-radius: 99px; border: 1px solid var(--border); background: var(--panel-2); color: var(--text); white-space: nowrap; }
.dlog-formula { align-items: center; gap: 4px; }
.dlog-formula-subtract, .dlog-formula-sum, .dlog-formula-result { display: inline-flex; align-items: center; flex: 0 0 auto; gap: 4px; white-space: nowrap; }
.dlog-formula-symbol { flex: 0 0 auto; color: var(--muted); font-size: .78rem; font-weight: 800; line-height: 1; }
.dlog-chip-ico { display: inline-flex; align-items: center; font-size: .82rem; line-height: 1; }
.dlog-chip-ico svg, .dlog-detail-ico svg { display: block; }
.dlog-chip--balance { font-weight: 700; }
.dlog-chip--balance.is-surplus { color: var(--ok); }
.dlog-chip--balance.is-deficit { color: var(--danger); }
.dlog-chip--balance.is-balanced { color: var(--muted); }
.dlog-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; }
.dlog-chev { display: inline-flex; color: var(--muted); transition: transform .18s var(--ease-out); }
.dlog-card.is-open .dlog-chev { transform: rotate(180deg); }
.dlog-body { border-top: 1px solid var(--border); padding: 12px 14px; }
.dlog-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 8px 16px; }
.dlog-detail-item { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: .82rem; }
.dlog-detail-ico { flex: 0 0 auto; display: inline-flex; align-items: center; font-size: 1rem; line-height: 1; }
.dlog-detail-lbl { color: var(--muted); white-space: nowrap; }
.dlog-detail-val { font-weight: 600; color: var(--text); white-space: nowrap; }
.dlog-note { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.dlog-note-lbl { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .72rem; margin-bottom: 4px; }
.dlog-note-ico { display: inline-flex; align-items: center; }
.dlog-note p { margin: 0; font-size: .84rem; line-height: 1.55; overflow-wrap: anywhere; }
.dlog-body-actions { margin-top: 12px; display: flex; justify-content: flex-end; }
@media (max-width: 480px) {
    .dlog-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 10px; padding: 12px; }
    .dlog-date { display: none; }
    .dlog-main { display: contents; }
    .dlog-title-row { grid-column: 1; grid-row: 1; display: grid; gap: 6px; margin: 0; }
    .dlog-title { font-size: 1rem; }
    .dlog-actions { grid-column: 2; grid-row: 1; align-self: start; }
    .dlog-edit { min-width: 44px; min-height: 44px; padding: .35rem; }
    .dlog-formula { grid-column: 1 / -1; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 6px; padding-top: 10px; border-top: 1px solid var(--border); }
    .dlog-formula .dlog-chip:not(.dlog-chip--balance) { padding: 0; border: 0; background: transparent; gap: 4px; font-size: 1rem; font-weight: 600; }
    .dlog-formula .dlog-chip-ico { font-size: 1rem; }
    .dlog-formula-subtract { justify-self: start; }
    .dlog-formula-result { grid-column: 1 / -1; justify-content: flex-end; padding-top: 8px; border-top: 1px solid var(--border); }
    .dlog-formula-result::before { content: attr(data-label); margin-right: auto; color: var(--muted); font-size: .8rem; }
    .dlog-formula-result .dlog-chip { padding: 4px 10px; font-size: .95rem; font-variant-numeric: tabular-nums; }
    .dlog-edit .dlog-edit-txt { display: none; }
    .dlog-detail-grid { grid-template-columns: 1fr; }
}

/* Global okunmamış bildirim zili — tüm sayfalarda sağ üstte sabit. */
.notif-bell { position: fixed; top: 16px; right: 20px; z-index: 45;
    width: 44px; height: 44px; border-radius: 50%; background: var(--panel);
    border: 1px solid var(--border); box-shadow: var(--shadow);
    display: inline-flex; align-items: center; justify-content: center; color: var(--accent-2);
    transition: border-color .15s var(--ease-out), box-shadow .15s var(--ease-out), transform .14s var(--ease-out); }
.notif-bell:hover { border-color: var(--accent); box-shadow: 0 4px 14px rgba(47,107,255,.18); }
.notif-bell:active { transform: scale(.96); }
.notif-bell.has-unread { color: #b45309; border-color: color-mix(in srgb, #f59e0b 55%, var(--border));
    background: linear-gradient(145deg, color-mix(in srgb, #f59e0b 16%, var(--panel)), var(--panel));
    box-shadow: 0 0 0 4px color-mix(in srgb, #f59e0b 10%, transparent), 0 8px 22px rgba(180,83,9,.18); }
.notif-bell.has-new { animation: notifBellRing .75s var(--ease-out) 2; }
@keyframes notifBellRing {
    0%, 100% { transform: rotate(0) scale(1); }
    20% { transform: rotate(-12deg) scale(1.08); }
    40% { transform: rotate(10deg) scale(1.08); }
    60% { transform: rotate(-7deg) scale(1.05); }
    80% { transform: rotate(5deg) scale(1.03); }
}
.notif-bell-badge { position: absolute; top: -3px; right: -3px; min-width: 19px; height: 19px;
    padding: 0 5px; border-radius: 10px; background: var(--danger); color: #fff;
    font-size: .68rem; font-weight: 800; line-height: 19px; text-align: center; box-sizing: border-box;
    box-shadow: 0 0 0 2px var(--bg); }
.notif-bell-badge[hidden] { display: none; }
/* Tek, iki satırlı bildirim; mesaj uzunluğu kartın yüksekliğini artırmaz. */
.notif-live { position: fixed; top: 72px; right: max(20px, env(safe-area-inset-right)); z-index: 70;
    width: min(344px, calc(100vw - 24px)); box-sizing: border-box;
    display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: center; gap: 4px; padding: 8px;
    color: var(--text); border: 1px solid var(--border); border-radius: 16px;
    background: var(--panel); box-shadow: 0 8px 28px rgba(16,31,64,.16);
    opacity: 0; pointer-events: none; transform: translateY(-8px);
    transition: opacity .18s ease, transform .18s ease; touch-action: pan-y; }
.notif-live.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.notif-live-content { min-width: 0; min-height: 44px; display: flex; align-items: center; gap: 10px;
    padding: 2px; border: 0; border-radius: 10px; background: transparent; color: inherit;
    font: inherit; text-align: start; cursor: pointer; }
.notif-live-icon { flex: 0 0 32px; height: 32px; display: grid; place-items: center; border-radius: 10px;
    background: color-mix(in srgb, var(--accent) 10%, var(--panel)); font-size: 1.05rem; }
.notif-live-copy { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.notif-live-type { color: var(--accent); font-size: .72rem; font-weight: 750; }
.notif-live-copy strong { font-size: .82rem; font-weight: 550; line-height: 1.4; }
.notif-live-type, .notif-live-copy strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.notif-live-close { width: 44px; height: 44px; display: grid; place-items: center; padding: 0;
    border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer;
    font: inherit; font-size: 1.5rem; line-height: 1; }
.notif-live-content:hover, .notif-live-close:hover { background: var(--panel-2); }
.notif-live-close:hover { color: var(--text); }
.notif-live-content:focus-visible, .notif-live-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
@media (prefers-reduced-motion: reduce) { .notif-live { transition: none; transform: none; } }
/* Dil seçici (kabuk) — sağ üstte, zilin (44px @ right:20px) hemen solunda sabit. */
.app-lang { position: fixed; top: 16px; right: 74px; z-index: 45; }
/* Drawer açıkken zil + dil seçici scrim'in üstünde yüzmesin. */
body.drawer-open .notif-bell,
body.drawer-open .app-lang { opacity: 0; pointer-events: none; }

/* ── Aktif Hedef Süreci hero ── */
.proc-hero { border: 1px solid #cfe0ff; background: linear-gradient(180deg, #f3f7ff, var(--panel)); }
.proc-empty { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.proc-empty-ic { font-size: 2rem; }
.proc-empty .btn { margin-left: auto; }
.proc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.proc-title { font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; }
.proc-sub { margin-top: .15rem; }
.proc-pct { font-weight: 800; font-size: 1.1rem; color: var(--accent); white-space: nowrap; }
.proc-pct.over { color: var(--danger); }
.proc-bar { height: 8px; border-radius: 99px; background: #dde6fb; overflow: hidden; margin: .6rem 0 .2rem; }
.proc-fill { height: 100%; border-radius: 99px; background: var(--accent); transition: width .4s var(--ease-out); }
.proc-fill.over { background: var(--danger); }
.proc-remind { margin: .7rem 0; padding: .6rem .8rem; border-radius: 10px; background: #fff7e6; border: 1px solid #f3dca0; font-size: .9rem; }
.proc-celebration {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .8rem 1rem;
    margin: .7rem 0; padding: .8rem 1rem; border: 1px solid color-mix(in srgb, var(--ok) 38%, var(--border));
    border-radius: 12px; background: color-mix(in srgb, var(--ok) 8%, var(--panel));
}
.proc-celebration-copy { min-width: 0; }
.proc-celebration-copy strong { display: block; color: var(--text); font-size: 1rem; }
.proc-celebration-copy p { margin: .2rem 0 0; color: var(--muted); font-size: .86rem; }
.proc-celebration .btn { flex: 0 0 auto; }
.goal-confetti-burst { position: fixed; inset: 0; z-index: 35; overflow: hidden; pointer-events: none; }
.goal-confetti-piece {
    position: absolute; top: -8vh; left: var(--piece-x); width: 9px; height: 13px; border-radius: 2px;
    opacity: 0; animation: goalConfettiFall 1.8s var(--ease-out) var(--piece-delay) both;
}
.goal-confetti-piece:nth-child(4n + 1) { background: var(--accent); }
.goal-confetti-piece:nth-child(4n + 2) { background: var(--ok); }
.goal-confetti-piece:nth-child(4n + 3) { background: var(--warn); }
.goal-confetti-piece:nth-child(4n) { background: var(--action-finish-bg); }
.goal-confetti-burst--repeat .goal-confetti-piece { width: 7px; height: 10px; animation-duration: 1.05s; }
@keyframes goalConfettiFall {
    0% { opacity: 0; transform: translate3d(0, -5vh, 0) rotate(0deg); }
    12% { opacity: .95; }
    100% { opacity: 0; transform: translate3d(var(--piece-drift), 112vh, 0) rotate(var(--piece-turn)); }
}
@media (prefers-reduced-motion: reduce) {
    .goal-confetti-burst { display: none; }
}
.proc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; margin: .9rem 0; }
.proc-stat { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: .7rem .85rem; }
.proc-stat-lbl { color: var(--muted); font-size: .8rem; }
.proc-stat-val { font-size: 1.25rem; font-weight: 800; margin-top: .1rem; }
.proc-delta { font-size: .85rem; font-weight: 700; }
.proc-delta.down { color: var(--ok); }
.proc-delta.up { color: #b45309; }
.proc-stat-sub { margin-top: .15rem; }
.proc-chart { height: 120px; margin: .4rem 0 .8rem; }
.proc-sec-lbl { margin: .6rem 0 .35rem; font-weight: 600; }
/* Gelişim foto kümeleri — her gün bir küme (ön·arka·yan), günler yan yana yatay kayar. */
.proc-stages { display: flex; gap: .8rem; overflow-x: auto; padding-bottom: .3rem; }
.proc-stage { margin: 0; flex: 0 0 auto; text-align: center; }
.proc-stage-imgs { display: flex; gap: 3px; background: var(--panel-2); border: 1px solid var(--border);
    border-radius: 10px; padding: 3px; }
.proc-stage-img { width: 46px; height: 62px; object-fit: cover; border-radius: 6px; cursor: pointer;
    transition: transform .12s var(--ease-out); }
.proc-stage-img:hover { transform: scale(1.04); }
.proc-stage-day { font-weight: 700; color: var(--text); font-size: .76rem; margin-top: .3rem; }
.proc-photo-empty { width: 46px; height: 62px; border-radius: 6px; border: 1px dashed var(--border); display: grid; place-items: center; color: var(--muted); }
.proc-photo-date { font-size: .68rem; color: var(--muted); }
.proc-photo-note { margin: .5rem 0 0; }
.proc-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--border); }

/* ── Geçmiş süreçler zaman çizelgesi ── */
.past-list { display: flex; flex-direction: column; gap: .5rem; }
.past-card { display: flex; align-items: center; justify-content: space-between; gap: 1rem; text-align: left;
    width: 100%; background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px;
    padding: .7rem .9rem; cursor: pointer; font: inherit; transition: border-color .14s var(--ease-out); }
.past-card:hover { border-color: var(--accent); }
.past-title { font-weight: 700; }
.past-deltas { display: flex; gap: .6rem; white-space: nowrap; }
.past-d { font-weight: 700; font-size: .85rem; }
.past-d.down { color: var(--ok); }
.past-d.up { color: #b45309; }

/* ── Süreç günlüğü (dönem detayında) ── */
.dp-journal { display: flex; flex-direction: column; gap: .4rem; }
.dp-jrow { display: flex; gap: .7rem; padding: .45rem .55rem; background: var(--panel-2); border-radius: 8px; }
.dp-jdate { flex: 0 0 auto; min-width: 80px; }
.dp-jnote { white-space: pre-wrap; }

/* ── Forms ── */
.field { display: flex; flex-direction: column; gap: .25rem; }
.field.block { margin-bottom: .8rem; }
.field span { font-size: .8rem; color: var(--muted); }
input, select, textarea {
    background: #fff; border: 1px solid var(--border); color: var(--text);
    padding: .55rem .65rem; border-radius: 10px; font: inherit; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47,107,255,.15); }
.app-confirm-modal { grid-template-columns: auto minmax(0, 1fr); align-items: start; width: min(480px, calc(100vw - 1.5rem)); }
.app-confirm-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--panel)); font-size: 1.2rem; font-weight: 900; }
.app-confirm-icon.is-danger { color: var(--action-danger); background: color-mix(in srgb, var(--action-danger) 10%, var(--panel)); }
.app-confirm-copy { min-width: 0; }
.app-confirm-copy h3, .app-confirm-copy p { margin: 0; }
.app-confirm-copy p { margin-top: .35rem; color: var(--muted); line-height: 1.5; }
.app-confirm-copy input { margin-top: .7rem; }
.app-confirm-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: .5rem; }
/* ── Hatırlatma modalı (bkz. REMINDER_STANDARD.md) ── */
.reminder-missing-label { grid-column: 2 / -1; margin: .9rem 0 .35rem; font-size: .78rem; font-weight: 700; color: var(--text); }
.reminder-missing { grid-column: 2 / -1; display: grid; gap: .3rem; margin: 0; padding: 0; list-style: none; }
.reminder-missing li { display: flex; align-items: center; gap: .5rem; padding: .34rem .6rem;
    border: 1px solid var(--border); border-radius: 10px; background: var(--panel-2);
    color: var(--text-2); font-size: .8rem; }
.reminder-missing .rm-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.reminder-last { grid-column: 2 / -1; margin: .6rem 0 0; }
.reminder-modal .modal-actions { margin-top: 1rem; }
/* Admin: hatırlatma kuralı kartı */
.reminder-rule-card { display: grid; gap: .8rem; }
.reminder-rule-head { display: flex; align-items: flex-start; gap: .7rem; }
.reminder-rule-head h4 { margin: 0 0 .2rem; font-size: 1rem; }
.reminder-rule-head p { margin: 0; }
.reminder-rule-ico { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px;
    background: color-mix(in srgb, var(--accent) 10%, var(--panel)); font-size: 1.1rem; }
.reminder-rule-fields { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .8rem; }
.reminder-rule-fields .field { min-width: 120px; }
@media (max-width: 480px) {
    .reminder-rule-fields { flex-direction: column; align-items: stretch; }
    .reminder-rule-fields .btn { width: 100%; min-height: 44px; }
}

.inline-form { display: flex; flex-wrap: wrap; gap: .8rem; align-items: flex-end; }
.inline-form .field { min-width: 130px; }
.grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .8rem; align-items: end; }

/* ── Günlük kayıt formu: ikonlu, mantıksal sıralı metrik kartları ── */
.daily-form { display: flex; flex-direction: column; gap: .9rem; }
.modal > .daily-form { clear: both; width: 100%; margin-inline: auto; }
.daily-row { display: grid; gap: .8rem; }
.daily-row--date { grid-template-columns: minmax(160px, 240px); }
.daily-today-status { display: flex; align-items: center; gap: .65rem; padding: .7rem .85rem;
    border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border)); border-radius: 12px;
    background: color-mix(in srgb, var(--accent) 8%, var(--panel)); color: var(--text);
    font-size: .82rem; line-height: 1.4; }
.daily-today-status[hidden] { display: none; }
.daily-today-status-ico { flex: 0 0 auto; font-size: 1.35rem; }
.daily-row--macros { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.daily-row--activity { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.daily-row--vitals { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.daily-row--food-tolerance { grid-template-columns: minmax(260px, 1fr) minmax(280px, 1.5fr); }
.metric-field { display: flex; flex-direction: column; gap: .35rem; background: var(--panel-2);
    border: 1px solid var(--border); border-radius: 12px; padding: .75rem .8rem; }
.metric-ico { font-size: 1.5rem; line-height: 1; }
.metric-ico svg { display: block; width: 1.8rem; height: 1.8rem; color: #b44949; }
.metric-ico--kcal { display: inline-flex; align-items: center; gap: .28rem; }
.metric-ico--kcal small { color: var(--muted); font-size: .64rem; font-weight: 800; letter-spacing: .02em; }
.metric-lbl { font-size: .8rem; color: var(--muted); }
.metric-hint { font-size: .68rem; color: var(--muted); opacity: .85; line-height: 1.25; }
.metric-field input { background: #fff; }
/* Makrolar en önemli üçlü → daha belirgin kart + büyük ikon. */
.metric-field--macro { border-color: #bcd3ff; background: #f4f8ff; }
.metric-field--macro .metric-ico { font-size: 2rem; }
.metric-field--macro .metric-lbl, .metric-field--macro > .lbl-info { color: var(--text); font-size: .8rem; font-weight: 600; }
.metric-field--macro > .lbl-info .info-i { margin-left: .1rem; }
/* Tansiyon → tek kartta iki giriş (büyük / küçük). */
.bp-inputs { display: flex; align-items: center; gap: .35rem; }
.bp-inputs input { background: #fff; min-width: 0; text-align: center; }
.bp-sep { font-weight: 700; color: var(--muted); }

/* ── Gün içi enerji + antrenman performansı — görsel seçiciler (tam satır) ── */
.daily-row--energy, .daily-row--performance, .daily-row--wakefulness { grid-template-columns: 1fr; }
.metric-field--energy { gap: .5rem; }
.metric-field--wakefulness { border-color: #f1c98a; background: linear-gradient(180deg, #fff9ed, var(--panel-2)); }
.metric-field--digestion { border-color: #c9d8b3; background: linear-gradient(180deg, #f7faee, var(--panel-2)); }
.metric-field--food-sensitivity { border-color: #c9d8b3; background: linear-gradient(180deg, #f7faee, var(--panel-2)); }
.metric-field--linked-workout { border-color: color-mix(in srgb, var(--accent) 30%, var(--border)); background: color-mix(in srgb, var(--accent) 4%, var(--panel-2)); }
.metric-field--linked-workout[hidden] { display: none; }
.daily-training-panel { display: grid; gap: .65rem; padding: .8rem; border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border)); border-radius: 16px; background: color-mix(in srgb, var(--accent) 4%, var(--panel)); }
.daily-training-panel > header { display: flex; align-items: center; gap: .55rem; }
.daily-training-panel > header > span { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 10%, var(--panel)); font-size: 1.1rem; }
.daily-training-panel > header > div { display: flex; flex-direction: column; min-width: 0; }
.daily-training-panel > header small { color: var(--muted); font-size: .68rem; }
.daily-training-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.daily-training-choice button { display: flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; border: 1px solid var(--border); border-radius: 12px; color: var(--muted); background: var(--panel); font: inherit; font-weight: 750; cursor: pointer; }
.daily-training-choice button.active { color: #fff; border-color: var(--accent); background: var(--accent); box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 22%, transparent); }
.daily-training-choice button[data-value="0"].active { border-color: #64748b; background: #64748b; box-shadow: 0 8px 20px rgba(100,116,139,.2); }
.daily-training-details { display: grid; gap: .65rem; }
.daily-training-details[hidden] { display: none; }
.daily-training-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.food-sensitivity-picker, .food-sensitivity-custom { display: grid; gap: .25rem; color: var(--muted); font-size: .68rem; font-weight: 750; }
.food-sensitivity-selected { display: flex; flex-wrap: wrap; gap: .35rem; min-height: 0; }
.food-sensitivity-chip { display: inline-flex; align-items: center; gap: .28rem; min-height: 28px; padding: .26rem .48rem; border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--border)); border-radius: 999px; color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--panel)); font: inherit; font-size: .7rem; font-weight: 750; cursor: pointer; }
.food-sensitivity-chip:hover { background: color-mix(in srgb, var(--accent) 14%, var(--panel)); }
.energy-opts { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; }
.performance-opts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric-field--pump .performance-opts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.energy-opt { display: flex; flex-direction: column; align-items: center; gap: .25rem;
    background: var(--input-bg); border: 1px solid var(--border); border-radius: 12px;
    padding: .6rem .3rem; cursor: pointer; font: inherit; color: var(--text);
    transition: transform .14s var(--ease-out), border-color .14s var(--ease-out),
        background .14s var(--ease-out), box-shadow .14s var(--ease-out); }
.energy-emoji { font-size: 1.65rem; line-height: 1; filter: grayscale(.5) opacity(.75); transition: filter .14s var(--ease-out); }
.energy-num { font-size: .72rem; font-weight: 700; color: var(--muted); }
.performance-opt-label { min-width: 0; font-size: .72rem; line-height: 1.15; font-weight: 700;
    color: var(--muted); text-align: center; overflow-wrap: anywhere; }
.energy-opt:active { transform: scale(.95); }
.energy-opt.active { border-color: var(--accent); background: rgba(47, 107, 255, .10);
    box-shadow: 0 0 0 2px rgba(47, 107, 255, .18); }
.energy-opt.active .energy-emoji { filter: none; }
.energy-opt.active .energy-num { color: var(--accent); }
.energy-opt.active .performance-opt-label { color: var(--accent); }
.energy-cur-lbl { font-size: .76rem; color: var(--muted); min-height: 1.1rem; font-weight: 600; }
@media (hover: hover) and (pointer: fine) {
    .energy-opt:hover { border-color: var(--accent); }
    .energy-opt:hover .energy-emoji { filter: grayscale(.15); }
}

/* ── Günlük Kayıt zaman bölümleri: gece (🌙) ve sabah (☀️) ── */
.daily-sec { border: 1px solid var(--border); border-radius: 14px; padding: .9rem; display: grid; gap: .8rem; }
.daily-sec--night { background: linear-gradient(180deg, #f5f6ff, var(--panel-2)); border-color: #d6daf6; }
.daily-sec--morning { background: linear-gradient(180deg, #fff8ec, var(--panel-2)); border-color: #f0e0bf; }
.daily-sec--training { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 7%, var(--panel)), var(--panel-2)); border-color: color-mix(in srgb, var(--accent) 28%, var(--border)); }
.daily-sec-head { display: flex; align-items: flex-start; gap: .6rem; }
details.daily-sec { padding: 0; display: block; overflow: hidden; }
details.daily-sec > .daily-sec-head { list-style: none; cursor: pointer; user-select: none; padding: .9rem; }
details.daily-sec > .daily-sec-head::-webkit-details-marker { display: none; }
.daily-sec-body { display: grid; gap: .8rem; padding: 0 .9rem .9rem; }
.daily-sec-chev { display: inline-flex; flex: 0 0 auto; margin-left: auto; color: var(--muted);
    transition: transform .2s ease; }
details.daily-sec[open] > .daily-sec-head .daily-sec-chev { transform: rotate(180deg); }
.daily-sec-ico { font-size: 1.7rem; line-height: 1; }
.daily-sec-text { display: flex; flex-direction: column; gap: .15rem; }
.daily-sec-title { font-weight: 700; color: var(--text); }
.daily-sec-hint { font-size: .78rem; color: var(--muted); line-height: 1.3; }
.daily-sec--note { background: linear-gradient(180deg, #f3fbf6, var(--panel-2)); border-color: #cfe9d8; }
.daily-note-input { width: 100%; resize: vertical; min-height: 2.6rem; font: inherit; }
@media (max-width: 560px) {
    .daily-row--macros, .daily-row--activity, .daily-row--vitals, .daily-row--food-tolerance { grid-template-columns: 1fr; }
    .metric-field--wakefulness .performance-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.stack { display: flex; flex-direction: column; gap: .7rem; }
.stack.narrow { max-width: 400px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.check { display: flex; align-items: center; gap: .5rem; }
.check input { width: auto; }
.field-error { color: var(--danger); font-size: .8rem; margin-top: .2rem; }

/* ── Hatalı input vurgusu ── */
.has-error,
.has-error input,
.has-error select,
.has-error textarea { border-color: var(--danger) !important; }
input.has-error, select.has-error, textarea.has-error { background: #fff6f6; box-shadow: 0 0 0 3px rgba(220,38,38,.12); }

/* ── Form hata özeti (formun başına eklenir) ── */
.form-error-summary { background: #fff3f2; border: 1px solid #ffd0cc; border-left: 4px solid var(--danger);
    border-radius: 12px; padding: .8rem 1rem; margin-bottom: 1rem; animation: errShake .35s var(--ease-out, ease); }
.form-error-summary-title { color: var(--danger); font-weight: 700; margin-bottom: .35rem; }
.form-error-summary ul { margin: 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: .15rem; }
.form-error-summary li { color: var(--text); font-size: .86rem; }
.form-error-link { background: none; border: none; padding: 0; margin: 0; font: inherit; color: var(--text);
    text-align: left; cursor: pointer; }
.form-error-link:hover { text-decoration: underline; color: var(--danger); }
/* Yan yana (flex) formlarda hata gösterimi alanları sağa İTMESİN:
   - özet kutusu kendi tam satırını kaplar (flex-basis:100%; .stack sütun formlarını bozmamak için yalnız inline-form'a),
   - uzun alan-altı hata metni alanı genişletmesin → alanı sınırla, metin alt satıra kaysın. */
.inline-form > .form-error-summary { flex-basis: 100%; width: 100%; box-sizing: border-box; }
.inline-form .field:has(.field-error) { max-width: 20rem; }
.inline-form .field-error { overflow-wrap: anywhere; }
.form-error-link strong { color: var(--danger); }
@keyframes errShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-5px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(3px); }
}
@media (prefers-reduced-motion: reduce) {
    .form-error-summary { animation: none; }
    .pu-censor--attn { animation: none; }
}

/* ── Buttons ── */
.btn { background: var(--action-primary); color: #fff; border: none; padding: .6rem 1.1rem; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 600;
    transition: background .15s var(--ease-out), transform .14s var(--ease-out), box-shadow .15s var(--ease-out); }
.btn:hover { background: var(--action-primary-hover); }
/* Tamamlama eylemi: ortak buton biçimi ve açık mavi semantik renk. */
.btn.finish { background: var(--action-finish-bg); color: var(--action-finish-text);
    box-shadow: inset 0 0 0 1px var(--action-finish-edge); }
.btn.finish:hover:not(:disabled) { background: var(--action-finish-hover); }
.btn.finish:disabled { opacity: .6; cursor: not-allowed; }
/* Basılı geri bildirimi: scale — arayüz "duyuyor" hissi (Emil) */
.btn:active { transform: scale(.97); }
.btn.block { width: 100%; }
.btn.small { padding: .35rem .75rem; font-size: .85rem; margin-right: .3rem; }
.btn.ghost { background: transparent; border: 1px solid var(--action-secondary-border); color: var(--action-secondary-text); }
.btn.ghost:hover { background: var(--action-secondary-hover); }
.btn.danger { background: var(--action-danger); }
.btn.danger:hover { background: var(--action-danger-hover); }
/* ── STANDART: yıkıcı eylem (sil/kaldır/reddet) — bkz. DELETE_ACTION_STANDARD.md ──
   Liste/kart içindeki silme butonu DOLU kırmızı değildir: dinlenirken sessiz (nötr
   çerçeve + kırmızı metin), üzerine gelince kırmızıya döner. Dolu kırmızı (.btn.danger)
   yalnız onay modalının onay butonuna — geri dönüşü olmayan son tıklamaya — aittir. */
.btn.ghost.danger { background: transparent; border: 1px solid color-mix(in srgb, var(--action-danger) 32%, var(--border));
    color: var(--action-danger); }
.btn.ghost.danger:hover { border-color: var(--action-danger); background: color-mix(in srgb, var(--action-danger) 9%, transparent);
    color: var(--action-danger-hover); }
.btn.ghost.danger:focus-visible { outline: 2px solid var(--action-danger); outline-offset: 2px; }
/* Ortak silme butonu (ui.js → deleteActionBtn): ikon + metin, 44px dokunma hedefi. */
.act-del { display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    min-height: 44px; padding: .4rem .85rem; margin-right: 0; font-weight: 600; }
.act-del .act-del-ic { display: inline-flex; flex: 0 0 auto; }
.act-del .act-del-ic svg { display: block; }
.act-del .act-del-lbl { white-space: nowrap; }
.act-del.is-icon-only { padding: .4rem; min-width: 44px; }
/* Silme sırasında: tıklama kilidi görünür olsun, ikon hafifçe sönsün. */
.act-del.is-busy { opacity: .6; cursor: progress; }
.act-del:disabled { cursor: not-allowed; }
/* ── STANDART: kart DIŞINDA, doğrudan sayfa arka planında (--bg) duran butonlar ──
   Şeffaf .ghost butonlar açık arka planda kaybolur (border ~ bg). .surface beyaz bir
   yüzey + yumuşak gölge ile butonu zeminin üstünde "yüzergezer" gösterir → net kontrast
   ve dokunulabilirlik. Kart içindeki ikincil eylemlerde .ghost; kart dışında .surface. */
.btn.surface { background: var(--action-secondary-bg); color: var(--action-primary-hover); border: 1px solid var(--action-secondary-border);
    box-shadow: var(--shadow); font-weight: 700; }
.btn.surface:hover { background: var(--action-secondary-bg); color: var(--action-primary-hover); border-color: var(--action-primary);
    box-shadow: 0 10px 26px rgba(47,107,255,.20); }

/* ── Gallery ── */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; }
.photo { margin: 0; background: var(--panel-2); border: 2px solid var(--border); border-radius: 12px; overflow: hidden; cursor: pointer; position: relative; }
.photo.selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.photo img { width: 100%; height: 140px; object-fit: cover; display: block; background: #e9eef6; }
.photo figcaption { padding: .4rem; font-size: .78rem; color: var(--muted); }
.photo .badge { position: absolute; top: 6px; left: 6px; background: var(--accent); color: #fff; font-size: .7rem; padding: .1rem .4rem; border-radius: 6px; }
.compare-bar { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; flex-wrap: wrap; }
.compare-bar .spacer { flex: 1; }
.compare-bar .sel-count { font-size: .82rem; font-weight: 600; color: var(--accent); }
.compare-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.compare-grid img { height: 260px; }

/* ── Notifications ── */
.notif-hero { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 1rem;
    padding: 1.15rem 1.2rem; margin-bottom: 1rem; border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border));
    border-radius: 18px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, var(--panel)), var(--panel));
    box-shadow: var(--shadow); overflow: hidden; }
.notif-hero-ic { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px;
    background: var(--accent); color: #fff; font-size: 1.65rem; box-shadow: 0 8px 20px rgba(47,107,255,.25); }
.notif-hero-copy { min-width: 0; }
.notif-hero-copy h2 { margin: 0 0 .2rem; }
.notif-hero-copy p { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.4; }
.notif-hero-count { min-width: 92px; display: flex; flex-direction: column; align-items: center; padding: .55rem .75rem;
    border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border)); border-radius: 13px; background: var(--panel); }
.notif-hero-count strong { color: var(--accent); font-size: 1.6rem; line-height: 1; }
.notif-hero-count span { margin-top: .18rem; color: var(--muted); font-size: .66rem; font-weight: 700; }
.notif-hero-actions { grid-column: 2 / -1; display: flex; justify-content: flex-end; align-items: center; gap: .5rem; flex-wrap: wrap; }
.notif-sound-toggle.is-on { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, var(--border)); background: color-mix(in srgb, var(--ok) 7%, var(--panel)); }
.notif-toolbar { display: flex; align-items: center; justify-content: space-between; gap: .7rem; margin: .3rem 0 .7rem; }
.notif-filters { display: flex; gap: .4rem; flex-wrap: wrap; }
.notif-list { display: flex; flex-direction: column; gap: .65rem; }
.notif { position: relative; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: .8rem;
    min-width: 0; padding: .85rem .9rem; background: var(--panel); border: 1px solid var(--border);
    border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.notif.unread { border-color: color-mix(in srgb, var(--accent) 36%, var(--border));
    background: linear-gradient(100deg, color-mix(in srgb, var(--accent) 8%, var(--panel)), var(--panel) 58%); }
.notif.unread::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--accent); }
.notif-card-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px;
    border: 1px solid var(--border); background: var(--panel-2); font-size: 1.2rem; }
.notif.is-success .notif-card-icon { background: color-mix(in srgb, var(--ok) 12%, var(--panel)); }
.notif.is-danger .notif-card-icon { background: color-mix(in srgb, var(--danger) 10%, var(--panel)); }
.notif.is-feedback .notif-card-icon { background: color-mix(in srgb, #8b5cf6 11%, var(--panel)); }
.notif.is-message .notif-card-icon { background: color-mix(in srgb, var(--accent) 11%, var(--panel)); }
.notif.is-request .notif-card-icon { background: color-mix(in srgb, #f59e0b 12%, var(--panel)); }
.notif-body { min-width: 0; }
.notif-meta { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; margin-bottom: .25rem; }
.notif-type, .notif-new { display: inline-flex; align-items: center; min-height: 20px; padding: .1rem .45rem;
    border-radius: 999px; font-size: .62rem; font-weight: 800; }
.notif-type { color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--panel-2)); }
.notif-new { color: #9a3412; background: #ffedd5; }
.notif-meta time { margin-left: auto; color: var(--muted); font-size: .64rem; }
.notif-message { display: block; font-size: .9rem; line-height: 1.4; overflow-wrap: anywhere; }
.notif-actions { display: flex; align-items: center; gap: .4rem; flex-shrink: 0; }
.notif-empty { min-height: 150px; border: 1px dashed var(--border); border-radius: 14px; background: var(--panel-2); }
/* Hedefi olan bildirim tıklanabilir kart: imleç + hover yükselmesi + klavye odak halkası. */
.notif-clickable { cursor: pointer; transition: border-color .15s var(--ease-out), box-shadow .15s var(--ease-out), transform .1s var(--ease-out); }
.notif-clickable:hover { border-color: var(--accent); box-shadow: 0 9px 24px rgba(47,107,255,.16); transform: translateY(-1px); }
.notif-clickable:active { transform: scale(.995); }
.notif-clickable:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 620px) {
    .notif-hero { grid-template-columns: auto minmax(0,1fr); padding: .9rem; }
    .notif-hero-count { grid-column: 1 / -1; flex-direction: row; justify-content: center; gap: .4rem; min-width: 0; }
    .notif-hero-count span { margin: 0; }
    .notif-hero-actions { grid-column: 1 / -1; justify-content: stretch; }
    .notif-hero-actions .btn { flex: 1 1 140px; }
    .notif-toolbar { align-items: flex-start; flex-direction: column; }
    .notif { grid-template-columns: auto minmax(0,1fr); }
    .notif-actions { grid-column: 1 / -1; justify-content: flex-end; padding-top: .5rem; border-top: 1px solid var(--border); }
    .notif-meta time { width: 100%; margin-left: 0; }
}
.row-between { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; }

/* ── Status pills ── */
/* Durum rozetleri — renk/anlam eşlemesi BADGE_STATUS_STANDARD.md'de zorunlu olarak tanımlı.
   YEŞİL = devam ediyor/aktif · MAVİ = tamamlandı · amber = beklemede · mor = kısıtlı ·
   kırmızı = reddedildi/iptal · gri = nötr geçmiş. Yeşil "bitti", mavi "aktif" demek DEĞİLDİR. */
/* `text-transform` YOK: `capitalize` etiketleri "Aktif Süreç" / "Yön Değiştirildi" diye
   kelime kelime büyütüyordu — CLAUDE.md cümle düzeni kuralına aykırı. Metin i18n'den
   zaten doğru gelir. */
.status { padding: .15rem .55rem; border-radius: 20px; font-size: .78rem; }
.status.pending { background: #fef3c7; color: var(--warn); }
/* Devam eden / yürürlükte olan kayıt (aktif süreç, aktif program, kabul edilmiş erişim). */
.status.active, .status.accepted { background: #dcfce7; color: var(--ok); }
/* Tamamlanmış kayıt (tamamlanan süreç, ulaşılan hedef, gönderilmiş form). */
.status.done { background: #dbeafe; color: #1d4ed8; }
.status.private { background: #ede9fe; color: #6d28d9; }
.status.rejected, .status.revoked { background: #fee2e2; color: var(--danger); }
.status.past { background: #eef2f7; color: var(--muted); }
/* Açılır/kapanır kart (native <details>) — Hedefim "Hedefini Güncelle" akordiyonu */
details.card-collapsible { padding: 0; overflow: hidden; }
.card-collapsible > .cc-sum { list-style: none; cursor: pointer; user-select: none; display: flex;
    align-items: center; justify-content: space-between; gap: 12px; padding: 1.2rem 1.3rem; }
.card-collapsible > .cc-sum::-webkit-details-marker { display: none; }
.card-collapsible > .cc-sum h3 { margin: 0; }
.card-collapsible > .cc-sum:hover h3 { color: var(--accent); }
.card-collapsible .cc-chev { flex: 0 0 auto; display: inline-flex; color: var(--muted); transition: transform .2s ease; }
.card-collapsible[open] > .cc-sum .cc-chev { transform: rotate(180deg); }
.card-collapsible > .cc-body { padding: 0 1.3rem 1.3rem; }

/* Hedef Arşivi — Hedefim içine gömülü bölüm (sol menüden kaldırıldı; hairline ayırıcı) */
.goal-archive { margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--border); }
.goal-archive-h { margin: 0 0 .3rem; }

/* Hedef Arşivi kartı */
.arch-head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.arch-actions { margin-top: .8rem; align-items: center; }
.arch-share { display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; }

/* ── Modal ── */
/* Giriş: backdrop fade + içerik scale(.96)→1 (merkez origin — modal trigger'a bağlı değil).
   @starting-style ile JS gerekmeden; desteklemeyen tarayıcıda zarifçe anında belirir. */
.modal-overlay { position: fixed; inset: 0; background: rgba(15,27,52,.5); display: grid; place-items: center; padding: 1rem; z-index: 50;
    opacity: 1; transition: opacity .2s var(--ease-out); }
@starting-style { .modal-overlay { opacity: 0; } }
.modal { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; max-width: 900px; width: 100%; max-height: 90vh; overflow: auto; box-shadow: 0 30px 60px rgba(16,31,64,.25);
    transform-origin: center; transform: scale(1); opacity: 1; transition: transform .22s var(--ease-out), opacity .22s var(--ease-out); }
@starting-style { .modal { transform: scale(.96); opacity: 0; } }

/* ── MODAL-X (docs/04 § UI-MODAL-001): kapatma göstergesi her modalın sağ üstünde,
   tek biçimde. `ui.js → modalShell()` basar; ekran başına elle yazılmaz. ── */
.modal-x { display: inline-grid; place-items: center; width: 44px; min-height: 44px; flex: 0 0 auto;
    border: 0; border-radius: 12px; font-size: 1.4rem; line-height: 1; color: var(--muted);
    background: transparent; cursor: pointer; transition: color .15s var(--ease-out), background .15s var(--ease-out); }
.modal-x:hover { color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, transparent); }
.modal-x:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Kendi <header>'ı olmayan panelde × serbest konumlanır; başlık metninin altına kaymaz. */
.modal.has-modal-x, .workout-modal.has-modal-x { position: relative; }
/* Panel kendisi kaydırılabilir (`overflow:auto`) → `absolute` × içerikle birlikte yukarı
   kayıp görünmez oluyordu (denetim D4). `sticky` kaydırma boyunca üstte tutar. */
.modal.has-modal-x > .modal-x, .workout-modal.has-modal-x > .modal-x { position: sticky; top: 0; float: right; z-index: 2; margin: -.25rem -.35rem 0 .5rem; }
.modal.has-modal-x > h3:first-of-type { padding-right: 3rem; }
/* Panelin kendi başlık satırı varsa × oraya girer ve sağa yaslanır. */
.modal > header, .workout-modal > header { position: relative; }
.modal > header > .modal-x, .workout-modal > header > .modal-x { margin-left: auto; }
/* Antrenman/admin başlıklarındaki mevcut × butonları da aynı dokunma hedefine çekilir
   (varsayılan .workout-icon-btn 40px; set sayacındaki 32px override'ı etkilenmez). */
.workout-modal > header > .workout-icon-btn,
.admin-workout-modal-head > .workout-icon-btn { width: 44px; min-height: 44px; }

/* ── Fotoğraf yükleme slotu (önizleme + sansür) ── */
.photo-up .pu-slot { min-width: 150px; }
.pu-preview { margin-top: .4rem; }
.pu-thumb-wrap { position: relative; display: inline-block; }
.pu-thumb { display: block; width: 130px; height: 130px; object-fit: cover; border-radius: 10px;
    border: 1px solid var(--border); background: var(--panel-2); }
.pu-badge { display: none; }
.pu-badge.on { display: inline-block; position: absolute; left: 6px; bottom: 6px; background: rgba(16,31,64,.82);
    color: #fff; font-size: .68rem; font-weight: 700; padding: .12rem .4rem; border-radius: 6px; }
.pu-clear { position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%;
    border: none; background: var(--danger); color: #fff; font-size: 1rem; line-height: 1; cursor: pointer; }
.pu-actions { display: flex; align-items: center; gap: .5rem; margin-top: .4rem; flex-wrap: wrap; }

/* Sansürle butonu: gizlilik vurgusu için amber tonlu, ghost'tan belirgin → kullanıcı fark etsin. */
.pu-censor { display: inline-flex; align-items: center; gap: .4rem; font: inherit; font-weight: 700;
    font-size: .85rem; padding: .42rem .9rem; border-radius: 999px; cursor: pointer;
    color: #92560a; background: linear-gradient(180deg, #fff7e8, #ffeccc); border: 1px solid #f0c879;
    box-shadow: 0 1px 2px rgba(146,86,10,.12);
    transition: transform .14s var(--ease-out), box-shadow .2s var(--ease-out), border-color .2s var(--ease-out); }
.pu-censor:hover { border-color: #e3a233; box-shadow: 0 3px 12px rgba(227,162,51,.4); }
.pu-censor:active { transform: scale(.97); }
.pu-censor:disabled { opacity: .45; cursor: default; box-shadow: none; }
.pu-censor-ic { display: inline-flex; }
/* İşleme bitince (etkin olunca) birkaç kez nazik nabız → dikkat çeker, tıklanınca durur (rare/first-time). */
.pu-censor--attn { animation: czPulse 1.6s var(--ease-out) 3; }
@keyframes czPulse {
    0%, 100% { box-shadow: 0 1px 2px rgba(146,86,10,.12); }
    50% { box-shadow: 0 0 0 5px rgba(240,168,60,.28); }
}
.app-confirm-overlay { z-index: 1400; }

/* ── İlk kurulum sonrası başlangıç-foto bilgilendirmesi (Ayarlar → Fotoğraflar) ── */
.start-note { display: flex; gap: .8rem; align-items: flex-start; margin: 0 0 1.1rem;
    background: linear-gradient(180deg, rgba(47,107,255,.08), rgba(47,107,255,.04));
    border: 1px solid rgba(47,107,255,.22); border-left: 3px solid var(--accent);
    border-radius: 14px; padding: .9rem 1rem; }
.start-note-ic { flex: none; display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: #fff;
    box-shadow: 0 2px 9px rgba(47,107,255,.35); }
.start-note-body { min-width: 0; }
.start-note-lead { margin: 0 0 .2rem; font-size: 1rem; font-weight: 700; color: var(--accent-2); letter-spacing: -.01em; }
.start-note-txt { margin: 0; font-size: .88rem; line-height: 1.5; color: var(--text); }
.start-note-hl { white-space: nowrap; font-weight: 700; color: #92560a;
    background: #fff2d6; border: 1px solid #f0c879; border-radius: 6px; padding: .02rem .35rem; }

/* ── Sansür editörü (modal) ── */
.cz-overlay { position: fixed; inset: 0; background: rgba(8,15,33,.62); display: grid; place-items: center;
    padding: 1rem; z-index: 80; opacity: 1; transition: opacity .2s var(--ease-out); }
@starting-style { .cz-overlay { opacity: 0; } }
.cz-modal { background: var(--panel); border-radius: var(--radius); box-shadow: 0 30px 60px rgba(16,31,64,.3);
    width: 100%; max-width: 720px; max-height: 92vh; display: flex; flex-direction: column; overflow: hidden; }
.cz-head { display: flex; align-items: center; justify-content: space-between; padding: .9rem 1.1rem;
    border-bottom: 1px solid var(--border); }
.cz-x { background: none; border: none; font-size: 1.6rem; line-height: 1; color: var(--muted); cursor: pointer; }
.cz-x:hover { color: var(--danger); }
.cz-tools { display: flex; flex-wrap: wrap; gap: .8rem; padding: .7rem 1.1rem 0; }
.cz-grp { display: inline-flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.cz-emoji { font-size: 1.3rem; line-height: 1; width: 40px; height: 40px; border: 1px solid var(--border);
    border-radius: 10px; background: var(--panel-2); cursor: pointer; }
.cz-emoji:hover { border-color: var(--accent); }
.cz-tool { font: inherit; font-size: .85rem; padding: .45rem .7rem; border: 1px solid var(--border);
    border-radius: 10px; background: var(--panel-2); color: var(--text); cursor: pointer; }
.cz-tool:hover { border-color: var(--accent); }
.cz-tool.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.cz-hint { padding: .5rem 1.1rem 0; margin: 0; }
.cz-stage { flex: 1; min-height: 0; overflow: auto; display: grid; place-items: center; padding: .8rem 1.1rem;
    background: repeating-conic-gradient(#eef1f6 0% 25%, #f7f9fc 0% 50%) 50% / 22px 22px; }
.cz-canvas { max-width: 100%; max-height: 64vh; width: auto; height: auto; touch-action: none;
    border-radius: 8px; box-shadow: 0 4px 16px rgba(16,31,64,.18); cursor: crosshair; }
.cz-foot { display: flex; justify-content: flex-end; gap: .6rem; padding: .85rem 1.1rem;
    border-top: 1px solid var(--border); }

/* ── Toast ── */
.toast { position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%) translateY(200%); opacity: 0;
    background: var(--text); color: #fff; padding: .7rem 1.2rem; border-radius: 10px;
    transition: transform .3s var(--ease-out), opacity .3s var(--ease-out); z-index: 1700; box-shadow: var(--shadow); }
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.success { background: var(--ok); }
.toast.error { background: var(--danger); }

/* ── microPop — standart başarı parıltısı ── */
.micro-pop { animation: microPop .4s ease-out both; }
@keyframes microPop {
    0%   { box-shadow: 0 0 0 0 rgba(34,197,94,.5); transform: scale(1); }
    40%  { box-shadow: 0 0 0 6px rgba(34,197,94,.18); transform: scale(1.02); }
    100% { box-shadow: 0 0 0 0 transparent; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) { .micro-pop { animation-duration: .01ms; } }

.loading { color: var(--muted); padding: 2rem; text-align: center; }
.error-box { background: #fff3f2; border: 1px solid #ffd0cc; color: var(--danger); padding: 1rem; border-radius: 12px; }

/* ── Notice / clickable rows ── */
.notice { background: #eef4ff; border: 1px solid #cfe0ff; color: var(--accent-2); padding: .7rem 1rem; border-radius: 12px; margin-bottom: 1rem; }
.notice a { font-weight: 600; }
tr.clickable { cursor: pointer; }
tr.clickable:hover { background: var(--panel-2); }

/* ── Chart (Chart.js) ── */
.chart-wrap { position: relative; height: 320px; }
.chart-presentation { display: grid; gap: .55rem; min-width: 0; }
.chart-variants { display: flex; flex-wrap: wrap; gap: .45rem; }
.chart-variant-btn { display: inline-flex; align-items: center; gap: .35rem; min-width: 0; padding: .42rem .72rem;
    border: 1px solid var(--border); border-radius: 999px; background: var(--panel-2); color: var(--muted);
    font: inherit; font-size: .76rem; font-weight: 700; cursor: pointer; transition: .15s var(--ease-out); }
.chart-variant-btn:hover { border-color: var(--accent); color: var(--accent); }
.chart-variant-btn.active { border-color: var(--accent); background: var(--accent); color: #fff; box-shadow: none; }
.chart-share-note { margin: 0; color: var(--muted); font-size: .72rem; line-height: 1.35; }
.calorie-balance-view { display: grid; gap: .8rem; min-width: 0; }
.cb-explain { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.cb-ranges { display: flex; flex-wrap: wrap; gap: .45rem; }
.cb-range-btn { appearance: none; cursor: pointer; border: 1px solid var(--border); border-radius: 999px;
    padding: .42rem .72rem; background: var(--panel-2); color: var(--muted); font: inherit; font-size: .76rem; font-weight: 700; }
.cb-range-btn:hover { border-color: var(--accent); color: var(--accent); }
.cb-range-btn.active { border-color: var(--accent); background: var(--accent); color: #fff; box-shadow: none; }
.cb-content { display: grid; gap: .8rem; min-width: 0; }
.cb-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem; }
.cb-stat { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .2rem .45rem; align-items: center;
    min-width: 0; padding: .7rem .75rem; border: 1px solid var(--border); border-radius: 12px; background: var(--panel-2); }
.cb-stat-ico { grid-row: 1 / 3; font-size: 1.3rem; }
.cb-stat-label { min-width: 0; color: var(--muted); font-size: .68rem; }
.cb-stat-value { min-width: 0; font-size: .92rem; overflow-wrap: anywhere; }
.cb-stat-value.is-surplus { color: #15803d; }
.cb-stat-value.is-deficit { color: #dc2626; }
.cb-stat-value.is-balanced { color: #64748b; }
.cb-legend { display: flex; flex-wrap: wrap; gap: .55rem 1rem; color: var(--muted); font-size: .72rem; }
.cb-legend > span { display: inline-flex; align-items: center; gap: .35rem; }
.cb-dot { display: inline-block; width: .65rem; height: .65rem; border-radius: 3px; background: #94a3b8; }
.cb-dot.is-surplus { background: #22c55e; }
.cb-dot.is-deficit { background: #ef4444; }
.cb-empty { display: flex; align-items: center; gap: .7rem; padding: .85rem; border: 1px dashed var(--border);
    border-radius: 12px; background: var(--panel-2); color: var(--muted); }
.cb-empty p { margin: 0; }
.cb-empty-ico { font-size: 1.5rem; }
@media (max-width: 560px) {
    .cb-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── Uyarı bandı (kan şekeri vb.) ── */
/* Panelim kısayol şeridi — sabit dar kartlar; yeni kısayollar yan yana eklenir */
.shortcut-strip { margin-bottom: 1.1rem; }
.shortcut-strip-title { font-size: .72rem; letter-spacing: .04em; font-weight: 700; color: var(--muted);
    margin: 0 0 .45rem; }
.shortcut-grid { display: flex; flex-wrap: wrap; gap: .6rem; }
.shortcut-card { display: flex; align-items: center; gap: .55rem; width: 236px; max-width: 100%;
    text-decoration: none; color: inherit; background: var(--surface-bg); border: 1px solid var(--surface-border);
    border-radius: var(--surface-radius); box-shadow: var(--surface-shadow); padding: .6rem .7rem;
    font: inherit; text-align: left; cursor: pointer;
    transition: transform .18s var(--ease-out), border-color .18s var(--ease-out); }
.shortcut-card:hover { transform: translateY(-1px); border-color: var(--accent); }
.shortcut-card-ico { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 34px;
    width: 34px; height: 34px; font-size: 1.45rem; line-height: 1; }
.shortcut-card-lbl { font-size: .86rem; font-weight: 600; min-width: 0; }
.shortcut-card-go { margin-left: auto; color: var(--accent); font-size: 1rem; }
.dashboard-ai-analysis { scroll-margin-top: 5rem; }
.dashboard-ai-analysis:focus { outline: none; }
@media (max-width: 480px) { .shortcut-card { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .shortcut-card:hover { transform: none; } }

/* Yağ oranı yönlendirme kartı — Panelim ve Vücut Ölçümleri'nde aynı bileşen */
.bfg-card { margin-top: 1rem; }
.bfg-formula { line-height: 1.55; }
.bfg-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.bfg-chip { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .4rem .7rem;
    border-radius: 999px; border: 1px solid var(--surface-border); background: var(--surface-bg);
    color: inherit; text-decoration: none; font: inherit; cursor: default;
    transition: border-color .18s var(--ease-out), transform .18s var(--ease-out); }
a.bfg-chip, button.bfg-chip { cursor: pointer; }
a.bfg-chip:hover, button.bfg-chip:hover { transform: translateY(-1px); border-color: var(--accent); }
.bfg-chip-ic { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px;
    border-radius: 50%; font-size: .72rem; font-weight: 700; flex: 0 0 20px; }
.bfg-chip-lbl { font-size: .82rem; font-weight: 600; }
.bfg-chip-st { font-size: .7rem; color: var(--muted); }
.bfg-chip.is-ok .bfg-chip-ic { background: rgba(25,166,130,.18); color: #0f766e; }
.bfg-chip.is-stale { border-color: rgba(234,138,4,.5); }
.bfg-chip.is-stale .bfg-chip-ic { background: rgba(234,138,4,.18); color: #b45309; }
.bfg-chip.is-missing { border-color: rgba(220,38,38,.45); }
.bfg-chip.is-missing .bfg-chip-ic { background: rgba(220,38,38,.15); color: #b91c1c; }
.bfg-verdict { display: flex; align-items: flex-start; gap: .55rem; padding: .7rem .8rem; border-radius: 12px;
    font-size: .86rem; line-height: 1.5; }
.bfg-verdict-ic { flex: 0 0 auto; }
.bfg-verdict.is-ok { background: rgba(25,166,130,.12); color: #0f766e; }
.bfg-verdict.is-stale { background: rgba(234,138,4,.14); color: #92400e; }
.bfg-verdict.is-missing { background: rgba(220,38,38,.12); color: #b91c1c; }
[data-theme="dark"] .bfg-verdict.is-ok { color: #5eead4; }
[data-theme="dark"] .bfg-verdict.is-stale { color: #fcd34d; }
[data-theme="dark"] .bfg-verdict.is-missing { color: #fca5a5; }
[data-theme="dark"] .bfg-chip.is-ok .bfg-chip-ic { color: #5eead4; }
[data-theme="dark"] .bfg-chip.is-stale .bfg-chip-ic { color: #fcd34d; }
[data-theme="dark"] .bfg-chip.is-missing .bfg-chip-ic { color: #fca5a5; }
@media (prefers-reduced-motion: reduce) { a.bfg-chip:hover, button.bfg-chip:hover { transform: none; } }

.warn-banner { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; padding: .8rem 1rem; border-radius: 12px; margin-bottom: 1.2rem; }
.warn-banner strong { display: block; margin-bottom: .2rem; }

/* ── Before / After çiftleri (galeri sayfası) ── */
/* Önce/Sonra çiftleri — kompakt kart gridi (büyük blok yerine) */
.ba-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.ba-card { border: 2px solid var(--border); border-radius: 14px; padding: .6rem; background: var(--panel-2); display: flex; flex-direction: column; gap: .5rem; }
.ba-card.featured { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(47,107,255,.2); }
.ba-card .ba-stage { max-width: 100%; }
.ba-card-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.ba-dates { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ba-actions { display: flex; gap: .3rem; align-items: center; }
.icon-btn { border: 1px solid var(--border); background: var(--panel); color: var(--text); width: 30px; height: 30px; border-radius: 8px; cursor: pointer; font-size: .9rem; line-height: 1; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.icon-btn:hover { border-color: var(--accent); }
.icon-btn.on { color: #f59e0b; border-color: #f59e0b; }
.icon-btn.danger:hover { border-color: var(--action-danger); color: var(--action-danger); }
.ba-imgs { display: flex; gap: .5rem; }
.ba-imgs .photo { flex: 1; cursor: default; }
.ba-imgs .photo img { height: 150px; }
.ba-empty { display: flex; flex-direction: column; }
.ph-empty { width: 100%; height: 150px; display: grid; place-items: center; color: var(--muted); background: #e9eef6; }

/* Galeri kartı: tek tarihte birden çok açı */
.photo-record .rec-imgs { display: flex; gap: 2px; height: 140px; background: #e9eef6; }
.photo-record .rec-imgs img { height: 140px; width: 100%; object-fit: cover; flex: 1; min-width: 0; }
/* Görsel üstündeki silme butonu: ghost şeffaf olduğu için fotoğrafın üstünde kaybolmasın
   → yarı saydam beyaz yüzey + bulanıklık; hover'da yıkıcı renge döner. */
.photo .photo-del { position: absolute; top: 6px; right: 6px; margin: 0; z-index: 2;
    min-height: 36px; min-width: 36px; padding: .35rem; border-radius: 999px;
    background: rgba(255,255,255,.88); backdrop-filter: blur(4px);
    border-color: color-mix(in srgb, var(--action-danger) 25%, transparent); }
.photo .photo-del:hover { background: rgba(255,255,255,.96); border-color: var(--action-danger); }

/* ── Ölçüm formu: zorunlu / isteğe bağlı ayrımı ── */
.meas-group { margin-bottom: 1.1rem; }
.group-title { font-size: .9rem; margin: 0 0 .6rem; font-weight: 700; }
.group-title.muted { color: var(--muted); font-weight: 600; }
.field.req > span::after { content: ' *'; color: var(--danger); font-weight: 700; }
.field.req input, .field.req select { border-color: #bcd3ff; background: #fbfdff; }
.field.opt > span { color: var(--muted); }

/* ── Ayarlar: zorunlu profil kartı (izole, dikkat çeken) ──
   Yeni kullanıcı yalnızca gerekli alanlara odaklansın; zaman dilimi/şifre aşağıda
   ayrı, sönük alanda. İlk kurulumda (.setup-pulse) yumuşak nabız dikkat çeker. */
.setup-card { border: 1.5px solid var(--accent); }
.setup-card.setup-pulse { animation: setupPulse 2.4s var(--ease-in-out) infinite; }
@keyframes setupPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(47, 107, 255, .30); }
    50%      { box-shadow: 0 0 0 7px rgba(47, 107, 255, 0); }
}
@media (prefers-reduced-motion: reduce) { .setup-card.setup-pulse { animation: none; } }
.setup-badge {
    display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .04em;
    color: var(--accent-2); background: #eaf1ff;
    padding: .2rem .6rem; border-radius: 999px; margin-bottom: .55rem;
}
.settings-section-label {
    font-size: .92rem; font-weight: 700; color: var(--muted);
    margin: 1.7rem 0 .6rem; padding-top: 1rem; border-top: 1px solid var(--border);
}
/* Salt-okunur (kilitli) alan — görünen ad bir kez belirlenir; asıl form-input stiliyle
   aynı çerçeve, ama sönük + kilit imgesi ile "değiştirilemez" olduğu belli olur. */
.locked-input {
    background: var(--panel-2); color: var(--muted); cursor: not-allowed;
    opacity: .9; padding-right: 2rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238a94a6' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right .7rem center;
}
.field-hint { margin: -.2rem 0 .1rem; }

/* ── Zorunlu profil kapısı ("Seni tanıyalım") — auth-box üzerine kurulu, biraz daha geniş ── */
.gate-box { max-width: 440px; }
.gate-head { text-align: center; margin: .3rem 0 1.1rem; }
.gate-emoji { font-size: 2.2rem; line-height: 1; margin-bottom: .3rem; }
.gate-head h2 { margin: .1rem 0 .35rem; letter-spacing: -.01em; }
.gate-hint { margin: -.25rem 0 .1rem; }
.gate-logout { margin-top: 1rem; }

/* ── Paylaşım: kullanıcı arama ── */
.search-results { display: flex; flex-direction: column; gap: .4rem; margin-top: .3rem; }
.search-row { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap;
    border: 1px solid var(--border); border-radius: 10px; padding: .5rem .8rem; background: var(--panel-2); }
.search-row .sr-name { font-weight: 600; }
.search-row .sr-actions { display: flex; gap: .4rem; }

/* ── Onboarding stepper ── */
.stepper { display: flex; gap: .5rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.stepper .step { display: flex; align-items: center; gap: .5rem; padding: .4rem .85rem; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--border); color: var(--muted); }
.stepper .step .step-no { width: 22px; height: 22px; border-radius: 50%; background: #ccd6e6; color: #fff; display: grid; place-items: center; font-size: .78rem; font-weight: 700; }
.stepper .step.active { border-color: var(--accent); color: var(--accent); background: #eef4ff; }
.stepper .step.active .step-no { background: var(--accent); }
.stepper .step.done .step-no { background: var(--ok); }
.stepper .step-lbl { font-size: .85rem; }
.stepper .step.clickable { cursor: pointer; }
.stepper .step.clickable:hover { border-color: var(--accent); background: #eef4ff; }

/* Onboarding adım özeti (önceki adımlarda girilenler) */
.onb-summary { background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; padding: .6rem .9rem; margin-bottom: 1rem; display: flex; flex-direction: column; gap: .25rem; }
.onb-sum-row { font-size: .85rem; color: var(--muted); }
.onb-sum-k { display: inline-block; min-width: 72px; padding-right: .6rem; font-weight: 600; color: var(--text); }
/* Amaç ↔ hedef yağ oranı çelişkisi uyarısı (projeksiyon tutarsız) */
.onb-sum-row.warn { color: #9a3412; }
.onb-sum-row.warn .onb-sum-k { color: #9a3412; }
.data-table tr.warn th, .data-table tr.warn td { color: #9a3412; background: #fff7ed; }
/* Açıklamalı etiket + "ⓘ" ipucu (native title ile üstüne gelince açıklar) */
.lbl-info { display: inline-flex; align-items: center; gap: .35rem; }
.info-i { display: inline-flex; align-items: center; justify-content: center; width: 1.15rem; height: 1.15rem; font-size: .75rem; line-height: 1; border-radius: 50%; background: var(--panel-2); color: var(--muted); border: 1px solid var(--border); cursor: pointer; user-select: none; flex: 0 0 auto; }
.info-i:hover, .info-i:focus { background: var(--accent, #2563eb); color: #fff; border-color: transparent; outline: none; }
.goal-bmr-label { display: inline-flex; align-items: center; gap: .4rem; }
.goal-info { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 1.15rem; height: 1.15rem; border: 1px solid var(--border); border-radius: 50%; background: var(--panel-2); color: var(--muted); cursor: help; font: 700 .72rem/1 system-ui, sans-serif; }
.goal-info:hover, .goal-info:focus { border-color: transparent; outline: none; background: var(--accent, #2563eb); color: #fff; }
.goal-info-pop { position: absolute; z-index: 100; left: 0; top: calc(100% + .5rem); width: min(290px, calc(100vw - 32px)); padding: .6rem .72rem; border-radius: 9px; background: #0f172a; color: #fff; box-shadow: 0 10px 30px rgba(15,23,42,.3); font-size: .78rem; font-weight: 500; line-height: 1.45; text-align: left; white-space: normal; pointer-events: none; opacity: 0; visibility: hidden; transform: translateY(-3px); transition: opacity .14s ease, transform .14s ease, visibility .14s; }
.goal-info:hover .goal-info-pop, .goal-info:focus .goal-info-pop, .goal-info:focus-within .goal-info-pop { opacity: 1; visibility: visible; transform: translateY(0); }
@media (max-width: 480px) {
  .goal-info-pop { left: 50%; width: calc(100vw - 32px); transform: translate(-55%, -3px); }
  .goal-info:hover .goal-info-pop, .goal-info:focus .goal-info-pop, .goal-info:focus-within .goal-info-pop { transform: translate(-55%, 0); }
}
/* Günlük: Gerçekleşen vs Hedef — tüm metrikler tek tabloda (ilerleme barı) */
.metric-table td, .metric-table th { white-space: nowrap; vertical-align: middle; }
.metric-table .mt-avg { color: var(--muted); }
.mt-ulasim { display: flex; align-items: center; gap: .5rem; min-width: 130px; }
.mt-bar { flex: 1; height: 8px; min-width: 60px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.mt-fill { height: 100%; border-radius: 6px; transition: width .2s; }
.mt-pct { font-size: .8rem; font-weight: 700; color: var(--muted); min-width: 40px; text-align: right; }
/* Gruplu "Gerçekleşen vs Hedef" (Panelim) — grup başlığı (🌙/🔥/☀️) + metrik ikonu + hedefsiz "—" */
.metric-table tbody th { font-weight: 600; }
.metric-table .mt-ic { margin-right: .5rem; }
.metric-table .mt-grp th { background: var(--panel-2); font-size: .72rem;
    letter-spacing: .04em; color: var(--muted); font-weight: 800; padding-top: .6rem; padding-bottom: .35rem; }
.metric-table .mt-grp-ic { margin-right: .45rem; }
.metric-table .mt-noaim { color: var(--muted); text-align: center; }

/* Tıkla/üstüne gel ile açılan ipucu kutusu */
.tip-pop { position: absolute; z-index: 9999; max-width: 300px; background: #0f172a; color: #fff; font-size: .78rem; line-height: 1.4; padding: .55rem .7rem; border-radius: 8px; box-shadow: 0 8px 26px rgba(0,0,0,.28); pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .12s; }
.tip-pop.on { opacity: 1; visibility: visible; }

/* Dashboard: önceki vücut analizi (soluk) */
.bc-prev { opacity: .55; margin-top: .6rem; }

/* Onboarding: yağ oranı kategori kartları (görsel referans) */
.bf-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .8rem; margin-bottom: .8rem; }
.bf-card { border: 2px solid var(--border); border-radius: 12px; overflow: hidden; cursor: pointer; background: var(--panel-2); transition: border-color .12s, box-shadow .12s; }
.bf-card:hover { border-color: var(--accent); }
.bf-card.selected { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(47,107,255,.25); }
.bf-img { height: 150px; background: #e9eef6; display: grid; place-items: center; overflow: hidden; }
.bf-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bf-img-missing span { color: var(--muted); font-weight: 700; font-size: 1.1rem; }
.bf-card-body { padding: .6rem .8rem; }
.bf-card-title { font-weight: 700; }
.bf-card-range { color: var(--accent); font-weight: 600; font-size: .9rem; }

/* ── Görsel kart seçici (dropdown yerine: ana amaç / aktivite seviyesi) ── */
.opt-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .7rem; }
.opt-card { position: relative; border: 2px solid var(--border); border-radius: 14px; background: var(--panel-2); padding: 1rem .8rem; cursor: pointer; text-align: center; transition: border-color .12s var(--ease-out), box-shadow .12s var(--ease-out), transform .12s var(--ease-out); }
.opt-card:hover { border-color: var(--accent); }
.opt-card:active { transform: scale(.985); }
.opt-card:focus-visible { outline: none; border-color: var(--accent); }
.opt-card.selected { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(47,107,255,.25); background: rgba(47,107,255,.06); }
.opt-card.selected::after { content: '✓'; position: absolute; top: .45rem; right: .55rem; width: 1.2rem; height: 1.2rem; line-height: 1.2rem; font-size: .8rem; font-weight: 700; color: #fff; background: var(--accent); border-radius: 50%; }
.opt-icon { font-size: 1.9rem; line-height: 1; margin-bottom: .45rem; }
.opt-title { font-weight: 700; font-size: .95rem; }
.opt-range { color: var(--accent); font-weight: 600; font-size: .85rem; margin-top: .15rem; }
.opt-desc { color: var(--muted); font-size: .78rem; margin-top: .25rem; line-height: 1.25; }

/* ── Hedef Yağ % — kare, ortalı, güçlü input ── */
.bf-target { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .5rem; margin-top: 1.1rem; }
.bf-target-label { font-weight: 700; color: var(--text); font-size: .95rem; }
.bf-target-box { position: relative; width: 132px; height: 132px; display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--accent); border-radius: 22px; background: rgba(47,107,255,.06);
    box-shadow: 0 8px 22px rgba(47,107,255,.14); transition: border-color .15s var(--ease-out), box-shadow .15s var(--ease-out); }
.bf-target-box:focus-within { border-color: var(--accent-2, var(--accent)); box-shadow: 0 0 0 4px rgba(47,107,255,.18); }
.bf-target-input { width: 100%; height: 100%; border: none; background: transparent; text-align: center;
    font-size: 2.6rem; font-weight: 800; color: var(--accent-2, var(--accent)); padding: 0 .9rem 0 0; -moz-appearance: textfield; }
.bf-target-input:focus { outline: none; }
.bf-target-input::-webkit-outer-spin-button, .bf-target-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.bf-target-suffix { position: absolute; right: .7rem; bottom: .9rem; font-size: 1.4rem; font-weight: 700; color: var(--accent); pointer-events: none; }
.bf-target-edit { color: var(--muted); font-size: .78rem; line-height: 1.35; max-width: 320px; }
.bf-target-note { font-weight: 600; color: var(--accent-2, var(--accent)); }

/* ── FFMI (Yağsız Kütle İndeksi) kategorize görsel ölçek ── */
.ffmi-gauge { margin-top: 1rem; }
.ffmi-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .5rem; }
.ffmi-cat { font-size: 1.02rem; white-space: nowrap; }
.ffmi-track { position: relative; padding-top: 24px; }
.ffmi-bar { display: flex; height: 14px; border-radius: 8px; overflow: hidden; }
.ffmi-seg { height: 100%; }
.ffmi-marker { position: absolute; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; }
.ffmi-marker::after { content: ''; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 7px solid var(--text); }
.ffmi-val { font-size: .7rem; font-weight: 700; background: var(--text); color: #fff; padding: .05rem .35rem; border-radius: 6px; margin-bottom: 2px; }
.ffmi-legend { display: flex; flex-wrap: wrap; gap: .45rem .9rem; margin-top: .6rem; }
.ffmi-leg { display: inline-flex; align-items: center; gap: .32rem; font-size: .75rem; color: var(--muted); }
.ffmi-leg i { width: .7rem; height: .7rem; border-radius: 50%; display: inline-block; }
.ffmi-leg.on { color: var(--text); font-weight: 700; }

/* ── Vücut Durumu rozeti (renkli ikon + ad + öneri) ── */
.status-badge { display: flex; gap: .8rem; align-items: flex-start; margin-top: 1rem; padding: .85rem .9rem; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--border); border-left: 4px solid var(--sc); }
.status-icon { font-size: 1.9rem; line-height: 1; flex: 0 0 auto; }
.status-body { flex: 1; min-width: 0; }
.status-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
.status-name { color: var(--sc); font-size: 1.05rem; }
.status-desc { color: var(--muted); font-size: .8rem; margin: .25rem 0 0; line-height: 1.3; }

/* ── Bölge vücut haritası (enjeksiyon) ── */
.body-map { display: flex; flex-wrap: wrap; gap: .8rem; align-items: flex-start; }
/* İnsan figürü vücut haritası (ön + arka) */
.bodymap-fig { width: 100%; }
.bodymap-fig svg.bodymap-svg { width: 100%; max-width: 420px; height: auto; display: block; margin: 0 auto; }
.bodymap-fig circle[data-tip] { cursor: pointer; }
.bm-healing { width: 100%; margin-top: .6rem; display: flex; flex-direction: column; gap: .3rem; }
.bm-h-row { font-size: .82rem; color: #b91c1c; display: flex; align-items: center; gap: .4rem; }
.bm-dot { width: 10px; height: 10px; border-radius: 50%; background: #ef4444; display: inline-block; flex: 0 0 auto; }
.region { min-width: 130px; border: 2px solid var(--border); border-radius: 12px; padding: .7rem .9rem; display: flex; flex-direction: column; gap: .2rem; }
.region-name { font-weight: 600; font-size: .85rem; }
.region-state { font-size: .78rem; }
.region-healing { background: #fee2e2; border-color: #fca5a5; color: #b91c1c; }
.region-available { background: #dcfce7; border-color: #86efac; color: #15803d; }
.region-none { background: var(--panel-2); color: var(--muted); }
.map-legend { display: flex; gap: 1rem; width: 100%; margin-top: .4rem; flex-wrap: wrap; }
.lg { font-size: .78rem; display: flex; align-items: center; gap: .35rem; color: var(--muted); }
.lg::before { content: ''; width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.lg-healing::before { background: #fca5a5; }
.lg-available::before { background: #86efac; }
.lg-none::before { background: var(--border); }

/* ── Bölge haritası SEÇİM modu + enjeksiyon formu ── */
.bodymap-fig circle.bm-marker.selectable { cursor: pointer; }
.bodymap-fig circle.bm-marker.selectable:hover { stroke: var(--accent); stroke-width: 3; }
.bm-sel-ring { pointer-events: none; }
.inj-form { display: flex; flex-direction: column; gap: 1rem; }
.inj-map { max-width: 460px; }
.inj-map-foot { margin-top: .4rem; }
.bm-selected-lbl { font-size: .85rem; font-weight: 700; color: var(--accent); }
.inj-row-actions { display: flex; align-items: center; gap: .4rem; white-space: nowrap; }
.injection-edit-modal { max-width: 760px; }
.inj-quick-repeat { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: .8rem;
    padding: .8rem; border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border)); border-radius: 14px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, var(--panel)), var(--panel)); }
.inj-quick-repeat-ic { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px;
    background: var(--accent); color: #fff; font-size: 1.2rem; box-shadow: 0 6px 15px rgba(47,107,255,.22); }
.inj-quick-repeat-copy { display: flex; flex-direction: column; gap: .12rem; min-width: 0; }
.inj-quick-repeat-copy > b { font-size: .9rem; }
.inj-quick-repeat-copy > span { color: var(--muted); font-size: .78rem; line-height: 1.35; overflow-wrap: anywhere; }
.inj-quick-repeat-btn { white-space: nowrap; }

/* ── Profil bilgi şeridi (Vücut Ölçüleri formu üstü): cinsiyet+boy salt-okunur + Ayarlar linki ── */
.meas-profile-strip { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.1rem;
    padding: .55rem .8rem; margin-bottom: .2rem; background: var(--surface-2, #f1f5f9);
    border: 1px solid var(--border, #e2e8f0); border-radius: 10px; font-size: .86rem; }
.meas-profile-strip .mps-item { display: inline-flex; align-items: baseline; gap: .35rem; min-width: 0; }
.meas-profile-strip .mps-k { color: var(--muted); }
.meas-profile-strip .mps-v { font-weight: 600; }
.meas-profile-strip .mps-empty .mps-v { color: #d97706; font-weight: 600; }
.meas-profile-strip .mps-edit { margin-left: auto; font-size: .82rem; white-space: nowrap; }
.meas-quick-weight { display: grid; grid-template-columns: auto minmax(0,1fr); gap: .8rem; padding: .9rem;
    border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border)); border-radius: 14px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 9%, var(--panel)), var(--panel)); }
.meas-quick-weight-ic { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px;
    background: var(--accent); color: #fff; font-size: 1.25rem; box-shadow: 0 6px 15px rgba(47,107,255,.22); }
.meas-quick-weight-body { min-width: 0; }
.meas-quick-weight-copy { display: flex; flex-direction: column; gap: .1rem; margin-bottom: .55rem; }
.meas-quick-weight-copy > b { font-size: .95rem; }
.meas-quick-weight-copy > span { color: var(--muted); font-size: .78rem; line-height: 1.35; }
.meas-quick-weight-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)) auto; align-items: end; gap: .55rem; }
.meas-quick-weight-form .field { min-width: 0; }
.meas-quick-weight-form input { width: 100%; min-width: 0; box-sizing: border-box; }
.meas-weight-save { min-height: 42px; white-space: nowrap; }
.meas-quick-weight .notice { grid-column: 1 / -1; margin: .55rem 0 0; }
.meas-detail-head { display: flex; align-items: center; gap: .65rem; padding: .7rem .8rem;
    border: 1px dashed var(--border); border-radius: 12px; background: var(--panel-2); }
.meas-detail-head-ic { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center;
    border: 1px solid var(--border); border-radius: 10px; background: var(--panel); }
.meas-detail-head-copy { display: flex; flex-direction: column; min-width: 0; gap: .08rem; }
.meas-detail-head-copy > b { font-size: .86rem; }
.meas-detail-head-copy > span { color: var(--muted); font-size: .75rem; line-height: 1.35; }
.onb-locked-note { margin: -.3rem 0 .2rem; }

/* ── Ölçüm figürü FORMU: bölgeye tıkla → yan panelde gir ── */
.meas-pick { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: flex-start; }
.meas-pick .meas-figure { flex: 0 0 auto; }
.meas-svg { width: 240px; max-width: 100%; height: auto; display: block; }
.meas-svg .meas-marker { fill: #cbd5e1; stroke: #fff; stroke-width: 2.5; cursor: pointer; transition: fill .12s; }
.meas-svg .meas-marker:hover { fill: #94a3b8; }
/* Seçili tarihteki mevcut ama bu oturumda dokunulmamış değer → soluk + yeşil halka.
   Düzenlenince .filled olur. */
.meas-svg .meas-marker.prefilled { fill: #dcfce7; stroke: #4ade80; }
.meas-svg .meas-marker.filled { fill: #22c55e; stroke: #fff; }
.meas-svg .meas-marker.active { stroke: var(--accent); }
.meas-sel-ring { pointer-events: none; }

/* ── Görsel lejant — noktalar figürdeki marker renkleriyle birebir eşleşir ── */
.meas-key { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin: .1rem 0 .7rem; font-size: .8rem; color: var(--muted); }
.meas-key-item { display: inline-flex; align-items: center; gap: .45rem; }
.meas-key-dot { flex: 0 0 auto; width: 14px; height: 14px; border-radius: 50%; background: #cbd5e1; border: 1.5px solid #b4c0cf; }
.meas-key-dot.is-prefilled { background: #dcfce7; border-color: #4ade80; }
.meas-key-dot.is-filled { background: #22c55e; border-color: #16a34a; }
.meas-editor { flex: 1; min-width: 240px; border: 1px solid var(--border); border-radius: 12px;
    padding: 1rem 1.1rem; background: var(--panel-2); align-self: stretch; }
.meas-editor-title { font-weight: 700; font-size: 1.05rem; }
.meas-tip { display: flex; gap: .55rem; align-items: flex-start; margin-top: .6rem; padding: .6rem .7rem;
    border-radius: 10px; background: var(--accent-soft, rgba(47,107,255,.1)); border: 1px solid var(--accent-border, rgba(47,107,255,.25)); }
.meas-tip-ic { flex: 0 0 auto; font-size: 1.05rem; line-height: 1.3; }
.meas-tip-txt { font-size: .86rem; line-height: 1.35; color: var(--text); font-weight: 500; }
.meas-editor-inputs { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: .7rem; }
.meas-editor-inputs .field { min-width: 120px; flex: 1; }
.meas-progress { display: flex; flex-direction: column; gap: .4rem; padding: .65rem .75rem; border: 1px solid var(--border); border-radius: 11px; background: var(--panel-2); }
.meas-progress-head { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; }
.meas-progress-track { height: 7px; overflow: hidden; border-radius: 99px; background: var(--border); }
.meas-progress-track > span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--ok); transition: width .2s var(--ease-out); }
.meas-save-all { display: flex; align-items: center; gap: .75rem; padding: .8rem; border: 1px solid color-mix(in srgb, var(--ok) 40%, var(--border)); border-radius: 13px; background: color-mix(in srgb, var(--ok) 7%, var(--panel)); }
.meas-save-all-ic { flex: 0 0 34px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--ok); color: #fff; font-size: 1.05rem; font-weight: 900; }
.meas-save-all-copy { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: .12rem; }
.meas-save-all-copy > span { color: var(--muted); font-size: .8rem; line-height: 1.35; }
.meas-save-all .btn { flex: 0 0 auto; margin: 0; }
@media (max-width: 560px) {
    .meas-pick { flex-direction: column; }
    .meas-pick .meas-figure { align-self: center; }
    .meas-editor { width: 100%; min-width: 0; box-sizing: border-box; }
    .meas-save-all { align-items: flex-start; flex-wrap: wrap; }
    .meas-save-all .btn { width: 100%; }
    .meas-quick-weight-form { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .meas-weight-save { grid-column: 1 / -1; width: 100%; }
}

/* ── Paylaşım aç/kapa anahtarı (toggle) — küre ikonu + durum vurgusu ── */
.share-toggle { display: flex; align-items: center; gap: .85rem; cursor: pointer;
    border: 1px solid var(--border); background: var(--panel-2); border-radius: 14px; padding: .85rem 1rem;
    transition: border-color .18s var(--ease-out), background .18s var(--ease-out), box-shadow .18s var(--ease-out); }
.share-toggle:hover { border-color: var(--accent); }
/* Açıkken kart aksana boyanır → "herkese açık" durumu görsel olarak okunur (state indication). */
.share-toggle:has(input:checked) { border-color: var(--accent); background: rgba(47,107,255,.06);
    box-shadow: inset 0 0 0 1px rgba(47,107,255,.22); }

.share-toggle-icon { flex: 0 0 auto; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; background: var(--panel); border: 1px solid var(--border); color: var(--muted);
    transition: background .2s var(--ease-out), color .2s var(--ease-out), border-color .2s var(--ease-out); }
.share-toggle:has(input:checked) .share-toggle-icon { background: var(--accent); border-color: var(--accent); color: #fff; }
.share-toggle-icon svg { display: block; }

.share-toggle-text { display: flex; flex-direction: column; gap: .15rem; flex: 1 1 auto; min-width: 0; }
.share-toggle-title { font-weight: 600; font-size: .92rem; }
.share-toggle-desc { color: var(--muted); font-size: .8rem; line-height: 1.4; }

.switch { position: relative; flex: 0 0 auto; width: 42px; height: 24px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch-knob { position: absolute; inset: 0; border-radius: 999px; background: #cbd5e1;
    transition: background .18s var(--ease-out); }
.switch-knob::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
    border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(16,31,64,.3);
    transition: transform .18s var(--ease-out); }
.switch input:checked + .switch-knob { background: var(--accent); }
.switch input:checked + .switch-knob::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-knob { box-shadow: var(--ring); }

/* ── Paylaşım anahtarları — başlık altında tam-genişlik bağımsız bloklar ── */
.share-toggle--block { display: flex; width: 100%; margin: 0 0 1rem; }
/* Profil herkese açıkken özel paylaşım araçları pasif görünür (veri korunur, kısılır + tıklanamaz) */
.card.is-muted { opacity: .6; pointer-events: none; filter: grayscale(.35); }
/* Profil herkese açıkken "Panomu paylaş" davet butonu gizlenir (davet gereksiz);
   "Erişim iste" görünür kalır → başkasının kapalı panosunu görme talebi engellenmez. */
.search-results.hide-invite .invite-btn { display: none; }
.share-list-note { color: var(--accent); font-weight: 500; }

/* ── Herkese açık link + iframe gömme kartları ── */
.share-url-row { display: flex; gap: .5rem; align-items: stretch; flex-wrap: wrap; }
.share-url-input { flex: 1 1 200px; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .82rem; padding: .55rem .7rem; border: 1px solid var(--border); border-radius: 10px;
    background: var(--bg); color: var(--text); }
.share-url-row .btn { flex: 0 0 auto; }
.share-warn { color: #b45309; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 8px; padding: .5rem .7rem; margin: 0; }

/* ── Sürecini Paylaş — Instagram Story kartı (canvas önizleme + aksiyonlar) ── */
.story-wrap { display: flex; flex-direction: column; gap: .9rem; }
.story-preview { display: flex; justify-content: center; }
.story-canvas { width: 250px; max-width: 68vw; height: auto; aspect-ratio: 1080 / 1920;
    border-radius: 18px; box-shadow: var(--shadow-md, 0 14px 30px -12px rgba(10,12,18,.35)); display: block; }
.story-actions { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; }
.story-actions .btn { flex: 0 0 auto; }
.embed-code-row { display: flex; gap: .5rem; align-items: flex-start; flex-wrap: wrap; }
.embed-code { flex: 1 1 220px; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .78rem; line-height: 1.45; padding: .55rem .7rem; border: 1px solid var(--border); border-radius: 10px;
    background: var(--bg); color: var(--text); resize: vertical; }
.embed-code-row .btn { flex: 0 0 auto; }
.embed-note { color: var(--muted); margin: 0; }
.embed-note strong { color: var(--accent-2, var(--accent)); }
.embed-preview-label { font-weight: 600; color: var(--muted); margin-top: .4rem; }
.embed-preview-wrap { background: var(--bg); border: 1px dashed var(--border); border-radius: 14px; padding: 10px; overflow: hidden; }
.embed-preview { width: 100%; max-width: 440px; height: 620px; border: 0; display: block; margin: 0 auto; }

/* ── Profil fotoğrafı (avatar) kartı — Form Fotoğrafları sayfası ── */
.avatar-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.avatar-preview { flex: 0 0 auto; width: 84px; height: 84px; border-radius: 50%; overflow: hidden;
    background: var(--accent-soft, #eaf1ff); border: 1px solid var(--border-2, var(--border));
    display: grid; place-items: center; box-shadow: var(--shadow-xs); }
.avatar-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-ini { font-weight: 800; font-size: 1.7rem; color: var(--accent); letter-spacing: -.02em; }
.avatar-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ── Avatar kırpma/yakınlaştırma aracı (vanilla) ── */
.crop-overlay { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px;
    background: rgba(15, 23, 42, .55); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
    animation: cropFade .16s var(--ease-out, ease-out); }
.crop-modal { width: 100%; max-width: 360px; background: var(--panel, #fff); border: 1px solid var(--border);
    border-radius: 18px; box-shadow: var(--shadow-lg, 0 20px 50px rgba(15,23,42,.25)); padding: 18px;
    transform-origin: center; animation: cropPop .2s var(--ease-out, cubic-bezier(0.23,1,0.32,1)); }
.crop-title { margin: 0 0 4px; font-size: 1.05rem; font-weight: 700; }
.crop-hint { margin: 0 0 14px; font-size: .8rem; color: var(--muted); line-height: 1.5; }
.crop-stage { position: relative; width: 300px; max-width: 100%; aspect-ratio: 1; margin: 0 auto; overflow: hidden;
    border-radius: 14px; background: #0f172a; touch-action: none; cursor: grab; user-select: none; }
.crop-stage.is-grabbing { cursor: grabbing; }
.crop-img { position: absolute; top: 0; left: 0; will-change: transform; pointer-events: none; -webkit-user-drag: none; }
/* Dairesel kılavuz: kare köşeleri karartılır, daire içi net (avatar dairesel gösterilir) */
.crop-mask { position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
    box-shadow: 0 0 0 9999px rgba(15, 23, 42, .5); border: 2px solid rgba(255, 255, 255, .85); }
.crop-zoom-row { display: flex; align-items: center; gap: 10px; margin: 16px 0 6px; }
.crop-zoom-ic { flex: 0 0 auto; font-size: 1rem; }
.crop-zoom { flex: 1; min-width: 0; accent-color: var(--accent); cursor: pointer; }
.crop-actions { display: flex; justify-content: flex-end; gap: .5rem; margin-top: 14px; }
@keyframes cropFade { from { opacity: 0; } }
@keyframes cropPop { from { opacity: 0; transform: scale(.96); } }
@media (prefers-reduced-motion: reduce) {
    .crop-overlay, .crop-modal { animation: none; }
}

/* ── Form içi bölüm başlığı — sol aksan çubuğu ile net hiyerarşi ── */
.form-section-title { display: flex; align-items: center; gap: .55rem; font-size: .98rem; font-weight: 700;
    color: var(--text); margin: 1.4rem 0 .65rem; }
.form-section-title::before { content: ''; flex: 0 0 auto; width: 3px; height: 1.05rem; border-radius: 2px; background: var(--accent); }
.fs-optional { font-weight: 500; font-size: .76rem; color: var(--muted); }

/* ── Form alt eylem alanı — paylaşım anahtarı + kaydet, üstte ayraçla ayrılmış ── */
.form-footer { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.4rem; padding-top: 1.3rem;
    border-top: 1px solid var(--border); }

/* ── "Satır ekle" eylemi — kesikli, tam genişlik ekleme alanı (signifier) ── */
.btn.add-row { display: flex; align-items: center; justify-content: center; gap: .4rem; width: 100%;
    background: transparent; border: 1px dashed var(--border); color: var(--muted); border-radius: 12px;
    padding: .55rem; font-weight: 600; box-shadow: none; }
.btn.add-row:hover { background: color-mix(in srgb, var(--action-primary) 5%, transparent); border-color: var(--action-primary); color: var(--action-primary); }

/* ── Takviye Planı: dinamik bileşen satırları ── */
.plan-rows { display: flex; flex-direction: column; gap: .6rem; }
.plan-row { display: grid; grid-template-columns: 2fr 1fr 1.4fr auto; gap: .6rem; align-items: end; }
.plan-row .btn.small.danger { align-self: end; height: 38px; }
/* Doz/sıklık yapısal combo'su: iki kontrol yan yana, taşmadan küçülür (min-width: 0). */
.combo { display: flex; gap: .35rem; align-items: stretch; min-width: 0; }
.combo input, .combo select { min-width: 0; }
.dose-combo input { flex: 1 1 auto; }
.dose-combo select { flex: 0 0 4.7rem; }
.freq-combo { flex-wrap: wrap; align-items: center; }
.freq-combo select { flex: 1 1 7rem; }
.freq-combo input { flex: 0 0 3.6rem; text-align: center; }
/* Canlı sıklık önizlemesi (örn. "→ 5 günde bir") — yerleşimi itmeyen sönük metin. */
.freq-preview { flex: 1 1 100%; font-size: .72rem; color: var(--muted); line-height: 1.2; min-height: .9em; }
@media (max-width: 640px) {
    .plan-row { grid-template-columns: 1fr; gap: .5rem; padding-bottom: .5rem; border-bottom: 1px solid var(--border); }
    .plan-row .btn.small.danger { justify-self: end; width: auto; min-width: 3rem; }
}
/* Bileşen öner kutusu */
.suggest-box { border: 1px dashed var(--border-2, var(--border)); border-radius: 12px; padding: .7rem .9rem; display: flex; flex-direction: column; gap: .5rem; background: var(--panel-2); }
.suggest-box .inline-form { margin: 0; }
/* Takviye planı kart alt başlığı */
.plan-subhead { font-size: .72rem; font-weight: 700; letter-spacing: .06em; color: var(--muted); margin: 1rem 0 .4rem; }

/* ── Koç → öğrenci özeti (snapshot) ── */
.coach-snap-top { display: flex; gap: 1rem 1.4rem; align-items: flex-start; flex-wrap: wrap; justify-content: center; }
.coach-snap-top > .bmf { flex: 1 1 270px; max-width: 320px; }
.coach-snap-top > .coach-stats { flex: 1 1 240px; align-content: start; }
.coach-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: .55rem; margin: .3rem 0 .2rem; }
.coach-stat { min-width: 0; display: flex; align-items: center; gap: .55rem; padding: .55rem .65rem; background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px; }
.coach-stat-ic { flex: 0 0 34px; width: 34px; height: 34px; display: grid; place-items: center; font-size: 1.1rem; background: var(--panel); border: 1px solid var(--border); border-radius: 9px; }
.coach-stat.is-f .coach-stat-ic { color: #ff7fb0; }
.coach-stat.is-m .coach-stat-ic { color: #5b8bff; }
.coach-stat-body { min-width: 0; display: flex; flex-direction: column; gap: .05rem; }
.coach-stat-lbl { font-size: .62rem; font-weight: 700; letter-spacing: .04em; color: var(--muted); }
.coach-stat-val { font-size: .95rem; font-weight: 700; overflow-wrap: anywhere; }
.coach-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(110px, 100%), 1fr)); gap: .5rem; margin-top: .6rem; }
.coach-photo { margin: 0; min-width: 0; cursor: zoom-in; }
.coach-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); display: block; }
.coach-photo figcaption { font-size: .6rem; color: var(--muted); margin-top: .2rem; text-align: center; overflow-wrap: anywhere; }
.ready-list { list-style: none; padding: 0; margin: .4rem 0 .8rem; display: flex; flex-direction: column; gap: .45rem; }
.ready-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem; }

/* ── Koç–Öğrenci Merkezi (kart tabanlı öğrenci/koç listeleri) ── */
.person-list { display: flex; flex-direction: column; gap: .55rem; margin-top: .3rem; }
.person-card { display: flex; align-items: center; gap: .75rem; padding: .65rem .8rem; border: 1px solid var(--border); border-radius: 14px; background: var(--panel-2); flex-wrap: wrap; transition: border-color .18s var(--ease-out), box-shadow .18s var(--ease-out); }
.person-card:hover { border-color: var(--accent); box-shadow: 0 6px 18px rgba(16,31,64,.08); }
.person-card.is-incoming { border-left: 4px solid var(--warn); background: color-mix(in srgb, var(--warn) 7%, var(--panel-2)); }
.person-av { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.05rem; color: #fff; letter-spacing: -.01em; box-shadow: inset 0 0 0 2px rgba(255,255,255,.18); }
.person-av--img { overflow: hidden; background: var(--panel); border: 1px solid var(--border); box-shadow: none; }
.person-av--img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.person-main { flex: 1 1 150px; min-width: 0; display: flex; flex-direction: column; gap: .3rem; }
.person-name { font-weight: 700; overflow-wrap: anywhere; }
.person-badges { display: flex; gap: .35rem; flex-wrap: wrap; align-items: center; }
.role-badge { font-size: .6rem; font-weight: 800; letter-spacing: .04em; padding: .14rem .45rem; border-radius: 7px; background: var(--panel); border: 1px solid var(--border); color: var(--muted); }
.role-badge.coach { color: #4f46e5; border-color: #c7d2fe; background: #eef2ff; }
.role-badge.student { color: #0e7490; border-color: #bae6fd; background: #ecfeff; }
.person-actions { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; margin-left: auto; }
.person-actions .pc-wait { align-self: center; }
.person-empty { display: flex; align-items: center; gap: .6rem; padding: .95rem; border: 1px dashed var(--border); border-radius: 12px; color: var(--muted); font-size: .85rem; }
.person-empty .pe-ic { font-size: 1.5rem; line-height: 1; }
.coach-filter { width: 100%; }
.coach-archive { margin-top: .55rem; border-top: 1px dashed var(--border); padding-top: .55rem; }
.coach-archive > summary { cursor: pointer; font-size: .82rem; font-weight: 600; color: var(--muted); list-style: none; display: inline-flex; align-items: center; gap: .35rem; }
.coach-archive > summary::-webkit-details-marker { display: none; }
.coach-archive > summary::before { content: '▸'; transition: transform .18s var(--ease-out); }
.coach-archive[open] > summary::before { transform: rotate(90deg); }
.search-row .sr-person { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.search-row .sr-person .person-av { flex: 0 0 34px; width: 34px; height: 34px; font-size: .8rem; }

/* Koçun dış platformlarda paylaşabildiği güvenli davet bağlantısı. */
.coach-invite-card { overflow: hidden; border-color: color-mix(in srgb, var(--accent) 25%, var(--border)); }
.coach-invite { min-width: 0; display: flex; flex-direction: column; gap: .8rem; }
.coach-invite-head { min-width: 0; display: flex; align-items: center; gap: .75rem; }
.coach-invite-icon { flex: 0 0 46px; width: 46px; height: 46px; display: grid; place-items: center;
    border-radius: 14px; background: color-mix(in srgb, var(--accent) 10%, var(--panel-2));
    border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--border)); font-size: 1.35rem; }
.coach-invite-copy { flex: 1 1 auto; min-width: 0; }
.coach-invite-copy p { margin: .12rem 0 0; line-height: 1.4; }
.coach-invite-head > .status { flex: 0 0 auto; }
.coach-invite-link-row { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: .5rem; }
.coach-invite-link { width: 100%; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem; }
.coach-invite-meta { display: flex; flex-wrap: wrap; gap: .4rem .9rem; color: var(--muted); font-size: .72rem; }
.coach-invite-meta span { min-width: 0; overflow-wrap: anywhere; }
.coach-invite-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.coach-invite-empty { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap;
    padding: .8rem; border: 1px dashed var(--border); border-radius: 13px; background: var(--panel-2); }
.coach-invite-empty p { flex: 1 1 320px; margin: 0; }
.coach-invite-safety { margin: 0; display: flex; align-items: flex-start; gap: .5rem; }

/* Onay modalı (dar) + aksiyon satırı */
.modal.compact { max-width: 440px; }
.modal-actions { display: flex; gap: .6rem; justify-content: flex-end; flex-wrap: wrap; margin-top: 1.2rem; }

/* Tema JS'te çözülür → tek [data-theme="dark"] bloğu yeterli (media çoğaltması yok). */
:root[data-theme="dark"] .role-badge.coach { color: #a5b4fc; border-color: #3730a3; background: #23234a; }
:root[data-theme="dark"] .role-badge.student { color: #7dd3fc; border-color: #155e75; background: #10303a; }

/* ── Koç İçerik Merkezi: haftalık form üretim, atama ve cevaplama ── */
.coach-content-hero { min-width: 0; display: flex; align-items: flex-end; justify-content: space-between;
    gap: 1rem; padding: 1.15rem 1.25rem; border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--border));
    border-radius: 18px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 9%, var(--panel)), var(--panel));
    box-shadow: var(--shadow); }
.coach-content-hero h2 { margin: .2rem 0 .25rem; }
.coach-content-hero p { max-width: 720px; margin: 0; }
.coach-content-hero .eyebrow, .coach-form-modal-head .eyebrow { color: var(--accent); font-size: .68rem;
    font-weight: 800; letter-spacing: .08em; }
.coach-content-week { flex: 0 0 auto; min-width: 155px; display: flex; flex-direction: column; gap: .12rem;
    padding: .65rem .8rem; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); }
.coach-content-week span { color: var(--muted); font-size: .68rem; letter-spacing: .05em; font-weight: 700; }
.coach-content-tabs { width: fit-content; max-width: 100%; padding: .28rem; gap: .25rem; overflow-x: auto;
    border: 1px solid var(--border); border-radius: 13px; background: var(--panel-2); }
.coach-content-tabs .tab { flex: 0 0 auto; min-width: 170px; display: inline-flex; align-items: center; justify-content: center;
    gap: .45rem; white-space: nowrap; border-color: transparent; background: transparent; }
.coach-content-tabs .tab.active { color: var(--accent); border-color: var(--border); background: var(--panel); box-shadow: 0 3px 10px rgba(16,31,64,.08); }
.coach-content-pane { min-width: 0; display: flex; flex-direction: column; gap: 1rem; }
.coach-content-pane[hidden] { display: none; }
.coach-content-section-head { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.coach-content-section-head h3 { margin: 0 0 .15rem; }
.coach-content-section-head p { margin: 0; }
.coach-content-count-badge { flex: 0 0 auto; padding: .35rem .65rem; border-radius: 999px;
    color: #854d0e; background: #fef3c7; border: 1px solid #fde68a; font-size: .72rem; font-weight: 700; }
:root[data-theme="dark"] .coach-content-count-badge { color: #fde68a; background: #3a2d12; border-color: #6b4f16; }
.coach-weekly-section { min-width: 0; display: flex; flex-direction: column; gap: .85rem; }
.coach-weekly-section { padding: 1rem; border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--border));
    border-radius: 16px; background: color-mix(in srgb, var(--accent) 4%, var(--panel)); }
.coach-weekly-task-list { display: grid; gap: .65rem; }
.coach-weekly-task { min-width: 0; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center;
    gap: .75rem; padding: .8rem; border: 1px solid var(--border); border-radius: 14px; background: var(--panel); }
.coach-weekly-task.is-complete { border-color: color-mix(in srgb, var(--ok) 35%, var(--border)); }
.coach-weekly-task-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px;
    color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--panel-2)); font-weight: 900; }
.coach-weekly-task.is-complete .coach-weekly-task-icon { color: var(--ok); background: color-mix(in srgb, var(--ok) 10%, var(--panel-2)); }
.coach-weekly-task-main { min-width: 0; display: flex; flex-direction: column; gap: .18rem; }
.coach-weekly-task-top { min-width: 0; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.coach-weekly-task-top strong { overflow-wrap: anywhere; }
.coach-content-summary { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .7rem; }
.coach-content-summary > div { min-width: 0; display: grid; grid-template-columns: auto 1fr; align-items: center;
    gap: .05rem .55rem; padding: .8rem; border: 1px solid var(--border); border-radius: 13px; background: var(--panel); }
.coach-content-summary > div > span { grid-row: 1 / 3; width: 38px; height: 38px; display: grid; place-items: center;
    border-radius: 11px; background: var(--panel-2); }
.coach-content-summary strong { font-size: 1.2rem; line-height: 1; }
.coach-content-summary small { color: var(--muted); font-size: .7rem; }
.coach-form-builder label { display: flex; flex-direction: column; gap: .35rem; font-size: .8rem; font-weight: 650; }
.coach-form-builder textarea { resize: vertical; }
.coach-question-builder-head, .coach-builder-students-head { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.coach-question-builder-head p, .coach-builder-students-head p { margin: .1rem 0 0; }
.coach-question-builder-list { display: flex; flex-direction: column; gap: .5rem; }
.coach-question-builder-row { min-width: 0; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: .45rem; }
.coach-question-handle { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px;
    color: var(--muted); background: var(--panel-2); border: 1px solid var(--border); font-size: .72rem; font-weight: 800; }
.coach-question-builder-row .btn { width: 44px; height: 44px; padding: 0; font-size: 1.1rem; }
.coach-form-builder-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: flex-end; }
.coach-template-picker { padding: 1rem; border: 1px solid var(--border); border-radius: 12px; background: var(--panel-2); min-width: 0; }
.coach-template-picker label { display: grid; gap: .6rem; }
.coach-template-picker select { width: 100%; min-width: 0; }
.coach-content-student-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px,1fr)); gap: .5rem;
    max-height: 280px; overflow-y: auto; padding: .15rem; }
.coach-content-student { min-width: 0; display: flex !important; flex-direction: row !important; align-items: center;
    gap: .55rem !important; padding: .55rem .65rem; border: 1px solid var(--border); border-radius: 12px;
    background: var(--panel); cursor: pointer; }
.coach-content-student:has(input:checked) { border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
    background: color-mix(in srgb, var(--accent) 6%, var(--panel)); }
.coach-content-student input { flex: 0 0 auto; width: 17px; height: 17px; accent-color: var(--accent); }
.coach-content-student .person-av { flex: 0 0 32px; width: 32px; height: 32px; font-size: .7rem; }
.coach-content-student > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coach-content-select-all { display: inline-flex !important; flex-direction: row !important; align-items: center;
    gap: .4rem !important; color: var(--accent); font-size: .75rem !important; cursor: pointer; white-space: nowrap; }
.coach-content-select-all input { width: 16px; height: 16px; accent-color: var(--accent); }
.coach-form-card-list { min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(430px,100%),1fr)); gap: .8rem; }
.coach-form-card { min-width: 0; margin: 0; display: flex; flex-direction: column; gap: .75rem; }
.coach-form-card.is-archived { opacity: .72; }
.coach-form-card-head { min-width: 0; display: flex; justify-content: space-between; align-items: flex-start; gap: .8rem; }
.coach-form-card-head h3, .coach-form-card-head p { margin: 0; }
.coach-form-title-row { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.coach-form-count { flex: 0 0 auto; padding: .3rem .5rem; border-radius: 9px; color: var(--muted);
    background: var(--panel-2); border: 1px solid var(--border); font-size: .68rem; font-weight: 700; }
.coach-form-progress { display: grid; grid-template-columns: auto minmax(100px,1fr); align-items: center; gap: .75rem; }
.coach-form-progress-copy { display: flex; flex-direction: column; }
.coach-form-progress-track { height: 8px; overflow: hidden; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--border); }
.coach-form-progress-track span { display: block; height: 100%; border-radius: inherit; background: var(--ok); transition: width .25s var(--ease-out); }
.coach-form-card-actions { display: flex; flex-wrap: wrap; gap: .45rem; }
.coach-form-assignment-detail { border-top: 1px dashed var(--border); padding-top: .6rem; }
.coach-form-assignment-detail > summary, .coach-content-archive > summary { cursor: pointer; color: var(--muted); font-size: .78rem; font-weight: 700; }
.coach-form-student-rows { display: flex; flex-direction: column; gap: .45rem; margin-top: .55rem; }
.coach-form-student-row { min-width: 0; padding: .55rem; border: 1px solid var(--border); border-radius: 11px; background: var(--panel-2); }
.coach-form-student-status { display: flex; align-items: center; gap: .5rem; }
.coach-form-student-status > span:last-child { min-width: 0; display: flex; flex-direction: column; }
.coach-form-student-status small { display: block; }
.coach-form-mini-state { flex: 0 0 27px; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 9px; font-weight: 900; }
.coach-form-mini-state.done { color: var(--ok); background: color-mix(in srgb, var(--ok) 10%, var(--panel)); }
.coach-form-mini-state.waiting { color: var(--muted); background: var(--panel); }
.coach-form-response-detail { margin: .45rem 0 0 2.15rem; }
.coach-form-response-detail summary { cursor: pointer; color: var(--accent); font-size: .72rem; font-weight: 700; }
.coach-form-response-readonly { display: flex; flex-direction: column; gap: .55rem; margin-top: .5rem; }
.coach-form-response-readonly > div { padding: .55rem; border-left: 3px solid color-mix(in srgb, var(--accent) 45%, var(--border)); background: var(--panel); }
.coach-form-response-readonly strong { display: block; font-size: .75rem; }
.coach-form-response-readonly p { margin: .25rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .8rem; }
.coach-form-history-list { display: flex; flex-direction: column; gap: .4rem; margin-top: .55rem; }
.coach-form-history-item { padding: .5rem .6rem; border: 1px solid var(--border); border-radius: 11px; background: var(--panel-2); }
.coach-form-history-item > summary { cursor: pointer; color: var(--text); font-size: .76rem; font-weight: 700; }
.coach-form-history-item .coach-form-response-readonly { margin-top: .55rem; }
.coach-content-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem;
    min-height: 145px; padding: 1rem; text-align: center; border: 1px dashed var(--border); border-radius: 14px; background: var(--panel-2); }
.coach-content-empty.compact { min-height: 90px; }
.coach-content-empty > span { font-size: 1.8rem; }
.coach-content-empty p { margin: 0; }
.coach-content-archive { margin-top: .2rem; }
.coach-content-archive > .coach-form-card-list { margin-top: .7rem; }
.coach-content-assign-modal { max-width: 620px !important; }
.coach-form-response-modal { max-width: 760px; }
.coach-form-modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .8rem; }
.coach-form-modal-head h3 { margin: .15rem 0; }
.coach-form-modal-head p { margin: 0; }
.coach-form-answer-list { display: flex; flex-direction: column; gap: .85rem; margin-top: 1rem; }
.coach-form-answer-field { display: flex; flex-direction: column; gap: .35rem; }
.coach-form-answer-field textarea { width: 100%; resize: vertical; min-height: 105px; }
.coach-form-question-no { color: var(--accent); font-size: .68rem; font-weight: 800; letter-spacing: .05em; }
.coach-program-placeholder { min-height: 350px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.coach-program-placeholder-icon { width: 74px; height: 74px; display: grid; place-items: center; margin-bottom: .7rem;
    border-radius: 22px; background: var(--panel-2); border: 1px solid var(--border); font-size: 2.2rem; }
.coach-program-placeholder h3 { margin: .7rem 0 .25rem; }
.coach-program-placeholder p { max-width: 520px; margin: 0; }

/* ── Koç mesajlaşması: ayrı hub sekmesi + sürekli konuşma ── */
.coach-hub-tabs { width: fit-content; max-width: 100%; margin-bottom: 1rem; padding: .28rem;
    gap: .25rem; border: 1px solid var(--border); border-radius: 13px; background: var(--panel-2); }
.coach-hub-tabs .tab { flex: 0 0 auto; min-width: 145px; display: inline-flex; align-items: center;
    justify-content: center; gap: .45rem; border-color: transparent; background: transparent; }
.coach-hub-tabs .tab.active { background: var(--panel); color: var(--accent); border-color: var(--border);
    box-shadow: 0 3px 10px rgba(16,31,64,.08); }
.coach-chat-tab-badge { min-width: 21px; height: 21px; padding: 0 .35rem; display: inline-grid; place-items: center;
    border-radius: 999px; background: var(--danger); color: #fff; font-size: .68rem; font-weight: 800; }
.coach-messages-screen { height: calc(100dvh - 3.2rem); min-height: 0; display: flex; flex-direction: column; }
.coach-messages-screen > .role-context { align-self: flex-start; margin-bottom: .18rem; padding-block: .22rem; font-size: .72rem; }
.coach-messages-screen > h2 { margin: .08rem 0 .12rem; font-size: 1.32rem; }
.coach-messages-screen > p { margin: 0 0 .55rem; font-size: .82rem; line-height: 1.4; }
.coach-hub-pane { min-width: 0; min-height: 0; flex: 1 1 auto; }
.coach-chat-layout { min-width: 0; height: 100%; min-height: 0; display: grid; grid-template-columns: minmax(210px, 250px) minmax(0, 1fr);
    border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
    background: var(--panel); box-shadow: var(--shadow); }
.coach-chat-layout.is-embedded { grid-template-columns: minmax(0, 1fr); height: auto; min-height: 500px; }
.coach-chat-list { min-width: 0; display: flex; flex-direction: column; border-right: 1px solid var(--border);
    background: var(--panel-2); }
.coach-chat-list-head { display: flex; align-items: center; gap: .55rem; padding: .62rem .7rem;
    border-bottom: 1px solid var(--border); background: var(--panel); }
.coach-chat-list-head strong { font-size: .86rem; }
.coach-chat-list-head p { margin: .05rem 0 0; font-size: .69rem; }
.coach-chat-list-icon { flex: 0 0 32px; width: 32px; height: 32px; display: grid; place-items: center;
    border-radius: 11px; background: color-mix(in srgb, var(--accent) 10%, var(--panel-2));
    border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--border)); font-size: 1rem; }
.coach-chat-contacts { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; padding: .32rem; gap: .22rem; }
.coach-chat-contact { width: 100%; min-width: 0; display: flex; align-items: center; gap: .52rem; padding: .48rem;
    text-align: left; font: inherit; color: var(--text); cursor: pointer; border: 1px solid transparent;
    border-radius: 11px; background: transparent; transition: background .15s var(--ease-out), border-color .15s var(--ease-out); }
.coach-chat-contact:hover { background: var(--panel); border-color: var(--border); }
.coach-chat-contact.active { background: var(--panel); border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
    box-shadow: 0 4px 12px rgba(16,31,64,.06); }
.coach-chat-contact .person-av { flex: 0 0 34px; width: 34px; height: 34px; font-size: .74rem; }
.coach-chat-contact-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.coach-chat-contact-top { display: flex; align-items: center; justify-content: space-between; gap: .4rem; min-width: 0; }
.coach-chat-contact-top strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .83rem; }
.coach-chat-unread { flex: 0 0 auto; min-width: 19px; height: 19px; padding: 0 .3rem; display: grid; place-items: center;
    border-radius: 999px; background: var(--accent); color: #fff; font-size: .61rem; font-weight: 800; }
.coach-chat-preview { color: var(--muted); font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coach-chat-contact-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .15rem .45rem; color: var(--muted); font-size: .64rem; }
.coach-chat-thread-pane { min-width: 0; min-height: 0; overflow: hidden; display: flex; flex-direction: column; background: var(--panel); }
.coach-chat-thread-head { flex: 0 0 auto; display: flex; align-items: center; gap: .55rem; min-width: 0; padding: .55rem .7rem;
    border-bottom: 1px solid var(--border); background: var(--panel); }
.coach-chat-back { display: none; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; place-items: center;
    color: var(--text); border: 1px solid var(--border); border-radius: 12px; background: var(--panel-2);
    cursor: pointer; font: inherit; font-size: 1.15rem; }
.coach-chat-thread-head .person-av { flex: 0 0 34px; width: 34px; height: 34px; font-size: .74rem; }
.coach-chat-thread-person { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.coach-chat-thread-person strong { overflow-wrap: anywhere; font-size: .86rem; }
.coach-chat-thread-person .small { font-size: .68rem; }
.coach-chat-thread-person .coach-chat-live { color: var(--ok); font-weight: 700; }
.coach-chat-thread-head > .btn { flex: 0 0 auto; }
.coach-chat-thread-head > .btn.small { padding: .3rem .65rem; font-size: .76rem; }
.coach-chat-messages { flex: 1 1 0; min-height: 0; overflow-x: hidden; overflow-y: auto;
    overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y;
    display: flex; flex-direction: column; gap: .45rem; padding: .65rem;
    background: color-mix(in srgb, var(--panel-2) 68%, var(--panel)); }
.coach-chat-message { align-self: flex-start; max-width: min(76%, 560px); padding: .48rem .62rem .38rem;
    border: 1px solid var(--border); border-radius: 5px 13px 13px 13px; background: var(--panel);
    box-shadow: 0 3px 10px rgba(16,31,64,.05); }
.coach-chat-message.is-mine { align-self: flex-end; border-radius: 13px 5px 13px 13px;
    border-color: color-mix(in srgb, var(--accent) 28%, var(--border));
    background: color-mix(in srgb, var(--accent) 8%, var(--panel)); }
.coach-chat-message-head { display: flex; align-items: baseline; gap: .6rem; justify-content: space-between; }
.coach-chat-message-head strong { font-size: .7rem; }
.coach-chat-message-head .small { font-size: .63rem; }
.coach-chat-message p { margin: .22rem 0 .12rem; font-size: .84rem; line-height: 1.42; white-space: pre-wrap; overflow-wrap: anywhere; }
.coach-chat-read-state { display: block; color: var(--muted); font-size: .61rem; text-align: right; }
.coach-chat-thread-empty { flex: 1 1 auto; min-height: 200px; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: .35rem; text-align: center; padding: 1rem; }
.coach-chat-thread-empty > span { width: 52px; height: 52px; display: grid; place-items: center;
    border-radius: 16px; background: var(--panel); border: 1px solid var(--border); font-size: 1.55rem; }
.coach-chat-thread-empty p { max-width: 440px; margin: 0; }
.coach-chat-composer { flex: 0 0 auto; padding: .52rem .7rem; border-top: 1px solid var(--border); background: var(--panel); }
.coach-chat-composer textarea { width: 100%; resize: none; min-height: 44px; max-height: 96px; padding: .55rem .65rem; font-size: .84rem; }
.coach-chat-composer-foot { display: flex; align-items: center; justify-content: space-between; gap: .55rem; margin-top: .38rem; }
.coach-chat-composer-foot .small { font-size: .68rem; }
.coach-chat-composer-foot .btn { padding: .4rem .92rem; font-size: .8rem; }
.coach-chat-typing { flex: 0 0 auto; display: flex; align-items: center; gap: .48rem; min-height: 28px; padding: .28rem .8rem; color: var(--muted); background: var(--panel); font-size: .74rem; }
.coach-chat-typing[hidden] { display: none; }
.coach-chat-typing-dots { display: inline-flex; align-items: center; gap: 3px; padding: .35rem .48rem; border-radius: 999px; background: var(--panel-2); }
.coach-chat-typing-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); animation: coachTyping 1s infinite ease-in-out; }
.coach-chat-typing-dots i:nth-child(2) { animation-delay: .14s; }
.coach-chat-typing-dots i:nth-child(3) { animation-delay: .28s; }
@keyframes coachTyping { 0%, 65%, 100% { opacity: .35; transform: translateY(0); } 32% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .coach-chat-typing-dots i { animation: none; opacity: .8; } }
.coach-chat-ended { margin: .8rem 1rem; }
.coach-chat-empty { align-items: flex-start; }
.coach-chat-empty p { margin: .2rem 0 0; }

@media (max-width: 860px) {
    .coach-content-hero { align-items: stretch; flex-direction: column; }
    .coach-content-week { min-width: 0; }
    .coach-content-tabs { width: 100%; }
    .coach-content-tabs .tab { flex: 1 1 155px; min-width: 150px; }
    .coach-content-summary { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .coach-hub-tabs { width: 100%; }
    .coach-hub-tabs .tab { flex: 1 1 135px; min-width: 0; }
    .coach-messages-screen { height: auto; }
    .coach-chat-layout { height: auto; min-height: min(620px, calc(100dvh - 170px)); grid-template-columns: minmax(0, 1fr); }
    .coach-chat-layout:not(.is-thread-open):not(.is-embedded) .coach-chat-thread-pane { display: none; }
    .coach-chat-layout.is-thread-open:not(.is-embedded) .coach-chat-list { display: none; }
    .coach-chat-layout.is-thread-open {
        height: var(--coach-chat-mobile-height, calc(100dvh - 82px));
        min-height: 0;
        max-height: var(--coach-chat-mobile-height, calc(100dvh - 82px));
    }
    /* iOS layout viewport'u klavye açıldığında küçülmeyebilir. Yalnız klavye
       açıkken eklenen ölçülü boşluk, sayfaya composer'ı görünür alana taşıyacak
       kadar doğal kaydırma mesafesi verir; kalıcı boşluk oluşturmaz. */
    .coach-messages-screen.is-chat-keyboard-open {
        padding-bottom: var(--coach-chat-keyboard-gap, 0px);
    }
    .coach-messages-screen.is-chat-keyboard-open .coach-chat-composer {
        scroll-margin-bottom: 12px;
    }
    .coach-chat-list { max-height: none; border-right: 0; border-bottom: 0; }
    .coach-chat-contacts { max-height: none; }
    .coach-chat-layout:not(.is-embedded) .coach-chat-back { display: grid; }
    .coach-messages-screen:has(.coach-chat-layout.is-thread-open) > .role-context,
    .coach-messages-screen:has(.coach-chat-layout.is-thread-open) > h2,
    .coach-messages-screen:has(.coach-chat-layout.is-thread-open) > p { display: none; }
}

@media (max-width: 480px) {
    .coach-content-hero { padding: .9rem; }
    .coach-content-tabs .tab { min-width: 145px; }
    .coach-content-section-head { align-items: flex-start; flex-direction: column; }
    .coach-content-summary { grid-template-columns: 1fr; }
    .coach-weekly-task { grid-template-columns: auto minmax(0,1fr); align-items: start; }
    .coach-weekly-task > .btn { grid-column: 1 / -1; width: 100%; }
    .coach-question-builder-head, .coach-builder-students-head { align-items: stretch; flex-direction: column; }
    .coach-question-builder-head .btn { width: 100%; }
    .coach-content-select-all { align-self: flex-start; }
    .coach-form-progress { grid-template-columns: 1fr; }
    .coach-form-card-actions { display: grid; grid-template-columns: 1fr; }
    .coach-form-card-actions .btn { width: 100%; }
    .coach-form-modal-head { flex-direction: column; }
    .coach-invite-head { align-items: flex-start; flex-wrap: wrap; }
    .coach-invite-head > .status { margin-left: 54px; margin-top: -.45rem; }
    .coach-invite-link-row { grid-template-columns: minmax(0, 1fr) 1fr; }
    .coach-invite-link-row .coach-invite-link { grid-column: 1 / -1; }
    .coach-invite-link-row .btn { width: 100%; }
    .coach-invite-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .coach-invite-actions .btn { min-width: 0; white-space: normal; }
    .coach-chat-layout { border-radius: 14px; }
    .coach-chat-list-head, .coach-chat-thread-head { padding: .5rem; }
    .coach-chat-contact { padding: .48rem; }
    .coach-chat-messages { padding: .52rem; }
    .coach-chat-message { max-width: 88%; }
    .coach-chat-message p { font-size: .8rem; }
    .coach-chat-composer { padding: .48rem; }
    .coach-chat-composer-foot { align-items: center; flex-direction: row; }
    .coach-chat-composer-foot .small { font-size: .62rem; }
    .coach-chat-composer-foot .btn { width: auto; flex: 0 0 auto; }
}

/* ── Koç öğrenci çalışma alanı: ana sekmeler + plan alt sekmeleri ── */
.coach-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 1rem; }
.coach-tabs .tab { white-space: nowrap; }
.coach-pane { display: flex; flex-direction: column; gap: 1rem; }
.coach-plan-tabs { width: fit-content; max-width: 100%; margin: 0 0 .8rem; padding: .28rem;
    gap: .25rem; border: 1px solid var(--border); border-radius: 13px; background: var(--panel-2); }
.coach-plan-tabs .tab { flex: 0 0 auto; min-width: 155px; border-color: transparent; background: transparent; }
.coach-plan-tabs .tab.active { background: var(--panel); color: var(--accent); border-color: var(--border);
    box-shadow: 0 3px 10px rgba(16,31,64,.08); }
.coach-plan-pane { min-width: 0; }
.coach-overview-action { align-self: flex-start; }
.coach-current-plan-stats { grid-template-columns: repeat(auto-fit, minmax(min(165px, 100%), 1fr)); }
.coach-current-plan { display: flex; flex-direction: column; gap: .8rem; }
.coach-current-plan-hero { display: flex; align-items: center; gap: .75rem; min-width: 0; padding: .85rem .95rem;
    border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border)); border-radius: 14px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, var(--panel)), var(--panel)); }
.coach-current-plan-hero-ic { flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center;
    border-radius: 13px; background: var(--accent); color: #fff; font-size: 1.35rem; box-shadow: 0 6px 16px rgba(47,107,255,.22); }
.coach-current-plan-hero-copy { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.coach-current-plan-hero-copy small { color: var(--muted); font-size: .65rem; font-weight: 800; letter-spacing: .04em; }
.coach-current-plan-hero-copy strong { margin-top: .12rem; font-size: 1.05rem; overflow-wrap: anywhere; }
.coach-current-plan-hero .status { margin-left: auto; flex: 0 0 auto; }
.coach-current-plan-period { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .55rem; }
.coach-current-plan-section { min-width: 0; padding-top: .7rem; border-top: 1px solid var(--border); }
.coach-current-plan-section h4 { margin: 0 0 .45rem; color: var(--text); font-size: .78rem; font-weight: 800; letter-spacing: .02em; }
.coach-current-plan-section .coach-current-plan-stats { grid-template-columns: repeat(auto-fit, minmax(min(138px, 100%), 1fr)); }
.coach-plan-target .coach-stat-val { font-size: .88rem; }
.coach-summary-actions { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap;
    padding: .75rem .85rem; border: 1px dashed color-mix(in srgb, var(--accent) 32%, var(--border));
    border-radius: 12px; background: color-mix(in srgb, var(--accent) 5%, var(--panel)); }
.coach-summary-actions .muted { flex: 1 1 220px; min-width: 0; }
.coach-plan-editor { scroll-margin-top: 1rem; }
.coach-plan-editor-tools { margin-bottom: .25rem; padding-bottom: .7rem; border-bottom: 1px solid var(--border); }
.coach-feedback-editor-host { min-width: 0; }
.coach-feedback-editor-host > .card:first-child { margin-top: 1rem; }
.coach-overview-layout { min-width: 0; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    gap: 1rem; align-items: start; }
.coach-overview-layout > .card { min-width: 0; margin-bottom: 0; }
.coach-overview-figure-card { overflow: hidden; }
.coach-overview-figure-wrap { display: flex; justify-content: center; min-width: 0; }
.coach-overview-figure-wrap > .bmf { width: min(100%, 350px); }
.coach-overview-figure-wrap .bmf-stage { max-width: 310px; }
.coach-proc-overview .coach-overview-empty { margin-top: .8rem; }
.coach-goal-actions { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; padding: .75rem .85rem;
    border: 1px dashed color-mix(in srgb, var(--accent) 35%, var(--border)); border-radius: 12px;
    background: color-mix(in srgb, var(--accent) 5%, var(--panel)); }
.coach-goal-actions .muted { flex: 1 1 240px; min-width: 0; }
.coach-goal-editor-host { min-width: 0; }
.coach-goal-editor-host > .card { margin-bottom: 0; }
.coach-goal-history, .supplement-plan-history { border-top: 1px solid var(--border); padding-top: .7rem; }
.coach-goal-history > summary, .supplement-plan-history > summary { cursor: pointer; color: var(--muted); font-weight: 700; padding: .35rem 0; }
.coach-goal-history[open] > summary, .supplement-plan-history[open] > summary { color: var(--text); margin-bottom: .5rem; }

@media (max-width: 760px) {
    .coach-overview-layout { grid-template-columns: minmax(0, 1fr); }
    .coach-overview-figure-wrap > .bmf { width: min(100%, 340px); }
}

/* Koç İlerleme: kompakt sayfa-içi gezinme ve veri öncelikli bilgi mimarisi. */
.coach-progress-nav { min-width: 0; display: flex; flex: none; flex-direction: row; gap: .45rem; padding: .55rem; overflow-x: auto;
    scrollbar-width: thin; border: 1px solid var(--border); border-radius: 14px; background: var(--panel);
    box-shadow: 0 5px 16px rgba(16,31,64,.06); -webkit-overflow-scrolling: touch; }
.coach-progress-jump { flex: 0 0 auto; appearance: none; min-height: 38px; padding: .45rem .72rem;
    border: 1px solid var(--border); border-radius: 999px; background: var(--panel-2); color: var(--text);
    font: inherit; font-size: .74rem; font-weight: 750; cursor: pointer; transition: .16s var(--ease-out); }
.coach-progress-jump:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.coach-progress-jump:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 30%, transparent); outline-offset: 2px; }
.coach-progress-section { min-width: 0; scroll-margin-top: 1rem; }
.coach-progress-section > .card,
.coach-progress-section > .card-collapsible { margin-bottom: 0; }
.coach-balance-chart { height: 350px; }

/* Koç İlerleme: pazartesi–pazar gezilen, günlük veri bağlamlı öğrenci yorumları. */
.week-nav.coach-comment-week-nav { display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
    gap: .65rem; padding: .65rem; border: 1px solid var(--border); border-radius: 14px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 7%, var(--panel-2)), var(--panel-2)); }
.coach-comment-week-nav .week-nav-label { display: flex; flex-direction: column; align-items: center; gap: .2rem; }
.coach-comment-week-count { display: inline-flex; align-items: center; min-height: 22px; padding: .12rem .55rem;
    border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border)); border-radius: 999px;
    background: color-mix(in srgb, var(--accent) 7%, var(--panel)); color: var(--accent);
    font-size: .64rem; font-weight: 800; letter-spacing: .02em; }
.coach-comment-week-body { min-width: 0; }
.coach-comment-week-empty { min-height: 116px; }
.coach-daily-comments { display: flex; flex-direction: column; gap: .7rem; }
.coach-daily-comment { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: .85rem; min-width: 0; padding: .8rem .9rem; border: 1px solid var(--border);
    border-left: 3px solid var(--accent); border-radius: 14px; background: var(--panel-2); }
.coach-daily-comment-copy { min-width: 0; }
.coach-daily-comment-head { display: flex; align-items: center; gap: .45rem; color: var(--accent); font-size: .8rem; }
.coach-daily-comment-icon { width: 28px; height: 28px; display: grid; place-items: center;
    border-radius: 8px; background: var(--panel); border: 1px solid var(--border); }
.coach-daily-comment-head > div { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.coach-daily-comment-head strong { font-size: .88rem; }
.coach-daily-comment-head span:not(.coach-daily-comment-icon) { color: var(--muted); font-size: .66rem; }
.coach-daily-comment p { margin: .55rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.coach-daily-context-wrap { min-width: 0; padding-left: .8rem; border-left: 1px solid var(--border); }
.coach-daily-context-title { display: block; margin-bottom: .4rem; color: var(--muted);
    font-size: .63rem; font-weight: 800; letter-spacing: .04em; }
.coach-daily-context { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(125px, 100%), 1fr)); gap: .4rem; }
.coach-daily-context-chip { display: grid; grid-template-columns: 46px minmax(0,1fr); align-items: center; gap: .5rem; min-width: 0; padding: .52rem;
    border: 1px solid var(--border); border-radius: 10px; background: var(--panel); }
.coach-daily-context-chip.is-gap { border-color: color-mix(in srgb, #f59e0b 38%, var(--border));
    background: color-mix(in srgb, #f59e0b 6%, var(--panel)); }
.coach-daily-context-chip.is-energy { border-color: color-mix(in srgb, #8b5cf6 32%, var(--border));
    background: color-mix(in srgb, #8b5cf6 6%, var(--panel)); }
.coach-daily-context-visual { display: flex; flex-direction: column; align-items: center; gap: .18rem; min-width: 0; }
.coach-daily-context-icon { width: 30px; height: 30px; display: grid; place-items: center;
    border: 1px solid var(--border); border-radius: 8px; background: var(--panel-2); }
.coach-daily-context-name { max-width: 100%; font-size: .68rem; font-weight: 800; line-height: 1.1;
    text-align: center; overflow-wrap: anywhere; }
.coach-daily-context-copy { display: flex; flex-direction: column; min-width: 0; line-height: 1.18; }
.coach-daily-context-copy b { font-size: .8rem; font-weight: 800; overflow-wrap: anywhere; }
.coach-daily-context-copy small { margin-top: .12rem; color: var(--muted); font-size: .6rem; overflow-wrap: anywhere; }
@media (max-width: 680px) {
    .coach-daily-comment { grid-template-columns: minmax(0, 1fr); }
    .coach-daily-context-wrap { padding: .7rem 0 0; border-left: 0; border-top: 1px solid var(--border); }
}
@media (max-width: 480px) {
    .coach-progress-nav { margin-inline: -.15rem; }
    .coach-balance-chart { height: 310px; }
    .week-nav.coach-comment-week-nav { gap: .35rem; padding: .55rem; }
    .coach-comment-week-nav .btn { padding-inline: .55rem; }
    .coach-comment-week-nav .week-nav-label { font-size: .78rem; }
    .coach-daily-context { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Koç öğrenci ekranı HERO — herkese açık profil pf-hero'sunun SPA karşılığı */
.coach-back { margin-bottom: 1rem; }
.tl-hero { display: flex; align-items: center; gap: 1.15rem; flex-wrap: wrap; padding: 1.1rem 1.2rem; margin-bottom: 1.2rem; border: 1px solid var(--border); border-radius: 18px; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 9%, var(--panel-2)) 0%, var(--panel-2) 72%); }
.tl-hero-avcol { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: .55rem; }
.tl-hero-av { flex: 0 0 96px; width: 96px; height: 96px; border-radius: 50%; font-size: 2rem; box-shadow: inset 0 0 0 2px rgba(255,255,255,.18); }
.tl-hero-av--img { overflow: hidden; background: var(--panel); border: 1px solid var(--border); display: grid; place-items: center; box-shadow: none; }
.tl-hero-av--img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tl-socials { display: flex; gap: .4rem; justify-content: center; flex-wrap: wrap; }
.tl-social { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--border); background: var(--panel); color: var(--muted); transition: color .15s var(--ease-out), border-color .15s var(--ease-out), transform .15s var(--ease-out); }
.tl-social:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.tl-social svg { display: block; }
.tl-hero-main { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: .5rem; }
.tl-hero-name { margin: 0; font-size: 1.5rem; letter-spacing: -.02em; overflow-wrap: anywhere; }
.tl-hero-sub { display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
.tl-hero-sub-item { font-size: .9rem; font-weight: 700; color: var(--accent); }
.tl-hero-chips { margin-top: .1rem; }

/* ── AI veri dışa-aktarma kartı (İstatistik sekmesi) ── */
.ai-tpl-wrap { display: flex; flex-direction: column; gap: .35rem; }
.ai-tpl-label { font-size: .8rem; font-weight: 600; color: var(--muted); }
.ai-templates { display: flex; flex-wrap: wrap; gap: .4rem; }
.ai-out { width: 100%; box-sizing: border-box; min-height: 240px; resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .74rem; line-height: 1.45; white-space: pre; overflow: auto; background: var(--panel-2); color: var(--text); border: 1px solid var(--border); border-radius: 12px; padding: .6rem .7rem; }
.ai-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* Hafta gezgini (◀ hafta ▶) */
.week-nav { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; justify-content: center; }
.week-nav-label { flex: 1 1 auto; min-width: 0; text-align: center; font-weight: 700; font-size: .92rem; }
.week-slice { min-width: 0; }
.wk-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(120px, 100%), 1fr)); gap: .5rem; }
.wk-chip { min-width: 0; display: flex; align-items: center; gap: .5rem; padding: .55rem .6rem; border: 1px solid var(--border); border-radius: 12px; background: var(--panel-2); }
.wk-chip-ic { flex: 0 0 30px; width: 30px; height: 30px; display: grid; place-items: center; font-size: 1rem; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; }
.wk-chip-v { display: block; font-weight: 800; font-size: .95rem; letter-spacing: -.01em; overflow-wrap: anywhere; }
.wk-chip-l { display: block; font-size: .6rem; letter-spacing: .04em; color: var(--muted); font-weight: 700; }

/* Geri bildirim kartı (koç geçmişi + öğrenci alınan) */
.wk-range-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 700; background: color-mix(in srgb, var(--accent) 12%, var(--panel)); border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border)); color: var(--accent); white-space: nowrap; }
.fb-card { border: 1px solid var(--border); border-radius: 14px; background: var(--panel-2); padding: .7rem .85rem; border-left: 4px solid var(--accent); }
.fb-card-head { display: flex; align-items: center; gap: .5rem; justify-content: space-between; flex-wrap: wrap; margin-bottom: .4rem; }
.fb-coach { display: inline-flex; align-items: center; gap: .45rem; min-width: 0; }
.fb-coach .person-av { flex: 0 0 32px; width: 32px; height: 32px; font-size: .78rem; }
.fb-coach-name { font-weight: 700; overflow-wrap: anywhere; }
.fb-card-note { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .9rem; line-height: 1.5; }
.fb-card-meta { display: inline-flex; align-items: center; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }
.coach-feedback-list { min-width: 0; }
.coach-feedback-empty { min-height: 150px; }
.fb-card.is-focused { border-color: #8b5cf6; box-shadow: 0 0 0 3px color-mix(in srgb, #8b5cf6 20%, transparent), 0 12px 30px rgba(76,29,149,.13); animation: fb-focus-pulse .8s ease-out; }
.fb-card:focus-visible { outline: 2px solid #8b5cf6; outline-offset: 3px; }
@keyframes fb-focus-pulse {
    from { transform: scale(.985); background: color-mix(in srgb, #8b5cf6 13%, var(--panel-2)); }
    to { transform: scale(1); background: var(--panel-2); }
}

/* Haftalık koç değerlendirme rozetleri + toplam plan uyumu. */
.fb-badge, .fb-count { --fb: var(--accent); --fb-bg: color-mix(in srgb, var(--fb) 10%, var(--panel)); --fb-bd: color-mix(in srgb, var(--fb) 30%, var(--border)); }
.fb-badge.is-off_track, .fb-count.is-off_track, .fb-badge-option.is-off_track { --fb: #dc2626; }
.fb-badge.is-refocus, .fb-count.is-refocus, .fb-badge-option.is-refocus { --fb: #d97706; }
.fb-badge.is-building, .fb-count.is-building, .fb-badge-option.is-building { --fb: #2563eb; }
.fb-badge.is-consistent, .fb-count.is-consistent, .fb-badge-option.is-consistent { --fb: #16803a; }
.fb-badge.is-exceptional, .fb-count.is-exceptional, .fb-badge-option.is-exceptional { --fb: #7c3aed; }
.fb-badge { display: inline-flex; align-items: center; padding: .2rem .55rem; border-radius: 999px; color: var(--fb); background: var(--fb-bg); border: 1px solid var(--fb-bd); font-size: .72rem; font-weight: 800; white-space: nowrap; }
.fb-badge-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: .55rem; margin-top: .45rem; }
.fb-badge-option { --fb: var(--accent); display: flex; align-items: flex-start; gap: .6rem; padding: .7rem; border: 2px solid var(--border); border-radius: 12px; background: var(--panel-2); cursor: pointer; transition: border-color .14s var(--ease-out), background .14s var(--ease-out), box-shadow .14s var(--ease-out); }
.fb-badge-option:hover { border-color: color-mix(in srgb, var(--fb) 65%, var(--border)); }
.fb-badge-option:focus-visible { outline: none; box-shadow: var(--ring); }
.fb-badge-option.selected { border-color: var(--fb); background: color-mix(in srgb, var(--fb) 7%, var(--panel)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--fb) 30%, transparent); }
.fb-badge-option-ic { flex: 0 0 34px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: color-mix(in srgb, var(--fb) 12%, var(--panel)); font-size: 1.15rem; }
.fb-badge-option-copy { display: flex; flex-direction: column; gap: .12rem; min-width: 0; }
.fb-badge-option-copy b { color: var(--fb); font-size: .9rem; }
.fb-badge-option-copy span { color: var(--muted); font-size: .75rem; line-height: 1.3; }
.fb-adherence { display: grid; grid-template-columns: minmax(200px, .8fr) minmax(280px, 1.2fr); gap: .75rem 1rem; align-items: center; padding: .8rem; border: 1px solid var(--border); border-radius: 14px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 7%, var(--panel-2)), var(--panel-2)); }
.fb-adherence-main { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.fb-score { flex: 0 0 74px; width: 74px; height: 74px; display: grid; align-content: center; justify-items: center; border-radius: 50%; border: 5px solid color-mix(in srgb, var(--accent) 28%, var(--border)); background: var(--panel); }
.fb-score strong { color: var(--accent); font-size: 1.25rem; line-height: 1; }
.fb-score span { color: var(--muted); font-size: .55rem; margin-top: .15rem; text-align: center; }
.fb-score.is-off_track { border-color: color-mix(in srgb, #dc2626 45%, var(--border)); }
.fb-score.is-refocus { border-color: color-mix(in srgb, #d97706 45%, var(--border)); }
.fb-score.is-building { border-color: color-mix(in srgb, #2563eb 45%, var(--border)); }
.fb-score.is-consistent { border-color: color-mix(in srgb, #16803a 45%, var(--border)); }
.fb-score.is-exceptional { border-color: color-mix(in srgb, #7c3aed 45%, var(--border)); }
.fb-adherence-copy { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.fb-adherence-copy > b { font-size: 1rem; }
.fb-adherence-copy > span { color: var(--text); font-weight: 700; font-size: .84rem; }
.fb-adherence-copy > small { color: var(--muted); }
.fb-counts { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: .4rem; }
.fb-count { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: .35rem; padding: .4rem .5rem; color: var(--fb); background: var(--fb-bg); border: 1px solid var(--fb-bd); border-radius: 9px; min-width: 0; }
.fb-count > span:last-child { color: var(--muted); font-size: .65rem; overflow-wrap: anywhere; }
.fb-adherence-note { grid-column: 1 / -1; margin: 0; padding-top: .55rem; border-top: 1px solid var(--border); }
.fb-adherence.is-compact { grid-template-columns: minmax(190px, .8fr) minmax(250px, 1.2fr); padding: .65rem; }
.fb-adherence.is-compact .fb-score { flex-basis: 62px; width: 62px; height: 62px; }
.fb-highlight-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(145px, 100%), 1fr)); gap: .45rem; margin-top: .45rem; }
.fb-highlight-option { display: flex; align-items: center; gap: .45rem; min-width: 0; padding: .5rem .55rem; border: 1px solid var(--border); border-radius: 10px; background: var(--panel-2); color: var(--text); text-align: left; cursor: pointer; font: inherit; }
.fb-highlight-option > span:nth-child(2) { flex: 0 0 auto; font-size: 1.05rem; }
.fb-highlight-option > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.fb-highlight-option b { font-size: .82rem; overflow-wrap: anywhere; }
.fb-highlight-option small { color: var(--muted); font-size: .65rem; overflow-wrap: anywhere; }
.fb-highlight-option:hover { border-color: var(--accent); }
.fb-highlight-option.selected { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--panel)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent); }
.selection-checkbox-mark { display: grid; place-items: center; flex: 0 0 17px; width: 17px; height: 17px;
    border: 1.5px solid var(--muted); border-radius: 4px; color: var(--accent); background: var(--panel); font-size: 11px; font-weight: 900; }
.fb-highlight-option.selected .selection-checkbox-mark { border-color: var(--accent); background: var(--accent); color: #fff; }
.fb-highlight-option.selected .selection-checkbox-mark::before { content: '✓'; }
.fb-context { margin-top: .65rem; padding-top: .55rem; border-top: 1px solid var(--border); }
.fb-context-title { display: block; margin-bottom: .35rem; color: var(--muted); font-size: .65rem; font-weight: 800; letter-spacing: .04em; }
.fb-context-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(125px, 100%), 1fr)); gap: .4rem; }
.fb-context-chip { display: flex; align-items: center; gap: .45rem; min-width: 0; padding: .45rem .5rem; border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border)); border-radius: 10px; background: color-mix(in srgb, var(--accent) 5%, var(--panel)); }
.fb-context-ic { flex: 0 0 auto; font-size: 1rem; }
.fb-context-copy { display: flex; flex-direction: column; min-width: 0; }
.fb-context-copy b { font-size: .83rem; line-height: 1.15; overflow-wrap: anywhere; }
.fb-context-copy small { color: var(--muted); font-size: .62rem; line-height: 1.2; overflow-wrap: anywhere; }
@media (max-width: 680px) {
    .fb-adherence, .fb-adherence.is-compact { grid-template-columns: minmax(0, 1fr); }
    .fb-counts { grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); }
}

/* ── Vücut ölçü figürü (cinsiyet-farkındalıklı silüet + ölçü chip'leri + boy cetveli) ── */
.bmf { display: flex; gap: .4rem; align-items: stretch; justify-content: center; min-width: 0; }
.bmf-ruler { flex: 0 0 30px; width: 30px; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 6px 0; }
.bmf-ruler::before { content: ''; position: absolute; top: 8px; bottom: 8px; left: 50%; width: 2px; background: var(--border); transform: translateX(-50%); }
.bmf-ruler-cap { width: 14px; height: 2px; background: var(--muted); position: relative; z-index: 1; }
.bmf-ruler-val { writing-mode: vertical-rl; transform: rotate(180deg); font-size: .68rem; font-weight: 700; color: var(--accent); background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: .35rem .12rem; z-index: 1; letter-spacing: .02em; }
.bmf-stage { position: relative; width: 100%; max-width: 320px; }
.bmf-svg { width: 100%; height: auto; display: block; }
.bmf-body { stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.bmf.male .bmf-body { fill: #43649f; stroke: var(--accent); }
.bmf.female .bmf-body { fill: #9d4870; stroke: #ff7fb0; }
.bmf-accent { fill: none; stroke-width: 2; stroke-linecap: round; opacity: .45; }
.bmf.male .bmf-accent { stroke: #bcd3ff; }
.bmf.female .bmf-accent { stroke: #ffc2da; }
.bmf-pill { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; line-height: 1; padding: .1rem .3rem; background: var(--panel); border: 1px solid var(--border); border-radius: 6px; box-shadow: 0 1px 4px rgba(0,0,0,.18); pointer-events: none; }
.bmf-pill-lbl { font-size: .46rem; font-weight: 700; color: var(--muted); letter-spacing: .01em; white-space: nowrap; }
.bmf-pill-val { font-size: .72rem; font-weight: 700; color: var(--text); }
.bmf-gender { position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; font-size: .9rem; font-weight: 700; border: 1px solid var(--border); }
.bmf-gender.m { color: #5b8bff; background: rgba(91,139,255,.15); }
.bmf-gender.f { color: #ff7fb0; background: rgba(255,127,176,.18); }
.bmf-weight { position: absolute; top: 4px; right: 4px; display: flex; align-items: center; gap: .35rem; max-width: calc(100% - 40px); padding: .3rem .45rem; border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border)); border-radius: 10px; background: color-mix(in srgb, var(--accent) 7%, var(--panel)); box-shadow: 0 2px 8px rgba(0,0,0,.14); }
.bmf-weight-ic { flex: 0 0 auto; font-size: .9rem; }
.bmf-weight-copy { display: flex; flex-direction: column; min-width: 0; line-height: 1.05; }
.bmf-weight-copy small { color: var(--muted); font-size: .48rem; font-weight: 700; letter-spacing: .02em; }
.bmf-weight-copy b { color: var(--text); font-size: .72rem; white-space: nowrap; }
.meas-view-wrap { display: flex; justify-content: center; }
@media (max-width: 480px) { .bmf-pill-val { font-size: .68rem; } .bmf-pill-lbl { font-size: .44rem; } }

/* Vücut Ölçümleri üst satırı: solda kompakt ölçü haritası, sağda giriş formu */
.meas-top-row { display: grid; grid-template-columns: minmax(0, 238px) minmax(0, 1fr); gap: 1rem;
    align-items: start; }
.meas-top-row.is-single { grid-template-columns: minmax(0, 1fr); }
.meas-top-row > * { margin: 0; min-width: 0; }
.meas-map-card .bmf-stage { max-width: 168px; }
.meas-map-card .bmf-ruler { flex: 0 0 24px; width: 24px; }
/* Kompakt figürde rozet yalnız DEĞERİ gösterir: yarı boyda etiket+değer ya üst üste
   biner ya da okunamayacak kadar küçülür. Bölge adı rozetin title'ında ve hemen
   altındaki tam boy giriş figüründe durur; değer okunur boyutta kalır. */
.meas-map-card .bmf-pill { padding: .08rem .28rem; border-radius: 5px; }
.meas-map-card .bmf-pill-lbl { display: none; }
.meas-map-card .bmf-pill-val { font-size: .68rem; }
.meas-map-card .bmf-weight-copy small { font-size: .42rem; }
.meas-map-card .bmf-weight-copy b { font-size: .6rem; }
.meas-map-card .bmf-weight { padding: .2rem .3rem; gap: .25rem; }
.meas-map-card .bmf-weight-ic { font-size: .72rem; }
.meas-map-card .bmf-gender { width: 19px; height: 19px; font-size: .72rem; }
/* Tek kolona düşünce figür yeniden büyür → bölge adları geri gelir. */
@media (max-width: 1040px) {
    .meas-top-row { grid-template-columns: minmax(0, 1fr); }
    .meas-map-card .bmf-stage { max-width: 260px; }
    .meas-map-card .bmf-pill-lbl { display: flex; font-size: .46rem; }
    .meas-map-card .bmf-pill-val { font-size: .72rem; }
    .meas-map-card .bmf-weight-copy small { font-size: .48rem; }
    .meas-map-card .bmf-weight-copy b { font-size: .72rem; }
    .meas-map-card .bmf-gender { width: 24px; height: 24px; font-size: .9rem; }
    .meas-map-card .bmf-ruler { flex: 0 0 30px; width: 30px; }
}

/* ── Gelişim Dönemleri (development periods) ── */
.dp-strip { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: .7rem; padding-top: .7rem; border-top: 1px solid var(--border); }
.dp-strip > div { display: flex; flex-direction: column; }
.dp-strip b { font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em; color: var(--text); }
.dp-strip span { font-size: .68rem; color: var(--muted); }
.dp-stats { margin-bottom: 1rem; }
.dp-delta-rows { display: flex; flex-direction: column; gap: .4rem; margin: .2rem 0 1rem; }
.dp-drow { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .5rem .7rem; background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; font-size: .9rem; }
.dp-drow > span:first-child { color: var(--muted); }
.dp-delta { font-weight: 700; padding: .05rem .4rem; border-radius: 6px; background: var(--panel); border: 1px solid var(--border); }
.dp-delta.up { color: var(--danger); }   /* kilo/yağ artışı: kırmızı */
.dp-delta.down { color: var(--ok); }      /* azalış: yeşil */
.dp-charts { display: grid; grid-template-columns: 1fr; gap: .6rem; margin-bottom: 1rem; }
.dp-chart { background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; padding: .4rem .5rem; }
.dp-spark { width: 100%; height: 76px; display: block; }
.dp-ba { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.dp-ba-fig { margin: 0; position: relative; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--panel-2); }
.dp-ba-fig .tag { position: absolute; top: 6px; left: 6px; font-size: .62rem; font-weight: 700; letter-spacing: .06em; background: rgba(15,27,52,.7); color: #fff; padding: .1rem .45rem; border-radius: 5px; }
.dp-ba-fig img { width: 100%; display: block; aspect-ratio: 3/4; object-fit: cover; }
.dp-ba-empty { aspect-ratio: 3/4; display: grid; place-items: center; color: var(--muted); font-size: .8rem; }
.dp-ba-fig figcaption { padding: .3rem .5rem; }
@media (min-width: 640px) { .dp-charts { grid-template-columns: repeat(3, 1fr); } }
.plan-subhead:first-of-type { margin-top: .6rem; }

/* ── Admin: sekmeler + yönetim listeleri ── */
.admin-tabs { max-width: 760px; margin-bottom: 1.2rem; }
.admin-search { max-width: 280px; margin: .7rem 0; }
.admin-list { max-height: 420px; overflow: auto; border: 1px solid var(--border); border-radius: 12px; }
.admin-list .data-table th { position: sticky; top: 0; background: var(--panel); z-index: 1; }
.admin-list .data-table th, .admin-list .data-table td { padding: .5rem .7rem; }
.admin-pane .card .inline-form { margin-bottom: .2rem; }

/* Admin besin kütüphanesi: tüm CRUD işlemleri için ayrı, kart tabanlı çalışma alanı. */
.admin-food-pane { min-width: 0; }
.admin-food-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: clamp(1rem, 3vw, 1.5rem);
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--border));
    border-radius: 20px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 11%, var(--panel)), var(--panel) 68%);
    box-shadow: var(--shadow);
}
.admin-food-hero-copy { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.admin-food-hero-copy > div { min-width: 0; }
.admin-food-hero-icon {
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: color-mix(in srgb, var(--accent) 14%, var(--panel));
    box-shadow: 0 9px 24px color-mix(in srgb, var(--accent) 13%, transparent);
    font-size: 1.7rem;
}
.admin-food-hero small { color: var(--accent); font-size: .64rem; font-weight: 850; letter-spacing: .075em; }
.admin-food-card-head small { color: var(--accent); font-size: .64rem; font-weight: 850; letter-spacing: .075em; }
.admin-food-hero h2 { margin: .15rem 0; font-size: clamp(1.35rem, 2vw, 1.75rem); }
.admin-food-hero p { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.45; overflow-wrap: anywhere; }
.admin-food-add { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; flex: 0 0 auto; min-height: 46px; }
.admin-food-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 155px), 1fr)); gap: .7rem; margin-bottom: 1rem; }
.admin-food-stat { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .7rem; padding: .85rem; border: 1px solid var(--border); border-radius: 15px; background: var(--panel); box-shadow: 0 7px 22px rgba(20,31,60,.045); }
.admin-food-stat > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--panel-2); color: var(--accent); font-size: 1.05rem; font-weight: 850; }
.admin-food-stat > div { display: flex; flex-direction: column; min-width: 0; }
.admin-food-stat strong { font-size: 1.2rem; line-height: 1; }
.admin-food-stat small { margin-top: .22rem; color: var(--muted); font-size: .66rem; overflow-wrap: anywhere; }
.admin-food-toolbar { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(150px, auto) minmax(180px, auto); align-items: center; gap: .65rem; padding: .8rem; margin-bottom: .45rem; }
.admin-food-toolbar input, .admin-food-toolbar select { width: 100%; min-width: 0; min-height: 44px; box-sizing: border-box; }
.admin-food-search-wrap { position: relative; min-width: 0; }
.admin-food-search-wrap > span { position: absolute; inset-inline-start: .8rem; top: 50%; transform: translateY(-50%); color: var(--accent); pointer-events: none; }
.admin-food-search-wrap > input { padding-inline-start: 2.25rem; }
.admin-food-count { margin: .55rem 0 .75rem; }
.admin-food-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: .9rem; min-width: 0; }
.admin-food-card { display: flex; flex-direction: column; gap: .75rem; min-width: 0; height: 100%; margin: 0; box-sizing: border-box; overflow: hidden; }
.admin-food-card-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: .7rem; }
.admin-food-card-head > div { min-width: 0; }
.admin-food-card-head h3 { margin: .15rem 0 0; line-height: 1.25; overflow-wrap: anywhere; }
.admin-food-card-head > .status { max-width: 125px; white-space: normal; text-align: center; }
.admin-food-card-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: color-mix(in srgb, var(--accent) 9%, var(--panel-2)); font-size: 1.15rem; }
.admin-food-meta { display: flex; flex-wrap: wrap; gap: .4rem; }
.admin-food-meta > span { display: inline-flex; align-items: center; gap: .3rem; min-width: 0; padding: .35rem .5rem; border-radius: 999px; background: var(--panel-2); color: var(--muted); font-size: .66rem; }
.admin-food-meta > span span:last-child { overflow-wrap: anywhere; }
.admin-food-card > .nutrition-macros { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-food-card > .nutrition-macros .nutrition-macro-calories { grid-column: 1 / -1; }
.admin-food-card > .nutrition-macros > .nutrition-macro { min-width: 0; overflow: hidden; }
.admin-food-card > .nutrition-macros .nutrition-macro-copy strong { white-space: normal; overflow-wrap: anywhere; }
.admin-food-note { margin: 0; overflow-wrap: anywhere; }
.admin-food-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; margin-top: auto; padding-top: .7rem; border-top: 1px dashed var(--border); }
.admin-food-actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-height: 44px; margin: 0; white-space: normal; }
.admin-food-approve { color: var(--ok) !important; border-color: color-mix(in srgb, var(--ok) 38%, var(--border)) !important; }
.admin-food-reject { color: #b45309 !important; border-color: color-mix(in srgb, #b45309 38%, var(--border)) !important; }
.admin-food-private { color: #6d28d9 !important; border-color: color-mix(in srgb, #7c3aed 38%, var(--border)) !important; }
.admin-food-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: .25rem; text-align: center; }
.admin-food-empty > span:first-child { font-size: 1.6rem; }
.admin-food-modal { width: min(780px, calc(100vw - 24px)); }
.admin-food-modal-heading { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.admin-food-modal-heading > span { flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: color-mix(in srgb, var(--accent) 11%, var(--panel-2)); color: var(--accent); font-size: 1.3rem; }
.admin-food-modal-heading small { color: var(--accent); font-size: .62rem; font-weight: 850; letter-spacing: .08em; }
.admin-food-modal-heading h3 { margin: .12rem 0 0; }
.admin-food-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.admin-food-form-grid.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.admin-food-macro-inputs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .55rem; }
.admin-food-form input, .admin-food-form select, .admin-food-form textarea { width: 100%; min-width: 0; box-sizing: border-box; }
.admin-food-reference { margin: -.25rem 0 0; padding: .55rem .7rem; border-radius: 10px; background: var(--panel-2); }
.admin-food-modal-actions { display: flex; justify-content: flex-end; gap: .6rem; padding-top: .5rem; }
.admin-food-categories { margin: 0 0 1rem; padding: 0; overflow: hidden; }
.admin-food-categories > summary { display: flex; align-items: center; justify-content: space-between; gap: .7rem; min-height: 56px; padding: .75rem 1rem; cursor: pointer; list-style: none; }
.admin-food-categories > summary::-webkit-details-marker { display: none; }
.admin-food-categories > summary > div { display: flex; flex-direction: column; }
.admin-food-categories > summary small { color: var(--muted); }
.admin-food-categories[open] > summary > span { transform: rotate(180deg); }
.admin-category-add { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .6rem; padding: .8rem 1rem; border-top: 1px solid var(--border); }
.admin-food-categories .admin-list { margin: 0 1rem 1rem; }

@media(max-width: 800px) {
    .admin-tabs { max-width: 100%; overflow-x: auto; }
    .admin-tabs .tab { min-width: 155px; }
    .admin-food-hero { align-items: flex-start; flex-direction: column; }
    .admin-food-add { width: 100%; }
    .admin-food-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-food-toolbar { grid-template-columns: minmax(0, 1fr); }
    .admin-food-macro-inputs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-food-macro-inputs > label:first-child { grid-column: 1 / -1; }
}
@media(max-width: 480px) {
    .admin-food-hero-copy { align-items: flex-start; }
    .admin-food-hero-icon { flex-basis: 46px; width: 46px; height: 46px; border-radius: 14px; }
    .admin-food-stat { padding: .65rem; gap: .5rem; }
    .admin-food-stat > span { width: 34px; height: 34px; }
    .admin-food-card-head { grid-template-columns: auto minmax(0, 1fr); }
    .admin-food-card-head > .status { grid-column: 2; justify-self: start; }
    .admin-food-form-grid, .admin-food-form-grid.is-three { grid-template-columns: minmax(0, 1fr); }
    .admin-food-modal-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-food-modal-actions .btn { min-height: 44px; padding-inline: .6rem; }
}

/* (Eski 720px sidebar→satır kuralı kaldırıldı; mobil artık drawer ile ele alınıyor.) */

/* ── Ölçüm rehberi (SVG figür + lejant) ── */
.meas-guide { display: flex; gap: 1.6rem; flex-wrap: wrap; align-items: flex-start; }
.meas-figure { flex: 0 0 auto; }
.meas-figure svg { width: 256px; max-width: 100%; height: auto; }
.meas-legend { margin: 0 0 .6rem; padding-left: 1.4rem; line-height: 1.7; }
.meas-legend li { margin-bottom: .25rem; }
.meas-guide > div:last-child { flex: 1; min-width: 240px; }
@media (max-width: 560px) { .meas-figure { margin: 0 auto; } }

/* ── Grafik metrik seçici ── */
.chart-toolbar { display: flex; align-items: center; gap: .5rem; margin-bottom: .6rem; }
.chart-toolbar label { font-size: .85rem; color: var(--muted, #64748b); }
.metric-select { padding: .35rem .6rem; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; font-size: .9rem; }

/* ── Lightbox (tam ekran görsel) ── */
/* Giriş/çıkış: backdrop fade + içerik scale(.96)→1 ease-out, merkez origin (modal istisnası).
   ui.js:openLightbox '.is-open' toggler ve transitionend'de kaldırır. */
.lightbox-overlay { position: fixed; inset: 0; z-index: 1600; background: rgba(15,23,42,.85);
    display: flex; align-items: center; justify-content: center; padding: 2rem; cursor: zoom-out;
    opacity: 0; transition: opacity .2s var(--ease-out); }
.lightbox-overlay.is-open { opacity: 1; }
.lightbox-inner { position: relative; max-width: 92vw; max-height: 92vh; cursor: default;
    transform: scale(.96); opacity: 0; transform-origin: center;
    transition: transform .24s var(--ease-out), opacity .24s var(--ease-out); }
.lightbox-overlay.is-open .lightbox-inner { transform: scale(1); opacity: 1; }
.lightbox-inner img { max-width: 92vw; max-height: 84vh; border-radius: 10px; display: block;
    box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox-cap { color: #e2e8f0; text-align: center; margin: .6rem 0 0; font-size: .9rem; }
.lightbox-close { position: absolute; top: -14px; right: -14px; width: 36px; height: 36px; border: none;
    border-radius: 50%; background: #fff; color: #0f172a; font-size: 1.4rem; line-height: 1; cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,.3); transition: transform .14s var(--ease-out); }
.lightbox-close:active { transform: scale(.94); }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: none; border-radius: 50%; background: rgba(255,255,255,.92); color: #0f172a; font-size: 1.8rem; line-height: 1; cursor: pointer; display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0,0,0,.3); transition: transform .14s var(--ease-out), background .14s; z-index: 2; }
.lightbox-nav:hover { background: #fff; }
.lightbox-nav:active { transform: translateY(-50%) scale(.92); }
.lightbox-nav.prev { left: -18px; }
.lightbox-nav.next { right: -18px; }
@media (max-width: 560px) { .lightbox-nav.prev { left: 4px; } .lightbox-nav.next { right: 4px; } }

/* ── Önce/Sonra kaydırıcı ── */
.ba-stage { position: relative; width: 100%; max-width: 420px; aspect-ratio: 3 / 4; border-radius: 10px;
    overflow: hidden; user-select: none; background: #0f172a; }
.ba-layer { position: absolute; inset: 0; }
.ba-layer img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-before { will-change: clip-path; }
.ba-tag { position: absolute; top: 8px; padding: 2px 8px; font-size: .72rem; font-weight: 700;
    color: #fff; background: rgba(15,23,42,.7); border-radius: 999px; letter-spacing: .03em; }
.ba-tag-l { left: 8px; } .ba-tag-r { right: 8px; }
.ba-handle { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; transform: translateX(-1px);
    box-shadow: 0 0 0 1px rgba(0,0,0,.2); pointer-events: none; }
.ba-handle::after { content: '⟷'; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    width: 30px; height: 30px; border-radius: 50%; background: #fff; color: #0f172a; font-size: .8rem;
    display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }

/* ─────────────────────────────────────────────────────────────
   Hareket katmanı (Emil design-eng) — landing ile aynı dil.
   NOT: Panel/dashboard navigasyonu günde onlarca kez görülür; bu yüzden
   görünüm değişiminde reveal/stagger YOK (sık görüleni animasyonlamak
   yavaş hissettirir). Yalnızca press-feedback, occasional geçişler,
   hover-gating ve erişilebilir odak halkası.
   ───────────────────────────────────────────────────────────── */

/* Hover lift'leri yalnızca gerçek işaretçili cihazlarda (dokunmatik sahte hover'ı engelle) */
@media (hover: hover) and (pointer: fine) {
    .nav-link.nav-panel:hover { transform: translateY(-1px); }
    .opt-card:hover { transform: translateY(-2px); }
}

/* Klavye odağı için görünür halka (fare tıklamasında çıkmaz) — erişilebilirlik */
a:focus-visible, button:focus-visible, .btn:focus-visible, .nav-link:focus-visible,
.tab:focus-visible, .opt-card:focus-visible, .bf-card:focus-visible, .photo:focus-visible,
.icon-btn:focus-visible, [tabindex]:focus-visible {
    outline: none; box-shadow: var(--ring); border-radius: 10px;
}

/* Hareket azaltma tercihi: konum/ölçek hareketini kaldır (geçişler anlık olur) */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
    .btn:active, .nav-link.nav-panel:active, .opt-card:active, .lightbox-close:active { transform: none; }
}

/* ═══════════════════════════════════════════════════════════════
   MOBİL UYUMLULUK — drawer navigasyon + içerik akışı (≤860px)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 860px) {
    /* Tek kolon: sidebar akıştan çıkar, drawer olur. minmax(0,..) tablo taşmasını önler. */
    .layout { grid-template-columns: minmax(0, 1fr); min-height: 0; }
    .content { padding: 1.05rem 1rem 2.4rem; overflow: visible; }
    .content h2 { font-size: 1.35rem; }
    .notif-live { top: max(66px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); width: min(344px, calc(100vw - 24px)); }

    /* Üst bar (sticky) + hamburger görünür. */
    .app-topbar { display: flex; align-items: center; gap: .7rem; position: sticky; top: 0; z-index: 40;
        background: var(--sidebar); color: #fff; padding: .6rem .9rem; box-shadow: 0 2px 10px rgba(16,31,64,.18); }
    .app-topbar-brand { font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
    .app-burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
        width: 42px; height: 42px; padding: 9px; border: none; background: transparent; cursor: pointer; border-radius: 10px; }
    .app-burger span { display: block; height: 2.5px; width: 100%; background: #fff; border-radius: 2px;
        transition: transform .25s var(--ease-out), opacity .2s var(--ease-out); }
    .app-burger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
    .app-burger.is-open span:nth-child(2) { opacity: 0; }
    .app-burger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

    /* Sidebar → soldan açılan off-canvas drawer. */
    .sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: 268px; max-width: 84vw; z-index: 60;
        overflow-y: auto; transform: translateX(-100%); transition: transform .28s var(--ease-out); }
    .sidebar.open { transform: translateX(0); box-shadow: 0 0 50px rgba(8,15,33,.55); }

    /* Backdrop. */
    .app-scrim { display: block; position: fixed; inset: 0; z-index: 50; background: rgba(8,15,33,.5);
        opacity: 0; visibility: hidden; transition: opacity .25s var(--ease-out), visibility .25s; }
    .app-scrim.show { opacity: 1; visibility: visible; }
    body.drawer-open { overflow: hidden; }

    /* Kartlar / tablolar / formlar — dar ekrana uyum. */
    .card { padding: 1rem; border-radius: 14px; }
    details.card-collapsible { padding: 0; }
    .card-collapsible > .cc-sum { padding: 1rem; }
    .card-collapsible > .cc-body { padding: 0 1rem 1rem; }
    /* Mobilde tablo metni daha kompakt. */
    .data-table td { padding: .42rem .5rem; font-size: .78rem; }
    .data-table th { padding: .42rem .5rem; font-size: .66rem; }
    .admin-list { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .two-col { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .7rem; }
    .stat { padding: .9rem 1rem; }
    .stat-val { font-size: 1.5rem; }
    .row-between { flex-wrap: wrap; gap: .6rem; }

    /* Modal: tam genişliğe yakın, daha az iç boşluk. */
    .modal-overlay { padding: .6rem; }
    .modal { padding: 1.1rem; border-radius: 14px; max-height: 92vh; }

    /* Görseller / grafikler taşmasın. */
    canvas { max-width: 100% !important; }
    .meas-svg, .meas-figure svg { max-width: 100%; height: auto; }
}

/* Küçük telefonlar — ince ayar (≤480px) */
@media (max-width: 480px) {
    .content { padding: .85rem .8rem 2.2rem; }
    .content h2 { font-size: 1.25rem; }
    /* Profil şeridi: dar ekranda "düzenle" linki taşmasın → içerik alt alta dizilsin. */
    .meas-profile-strip { flex-direction: column; align-items: flex-start; gap: .3rem; }
    .meas-profile-strip .mps-edit { margin-left: 0; }
    .card { padding: .85rem; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .auth-box { padding: 1.5rem 1.2rem; }
    .btn { padding: .6rem 1rem; }
    .modal { padding: .9rem; }
    .plan-row { grid-template-columns: 1fr; }
    .chart-wrap { height: 260px; }
    .inline-form .field { min-width: 100%; }
    .coach-plan-tabs { width: 100%; }
    .coach-plan-tabs .tab { flex: 1 1 135px; min-width: 0; }
    .coach-goal-actions .btn { width: 100%; }
    .coach-summary-actions { align-items: stretch; flex-direction: column; }
    .coach-summary-actions .btn { width: 100%; }
    .coach-summary-actions .muted { flex-basis: auto; }
    .meas-quick-weight { grid-template-columns: minmax(0,1fr); }
    .meas-quick-weight-ic { width: 38px; height: 38px; }
    .meas-quick-weight-form { grid-template-columns: minmax(0,1fr); }
    .meas-weight-save { grid-column: auto; }
    .goal-progress-view .pf-stat-grid { grid-template-columns: minmax(0,1fr); }
    .inj-quick-repeat { grid-template-columns: auto minmax(0,1fr); }
    .inj-quick-repeat-ic { width: 38px; height: 38px; }
    .inj-quick-repeat-btn { grid-column: 1 / -1; width: 100%; }
    .coach-current-plan-hero { align-items: flex-start; flex-wrap: wrap; }
    .coach-current-plan-hero .status { margin-left: 0; }
    .coach-current-plan-period { grid-template-columns: minmax(0,1fr); }
}


/* ── Düzenlenebilir beslenme hedefi editörü (onboarding + Hedefim) ── */
.nt-editor { margin: .25rem 0 .2rem; }

/* Dikkat çekici açıklama: aksan tonlu çağrı kutusu (callout). */
.nt-note { display: flex; gap: .7rem; align-items: flex-start;
    background: linear-gradient(180deg, rgba(47,107,255,.07), rgba(47,107,255,.035));
    border: 1px solid rgba(47,107,255,.22); border-left: 3px solid var(--accent);
    border-radius: 12px; padding: .8rem .9rem; margin: .2rem 0 .9rem; }
.nt-note-ic { flex: none; display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: #fff;
    box-shadow: 0 2px 8px rgba(47,107,255,.35); }
.nt-note-body { min-width: 0; }
.nt-note-lead { margin: 0; font-size: .9rem; line-height: 1.4; color: var(--text); }
.nt-note-lead strong { color: var(--accent); font-weight: 700; }
.nt-note-sub { margin: .35rem 0 0; font-size: .8rem; line-height: 1.35; color: var(--muted);
    display: flex; align-items: center; gap: .35rem; }
.nt-note-lock { flex: none; display: inline-flex; opacity: .85; }

/* Düzenlenebilir alanlar: kompakt kutucuk gridi (yatayda satır kaplamaz, dar ekranda akar). */
.nt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .55rem; }
.nt-outcome-grid { grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); margin: .45rem 0 1.1rem; }
.nt-outcome-field { border-color: color-mix(in srgb, var(--accent) 24%, var(--border));
    background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 6%, var(--panel)), var(--panel)); }
.nt-outcome-field .nt-field-lbl { color: var(--accent-2, var(--accent)); font-weight: 800; }
.nt-outcome-field .nt-input[type="date"] { min-height: 1.55rem; font-size: .9rem; }
.goal-manual-editor-host { min-width: 0; }
.goal-manual-editor-host > .card { margin-bottom: 0; }
.nt-field { display: flex; flex-direction: column; gap: .25rem; min-width: 0;
    background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
    padding: .55rem .7rem; cursor: text;
    transition: border-color .15s var(--ease-out), box-shadow .15s var(--ease-out); }
.nt-field:hover { border-color: #cdd7e6; }
.nt-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47,107,255,.12); }
.nt-field-lbl { font-size: .72rem; font-weight: 600; color: var(--muted); letter-spacing: .01em; }
/* Sayı ve birimi yan yana tut: input satırın tamamını kaplayınca birim kutunun ta
   sağ ucuna itiliyor ve "3000 ........ ml" gibi anlamsız bir boşluk kalıyordu.
   Değer içeriği kadar yer kaplar; uzun değerde `flex-shrink` ile daralır. */
.nt-field-ctl { display: flex; align-items: baseline; justify-content: flex-start; gap: .25rem; }
.nt-field-ctl > .nt-input { flex: 0 1 auto; width: 7ch; }
.nt-field-ctl > input[type="date"].nt-input { width: auto; flex: 1 1 auto; }
.nt-input { width: 100%; min-width: 0; border: none; background: transparent; padding: 0;
    font: inherit; font-size: 1.2rem; font-weight: 700; color: var(--text);
    line-height: 1.1; -moz-appearance: textfield; }
.nt-input::-webkit-outer-spin-button, .nt-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.nt-input:focus { outline: none; }
.nt-unit { flex: none; color: var(--muted); font-size: .78rem; font-weight: 500; }
.nt-bp-ctl .nt-input { text-align: center; flex: 1 1 0; min-width: 0; }
.nt-bp-sep { flex: none; color: var(--muted); font-weight: 700; }
.nt-extra-title { margin-top: 1.1rem; display: flex; align-items: baseline; flex-wrap: wrap; gap: .2rem; }

/* Kilitli (hesaplanan) değerler: çukurlaşmış, kesik çizgili, kilit rozetli → değiştirilemez sinyali. */
.nt-locked-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.nt-locked { flex: 1 1 200px; min-width: 0; display: flex; align-items: center; gap: .55rem;
    background: var(--bg); border: 1px dashed var(--border); border-radius: 10px; padding: .5rem .7rem; }
.nt-locked-ic { flex: none; display: inline-flex; color: var(--muted); }
.nt-locked-txt { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.nt-locked-txt .lbl-info, .nt-locked-lbl { font-size: .72rem; color: var(--muted); }
.nt-locked-val { font-size: .95rem; font-weight: 700; color: var(--text); }


/* ═══════════════════════════════════════════════════════════════
   LOG GÖRÜNTÜLEYİCİ (#/logs) — admin: tüm kaynaklar + filtre + detay
   ═══════════════════════════════════════════════════════════════ */
.log-tabs { flex-wrap: wrap; }
.log-tabs .tab { display: inline-flex; flex: 1 1 auto; align-items: center; justify-content: center;
    gap: .38rem; min-width: 92px; }

/* Filtre çubuğu: içeriğe şişmeyen, sarmalayan alanlar. */
.log-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .6rem;
    background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px; padding: .8rem .9rem; margin-bottom: 1rem; }
.log-field { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.log-field > span { font-size: .7rem; color: var(--muted); font-weight: 600; }
.log-filters select, .log-filters .log-inp {
    font: inherit; padding: .42rem .55rem; border: 1px solid var(--border); border-radius: 9px;
    background: var(--panel); color: var(--text); max-width: 100%; }
.log-filters .log-inp { width: 160px; }
.log-filters .log-inp[type="number"] { width: 100px; }
.log-filters .btn { align-self: flex-end; }

/* Sonuç tablosu — tıklanabilir satır + okunur sütunlar. */
.log-table { min-width: 640px; }
.log-row { cursor: pointer; transition: background .12s var(--ease-out, ease); }
.log-row:hover { background: var(--panel-2); }
.log-path { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .76rem; word-break: break-all; }
.log-summary { max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Renkli rozetler (durum / seviye / işlem). */
.log-badge { display: inline-block; padding: .12rem .45rem; border-radius: 999px; font-size: .72rem; font-weight: 700; line-height: 1.5; white-space: nowrap; }
.lb-ok   { background: #dcfce7; color: #166534; }
.lb-info { background: #dbeafe; color: #1e40af; }
.lb-warn { background: #ffedd5; color: #9a3412; }
.lb-err  { background: #fee2e2; color: #991b1b; }
.lb-muted{ background: var(--border); color: var(--muted); }

/* Sayfalayıcı. */
.log-pager { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1rem; flex-wrap: wrap; }
.log-pager .btn[disabled] { opacity: .45; cursor: not-allowed; }

/* Detay modalı: ham JSON, kaydırılabilir, satır kırılımlı. */
.modal.log-detail { max-width: 760px; }
.log-detail-json { margin-top: .8rem; background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
    padding: .9rem 1rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem; line-height: 1.5;
    white-space: pre-wrap; word-break: break-word; max-height: 60vh; overflow: auto; color: var(--text); }

@media (max-width: 860px) {
    .log-filters { gap: .5rem; padding: .7rem; }
    .log-filters .log-inp, .log-filters select { width: 100%; }
    .log-field { flex: 1 1 140px; }
    .log-summary { max-width: 200px; }
    .log-detail-json { font-size: .72rem; }
}
@media (max-width: 480px) {
    .log-field { flex-basis: 100%; }
    .log-filters .btn { flex: 1 1 100%; }
}


/* ═══════════════════════════════════════════════════════════════
   KOYU TEMA (Dark mode)
   Efektif tema JS'te çözülür: <html data-theme="dark|light"> her zaman
   açıkça set edilir ("system" iken cihaz moduna göre). Bu yüzden CSS'te
   tek bir [data-theme="dark"] bloğu yeterli (media + attr çoğaltması yok).
   ═══════════════════════════════════════════════════════════════ */
:root[data-theme="dark"] {
    --bg: #0e1525;
    --panel: #161f33;
    --panel-2: #1e2942;
    --sidebar: #0a1020;
    --border: #2b3650;
    --text: #e7ecf5;
    --muted: #9aa6bc;
    --accent: #5b8bff;
    --accent-2: #4576f0;
    --ok: #22c55e;
    --warn: #fbbf24;
    --danger: #f87171;
    --shadow: 0 10px 30px rgba(0, 0, 0, .45);
    --ring: 0 0 0 3px rgba(91, 139, 255, .35);
    --input-bg: #0f1830;
    --skeleton-shine: rgba(255, 255, 255, .06);
    color-scheme: dark;
}
/* Form alanları base kuralda #fff sabitliydi → koyuda değişkene çek. */
:root[data-theme="dark"] input,
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea,
:root[data-theme="dark"] .metric-field input,
:root[data-theme="dark"] .bp-inputs input,
:root[data-theme="dark"] .metric-select {
    background: var(--input-bg);
    color: var(--text);
    border-color: var(--border);
}
:root[data-theme="dark"] .auth-wrap {
    background: radial-gradient(900px 400px at 50% -10%, #15233f 0%, var(--bg) 60%);
}
/* Açık zeminli vurgu kartları/bölümleri koyuda ton koruyarak karart. */
:root[data-theme="dark"] .field.req input,
:root[data-theme="dark"] .field.req select { background: var(--input-bg); border-color: var(--border); }
:root[data-theme="dark"] .metric-field--macro { background: rgba(91,139,255,.10); border-color: var(--border); }
:root[data-theme="dark"] .daily-sec--night   { background: linear-gradient(180deg, #1a2342, var(--panel-2)); border-color: var(--border); }
:root[data-theme="dark"] .daily-sec--morning { background: linear-gradient(180deg, #2a2417, var(--panel-2)); border-color: var(--border); }
:root[data-theme="dark"] .daily-sec--training { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 10%, var(--panel-2)), var(--panel-2)); border-color: var(--border); }
:root[data-theme="dark"] .daily-sec--note    { background: linear-gradient(180deg, #14241b, var(--panel-2)); border-color: var(--border); }
/* Tema toggle düğmesi (sol menü ayağında). */
.theme-toggle { display: flex; align-items: center; justify-content: center; gap: .4rem; margin-bottom: .5rem; }
.theme-toggle .tt-ico { font-size: 1rem; line-height: 1; }

/* Dil seçici (tam) — tema toggle ile aynı stil (sol menü üstünde). */
.lang-toggle { display: flex; align-items: center; justify-content: center; gap: .4rem; }
.lang-toggle .tt-ico { font-size: 1rem; line-height: 1; }
.sidebar > .lang-toggle { margin-bottom: .7rem; }

/* Dil seçici (kompakt) — yuvarlak hap; mobil üst bar + auth sol-üst sabit. */
.lang-compact { display: inline-flex; align-items: center; gap: .3rem; padding: .34rem .6rem;
    border: 1px solid var(--border); border-radius: 999px; background: var(--panel); color: var(--text);
    font-size: .8rem; font-weight: 700; cursor: pointer; line-height: 1;
    transition: border-color .15s var(--ease-out), background .15s var(--ease-out); }
.lang-compact:hover { border-color: var(--accent); }
.lang-compact .tt-ico { font-size: .95rem; line-height: 1; }

/* Auth ekranı: dil seçici sayfanın sol üstünde sabit. */
.global-lang { position: fixed; top: 16px; right: 18px; z-index: 45; }

/* Mobil üst bardaki kompakt dil hapı koyu zemine uyumlu. */
.app-topbar .lang-compact { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.28); color: #fff; }
.app-topbar .lang-compact:hover { background: rgba(255,255,255,.2); border-color: #fff; }


/* ═══════════════════════════════════════════════════════════════
   SAYFA GEÇİŞ FADE (route animasyonu) + İSKELET (skeleton) YÜKLEME
   ═══════════════════════════════════════════════════════════════ */
.route-anim { animation: routeFade .26s var(--ease-out) both; }
@keyframes routeFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .route-anim { animation: none; } }

.skel-wrap { display: flex; flex-direction: column; gap: 1rem; }
.skel-card { display: flex; flex-direction: column; gap: .7rem; }
.skeleton {
    position: relative; overflow: hidden; border-radius: 10px; background: var(--panel-2);
}
.skeleton.skel-title { border-radius: 8px; margin-bottom: .4rem; }
.skeleton::after {
    content: ''; position: absolute; inset: 0; transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, var(--skeleton-shine), transparent);
    animation: skelShimmer 1.3s infinite;
}
@keyframes skelShimmer { 100% { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .skeleton::after { animation: none; } }

/* Beslenme: kütüphane → öğrenci bağlamı → antrenman/dinlenme günü öğünleri. */
.nutrition-library, .nutrition-templates, .nutrition-workspace, .nutrition-planning-main, .nutrition-editor { min-width: 0; }
.nutrition-library[hidden], .nutrition-templates[hidden], .nutrition-workspace[hidden], .nutrition-day-editor[hidden], .nutrition-day-view[hidden] { display: none; }
.nutrition-food-sync { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: .65rem; margin: 0 0 .8rem; border-color: color-mix(in srgb, var(--ok) 45%, var(--border)); background: color-mix(in srgb, var(--ok) 8%, var(--panel)); }
.nutrition-food-sync[hidden] { display: none; }
.nutrition-food-sync > span:first-child { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: var(--ok); color: #fff; font-weight: 850; }
.nutrition-food-sync .btn { min-width: 36px; min-height: 36px; padding: .2rem; }
.nutrition-day-tabs, .nutrition-toolbar, .nutrition-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0; align-items: center; }
.nutrition-day-tabs .btn[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.nutrition-toolbar input { flex: 1 1 220px; min-width: 0; }
.nutrition-category-list { display: grid; gap: .8rem; }
.nutrition-category-group { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: var(--panel); box-shadow: 0 8px 24px rgba(20,31,60,.04); }
.nutrition-category-group > summary { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: .75rem; min-height: 64px; padding: .7rem .9rem; cursor: pointer; list-style: none; }
.nutrition-category-group > summary::-webkit-details-marker { display: none; }
.nutrition-category-group > summary:hover { background: color-mix(in srgb, var(--accent) 5%, var(--panel)); }
.nutrition-category-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--panel-2)); }
.nutrition-category-copy { display: flex; flex-direction: column; min-width: 0; }
.nutrition-category-copy strong { overflow-wrap: anywhere; }
.nutrition-category-copy small { margin-top: .12rem; color: var(--muted); }
.nutrition-category-chevron { color: var(--muted); transition: transform .2s ease; }
.nutrition-category-group[open] .nutrition-category-chevron { transform: rotate(180deg); }
.nutrition-category-group > .nutrition-food-list { padding: 0 .8rem .8rem; border-top: 1px solid var(--border); background: var(--panel-2); }
.nutrition-category-group > .nutrition-food-list .nutrition-food-card { margin-top: .8rem; background: var(--panel); }
.nutrition-category-proposal { padding: .7rem; border: 1px dashed color-mix(in srgb, var(--accent) 45%, var(--border)); border-radius: 12px; background: color-mix(in srgb, var(--accent) 5%, var(--panel)); }
.nutrition-category-proposal[hidden] { display: none; }
.nutrition-food-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1rem; }
.nutrition-food-card { margin: 0; min-width: 0; }
.nutrition-food-title { display: flex; align-items: start; justify-content: space-between; gap: .6rem; }
.nutrition-food-title h3 { overflow-wrap: anywhere; }
.nutrition-macros { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .45rem; padding: .8rem; border-radius: 12px; background: color-mix(in srgb, var(--accent) 6%, var(--panel)); }
.nutrition-macros > div { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.nutrition-macros small { color: var(--muted); font-size: .72rem; }
.nutrition-macros strong { font-size: .95rem; overflow-wrap: anywhere; }
.nutrition-macros.is-compact { padding: .6rem; }
.nutrition-macros.is-compact strong { font-size: .8rem; }
.nutrition-field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; font-size: .85rem; }
.nutrition-field input, .nutrition-field select, .nutrition-field textarea { width: 100%; min-width: 0; box-sizing: border-box; }
.nutrition-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .8rem; }
.nutrition-food-modal { width: min(620px, calc(100vw - 24px)); }
.nutrition-food-modal > .btn { margin-top: .7rem; }
.nutrition-planning-layout { display: grid; grid-template-columns: minmax(240px, .7fr) minmax(0, 1.7fr); gap: 1rem; align-items: start; margin-top: 1rem; }
.nutrition-context { min-width: 0; margin: 0; }
.nutrition-context summary { cursor: pointer; padding: .8rem 0; font-weight: 650; }
.nutrition-measures { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .6rem; }
.nutrition-metric { display: flex; flex-direction: column; gap: .25rem; padding: .65rem; border-radius: 10px; background: var(--panel-2); min-width: 0; }
.nutrition-metric small { font-size: .7rem; color: var(--muted); }
.nutrition-metric strong { font-size: .9rem; overflow-wrap: anywhere; }
.nutrition-photos { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .4rem; }
.nutrition-photo { padding: 0; border: 1px solid var(--border); border-radius: 8px; background: var(--panel-2); color: var(--text); overflow: hidden; cursor: pointer; min-width: 0; }
.nutrition-photo img { width: 100%; height: 110px; object-fit: cover; display: block; }
.nutrition-photo small { display: block; padding: .3rem; font-size: .65rem; }
.nutrition-editor { display: flex; flex-direction: column; gap: .8rem; }
.nutrition-editor .notice { margin: 0; }
.nutrition-comparison { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .7rem; }
.nutrition-comparison > section { border: 1px solid var(--border); border-radius: 12px; padding: .6rem; min-width: 0; }
.nutrition-comparison > section > strong { display: block; margin-bottom: .5rem; font-size: .85rem; }
.nutrition-comparison .nutrition-macros { grid-template-columns: repeat(2,minmax(0,1fr)); }
.nutrition-meals { display: grid; gap: 1rem; margin: 1rem 0; }
.nutrition-meal-editor { padding: .9rem; border: 1px solid var(--border); border-radius: 14px; background: var(--panel-2); min-width: 0; }
.nutrition-meal-head { display: flex; align-items: end; gap: .6rem; margin-bottom: .6rem; }
.nutrition-meal-head > label { flex: 1; }
.nutrition-food-row { display: grid; grid-template-columns: minmax(0,1fr) 100px auto; gap: .5rem; align-items: center; padding: .7rem 0; border-bottom: 1px solid var(--border); }
.nutrition-food-row select, .nutrition-food-row input { width: 100%; min-width: 0; }
.nutrition-quantity { display: flex; flex-direction: column; gap: .2rem; }
.nutrition-row-preview { grid-column: 1 / -1; }
.nutrition-meal-editor > .btn { margin: .6rem 0; }
.nutrition-program { margin: 0 0 .8rem; min-width: 0; }
.nutrition-program > summary { display: flex; justify-content: space-between; align-items: center; gap: .7rem; cursor: pointer; min-height: 44px; }
.nutrition-program > summary strong { overflow-wrap: anywhere; }
.nutrition-program > summary::after { content: '+'; font-size: 1.3rem; }
.nutrition-program[open] > summary::after { content: '−'; }
.nutrition-meal-view { padding: .75rem 0; border-bottom: 1px solid var(--border); }
.nutrition-day-view p { white-space: pre-wrap; overflow-wrap: anywhere; }
@media(max-width: 1100px) {
    .nutrition-planning-layout { grid-template-columns: minmax(0,1fr); }
    .nutrition-measures { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .nutrition-photos { grid-template-columns: repeat(6,minmax(0,1fr)); }
}
@media(max-width: 600px) {
    .nutrition-measures { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .nutrition-photos { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .nutrition-fields { grid-template-columns: minmax(0,1fr); }
    .nutrition-food-row { grid-template-columns: minmax(0,1fr) 90px; }
    .nutrition-food-row > select { grid-column: 1 / -1; }
    .nutrition-food-row > .btn { justify-self: end; min-height: 44px; }
    .nutrition-meal-head { align-items: center; }
    .nutrition-meal-head .btn { max-width: 100px; white-space: normal; }
    .nutrition-comparison { gap: .4rem; }
    .nutrition-comparison > section { padding: .35rem; }
    .nutrition-macros { gap: .3rem; }
}

/* 8gg — Koça ait yeniden kullanılabilir beslenme programı taslakları. */
.nutrition-template-hero {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
    padding: clamp(1rem, 3vw, 1.5rem);
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border));
    border-radius: 22px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 13%, var(--panel)), var(--panel) 65%);
    box-shadow: 0 16px 42px rgba(20, 31, 60, .07);
}
.nutrition-template-hero::after { content: ''; position: absolute; width: 190px; height: 190px; right: -75px; top: -95px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 9%, transparent); pointer-events: none; }
.nutrition-template-hero > * { position: relative; z-index: 1; }
.nutrition-template-hero h2 { margin: .15rem 0 .3rem; }
.nutrition-template-hero p { margin: 0; color: var(--muted); max-width: 780px; }
.nutrition-template-hero-icon, .nutrition-template-icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: var(--accent);
    color: #fff;
    box-shadow: 0 9px 22px color-mix(in srgb, var(--accent) 25%, transparent);
    font-size: 1.3rem;
}
.nutrition-template-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1rem; margin: 1rem 0; }
.nutrition-template-card { display: flex; flex-direction: column; gap: .9rem; min-width: 0; margin: 0; padding: 1.1rem; border-color: color-mix(in srgb, var(--accent) 16%, var(--border)); }
.nutrition-template-card-head { display: flex; align-items: center; gap: .8rem; min-width: 0; }
.nutrition-template-card .nutrition-template-icon { flex-basis: 42px; width: 42px; height: 42px; border-radius: 13px; }
.nutrition-template-card-copy { display: flex; flex-direction: column; min-width: 0; }
.nutrition-template-card-copy small:first-child, .nutrition-template-picker-head small { color: var(--accent); font-size: .62rem; font-weight: 850; letter-spacing: .08em; }
.nutrition-template-card-copy h3 { margin: .1rem 0; overflow-wrap: anywhere; }
.nutrition-template-description { margin: 0; min-height: 2.7em; overflow-wrap: anywhere; }
.nutrition-template-stats { display: flex; flex-wrap: wrap; gap: .5rem; }
.nutrition-template-stats > span { display: inline-flex; align-items: center; gap: .4rem; padding: .48rem .65rem; border-radius: 11px; background: var(--panel-2); color: var(--muted); font-size: .72rem; }
.nutrition-template-stats strong { color: var(--text); }
.nutrition-template-card > .nutrition-program-summary-days { justify-content: flex-start; min-height: 34px; }
.nutrition-template-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; padding-top: .3rem; }
.nutrition-template-actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-height: 42px; }
.nutrition-template-use { flex: 1 1 170px; }
.nutrition-template-empty { display: grid; place-items: center; gap: .65rem; padding: 1.4rem; border: 1px dashed var(--border); border-radius: 18px; background: var(--panel-2); text-align: center; }
.nutrition-template-empty > span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: color-mix(in srgb, var(--accent) 12%, var(--panel)); color: var(--accent); font-size: 1.25rem; }
.nutrition-template-empty .notice { margin: 0; }
.nutrition-template-editor-host { margin: 1rem 0; scroll-margin-top: 1rem; }
.nutrition-template-source { display: flex; align-items: center; gap: .65rem; margin: 0; border-color: color-mix(in srgb, var(--accent) 34%, var(--border)); }
.nutrition-template-source > span:first-child { flex: 0 0 30px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: var(--accent); }
.nutrition-template-picker { display: grid; gap: .8rem; margin: 1rem 0; padding: clamp(1rem, 3vw, 1.4rem); }
.nutrition-template-picker-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .8rem; }
.nutrition-template-picker-head > div { min-width: 0; }
.nutrition-template-picker-head h2 { margin: .1rem 0 .2rem; font-size: 1.2rem; }
.nutrition-template-picker-head p { margin: 0; color: var(--muted); font-size: .82rem; }
.nutrition-template-picker > input[type=search] { width: 100%; }
.nutrition-template-grid.is-picker { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); margin: 0; }
.nutrition-template-grid.is-picker .nutrition-template-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; }

@media(max-width: 700px) {
    .nutrition-main-tabs { display: grid; grid-template-columns: minmax(0, 1fr); }
    .nutrition-main-tabs .btn { width: 100%; min-height: 44px; }
    .nutrition-template-hero { grid-template-columns: auto minmax(0, 1fr); }
    .nutrition-template-hero > .btn { grid-column: 1 / -1; width: 100%; min-height: 46px; }
    .nutrition-template-picker-head { grid-template-columns: auto minmax(0, 1fr); }
    .nutrition-template-picker-head > .btn { grid-column: 1 / -1; width: 100%; min-height: 44px; }
}
@media(max-width: 480px) {
    .nutrition-template-hero { padding: .9rem; border-radius: 18px; }
    .nutrition-template-hero-icon { flex-basis: 42px; width: 42px; height: 42px; }
    .nutrition-template-card { padding: .9rem; }
    .nutrition-template-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nutrition-template-actions .btn { width: 100%; white-space: normal; }
    .nutrition-template-use { grid-column: 1 / -1; }
    .nutrition-template-grid.is-picker .nutrition-template-actions { grid-template-columns: minmax(0, 1fr); }
}

/* 8g7 — Beslenme ataması: öğrenci kataloğu, bağımsız gün kartları, önizleme. */
.nutrition-student-picker[hidden], .nutrition-day-editor[hidden], .nutrition-inline-error[hidden] { display: none; }
.nutrition-eyebrow { display: block; color: var(--accent); font-size: .72rem; font-weight: 800; letter-spacing: .09em; margin-bottom: .4rem; }
.nutrition-student-picker { padding: clamp(1rem, 3vw, 2rem); border: var(--surface-border); border-radius: var(--surface-radius); background: var(--surface-bg); box-shadow: var(--surface-shadow); }
.nutrition-student-picker h2, .nutrition-editor h2 { margin: .2rem 0 .7rem; }
.nutrition-student-picker input[type=search] { width: 100%; box-sizing: border-box; min-height: 48px; font-size: 1rem; margin: .5rem 0 1.2rem; background: var(--input-bg); }
.nutrition-filter-row { display: grid; grid-template-columns: 75px minmax(0,1fr); align-items: start; gap: .6rem; margin: .8rem 0; }
.nutrition-filter-row > strong { padding-top: .7rem; font-size: .8rem; }
.nutrition-filter-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.nutrition-filter { min-height: 42px; padding: .55rem .85rem; border: 1px solid var(--border); border-radius: 100px; background: var(--panel); color: var(--text); font: inherit; font-size: .8rem; cursor: pointer; }
.nutrition-filter[aria-checked=true] { color: #fff; background: var(--accent); border-color: var(--accent); }
.nutrition-student-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%,250px),1fr)); gap: .8rem; }
.nutrition-student-group { margin-top: 1.3rem; }
.nutrition-student-group h3 { font-size: .85rem; color: var(--muted); margin-bottom: .6rem; }
.nutrition-student-card { display: flex; align-items: center; gap: .8rem; width: 100%; min-height: 92px; text-align: start; padding: 1rem; background: var(--surface-bg); border: var(--surface-border); border-radius: var(--surface-radius); color: var(--text); cursor: pointer; font: inherit; box-shadow: var(--surface-shadow); }
.nutrition-student-card:hover { border-color: var(--accent); background: color-mix(in srgb,var(--accent) 5%,var(--panel)); }
.nutrition-student-initial { flex: 0 0 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; font-size: 1.1rem; font-weight: 800; background: color-mix(in srgb,var(--accent) 12%,var(--panel)); color: var(--accent); }
.nutrition-student-copy { flex: 1; display: flex; flex-direction: column; gap: .4rem; min-width: 0; overflow-wrap: anywhere; }
.nutrition-goal-badge { color: var(--muted); font-size: .75rem; }
.nutrition-selected-student { display: flex; align-items: center; gap: .85rem; padding: 1rem 1.2rem; margin: 1rem 0 0; border: 1px solid color-mix(in srgb,var(--accent) 35%,var(--border)); border-radius: 16px; background: color-mix(in srgb,var(--accent) 5%,var(--panel)); }
.nutrition-selected-student > div { display: flex; flex-direction: column; gap: .25rem; min-width: 0; flex: 1; overflow-wrap: anywhere; }
.nutrition-selected-student small:not(.muted) { color: var(--accent); font-size: .65rem; font-weight: 800; letter-spacing: .05em; }
.nutrition-profile-disclosure { margin: .6rem 0 1.2rem; }
.nutrition-profile-disclosure > summary { cursor: pointer; color: var(--accent); font-size: .85rem; padding: .85rem 1rem; min-height: 44px; box-sizing: border-box; font-weight: 700; }
.nutrition-editor { padding: clamp(1rem,3vw,2rem); border: 1px solid var(--border); gap: 1rem; }
.nutrition-editor > h2 { font-size: 1.6rem; }
.nutrition-tone-training { --day-color: #6440ca; --day-tint: color-mix(in srgb,#6440ca 7%,var(--panel)); }
.nutrition-tone-rest { --day-color: #087d73; --day-tint: color-mix(in srgb,#087d73 7%,var(--panel)); }
:root[data-theme=dark] .nutrition-tone-training { --day-color: #b9a1ff; }
:root[data-theme=dark] .nutrition-tone-rest { --day-color: #66dac7; }
.nutrition-day-choices { border: 0; padding: 0; margin: .5rem 0; min-width: 0; }
.nutrition-day-choices legend { font-size: 1.15rem; font-weight: 800; padding: 0; }
.nutrition-day-choices > p { margin: .4rem 0 1rem; font-size: .9rem; }
.nutrition-day-choice-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .9rem; }
.nutrition-day-choice { position: relative; display: flex; align-items: center; gap: .8rem; padding: 1.1rem; border: 2px solid color-mix(in srgb,var(--day-color) 30%,var(--border)); border-radius: 16px; background: var(--day-tint); cursor: pointer; min-height: 116px; box-sizing: border-box; }
.nutrition-day-choice > input { flex: 0 0 22px; width: 22px; height: 22px; accent-color: var(--day-color); }
.nutrition-day-symbol { color: var(--day-color); font-size: 1.7rem; }
.nutrition-day-choice > span:last-child { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.nutrition-day-choice strong { color: var(--day-color); font-size: 1.05rem; }
.nutrition-day-choice span span { color: var(--muted); font-size: .8rem; }
.nutrition-day-choice small { font-size: .75rem; font-weight: 750; color: var(--day-color); }
.nutrition-day-choice.is-selected { border-color: var(--day-color); box-shadow: 0 0 0 2px color-mix(in srgb,var(--day-color) 10%,transparent); }
.nutrition-day-editor { border: 1px solid color-mix(in srgb,var(--day-color) 35%,var(--border)); border-top: 4px solid var(--day-color); border-radius: 16px; padding: 1rem; margin: .4rem 0; }
.nutrition-day-heading { display: flex; align-items: center; gap: .8rem; }
.nutrition-day-heading > span { font-size: 2rem; color: var(--day-color); }
.nutrition-day-heading h3 { margin: 0; color: var(--day-color); }
.nutrition-day-heading p { margin: .3rem 0; }
.nutrition-day-extras { margin: .8rem 0; }
.nutrition-day-extras summary { cursor: pointer; padding: .6rem 0; color: var(--muted); font-size: .85rem; }
.nutrition-meal-editor { background: var(--panel); border-left: 3px solid var(--day-color); padding: 1rem; }
.nutrition-meal-head input::placeholder { color: var(--muted); opacity: .8; }
.nutrition-review { padding: 1.2rem; border-radius: 16px; background: var(--panel-2); border: 1px solid var(--border); }
.nutrition-review > .btn { min-height: 48px; width: 100%; margin-top: .7rem; font-size: .95rem; }
.nutrition-comparison > section { background: var(--panel); border-top: 3px solid var(--day-color); }
.nutrition-comparison > section > strong { color: var(--day-color); }
.nutrition-inline-error { padding: .8rem; border: 1px solid var(--danger); color: var(--danger); border-radius: 10px; }
.nutrition-preview > .btn { width: 100%; min-height: 48px; }
.nutrition-existing-programs > summary { cursor: pointer; padding: .5rem; font-weight: 750; }
.nutrition-existing-programs[open] > summary { margin-bottom: 1rem; }
.nutrition-student-card:focus-visible, .nutrition-filter:focus-visible, .nutrition-day-choice:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
@media(max-width: 600px) {
    .nutrition-day-choice-grid { grid-template-columns: minmax(0,1fr); }
    .nutrition-day-choice { min-height: 108px; padding: .9rem; }
    .nutrition-filter-row { grid-template-columns: minmax(0,1fr); gap: .2rem; }
    .nutrition-selected-student { flex-wrap: wrap; padding: .9rem; }
    .nutrition-selected-student > .btn { margin-left: 58px; }
    .nutrition-editor > h2 { font-size: 1.25rem; }
    .nutrition-day-editor, .nutrition-meal-editor { padding: .75rem; }
    .nutrition-student-card { min-height: 88px; }
}
.nutrition-day-tabs .btn[class*="nutrition-tone-"][aria-pressed=true] { background: var(--day-color); border-color: var(--day-color); }
:root[data-theme=dark] .nutrition-day-tabs .btn[class*="nutrition-tone-"][aria-pressed=true] { color: #14201f; }
@media(max-width: 600px) {
    /* İki gün seçeneği telefonda da aynı satırda görünür; diğeri aşağıda kaybolmaz. */
    .nutrition-day-choice-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .6rem; }
    .nutrition-day-choice { align-items: flex-start; flex-direction: column; gap: .45rem; padding: .8rem; min-height: 180px; }
    .nutrition-day-choice > input { position: absolute; top: 12px; right: 12px; }
    .nutrition-day-choice strong { font-size: .9rem; }
    .nutrition-day-choice span span { font-size: .75rem; }
    .nutrition-day-choice small { font-size: .7rem; }
}
@media(max-width: 600px) {
    .nutrition-selected-student > div { flex: 1 1 calc(100% - 60px); }
}

/* 8g7 — Beslenme programı: güçlü toplam özeti, öğün kartları ve makro görsel dili. */
.nutrition-macros {
    gap: .7rem;
    padding: 0;
    background: transparent;
}
.nutrition-macros > .nutrition-macro {
    --macro-color: var(--accent);
    --macro-soft: color-mix(in srgb, var(--macro-color) 9%, var(--panel));
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: .7rem;
    padding: .8rem;
    border: 1px solid color-mix(in srgb, var(--macro-color) 18%, var(--border));
    border-radius: 14px;
    background: linear-gradient(145deg, var(--macro-soft), var(--panel));
    box-shadow: 0 5px 18px color-mix(in srgb, var(--macro-color) 7%, transparent);
}
.nutrition-macro-calories { --macro-color: #ef762f !important; }
.nutrition-macro-protein { --macro-color: #d74462 !important; }
.nutrition-macro-carbs { --macro-color: #b98208 !important; }
.nutrition-macro-sugar { --macro-color: #9a55d7 !important; }
.nutrition-macro-fat { --macro-color: #15936f !important; }
.nutrition-macro-icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: color-mix(in srgb, var(--macro-color) 14%, var(--panel));
    font-size: 1.15rem;
    line-height: 1;
}
.nutrition-macro-copy { display: flex; flex-direction: column; gap: .08rem; min-width: 0; }
.nutrition-macros .nutrition-macro-copy small { color: color-mix(in srgb, var(--macro-color) 72%, var(--text)); font-size: .7rem; font-weight: 750; }
.nutrition-macro-copy strong { color: var(--text); font-size: 1rem; line-height: 1.15; letter-spacing: -.015em; white-space: nowrap; }
.nutrition-macros.is-compact { gap: .4rem; }
.nutrition-macros.is-compact > .nutrition-macro { gap: .4rem; padding: .48rem; border-radius: 11px; box-shadow: none; }
.nutrition-macros.is-compact .nutrition-macro-icon { flex-basis: 28px; width: 28px; height: 28px; border-radius: 9px; font-size: .84rem; }
.nutrition-macros.is-compact .nutrition-macro-copy small { font-size: .58rem; }
.nutrition-macros.is-compact .nutrition-macro-copy strong { font-size: .74rem; }

/* 8h23 — Beslenme programı görünümü: tek vurgu rengi, düz yüzey, tablo hizalı besin listesi. */
.nutrition-program {
    padding: 0;
    margin: 0 0 1.25rem;
    overflow: visible;
    border-radius: 12px;
    border-color: var(--border);
    box-shadow: none;
}
.nutrition-program > summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 1rem;
    min-height: 60px;
    padding: 1rem;
    list-style: none;
    border-radius: 12px;
    background: var(--panel);
}
.nutrition-program[open] > summary { border-radius: 12px 12px 0 0; border-bottom: 1px solid var(--border); }
.nutrition-program > summary::-webkit-details-marker { display: none; }
.nutrition-program > summary::after, .nutrition-program[open] > summary::after { content: none; }
.nutrition-program > summary:hover { background: color-mix(in srgb, var(--accent) 4%, var(--panel)); }
.nutrition-program-summary-main { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.nutrition-program-summary-main strong { overflow-wrap: anywhere; font-size: 1.05rem; font-weight: 600; line-height: 1.3; }
.nutrition-program-updated { display: flex; flex-wrap: wrap; gap: .15rem .6rem; color: var(--muted); font-size: .78rem; }
.nutrition-program-state { color: var(--accent); font-weight: 600; }
.nutrition-program-chevron { color: var(--muted); font-size: 1.25rem; transition: transform .25s var(--ease-out); }
.nutrition-program[open] .nutrition-program-chevron { transform: rotate(180deg); }
.nutrition-program-body { display: grid; gap: 1rem; padding: 1rem; border-radius: 0 0 12px 12px; background: var(--panel); }
.nutrition-program > .btn { margin: 0 1rem 1rem; }

/* Gün seçimi: ikonsuz segment kontrol, tek vurgu rengi. */
.nutrition-program-days {
    width: fit-content;
    max-width: 100%;
    gap: .25rem;
    padding: .25rem;
    margin: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--panel-2);
}
.nutrition-day-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: .5rem 1rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    font-size: .88rem;
    font-weight: 500;
}
.nutrition-day-tab[aria-pressed=true] { background: var(--action-primary); color: #fff; font-weight: 600; }
.nutrition-day-tab:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }
.nutrition-day-view { display: grid; gap: 1rem; }
.nutrition-day-view p { white-space: pre-wrap; overflow-wrap: anywhere; }

/* Günlük toplam: kart değil, sayfanın üstüne yapışan sayı şeridi. */
.nutrition-day-summary {
    position: sticky;
    top: var(--nutrition-sticky-top, 0px);
    z-index: 3;
    display: grid;
    gap: .35rem;
    padding: .75rem 0 .65rem;
    border-bottom: 1px solid var(--border);
    background: var(--panel);
}
.nutrition-totals { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }
.nutrition-total { display: flex; flex-direction: column; min-width: 0; }
.nutrition-total strong { font-size: 1.15rem; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.nutrition-total.is-lead strong { font-size: 1.5rem; }
.nutrition-total small { color: var(--muted); font-size: .72rem; font-weight: 500; }
.nutrition-day-meta { margin: 0; color: var(--muted); font-size: .78rem; }

/* Koç notu: gri etiket değil, kendi bloğu. */
.nutrition-coach-note {
    padding: .7rem .9rem;
    border-left: 3px solid var(--accent);
    border-radius: 0 8px 8px 0;
    background: color-mix(in srgb, var(--accent) 6%, var(--panel));
}
.nutrition-coach-note small { display: block; margin-bottom: .2rem; color: var(--accent); font-size: .72rem; font-weight: 600; }
.nutrition-coach-note p { margin: 0; font-size: .86rem; }

/* Öğün: iç içe kart yok; başlık + toplam + besin tablosu. */
.nutrition-meal-view-list { display: grid; gap: 1.25rem; }
.nutrition-meal-view { padding: 0; overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.nutrition-meal-view-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .35rem 1rem;
    padding: 0 0 .5rem;
    border: 0;
    background: transparent;
}
.nutrition-meal-title { display: flex; align-items: baseline; gap: .55rem; min-width: 0; }
.nutrition-meal-index {
    flex: 0 0 auto;
    display: inline;
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}
.nutrition-meal-title > div { min-width: 0; }
.nutrition-meal-title h4 { margin: 0; overflow-wrap: anywhere; font-size: 1.05rem; font-weight: 600; }
.nutrition-meal-title p { margin: .1rem 0 0; color: var(--muted); font-size: .76rem; }
.nutrition-meal-total {
    display: flex;
    flex-wrap: wrap;
    gap: .15rem .55rem;
    margin: 0;
    font-size: .84rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.nutrition-total-part { white-space: nowrap; }
.nutrition-meal-total .nutrition-total-part + .nutrition-total-part::before { content: '·'; margin-right: .5rem; color: var(--muted); font-weight: 400; }
.nutrition-macro-key { margin-right: .25rem; color: var(--muted); font-weight: 500; }

/* Besinler: kart yığını değil, sayıları sütun halinde hizalanan tablo. */
.nutrition-food-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.nutrition-food-table th {
    padding: .35rem .5rem .4rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--muted);
    font-size: .7rem;
    font-weight: 500;
    text-align: left;
}
.nutrition-food-table th.nutrition-num { width: 78px; padding-right: 0; padding-left: .5rem; text-align: right; }
.nutrition-food-table td { padding: .6rem .5rem .6rem 0; border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent); vertical-align: top; }
.nutrition-food-table tbody tr:last-child td { border-bottom: 0; }
.nutrition-food-table td.nutrition-food-cell { display: flex; flex-direction: column; gap: .12rem; min-width: 0; overflow-wrap: anywhere; }
.nutrition-food-cell strong { font-size: .9rem; font-weight: 500; }
.nutrition-food-cell small { color: var(--muted); font-size: .76rem; }
.nutrition-food-cell .nutrition-food-note { color: var(--text); }
.nutrition-food-table td.nutrition-num {
    padding-right: 0;
    padding-left: .5rem;
    text-align: right;
    font-size: .84rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.nutrition-food-table td.nutrition-num.is-lead { font-weight: 600; }
.nutrition-food-table td .nutrition-macro-key { display: none; }


/* ── Öğrenci beslenme ekranı (student-area/nutrition) — sıfırdan, bağımsız sınıf kümesi ── */
.nutrition-student-library .content-library-surface-body { padding-left: 1.1rem; }

.snut-program { margin: 0 0 .8rem; border: 1px solid var(--border); border-radius: 16px; overflow: clip; background: var(--panel); }
.snut-program-head { display: flex; justify-content: space-between; align-items: center; gap: .7rem; padding: .85rem 1rem; cursor: pointer; min-height: 44px; }
.snut-program-head::-webkit-details-marker { display: none; }
.snut-program-head:hover { background: var(--panel-2); }
.snut-program-title { display: block; font-size: 1.02rem; font-weight: 600; overflow-wrap: anywhere; }
.snut-program-updated { display: block; margin-top: .15rem; color: var(--muted); font-size: .76rem; }
.snut-program-chevron { color: var(--muted); font-size: 1.2rem; transition: transform .25s var(--ease-out); flex: none; }
.snut-program[open] .snut-program-chevron { transform: rotate(180deg); }
.snut-program-body { display: grid; gap: 1rem; padding: 0 1rem 1rem; border-top: 1px solid var(--border); padding-top: 1rem; }

.snut-day-tabs { display: flex; flex-wrap: wrap; gap: .5rem; max-width: 360px; }
.snut-day-tab { flex: 1 1 0; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: .35rem; padding: .5rem .7rem; border-radius: 999px; border: 1px solid var(--border); background: var(--panel-2); color: var(--muted); font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; min-height: 44px; transition: background .2s var(--ease-out), color .2s var(--ease-out), border-color .2s var(--ease-out); }
.snut-day-tab[aria-pressed="true"] { background: var(--action-primary); border-color: var(--action-primary); color: #fff; }
.snut-day-tab:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }

.snut-day-panel { display: grid; gap: 1.1rem; }
.snut-day-panel[hidden] { display: none; }

.snut-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: .6rem; }
.snut-overview-item { display: flex; align-items: center; gap: .55rem; padding: .65rem .75rem; border-radius: 13px; background: var(--panel-2); }
.snut-overview-icon { font-size: 1.2rem; flex: none; }
.snut-overview-copy { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.snut-overview-label { color: var(--muted); font-size: .68rem; font-weight: 700; }
.snut-overview-value { font-size: 1rem; font-weight: 700; white-space: nowrap; }

.snut-meta-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.snut-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .7rem; border-radius: 999px; border: 1px solid var(--border); background: var(--panel); color: var(--muted); font-size: .76rem; }

.snut-coach-note { display: flex; gap: .6rem; padding: .7rem .85rem; border-radius: 13px; background: color-mix(in srgb, var(--accent) 7%, var(--panel-2)); }
.snut-coach-note small { display: block; color: var(--muted); font-size: .68rem; font-weight: 700; margin-bottom: .1rem; }
.snut-coach-note p { margin: 0; }
.snut-coach-note span { font-size: .88rem; }

.snut-meal-list { display: grid; gap: .85rem; }
.snut-meal { border: 1px solid var(--border); border-radius: 14px; padding: .85rem .95rem; background: var(--panel); }
.snut-meal-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .4rem; }
.snut-meal-index { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: color-mix(in srgb, #15936f 14%, var(--panel-2)); color: #15936f; font-size: 1.1rem; font-weight: 800; }
.snut-meal-title { margin: 0; font-size: .92rem; font-weight: 600; overflow-wrap: anywhere; }
.snut-meal-note { margin: .1rem 0 0; color: var(--muted); font-size: .78rem; }

.snut-grid-wrap { max-width: 540px; margin-right: auto; }
.snut-grid { display: grid; grid-template-columns: minmax(96px, 1fr) 56px 46px 46px 46px 46px; gap: 0 6px; align-items: center; }
.snut-grid-head { padding: .5rem 0 .35rem; border-bottom: 1px solid var(--border); }
.snut-col-head { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.snut-col-icon { font-size: .82rem; }
.snut-col-label { color: var(--muted); font-size: .62rem; font-weight: 700; }
.snut-col-head-quantity { display: flex; align-items: flex-end; justify-content: center; padding-bottom: 2px; color: var(--muted); font-size: .62rem; font-weight: 700; text-align: center; }
.snut-quantity-cell { text-align: center; font-size: .82rem; color: var(--muted); white-space: nowrap; }
.snut-grid-row { min-height: 40px; border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent); }
.snut-grid-row:last-of-type { border-bottom: 0; }
.snut-food-cell { min-width: 0; overflow-wrap: anywhere; padding: .3rem 0; }
.snut-food-name { margin: 0; font-size: .98rem; font-weight: 500; }
.snut-food-meta { margin: 0; color: var(--muted); font-size: .7rem; }
.snut-macro-cell { text-align: center; font-size: .94rem; color: var(--text); font-variant-numeric: tabular-nums; }
.snut-macro-cell.is-lead { font-weight: 600; }
.snut-grid-total { min-height: 38px; margin-top: 2px; border-top: 2px solid var(--border); border-bottom: 0; }
.snut-total-label { color: var(--muted); font-size: .76rem; font-weight: 600; }
.snut-macro-cell.is-total { font-weight: 700; }

@media (max-width: 480px) {
    .snut-grid { grid-template-columns: minmax(70px, 1fr) 46px 40px 40px 40px 40px; gap: 0 4px; }
    .snut-food-name { font-size: .94rem; }
    .snut-macro-cell { font-size: .9rem; }
    .snut-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .snut-day-tabs { max-width: none; }
    .snut-day-tab { font-size: .76rem; padding: .5rem .6rem; }
}

.nutrition-comparison > section { padding: .8rem; border-radius: 15px; box-shadow: 0 7px 22px rgba(20,31,60,.045); }
.nutrition-comparison > section:only-child { grid-column: 1 / -1; }
.nutrition-comparison > section:only-child .nutrition-macros { grid-template-columns: repeat(4,minmax(0,1fr)); }
.nutrition-comparison-head { display: flex; align-items: center; justify-content: space-between; gap: .7rem; margin-bottom: .55rem; }
.nutrition-comparison-head > span { display: flex; align-items: center; gap: .38rem; color: var(--day-color); }
.nutrition-comparison-head small { color: var(--muted); font-size: .62rem; font-weight: 800; letter-spacing: .05em; }
.nutrition-comparison > section > strong { margin: 0; }
.nutrition-meal-editor-total { margin-top: .8rem; padding-top: .8rem; border-top: 1px dashed color-mix(in srgb, var(--day-color) 28%, var(--border)); }
.nutrition-row-preview .nutrition-macros { margin-top: .15rem; }
.nutrition-program-dialog { width: min(980px, calc(100vw - 24px)); }

:root[data-theme=dark] .nutrition-macros > .nutrition-macro { background: color-mix(in srgb, var(--macro-soft, var(--panel)) 45%, var(--panel)); }
:root[data-theme=dark] .nutrition-program { box-shadow: none; }

@media(max-width: 860px) {
    /* Sticky gün şeridi mobil üst barın altına oturur. */
    .nutrition-day-summary { --nutrition-sticky-top: 58px; }
}
@media(max-width: 700px) {
    .nutrition-program > summary { grid-template-columns: minmax(0, 1fr) auto; gap: .6rem; padding: .85rem; }
    .nutrition-program-summary-main { grid-column: 1; grid-row: 1; }
    .nutrition-program-chevron { grid-column: 2; grid-row: 1; }
    .nutrition-program-actions { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
    .nutrition-program-body { padding: .85rem; }
    .nutrition-program > .btn { margin: 0 .85rem .85rem; }
    .nutrition-program-days { width: 100%; }
    .nutrition-day-tab { flex: 1; padding: .5rem .55rem; }
    .nutrition-comparison > section:only-child .nutrition-macros { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width: 560px) {
    /* Besin tablosu yatay kaymaz: ad + kalori üstte, makrolar altta üç sütun. */
    .nutrition-food-table, .nutrition-food-table thead, .nutrition-food-table tbody, .nutrition-food-table tr, .nutrition-food-table td { display: block; }
    .nutrition-food-table thead { display: none; }
    .nutrition-food-table tbody tr {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: .2rem .5rem;
        padding: .65rem 0;
        border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
    }
    .nutrition-food-table tbody tr:last-child { border-bottom: 0; }
    .nutrition-food-table td { padding: 0; border: 0; }
    .nutrition-food-table td.nutrition-food-cell { display: flex; grid-column: 1 / 3; grid-row: 1; }
    .nutrition-food-table td.nutrition-num { padding-left: 0; text-align: left; }
    .nutrition-food-table td.nutrition-num.is-lead { grid-column: 3; grid-row: 1; text-align: right; }
    .nutrition-food-table td .nutrition-macro-key { display: inline; }
    .nutrition-totals { gap: .4rem 1.25rem; }
    .nutrition-total.is-lead strong { font-size: 1.35rem; }
}
@media(max-width: 480px) {
    .nutrition-program > summary { padding: .75rem; }
    .nutrition-program-body { padding: .75rem; }
    .nutrition-meal-title h4 { font-size: 1rem; }
    .nutrition-comparison { grid-template-columns: minmax(0, 1fr); }
    .nutrition-comparison .nutrition-macros { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

/* 8g8 — Ortak besin kütüphanesi: taşmasız değer kartları ve moderasyon durumu. */
.nutrition-library-hero {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
    padding: 1rem 1.1rem;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border));
    border-radius: 18px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, var(--panel)), var(--panel));
}
.nutrition-library-symbol {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: color-mix(in srgb, var(--accent) 14%, var(--panel));
    font-size: 1.4rem;
}
.nutrition-library-hero > div { min-width: 0; }
.nutrition-library-hero strong { font-size: .95rem; }
.nutrition-library-hero p { margin: .2rem 0 0; color: var(--muted); font-size: .78rem; overflow-wrap: anywhere; }
.nutrition-food-card {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;
}
.nutrition-food-title > div { min-width: 0; }
.nutrition-food-title h3 { margin: .2rem 0 0; line-height: 1.25; }
.nutrition-food-title > .status { flex: 0 0 auto; max-width: 46%; text-align: center; white-space: normal; }
.nutrition-food-category { color: var(--accent); font-size: .64rem; font-weight: 850; letter-spacing: .055em; overflow-wrap: anywhere; }
.nutrition-food-meta { display: flex; flex-wrap: wrap; gap: .45rem; }
.nutrition-food-meta > span {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    min-width: 0;
    padding: .38rem .55rem;
    border-radius: 999px;
    background: var(--panel-2);
    color: var(--muted);
    font-size: .68rem;
}
/* Kart 300–500px aralığında dört/beş tek satır değer sıkışıyordu. Kalori
   tam satır, diğer besin değerleri 2×2 dizilerek her kart kendi alanında kalır. */
.nutrition-food-card > .nutrition-macros { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
.nutrition-food-card > .nutrition-macros .nutrition-macro-calories { grid-column: 1 / -1; }
.nutrition-food-card > .nutrition-macros > .nutrition-macro { min-width: 0; overflow: hidden; }
.nutrition-food-card > .nutrition-macros .nutrition-macro-copy { max-width: 100%; }
.nutrition-food-card > .nutrition-macros .nutrition-macro-copy strong { max-width: 100%; white-space: normal; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.nutrition-food-notes { margin: 0; overflow-wrap: anywhere; }
.nutrition-food-card .nutrition-actions, .nutrition-community-signature { margin-top: auto; }
.nutrition-community-signature { padding-top: .65rem; border-top: 1px dashed var(--border); color: var(--muted); font-size: .67rem; }
.nutrition-approval-note {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    margin: 0;
    padding: .8rem;
    border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--border));
    border-radius: 13px;
    background: color-mix(in srgb, var(--accent) 7%, var(--panel));
    color: var(--muted);
    font-size: .78rem;
    line-height: 1.45;
}
.nutrition-food-values { grid-template-columns: repeat(auto-fit, minmax(105px, 1fr)); }
@media(max-width: 480px) {
    .nutrition-library-hero { align-items: flex-start; padding: .85rem; }
    .nutrition-library-symbol { flex-basis: 42px; width: 42px; height: 42px; border-radius: 13px; }
    .nutrition-food-title { flex-direction: column; }
    .nutrition-food-title > .status { max-width: 100%; }
    .nutrition-food-values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 8g9 — Türkçe aramalı besin seçici ve kart başlığında program işlemleri. */
.nutrition-food-combobox { position: relative; min-width: 0; }
.nutrition-food-search-wrap { position: relative; min-width: 0; }
.nutrition-food-search-wrap > span {
    position: absolute;
    inset-inline-start: .8rem;
    top: 50%;
    z-index: 1;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 1.15rem;
    pointer-events: none;
}
.nutrition-food-search-wrap input {
    min-height: 46px;
    padding-inline-start: 2.35rem;
    border-color: color-mix(in srgb, var(--accent) 24%, var(--border));
    background: var(--input-bg);
}
.nutrition-food-search-wrap input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}
.nutrition-food-options {
    position: absolute;
    top: calc(100% - .9rem);
    left: 0;
    right: 0;
    z-index: 80;
    display: grid;
    max-height: min(320px, 48vh);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: .4rem;
    border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
    border-radius: 14px;
    background: var(--panel);
    box-shadow: 0 18px 42px rgba(20, 31, 60, .2);
}
.nutrition-food-options[hidden] { display: none; }
.nutrition-food-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .65rem;
    width: 100%;
    min-height: 58px;
    padding: .55rem .65rem;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--text);
    text-align: start;
    cursor: pointer;
    font: inherit;
}
.nutrition-food-option:hover, .nutrition-food-option.is-active {
    background: color-mix(in srgb, var(--accent) 9%, var(--panel));
    outline: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}
.nutrition-food-option-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: color-mix(in srgb, var(--accent) 10%, var(--panel-2));
}
.nutrition-food-option-copy { display: flex; flex-direction: column; gap: .16rem; min-width: 0; }
.nutrition-food-option-copy strong, .nutrition-food-option-copy small { overflow-wrap: anywhere; }
.nutrition-food-option-copy strong { font-size: .82rem; }
.nutrition-food-option-copy small { color: var(--muted); font-size: .66rem; line-height: 1.35; }
.nutrition-food-option-macro { color: #ef762f; font-size: .7rem; font-weight: 800; white-space: nowrap; }
.nutrition-food-option-empty { margin: 0; padding: 1rem; color: var(--muted); text-align: center; font-size: .78rem; }
.nutrition-food-picker-status { display: block; min-height: 1em; margin-top: .25rem; font-size: .64rem; overflow-wrap: anywhere; }

.nutrition-editor-host { min-width: 0; scroll-margin-top: 1rem; }
.nutrition-editor-titlebar { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.nutrition-editor-titlebar > div { min-width: 0; }
.nutrition-editor-titlebar h2 { margin: .2rem 0 .7rem; }
.nutrition-cancel-edit { display: inline-flex; align-items: center; gap: .4rem; flex: 0 0 auto; }
.nutrition-existing-programs { display: grid; gap: .85rem; padding: clamp(1rem, 3vw, 1.5rem); margin-bottom: 1rem; }
.nutrition-existing-heading { display: flex; align-items: center; gap: .8rem; }
.nutrition-existing-heading > div { min-width: 0; }
.nutrition-existing-heading small { color: var(--accent); font-size: .64rem; font-weight: 850; letter-spacing: .08em; }
.nutrition-existing-heading h2 { margin: .15rem 0 0; font-size: 1.2rem; }
.nutrition-existing-icon { flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: color-mix(in srgb, var(--accent) 11%, var(--panel)); font-size: 1.2rem; }
.nutrition-existing-programs > .nutrition-program { margin: 0; }
.nutrition-program-actions { display: inline-flex; align-items: center; justify-content: flex-end; gap: .4rem; min-width: 0; }
.nutrition-program-action { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; white-space: nowrap; }
@media(max-width: 600px) {
    .nutrition-food-row > .nutrition-food-combobox { grid-column: 1 / -1; }
    .nutrition-food-option { grid-template-columns: auto minmax(0, 1fr); }
    .nutrition-food-option-macro { grid-column: 2; }
    .nutrition-editor-titlebar { flex-direction: column; }
    .nutrition-cancel-edit { width: 100%; min-height: 44px; }
    .nutrition-program-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
    .nutrition-program-action { min-height: 44px; white-space: normal; }
}

/* 8gg — Öğrenci programlarında özet-önce akış, kapalı çalışma adımları ve yoğun bilgi düzeni. */
.nutrition-student-avatar {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: block;
    border: 2px solid color-mix(in srgb, var(--accent) 22%, var(--border));
    border-radius: 14px;
    object-fit: cover;
    background: var(--panel-2);
}
.nutrition-workflow-disclosure {
    margin: 0 0 .7rem;
    padding: 0;
    overflow: clip;
    border-color: color-mix(in srgb, var(--accent) 18%, var(--border));
}
.nutrition-workflow-disclosure > summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .7rem;
    min-height: 66px;
    padding: .65rem .85rem;
    cursor: pointer;
    list-style: none;
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 5%, var(--panel)), var(--panel));
}
.nutrition-workflow-disclosure > summary::-webkit-details-marker { display: none; }
.nutrition-workflow-disclosure > summary:hover { background: color-mix(in srgb, var(--accent) 8%, var(--panel)); }
.nutrition-workflow-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: color-mix(in srgb, var(--accent) 11%, var(--panel-2));
    color: var(--accent);
    font-size: 1.05rem;
}
.nutrition-workflow-copy { display: flex; flex-direction: column; min-width: 0; }
.nutrition-workflow-copy small { color: var(--accent); font-size: .6rem; font-weight: 850; letter-spacing: .08em; }
.nutrition-workflow-copy strong { font-size: .95rem; overflow-wrap: anywhere; }
.nutrition-workflow-copy > span { color: var(--muted); font-size: .7rem; overflow-wrap: anywhere; }
.nutrition-workflow-chevron { color: var(--muted); font-size: 1.25rem; transition: transform .2s ease; }
.nutrition-workflow-disclosure[open] .nutrition-workflow-chevron { transform: rotate(180deg); }
.nutrition-workflow-body { border-top: 1px solid var(--border); }
.nutrition-workflow-body.nutrition-template-picker { margin: 0; padding: .75rem; }
.nutrition-workflow-body > .nutrition-editor { margin: 0; border: 0; border-radius: 0; box-shadow: none; }

.nutrition-context { padding: .75rem; }
.nutrition-context > h3 { margin: 0 0 .15rem; }
.nutrition-context > p { margin: 0 0 .5rem; }
.nutrition-context > h4 { margin: .65rem 0 .4rem; }
.nutrition-context summary { padding: .5rem 0; }
.nutrition-measures { gap: .35rem; }
.nutrition-metric {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: .38rem;
    padding: .4rem .45rem;
    border-radius: 9px;
}
.nutrition-metric-icon {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: color-mix(in srgb, var(--accent) 9%, var(--panel));
    font-size: .82rem;
}
.nutrition-metric-copy { display: flex; flex-direction: column; gap: .02rem; min-width: 0; }
.nutrition-metric-copy small { line-height: 1.18; }
.nutrition-metric-copy strong { line-height: 1.2; }


@media(max-width: 600px) {
    .nutrition-workflow-copy > span { display: none; }
    .nutrition-workflow-disclosure > summary { min-height: 60px; padding: .55rem .65rem; }
    .nutrition-selected-student > .btn { margin-left: 0; }
}

/* 8gi — Antrenman Faz 0: sıralanabilir program editörü ve tam ekran canlı seans. */
.workout-prototype-hero {
    position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
    gap: 1rem; margin: 0 0 1rem; padding: clamp(1rem, 3vw, 1.5rem); overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border)); border-radius: 22px;
    background: radial-gradient(circle at 88% 15%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 36%),
        linear-gradient(135deg, color-mix(in srgb, var(--accent) 7%, var(--panel)), var(--panel));
    box-shadow: var(--shadow);
}
.workout-prototype-hero h2 { margin: .12rem 0 .2rem; font-size: clamp(1.3rem, 2.2vw, 1.85rem); }
.workout-prototype-hero p { margin: 0; color: var(--muted); max-width: 66ch; }
.workout-prototype-mark, .workout-section-icon {
    display: grid; place-items: center; flex: 0 0 auto; width: 54px; height: 54px; border-radius: 17px;
    color: white; font-size: 1.4rem; background: linear-gradient(145deg, var(--accent), color-mix(in srgb, var(--accent) 56%, #6d28d9));
    box-shadow: 0 12px 25px color-mix(in srgb, var(--accent) 22%, transparent);
}
.workout-pilot-facts { display: grid; grid-template-columns: repeat(3, minmax(72px, 1fr)); gap: .45rem; }
.workout-pilot-facts > span { display: grid; place-items: center; min-height: 68px; padding: .5rem; border: 1px solid var(--border); border-radius: 14px; background: color-mix(in srgb, var(--panel) 84%, transparent); }
.workout-pilot-facts strong { font-size: 1.05rem; }
.workout-pilot-facts small { color: var(--muted); font-size: .64rem; text-align: center; }
.workout-phase-chip { justify-self: end; padding: .35rem .62rem; border-radius: 99px; color: #067647; background: #dcfae6; font-size: .68rem; font-weight: 800; white-space: nowrap; }
.workout-editor-card, .workout-assignment-preview {
    display: grid; gap: .9rem; margin: 0 0 1rem; padding: clamp(.85rem, 2vw, 1.2rem); border: 1px solid var(--border);
    border-radius: 22px; background: var(--panel); box-shadow: var(--shadow);
}
.workout-section-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .75rem; }
.workout-section-head h3 { margin: .1rem 0; }
.workout-section-head p { margin: 0; }
.workout-section-icon { width: 44px; height: 44px; border-radius: 14px; font-size: 1.05rem; }
.workout-section-icon.is-purple { background: linear-gradient(145deg, #7c3aed, #4f46e5); }
.workout-section-icon.is-blue { background: linear-gradient(145deg, #0284c7, #2563eb); }
.workout-name-field { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .75rem; padding: .65rem .75rem; border: 1px solid var(--border); border-radius: 14px; background: var(--panel-2); }
.workout-name-field > span { color: var(--muted); font-size: .72rem; font-weight: 750; }
.workout-name-field input { width: 100%; min-width: 0; border: 0; background: transparent; font-size: 1rem; font-weight: 800; box-shadow: none; }
.workout-program-list { display: grid; gap: .52rem; }
.workout-program-row {
    display: grid; grid-template-columns: auto 74px minmax(0, 1fr) auto auto; align-items: center; gap: .7rem;
    min-width: 0; padding: .6rem; border: 1px solid var(--border); border-radius: 16px; background: var(--panel-2);
    transition: transform .18s ease, border-color .18s ease, opacity .18s ease, box-shadow .18s ease;
}
.workout-program-row:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); box-shadow: 0 10px 24px color-mix(in srgb, #0f172a 7%, transparent); }
.workout-program-row.is-dragging, .workout-live-exercise.is-dragging { opacity: .64; transform: scale(.99); border-color: var(--accent); }
.workout-drag-handle {
    width: 40px; min-height: 44px; border: 0; border-radius: 11px; color: var(--muted); background: transparent;
    font-size: 1.35rem; cursor: grab; touch-action: none;
}
.workout-drag-handle:active { cursor: grabbing; color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, transparent); }
.workout-exercise-media { width: 74px; height: 58px; object-fit: contain; border-radius: 11px; background: #fff; }
.workout-muscle-map { position: relative; width: 48px; height: 58px; justify-self: center; }
.workout-muscle-map span { position: absolute; display: block; border: 1px solid #a5afbe; background: #f8fafc; }
.workout-muscle-head { top: 1px; left: 18px; width: 13px; height: 13px; border-radius: 50%; }
.workout-muscle-body { top: 15px; left: 14px; width: 21px; height: 27px; border-radius: 8px 8px 5px 5px; }
.workout-muscle-limb { top: 18px; width: 8px; height: 37px; border-radius: 6px; transform-origin: top; }
.workout-muscle-limb.left { left: 6px; transform: rotate(8deg); }
.workout-muscle-limb.right { right: 6px; transform: rotate(-8deg); }
.workout-muscle-map.is-chest .workout-muscle-body, .workout-muscle-map.is-back .workout-muscle-body,
.workout-muscle-map.is-core .workout-muscle-body { background: linear-gradient(#ef4444 0 46%, #fff 46%); border-color: #dc2626; }
.workout-muscle-map.is-shoulders .workout-muscle-limb, .workout-muscle-map.is-arms .workout-muscle-limb { background: linear-gradient(#ef4444 0 50%, #fff 50%); border-color: #dc2626; }
.workout-muscle-map.is-legs .workout-muscle-limb, .workout-muscle-map.is-cardio .workout-muscle-limb { background: linear-gradient(#fff 0 38%, #ef4444 38%); border-color: #dc2626; }
.workout-program-row-copy { display: flex; flex-direction: column; min-width: 0; }
.workout-program-row-copy strong { overflow-wrap: anywhere; }
.workout-program-row-copy small { color: var(--muted); font-size: .68rem; overflow-wrap: anywhere; }
.workout-row-kicker { color: var(--accent); font-size: .58rem; font-weight: 850; letter-spacing: .06em; }
.workout-set-stepper { display: grid; grid-template-columns: 32px 24px 32px; align-items: center; gap: .18rem; padding: .24rem; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); }
.workout-set-stepper .workout-icon-btn { min-height: 32px; width: 32px; }
.workout-set-stepper strong { text-align: center; }
.workout-set-stepper small { grid-column: 1 / -1; color: var(--muted); font-size: .58rem; text-align: center; }
.workout-row-actions { display: flex; align-items: center; gap: .18rem; }
.workout-icon-btn { display: inline-grid; place-items: center; width: 40px; min-height: 40px; border: 0; border-radius: 11px; color: var(--muted); background: transparent; cursor: pointer; }
.workout-icon-btn:hover { color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, transparent); }
.workout-icon-btn.is-danger:hover { color: var(--action-danger); background: color-mix(in srgb, var(--action-danger) 10%, var(--panel)); }
.workout-editor-actions { display: flex; justify-content: space-between; gap: .65rem; padding-top: .25rem; }
.workout-editor-actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: .42rem; min-height: 46px; }
.workout-start-btn { background: var(--action-primary); border-color: var(--action-primary); }
.workout-start-btn:hover { background: var(--action-primary-hover); border-color: var(--action-primary-hover); }
.workout-resume-banner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .75rem; width: 100%; margin: 0 0 1rem; padding: .8rem 1rem; border: 1px solid #86efac; border-radius: 16px; color: #14532d; background: #ecfdf3; text-align: left; cursor: pointer; }
.workout-resume-banner > span:nth-child(2) { display: flex; flex-direction: column; }
.workout-resume-banner small { color: #15803d; }
.workout-resume-pulse { width: 12px; height: 12px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.45); animation: workoutPulse 1.8s infinite; }
@keyframes workoutPulse { 70% { box-shadow: 0 0 0 9px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.workout-assignment-compare { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: .65rem; }
.workout-assignment-compare > div { display: flex; flex-direction: column; min-width: 0; padding: .7rem; border: 1px solid var(--border); border-radius: 14px; background: var(--panel-2); }
.workout-assignment-compare small { color: var(--accent); font-weight: 800; }
.workout-assignment-compare span { color: var(--muted); font-size: .7rem; }
.workout-assignment-new { gap: .18rem; }
.workout-assignment-exercises { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .3rem; margin-top: .45rem; }
.workout-assignment-exercises > div { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .35rem; min-width: 0; padding: .35rem; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); }
.workout-assignment-exercises .workout-exercise-icon { width: 27px; height: 27px; border-radius: 8px; font-size: .72rem; }
.workout-assignment-exercises span { display: flex; flex-direction: column; min-width: 0; }
.workout-assignment-exercises strong { font-size: .68rem; overflow-wrap: anywhere; }
.workout-assignment-exercises small { color: var(--muted); font-size: .58rem; }
.workout-assignment-arrow { color: var(--accent); font-size: 1.35rem; }
.workout-assignment-actions, .workout-modal-actions { display: flex; justify-content: flex-end; gap: .55rem; }
.workout-pilot-note { display: flex; gap: .65rem; margin-bottom: 1rem; padding: .75rem; border: 1px dashed color-mix(in srgb, var(--accent) 40%, var(--border)); border-radius: 14px; color: var(--muted); background: color-mix(in srgb, var(--accent) 4%, var(--panel)); }
.workout-pilot-note > span { display: grid; place-items: center; flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; color: white; background: var(--accent); font-weight: 900; }
.workout-pilot-note p { margin: .25rem 0 0; font-size: .75rem; }

.workout-modal-backdrop { position: fixed; inset: 0; z-index: 1300; display: grid; place-items: center; padding: 1rem; background: rgba(5, 10, 25, .66); backdrop-filter: blur(8px); }
.workout-modal { display: grid; gap: .75rem; width: min(720px, 100%); max-height: min(820px, calc(100dvh - 2rem)); padding: 1rem; overflow: auto; border: 1px solid var(--border); border-radius: 22px; background: var(--panel); box-shadow: 0 28px 80px rgba(0,0,0,.28); }
.workout-modal > header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.workout-modal h3 { margin: .12rem 0; }
.workout-picker-tools { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, .42fr); gap: .5rem; }
.workout-picker-results { display: grid; gap: .4rem; min-height: 120px; overflow: auto; }
.workout-picker-results.is-empty { align-content: start; }
.workout-picker-option { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .65rem; width: 100%; padding: .6rem; border: 1px solid var(--border); border-radius: 13px; color: var(--text); background: var(--panel-2); text-align: left; cursor: pointer; }
.workout-picker-option:hover, .workout-picker-option:focus-visible { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--panel)); }
.workout-exercise-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: #dc2626; background: #fee2e2; }
.workout-picker-option-copy { display: flex; flex-direction: column; min-width: 0; }
.workout-picker-option-copy small { color: var(--muted); font-size: .68rem; }
.workout-picker-add { color: var(--accent); font-size: 1.35rem; }
.workout-empty-compact { display: grid; place-items: center; min-height: 110px; color: var(--muted); border: 1px dashed var(--border); border-radius: 13px; }

body.workout-live-open { overflow: hidden; }
.workout-live-shell { position: fixed; inset: 0; z-index: 1200; overflow: auto; background: #f4f7fb; color: #111827; }
.workout-live-frame { width: min(860px, 100%); min-height: 100dvh; margin: 0 auto; background: #fff; box-shadow: 0 0 50px rgba(15,23,42,.12); }
.workout-live-topbar { position: sticky; top: 0; z-index: 4; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: .7rem; min-height: 74px; padding: .65rem clamp(.7rem, 3vw, 1.15rem); border-bottom: 1px solid #e5e7eb; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); }
.workout-live-topbar h2 { margin: .05rem 0 0; font-size: 1rem; }
.workout-live-collapse { width: 42px; height: 42px; border: 0; border-radius: 12px; background: #f1f5f9; font-size: 1.3rem; }
.workout-sync-state { padding: .32rem .55rem; border-radius: 99px; color: #047857; background: #d1fae5; font-size: .62rem; font-weight: 800; white-space: nowrap; }
.workout-live-metrics { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid #e5e7eb; }
.workout-live-metrics > div { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .12rem .45rem; padding: 1rem; }
.workout-live-metrics > div + div { border-left: 1px solid #eef2f7; }
.workout-live-metrics > div > span { grid-row: 1 / 3; color: #0284c7; font-size: 1.25rem; }
.workout-live-metrics small { color: #6b7280; }
.workout-live-metrics strong { font-size: 1.15rem; }
.workout-live-list { display: grid; gap: .7rem; padding: .75rem; }
.workout-live-exercise { border: 1px solid #e5e7eb; border-radius: 18px; overflow: hidden; background: #fff; }
.workout-live-exercise > header { display: grid; grid-template-columns: auto 96px minmax(0, 1fr) auto; align-items: center; gap: .7rem; padding: .7rem; }
.workout-live-exercise > header .workout-media-preview { width: 96px; max-width: 96px; }
.workout-live-exercise > header .workout-program-thumb { display: block; width: 94px; height: 76px; object-fit: contain; }
.workout-live-exercise-copy { min-width: 0; }
.workout-live-exercise > header h3 { margin: .06rem 0; color: #0284c7; font-size: 1rem; }
.workout-live-exercise > header small { color: #64748b; font-size: .58rem; font-weight: 800; }
.workout-live-exercise > header div > span { color: #64748b; font-size: .66rem; }
.workout-pr-strip { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr) auto; align-items: center; gap: .55rem; margin: 0 .65rem .55rem; padding: .55rem .65rem; border: 1px solid #fde68a; border-radius: 13px; background: linear-gradient(135deg, #fffbeb, #fff7ed); }
.workout-pr-trophy { font-size: 1.15rem; }
.workout-pr-strip > span:not(.workout-pr-trophy):not(.workout-pr-focus) { display: flex; flex-direction: column; min-width: 0; }
.workout-pr-strip small { color: #92400e; font-size: .58rem; }
.workout-pr-strip strong { color: #78350f; font-size: .82rem; }
.workout-pr-focus { padding: .3rem .48rem; border-radius: 99px; color: #9a3412; background: #ffedd5; font-size: .62rem; font-weight: 850; white-space: nowrap; }
.workout-pr-empty { display: flex; align-items: center; gap: .4rem; margin: 0 .65rem .55rem; padding: .45rem .6rem; border: 1px dashed #cbd5e1; border-radius: 12px; color: #64748b; background: #f8fafc; }
.workout-pr-empty small { font-size: .65rem; }
.workout-live-exercise-actions { display: flex; align-items: center; gap: .12rem; }
.workout-live-exercise-actions .btn { min-height: 40px; }
.workout-live-sets { display: grid; }
.workout-live-set { display: grid; grid-template-columns: 38px minmax(86px, .7fr) repeat(2, minmax(76px, .55fr)) 46px; align-items: center; gap: .4rem; min-height: 58px; padding: .4rem .65rem; border-top: 1px solid #eef2f7; }
.workout-live-set.is-complete { background: #ecfdf3; }
.workout-set-number { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #f1f5f9; font-weight: 850; }
.workout-previous { color: #94a3b8; font-size: .68rem; }
.workout-live-input { position: relative; min-width: 0; }
.workout-live-input input { width: 100%; min-width: 0; height: 42px; padding-right: 2rem; border-color: #dbe1e9; background: #fff; font-weight: 800; }
.workout-live-input small { position: absolute; right: .55rem; top: 50%; color: #94a3b8; transform: translateY(-50%); pointer-events: none; }
.workout-complete-set { width: 44px; height: 44px; border: 0; border-radius: 12px; color: #94a3b8; background: #f1f5f9; font-size: 1.3rem; }
.workout-complete-set.is-complete { color: #fff; background: #22c55e; }
.workout-live-set-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; margin: .55rem .65rem .65rem; }
.workout-add-live-set, .workout-remove-live-set { display: flex; align-items: center; justify-content: center; gap: .35rem; width: 100%; min-height: 44px; border: 0; border-radius: 12px; color: #334155; background: #f1f5f9; font-weight: 800; }
.workout-remove-live-set { color: var(--action-danger); background: color-mix(in srgb, var(--action-danger) 8%, #fff); }
.workout-remove-live-set:disabled { color: #94a3b8; background: #f1f5f9; cursor: not-allowed; opacity: .65; }

.workout-finish-modal { width: min(610px, 100%); }
.workout-finish-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .8rem; }
.workout-finish-hero > span { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; color: #fff; background: linear-gradient(145deg, #22c55e, #059669); font-size: 1.5rem; }
.workout-finish-hero h3, .workout-finish-hero p { margin: .1rem 0; }
.workout-finish-hero p { color: var(--muted); font-size: .75rem; }
.workout-finish-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; }
.workout-finish-stats > div { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .05rem .4rem; padding: .65rem; border: 1px solid var(--border); border-radius: 13px; background: var(--panel-2); }
.workout-finish-stats > div > span { grid-row: 1 / 3; color: var(--accent); }
.workout-finish-stats small { color: var(--muted); font-size: .62rem; }
.workout-apply-change, .workout-no-change { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .65rem; padding: .75rem; border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border)); border-radius: 14px; background: color-mix(in srgb, var(--accent) 6%, var(--panel)); }
.workout-apply-change input { width: 22px; height: 22px; accent-color: var(--accent); }
.workout-apply-change > span, .workout-no-change > span:last-child { display: flex; flex-direction: column; }
.workout-apply-change small, .workout-no-change small { color: var(--muted); font-size: .68rem; }

@media(max-width: 1050px) {
    .workout-prototype-hero { grid-template-columns: auto minmax(0, 1fr); }
    .workout-pilot-facts { grid-column: 1 / -1; }
    .workout-program-row { grid-template-columns: auto 58px minmax(0, 1fr) auto; }
    .workout-exercise-media { width: 58px; }
    .workout-row-actions { grid-column: 3 / 5; justify-content: flex-end; }
}
@media(max-width: 680px) {
    .daily-training-metrics { grid-template-columns: minmax(0, 1fr); }
    .workout-prototype-hero { grid-template-columns: 44px minmax(0, 1fr); padding: .85rem; border-radius: 17px; }
    .workout-prototype-mark { width: 44px; height: 44px; border-radius: 14px; }
    .workout-pilot-facts { gap: .3rem; }
    .workout-pilot-facts > span { min-height: 56px; }
    .workout-section-head { grid-template-columns: auto minmax(0, 1fr); }
    .workout-section-head > .workout-phase-chip, .workout-section-head > .status { grid-column: 2; justify-self: start; }
    .workout-name-field { grid-template-columns: 1fr; gap: .25rem; }
    .workout-program-row { grid-template-columns: auto 48px minmax(0, 1fr); gap: .4rem; padding: .48rem; }
    .workout-program-row .workout-exercise-media { width: 48px; height: 46px; }
    .workout-program-row .workout-muscle-map { width: 40px; transform: scale(.85); }
    .workout-set-stepper { grid-column: 2 / 4; justify-self: start; }
    .workout-row-actions { grid-column: 1 / -1; justify-content: flex-end; border-top: 1px solid var(--border); padding-top: .35rem; }
    .workout-editor-actions { display: grid; grid-template-columns: 1fr; }
    .workout-editor-actions .btn { width: 100%; }
    .workout-assignment-compare { grid-template-columns: 1fr; }
    .workout-assignment-arrow { justify-self: center; transform: rotate(90deg); }
    .workout-assignment-actions { display: grid; grid-template-columns: 1fr; }
    .workout-assignment-exercises { grid-template-columns: 1fr; }
    .workout-picker-tools { grid-template-columns: 1fr; }
    .workout-modal-backdrop { align-items: end; padding: .4rem; }
    .workout-modal { max-height: calc(100dvh - .8rem); border-radius: 20px 20px 12px 12px; }
    .workout-live-topbar { grid-template-columns: auto minmax(0, 1fr) auto; min-height: 66px; }
    .workout-sync-state { grid-column: 2; grid-row: 2; justify-self: start; margin-top: -.4rem; }
    .workout-finish-btn { grid-column: 3; grid-row: 1 / 3; min-height: 44px; }
    .workout-live-metrics > div { padding: .7rem .55rem; }
    .workout-live-metrics > div > span { display: none; }
    .workout-live-exercise > header { grid-template-columns: auto 78px minmax(0, 1fr); gap: .45rem; }
    .workout-live-exercise > header .workout-media-preview { width: 78px; max-width: 78px; }
    .workout-live-exercise > header .workout-program-thumb { width: 76px; height: 64px; }
    .workout-live-exercise > header .workout-muscle-map { width: 40px; transform: scale(.82); }
    .workout-live-exercise-actions { grid-column: 2 / 4; justify-content: flex-end; }
    .workout-pr-strip { grid-template-columns: auto 1fr 1fr; gap: .35rem; margin-inline: .45rem; }
    .workout-pr-focus { grid-column: 2 / 4; justify-self: start; }
    .workout-live-set { grid-template-columns: 34px minmax(0, .8fr) minmax(66px, .62fr) minmax(66px, .62fr) 42px; gap: .25rem; padding: .35rem .45rem; }
    .workout-live-set .workout-previous { font-size: .58rem; }
    .workout-live-input input { padding: .45rem 1.6rem .45rem .4rem; }
    .workout-complete-set { width: 40px; height: 40px; }
    .workout-finish-stats { gap: .28rem; }
    .workout-finish-stats > div { display: flex; flex-direction: column; align-items: flex-start; padding: .5rem; }
}
@media(max-width: 390px) {
    .workout-live-list { padding: .45rem; }
    .workout-live-set { grid-template-columns: 30px minmax(0, 1fr) minmax(60px, .7fr) 40px; }
    .workout-live-set .workout-previous { display: none; }
    .workout-live-set .workout-live-input:nth-last-of-type(2) { grid-column: auto; }
    .workout-live-topbar { gap: .38rem; padding: .5rem; }
    .workout-live-topbar h2 { font-size: .86rem; }
    .workout-finish-btn { padding-inline: .65rem; }
}

/* 8gs — Faz 1 admin egzersiz kütüphanesi. */
.admin-workout-pane { display: grid; gap: .85rem; min-width: 0; }
.admin-workout-hero { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: clamp(1rem, 3vw, 1.35rem); border: 1px solid color-mix(in srgb, #7c3aed 24%, var(--border)); border-radius: 22px; background: radial-gradient(circle at 88% 10%, color-mix(in srgb, #7c3aed 18%, transparent), transparent 35%), linear-gradient(135deg, color-mix(in srgb, #7c3aed 7%, var(--panel)), var(--panel)); box-shadow: var(--shadow); }
.admin-workout-hero > div { display: flex; align-items: center; gap: .8rem; min-width: 0; }
.admin-workout-hero h2, .admin-workout-hero p { margin: .1rem 0; }
.admin-workout-hero p { color: var(--muted); }
.admin-workout-hero-icon { display: grid; place-items: center; flex: 0 0 52px; width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(145deg, #7c3aed, #4f46e5); font-size: 1.35rem; box-shadow: 0 12px 25px rgba(99,102,241,.2); }
.admin-workout-groups { display: grid; gap: .65rem; }
.admin-workout-category { overflow: clip; border: 1px solid var(--border); border-radius: 17px; background: var(--panel); }
.admin-workout-category.is-review-queue { border-color: color-mix(in srgb, #f59e0b 34%, var(--border)); box-shadow: 0 10px 26px rgba(245,158,11,.08); }
.admin-workout-category > summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .65rem; min-height: 64px; padding: .65rem .8rem; cursor: pointer; list-style: none; }
.admin-workout-category > summary::-webkit-details-marker { display: none; }
.admin-workout-category > summary > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
.admin-workout-category > summary small { color: var(--muted); }
.admin-workout-category > summary > span:last-child { transition: transform .2s ease; }
.admin-workout-category[open] > summary > span:last-child { transform: rotate(180deg); }
.admin-workout-category-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: #dc2626; background: #fee2e2; }
.admin-workout-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: .85rem; padding: .85rem; border-top: 1px solid var(--border); background: var(--panel-2); }
.admin-workout-card { display: grid; align-content: start; gap: .65rem; min-width: 0; margin: 0; padding: .85rem; transition: opacity .18s ease, transform .18s ease; }
.admin-workout-card.is-reviewed { opacity: 0; transform: translateY(-8px) scale(.98); }
.admin-workout-card-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: .55rem; }
.admin-workout-card-head > div { min-width: 0; }
.admin-workout-card-head small { color: #7c3aed; font-size: .58rem; font-weight: 850; }
.admin-workout-card-head h3 { margin: .1rem 0; font-size: .92rem; overflow-wrap: anywhere; }
.admin-workout-card-head div > span { color: var(--muted); font-size: .65rem; }
.admin-workout-card-visual { position: relative; overflow: hidden; border-radius: 15px; background: #fff; }
.admin-workout-card-figure { display: grid; place-items: center; width: 100%; min-height: 190px; height: auto; border-radius: 15px; background: color-mix(in srgb, #7c3aed 10%, var(--panel)); font-size: 2.3rem; }
.admin-workout-card-figure.is-image { display: block; width: 100%; height: auto; min-height: 0; max-height: none; object-fit: contain; border: 1px solid var(--border); background: #fff; cursor: zoom-in; }
.admin-workout-card-visual .is-animation { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .2s ease; pointer-events: none; }
.admin-workout-card-visual .is-animation[title] { pointer-events: auto; }
.admin-workout-card-visual.has-animation:hover .is-animation, .admin-workout-card-visual.has-animation:focus-within .is-animation { opacity: 1; }
.admin-workout-card-visual.has-animation:hover .is-static, .admin-workout-card-visual.has-animation:focus-within .is-static { opacity: .08; }
.admin-workout-animation-hint { position: absolute; right: .65rem; bottom: .65rem; padding: .3rem .5rem; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; color: #fff; background: rgba(15,23,42,.72); font-size: .62rem; font-weight: 750; pointer-events: none; transition: opacity .2s ease; }
.admin-workout-card-visual.has-animation:hover .admin-workout-animation-hint, .admin-workout-card-visual.has-animation:focus-within .admin-workout-animation-hint { opacity: 0; }
.admin-workout-meta { display: flex; flex-wrap: wrap; gap: .28rem; }
.admin-workout-meta > span { padding: .25rem .4rem; border-radius: 8px; color: var(--muted); background: var(--panel-2); font-size: .61rem; }
.admin-workout-muscle-summary { display: grid; gap: .35rem; min-width: 0; }
.admin-workout-muscle-summary > strong { color: var(--muted); font-size: .62rem; }
.admin-workout-muscle-summary > div { display: flex; flex-wrap: wrap; gap: .3rem; }
.admin-workout-muscle-badge { padding: .28rem .45rem; border: 1px solid color-mix(in srgb, #7c3aed 24%, var(--border)); border-radius: 999px; color: #6d28d9; background: color-mix(in srgb, #7c3aed 9%, var(--panel)); font-size: .62rem; font-weight: 750; line-height: 1.2; }
.admin-workout-muscle-badge.is-secondary { color: var(--muted); border-color: var(--border); background: var(--panel-2); }
.admin-workout-muscle-badge.is-empty { color: var(--muted); border-style: dashed; background: transparent; font-weight: 650; }
.admin-workout-media-readiness { display: flex; align-items: center; gap: .35rem; padding: .4rem .5rem; border-radius: 10px; color: #92400e; background: #fef3c7; font-size: .65rem; font-weight: 750; }
.admin-workout-media-readiness.is-ready { color: #166534; background: #dcfce7; }
.admin-workout-card > p { margin: 0; line-height: 1.4; min-height: 2.8em; }
.admin-workout-modal { width: min(820px, calc(100% - 1rem)); max-height: calc(100dvh - 1rem); overflow: auto; }
.admin-workout-modal-head { display: flex; align-items: center; justify-content: space-between; gap: .7rem; }
.admin-workout-modal-head h3 { margin: .08rem 0; }
.admin-workout-muscles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.admin-workout-muscles > section { display: grid; gap: .35rem; min-width: 0; padding: .65rem; border: 1px solid var(--border); border-radius: 13px; background: var(--panel-2); }
.admin-workout-muscles > section > small { color: var(--muted); }
.admin-workout-muscle-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .3rem; }
.admin-workout-muscle-grid label { display: flex; align-items: center; gap: .35rem; min-width: 0; padding: .3rem; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); font-size: .68rem; }
.admin-workout-muscle-grid input { width: 17px; height: 17px; flex: 0 0 auto; accent-color: var(--accent); }
.admin-workout-media-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.admin-workout-media-section { display: grid; align-content: start; gap: .55rem; min-width: 0; padding: .7rem; border: 1px solid var(--border); border-radius: 15px; background: var(--panel-2); }
.admin-workout-media-section > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.admin-workout-media-section small { color: var(--muted); }
.admin-workout-media-list { display: grid; gap: .45rem; }
.admin-workout-media-item { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: .55rem; padding: .45rem; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); }
.admin-workout-media-preview { position: relative; grid-row: span 2; width: 72px; height: 64px; }
.admin-workout-media-preview > img { width: 72px; height: 64px; object-fit: contain; border-radius: 8px; background: #fff; }
.admin-workout-media-error { position: absolute; inset: 0; display: grid; place-items: center; padding: .2rem; border-radius: 8px; color: var(--danger); background: color-mix(in srgb, var(--danger) 8%, var(--panel)); font-size: .62rem; font-weight: 700; line-height: 1.2; text-align: center; }
.admin-workout-media-error[hidden] { display: none; }
.admin-workout-media-item > div:nth-child(2) { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; min-width: 0; }
.admin-workout-media-item .admin-food-actions { justify-content: flex-start; }
.admin-workout-media-upload { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: .35rem; align-items: center; }
.admin-workout-media-upload input, .admin-workout-media-upload select { min-width: 0; font-size: .68rem; }

@media(max-width: 1100px) { .admin-workout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media(max-width: 700px) {
    .admin-workout-hero { align-items: stretch; flex-direction: column; }
    .admin-workout-hero > .btn { width: 100%; min-height: 44px; }
    .admin-workout-grid { grid-template-columns: 1fr; }
    .admin-workout-muscles { grid-template-columns: 1fr; }
    .admin-workout-media-grid { grid-template-columns: 1fr; }
}
@media(max-width: 430px) {
    .admin-workout-muscle-grid { grid-template-columns: 1fr; }
    .admin-workout-card-head { grid-template-columns: auto minmax(0, 1fr); }
    .admin-workout-card-head > .status { grid-column: 2; justify-self: start; }
    .admin-workout-media-upload { grid-template-columns: 1fr; }
}

/* 8gs — Faz 2 kişisel antrenman programları, sürümler ve kompakt editör. */
.workout-program-loading { min-height: 180px; display: grid; place-items: center; color: var(--muted); }
.workout-programs-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem; margin-bottom: .85rem; padding: clamp(1rem, 3vw, 1.35rem); border: 1px solid color-mix(in srgb, #7c3aed 25%, var(--border)); border-radius: 24px; background: radial-gradient(circle at 90% 15%, color-mix(in srgb, #ef4444 12%, transparent), transparent 30%), radial-gradient(circle at 70% 100%, color-mix(in srgb, #7c3aed 14%, transparent), transparent 35%), linear-gradient(135deg, color-mix(in srgb, #7c3aed 6%, var(--panel)), var(--panel)); box-shadow: var(--shadow); }
.workout-programs-hero-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; color: #fff; background: linear-gradient(145deg, #7c3aed, #4f46e5); font-size: 1.5rem; box-shadow: 0 14px 30px rgba(99,102,241,.25); }
.workout-programs-hero h1, .workout-programs-hero p { margin: .1rem 0; }
.workout-programs-hero h1 { font-size: clamp(1.35rem, 2.4vw, 1.65rem); line-height: 1.18; }
.workout-programs-hero p { max-width: 680px; color: var(--muted); }
.workout-programs-facts { display: grid; grid-template-columns: repeat(2, minmax(90px, 1fr)); gap: .45rem; }
.workout-programs-facts > span { display: flex; flex-direction: column; min-width: 100px; padding: .62rem .75rem; border: 1px solid var(--border); border-radius: 14px; background: color-mix(in srgb, var(--panel) 86%, transparent); }
.workout-programs-facts strong { font-size: 1.05rem; }
.workout-programs-facts small { color: var(--muted); font-size: .64rem; }
.workout-active-program { overflow: hidden; margin-bottom: .65rem; border: 1px solid color-mix(in srgb, #16a34a 34%, var(--border)); border-radius: 22px; background: var(--panel); box-shadow: var(--shadow); }
.workout-active-program > header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .7rem; padding: .9rem 1rem; background: linear-gradient(135deg, color-mix(in srgb, #16a34a 8%, var(--panel)), var(--panel)); }
.workout-active-program h2 { margin: .25rem 0 .1rem; font-size: clamp(1.05rem, 1.8vw, 1.25rem); line-height: 1.22; }
.workout-active-program p { margin: 0; }
.workout-active-mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: #15803d; background: #dcfce7; font-weight: 900; }
.workout-saved-exercises { display: grid; gap: .32rem; padding: .55rem; }
.workout-program-day-list { display: grid; gap: .65rem; }
.workout-program-day-preview { overflow: hidden; border: 1px solid var(--border); border-radius: 15px; background: var(--panel); }
.workout-program-day-preview > header { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .45rem; padding: .55rem .65rem .1rem; }
.workout-program-day-preview > header > strong { overflow-wrap: anywhere; font-size: .84rem; }
.workout-program-day-preview > header > small { grid-column: 2; color: var(--muted); font-size: .62rem; }
.workout-program-day-order { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; color: #6d28d9; background: color-mix(in srgb, #7c3aed 10%, var(--panel)); font-size: .62rem; font-weight: 850; }
.workout-saved-exercise { display: grid; grid-template-columns: 30px 84px minmax(0, 1fr) auto; align-items: center; gap: .55rem; min-width: 0; padding: .5rem .6rem; border: 1px solid var(--border); border-radius: 13px; background: var(--panel-2); }
.workout-saved-order { color: var(--muted); font-size: .65rem; font-weight: 850; }
.workout-program-thumb { width: 84px; height: 66px; object-fit: contain; border-radius: 10px; border: 1px solid var(--border); background: #fff; }
.workout-program-thumb.is-placeholder { display: grid; place-items: center; border: 0; color: #dc2626; background: #fee2e2; }
.workout-saved-exercise > span:nth-child(3) { display: flex; flex-direction: column; min-width: 0; }
.workout-saved-exercise strong { overflow-wrap: anywhere; font-size: .79rem; }
.workout-saved-exercise small { color: var(--muted); font-size: .62rem; }
.workout-saved-exercise > b { padding: .28rem .45rem; border-radius: 8px; color: #6d28d9; background: color-mix(in srgb, #7c3aed 9%, var(--panel)); font-size: .66rem; white-space: nowrap; }
.workout-active-actions { display: flex; justify-content: flex-end; gap: .5rem; padding: .65rem; border-top: 1px solid var(--border); }
.workout-active-actions .btn { display: inline-flex; align-items: center; gap: .35rem; }
.workout-active-days { display: grid; gap: .65rem; padding: .65rem; }
.workout-active-day { overflow: hidden; border: 1px solid color-mix(in srgb, #16a34a 24%, var(--border)); border-radius: 16px; background: var(--panel-2); }
.workout-active-day > header { display: flex; align-items: center; justify-content: space-between; gap: .65rem; padding: .7rem .75rem .15rem; }
.workout-active-day > header > div { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .18rem .45rem; min-width: 0; }
.workout-active-day h3 { margin: 0; overflow-wrap: anywhere; font-size: .95rem; }
.workout-active-day small { grid-column: 2; color: var(--muted); font-size: .64rem; }
.workout-active-day .workout-start-btn { flex: 0 0 auto; }
.workout-single-active-note { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .65rem; margin: 0 .65rem .1rem; padding: .6rem .7rem; border: 1px solid color-mix(in srgb, #3b82f6 24%, var(--border)); border-radius: 13px; color: var(--text); background: color-mix(in srgb, #3b82f6 5%, var(--panel)); }
.workout-single-active-note > span { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; color: #fff; background: #3b82f6; font: 850 .75rem/1 sans-serif; }
.workout-single-active-note p { margin: .1rem 0 0; color: var(--muted); font-size: .7rem; }
.workout-empty-active { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .85rem; margin-bottom: .85rem; padding: 1rem; border: 1px dashed color-mix(in srgb, #7c3aed 45%, var(--border)); border-radius: 20px; background: color-mix(in srgb, #7c3aed 4%, var(--panel)); }
.workout-empty-active-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; color: #7c3aed; background: color-mix(in srgb, #7c3aed 12%, var(--panel)); font-size: 1.3rem; }
.workout-empty-active h2, .workout-empty-active p { margin: .1rem 0; }
.workout-empty-active h2, .workout-pending-assignment h2 { font-size: clamp(1.05rem, 1.8vw, 1.25rem); line-height: 1.22; }
.workout-empty-active p { color: var(--muted); }
.workout-empty-active-actions { display: flex; align-items: center; justify-content: flex-end; gap: .4rem; flex-wrap: wrap; }
.workout-history { overflow: clip; border: 1px solid var(--border); border-radius: 20px; background: var(--panel); }
.workout-history > summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .65rem; min-height: 68px; padding: .65rem .8rem; cursor: pointer; list-style: none; }
.workout-history > summary::-webkit-details-marker { display: none; }
.workout-history > summary > span:nth-child(2) { display: flex; flex-direction: column; }
.workout-history > summary small { color: var(--muted); }
.workout-history > summary > span:last-child { transition: transform .2s ease; }
.workout-history[open] > summary > span:last-child { transform: rotate(180deg); }
.workout-history-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #7c3aed; background: color-mix(in srgb, #7c3aed 10%, var(--panel-2)); font-size: 1.1rem; }
.workout-history-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; padding: .65rem; border-top: 1px solid var(--border); background: var(--panel-2); }
.workout-history-card { display: grid; align-content: start; min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: var(--panel); }
.workout-history-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; padding: .65rem .7rem .35rem; }
.workout-history-card h3 { margin: 0; font-size: .9rem; }
.workout-history-card header span { color: var(--muted); font-size: .62rem; }
.workout-history-card header > div { display: flex; flex-direction: column; min-width: 0; }
.workout-history-card header > b { padding: .22rem .4rem; border-radius: 8px; color: var(--muted); background: var(--panel-2); font-size: .6rem; white-space: nowrap; }
.workout-history-card .workout-saved-exercises { max-height: 194px; overflow: auto; padding-top: .35rem; }
.workout-history-card .workout-saved-exercise { grid-template-columns: 25px 62px minmax(0, 1fr) auto; padding: .4rem .45rem; }
.workout-history-card .workout-program-thumb { width: 62px; height: 50px; }
.workout-history-card > footer { display: flex; justify-content: flex-end; gap: .35rem; margin-top: auto; padding: .55rem; border-top: 1px solid var(--border); }
.workout-history-card .btn { display: inline-flex; align-items: center; gap: .28rem; }
.workout-history-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; min-height: 130px; justify-content: center; color: var(--muted); }
.workout-history-empty > span { font-size: 1.5rem; }
.workout-history-empty small { margin-top: .18rem; text-align: center; }
.workout-session-history { margin-top: .65rem; }
.workout-session-history .workout-history-icon { color: #0284c7; background: color-mix(in srgb, #0ea5e9 11%, var(--panel-2)); }
.workout-session-history-body { display: grid; gap: .45rem; padding: .6rem; border-top: 1px solid var(--border); background: var(--panel-2); }
.workout-session-history-card { display: grid; grid-template-columns: minmax(150px, .8fr) minmax(180px, 1.2fr) minmax(340px, 2fr); align-items: center; gap: .7rem; padding: .58rem .7rem; border: 1px solid var(--border); border-radius: 14px; background: var(--panel); }
.workout-session-history-card { cursor: pointer; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.workout-session-history-card:hover, .workout-session-history-card:focus-visible { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); box-shadow: 0 8px 22px rgba(15,23,42,.08); transform: translateY(-1px); outline: none; }
.workout-history-modal { width: min(960px, 100%); }
.workout-history-modal > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.workout-history-modal > header h2 { margin: .1rem 0; }
.workout-history-modal > header p { margin: .2rem 0 0; }
.workout-session-history-date, .workout-session-history-name { display: flex; flex-direction: column; min-width: 0; }
.workout-session-history-date strong { font-size: .78rem; }
.workout-session-history-date small { color: var(--muted); font-size: .64rem; }
.workout-session-history-name h3 { overflow: hidden; margin: .08rem 0 0; font-size: .88rem; text-overflow: ellipsis; white-space: nowrap; }
.workout-session-history-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .35rem; }
.workout-session-history-stats > span { display: flex; flex-direction: column; min-width: 0; padding: .38rem .45rem; border-radius: 10px; background: var(--panel-2); }
.workout-session-history-stats small { color: var(--muted); font-size: .58rem; }
.workout-session-history-stats strong { font-size: .76rem; }
.workout-session-detail-modal { width: min(820px, 100%); }
.workout-session-detail-modal > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.workout-session-detail-modal h2 { margin: .1rem 0; }
.workout-session-detail-modal header p { margin: .2rem 0 0; }
.workout-session-detail-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; }
.workout-session-detail-stats > span { display: flex; flex-direction: column; gap: .1rem; padding: .6rem; border: 1px solid var(--border); border-radius: 12px; background: var(--panel-2); }
.workout-session-detail-stats small, .workout-session-detail-set small { color: var(--muted); font-size: .62rem; }
.workout-session-detail-heading { margin: .2rem 0 -.2rem; font-size: .85rem; }
.workout-session-detail-list { display: grid; gap: .55rem; max-height: min(52vh, 500px); overflow: auto; }
.workout-session-detail-exercise { overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: var(--panel-2); }
.workout-session-detail-exercise > header { display: grid; grid-template-columns: auto 64px minmax(0, 1fr); align-items: center; gap: .6rem; padding: .55rem .65rem; }
.workout-session-detail-exercise > header .workout-program-thumb { width: 64px; height: 54px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); object-fit: contain; }
.workout-session-detail-exercise > header > div { display: flex; flex-direction: column; min-width: 0; }
.workout-session-detail-exercise > header small { color: var(--muted); font-size: .64rem; }
.workout-session-detail-sets { display: grid; gap: .3rem; padding: 0 .45rem .45rem; }
.workout-session-detail-set { display: grid; grid-template-columns: 56px repeat(3, minmax(72px, 1fr)) auto; align-items: center; gap: .45rem; padding: .45rem .5rem; border-radius: 10px; background: var(--panel); }
.workout-session-detail-set.is-complete { background: color-mix(in srgb, #22c55e 8%, var(--panel)); }
.workout-session-detail-set > span:not(.workout-session-detail-status) { display: flex; flex-direction: column; min-width: 0; }
.workout-session-detail-status { padding: .25rem .4rem; border-radius: 999px; color: #166534; background: #dcfce7; font-size: .6rem; font-weight: 800; white-space: nowrap; }
.workout-session-detail-set:not(.is-complete) .workout-session-detail-status { color: #92400e; background: #fef3c7; }
.workout-sync-state.is-offline { color: #92400e; background: #fef3c7; }
.workout-offline-resume { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: .8rem; padding: .85rem; border: 1px solid #f59e0b; border-radius: 18px; background: color-mix(in srgb, #f59e0b 8%, var(--panel)); }
.workout-offline-resume > span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; color: #92400e; background: #fef3c7; font-size: 1.35rem; }
.workout-offline-resume h2 { margin: .1rem 0; font-size: 1.05rem; }
.workout-offline-resume p { margin: 0; color: var(--muted); font-size: .72rem; }
.workout-program-editor-modal { width: min(1120px, 100%); align-content: start; }
.workout-program-editor-modal > header h2 { font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.2; }
.workout-program-editor-modal > header p { margin: .12rem 0 0; }
.workout-editor-header-actions { display: flex; align-items: center; gap: .45rem; }
.workout-program-save-top { white-space: nowrap; }
.workout-server-editor-list { min-height: min(420px, 55dvh); max-height: min(840px, 76dvh); align-content: start; overflow: auto; padding-right: .15rem; }
.workout-program-editor-modal .workout-program-row { grid-template-columns: auto 136px minmax(0, 1fr) auto auto; cursor: grab; }
.workout-program-editor-modal .workout-program-row:active { cursor: grabbing; }
.workout-program-editor-modal .workout-program-thumb { width: 136px; height: 104px; }
.workout-media-preview { position: relative; display: block; width: max-content; max-width: 100%; padding: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 13px; background: #fff; cursor: zoom-in; }
.workout-media-preview .workout-program-thumb { display: block; border: 0; border-radius: 12px; }
.workout-media-preview:hover, .workout-media-preview:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); }
.workout-editor-alert { padding: .7rem .8rem; border: 1px solid color-mix(in srgb, var(--danger) 38%, var(--border)); border-radius: 12px; color: var(--danger); background: color-mix(in srgb, var(--danger) 8%, var(--panel)); font-size: .78rem; font-weight: 700; }
.workout-editor-alert[hidden] { display: none; }
.workout-name-field input.is-invalid { color: var(--danger); }
.workout-name-field:has(input.is-invalid) { border-color: var(--danger); box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 12%, transparent); }
.workout-program-save.is-saving { cursor: wait; opacity: .72; }
.workout-editor-empty { display: flex; width: 100%; flex-direction: column; align-items: center; justify-content: center; min-height: 180px; border: 1px dashed var(--border); border-radius: 16px; color: var(--muted); background: transparent; text-align: center; cursor: pointer; }
.workout-editor-empty:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 5%, var(--panel)); }
.workout-editor-empty > span { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: .35rem; border-radius: 14px; color: #7c3aed; background: color-mix(in srgb, #7c3aed 10%, var(--panel)); font-size: 1.2rem; }
.workout-editor-empty small { margin-top: .2rem; }
.workout-subprogram-editor { display: grid; gap: .55rem; padding: .7rem; border: 1px solid color-mix(in srgb, #7c3aed 22%, var(--border)); border-radius: 16px; background: color-mix(in srgb, #7c3aed 4%, var(--panel)); }
.workout-subprogram-editor > header { display: flex; align-items: center; justify-content: space-between; gap: .65rem; }
.workout-subprogram-editor > header > div { display: flex; flex-direction: column; gap: .12rem; }
.workout-subprogram-editor > header strong { font-size: .7rem; color: var(--muted); }
.workout-subprogram-tabs { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .1rem; }
.workout-subprogram-tab { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .38rem; min-width: 142px; padding: .45rem .55rem; border: 1px solid var(--border); border-radius: 11px; color: var(--text); background: var(--panel); cursor: pointer; text-align: left; }
.workout-subprogram-tab > span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; color: #6d28d9; background: color-mix(in srgb, #7c3aed 10%, var(--panel)); font-size: .58rem; font-weight: 850; }
.workout-subprogram-tab > strong { overflow: hidden; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.workout-subprogram-tab.is-selected { border-color: #7c3aed; box-shadow: 0 0 0 2px color-mix(in srgb, #7c3aed 16%, transparent); }
.workout-subprogram-tab.is-selected > span { color: #fff; background: #7c3aed; }
.workout-subprogram-name-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: .5rem; }
.workout-subprogram-name-row label { display: grid; gap: .22rem; color: var(--muted); font-size: .68rem; font-weight: 750; }
.workout-remove-subprogram { min-height: 40px; white-space: nowrap; }
.workout-program-save { background: var(--action-primary); border-color: var(--action-primary); }
.workout-program-save:hover { background: var(--action-primary-hover); border-color: var(--action-primary-hover); }
.workout-server-picker { width: min(1180px, 100%); height: min(860px, calc(100dvh - 2rem)); grid-template-columns: minmax(300px, .78fr) minmax(0, 1.55fr); grid-template-rows: auto auto auto minmax(0, 1fr); overflow: hidden; }
.workout-server-picker > header { grid-column: 1 / -1; }
.workout-server-picker > .workout-picker-tools { grid-column: 2; grid-row: 2; }
.workout-server-picker > div:not(.workout-picker-tools):has(.workout-muscle-picker) { grid-column: 1; grid-row: 2 / 5; min-height: 0; }
.workout-server-picker > [role="status"] { grid-column: 2; grid-row: 3; }
.workout-server-picker > .workout-picker-results { grid-column: 2; grid-row: 4; }
/* Anatomik kas seçici (js/anatomy.js) — ön/arka figür, kas karnı başına ayrı path + lif çizgileri. */
.workout-muscle-picker { display: grid; gap: .55rem; height: 100%; padding: .7rem; border: 1px solid var(--border); border-radius: 17px; background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 6%, var(--panel)), var(--panel-2)); }
.anatomy-picker { display: grid; align-content: start; gap: .5rem; min-height: 0; }
.anatomy-figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; min-height: 0; }
.anatomy-view { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: .25rem; min-width: 0; margin: 0; }
.anatomy-view > strong { color: var(--muted); font-size: .62rem; font-weight: 750; text-align: center; }
.anatomy-svg { display: block; width: 100%; height: min(38dvh, 340px); min-height: 250px; overflow: visible; }
/* Taban: tendon/kemik tonu — kaslar bunun üstünde durur. */
.am-skin { fill: #e9e4d8; stroke: #c3bbaa; stroke-width: 1.1; stroke-linejoin: round; }
.am-aux { fill: #d8d1c0; stroke: #bdb4a2; stroke-width: .7; }
.am-detail path { fill: none; stroke: #a89f90; stroke-width: .9; stroke-linecap: round; opacity: .75; }
.am-detail, .am-shade, .am-fiber { pointer-events: none; }
/* Normal durum: tüm anatomi gri tonda. */
.am-fill { fill: #b7bdc6; stroke: #8b939e; stroke-width: .95; stroke-linejoin: round; cursor: pointer; transition: fill .15s var(--ease-out, ease), fill-opacity .15s ease, stroke .15s ease; }
.am-fiber { fill: none; stroke: rgba(32, 36, 42, .34); stroke-width: .62; stroke-linecap: round; }
/* Hacim: taban renkten bağımsız gradyan → gri, soluk kırmızı ve doygun kırmızıda da çalışır. */
.am-shade { stroke: none; }
/* Hover: yarı saydam kırmızı önizleme; lif ve gölge katmanları üstte kaldığı için doku görünür kalır. */
.am-fill.is-hover { fill: var(--body-trend-loss); fill-opacity: .52; stroke: #b93b32; }
.am-fill:focus-visible { outline: none; stroke: var(--accent); stroke-width: 1.8; }
/* Seçili: doygun kırmızı — yalnızca tek grup, ön ve arkada ortak. */
.am-fill.is-selected { fill: #c62b23; fill-opacity: 1; stroke: #7f1a14; stroke-width: 1.3; }
.anatomy-readout, .workout-cardio-filter { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .55rem; padding: .55rem .65rem; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); text-align: left; }
.anatomy-readout > span:first-child, .workout-cardio-filter > span:first-child { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--panel)); }
.anatomy-readout-dot::before { content: ''; width: 13px; height: 13px; border: 3px solid currentColor; border-radius: 50%; }
.anatomy-picker.has-selection .anatomy-readout > span:first-child { color: #c62b23; background: #fdecea; }
.anatomy-readout > span:last-child, .workout-cardio-filter > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.anatomy-readout small, .workout-cardio-filter small { color: var(--muted); font-size: .58rem; }
.anatomy-readout strong { font-size: .84rem; }
@media (prefers-reduced-motion: reduce) { .am-fill { transition: none; } }
.workout-cardio-filter { width: 100%; color: var(--text); cursor: pointer; }
.workout-cardio-filter.is-selected, .workout-cardio-filter:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--panel)); }
.workout-cardio-filter > span:first-child { color: #dc2626; background: #fee2e2; font-size: 1rem; }
.workout-server-picker .workout-picker-results { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.workout-server-picker .workout-picker-option { grid-template-columns: 126px minmax(0, 1fr) auto; min-height: 104px; padding: .55rem; }
.workout-server-picker .workout-program-thumb { width: 126px; height: 92px; }
.workout-picker-add { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border)); border-radius: 12px; background: color-mix(in srgb, var(--accent) 8%, var(--panel)); cursor: pointer; }
.workout-picker-add:hover { color: #fff; border-color: var(--accent); background: var(--accent); }
.workout-picker-option.is-added { pointer-events: none; animation: workoutAddedGlow .42s ease-out both; }
@keyframes workoutAddedGlow { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.65); } 50% { border-color: #22c55e; box-shadow: 0 0 0 7px rgba(34,197,94,.2); transform: scale(1.015); } 100% { opacity: .15; transform: scale(.98); } }
.workout-target-inputs { display: grid; grid-template-columns: repeat(2, 92px); gap: .45rem; }
.workout-target-inputs label { display: grid; grid-template-columns: minmax(0, 1fr); gap: .24rem; color: var(--muted); font-size: .72rem; font-weight: 850; }
.workout-target-inputs input { width: 100%; min-width: 0; height: 50px; padding: .35rem .45rem; border-radius: 10px; text-align: center; font-size: 1.02rem; font-weight: 850; }
.workout-saved-targets { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .3rem; }
.workout-saved-targets > b { padding: .28rem .45rem; border-radius: 8px; color: #6d28d9; background: color-mix(in srgb, #7c3aed 9%, var(--panel)); font-size: .66rem; white-space: nowrap; }
.workout-picker-back { display: none; min-height: 42px; border: 1px solid var(--border); border-radius: 11px; color: var(--text); background: var(--panel-2); font-weight: 750; cursor: pointer; }

@media (max-width: 760px) {
    .workout-server-picker { display: grid; width: 100%; height: calc(100dvh - .8rem); max-height: calc(100dvh - .8rem); grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); overflow: hidden; }
    .workout-server-picker > header, .workout-server-picker > .workout-picker-tools,
    .workout-server-picker > div:not(.workout-picker-tools):has(.workout-muscle-picker),
    .workout-server-picker > [role="status"], .workout-server-picker > .workout-picker-results { grid-column: 1; grid-row: auto; }
    .workout-server-picker > header { grid-row: 1; }
    .workout-server-picker > div:not(.workout-picker-tools):has(.workout-muscle-picker) { grid-row: 2; overflow: auto; }
    .workout-server-picker > .workout-picker-tools, .workout-server-picker > [role="status"], .workout-server-picker > .workout-picker-results { display: none; }
    .workout-modal-backdrop.is-showing-results .workout-server-picker { grid-template-rows: auto auto auto minmax(0, 1fr); }
    .workout-modal-backdrop.is-showing-results .workout-server-picker > div:not(.workout-picker-tools):has(.workout-muscle-picker) { display: none; }
    .workout-modal-backdrop.is-showing-results .workout-server-picker > .workout-picker-tools { display: grid; grid-row: 2; grid-template-columns: auto minmax(0, 1fr); }
    .workout-modal-backdrop.is-showing-results .workout-server-picker > [role="status"] { display: block; grid-row: 3; }
    .workout-modal-backdrop.is-showing-results .workout-server-picker > .workout-picker-results { display: grid; grid-row: 4; overflow: auto; }
    .workout-picker-back { display: block; }
    .workout-muscle-view svg { height: 270px; min-height: 220px; }
    .workout-server-picker .workout-picker-results { grid-template-columns: minmax(0, 1fr); }
    .workout-program-editor-modal .workout-program-row { grid-template-columns: 32px 118px minmax(0, 1fr) auto; align-items: center; }
    .workout-program-editor-modal .workout-program-thumb { width: 118px; height: 92px; }
    .workout-program-editor-modal .workout-target-inputs { grid-column: 3; grid-row: 2; grid-template-columns: repeat(2, minmax(82px, 96px)); justify-content: start; }
    .workout-program-editor-modal .workout-row-actions { grid-column: 4; grid-row: 1 / 3; justify-content: flex-end; }
}
@media (max-width: 480px) {
    .workout-modal-backdrop { padding: .4rem; }
    .workout-program-editor-modal { min-height: calc(100dvh - .8rem); max-height: calc(100dvh - .8rem); border-radius: 16px; }
    .workout-picker-tools { grid-template-columns: minmax(0, 1fr); }
    .workout-server-picker .workout-picker-option { grid-template-columns: 104px minmax(0, 1fr) auto; }
    .workout-server-picker .workout-program-thumb { width: 104px; height: 82px; }
    /* Butonlar listenin üstüne taşındı → sticky üst kenara bağlanır. */
    .workout-editor-actions { position: sticky; top: -.25rem; z-index: 2; margin: .25rem -1rem .1rem; padding: .6rem 1rem .7rem; border-bottom: 1px solid var(--border); background: var(--panel); }
    .workout-editor-actions .btn { flex: 1; padding-inline: .55rem; }
}
.workout-pending-assignment { overflow: hidden; margin-bottom: .75rem; border: 1px solid #fbbf24; border-radius: 20px; background: var(--panel); box-shadow: var(--shadow); }
.workout-pending-assignment > header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .7rem; padding: .8rem; background: linear-gradient(135deg, color-mix(in srgb, #f59e0b 10%, var(--panel)), var(--panel)); }
.workout-pending-assignment h2, .workout-pending-assignment p { margin: .08rem 0; }
.workout-pending-assignment p { color: var(--muted); font-size: .72rem; }
.workout-pending-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: #92400e; background: #fef3c7; font-size: 1.15rem; font-weight: 900; }
.workout-pending-assignment > footer { display: flex; justify-content: flex-end; gap: .45rem; padding: .6rem; border-top: 1px solid var(--border); }
.content-library-surface { overflow: clip; border: var(--surface-border); border-radius: var(--surface-strong-radius); background: var(--surface-bg); box-shadow: var(--surface-shadow); }
.content-library-surface-head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .7rem; min-height: 72px; padding: .75rem .9rem; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 6%, var(--panel)), var(--panel)); }
.content-library-surface-head > div { min-width: 0; }
.content-library-surface-head h2, .content-library-surface-head p { margin: .08rem 0; }
.content-library-surface-head h2 { font-size: 1.15rem; }
.content-library-surface-head p { color: var(--muted); font-size: .72rem; }
.content-library-surface-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 10%, var(--panel)); font-size: 1.2rem; }
.content-library-surface-body { display: grid; gap: .75rem; padding: .7rem; border-top: 1px solid var(--border); background: var(--panel-2); }
.workout-coach-workspace { margin-top: .85rem; }
.workout-coach-workspace > summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .7rem; min-height: 72px; padding: .75rem .9rem; cursor: pointer; list-style: none; background: linear-gradient(135deg, color-mix(in srgb, #2563eb 6%, var(--panel)), var(--panel)); }
.workout-coach-workspace > summary::-webkit-details-marker { display: none; }
.workout-coach-workspace > summary > span:nth-child(2) { display: flex; flex-direction: column; }
.workout-coach-workspace > summary small { color: var(--muted); }
.workout-coach-workspace > summary > span:last-child { transition: transform .2s ease; }
.workout-coach-workspace[open] > summary > span:last-child { transform: rotate(180deg); }
.workout-coach-workspace-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: color-mix(in srgb, #2563eb 10%, var(--panel)); }
.workout-coach-body { min-width: 0; }
.workout-coach-students, .workout-coach-templates { overflow: hidden; border: 1px solid var(--border); border-radius: 18px; background: var(--panel); }
.workout-coach-section-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .7rem .8rem; border-bottom: 1px solid var(--border); }
.workout-coach-section-head > div { min-width: 0; }
.workout-coach-section-head h2 { margin: .08rem 0; font-size: 1rem; }
.workout-student-picker { display: grid; flex: 0 1 290px; gap: .35rem; width: min(290px, 46%); min-width: 0; }
.workout-student-search { width: 100%; min-width: 0; }
.workout-student-picker-empty { display: flex; align-items: center; gap: .45rem; min-height: 42px; padding: .45rem .6rem; border: 1px dashed var(--border); border-radius: 12px; color: var(--muted); background: var(--panel-2); font-size: .72rem; }
.workout-student-picker-empty > span { font-size: 1rem; }
.workout-student-picker-menu { display: grid; gap: .35rem; padding: .5rem; border: 1px solid var(--border); border-radius: 13px; background: var(--panel-2); }
.workout-student-picker-menu[hidden], .workout-student-picker-options[hidden] { display: none; }
.workout-student-picker-count { margin: 0; color: var(--muted); font-size: .68rem; }
.workout-student-picker-options { display: grid; gap: .3rem; max-height: 220px; overflow: auto; }
.workout-student-picker-option { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: .5rem; width: 100%; min-height: 44px; padding: .35rem .45rem; border: 1px solid transparent; border-radius: 10px; color: var(--text); background: var(--panel); text-align: left; cursor: pointer; }
.workout-student-picker-option:hover, .workout-student-picker-option.is-active { border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); background: color-mix(in srgb, var(--accent) 7%, var(--panel)); }
.workout-student-picker-option.is-selected { border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.workout-student-picker-avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--panel)); font-weight: 800; }
.workout-student-picker-copy { display: flex; min-width: 0; flex-direction: column; }
.workout-student-picker-copy strong, .workout-student-picker-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workout-student-picker-copy strong { font-size: .78rem; }
.workout-student-picker-copy small { color: var(--muted); font-size: .65rem; }
.workout-student-picker-check { color: var(--accent); font-weight: 800; }
.workout-student-picker-no-match { padding: .55rem; border: 1px dashed var(--border); border-radius: 10px; color: var(--muted); font-size: .72rem; }
.workout-coach-student-pane { padding: .65rem; }
.workout-coach-student-empty, .workout-template-empty { display: flex; min-height: 120px; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); text-align: center; }
.workout-coach-student-empty > span, .workout-template-empty > span { font-size: 1.35rem; }
.workout-coach-student-empty small, .workout-template-empty small { margin-top: .2rem; }
.workout-coach-student-loading { min-height: 100px; display: grid; place-items: center; color: var(--muted); }
.workout-coach-student-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .65rem; margin-bottom: .55rem; }
.workout-coach-student-head > img, .workout-coach-student-head > span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; object-fit: cover; color: #fff; background: linear-gradient(145deg, #2563eb, #7c3aed); font-weight: 900; }
.workout-coach-student-head > div { display: flex; flex-direction: column; min-width: 0; }
.workout-coach-student-head h3 { margin: .08rem 0; }
.workout-coach-student-head small { color: var(--muted); }
.workout-coach-pending-note, .workout-coach-no-active { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .55rem; margin-bottom: .55rem; padding: .55rem .65rem; border: 1px solid #fde68a; border-radius: 12px; background: #fffbeb; color: #78350f; }
.workout-coach-pending-note > div, .workout-coach-no-active > div { display: flex; flex-direction: column; }
.workout-coach-pending-note small, .workout-coach-no-active small { font-size: .66rem; }
.workout-coach-no-active { margin-bottom: 0; border-color: color-mix(in srgb, #16a34a 28%, var(--border)); color: var(--text); background: color-mix(in srgb, #16a34a 5%, var(--panel)); }
.workout-coach-active-card { overflow: hidden; border: 1px solid var(--border); border-radius: 15px; background: var(--panel-2); }
.workout-coach-active-card > header { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .55rem .65rem .25rem; }
.workout-coach-active-card h3 { margin: .2rem 0 0; }
.workout-coach-active-card header small { color: var(--muted); }
.workout-coach-active-card header > div { display: flex; flex-direction: column; }
.workout-coach-active-card header > b { color: #2563eb; font-size: .62rem; }
.workout-coach-active-card > footer { display: flex; justify-content: flex-end; gap: .4rem; padding: .5rem; border-top: 1px solid var(--border); }
.workout-template-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; padding: .6rem; }
.workout-template-empty { grid-column: 1 / -1; }
.workout-template-card { display: grid; align-content: start; min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 15px; background: var(--panel-2); }
.workout-template-card > header { display: flex; justify-content: space-between; gap: .5rem; padding: .6rem .65rem .25rem; }
.workout-template-card h3 { margin: .08rem 0; font-size: .88rem; }
.workout-template-card header small { color: var(--muted); font-size: .62rem; }
.workout-template-card header > div { display: flex; flex-direction: column; min-width: 0; }
.workout-template-card > header > span { color: #7c3aed; font-size: 1.1rem; }
.workout-template-card .workout-saved-exercises { max-height: 180px; overflow: auto; }
.workout-template-card .workout-saved-exercise { grid-template-columns: 22px 54px minmax(0, 1fr); padding: .35rem .4rem; }
.workout-template-card .workout-program-thumb { width: 54px; height: 44px; }
.workout-template-card .workout-saved-exercise > b { grid-column: 3; justify-self: start; }
.workout-template-card > footer { display: flex; align-items: center; justify-content: flex-end; gap: .28rem; margin-top: auto; padding: .48rem; border-top: 1px solid var(--border); }
.workout-template-card > footer .btn { display: inline-flex; align-items: center; gap: .25rem; }

/* 8h7 — Sade kişisel program kartları, uyarlanabilir işlem menüsü ve koç kütüphanesi. */
.workout-action-menu { position: relative; z-index: 8; }
.workout-action-trigger { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid var(--border); border-radius: 12px; color: var(--text); background: var(--panel); font-size: 1rem; font-weight: 900; letter-spacing: .08em; cursor: pointer; }
.workout-action-trigger:hover, .workout-action-trigger:focus-visible, .workout-action-menu.is-open .workout-action-trigger { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--panel)); }
.workout-action-scrim { display: none; position: fixed; inset: 0; z-index: 1; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; }
.workout-action-menu.is-open .workout-action-scrim { display: block; }
/* Popover (üst katman): JS yalnız `--menu-x/--menu-y` üretir, CSS uygular (mobil
   alt-sayfa bunları yok sayar). Tarayıcının `inset: 0; margin: auto` varsayılanı ezilir.
   ⚠ KAPALI popover'ı gizleyen tarayıcı kuralı, aşağıdaki `.workout-action-list
   { display: grid }` tarafından EZİLİR (yazar stili > tarayıcı stili) → `:not(:popover-open)`
   açıkça gizlenmeli. 8i32'de unutuldu: kapalı menüler ekranda kalıp tıklama yuttu. */
.workout-action-list[popover] { position: fixed; inset: auto; left: var(--menu-x, auto); top: var(--menu-y, auto); margin: 0; z-index: auto;
    border: 1px solid var(--border); border-radius: 14px; background: var(--panel); box-shadow: 0 18px 45px rgba(15,23,42,.2); }
.workout-action-list[popover]:not(:popover-open) { display: none; }
.workout-action-list[popover]::backdrop { background: transparent; }
.workout-action-list { position: absolute; z-index: 2; top: calc(100% + .35rem); right: 0; display: grid; width: min(230px, calc(100vw - 2rem)); padding: .3rem; border: 1px solid var(--border); border-radius: 14px; background: var(--panel); box-shadow: 0 18px 45px rgba(15,23,42,.2); }
.workout-action-list[hidden] { display: none; }
.workout-action-title { display: none; }
.workout-action-item { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: center; gap: .45rem; width: 100%; min-height: 42px; padding: .5rem .6rem; border: 0; border-radius: 10px; color: var(--text); background: transparent; text-align: left; cursor: pointer; }
.workout-action-item:hover, .workout-action-item:focus-visible { background: var(--panel-2); }
.workout-action-item.is-danger { color: var(--action-danger); }
.workout-action-item:disabled { cursor: not-allowed; opacity: .45; }
.workout-active-day { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: .45rem; background: var(--panel); }
.workout-active-day-open { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .6rem; min-width: 0; padding: .45rem; border: 0; color: var(--text); background: transparent; text-align: left; cursor: pointer; }
.workout-active-day-open:hover .workout-active-day-copy > strong, .workout-active-day-open:focus-visible .workout-active-day-copy > strong { color: var(--accent); }
.workout-active-day-copy { display: flex; min-width: 0; flex-direction: column; gap: .12rem; }
.workout-active-day-copy > strong { overflow-wrap: anywhere; font-size: .92rem; transition: color .15s ease; }
.workout-active-day-copy > small { overflow: hidden; color: var(--muted); font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.workout-active-day-copy > em { color: var(--muted); font-size: .6rem; font-style: normal; font-weight: 750; }
.workout-day-chevron { color: var(--muted); font-size: 1.35rem; }
.workout-active-day > .workout-start-btn { min-height: 42px; margin-right: .2rem; }
.workout-day-detail-modal { width: min(820px, 100%); }
.workout-day-detail-modal > header h2, .workout-day-detail-modal > header p { margin: .08rem 0; }
.workout-day-detail-start { justify-self: stretch; display: flex; align-items: center; justify-content: center; gap: .4rem; min-height: 46px; }
.workout-day-detail-modal .workout-program-day-list { min-height: 0; overflow: auto; }
.workout-coach-workspace.is-library { margin-top: 0; }
.workout-live-footer { display: flex; justify-content: flex-end; padding: .75rem; border-top: 1px solid #e5e7eb; }
.workout-cancel-session { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; }

@media(max-width: 900px) {
    .workout-programs-hero { grid-template-columns: auto minmax(0, 1fr); }
    .workout-programs-facts { grid-column: 1 / -1; }
    .workout-history-body { grid-template-columns: 1fr; }
    .workout-program-editor-modal .workout-program-row { grid-template-columns: auto 52px minmax(0, 1fr) auto; }
    .workout-program-editor-modal .workout-row-actions { grid-column: 3 / 5; justify-content: flex-end; }
    .workout-template-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .workout-session-history-card { grid-template-columns: minmax(150px, .8fr) minmax(180px, 1.2fr); }
    .workout-session-history-stats { grid-column: 1 / -1; }
}
@media(max-width: 620px) {
    .workout-programs-hero { grid-template-columns: 48px minmax(0, 1fr); gap: .7rem; border-radius: 18px; }
    .workout-programs-hero-icon { width: 48px; height: 48px; border-radius: 15px; }
    .workout-programs-facts { grid-template-columns: repeat(2, 1fr); }
    .workout-empty-active { grid-template-columns: auto minmax(0, 1fr); }
    .workout-empty-active .btn { grid-column: 1 / -1; width: 100%; }
    .workout-empty-active-actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
    .workout-empty-active-actions .btn { grid-column: auto; }
    .workout-saved-exercise { grid-template-columns: 24px 104px minmax(0, 1fr); align-items: center; }
    .workout-saved-exercise .workout-program-thumb { width: 104px; height: 82px; }
    .workout-saved-exercise .workout-saved-targets { grid-column: 3; justify-content: flex-start; }
    .workout-active-actions { display: grid; grid-template-columns: 1fr; }
    .workout-active-actions .btn { justify-content: center; width: 100%; }
    .workout-program-editor-modal .workout-program-row { grid-template-columns: 28px 108px minmax(0, 1fr) 42px; gap: .5rem; }
    .workout-program-editor-modal .workout-program-thumb { width: 108px; height: 88px; }
    .workout-program-editor-modal .workout-target-inputs { grid-column: 3; grid-row: 2; }
    .workout-program-editor-modal .workout-row-actions { grid-column: 4; grid-row: 1 / 3; }
    .workout-history-card > footer { display: grid; grid-template-columns: 1fr; }
    .workout-history-card > footer .btn { justify-content: center; width: 100%; }
    .workout-session-history-card { grid-template-columns: 1fr; }
    .workout-session-history-stats { grid-column: 1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .workout-offline-resume { grid-template-columns: auto minmax(0,1fr); }
    .workout-offline-resume .btn { grid-column: 1 / -1; width: 100%; }
    .workout-pending-assignment > header { grid-template-columns: auto minmax(0, 1fr); }
    .workout-pending-assignment > header > .status { grid-column: 2; justify-self: start; }
    .workout-pending-assignment > footer { display: grid; grid-template-columns: 1fr; }
    .workout-pending-assignment > footer .btn { width: 100%; }
    .workout-coach-section-head { align-items: stretch; flex-direction: column; }
    .workout-student-picker, .workout-coach-section-head > .btn { width: 100%; flex-basis: auto; }
    .workout-coach-student-head { grid-template-columns: auto minmax(0, 1fr); }
    .workout-coach-student-head > .btn { grid-column: 1 / -1; width: 100%; }
    .workout-coach-active-card > footer { display: grid; grid-template-columns: 1fr; }
    .workout-coach-active-card > footer .btn { width: 100%; }
    .workout-template-grid { grid-template-columns: 1fr; }
    .workout-active-day { grid-template-columns: 1fr; gap: .35rem; }
    .workout-active-day > .workout-start-btn { width: 100%; margin: 0; }
    .workout-action-list { position: fixed; top: auto; right: .5rem; bottom: .5rem; left: .5rem; width: auto; padding: .55rem; border-radius: 22px; }
    .workout-action-list[popover] { inset: auto .5rem .5rem; border-radius: 22px; }
    .workout-action-list[popover]::backdrop { background: rgba(15,23,42,.42); backdrop-filter: blur(2px); }
    .workout-action-menu.is-open .workout-action-scrim { background: rgba(15,23,42,.42); backdrop-filter: blur(2px); }
    .workout-action-title { display: block; padding: .45rem .6rem .65rem; border-bottom: 1px solid var(--border); font-size: .86rem; text-align: center; }
    .workout-action-item { min-height: 50px; }
    .workout-day-detail-modal { min-height: min(680px, calc(100dvh - .8rem)); }
    .workout-live-footer .btn { width: 100%; }
}

/* Mevcut durum — panelin ortak kart yüzeyi ve isteğe bağlı ölçü ipuçları. */
.current-state-toolbar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:.7rem; }
.current-state-legend { display:flex; flex-wrap:wrap; gap:.7rem 1.2rem; margin:.8rem 0; }
.state-legend { display:inline-flex; align-items:center; gap:.4rem; font-size:.76rem; color:var(--text); }
.current-state .trend-up { --trend-color:var(--body-trend-gain); }
.current-state .trend-down { --trend-color:var(--body-trend-loss); }
.current-state .trend-neutral { --trend-color:var(--body-trend-neutral); }
.state-dot { display:inline-block; flex:0 0 9px; width:9px; height:9px; border-radius:50%; background:var(--trend-color); }
.current-state-content { display:grid; grid-template-columns:minmax(0,210px) minmax(0,1fr); align-items:center; gap:1.4rem; }
.current-state-figure, .current-state-values { min-width:0; }
.current-state-values { margin:0; }
.bmf-current { width:min(100%, 210px); margin:.3rem auto; }
.bmf-current .bmf-stage { max-width:172px; }
.bmf.bmf-current .bmf-body { fill:var(--body-trend-neutral); stroke:var(--muted); }
.bmf-zone { fill:var(--trend-color); fill-opacity:.52; cursor:pointer; }
.bmf-zone.trend-neutral { fill-opacity:1; }
.bmf-zone.is-active { stroke:var(--trend-color); stroke-width:1.5px; }
.bmf-detail { fill:none; stroke:var(--muted); stroke-width:.8px; opacity:.35; pointer-events:none; }
.bmf-trend-marks { pointer-events:none; }
.bmf-trend-arrow { fill:none; stroke:color-mix(in srgb, var(--trend-color) 65%, var(--text)); stroke-width:1.6px; stroke-linecap:round; stroke-linejoin:round; opacity:0; }
@media(prefers-reduced-motion: reduce) { .bmf-trend-arrow { visibility:hidden; } .bmf-zone { fill-opacity:.52 !important; } .bmf-zone.trend-neutral { fill-opacity:1 !important; } }
.bmf-zone:focus-visible { outline:none; stroke:var(--accent); stroke-width:3px; }
.bmf-tooltip { position:absolute; left:50%; transform:translate(-50%,-100%); z-index:2; display:flex; flex-direction:column; align-items:center; gap:.3rem; width:max-content; max-width:100%; padding:.55rem .7rem; border:1px solid var(--trend-color); border-radius:10px; background:var(--panel); box-shadow:var(--shadow); pointer-events:none; text-align:center; }
.bmf-tooltip[hidden] { display:none; }
.bmf-tooltip-label { font-size:.7rem; color:var(--muted); }
.bmf-tooltip-value { font-size:.85rem; color:var(--text); }
.bmf-tooltip-trend { font-size:.65rem; color:var(--muted); max-width:145px; }
.current-state-figure-hint { text-align:center; margin:.4rem 0 0; }
.current-state-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; }
.current-state-metric { min-width:0; display:flex; flex-direction:column; gap:.4rem; padding:.4rem; }
.current-state-metric-label { display:flex; gap:.4rem; align-items:center; color:var(--muted); font-size:.78rem; }
.current-state-metric strong { font-size:clamp(1rem,2vw,1.3rem); overflow-wrap:anywhere; }
.current-state-metric small { font-size:.68rem; }
@media(max-width: 860px) { .current-state-content { grid-template-columns:minmax(0,170px) minmax(0,1fr); gap:1rem; } .current-state-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width: 480px) { .current-state-content { grid-template-columns:minmax(0,108px) minmax(0,1fr); gap:.65rem; } .bmf-current .bmf-stage { max-width:108px; } .current-state-values { padding:.65rem; } .current-state-values > h3 { font-size:.9rem; } .current-state-figure-hint { font-size:.68rem; } .current-state-metric { padding:.2rem 0; } .current-state-metric-label { font-size:.68rem; gap:.2rem; } .current-state-values .small { font-size:.68rem; } .current-state-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); gap:.65rem; } .current-state-toolbar .btn { min-height:44px; } }
.daily-row--subjective { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.metric-field--appetite, .metric-field--stress { gap: .5rem; }
.metric-field--appetite .performance-opts, .metric-field--stress .performance-opts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dlog-detail-val { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 480px) { .daily-row--subjective { grid-template-columns: minmax(0, 1fr); } }


/* ── Hedef değişikliği: yön değişimi modalı + sebep alanı + hedef geçmişi ── */
.goal-change-modal { max-width: 620px; }
.goalchg-compare { display: grid; gap: .5rem; margin: .9rem 0 1rem; }
.goalchg-row { display: flex; align-items: center; gap: .6rem; min-width: 0;
    padding: .55rem .7rem; background: var(--panel-2); border: 1px solid var(--surface-border); border-radius: 12px; }
.goalchg-row-ic { flex: 0 0 32px; width: 32px; height: 32px; display: grid; place-items: center;
    font-size: 1rem; background: var(--panel); border: 1px solid var(--border); border-radius: 9px; }
.goalchg-row > div { min-width: 0; display: flex; flex-direction: column; gap: .05rem; }
.goalchg-row-lbl { font-size: .7rem; color: var(--muted); }
.goalchg-row-val { font-size: .88rem; font-weight: 600; overflow-wrap: anywhere; }
.goalchg-reason-field { display: flex; flex-direction: column; gap: .25rem; min-width: 0; margin-top: .9rem; }
/* Sebep alanı GERÇEK bir metin kutusu gibi görünmeli: `.nt-input` çerçevesiz/zeminsizdir,
   bu yüzden burada kendi kutu stilini taşır (çerçeve + zemin + iç boşluk + odak halkası). */
.goalchg-reason { width: 100%; max-width: 100%; box-sizing: border-box; resize: vertical;
    min-height: 3.1rem; font-size: .9rem; font-family: inherit; line-height: 1.45;
    padding: .55rem .65rem; background: var(--panel); color: var(--text);
    border: 1px solid var(--border); border-radius: 10px;
    transition: border-color var(--dur,.18s) var(--ease-out,ease), box-shadow var(--dur,.18s) var(--ease-out,ease); }
.goalchg-reason::placeholder { color: var(--muted); opacity: .85; }
.goalchg-reason:focus { outline: none; border-color: var(--action-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--action-primary) 18%, transparent); }
.goalchg-reason-field .nt-field-lbl { font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .goalchg-reason { transition: none; } }
.goalchg-reason-card { display: flex; align-items: flex-start; gap: .6rem; min-width: 0; margin: .9rem 0 .2rem;
    padding: .7rem .8rem; background: var(--panel-2); border: 1px solid var(--surface-border); border-radius: 14px; }
.goalchg-reason-card .goalchg-reason-field { margin-top: 0; flex: 1 1 auto; }
.goalchg-reason-ic { flex: 0 0 32px; width: 32px; height: 32px; display: grid; place-items: center;
    font-size: 1rem; background: var(--panel); border: 1px solid var(--border); border-radius: 9px; }

.goalhist-card { margin-bottom: .75rem; padding: .9rem 1rem; }
.goalhist-head { justify-content: flex-start; }
.goalhist-actions { margin-left: auto; display: inline-flex; gap: .4rem; }
/* 44px dokunma hedefi ortak .act-del kuralından gelir (DELETE_ACTION_STANDARD.md). */
.goalhist-del { flex: 0 0 auto; }
.goalhist-stats { margin-top: .6rem; }
.goalhist-changes { margin-top: .6rem; }
.goalhist-changes > summary { cursor: pointer; font-size: .8rem; color: var(--muted); }
.goalhist-change-list { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .45rem; }
.goalhist-change { display: flex; align-items: flex-start; gap: .55rem; min-width: 0; }
.goalhist-change > div { min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.goalhist-change-ic { flex: 0 0 26px; width: 26px; height: 26px; display: grid; place-items: center;
    font-size: .85rem; background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; }
.goalhist-change-head { font-size: .72rem; color: var(--muted); }
.goalhist-change-reason { font-size: .85rem; overflow-wrap: anywhere; }
.goalhist-empty { display: flex; align-items: center; gap: .7rem; padding: .9rem 1rem;
    background: var(--panel-2); border: 1px solid var(--surface-border); border-radius: 14px; }
.goalhist-empty-ic { flex: 0 0 38px; width: 38px; height: 38px; display: grid; place-items: center;
    font-size: 1.2rem; background: var(--panel); border: 1px solid var(--border); border-radius: 11px; }
.goalhist-empty p { margin: 0; }

@media (max-width: 860px) {
    .goal-change-modal { max-width: 100%; }
    /* Dar ekranda işlem başlığın altına iner ama tüm satırı kaplamaz — silme butonu
       kartın görsel ağırlığını ele geçirmemeli (dokunma hedefi 44px korunur). */
    .goalhist-actions { margin-left: 0; }
}
@media (max-width: 480px) {
    .goalchg-reason-card { flex-direction: column; }
    .goalhist-card { padding: .8rem .85rem; }
}

/* Net Kalori Dengesi — güncel bazal rozeti (grafikteki geçmiş günlerle farkı açıklar) */
.cb-bmr-note{display:flex;align-items:flex-start;gap:.5rem;margin:.1rem 0 .6rem;padding:.55rem .7rem;
  border:1px solid var(--surface-border,var(--border));border-radius:12px;background:var(--surface-bg,var(--panel));
  font-size:.82rem;line-height:1.45}
.cb-bmr-note .cb-bmr-ico{font-size:1rem;line-height:1.3}
.cb-bmr-note strong{font-size:.86rem}
@media (max-width: 480px){.cb-bmr-note{font-size:.78rem}}

/* ── Hedef önerisi: belirgin "Öneri Oluştur" butonu ───────────────────────── */
.goal-recommend-btn{display:inline-flex;align-items:center;gap:.5rem;padding:.72rem 1.15rem;
  font-size:.95rem;font-weight:700;border-radius:14px;
  background:color-mix(in srgb,var(--action-primary) 12%,var(--panel));
  border:1.5px solid color-mix(in srgb,var(--action-primary) 45%,var(--border));
  color:var(--action-primary);box-shadow:0 2px 8px rgba(37,99,235,.12);
  transition:background var(--dur,.18s) var(--ease-out,ease),box-shadow var(--dur,.18s) var(--ease-out,ease),transform var(--dur,.18s) var(--ease-out,ease)}
.goal-recommend-btn:hover:not(:disabled){background:color-mix(in srgb,var(--action-primary) 20%,var(--panel));
  box-shadow:0 4px 14px rgba(37,99,235,.2);transform:translateY(-1px)}
.goal-recommend-btn:disabled{opacity:.55;box-shadow:none}
.goal-recommend-ic{font-size:1.05rem;line-height:1}

/* ── Öneri sonrası "hangi alan güncellendi" geri bildirimi ────────────────── */
.goal-upd-summary{display:flex;align-items:flex-start;gap:.55rem;margin:0 0 .9rem;padding:.6rem .8rem;
  border-radius:12px;font-size:.84rem;line-height:1.45;
  background:color-mix(in srgb,var(--action-primary) 8%,var(--panel));
  border:1px solid color-mix(in srgb,var(--action-primary) 30%,var(--border))}
.goal-upd-summary.is-same{background:var(--surface-bg,var(--panel));border-color:var(--surface-border,var(--border));color:var(--muted)}
.goal-upd-summary .goal-upd-ico{font-size:1rem;line-height:1.3}
.goal-upd-summary .goal-upd-list{color:var(--muted)}
/* Öneriyle değişen alan: sade accent çerçeve + hafif tint. Kullanıcı alanı elle
   düzenleyince JS bu sınıfı kaldırır (işaret yalnız "öneri bunu değiştirdi" demektir). */
.nt-field.goal-upd,.nt-outcome-field.goal-upd{border-color:color-mix(in srgb,var(--action-primary) 55%,var(--border));
  background:color-mix(in srgb,var(--action-primary) 6%,var(--panel))}
.goal-upd-prev{display:block;margin-top:.2rem;font-size:.68rem;color:var(--muted);font-variant-numeric:tabular-nums}
@media (prefers-reduced-motion: reduce){.goal-recommend-btn{transition:none}.goal-recommend-btn:hover:not(:disabled){transform:none}}
@media (max-width: 480px){
  .goal-recommend-btn{width:100%;justify-content:center}
  .goal-upd-summary{font-size:.8rem}
}

/* ── Hedef projeksiyon tablosu: yatay kaydırma yerine satır kaydırma ──────── */
.goal-proj-wrap{overflow-x:visible}
.goal-proj-wrap .data-table{min-width:0;table-layout:fixed;width:100%}
.goal-proj-wrap .data-table th,.goal-proj-wrap .data-table td{white-space:normal;overflow-wrap:anywhere;vertical-align:top}
.goal-proj-wrap .data-table th{width:38%}
/* Uzun hücre metni (ör. plan notu) satır kaydırır; yatay kaydırma oluşmaz. */
.data-table tr.warn td{white-space:normal;overflow-wrap:anywhere}

/* ── Tutarsız hedef uyarısı (büyük blok) ────────────────────────────────────
   Tablo içindeki küçük "⚠ Tutarsız" satırının yerini alır: dolgulu uyarı zemini,
   büyük ikon, kalın başlık ve ne yapılacağını söyleyen satır. Hedefim, koç hedef
   editörü ve onboarding 4. adımda AYNI bileşen kullanılır. */
.goal-warn-alert{
    display:flex; gap:.85rem; align-items:flex-start;
    padding:1rem 1.1rem; margin:0 0 .25rem;
    border:1px solid color-mix(in srgb, var(--warn) 45%, var(--border));
    border-left:5px solid var(--warn);
    border-radius:14px;
    background:color-mix(in srgb, var(--warn) 9%, var(--panel));
    box-shadow:0 2px 10px color-mix(in srgb, var(--warn) 14%, transparent);
}
.goal-warn-ic{ font-size:1.6rem; line-height:1.1; flex:0 0 auto; }
.goal-warn-body{ min-width:0; display:flex; flex-direction:column; gap:.3rem; }
.goal-warn-title{ font-size:1.02rem; font-weight:700; color:var(--warn); }
.goal-warn-text{ margin:0; font-size:.86rem; line-height:1.5; overflow-wrap:anywhere; }
.goal-warn-fix{ margin:0; font-size:.8rem; line-height:1.45; color:var(--muted); overflow-wrap:anywhere; }
@media (max-width: 480px){
    .goal-warn-alert{ padding:.85rem .9rem; gap:.6rem; }
    .goal-warn-ic{ font-size:1.35rem; }
    .goal-warn-title{ font-size:.95rem; }
}

/* ── Makro denklemi: Protein + Karbonhidrat + Yağ = Günlük Kalori ──────────
   Kalori elle girilmez; üç makrodan canlı hesaplanır. Sonuç hücresi accent
   zeminiyle denklemin "=" tarafı olduğunu görsel olarak anlatır; altındaki
   yığılmış çubuk her makronun kaloriye katkı oranını gösterir. */
.macro-eq{
    --mp: #2563eb;   /* protein */
    --mc: #16a34a;   /* karbonhidrat */
    --mf: #f59e0b;   /* yağ */
    padding: 1rem 1.05rem; margin-bottom: .9rem;
    border: 1px solid var(--border); border-radius: 16px;
    background: var(--panel-2);
}
/* Başlık ve açıklama ALT ALTA (tek satırda yan yana değil). */
.macro-eq-head{ display: flex; flex-direction: column; gap: .12rem; margin-bottom: .8rem; }
.macro-eq-title{ font-size: .98rem; }
.macro-eq-hint{ line-height: 1.35; }
/* Satır: [üç makro + oran çubuğu] = [kalori]. Çubuk SOL sütunun içinde olduğu için
   protein'in solundan yağ'ın sağına kadar uzanır; `=` ve sonuç hücresinin altına taşmaz.
   SARMA (wrap) ile yapılır, sabit kırılımla DEĞİL: kartın genişliği yan menünün açık/kapalı
   olmasına göre değişiyor, viewport kırılımı sığan yerde de alt alta indiriyordu. Flex-basis
   "bu öğe en az şu kadar yer ister" demektir; yer kalmayınca öğe kendiliğinden alt satıra iner. */
.macro-eq-row{ display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.macro-eq-left{ flex: 1 1 400px; min-width: 0; }
.macro-eq-right{ display: flex; align-items: center; gap: .5rem; flex: 1 1 160px; min-width: 0; }
.macro-eq-terms{ display: flex; flex-wrap: wrap; align-items: stretch; gap: .5rem; }
.macro-eq-op{ align-self: center; font-size: 1.15rem; font-weight: 700; color: var(--muted); flex: 0 0 auto; }
.macro-eq-op.is-eq{ color: var(--text); }
.macro-eq-term{
    flex: 1 1 112px; min-width: 0;
    display: flex; flex-direction: column; gap: .3rem;
    padding: .6rem .7rem; border: 1px solid var(--border); border-radius: 12px;
    background: var(--panel); cursor: text;
}
/* Renk kodu ince nokta ile verilir — panel yüzey standardı normal kartlarda
   3–4px renkli üst/yan çerçeveyi yasaklar (CLAUDE.md). Nokta aynı zamanda alttaki
   yığılmış oran çubuğunun renk göstergesidir. */
.macro-eq-dot{ width: 8px; height: 8px; border-radius: 99px; flex: 0 0 auto; background: var(--muted); }
.macro-eq-term.is-protein .macro-eq-dot{ background: var(--mp); }
.macro-eq-term.is-carbs .macro-eq-dot{ background: var(--mc); }
.macro-eq-term.is-fat .macro-eq-dot{ background: var(--mf); }
.macro-eq-lbl{ display: flex; align-items: center; gap: .3rem; font-size: .74rem; font-weight: 700; color: var(--muted); }
.macro-eq-ic{ font-size: .9rem; line-height: 1; }
/* Sayı ve birimi BİRLİKTE dursun: input kutunun tamamını kaplayınca "145 ........ g"
   gibi anlamsız bir boşluk oluşuyordu. Input içeriği kadar yer kaplar, birim hemen yanında. */
.macro-eq-ctl{ display: flex; align-items: baseline; justify-content: flex-start; gap: .25rem; min-width: 0; }
.macro-eq-ctl .nt-input{ flex: 0 1 auto; width: 6ch; min-width: 0; font-size: 1.22rem; font-weight: 700; }
.macro-eq-unit{ font-size: .72rem; color: var(--muted); flex: 0 0 auto; }
.macro-eq-coef{ font-size: .64rem; color: var(--muted); letter-spacing: .01em; }
/* Sonuç hücresi: denklemin sağ tarafı — accent zemin + daha büyük değer. */
.macro-eq-out{
    cursor: default;
    /* Sonuç hücresi: ince birincil çerçeve + hafif tint (seçim/vurgu için standart yol). */
    border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border));
    background: color-mix(in srgb, var(--accent) 8%, var(--panel));
    flex: 1 1 auto;
}
.macro-eq-out .macro-eq-lbl{ color: var(--accent); }
.macro-eq-out-val{ font-size: 1.38rem; font-weight: 800; line-height: 1.15; color: var(--text); }
/* Salt-okunur kalori input'u DOM'da kalır (payload + değişiklik işareti) ama görünmez. */
.macro-eq-out-input{ position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.macro-eq-out{ position: relative; }
/* Yığılmış oran çubuğu */
.macro-eq-bar{ display: flex; height: 9px; margin-top: .7rem; border-radius: 99px; overflow: hidden; background: var(--panel); border: 1px solid var(--border); }
.macro-eq-bar.is-empty{ background: repeating-linear-gradient(90deg, var(--panel) 0 6px, var(--panel-2) 6px 12px); }
.macro-eq-seg{ height: 100%; width: 0; transition: width .22s var(--ease-out); }
.macro-eq-seg.is-protein{ background: var(--mp); }
.macro-eq-seg.is-carbs{ background: var(--mc); }
.macro-eq-seg.is-fat{ background: var(--mf); }
.macro-eq-share{ margin: .45rem 0 0; }
/* Gerçek mobil: üç makro yan yana sıkışmasın → tek sütun. Bu genişlikte yan menü
   zaten çekmecede olduğu için viewport kırılımı kart genişliğiyle örtüşür. */
@media (max-width: 560px){
    .macro-eq{ padding: .85rem .8rem; }
    .macro-eq-terms{ flex-direction: column; }
    .macro-eq-op{ display: none; }            /* dar ekranda operatörler yer kaplamasın */
    .macro-eq-term{ flex: 1 1 auto; }
    .macro-eq-ctl .nt-input{ font-size: 1.1rem; }
    .macro-eq-out-val{ font-size: 1.25rem; }
}
/* Öneri sonrası "güncellendi" işareti makro denklemi hücrelerinde de çalışır. */
.macro-eq-term.goal-upd{ border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--panel)); }
.macro-eq-term .goal-upd-prev{ margin-top: .1rem; }

/* Fotoğraf seçimi — klavyeyle erişilebilir gerçek onay kutusu (docs/04 §8). */
.photo-record figcaption { display: flex; align-items: center; gap: .45rem; }
.photo-record .photo-pick { flex: 0 0 auto; width: 1rem; height: 1rem; cursor: pointer; }
.photo-record .rec-imgs img { cursor: zoom-in; }
.photo-record .rec-imgs img:focus-visible,
.bm-marker:focus-visible { outline: 3px solid #2f6bff; outline-offset: 2px; }

/* Grafiklerin metinsel karşılığı — görsel olarak gizli, ekran okuyucuya açık (docs/04 §8). */
.chart-alt {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* Egzersiz görseli temsil uyarısı — WORKOUT_IMAGEGEN_STANDARD §10.
   Görselin gösterildiği her ekranda GÖRÜNÜR durur; dikkat çekmeden okunabilir olmalı,
   bu yüzden uyarı kırmızısı değil nötr panel yüzeyi kullanılır. */
.workout-media-notice { margin: .2rem 0 0; padding: .55rem .7rem; border: 1px solid var(--border);
    border-radius: 10px; background: var(--panel-2); color: var(--muted); font-size: .72rem; line-height: 1.45; }

/* Optional outcomes share the nutrition editor field layout. */
.goal-measurement-editor { margin-block: 1rem; padding: 1rem; background: var(--panel-2); border: 1px solid var(--border); border-radius: var(--radius); scroll-margin-top: 100px; }
.goal-measurement-heading { margin: 0; font-size: 1rem; line-height: 1.4; }
.goal-measurement-shortcut-body { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.goal-measurement-shortcut-body > p { flex: 1 1 220px; margin: 0; }
.goal-measurement-shortcut-body > button { min-height: 44px; flex: 0 1 auto; white-space: normal; }
.goal-measurement-editor .nt-grid { margin-top: .75rem; }

.goal-measurement-state { color: var(--muted); font-size: .7rem; line-height: 1.4; }
.goal-measurement-editor .is-target .goal-measurement-state { color: var(--accent); font-weight: 600; }
