/* =========================================================
   Alaitz Fit · Journal Fitness
   ========================================================= */
:root {
  --bg: #f3ede3; --bg-2: #ebe3d5; --card: #fbf8f2; --ink: #1c1915; --ink-2: #5d564b;
  --olive: #8a8150; --pink: #e0457b; --pink-2: #ff7aa6; --pink-soft: rgba(224, 69, 123, .12);
  --green: #4f8a5b; --line: rgba(28, 25, 21, .12); --shadow: 0 24px 50px -30px rgba(40, 30, 15, .45);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --f-display: "Anton", Impact, sans-serif; --f-script: "Cormorant Garamond", Georgia, serif; --f-body: "Manrope", system-ui, sans-serif;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #15130f; --bg-2: #1d1a15; --card: #221f19; --ink: #f3ede3; --ink-2: #b4ab9b; --olive: #c9bf88;
  --line: rgba(243, 237, 227, .12); --shadow: 0 24px 50px -30px rgba(0, 0, 0, .8); --pink-soft: rgba(224, 69, 123, .2);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }

.app { max-width: 540px; margin: 0 auto; min-height: 100svh; padding-bottom: calc(96px + env(safe-area-inset-bottom)); position: relative; }
@media (min-width: 600px) { body { background: var(--bg-2); } .app { background: var(--bg); box-shadow: 0 0 0 1px var(--line), 0 40px 80px -40px rgba(0,0,0,.4); } }

/* ---------- Tipografía y utilidades ---------- */
.kicker { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; font-weight: 700; color: var(--olive); margin-bottom: 6px; }
.h1 { font-family: var(--f-display); text-transform: uppercase; font-size: 38px; line-height: 1; letter-spacing: .01em; }
.h1 em, .script { font-family: var(--f-script); font-style: italic; text-transform: none; color: var(--pink); font-weight: 500; font-size: 1.12em; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.tiny { font-size: 11.5px; }
.center { text-align: center; }
.row { display: flex; gap: 10px; align-items: center; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.mt { margin-top: 12px; } .mt2 { margin-top: 20px; }
.logo { font-family: var(--f-display); font-size: 22px; letter-spacing: .06em; text-decoration: none; }
.logo span { font-family: var(--f-script); font-style: italic; color: var(--pink); font-size: 1.1em; letter-spacing: 0; margin-left: 2px; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 22px; border-radius: 99px; border: 1.5px solid transparent; font-weight: 700; font-size: 15px; text-decoration: none; transition: transform .2s var(--ease), background .2s, color .2s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn-pink { background: var(--pink); color: #fff; box-shadow: 0 12px 26px -12px rgba(224, 69, 123, .75); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-ghost { border-color: var(--line); background: var(--card); }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }
.full { width: 100%; }
.link { background: none; border: 0; padding: 6px 2px; font-weight: 700; color: var(--pink); font-size: 14px; }
.link.danger { color: #c0392b; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; padding: 0; flex: none; }
.icon-btn svg { width: 18px; height: 18px; }
.x-btn { border: 0; background: none; color: var(--ink-2); font-size: 20px; line-height: 1; padding: 4px 6px; }

/* ---------- Cabecera ---------- */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: calc(12px + env(safe-area-inset-top)) 16px 12px; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top .logo small { font-family: var(--f-body); font-size: 10px; letter-spacing: .26em; color: var(--ink-2); display: block; margin-top: -2px; font-weight: 700; }
.theme-toggle { flex: none; width: 54px; height: 30px; border-radius: 99px; border: 1.5px solid var(--ink); background: transparent; position: relative; padding: 0; }
.theme-toggle span { position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 50%; background: var(--ink); transition: transform .35s var(--ease), background .35s; z-index: 1; }
.theme-toggle::before, .theme-toggle::after { position: absolute; top: 50%; transform: translateY(-50%); font-size: 12px; line-height: 1; }
.theme-toggle::before { content: "☾"; right: 7px; color: var(--ink); }
.theme-toggle::after { content: "☀"; left: 7px; color: #f3ede3; }
[data-theme="dark"] .theme-toggle span { transform: translateX(24px); background: var(--pink); }

/* ---------- Tabbar ---------- */
.tabbar { position: fixed; z-index: 30; left: 50%; transform: translateX(-50%); bottom: 0; width: min(540px, 100%); display: grid; grid-template-columns: repeat(5, 1fr); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
.tab { border: 0; background: none; display: grid; justify-items: center; gap: 3px; padding: 6px 0; font-size: 11px; font-weight: 700; color: var(--ink-2); border-radius: 14px; }
.tab svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tab.is-on { color: var(--pink); background: var(--pink-soft); }

/* ---------- Vistas ---------- */
.view { padding: 6px 0 20px; animation: fadeUp .45s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.hello { padding: 16px 18px 6px; }
.streak { display: inline-flex; gap: 6px; align-items: center; margin-top: 10px; padding: 6px 12px; border-radius: 99px; background: var(--pink-soft); color: var(--pink); font-weight: 800; font-size: 13px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 18px; margin: 12px 14px; box-shadow: var(--shadow); }
.card h3 { font-family: var(--f-display); text-transform: uppercase; font-size: 19px; letter-spacing: .02em; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.empty { padding: 14px; border-radius: 16px; background: var(--bg-2); color: var(--ink-2); font-size: 14px; text-align: center; }
.banner { display: flex; gap: 12px; align-items: center; margin: 12px 14px; padding: 14px 16px; border-radius: 18px; background: var(--pink); color: #fff; box-shadow: 0 16px 30px -18px rgba(224,69,123,.9); }
.banner.soft { background: var(--pink-soft); color: var(--ink); box-shadow: none; border: 1px solid rgba(224,69,123,.25); }
.banner b { display: block; }
.banner .btn { margin-left: auto; }
.banner.soft .btn { background: var(--pink); color: #fff; }
.banner:not(.soft) .btn { background: #fff; color: var(--pink); }

/* Tira de fechas */
.dates { display: grid; grid-template-columns: 30px repeat(7, 1fr) 30px; gap: 4px; align-items: center; padding: 12px 10px 4px; }
.dates .arr { border: 0; background: none; font-size: 20px; color: var(--ink-2); padding: 0; height: 52px; }
.dates .arr:disabled { opacity: .25; }
.d { border: 1px solid transparent; background: none; border-radius: 14px; padding: 6px 0; display: grid; justify-items: center; gap: 1px; color: var(--ink-2); position: relative; }
.d small { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.d b { font-size: 17px; color: var(--ink); font-weight: 800; }
.d.is-on { background: var(--ink); border-color: var(--ink); }
.d.is-on small, .d.is-on b { color: var(--bg); }
.d.is-today:not(.is-on) { border-color: var(--pink); }
.d:disabled { opacity: .3; }
.d i { width: 5px; height: 5px; border-radius: 50%; background: var(--pink); position: absolute; bottom: 2px; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--line); background: transparent; border-radius: 99px; padding: 9px 14px; font-weight: 700; font-size: 13.5px; transition: background .2s, border-color .2s, color .2s; }
.chip.is-on { background: var(--pink); border-color: var(--pink); color: #fff; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; margin: 10px 14px 0; background: var(--bg-2); border-radius: 99px; }
.seg button { border: 0; background: none; border-radius: 99px; padding: 10px 6px; font-weight: 800; font-size: 13.5px; color: var(--ink-2); }
.seg button.is-on { background: var(--card); color: var(--ink); box-shadow: 0 4px 14px -6px rgba(0,0,0,.25); }

/* Pasos */
.steps-wrap { display: grid; grid-template-columns: 116px 1fr; gap: 16px; align-items: center; }
.ring { position: relative; width: 116px; height: 116px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring .bgc { stroke: var(--bg-2); }
.ring .fgc { stroke: var(--pink); stroke-linecap: round; transition: stroke-dashoffset .6s var(--ease); }
.ring .ring-txt { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-txt b { font-family: var(--f-display); font-size: 24px; font-weight: 400; line-height: 1; }
.ring-txt span { font-size: 11px; color: var(--ink-2); font-weight: 700; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.quick button { border: 1px solid var(--line); background: var(--bg-2); border-radius: 99px; padding: 6px 11px; font-size: 12.5px; font-weight: 800; }

/* Inputs */
.field { display: grid; gap: 5px; margin-bottom: 12px; }
.field > span { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.inp, .field input, .field select, .field textarea { width: 100%; border: 1.5px solid var(--line); background: var(--bg); border-radius: 14px; padding: 12px 14px; font-size: 16px; outline: none; transition: border-color .2s; }
.inp:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--pink); }
textarea { resize: vertical; min-height: 84px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.unit { position: relative; }
.unit input { padding-right: 40px; }
.unit em { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 13px; color: var(--ink-2); font-weight: 700; pointer-events: none; }
input[type="range"] { width: 100%; accent-color: var(--pink); }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-weight: 700; }
.switch input { appearance: none; -webkit-appearance: none; width: 48px; height: 28px; border-radius: 99px; background: var(--bg-2); border: 1px solid var(--line); position: relative; transition: background .2s; flex: none; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); transition: transform .25s var(--ease); }
.switch input:checked { background: var(--pink); }
.switch input:checked::after { transform: translateX(20px); }

/* Agua */
.water { display: flex; flex-wrap: wrap; gap: 6px; }
.glass { width: 34px; height: 42px; border: 1.5px solid var(--line); border-radius: 6px 6px 12px 12px; background: transparent; position: relative; overflow: hidden; padding: 0; }
.glass::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: linear-gradient(#7cc4e8, #4fa3d1); transition: height .35s var(--ease); }
.glass.is-on::after { height: 78%; }

/* Escalas */
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.scale button { border: 1.5px solid var(--line); background: transparent; border-radius: 14px; padding: 8px 0; font-size: 22px; line-height: 1.1; transition: transform .2s var(--ease), background .2s, border-color .2s; }
.scale button.is-on { background: var(--pink-soft); border-color: var(--pink); transform: scale(1.06); }
.scale-lbl { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-2); font-weight: 700; margin: 4px 2px 12px; }

/* Listas */
.list { display: grid; gap: 8px; }
.item { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; background: var(--bg-2); border: 0; text-align: left; width: 100%; }
.item .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--card); display: grid; place-items: center; font-size: 19px; flex: none; }
.item b { display: block; font-size: 14.5px; }
.item .field b, .item .field span b { display: inline; font-size: inherit; }
.item small { color: var(--ink-2); font-size: 12.5px; display: block; }
.item .thumb { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; flex: none; background: var(--card); }
.tag { display: inline-block; padding: 3px 9px; border-radius: 99px; background: var(--pink-soft); color: var(--pink); font-size: 11.5px; font-weight: 800; }
.tag.ok { background: rgba(79,138,91,.15); color: var(--green); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { background: var(--bg-2); border-radius: 16px; padding: 12px 10px; text-align: center; }
.stat b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 24px; line-height: 1.05; }
.stat small { font-size: 11px; color: var(--ink-2); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.up { color: var(--green); } .down { color: var(--pink); }

/* Plantillas */
.tpl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tpl { position: relative; text-align: left; border: 1.5px solid var(--line); background: var(--bg-2); border-radius: 18px; padding: 14px; display: grid; gap: 4px; min-height: 86px; transition: border-color .2s, transform .2s var(--ease); }
.tpl:active { transform: scale(.98); }
.tpl b { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: 17px; line-height: 1.05; }
.tpl span { font-size: 12px; color: var(--ink-2); font-weight: 600; }
.tpl.mine { border-color: rgba(224,69,123,.4); }
.tpl .tpl-x { position: absolute; top: 6px; right: 6px; }

/* Entreno activo */
.wk-head { position: sticky; top: 63px; z-index: 15; display: flex; gap: 10px; align-items: center; margin: 0; padding: 12px 14px; background: var(--bg); border-bottom: 1px solid var(--line); }
.wk-name { flex: 1; min-width: 0; border: 0; background: none; font-family: var(--f-display); text-transform: uppercase; font-size: 22px; outline: none; padding: 0; }
.wk-time { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--pink); font-size: 15px; }
.ex-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; margin-bottom: 10px; }
.set-row { display: grid; grid-template-columns: 38px 1fr 1fr 46px; gap: 8px; align-items: center; margin-bottom: 7px; }
.set-row.head { font-size: 11px; font-weight: 800; color: var(--ink-2); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.set-row.head span { text-align: center; }
.set-n { width: 30px; height: 30px; border-radius: 50%; background: var(--bg-2); display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.set-row input { width: 100%; text-align: center; border: 1.5px solid var(--line); background: var(--bg); border-radius: 12px; padding: 10px 4px; font-size: 16px; font-weight: 700; outline: none; }
.set-row input:focus { border-color: var(--pink); }
.check { height: 40px; border-radius: 12px; border: 1.5px solid var(--line); background: transparent; font-size: 17px; font-weight: 900; color: var(--ink-2); }
.set-row.is-done input { background: rgba(79,138,91,.1); border-color: rgba(79,138,91,.35); }
.set-row.is-done .check { background: var(--green); border-color: var(--green); color: #fff; }
.set-row.is-done .set-n { background: var(--green); color: #fff; }
.ex-actions { display: flex; gap: 16px; margin-top: 4px; }

/* Descanso */
.rest { position: fixed; z-index: 35; left: 50%; transform: translateX(-50%); bottom: calc(84px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 99px; background: var(--ink); color: var(--bg); box-shadow: 0 18px 40px -16px rgba(0,0,0,.6); animation: fadeUp .3s var(--ease); }
.rest b { font-variant-numeric: tabular-nums; font-size: 18px; min-width: 50px; }
.rest button { border: 0; border-radius: 99px; padding: 7px 11px; font-weight: 800; font-size: 12.5px; background: rgba(255,255,255,.14); color: inherit; }
[data-theme="dark"] .rest button { background: rgba(0,0,0,.1); }

/* Gráficas */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { font-size: 10px; fill: var(--ink-2); font-family: var(--f-body); font-weight: 700; }
.chart .grid { stroke: var(--line); stroke-dasharray: 3 4; }
.chart .ln { fill: none; stroke: var(--pink); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot { fill: var(--card); stroke: var(--pink); stroke-width: 2; }
.chart .bar { fill: var(--pink); opacity: .35; }
.chart .bar.ok { opacity: 1; }
.chart .goal { stroke: var(--ink); stroke-dasharray: 4 4; opacity: .5; }

/* Fotos */
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ph { position: relative; aspect-ratio: 3/4; border-radius: 14px; border: 1.5px dashed var(--line); background: var(--bg-2); display: grid; place-items: center; overflow: hidden; color: var(--ink-2); font-size: 12px; font-weight: 700; text-align: center; cursor: pointer; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ph-one { aspect-ratio: 16/10; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.compare figure { margin: 0; position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 3/4; background: var(--bg-2); }
.compare img { width: 100%; height: 100%; object-fit: cover; }
.compare figcaption { position: absolute; left: 8px; bottom: 8px; background: var(--card); padding: 4px 10px; border-radius: 99px; font-size: 11.5px; font-weight: 800; }

/* Sheet */
.sheet-wrap { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.sheet-bg { position: absolute; inset: 0; background: rgba(20, 16, 12, .5); opacity: 0; transition: opacity .3s; }
.sheet { position: relative; width: min(540px, 100%); max-height: 92svh; overflow: auto; overscroll-behavior: contain; background: var(--card); border-radius: 26px 26px 0 0; padding: 8px 18px calc(22px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .38s var(--ease); }
.sheet-wrap.is-open .sheet-bg { opacity: 1; }
.sheet-wrap.is-open .sheet { transform: none; }
.sheet-grab { width: 44px; height: 5px; border-radius: 9px; background: var(--line); margin: 4px auto 10px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 10px; position: sticky; top: -8px; background: var(--card); padding: 6px 0; z-index: 2; }
.sheet-head h2 { font-family: var(--f-display); text-transform: uppercase; font-size: 24px; }
.ex-search { position: sticky; top: 44px; z-index: 2; background: var(--card); padding-bottom: 8px; }
.ex-group h4 { margin: 14px 0 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--olive); }
.ex-pick { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 12px 4px; font-weight: 700; font-size: 15px; }

/* Acceso / bienvenida */
.gate { min-height: 100svh; display: grid; place-items: center; padding: 24px 16px; }
.gate-card { width: 100%; max-width: 460px; background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 30px 22px; box-shadow: var(--shadow); animation: fadeUp .6s var(--ease); }
.gate-card .h1 { font-size: 46px; margin: 4px 0 12px; }
.gate-hero { margin: -30px -22px 20px; height: 230px; border-radius: 28px 28px 0 0; overflow: hidden; position: relative; }
.gate-hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.gate-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, var(--card)); }
.feat { list-style: none; padding: 0; margin: 16px 0 18px; display: grid; gap: 8px; }
.feat li { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 14px; }
.feat li span { width: 30px; height: 30px; border-radius: 10px; background: var(--pink-soft); display: grid; place-items: center; flex: none; }
details.code { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
details.code summary { cursor: pointer; font-weight: 800; font-size: 14px; color: var(--ink-2); }

/* Toast */
.toast { position: fixed; z-index: 80; left: 50%; top: calc(16px + env(safe-area-inset-top)); transform: translate(-50%, -140%); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 99px; font-weight: 700; font-size: 14px; box-shadow: 0 18px 40px -16px rgba(0,0,0,.6); transition: transform .4s var(--ease); max-width: calc(100% - 32px); text-align: center; }
.toast.is-on { transform: translate(-50%, 0); }

.pr { text-align: center; padding: 10px 0; }
.pr .big { font-size: 60px; line-height: 1; }
@media (max-width: 360px) { .h1 { font-size: 32px; } .steps-wrap { grid-template-columns: 96px 1fr; } .ring { width: 96px; height: 96px; } }

/* Mensaje de la entrenadora */
.card.coach { border-color: rgba(224,69,123,.35); background: linear-gradient(135deg, var(--pink-soft), var(--card) 70%); }
.card.coach p:last-child { font-size: 15px; line-height: 1.5; }

/* Plan personalizado de Alaitz */
.card.plan { border-color: rgba(224,69,123,.35); background: linear-gradient(160deg, var(--pink-soft), var(--card) 60%); }
.card.plan h3 { margin-top: 2px; }
.plan-day { border: 1px solid var(--line); border-radius: 16px; background: var(--card); padding: 12px 14px; }
.plan-day + .plan-day { margin-top: 8px; }
.plan-day summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; cursor: pointer; }
.plan-day summary::-webkit-details-marker { display: none; }
.plan-day summary::after { content: "▾"; color: var(--pink); font-weight: 800; }
.plan-day[open] summary::after { content: "▴"; }
.plan-day summary .tiny { margin-left: auto; }
.plan-ex { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); }
.plan-day summary + .plan-ex { margin-top: 10px; }
.plan-ex .tiny { color: var(--pink); font-weight: 600; }
.target { margin-top: 6px; font-size: 12.5px; font-weight: 700; color: var(--pink); line-height: 1.35; }
.target span { font-weight: 500; color: var(--ink-2); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; line-height: 1.4; color: var(--ink-2); margin: 2px 0 14px; text-align: left; }
.consent input { width: 20px; height: 20px; flex: none; margin: 1px 0 0; accent-color: var(--pink); }
.consent a { color: var(--pink); font-weight: 700; }
