/* Своя орбита — мини-приложение. Стиль 1 «Солнечная система».
   Все цвета и шрифты — токены: смена стиля = смена этого блока. */
:root {
  --bg: #F4F5FB;
  --surface: #FFFFFF;
  --text: #14152B;
  --text-2: #545A78;
  --accent: #4B2EF0;
  --accent-ink: #FFFFFF;
  --sun: #FFD23F;
  --sun-edge: #FFC300;
  --done: #4B2EF0;
  --partial: #E5671E;
  --none: #8C8FB0;
  --track: #E3E5F2;
  --planet: #E9E7FD;
  --shadow: 0 6px 24px rgba(75, 46, 240, .08);
  --font-num: "Unbounded", system-ui, sans-serif;
  --font: "Onest", system-ui, -apple-system, sans-serif;
}
:root[data-theme="dark"] {
  --bg: #12121F;
  --surface: #1C1C2E;
  --text: #F2F2FA;
  --text-2: #A3A6C2;
  --accent: #8C7BFF;
  --accent-ink: #12121F;
  --sun: #FFC93C;
  --sun-edge: #FFB400;
  --done: #8C7BFF;
  --partial: #FF9E66;
  --none: #6B7099;
  --track: #2A2A40;
  --planet: #26244A;
  --shadow: none;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  -webkit-tap-highlight-color: transparent; }
body { padding: 8px 0 calc(24px + env(safe-area-inset-bottom)); }
main { max-width: 480px; margin: 0 auto; }

.tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin: 4px 16px 0;
  padding: 4px; border-radius: 999px; background: var(--track); }
.tabs button { border: 0; background: transparent; color: var(--text-2); font: 600 15px var(--font);
  padding: 9px 0; border-radius: 999px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

.meta { padding: 14px 20px 0; font-size: 14px; color: var(--text-2); font-weight: 500; }
.hero svg { display: block; width: 100%; height: auto; }

.score { display: flex; align-items: baseline; gap: 10px; padding: 0 20px; }
.num { font-family: var(--font-num); font-weight: 700; font-size: 56px; line-height: 1; letter-spacing: -.02em; }
.lbl { font-size: 14px; color: var(--text-2); font-weight: 500; }
.scale { margin: 12px 20px 26px; height: 8px; border-radius: 99px; background: var(--track); position: relative; }
.scale .fill { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: var(--accent);
  transition: width .3s ease; }
.scale .mark { position: absolute; top: -5px; width: 2px; height: 18px; background: var(--text); border-radius: 2px; }
.scale .mlbl { position: absolute; top: 16px; transform: translateX(-50%); font-size: 11px; color: var(--text-2); font-weight: 600; }

.cards { display: flex; flex-direction: column; gap: 12px; padding: 0 16px; }
.card { background: var(--surface); border-radius: 24px; padding: 8px 16px; box-shadow: var(--shadow); }
.goal { font-size: 13px; color: var(--text-2); font-weight: 600; padding: 8px 0 2px; }
.row { display: flex; align-items: center; gap: 12px; min-height: 56px; width: 100%; border: 0; background: none;
  color: inherit; font: inherit; text-align: left; padding: 6px 0; cursor: pointer; user-select: none; }
.row .tt { flex: 1; font-size: 18px; font-weight: 500; line-height: 1.25; }
.row .cnt { font-size: 14px; color: var(--text-2); font-weight: 500; }
.mk { width: 30px; height: 30px; flex: none; transition: transform .22s cubic-bezier(.3, 1.6, .5, 1); }
.row.pop .mk { transform: scale(1.12); }

.empty { padding: 48px 24px; text-align: center; color: var(--text-2); font-size: 16px; line-height: 1.5; }
.empty b { color: var(--text); display: block; font-size: 20px; margin-bottom: 8px; font-family: var(--font-num); }
.note { padding: 16px 20px 0; font-size: 15px; line-height: 1.45; color: var(--text-2); }
.btn { display: block; margin: 16px 20px 0; padding: 14px; border: 0; border-radius: 14px; background: var(--accent);
  color: var(--accent-ink); font: 600 16px var(--font); width: calc(100% - 40px); cursor: pointer; }

/* Неделя */
.wk-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px 4px; }
.wk-nav { border: 0; background: var(--surface); color: var(--text); width: 44px; height: 44px; border-radius: 50%;
  font-size: 18px; box-shadow: var(--shadow); cursor: pointer; }
.wk-nav:disabled { opacity: .35; cursor: default; }
.wk-title { font-family: var(--font-num); font-weight: 600; font-size: 20px; }
.days, .cells { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.days { padding: 10px 16px 4px; font-size: 12px; color: var(--text-2); font-weight: 600; }
.days .today { color: var(--accent); }
.wk-row { padding: 10px 0 6px; }
.wk-row .tt { font-size: 15px; font-weight: 600; display: flex; justify-content: space-between; gap: 8px; }
.wk-row .tt span:last-child { color: var(--text-2); font-weight: 500; }
.cells { margin-top: 8px; }
.cells svg { width: 26px; height: 26px; margin: 0 auto; display: block; }

/* Путь */
.path { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 16px; }
.wk { background: var(--surface); border-radius: 18px; padding: 10px 6px 12px; text-align: center; box-shadow: var(--shadow); }
.wk.now { outline: 2px solid var(--accent); }
.wk .n { font-size: 12px; color: var(--text-2); font-weight: 600; }
.wk svg { width: 44px; height: 44px; display: block; margin: 6px auto; }
.wk .p { font-family: var(--font-num); font-size: 14px; font-weight: 600; }
.wk.rest { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 10px; }
.sum { padding: 4px 20px; font-size: 15px; line-height: 1.5; }
.goals-list { padding: 0 20px; font-size: 15px; line-height: 1.6; color: var(--text-2); }

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