/* ============================================================
   MB Fitness — mobil öncelikli tasarım sistemi
   ============================================================ */

:root {
    --bg: #0A0C0F;
    --bg-elev: #11151A;
    --surface: #161B21;
    --surface-2: #1D242C;
    --line: #262F39;
    --line-soft: #1C232B;

    --text: #EDF1F5;
    --text-dim: #A3AEBA;
    --text-mute: #6B7683;

    --accent: #C9F94E;
    --accent-ink: #0A0C0F;
    --accent-dim: rgba(201, 249, 78, .14);

    --cardio: #FF8A4C;
    --water: #4CC9F0;
    --danger: #FF5F6D;
    --ok: #3DDC97;
    --warn: #F7B538;

    --r-sm: 10px;
    --r: 16px;
    --r-lg: 22px;
    --r-pill: 999px;

    --safe-b: env(safe-area-inset-bottom, 0px);
    --safe-t: env(safe-area-inset-top, 0px);
    --nav-h: 62px;

    --shadow: 0 10px 30px rgba(0, 0, 0, .45);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    overscroll-behavior-y: none;
}

body { min-height: 100dvh; }

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* ---------------------------------------------------------- boot */

.boot {
    position: fixed; inset: 0;
    display: grid; place-content: center; gap: 20px; justify-items: center;
    background: var(--bg);
}
.boot-mark {
    width: 62px; height: 62px; border-radius: 18px;
    display: grid; place-content: center;
    background: var(--accent); color: var(--accent-ink);
    font-weight: 800; font-size: 22px; letter-spacing: -.04em;
}
.boot-bar { width: 160px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }

/* Blazor indirme ilerledikçe --blazor-load-percentage tanımlanır; yoksa belirsiz animasyon. */
.boot-bar span {
    display: block; height: 100%; width: 40%; border-radius: 3px; background: var(--accent);
    animation: slide 1.1s ease-in-out infinite;
}
#app[style*="--blazor-load-percentage"] .boot-bar span {
    width: var(--blazor-load-percentage, 0%);
    animation: none;
    transition: width .25s ease;
}
@keyframes slide { 0% { transform: translateX(-110%);} 100% { transform: translateX(280%);} }

.boot-pct {
    font-size: 12px; font-variant-numeric: tabular-nums; color: var(--text-dim);
    font-weight: 600; min-height: 15px;
}
.boot-pct::after { content: var(--blazor-load-percentage-text, ""); }
.boot-hint { font-size: 11.5px; color: var(--text-mute); }

/* ---------------------------------------------------------- shell */

.shell {
    max-width: 520px;
    margin: 0 auto;
    min-height: 100dvh;
    padding-bottom: calc(var(--nav-h) + var(--safe-b) + 18px);
    position: relative;
}

.page { padding: 4px 18px 0; animation: fade .28s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px);} to { opacity: 1; transform: none;} }

/* ---------------------------------------------------------- header */

.appbar {
    position: sticky; top: 0; z-index: 20;
    padding: calc(var(--safe-t) + 20px) 18px 18px;
    background: rgba(10, 12, 15, .88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
}
.appbar::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -14px; height: 14px;
    background: linear-gradient(rgba(10, 12, 15, .88), rgba(10, 12, 15, 0));
    pointer-events: none;
}
.appbar .eyebrow { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-mute); font-weight: 700; margin-bottom: 5px; }
.appbar h1 { font-size: 27px; line-height: 1.12; }
.appbar .back {
    width: 38px; height: 38px; flex: none; border-radius: var(--r-pill);
    background: var(--surface); border: 1px solid var(--line);
    color: var(--text); display: grid; place-content: center; font-size: 18px;
}

/* ---------------------------------------------------------- cards */

.card {
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--r);
    padding: 16px;
}
.card + .card { margin-top: 12px; }
.card-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.card-h h3 { font-size: 15px; }
.card-h .hint { font-size: 12px; color: var(--text-mute); }

.section-title {
    font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
    color: var(--text-mute); font-weight: 700; margin: 26px 0 11px;
}

/* hero — bugünün antrenmanı */
.hero {
    position: relative; overflow: hidden;
    border-radius: var(--r-lg);
    padding: 20px;
    background: linear-gradient(150deg, #1B2A12 0%, var(--surface) 55%);
    border: 1px solid #2C3D1B;
}
.hero::after {
    content: ""; position: absolute; right: -50px; top: -60px;
    width: 190px; height: 190px; border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 249, 78, .16), transparent 70%);
}
.hero .kicker { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.hero h2 { font-size: 30px; margin: 6px 0 2px; letter-spacing: -.03em; }
.hero .sub { color: var(--text-dim); font-size: 14px; }
.hero .meta { display: flex; gap: 16px; margin-top: 16px; font-size: 13px; color: var(--text-dim); }
.hero .meta b { color: var(--text); font-weight: 600; }

/* rest day variant */
.hero.rest { background: linear-gradient(150deg, #14202B 0%, var(--surface) 55%); border-color: #22344A; }
.hero.rest .kicker { color: var(--water); }
.hero.rest::after { background: radial-gradient(circle, rgba(76, 201, 240, .14), transparent 70%); }

/* ---------------------------------------------------------- stats */

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.stat {
    background: var(--surface); border: 1px solid var(--line-soft);
    border-radius: var(--r); padding: 12px 12px 13px;
}
.stat .v { font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.stat .v small { font-size: 12px; font-weight: 600; color: var(--text-mute); margin-left: 2px; }
.stat .l { font-size: 11px; color: var(--text-mute); margin-top: 2px; letter-spacing: .02em; }
.stat .d { font-size: 12px; font-weight: 600; margin-top: 3px; }
.d.down { color: var(--accent); }
.d.up { color: var(--danger); }

/* ---------------------------------------------------------- buttons */

.btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; min-height: 54px; padding: 0 18px;
    border: none; border-radius: var(--r);
    background: var(--accent); color: var(--accent-ink);
    font-size: 16px; font-weight: 700; letter-spacing: -.01em;
    transition: transform .12s ease, filter .12s ease;
}
.btn:active { transform: scale(.985); filter: brightness(.94); }
.btn.ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
.btn.danger { background: transparent; color: var(--danger); border: 1px solid rgba(255, 95, 109, .35); }
.btn.sm { min-height: 42px; font-size: 14px; border-radius: var(--r-sm); }
.btn:disabled { opacity: .45; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
    flex: none; padding: 9px 15px; border-radius: var(--r-pill);
    background: var(--surface); border: 1px solid var(--line);
    color: var(--text-dim); font-size: 13px; font-weight: 600; white-space: nowrap;
}
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.toggle {
    display: flex; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-pill); padding: 4px; gap: 4px;
}
.toggle button {
    flex: 1; border: none; background: transparent; color: var(--text-dim);
    padding: 9px 8px; border-radius: var(--r-pill); font-size: 13px; font-weight: 600;
}
.toggle button.on { background: var(--accent); color: var(--accent-ink); }

/* ---------------------------------------------------------- water */

.water { display: flex; gap: 10px; }
.water button {
    flex: 1; aspect-ratio: 1 / 1.35; border-radius: 12px;
    border: 1px solid var(--line); background: var(--surface-2);
    display: grid; place-content: center; color: var(--text-mute); font-size: 11px; font-weight: 600;
    transition: all .15s ease;
}
.water button.on {
    background: linear-gradient(180deg, rgba(76, 201, 240, .18), rgba(76, 201, 240, .05));
    border-color: rgba(76, 201, 240, .5); color: var(--water);
}

/* ---------------------------------------------------------- exercise / sets */

.ex-card {
    background: var(--surface); border: 1px solid var(--line-soft);
    border-radius: var(--r); overflow: hidden; margin-bottom: 12px;
    transition: border-color .2s ease;
}
.ex-card.done { border-color: rgba(201, 249, 78, .3); }
.ex-head { display: flex; gap: 12px; padding: 14px 16px; align-items: flex-start; }
.ex-idx {
    width: 30px; height: 30px; flex: none; border-radius: 9px;
    background: var(--surface-2); border: 1px solid var(--line);
    display: grid; place-content: center; font-size: 13px; font-weight: 700; color: var(--text-dim);
}
.ex-card.done .ex-idx { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.ex-title { flex: 1; min-width: 0; }
.ex-title h3 { font-size: 16px; line-height: 1.25; }
.ex-title .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 5px; }
.tag {
    font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: var(--r-pill);
    background: var(--surface-2); color: var(--text-dim); border: 1px solid var(--line);
}
.tag.block { background: var(--accent-dim); color: var(--accent); border-color: rgba(201, 249, 78, .25); }
.ex-video {
    flex: none; width: 34px; height: 34px; border-radius: var(--r-pill);
    background: var(--surface-2); border: 1px solid var(--line);
    display: grid; place-content: center; color: var(--text-dim); font-size: 13px;
}

.coach-note {
    margin: 0 16px 12px; padding: 10px 12px;
    background: rgba(255, 138, 76, .08); border-left: 2px solid var(--cardio);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    font-size: 13px; color: #FFC7A5; line-height: 1.4;
}

.prev-line {
    margin: 0 16px 10px; font-size: 12px; color: var(--text-mute);
    display: flex; align-items: center; gap: 6px;
}
.prev-line b { color: var(--text-dim); font-weight: 600; }

.set-rows { padding: 0 12px 12px; }
.set-row {
    display: grid; grid-template-columns: 34px 1fr 1fr 46px;
    gap: 8px; align-items: center; padding: 5px 4px;
}
.set-row .n { font-size: 13px; font-weight: 700; color: var(--text-mute); text-align: center; }
.set-row.filled .n { color: var(--accent); }
.set-head { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-mute); font-weight: 700; }
.set-head > div { text-align: center; }

.inp {
    width: 100%; height: 48px; border-radius: var(--r-sm);
    background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
    font-size: 17px; font-weight: 600; text-align: center;
    font-variant-numeric: tabular-nums;
    -moz-appearance: textfield;
}
.inp::-webkit-outer-spin-button, .inp::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.inp:focus { outline: none; border-color: var(--accent); background: #1F2730; }
.inp::placeholder { color: var(--text-mute); font-weight: 500; }
.inp.na { opacity: .35; }

.tick {
    width: 46px; height: 46px; border-radius: var(--r-sm);
    border: 1px solid var(--line); background: var(--surface-2);
    color: var(--text-mute); font-size: 17px; display: grid; place-content: center;
}
.tick.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* ---------------------------------------------------------- rest timer */

.rest-bar {
    position: fixed; left: 0; right: 0;
    bottom: calc(var(--nav-h) + var(--safe-b));
    z-index: 40;
    display: flex; justify-content: center; padding: 0 14px 10px;
    pointer-events: none;
}
.rest-inner {
    pointer-events: auto;
    width: 100%; max-width: 492px;
    background: var(--surface-2); border: 1px solid var(--line);
    border-radius: var(--r); padding: 12px 14px;
    display: flex; align-items: center; gap: 12px;
    box-shadow: var(--shadow);
    animation: rise .25s ease both;
}
@keyframes rise { from { transform: translateY(12px); opacity: 0;} to { transform: none; opacity: 1;} }
.rest-inner .t { font-size: 24px; font-weight: 800; letter-spacing: -.02em; min-width: 66px; }
.rest-inner .lab { flex: 1; font-size: 12px; color: var(--text-mute); line-height: 1.3; }
.rest-inner .lab span { display: block; font-size: 10.5px; color: var(--text-dim); font-weight: 600; }
.rest-inner button {
    border: 1px solid var(--line); background: var(--surface); color: var(--text-dim);
    border-radius: var(--r-pill); height: 36px; padding: 0 14px; font-size: 13px; font-weight: 600;
}
.rest-track { height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; margin-top: 8px; }
.rest-track span { display: block; height: 100%; background: var(--accent); transition: width 1s linear; }

/* ---------------------------------------------------------- tables / lists */

.rows { display: flex; flex-direction: column; }
.row {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 0; border-bottom: 1px solid var(--line-soft);
}
.row:last-child { border-bottom: none; }
.row .main { flex: 1; min-width: 0; }
.main .t { font-size: 15px; font-weight: 600; }
.main .s { font-size: 12.5px; color: var(--text-mute); margin-top: 2px; line-height: 1.4; }
.row .val { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.row .val small { display: block; font-size: 11px; color: var(--text-mute); font-weight: 500; }
.row.flag .val { color: var(--danger); }

.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-mute); flex: none; }
.dot.flag { background: var(--danger); box-shadow: 0 0 0 3px rgba(255, 95, 109, .15); }
.dot.ok { background: var(--ok); }

.excluded .main .t { color: var(--text-mute); text-decoration: line-through; }

.checkline { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.checkline:last-child { border-bottom: none; }
.checkbox {
    width: 24px; height: 24px; flex: none; border-radius: 7px;
    border: 1.5px solid var(--line); background: var(--surface-2);
    display: grid; place-content: center; font-size: 13px; color: transparent;
}
.checkbox.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* ---------------------------------------------------------- charts */

.chart { width: 100%; height: auto; display: block; }
.chart-legend { display: flex; gap: 14px; font-size: 11.5px; color: var(--text-mute); margin-top: 8px; }
.chart-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }

.empty {
    text-align: center; padding: 34px 20px; color: var(--text-mute); font-size: 14px;
    border: 1px dashed var(--line); border-radius: var(--r);
}

/* ---------------------------------------------------------- bottom nav */

.tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    height: calc(var(--nav-h) + var(--safe-b));
    padding-bottom: var(--safe-b);
    background: rgba(14, 18, 23, .94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid var(--line-soft);
    display: flex;
    max-width: 520px; margin: 0 auto;
}

/* Aktif sekmenin arkasindaki kayan pastil */
.tab-slider {
    position: absolute; top: 7px; left: 0;
    width: calc(100% / var(--tab-count, 5));
    height: 46px;
    pointer-events: none;
    transition: transform .34s cubic-bezier(.34, 1.4, .5, 1);
}
/* Cerceve yok — sadece ikonun arkasinda yumusak bir isik ve ustte ince bir cizgi */
.tab-slider::before {
    content: ""; position: absolute; left: 50%; top: 4px;
    width: 44px; height: 38px; transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(201, 249, 78, .22), rgba(201, 249, 78, 0));
}
.tab-slider::after {
    content: ""; position: absolute; left: 50%; top: -7px;
    width: 22px; height: 3px; transform: translateX(-50%);
    border-radius: 0 0 3px 3px;
    background: var(--accent);
}

.tabbar a {
    position: relative; z-index: 1;
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    color: var(--text-mute); font-size: 9.5px; font-weight: 600; letter-spacing: .01em;
    padding-top: 4px;
}
.tabbar a .ti {
    display: grid; place-content: center; height: 26px;
    transition: transform .3s cubic-bezier(.34, 1.4, .5, 1);
}
.tabbar a svg { width: 21px; height: 21px; stroke-width: 1.8; }
.tabbar a .tlbl { transition: opacity .25s ease, font-weight .2s ease; }

.tabbar a.active { color: var(--accent); }
.tabbar a.active .ti { transform: translateY(-2px) scale(1.28); }
.tabbar a.active .tlbl { font-weight: 800; }
.tabbar a.active svg { stroke-width: 2.1; }

@media (prefers-reduced-motion: reduce) {
    .tab-slider, .tabbar a .ti { transition: none; }
}

/* ---------------------------------------------------------- sheet / modal */

.sheet-bg {
    position: fixed; inset: 0; z-index: 90;
    background: rgba(0, 0, 0, .6); backdrop-filter: blur(3px);
    display: flex; align-items: flex-end; justify-content: center;
    animation: fadein .2s ease both;
}
@keyframes fadein { from { opacity: 0;} to { opacity: 1;} }
.sheet {
    width: 100%; max-width: 520px;
    background: var(--bg-elev); border-top: 1px solid var(--line);
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    padding: 8px 18px calc(22px + var(--safe-b));
    animation: up .28s cubic-bezier(.22, 1, .36, 1) both;
    max-height: 88dvh; overflow-y: auto;
}
@keyframes up { from { transform: translateY(100%);} to { transform: none;} }
.sheet .grab { width: 38px; height: 4px; border-radius: 4px; background: var(--line); margin: 6px auto 16px; }
.sheet h2 { font-size: 20px; margin-bottom: 4px; }
.sheet .lead { color: var(--text-dim); font-size: 14px; margin-bottom: 18px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; color: var(--text-mute); font-weight: 600; margin-bottom: 6px; letter-spacing: .02em; }
.field .inp { text-align: left; padding: 0 14px; }
.field textarea.inp { height: auto; min-height: 76px; padding: 12px 14px; font-size: 15px; font-weight: 500; line-height: 1.5; resize: vertical; }

.toast {
    position: fixed; left: 50%; transform: translateX(-50%);
    bottom: calc(var(--nav-h) + var(--safe-b) + 18px); z-index: 100;
    background: var(--accent); color: var(--accent-ink);
    padding: 12px 20px; border-radius: var(--r-pill);
    font-size: 14px; font-weight: 700; box-shadow: var(--shadow);
    animation: rise .25s ease both;
}

/* ---------------------------------------------------------- misc */

.note-block {
    font-size: 12.5px; color: var(--text-mute); line-height: 1.55;
    padding: 14px 16px; border-radius: var(--r);
    background: var(--bg-elev); border: 1px solid var(--line-soft);
}
.rule-list { list-style: none; margin: 0; padding: 0; }
.rule-list li { position: relative; padding: 9px 0 9px 20px; font-size: 14px; color: var(--text-dim); line-height: 1.5; border-bottom: 1px solid var(--line-soft); }
.rule-list li:last-child { border-bottom: none; }
.rule-list li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

#blazor-error-ui {
    background: var(--danger); color: #fff; bottom: 0; display: none;
    left: 0; padding: 14px 18px; position: fixed; width: 100%; z-index: 1000; font-size: 14px;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 16px; top: 14px; }
#blazor-error-ui .reload { text-decoration: underline; }

/* FocusOnNavigate h1'e odak veriyor — görsel çerçeveyi bastır */
h1:focus, h1:focus-visible, [tabindex="-1"]:focus { outline: none; }


/* ============================================================
   Salon / Ev anahtari
   ============================================================ */

.place {
    display: flex; gap: 6px; margin-top: 14px; padding: 4px;
    background: var(--surface-2); border: 1px solid var(--line);
    border-radius: var(--r);
}
.place button {
    flex: 1; height: 40px; border-radius: var(--r-sm);
    display: flex; align-items: center; justify-content: center; gap: 7px;
    font-size: 13.5px; font-weight: 700; color: var(--text-mute);
    background: transparent; border: 1px solid transparent;
    transition: all .18s ease;
}
.place button .ic { display: grid; place-content: center; }
.place button .ic svg { width: 17px; height: 17px; }
.place button.on {
    background: var(--surface); color: var(--text);
    border-color: var(--line);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .3);
}

/* Ev modunda degistirilmis hareket isaretleri */
.bl.ev { color: var(--warn); }
.tag.ev {
    background: rgba(247, 181, 56, .16);
    border-color: rgba(247, 181, 56, .4);
    color: var(--warn);
}
.ex-tile .hn {
    margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line);
    font-size: 11px; line-height: 1.5; color: var(--text-mute);
}
.coach-note.ev {
    border-left-color: var(--warn);
    color: var(--text-dim);
}
.note-block.warn { border-color: rgba(247, 181, 56, .35); }


/* ---- ogunun pratik alternatifi ---- */

.meal-alt { margin-top: 10px; }
.meal-alt > button {
    width: 100%; display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; text-align: left;
    background: var(--surface-2); border: 1px solid var(--line);
    border-radius: var(--r-sm);
    transition: background .15s ease, border-color .15s ease;
}
.meal-alt.open > button {
    background: var(--accent-dim); border-color: rgba(201, 249, 78, .35);
    border-bottom-left-radius: 0; border-bottom-right-radius: 0;
}
.meal-alt .swap {
    width: 26px; height: 26px; flex: none; border-radius: 8px;
    background: var(--surface); border: 1px solid var(--line);
    display: grid; place-content: center;
    font-size: 13px; color: var(--accent);
}
.meal-alt .lbl { flex: 1; min-width: 0; }
.meal-alt .lbl b { display: block; font-size: 12.5px; font-weight: 700; color: var(--text); }
.meal-alt .lbl > span { font-size: 11px; color: var(--text-mute); }
.meal-alt .chev { color: var(--text-mute); font-size: 18px; transition: transform .18s ease; }
.meal-alt.open .chev { transform: rotate(90deg); }
.meal-alt .body {
    padding: 4px 12px 12px;
    background: var(--surface-2); border: 1px solid var(--line); border-top: 0;
    border-radius: 0 0 var(--r-sm) var(--r-sm);
}
.meal-alt .alt-note {
    margin-top: 8px; font-size: 11.5px; line-height: 1.6; color: var(--text-mute);
}


/* ============================================================
   Haftalik ilerleme karti
   ============================================================ */

.wp-card {
    margin-top: 12px; padding: 14px;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r);
    transition: transform .12s ease;
}
.wp-card:active { transform: scale(.99); }

.wp-head { display: flex; align-items: center; gap: 11px; }
.wp-ico {
    width: 30px; height: 30px; flex: none; border-radius: 10px;
    background: rgba(247, 181, 56, .16); color: var(--warn);
    display: grid; place-content: center;
}
.wp-ico svg { width: 16px; height: 16px; }

.wp-tx { flex: 1; min-width: 0; }
.wp-tx b { display: block; font-size: 13.5px; font-weight: 700; }
.wp-tx span { font-size: 11px; color: var(--text-mute); }

.wp-count { text-align: right; }
.wp-count b { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.wp-count b span { font-size: 12px; color: var(--text-mute); font-weight: 600; }
.wp-count small { display: block; font-size: 9.5px; color: var(--text-mute); letter-spacing: .06em; text-transform: uppercase; }

.wp-chev { color: var(--text-mute); font-size: 20px; margin-left: 2px; }

.wp-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 12px; }
.wp-day { text-align: center; min-width: 0; }
.wp-day .dot {
    height: 30px; border-radius: var(--r-sm);
    background: var(--surface-2); border: 1px solid var(--line);
    display: grid; place-content: center;
    font-size: 11.5px; font-weight: 800; color: var(--text-mute);
}
.wp-day span { display: block; margin-top: 4px; font-size: 9.5px; color: var(--text-mute); }
.wp-day.on .dot {
    background: var(--accent-dim); border-color: rgba(201, 249, 78, .45); color: var(--accent);
}
.wp-day.today .dot { border-color: var(--text-dim); }
.wp-day.future .dot { opacity: .4; }

/* ============================================================
   Ilerleme sayfasi
   ============================================================ */

.prog-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.ps {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r); padding: 14px 10px; text-align: center;
}
.ps .v { font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.ps .k { font-size: 10px; color: var(--text-mute); margin-top: 3px; }

.wk { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.wk:last-child { border-bottom: 0; }
.wk-tx { flex: 1; min-width: 0; }
.wk-tx b { display: block; font-size: 13px; font-weight: 700; }
.wk-tx span { font-size: 10.5px; color: var(--text-mute); }
.wk.now .wk-tx b { color: var(--accent); }

.wk-pips { display: flex; align-items: center; gap: 3px; }
.wk-pips span {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--surface-2); border: 1px solid var(--line);
}
.wk-pips span.on { background: var(--accent); border-color: var(--accent); }
.wk-pips span.extra {
    width: auto; height: auto; border: 0; background: none;
    font-size: 9.5px; color: var(--text-mute); margin-left: 2px;
}

.wk-n { font-size: 14px; font-weight: 800; min-width: 34px; text-align: right; color: var(--text-mute); }
.wk-n.ok { color: var(--accent); }
.wk-n small { font-size: 10px; font-weight: 600; }

.summary-row {
    width: 100%; display: flex; align-items: center; gap: 12px;
    margin-top: 14px; padding: 14px;
    background: linear-gradient(140deg, rgba(247, 181, 56, .12), var(--surface) 70%);
    border: 1px solid rgba(247, 181, 56, .28); border-radius: var(--r);
    text-align: left;
}
.sr-ico {
    width: 34px; height: 34px; flex: none; border-radius: 11px;
    background: rgba(247, 181, 56, .18); color: var(--warn);
    display: grid; place-content: center; font-size: 15px;
}
.sr-tx { flex: 1; min-width: 0; }
.sr-tx b { display: block; font-size: 13.5px; font-weight: 700; }
.sr-tx span { font-size: 11px; color: var(--text-mute); }
.sr-chev { color: var(--text-mute); font-size: 20px; }

/* ============================================================
   Once / sonra karsilastirmasi
   ============================================================ */

.cmp {
    margin-top: 14px; padding: 14px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.cmp-head b { display: block; font-size: 15px; font-weight: 800; }
.cmp-head span { font-size: 11.5px; color: var(--text-mute); }

.cmp-kinds { display: flex; gap: 6px; margin-top: 12px; }
.cmp-kinds button {
    flex: 1; height: 32px; border-radius: var(--r-sm);
    background: var(--surface-2); border: 1px solid var(--line);
    color: var(--text-mute); font-size: 12px; font-weight: 700;
}
.cmp-kinds button.on { background: var(--accent-dim); border-color: rgba(201, 249, 78, .45); color: var(--accent); }

.cmp-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin-top: 12px; }
.cp {
    position: relative; aspect-ratio: 3 / 4;
    background: var(--surface-2); border-radius: var(--r-sm); overflow: hidden;
}
.cp img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-empty {
    height: 100%; display: grid; place-content: center;
    font-size: 11px; color: var(--text-mute);
}
.cp-tag {
    position: absolute; left: 8px; bottom: 8px;
    padding: 3px 8px; border-radius: var(--r-pill);
    font-size: 9.5px; font-weight: 800; letter-spacing: .08em;
    background: rgba(10, 12, 15, .72); backdrop-filter: blur(4px);
}
.cp-tag.before { color: var(--text-dim); }
.cp-tag.after { color: var(--accent); }

.cmp-w { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.cw { flex: 1; text-align: center; }
.cw .k { font-size: 9.5px; letter-spacing: .1em; color: var(--text-mute); font-weight: 700; }
.cw .v { font-size: 26px; font-weight: 800; letter-spacing: -.03em; margin-top: 2px; }
.cw .v small { font-size: 12px; color: var(--text-mute); font-weight: 600; margin-left: 2px; }
.cw .d { font-size: 10px; color: var(--text-mute); margin-top: 2px; }
.cw-mid {
    padding: 6px 10px; border-radius: var(--r-pill);
    background: var(--surface-2); border: 1px solid var(--line);
    font-size: 12.5px; font-weight: 800; white-space: nowrap;
}
.cw-mid.down { color: var(--accent); border-color: rgba(201, 249, 78, .4); background: var(--accent-dim); }
.cw-mid.up { color: var(--danger); border-color: rgba(255, 95, 109, .4); }

.cmp-row { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.cmp-row:last-child { border-bottom: 0; }
.cmp-row .nm { flex: 1; min-width: 0; }
.cmp-row .b { color: var(--text-mute); }
.cmp-row .arrow { color: var(--text-mute); font-size: 11px; }
.cmp-row .a { font-weight: 700; }
.cmp-row .dl { min-width: 62px; text-align: right; font-size: 11.5px; font-weight: 700; color: var(--text-mute); }
.cmp-row .dl.down { color: var(--accent); }
.cmp-row .dl.up { color: var(--danger); }


/* ---- gun basligi acilir/kapanir ---- */

.day-head { cursor: pointer; }
.day-chev {
    color: var(--text-mute); font-size: 20px; margin-left: 4px;
    transition: transform .18s ease;
}
.day-head.open .day-chev { transform: rotate(90deg); }
.day-head.open { border-color: rgba(201, 249, 78, .32); }

.section-title .hint-inline {
    margin-left: 8px; font-size: 10px; font-weight: 500;
    color: var(--text-mute); letter-spacing: 0; text-transform: none;
}

/* ---- once/sonra: fotograf dokunulabilir ---- */

.cp img { cursor: zoom-in; }
.cmp-hint { margin-top: 8px; font-size: 10.5px; color: var(--text-mute); text-align: center; }


/* ---- ana ekran: kaydirarak gun secimi ---- */

/* Kayan serit: cerceve sabit, icindeki paneller yatayda kayiyor. */
.hero-box { overflow: hidden; touch-action: pan-y; }
/* Serit cerceve genisliginde olmali; yoksa 100%'lik paneller yanlis genislik aliyor. */
.hero-track { display: flex; width: 100%; will-change: transform; }
.hero-slide { flex: 0 0 100%; min-width: 0; }
.hero-slide > .hero { height: 100%; }
.hero.done { opacity: .96; }

/* Kicker uppercase + iki span; aralarindaki bosluk gorunsun diye kutulastirildi. */
.kicker { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.kicker .k-day { padding: 2px 7px; border-radius: var(--r-pill);
    background: rgba(10, 12, 15, .35); font-weight: 800;
}
.kicker .k-ev {
    padding: 2px 6px; border-radius: var(--r-pill);
    background: rgba(10, 12, 15, .35); color: var(--warn); font-weight: 800; font-size: 9px;
}

.hero-rest {
    margin-top: 12px; padding: 9px 11px; border-radius: var(--r-sm);
    background: rgba(10, 12, 15, .3);
    font-size: 11.5px; line-height: 1.5;
}

.hero-pick { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.hero-pick .arw {
    width: 34px; height: 30px; flex: none; border-radius: var(--r-sm);
    background: var(--surface); border: 1px solid var(--line);
    font-size: 17px; font-weight: 700; color: var(--text-dim);
}
.hero-pick .arw:disabled { opacity: .3; }
.hero-pick .dots { flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px; }
.hero-pick .dots button {
    width: 7px; height: 7px; padding: 0; border-radius: 50%;
    background: var(--surface-2); border: 1px solid var(--line);
    transition: width .18s ease, background .18s ease;
}
.hero-pick .dots button.on { width: 22px; border-radius: var(--r-pill); background: var(--accent); border-color: var(--accent); }

.hero-hint { margin-top: 9px; font-size: 10.5px; text-align: center; opacity: .6; }

.btn.danger-line { color: var(--danger); border-color: rgba(255, 95, 109, .35); }


/* ============================================================
   Antrenman — haftanin gunleri ve hareket listesi
   (Korhan Balli uygulamasinin duzeni, bizim renklerimizle)
   ============================================================ */

.daytabs {
    display: flex; gap: 8px; margin: 14px -16px 0; padding: 0 16px 4px;
    overflow-x: auto; scrollbar-width: none;
}
.daytabs::-webkit-scrollbar { display: none; }

.daytab {
    flex: 0 0 auto; width: 84px; min-height: 92px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 6px; border-radius: var(--r);
    background: var(--surface); border: 1px solid var(--line);
    transition: all .18s ease;
}
.daytab .wd { font-size: 12px; font-weight: 800; letter-spacing: .04em; color: var(--text-dim); }
.daytab .ic { display: grid; place-content: center; height: 22px; color: var(--text-mute); }
.daytab .ic svg { width: 20px; height: 20px; }
.daytab .ic .done {
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--accent); color: var(--accent-ink);
    display: grid; place-content: center; font-size: 12px; font-weight: 800;
}
.daytab .nm { font-size: 10.5px; line-height: 1.25; color: var(--text-mute); text-align: center; }

.daytab.today { border-color: rgba(201, 249, 78, .45); }
.daytab.rest { opacity: .7; }
.daytab.on {
    background: var(--accent); border-color: var(--accent);
    box-shadow: 0 6px 18px rgba(201, 249, 78, .18);
}
.daytab.on .wd, .daytab.on .ic, .daytab.on .nm { color: var(--accent-ink); }
.daytab.on .nm { font-weight: 600; }
.daytab.on .ic .done { background: var(--accent-ink); color: var(--accent); }

/* ---- gun basligi ---- */

.dayhead { margin-top: 18px; }
.dayhead .eyebrow {
    display: flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 800; letter-spacing: .12em;
    color: var(--accent); text-transform: uppercase;
}
.dayhead .eyebrow svg { width: 14px; height: 14px; }
.dayhead h2 { font-size: 30px; font-weight: 800; letter-spacing: -.03em; margin: 4px 0 0; }
.dayhead > span { font-size: 13px; color: var(--text-mute); }

/* ---- tekil hareket satiri ---- */

.exrow {
    display: flex; align-items: center; gap: 10px;
    margin-top: 10px; padding: 14px 14px 14px 16px;
    background: var(--surface); border-radius: var(--r);
    border: 1px solid var(--line);
    border-left: 3px solid var(--cardio);
    transition: transform .12s ease;
}
.exrow:active { transform: scale(.995); }
.exrow.ev { border-left-color: var(--warn); }
.exrow .tx { flex: 1; min-width: 0; }
.exrow .no { font-size: 11px; color: var(--text-mute); font-weight: 700; }
.exrow .nm { font-size: 16px; font-weight: 700; margin-top: 2px; }
.exrow .sr { font-size: 13px; color: var(--text-mute); margin-top: 3px; }
.exrow .tr { font-size: 11.5px; color: var(--text-mute); opacity: .75; margin-top: 2px; }

.info {
    width: 24px; height: 24px; flex: none; border-radius: 50%;
    border: 1px solid var(--line); color: var(--text-mute);
    display: grid; place-content: center;
    font-size: 12px; font-style: italic; font-weight: 700;
}

/* ---- superset kutusu ---- */

.ssblock {
    margin-top: 10px; padding: 14px;
    background: var(--surface); border-radius: var(--r);
    border: 1px solid rgba(201, 249, 78, .32);
    border-left: 3px solid var(--accent);
}
.ss-top { display: flex; align-items: center; gap: 10px; }
.ss-top .chip {
    padding: 4px 10px; border-radius: var(--r-pill);
    background: var(--accent-dim); color: var(--accent);
    font-size: 12px; font-weight: 700;
}
.ss-top b { font-size: 13.5px; color: var(--accent); font-weight: 700; }

.ss-note {
    margin-top: 10px; padding: 11px 12px;
    border: 1px solid rgba(201, 249, 78, .2); border-radius: var(--r-sm);
    font-size: 12.5px; line-height: 1.55; color: var(--text-dim);
}

.ss-row {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 0; border-bottom: 1px solid var(--line-soft);
}
.ss-row:last-child { border-bottom: 0; padding-bottom: 2px; }
.ss-row .tx { flex: 1; min-width: 0; }
.ss-row .nm { font-size: 15px; font-weight: 700; }
.ss-row .sr { font-size: 12.5px; color: var(--text-mute); margin-top: 2px; }

/* ============================================================
   Hareket detay penceresi (alttan acilir)
   ============================================================ */

.sheet-bg {
    position: fixed; inset: 0; z-index: 70;
    background: rgba(5, 7, 10, .72); backdrop-filter: blur(3px);
    animation: fade .18s ease;
}
.sheet {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 71;
    max-height: 88vh; overflow-y: auto;
    padding: 10px 16px calc(24px + var(--safe-b));
    background: var(--bg-elev);
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    border-top: 1px solid var(--line);
    animation: sheetUp .26s cubic-bezier(.25, .9, .35, 1);
}
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.sheet-grip {
    width: 44px; height: 4px; border-radius: 2px;
    background: var(--line); margin: 2px auto 12px;
}
.sheet-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.sheet-head h3 { flex: 1; min-width: 0; font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.sheet-head button {
    width: 30px; height: 30px; flex: none; border-radius: 50%;
    background: var(--surface-2); border: 1px solid var(--line);
    color: var(--text-dim); font-size: 13px;
}

.sheet-novideo {
    padding: 16px; border-radius: var(--r);
    background: var(--surface-2); border: 1px dashed var(--line);
    font-size: 12.5px; line-height: 1.6; color: var(--text-mute);
}

.sheet-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.sheet-chips .chip {
    padding: 7px 14px; border-radius: var(--r-pill);
    background: var(--surface-2); border: 1px solid var(--line);
    font-size: 13px; color: var(--text-dim);
}
.sheet-chips .chip.on {
    background: var(--accent-dim); border-color: rgba(201, 249, 78, .45); color: var(--accent);
    font-weight: 600;
}

.sheet-program {
    margin-top: 14px; padding: 14px;
    background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r);
}
.sheet-program .k,
.sheet-desc .k {
    font-size: 10.5px; font-weight: 700; letter-spacing: .12em;
    color: var(--text-mute); text-transform: uppercase;
}
.sheet-program b { display: block; margin-top: 5px; font-size: 16px; font-weight: 700; }

.sheet-desc { margin-top: 16px; }
.sheet-desc p { margin-top: 6px; font-size: 14px; line-height: 1.65; color: var(--text-dim); }

/* ---- satir ici video ---- */

.vinline { margin-top: 2px; }
.vi-frame {
    position: relative; aspect-ratio: 16 / 9;
    border-radius: var(--r); overflow: hidden; background: #000;
}
.vi-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

.vi-blocked {
    position: relative; display: block; aspect-ratio: 16 / 9;
    border-radius: var(--r); overflow: hidden; background: #000;
}
.vi-blocked img { width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.vi-play {
    position: absolute; inset: 0; margin: auto;
    width: 62px; height: 44px; border-radius: 12px;
    background: #FF0000; color: #fff;
    display: grid; place-content: center;
}
.vi-play svg { width: 30px; height: 30px; }
.vi-badge {
    position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%);
    padding: 5px 12px; border-radius: var(--r-pill);
    background: rgba(10, 12, 15, .82);
    font-size: 11.5px; font-weight: 600; white-space: nowrap;
}
.vi-open {
    display: block; margin-top: 8px; text-align: right;
    font-size: 12px; color: var(--text-mute);
}


/* ============================================================
   Ana sayfa — sıradaki öğün
   ============================================================ */

.next-meal {
    display: flex; align-items: center; gap: 12px;
    margin-top: 12px; padding: 14px;
    background: var(--surface); border: 1px solid var(--line);
    border-left: 3px solid var(--warn); border-radius: var(--r);
}
.next-meal.done { border-left-color: var(--accent); }
.nm-ic {
    width: 42px; height: 42px; flex: none; border-radius: 12px;
    background: rgba(247, 181, 56, .14); color: var(--warn);
    display: grid; place-content: center; font-weight: 800;
}
.next-meal.done .nm-ic { background: var(--accent-dim); color: var(--accent); }
.nm-ic svg { width: 22px; height: 22px; }
.nm-tx { flex: 1; min-width: 0; }
.nm-tx .k { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; color: var(--warn); }
.next-meal.done .nm-tx .k { color: var(--accent); }
.nm-tx b { display: block; font-size: 16px; font-weight: 700; margin-top: 1px; }
.nm-tx > span:last-child { font-size: 12.5px; color: var(--text-mute); }
.nm-chev { color: var(--text-mute); font-size: 22px; }

/* ============================================================
   Beslenme programı
   ============================================================ */

.nut-head { padding-top: 6px; }
.nut-head .eyebrow {
    display: flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 800; letter-spacing: .12em; color: var(--accent);
}
.nut-head .eyebrow svg { width: 15px; height: 15px; }
.nut-head h1 { font-size: 32px; font-weight: 800; letter-spacing: -.03em; margin: 4px 0 12px; text-transform: capitalize; }
.nut-supp {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 16px; border-radius: var(--r);
    background: var(--surface); border: 1px solid var(--line);
    font-size: 14px; font-weight: 600; color: var(--text);
}
.nut-supp svg { width: 16px; height: 16px; color: var(--text-dim); }

.daytab.small { width: 64px; min-height: 64px; gap: 6px; }

.nut-notes { margin: 16px 0 0; padding: 0; list-style: none; }
.nut-notes li {
    position: relative; padding-left: 12px; margin-bottom: 10px;
    font-size: 13px; line-height: 1.55; color: var(--text-mute); font-style: italic;
}
.nut-notes li::before { content: "•"; position: absolute; left: 0; }

.nut-target {
    margin-top: 6px; padding: 16px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.nt-top { display: flex; align-items: center; justify-content: space-between; }
.nt-top .k { font-size: 12px; font-weight: 800; letter-spacing: .12em; color: var(--text-dim); }
.nt-water { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; font-weight: 600; }
.nt-water svg { width: 15px; height: 15px; color: var(--water); }
.nt-kcal { margin-top: 6px; font-size: 16px; color: var(--text-dim); }
.nt-kcal b { font-size: 40px; font-weight: 800; letter-spacing: -.03em; color: var(--warn); margin-right: 4px; }

.nt-bar { display: flex; height: 8px; margin-top: 14px; border-radius: var(--r-pill); overflow: hidden; gap: 2px; }
.nt-bar span { height: 100%; }
.nt-bar .p { background: #3B82F6; }
.nt-bar .c { background: var(--warn); }
.nt-bar .f { background: var(--danger); }

.nt-macros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.nt-macros > div { display: flex; flex-direction: column; min-width: 0; }
.nt-macros .lbl { display: flex; align-items: center; gap: 5px; min-width: 0; font-size: 9.5px; font-weight: 800; letter-spacing: 0; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nt-macros .dot { width: 9px; height: 9px; flex: none; border-radius: 50%; }
.nt-macros .dot.p { background: #3B82F6; }
.nt-macros .dot.c { background: var(--warn); }
.nt-macros .dot.f { background: var(--danger); }
.nt-macros b { font-size: 22px; font-weight: 800; margin-top: 6px; }
.nt-macros b small { font-size: 13px; color: var(--text-mute); font-weight: 600; }
.nt-macros em { font-style: normal; font-size: 12px; color: var(--text-mute); }

.nt-done {
    display: flex; justify-content: space-between; margin-top: 14px; padding-top: 12px;
    border-top: 1px solid var(--line-soft); font-size: 12.5px; color: var(--text-mute);
}

/* ---- öğün kartı ---- */

.meal2 {
    margin-top: 12px; padding: 16px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.meal2.done { border-color: rgba(201, 249, 78, .3); }
.m2-head { display: flex; align-items: center; gap: 8px; }
.m2-head h3 { font-size: 20px; font-weight: 800; }
.m2-trophy { color: var(--accent); display: grid; place-content: center; }
.m2-trophy svg { width: 20px; height: 20px; }
.m2-macro { font-size: 13px; color: var(--text-mute); margin-top: 4px; }
.m2-note { margin-top: 12px; font-size: 13.5px; line-height: 1.55; color: var(--text-dim); }

.m2-item {
    display: flex; align-items: flex-start; gap: 12px; width: 100%;
    padding: 12px 0; text-align: left; background: none; border: 0;
    border-bottom: 1px solid var(--line-soft);
}
.m2-item:last-of-type { border-bottom: 0; }
.m2-item .cb {
    width: 24px; height: 24px; flex: none; margin-top: 1px; border-radius: 7px;
    border: 1.5px solid var(--line); display: grid; place-content: center;
    font-size: 13px; font-weight: 800; color: var(--accent-ink);
}
.m2-item.on .cb { background: var(--accent); border-color: var(--accent); }
.m2-item .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.m2-item .tx b { font-size: 15.5px; font-weight: 700; color: var(--text); }
.m2-item.on .tx b { color: var(--text-mute); text-decoration: line-through; }
.m2-item .tx > span { font-size: 12.5px; color: var(--text-mute); }
.m2-item .tx em { font-size: 13px; color: var(--accent); opacity: .85; }

.m2-complete {
    width: 100%; height: 48px; margin-top: 12px; border-radius: var(--r);
    background: var(--surface-2); border: 1px solid var(--line);
    font-size: 15px; font-weight: 700; color: var(--text);
}
.m2-complete.on {
    background: var(--accent-dim); border-color: rgba(201, 249, 78, .45); color: var(--accent);
}
