/* Sztanga styles. Fonts: Barlow + Barlow Condensed (SIL OFL), served locally for offline use. */
@font-face{font-family:'Barlow';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/barlow-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Barlow';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/barlow-latin-ext-400-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Barlow';font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/barlow-latin-500-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Barlow';font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/barlow-latin-ext-500-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Barlow';font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/barlow-latin-600-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Barlow';font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/barlow-latin-ext-600-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Barlow';font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/barlow-latin-700-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Barlow';font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/barlow-latin-ext-700-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Barlow Condensed';font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/barlow-condensed-latin-600-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Barlow Condensed';font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/barlow-condensed-latin-ext-600-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Barlow Condensed';font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/barlow-condensed-latin-700-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Barlow Condensed';font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/barlow-condensed-latin-ext-700-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
:root {
  --bg: #0E0F11; --s1: #17191C; --s2: #202328; --s3: #23262B; --line: #2B2F35; --line2: #3A3F46;
  --tx: #F1F2EE; --tx2: #A7ADB4; --tx3: #868D95;
  --lime: #C8F135; --lime-t: rgba(200, 241, 53, 0.14); --lime-d: rgba(200, 241, 53, 0.08);
  --amber: #FFB547; --amber-t: rgba(255, 181, 71, 0.12); --red: #FF8A7A; --tab: #121316;
  --st: env(safe-area-inset-top, 0px); --sb: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--tx); font: 16px/1.35 'Barlow', system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body { overscroll-behavior: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; touch-action: manipulation; }
button:disabled { opacity: 0.35; cursor: default; }
a { color: inherit; text-decoration: none; touch-action: manipulation; }
input, select, textarea { font: inherit; font-size: 16px; color: var(--tx); background: var(--s2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%; outline: none; }
select { appearance: none; -webkit-appearance: none; }
input:focus, select:focus, textarea:focus { border-color: var(--lime); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cond { font-family: 'Barlow Condensed', 'Barlow', sans-serif; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--tx2); }
.dim { color: var(--tx3); }
.lime { color: var(--lime); }
.amber { color: var(--amber); }
.white { color: var(--tx); }
.grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.pad { padding: 0 20px; }
.sec { margin: 16px 20px 0; }
.boot { position: fixed; inset: 0; display: grid; place-items: center; font-size: 44px; font-weight: 700; color: var(--lime); }
.boot-err { padding: 80px 24px; text-align: center; color: var(--tx2); }

/* layout */
.shell, .view { position: fixed; inset: 0; }
.view { display: flex; flex-direction: column; }
.scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding-bottom: 28px; }
.top { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding: calc(var(--st) + 18px) 16px 0 20px; }
.h1 { font-family: 'Barlow Condensed', 'Barlow', sans-serif; font-size: 42px; line-height: 1; font-weight: 700; }
.h2 { font-size: 17px; font-weight: 700; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.empty { padding: 32px 20px; text-align: center; color: var(--tx2); }
.empty a, .banner a { color: var(--lime); }

/* building blocks */
.card { background: var(--s1); border: 1px solid var(--line); border-radius: 20px; padding: 16px; }
.card.big { border-radius: 24px; padding: 18px; }
.pill { display: flex; align-items: center; gap: 5px; height: 40px; padding: 0 12px; border-radius: 999px; background: var(--s1); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--tx2); white-space: nowrap; }
.pill b { font-family: 'Barlow Condensed', sans-serif; font-size: 20px; color: var(--tx); font-weight: 700; }
.iconbtn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; color: var(--tx2); flex: none; }
.iconbtn.box { background: var(--s1); border: 1px solid var(--line); color: var(--tx); }
.iconbtn.sm { width: 36px; height: 36px; }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; padding: 0 18px; border-radius: 16px; font-size: 17px; font-weight: 700; background: var(--s1); border: 1px solid var(--line); color: var(--tx); }
.btn.primary { background: var(--lime); border-color: var(--lime); color: #0E0F11; }
.btn.xl { min-height: 56px; font-size: 18px; }
.btn.small { width: auto; min-height: 44px; font-size: 15px; border-radius: 14px; padding: 0 16px; flex: none; }
.btn.small.wide { width: 100%; }
.btn.ghost { background: none; border: 1px dashed var(--line2); color: var(--tx2); font-size: 15px; min-height: 44px; }
.btn.danger { color: var(--red); }
.btn:active, .key:active, .fld:active, .ck:active { transform: scale(0.97); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 8px; font-size: 13px; font-weight: 700; background: var(--s2); color: #C9CDD2; }
.chip.lime { background: var(--lime-t); color: var(--lime); }
.chip.amber { background: var(--amber-t); color: var(--amber); }
.chip.big { min-height: 44px; padding: 0 16px; font-size: 15px; border-radius: 12px; border: 1px solid var(--line); background: var(--s1); color: var(--tx); }
.chip.fixed { min-width: 60px; justify-content: center; }
.banner { display: flex; gap: 10px; align-items: center; margin: 14px 20px 0; padding: 10px 6px 10px 14px; border-radius: 14px; background: var(--s2); font-size: 14px; color: #C9CDD2; }
.banner.inset { margin: 12px 0 0; padding: 10px 12px; align-items: flex-start; }
.badge { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 16px; background: var(--lime); color: #0E0F11; }
.lrow { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 0; border-top: 1px solid var(--line); }
.lrow:first-child { border-top: 0; }
.lrow.tall { min-height: 64px; }
.lrow.wide { width: 100%; text-align: left; }
.lrow .t { font-size: 17px; font-weight: 600; }
.lrow .s { font-size: 14px; color: var(--tx2); }
.kg { font-family: 'Barlow Condensed', sans-serif; font-size: 22px; font-weight: 600; white-space: nowrap; }
.big-num { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 30px; line-height: 1; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.segs { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 4px; }
.segs span { height: 6px; border-radius: 3px; background: var(--line); }
.segs span.on { background: var(--lime); }
.ic.dim { color: var(--tx3); }

/* week strip */
.week { display: flex; gap: 6px; padding: 16px 20px 0; }
.day { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0 9px; border-radius: 14px; background: var(--s1); border: 1px solid var(--line); }
.day .l { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: var(--tx2); }
.day .n { font-family: 'Barlow Condensed', sans-serif; font-size: 22px; line-height: 1; font-weight: 600; }
.day .d { width: 6px; height: 6px; border-radius: 3px; }
.day.on .d { background: var(--lime); }
.day.today { background: var(--lime); border-color: var(--lime); color: #0E0F11; }
.day.today .l { color: #0E0F11; }
.day.today.on .d { background: #0E0F11; }

/* tab bar */
.tabwrap { flex: none; }
.tabbar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 6px 8px calc(var(--sb) + 6px); background: var(--tab); border-top: 1px solid var(--line); }
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 50px; padding: 5px 0; color: var(--tx2); font-size: 12px; font-weight: 600; }
.tab.on { color: var(--lime); }
.activebar { display: flex; align-items: center; gap: 10px; margin: 0 12px 8px; min-height: 48px; padding: 0 14px; border-radius: 16px; background: var(--lime); color: #0E0F11; font-weight: 700; }

/* workout */
.wk-head { flex: none; display: flex; align-items: center; gap: 12px; padding: calc(var(--st) + 14px) 12px 12px 20px; border-bottom: 1px solid var(--line); }
.wk-head h1 { font-family: 'Barlow Condensed', sans-serif; font-size: 28px; line-height: 1; font-weight: 700; }
.ex { padding: 14px 0 12px; border-bottom: 1px solid var(--line); }
.ex-head { display: flex; align-items: center; gap: 8px; padding: 0 8px 0 20px; }
.ex-head h2 { flex: 1; min-width: 0; font-size: 21px; font-weight: 700; }
.ex-head h2 span { font-weight: 500; color: var(--tx2); }
.ex .chips { padding: 6px 20px 0; }
.plates-line { display: flex; align-items: center; gap: 6px; padding: 8px 20px 0; font-size: 14px; color: var(--tx2); }
.set-head, .set { display: grid; grid-template-columns: 36px minmax(0, 1fr) 76px 64px 48px; align-items: center; gap: 6px; }
.set-head { padding: 12px 16px 6px 20px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tx3); }
.set-head span { text-align: center; }
.set-head span:nth-child(2) { text-align: left; }
.set { margin: 4px 12px 0; padding: 4px 4px 4px 8px; border-radius: 12px; }
.set.done { background: var(--lime-d); }
.set.cur { background: var(--s1); }
.set .tag { font-family: 'Barlow Condensed', sans-serif; font-size: 22px; font-weight: 700; text-align: center; }
.set .tag.w { color: var(--tx2); font-size: 20px; }
.set .prev { font-size: 15px; color: var(--tx2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fld { height: 44px; border-radius: 10px; border: 2px solid transparent; background: var(--s3); font-family: 'Barlow Condensed', sans-serif; font-size: 22px; font-weight: 600; color: var(--tx); }
.fld.ph { color: var(--tx3); }
.fld.on { border-color: var(--lime); background: var(--bg); }
.ck { width: 44px; height: 44px; justify-self: center; display: grid; place-items: center; border-radius: 12px; border: 2px solid #4A5058; color: var(--tx3); }
.ck.on { background: var(--lime); border-color: var(--lime); color: #0E0F11; }
.addset { margin: 8px 12px 0; width: calc(100% - 24px); }

/* keypad */
.keypad { flex: none; display: flex; flex-direction: column; gap: 10px; padding: 8px 12px calc(var(--sb) + 12px); background: #15171A; border-top: 1px solid var(--line); user-select: none; -webkit-user-select: none; }
.kp-head { display: flex; align-items: center; gap: 8px; padding-left: 4px; }
.kp-title { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kp-hint { font-size: 14px; color: var(--tx2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; }
.kp-close { width: 44px; height: 36px; display: grid; place-items: center; color: var(--tx2); flex: none; }
.kp-body { display: flex; gap: 8px; }
.kp-grid { flex: 3; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.kp-side { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.key { height: 50px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--s3); font-family: 'Barlow Condensed', sans-serif; font-size: 26px; font-weight: 600; }
.kp-side .key { font-size: 21px; }
.key.main { flex: 1; height: auto; flex-direction: column; gap: 2px; background: var(--lime); color: #0E0F11; font-family: 'Barlow', sans-serif; font-size: 16px; font-weight: 700; }

/* rest timer */
.restbar { flex: none; position: relative; display: flex; align-items: center; gap: 6px; padding: 8px 12px calc(var(--sb) + 8px); background: #15171A; border-top: 1px solid var(--line); overflow: hidden; }
.restbar .prog { position: absolute; left: 0; top: 0; height: 3px; background: var(--lime); transition: width 0.25s linear; }
.rb-main { flex: 1; display: flex; align-items: center; gap: 8px; min-height: 48px; color: var(--lime); text-align: left; }
.rb-time { font-size: 30px; font-weight: 700; color: var(--tx); min-width: 64px; }
.rb-lbl { font-size: 14px; font-weight: 600; color: var(--tx2); }
.rb-btn { min-width: 52px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--s3); font-family: 'Barlow Condensed', sans-serif; font-size: 20px; font-weight: 600; }
.restbar.go { background: var(--lime); }
.restbar.go .rb-main, .restbar.go .rb-time, .restbar.go .rb-lbl { color: #0E0F11; }
.restbar.go .rb-btn { background: rgba(14, 15, 17, 0.14); color: #0E0F11; }
.overlay { position: fixed; inset: 0; z-index: 20; display: flex; flex-direction: column; overflow-y: auto; background: var(--bg); padding-bottom: calc(var(--sb) + 20px); }
.ring { position: relative; width: 280px; height: 280px; margin: 20px auto 0; flex: none; }
.ring svg { display: block; }
.ring .c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.ring .t { font-family: 'Barlow Condensed', sans-serif; font-size: 92px; line-height: 1; font-weight: 700; font-variant-numeric: tabular-nums; }
.platebar { display: block; width: 100%; height: auto; margin: 12px 0 8px; }

/* sheets, toast */
.sheet-bg { position: fixed; inset: 0; z-index: 30; display: flex; align-items: flex-end; background: rgba(0, 0, 0, 0.55); }
.sheet { width: 100%; max-height: 88vh; overflow-y: auto; background: var(--s1); border-top: 1px solid var(--line); border-radius: 22px 22px 0 0; padding: 8px 16px calc(var(--sb) + 18px); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 0 6px 4px; }
.sheet-head h2 { font-size: 18px; font-weight: 700; }
.menu button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 0 6px; border-top: 1px solid var(--line); font-size: 17px; font-weight: 600; text-align: left; }
.menu button:first-child { border-top: 0; }
.menu .danger { color: var(--red); }
.toast { position: fixed; left: 16px; right: 16px; top: calc(var(--st) + 12px); z-index: 40; display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 14px; background: #2B2F35; color: var(--tx); font-weight: 600; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); animation: tin 0.2s ease-out; }
.toast.pr { background: var(--amber); color: #1A1405; }
.toast.err { background: #5A1F1A; }
@keyframes tin { from { transform: translateY(-12px); opacity: 0; } to { transform: none; opacity: 1; } }

/* summary, stats */
.stats4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.stat { display: flex; flex-direction: column; gap: 2px; padding: 12px 10px; background: var(--s1); border: 1px solid var(--line); border-radius: 16px; min-width: 0; }
.stat b { font-family: 'Barlow Condensed', sans-serif; font-size: 26px; line-height: 1.1; font-weight: 700; white-space: nowrap; }
.stat span { font-size: 13px; font-weight: 600; color: var(--tx2); }
.pr-row { display: flex; align-items: center; gap: 12px; margin-top: 8px; padding: 11px 14px; border-radius: 14px; background: var(--amber-t); }
.pr-row .v { font-family: 'Barlow Condensed', sans-serif; font-size: 24px; font-weight: 700; color: var(--amber); white-space: nowrap; }

/* progress */
.seg { display: flex; padding: 2px; border-radius: 12px; background: var(--s1); border: 1px solid var(--line); }
.seg button { flex: 1; height: 40px; padding: 0 12px; border-radius: 10px; font-size: 14px; font-weight: 700; color: var(--tx2); white-space: nowrap; }
.seg button.on { background: var(--line); color: var(--tx); }
.mbar { display: grid; grid-template-columns: 92px minmax(0, 1fr) 34px; align-items: center; gap: 10px; margin-top: 9px; }
.mbar .track { position: relative; height: 12px; border-radius: 6px; background: var(--s3); overflow: hidden; }
.mbar .band { position: absolute; top: 0; bottom: 0; background: #30353C; }
.mbar .fill { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 6px; background: #6B727A; }
.mbar .fill.ok { background: var(--lime); }
.mbar .v { font-family: 'Barlow Condensed', sans-serif; font-size: 20px; font-weight: 600; text-align: right; }
.cal { display: flex; gap: 4px; }
.cal .col { display: flex; flex-direction: column; gap: 4px; }
.cal i { width: 12px; height: 12px; border-radius: 3px; background: #262A2F; }
.cal i.on { background: var(--lime); }
.cal i.fut { background: transparent; box-shadow: inset 0 0 0 1px #262A2F; }
.chart { display: block; width: 100%; height: auto; }
.chart .gl { stroke: #23262B; stroke-width: 1; }
.chart .gl.base { stroke: var(--line); }
.chart .ax { fill: var(--tx3); font-size: 11px; font-family: 'Barlow', sans-serif; }
.chart .ax.end { text-anchor: end; }
.chart .area { fill: rgba(200, 241, 53, 0.1); }
.chart .ln { fill: none; stroke: var(--lime); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot { fill: var(--bg); stroke: var(--lime); stroke-width: 3; }
.chart-empty { padding: 40px 12px; text-align: center; color: var(--tx2); font-size: 15px; }

/* forms */
.field { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.field.sec { margin-top: 16px; }
.field label { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tx3); }
.stepper { display: flex; align-items: center; gap: 8px; }
.st-label { flex: 1; font-size: 15px; color: var(--tx2); }
.st-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--s3); }
.st-val { min-width: 72px; text-align: center; font-size: 24px; font-weight: 600; }
.toggle-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.toggle-chips button { min-width: 56px; height: 44px; padding: 0 12px; border-radius: 12px; background: var(--s3); font-family: 'Barlow Condensed', sans-serif; font-size: 20px; font-weight: 600; color: var(--tx2); }
.toggle-chips button.on { background: var(--lime-t); color: var(--lime); box-shadow: inset 0 0 0 2px var(--lime); }
label.btn { cursor: pointer; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* v1.1: motivation photo, plan details, supersets, RIR */
.photo { position: relative; margin-bottom: 0; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 24px; background: var(--s1); border: 1px solid var(--line); }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 20px; border: 1.5px dashed var(--line2); color: var(--tx2); text-align: center; cursor: pointer; }
.photo .ph-t { font-size: 17px; font-weight: 700; color: var(--tx); }
.photo .ph-s { font-size: 14px; }
.photo-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 18px 14px; background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.72)); font-family: 'Barlow Condensed', sans-serif; font-size: 26px; line-height: 1.1; font-weight: 700; color: #fff; }
.photo-edit { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: rgba(14, 15, 17, 0.55); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.banner.lime-b { background: var(--lime-t); color: var(--tx); }
.banner.lime-b .ic { color: var(--lime); }
.banner .btn.small { min-height: 40px; }
.day.plan .d { background: #4A5058; }
.day.today.plan .d { background: rgba(14, 15, 17, 0.45); }
.pairtag { display: inline-grid; place-items: center; min-width: 30px; height: 22px; margin-right: 8px; padding: 0 5px; border-radius: 6px; background: var(--lime-t); color: var(--lime); font-family: 'Barlow Condensed', sans-serif; font-size: 15px; font-weight: 700; vertical-align: 2px; }
.ex-hint { padding: 4px 20px 0; font-size: 13px; color: var(--lime); }
.ex-note { display: flex; align-items: flex-start; gap: 6px; padding: 8px 20px 0; font-size: 14px; color: #C9CDD2; }
.ex-note .ic { flex: none; margin-top: 2px; color: var(--tx3); }
.ex-foot { display: flex; align-items: center; gap: 8px; margin: 8px 12px 0; }
.ex-foot .btn.ghost { flex: 1; width: auto; }
.rir { display: flex; align-items: center; gap: 4px; flex: none; }
.rir span { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--tx3); margin-right: 2px; }
.rir button { width: 40px; height: 44px; border-radius: 10px; background: var(--s3); font-family: 'Barlow Condensed', sans-serif; font-size: 20px; font-weight: 600; color: var(--tx2); }
.rir button.on { background: var(--lime); color: #0E0F11; }
.warm { display: flex; gap: 8px; align-items: flex-start; margin: 12px 12px 0; padding: 10px 12px; border-radius: 14px; background: var(--s1); border: 1px solid var(--line); font-size: 14px; color: #C9CDD2; }
.warm .ic { flex: none; margin-top: 1px; }
.mbar .tick { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: #F1F2EE; z-index: 2; border-radius: 1px; }
.mbar .track { overflow: visible; }
.mbar .fill { z-index: 1; }
.grid3.mini { gap: 8px; }
.grid3.mini .field { margin-top: 0; }
.grid3.mini input { padding: 10px 10px; }
.toggle-chips.days button { min-width: 44px; font-size: 17px; }
textarea { resize: vertical; }
