/* FitCore Pro – Dark-Mode-First im schmidtke.network-Look (Navy, Cyan, Silber) */
:root {
  --bg: #0F172A; --bg2: #0a1020; --card: #18223a; --card2: #212d49; --line: #2c3a58; --text: #F1F5F9; --muted: #94A3B8;
  --em: #10B981; --cy: #06B6D4; --am: #F59E0B; --red: #EF4444; --navy: #13237a; --royal: #2d5bd0; --scy: #1fb5f0; --silver: #c9ced8;
  --grad: linear-gradient(135deg, #1e40b8, #2d5bd0 50%, #1fb5f0); --r: 16px; --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --line2: #2c3a5866; --pop: #0b1226; --glow: #16276b55; --topbg: #0b1226e6; --redbg: #3a1820; --redbd: #7f1d1d; --redtxt: #fca5a5; --prbg: linear-gradient(135deg, #3b2a05, #1a1405);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #eef2f8; --bg2: #f5f7fb; --card: #ffffff; --card2: #e9eff8; --line: #d3dcea; --line2: #d3dcea; --text: #0f1a3a; --muted: #5b6785;
  --em: #059669; --cy: #0891b2; --am: #d97706; --red: #dc2626; --pop: #ffffff; --glow: #2d5bd022; --topbg: #ffffffe8;
  --redbg: #fee2e2; --redbd: #fca5a5; --redtxt: #b91c1c; --prbg: linear-gradient(135deg, #fef3c7, #fffbeb); --shadow: 0 10px 30px rgba(19, 35, 122, .16);
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
body { min-height: 100vh; padding-bottom: calc(84px + env(safe-area-inset-bottom)); background: radial-gradient(1200px 500px at 50% -200px, var(--glow), transparent), var(--bg); }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; text-wrap: balance; }
h1 { font-size: 24px; } h2 { font-size: 19px; } h3 { font-size: 15px; letter-spacing: .02em; } h4 { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
p { margin: 0; } b, strong { font-weight: 650; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
svg { display: block; }
.muted { color: var(--muted); } .sm { font-size: 13px; } .xs { font-size: 11.5px; } .num { font-variant-numeric: tabular-nums; }
.em { color: var(--em); } .cy { color: var(--cy); } .am { color: var(--am); } .red { color: var(--red); }
.grow { flex: 1; } .row { display: flex; align-items: center; gap: 10px; } .sp { justify-content: space-between; } .wrapf { flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 10px; } .mt { margin-top: 12px; } .mt2 { margin-top: 20px; } .center { text-align: center; }

.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 8px 16px; padding-top: calc(8px + env(safe-area-inset-top));
  background: var(--topbg); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.logo { height: 34px; width: auto; }
.logo-d { filter: brightness(1.45) saturate(1.1); } .logo-l { display: none; }
:root[data-theme="light"] .logo-d { display: none; } :root[data-theme="light"] .logo-l { display: block; }
.appname { font-size: 16px; padding-left: 10px; border-left: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.appname b { background: linear-gradient(90deg, var(--scy), var(--em)); -webkit-background-clip: text; background-clip: text; color: transparent; }
#view { max-width: 1120px; margin: 0 auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 14px; align-items: start; }
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; } .g4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card.hero { background: linear-gradient(140deg, #1a2f86, #17306e 45%, #0e5a7a); border-color: #3b5bd066; color: #f1f5f9; }
.card.hero .btn:not(.em):not(.brand):not(.red) { background: #ffffff1f; border-color: #ffffff3d; color: #fff; } .card.hero .bar { background: #0a102066; }
.card.glow { border-color: #10b98155; box-shadow: 0 0 0 1px #10b98122, 0 8px 30px #10b98118; }

.btn { min-height: 46px; padding: 0 16px; border-radius: 13px; background: var(--card2); border: 1px solid var(--line); font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; transition: transform .08s, filter .15s; color: var(--text); }
.btn:active { transform: scale(.97); } .btn:hover { filter: brightness(1.12); }
.btn.em { background: var(--em); border-color: var(--em); color: #04231a; } .btn.cy { background: var(--cy); border-color: var(--cy); color: #03252c; }
.btn.am { background: var(--am); border-color: var(--am); color: #2b1a02; } .btn.red { background: var(--redbg); border-color: var(--redbd); color: var(--redtxt); }
.btn.brand { background: var(--grad); border-color: transparent; color: #fff; } .btn.ghost { background: transparent; }
.btn.sm { min-height: 44px; padding: 0 12px; font-size: 13.5px; } .btn.lg { min-height: 58px; font-size: 17px; border-radius: 16px; } .btn.block { width: 100%; }
.ib { width: 44px; height: 44px; border-radius: 12px; display: inline-grid; place-items: center; background: var(--card2); border: 1px solid var(--line); flex: none; font-size: 17px; }
.ib svg, .tabs svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; } .chips::-webkit-scrollbar { display: none; }
.chip { min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); white-space: nowrap; font-size: 13.5px; font-weight: 550; color: var(--muted); flex: none; }
.chip.on { background: #10b98122; border-color: var(--em); color: var(--em); }
.seg { display: flex; background: var(--bg2); border: 1px solid var(--line); border-radius: 13px; padding: 3px; gap: 3px; overflow-x: auto; scrollbar-width: none; }
.seg button { flex: 1; min-height: 40px; padding: 0 12px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.seg button.on { background: var(--card2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 650; background: #94a3b822; color: var(--muted); }
.badge.em { background: #10b98122; color: var(--em); } .badge.am { background: #f59e0b22; color: var(--am); } .badge.cy { background: #06b6d422; color: var(--cy); } .badge.red { background: #ef444422; color: var(--redtxt); }

input, select, textarea { font: inherit; color: var(--text); background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; min-height: 46px; padding: 0 12px; width: 100%; min-width: 0; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--scy); box-shadow: 0 0 0 3px #1fb5f022; }
input[type=range] { padding: 0; min-height: 30px; accent-color: var(--em); } input[type=checkbox] { width: 22px; height: 22px; min-height: 0; accent-color: var(--em); flex: none; }
.fld { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); min-width: 0; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; }

.li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line2); min-width: 0; text-align: left; width: 100%; }
.li:last-child { border-bottom: 0; } .li .t { flex: 1; min-width: 0; } .li .t b, .li .t span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.exi { width: 48px; height: 48px; border-radius: 13px; flex: none; display: grid; place-items: center; background: linear-gradient(145deg, #1e40b8, #13237a); border: 1px solid #3b5bd055; overflow: hidden; }
.exi svg { width: 44px; height: 44px; } .exi.c-ca { background: linear-gradient(145deg, #0e7490, #134e6f); border-color: #06b6d455; }
.exgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.excard { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); text-align: left; min-width: 0; }
.excard:hover { border-color: var(--scy); }
.fig { background: radial-gradient(circle at 50% 35%, #1b2a55, #0a1020); border: 1px solid var(--line); border-radius: 14px; padding: 6px; }
.fig svg { width: 100%; height: auto; max-height: 250px; }
.figphase { text-align: center; font-size: 12px; color: #94a3b8; margin-top: -4px; }
.bodymap { width: 100%; max-width: 250px; margin: 0 auto; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); } .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; }

.tile { background: var(--bg2); border: 1px solid var(--line); border-radius: 13px; padding: 10px 12px; min-width: 0; text-align: left; }
.tile .v { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; } .tile .v small { font-size: 12px; font-weight: 500; color: var(--muted); }
.tile .l { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar { height: 9px; background: var(--bg2); border-radius: 99px; overflow: hidden; border: 1px solid var(--line2); } .bar i { display: block; height: 100%; border-radius: 99px; background: var(--em); transition: width .4s; }
.ringbox { position: relative; width: 168px; height: 168px; flex: none; } .ringbox svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ringbox .mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; } .ringbox .mid b { font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.scale { position: relative; height: 14px; border-radius: 99px; display: flex; overflow: hidden; } .scale i { height: 100%; }
.scalewrap { position: relative; padding-top: 14px; } .scalewrap .mark { position: absolute; top: 0; width: 0; height: 0; border: 7px solid transparent; border-top: 10px solid var(--text); transform: translateX(-7px); }
.chartwrap { position: relative; max-width: 560px; margin: 0 auto; width: 100%; } .chartwrap svg { width: 100%; height: auto; touch-action: pan-y; }
.cg { stroke: var(--line); } .ct { fill: var(--muted); } .cl { fill: var(--text); } .cgd { stroke: var(--text); } .cp { stroke: var(--card); } .rtrack { stroke: var(--bg2); }
:root[data-theme="light"] .rtrack { stroke: #dfe6f1; }
.tip { position: absolute; top: 0; pointer-events: none; background: var(--pop); box-shadow: var(--shadow); border: 1px solid var(--line); border-radius: 10px; padding: 6px 9px; font-size: 12px; white-space: nowrap; z-index: 3; display: none; }
.tip i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; } th { text-align: left; color: var(--muted); font-weight: 550; font-size: 12px; padding: 6px 4px; } td { padding: 7px 4px; border-top: 1px solid var(--line2); font-variant-numeric: tabular-nums; }

.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(6, 1fr); align-items: end; padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  background: var(--topbg); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.tabs button { min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; color: var(--muted); border-radius: 12px; }
.tabs button.on { color: var(--em); }
.tabs .fab { width: 60px; height: 60px; min-height: 60px; margin: -22px auto 0; border-radius: 50%; background: linear-gradient(135deg, #10b981, #06b6d4); color: #04231a; box-shadow: 0 8px 24px #10b98166, 0 0 0 5px var(--bg); }
.tabs .fab svg { width: 28px; height: 28px; fill: currentColor; stroke: none; }

#modal, #pad { position: fixed; inset: 0; z-index: 60; display: none; background: #020617b3; align-items: flex-end; justify-content: center; }
#modal.on, #pad.on { display: flex; } #pad { z-index: 80; background: #02061766; }
.sheet { width: 100%; max-width: 640px; max-height: 92vh; overflow-y: auto; background: var(--bg); border: 1px solid var(--line); border-bottom: 0; border-radius: 22px 22px 0 0; padding: 16px 16px calc(20px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); animation: up .22s ease-out; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@media (min-width: 720px) { #modal { align-items: center; } #modal .sheet { border-radius: 22px; border-bottom: 1px solid var(--line); } }
.sheet .hd { display: flex; align-items: center; gap: 10px; position: sticky; top: -16px; background: var(--bg); padding: 6px 0; z-index: 2; margin: -6px 0; }
.padkeys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; } .padkeys button { min-height: 58px; font-size: 22px; font-weight: 650; border-radius: 14px; background: var(--card2); border: 1px solid var(--line); }
.padkeys button.fn { font-size: 15px; color: var(--scy); } .padkeys button.ok { background: var(--em); color: #04231a; border-color: var(--em); font-size: 16px; }
.padval { font-size: 40px; font-weight: 750; text-align: center; font-variant-numeric: tabular-nums; min-height: 56px; }
#toast { position: fixed; left: 50%; top: calc(70px + env(safe-area-inset-top)); transform: translateX(-50%); z-index: 99; display: flex; flex-direction: column; gap: 8px; width: min(94vw, 460px); pointer-events: none; }
.toast { background: var(--pop); border: 1px solid var(--line); border-left: 4px solid var(--em); border-radius: 13px; padding: 12px 14px; box-shadow: var(--shadow); animation: up .25s; }
.toast.pr { border-color: var(--am); background: var(--prbg); } .toast.pr b { color: var(--am); font-size: 16px; }

#live { position: fixed; inset: 0; z-index: 50; background: var(--bg); display: none; flex-direction: column; } #live.on { display: flex; }
.livehd { display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 14px 10px; border-bottom: 1px solid var(--line); background: var(--pop); }
.livebody { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 12px; max-width: 760px; width: 100%; margin: 0 auto; }
.setrow { display: grid; grid-template-columns: 46px minmax(0, 1fr) 76px 76px 52px; gap: 6px; align-items: center; }
.setrow.hdr { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; text-align: center; }
.settype { height: 48px; border-radius: 12px; font-weight: 750; background: var(--card2); border: 1px solid var(--line); }
.settype.W { color: var(--cy); } .settype.A { color: var(--text); } .settype.D { color: #c084fc; } .settype.F { color: var(--red); }
.prev { background: #94a3b814; color: var(--muted); border-radius: 10px; padding: 4px 8px; font-size: 12.5px; min-height: 48px; display: flex; flex-direction: column; justify-content: center; line-height: 1.25; overflow: hidden; }
.prev b { color: var(--text); opacity: .8; font-weight: 600; white-space: nowrap; }
.val { height: 48px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.val.empty { color: #64748b; font-weight: 500; }
.chk { height: 48px; border-radius: 12px; background: var(--card2); border: 1px solid var(--line); font-size: 22px; color: #64748b; }
.setrow.done .chk { background: var(--em); border-color: var(--em); color: #04231a; } .setrow.done .val { border-color: #10b98155; background: #10b98112; }
.setrow.pr .chk { background: var(--am); border-color: var(--am); }
.timer { border-top: 1px solid var(--line); background: var(--pop); padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); display: none; flex-direction: column; gap: 8px; }
.timer.on { display: flex; } .timer .time { font-size: 30px; font-weight: 750; font-variant-numeric: tabular-nums; min-width: 92px; }
.timer .bar { height: 8px; } .timer .bar i { background: linear-gradient(90deg, var(--scy), var(--em)); transition: width .25s linear; }
.tl { position: relative; padding-left: 26px; display: flex; flex-direction: column; gap: 14px; } .tl:before { content: ''; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl .ev { position: relative; } .tl .ev:before { content: ''; position: absolute; left: -22px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--em); box-shadow: 0 0 0 4px var(--bg); }
.tl .ev.am:before { background: var(--am); } .tl .ev.cy:before { background: var(--cy); }
.trophies { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.trophy { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 10px; text-align: center; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.trophy .ic { font-size: 34px; filter: grayscale(1) opacity(.35); } .trophy.ok { border-color: #f59e0b88; background: linear-gradient(160deg, #f59e0b26, var(--card)); } .trophy.ok .ic { filter: none; }
.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; } .errs { margin: 0; padding-left: 18px; color: var(--redtxt); display: flex; flex-direction: column; gap: 4px; }
.note { background: #06b6d414; border: 1px solid #06b6d444; border-radius: 12px; padding: 10px 12px; font-size: 13.5px; } .note.am { background: #f59e0b14; border-color: #f59e0b55; } .note.em { background: #10b98114; border-color: #10b98155; }
details > summary { cursor: pointer; list-style: none; } details > summary::-webkit-details-marker { display: none; }
@media (max-width: 560px) { .logo { height: 28px; } .appname { display: none; } .hide-s { display: none; } .g4 { grid-template-columns: 1fr 1fr; } #view { padding: 12px; } .fig svg { max-height: 200px; } .setrow { grid-template-columns: 42px minmax(0, 1fr) 68px 64px 50px; } }
@media (min-width: 900px) { .tabs { left: 50%; right: auto; transform: translateX(-50%); bottom: 14px; width: 620px; border: 1px solid var(--line); border-radius: 22px; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
