:root {
  --green: #1B7F5C; --green-dark: #0F5B43; --green-soft: #DDF1E8; --ink: #1B2A33; --muted: #6B7A86; --bg: #EFF3F6;
  --card: #fff; --line: #E3E8EC; --red: #E5534B; --amber: #D98B1F; --blue: #3B82C4; --slate: #46525C;
  --radius: 18px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
button, input, select, textarea { font: inherit; color: inherit; }
h1 { font-size: 26px; margin: 4px 0 2px; } h2 { font-size: 18px; margin: 0 0 6px; } h3 { font-size: 15px; margin: 0 0 4px; }
.muted { color: var(--muted); } .small { font-size: 12px; } .tiny { font-size: 11px; } .green { color: var(--green); } .red { color: var(--red); } .bold { font-weight: 600; }
.page { max-width: 880px; margin: 0 auto; padding: 14px 14px 96px; display: flex; flex-direction: column; gap: 12px; }
.card { background: var(--card); border-radius: var(--radius); padding: 16px; box-shadow: 0 1px 2px rgba(20,40,60,.06); }
.card.click { cursor: pointer; }
.row { display: flex; align-items: center; gap: 10px; } .row.wrap { flex-wrap: wrap; } .grow { flex: 1; min-width: 0; } .between { justify-content: space-between; }
.col { display: flex; flex-direction: column; gap: 8px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.btn { border: 0; border-radius: 14px; padding: 11px 16px; background: var(--green); color: #fff; font-weight: 600; cursor: pointer; }
.btn.slate { background: var(--slate); } .btn.ghost { background: #fff; color: var(--green); border: 1.5px solid var(--line); } .btn.danger { background: var(--red); }
.btn.small { padding: 7px 12px; font-size: 13px; border-radius: 12px; } .btn:disabled { opacity: .5; cursor: default; }
.link { background: none; border: 0; color: var(--green); font-weight: 600; cursor: pointer; padding: 4px 6px; }
.link.muted { color: var(--muted); font-weight: 500; } .link.red { color: var(--red); }
.pill { border: 0; background: #fff; border-radius: 999px; padding: 7px 14px; cursor: pointer; font-weight: 600; box-shadow: 0 1px 2px rgba(20,40,60,.08); }
.pill.on { background: var(--ink); color: #fff; }
input, select, textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--green-soft); border-color: var(--green); }
label.f { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.nav { position: fixed; z-index: 5; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); display: flex; justify-content: space-around; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.nav a { flex: 1; text-align: center; text-decoration: none; color: var(--muted); font-size: 11px; padding: 4px 0; border-radius: 14px; }
.nav a .e { display: block; font-size: 20px; } .nav a.on { color: var(--green); background: var(--green-soft); font-weight: 600; }
@media (min-width: 900px) { .nav { position: sticky; top: 0; bottom: auto; border-top: 0; border-bottom: 1px solid var(--line); max-width: none; } .nav a { flex: 0 1 120px; } .page { padding-bottom: 40px; } }
.ring { position: relative; width: 120px; height: 120px; flex: none; } .ring .c { position: absolute; inset: 0; display: grid; place-items: center; font-size: 28px; }
.bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; } .bar > i { display: block; height: 100%; background: var(--green); border-radius: 4px; }
.days { display: flex; justify-content: space-between; } .day { text-align: center; font-size: 11px; color: var(--muted); }
.day b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; margin: 4px auto 0; border: 1.5px solid var(--line); font-weight: 500; color: var(--muted); }
.day.done b { background: var(--green); color: #fff; border-color: var(--green); } .day.today b { outline: 2px solid var(--green-soft); }
.ex { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); cursor: pointer; }
.ex:first-of-type { border-top: 0; } .ex .n { flex: 1; min-width: 0; } .ex .n div:first-child { font-weight: 500; }
.tick { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font-size: 13px; color: #fff; flex: none; }
.tick.on { background: var(--green); border-color: var(--green); }
.overlay { position: fixed; inset: 0; z-index: 20; background: rgba(15,30,40,.45); display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 700px) { .overlay { align-items: center; } }
.modal { background: #fff; width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; border-radius: 22px 22px 0 0; padding: 18px; }
@media (min-width: 700px) { .modal { border-radius: 22px; } }
.modal h2 { margin-bottom: 10px; } .modal .actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; }
.toast { position: fixed; z-index: 30; left: 50%; transform: translateX(-50%); bottom: 90px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 14px; max-width: 90vw; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.busy { position: fixed; z-index: 25; inset: 0; background: rgba(255,255,255,.65); display: grid; place-items: center; }
.busy div { background: #fff; padding: 14px 20px; border-radius: 16px; box-shadow: 0 6px 24px rgba(0,0,0,.15); font-weight: 600; }
.spin { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--green-soft); border-top-color: var(--green); border-radius: 50%; animation: s .8s linear infinite; vertical-align: -2px; margin-right: 8px; }
@keyframes s { to { transform: rotate(360deg); } }
.setrow { display: grid; grid-template-columns: 28px 1fr 1fr 28px; gap: 8px; align-items: center; margin-top: 8px; } .setrow.dur { grid-template-columns: 28px repeat(3, 1fr) 28px; }
.setrow input { text-align: center; padding: 12px 8px; font-size: 17px; }
.chat { display: flex; flex-direction: column; gap: 10px; } .bubble { max-width: 85%; padding: 10px 14px; border-radius: 18px; white-space: pre-wrap; }
.bubble.me { align-self: flex-end; background: var(--green); color: #fff; } .bubble.coach { align-self: flex-start; background: #fff; box-shadow: 0 1px 2px rgba(20,40,60,.08); }
.chg { font-size: 12px; color: var(--green); margin-top: 6px; }
.tpl { background: var(--bg); border-radius: 14px; padding: 12px; margin-top: 10px; }
.chart text { font-size: 10px; fill: var(--muted); }
.login { max-width: 420px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 24px; }
.stat { background: var(--bg); border-radius: 12px; padding: 10px; } .stat .l { font-size: 11px; color: var(--muted); } .stat .v { font-weight: 700; }

.sess { padding-bottom: 20px; }
.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; margin: 0 -14px; padding-left: 14px; padding-right: 14px; }
.tabs::-webkit-scrollbar, .pager::-webkit-scrollbar { display: none; }
.tab { flex: none; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 0; background: #fff; color: var(--ink); border-radius: 999px; padding: 9px 14px; font-weight: 600; font-size: 13px; cursor: pointer; box-shadow: 0 1px 2px rgba(20,40,60,.08); }
.tab.done { color: var(--green); } .tab.on { background: var(--ink); color: #fff; }
.pager { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; align-items: flex-start; scrollbar-width: none; overscroll-behavior-x: contain; margin: 0 -14px; }
.panel { flex: 0 0 100%; min-width: 0; scroll-snap-align: center; scroll-snap-stop: always; padding: 0 14px; }
.sessbar { position: sticky; bottom: 0; display: flex; justify-content: space-between; gap: 10px; padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 30%); }
.sessbar .btn { flex: 1; padding: 14px; }
.seg { display: inline-flex; background: var(--bg); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: none; border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer; } .seg button.on { background: #fff; color: var(--green); box-shadow: 0 1px 2px rgba(20,40,60,.12); }

/* ---- minimal look: flat white cards, hairlines instead of shadows, quieter type and buttons ---- */
:root { --bg: #F7F8F9; --radius: 14px; --line: #ECEFF1; --muted: #7C8892; }
html, body { font-size: 14.5px; }
h1 { font-size: 22px; font-weight: 650; letter-spacing: -.2px; } h2 { font-size: 14px; font-weight: 600; margin: 0 0 8px; color: var(--ink); } h3 { font-size: 13px; font-weight: 600; color: var(--muted); }
.page { gap: 10px; padding: 16px 14px 92px; }
.card { box-shadow: none; border: 1px solid var(--line); padding: 14px; }
.btn { border-radius: 10px; padding: 9px 14px; font-weight: 550; font-size: 14px; }
.btn.ghost { border: 1px solid var(--line); color: var(--ink); background: #fff; }
.btn.small { padding: 6px 11px; font-size: 12.5px; border-radius: 9px; }
.link { font-weight: 550; font-size: 13.5px; }
.pill { box-shadow: none; border: 1px solid var(--line); padding: 6px 13px; font-weight: 550; font-size: 13px; } .pill.on { border-color: var(--ink); }
input, select, textarea { border-radius: 10px; border-width: 1px; padding: 9px 11px; }
.nav { box-shadow: none; padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); }
.nav a { font-size: 10.5px; border-radius: 10px; } .nav a .e { font-size: 18px; filter: grayscale(1) opacity(.65); } .nav a.on { background: none; font-weight: 600; } .nav a.on .e { filter: none; }
.ex { padding: 9px 0; } .ex .n div:first-child { font-weight: 500; }
.tick { width: 20px; height: 20px; font-size: 11px; }
.modal { border-radius: 18px 18px 0 0; } .toast { border-radius: 10px; }
.tab { box-shadow: none; border: 1px solid var(--line); font-weight: 550; } .tab.on { border-color: var(--ink); }
.tpl { border-radius: 10px; }
.stat { border-radius: 10px; }
.strip { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 2px 14px; scroll-snap-type: x proximity; }
.strip::-webkit-scrollbar { display: none; }
.sd { flex: none; width: 46px; border: 0; background: none; padding: 6px 0 4px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--muted); font-size: 11px; cursor: pointer; scroll-snap-align: center; }
.sd b { font-size: 16px; font-weight: 550; color: var(--ink); width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; }
.sd i { width: 4px; height: 4px; border-radius: 50%; background: transparent; }
.sd.did i { background: var(--green); } .sd.now b { border: 1.5px solid var(--green); }
.sd.sel b { background: var(--ink); color: #fff; border-color: var(--ink); }
a.link { text-decoration: none; display: inline-block; }
