

:root {
  --bg: #FBF7EC;
  --bg-glow: #FFEFAE;
  --surface: #FFFFFF;
  --surface-2: #F5F0E1;
  --ink: #1C1B17;
  --muted: #6E6858;
  --line: #EDE6D2;
  --accent: #1C1B17;
  --accent-ink: #FFFFFF;
  --accent-text: #1C1B17;
  --accent-soft: #F5F0E1;
  --sun: #FFDE00;
  --sun-deep: #F2C200;
  --sun-ink: #1C1B17;
  --sun-soft: #FFF4C2;
  --card-soft: #FFFBEA;
  --water: #1C1B17;
  --water-fill: #1C1B17;
  --water-ink: #FFFFFF;
  --water-soft: #EEF0F4;
  --warn: #8A5A00;
  --warn-soft: #FFF1CC;
  --fig: #1C1B17;
  --fig-far: #D2CBB5;
  --fig-bg: #FBF5E2;
  --mat: #FFE866;
  --box: #E4DCC4;
  --shadow: 0 1px 2px rgba(60, 48, 10, .05), 0 8px 22px rgba(60, 48, 10, .06);
  --radius: 24px;
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --tabbar-h: 66px;
  color-scheme: light;
}
@media all {
  :root[data-theme="dark"] {
    --bg: #141310; --bg-glow: #2A2410; --surface: #1E1C17; --surface-2: #2A2721; --ink: #F6F2E6; --muted: #ABA593; --line: #35312A;
    --accent: #FFDE00; --accent-ink: #1C1B17; --accent-text: #FFDE00; --accent-soft: #2A2721;
    --sun-soft: #3A320E; --card-soft: #24211A; --water: #FFDE00; --water-fill: #FFDE00; --water-ink: #1C1B17; --water-soft: #2A2721;
    --warn: #F3C35A; --warn-soft: #30260E;
    --fig: #F6F2E6; --fig-far: #4E493D; --fig-bg: #24211A; --mat: #4A4318; --box: #3A362D;
    --shadow: 0 1px 2px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141310; --bg-glow: #2A2410; --surface: #1E1C17; --surface-2: #2A2721; --ink: #F6F2E6; --muted: #ABA593; --line: #35312A;
  --accent: #FFDE00; --accent-ink: #1C1B17; --accent-text: #FFDE00; --accent-soft: #2A2721;
  --sun-soft: #3A320E; --card-soft: #24211A; --water: #FFDE00; --water-fill: #FFDE00; --water-ink: #1C1B17; --water-soft: #2A2721;
  --warn: #F3C35A; --warn-soft: #30260E;
  --fig: #F6F2E6; --fig-far: #4E493D; --fig-bg: #24211A; --mat: #4A4318; --box: #3A362D;
  --shadow: 0 1px 2px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }


html { overscroll-behavior-y: none; }
body { margin: 0; background: radial-gradient(130% 420px at 50% -80px, var(--bg-glow) 0%, transparent 70%) no-repeat, var(--bg); color: var(--ink); font: 15px/1.5 var(--font-body); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
::selection { background: var(--sun); color: var(--sun-ink); }
html { scrollbar-color: var(--line) transparent; caret-color: var(--ink); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
body.locked { overflow: hidden; }

.app { max-width: 560px; margin: 0 auto; padding: 12px 16px calc(var(--tabbar-h) + 40px + env(safe-area-inset-bottom, 0px)); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack.tight { gap: 8px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.row.top { align-items: flex-start; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.center { text-align: center; }
.m0 { margin: 0; }

h1, h2, h3 { margin: 0; text-wrap: balance; }
.display { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0; line-height: 1.05; }
h1.display { font-size: 30px; }
h2 { font-size: 18px; font-weight: 800; }
h3 { font-size: 15px; font-weight: 800; }
.sub { font-size: 14px; color: var(--muted); font-weight: 600; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 10px; }
.section-title h2 { font-size: 20px; font-weight: 800; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }

.card-head.wrap { flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.card-head.wrap h2 { flex: 1 1 200px; }

.card { background: var(--surface); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card.flat { box-shadow: none; border: 1px solid var(--line); }
.card.pad0 { padding: 0; overflow: hidden; }


.topbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; padding: 4px 0 2px; }
.topbar .tb-sub { flex: 0 0 100%; padding-left: 60px; min-width: 0; } 
.theme-btn svg { width: 21px; height: 21px; }
.topbar .ava-btn { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--muted); font-weight: 800; font-size: 18px; flex: none; display: grid; place-items: center; }
.topbar .ttl { flex: 1 1 0; min-width: 0; }
.topbar h1 { font-family: var(--font-display); font-weight: 700; font-size: 25px; line-height: 1.05; text-transform: uppercase; }
.topbar .date { font-size: 14px; color: var(--muted); font-weight: 600; }
.icon-btn { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--surface); box-shadow: var(--shadow); display: grid; place-items: center; flex: none; position: relative; color: var(--ink); padding: 0; }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn .dot { position: absolute; top: 6px; right: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 2px var(--surface); }


.datestrip { position: relative; display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 4px 16px 6px; scrollbar-width: none; overscroll-behavior-x: contain; }
.datestrip::-webkit-scrollbar { display: none; }
.date-chip { flex: none; width: 58px; border: 0; background: var(--surface); border-radius: 18px; padding: 8px 0 9px; display: flex; flex-direction: column; align-items: center; gap: 1px; color: var(--ink); box-shadow: var(--shadow); }
.date-chip .wd { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.date-chip .dn { font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 1.1; }
.date-chip .mk { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid currentColor; margin-top: 3px; }
.date-chip.train .mk { background: currentColor; }
.date-chip.done .mk { background: var(--sun-deep); border-color: var(--sun-deep); }
.date-chip.past .dn, .date-chip.past .mk { opacity: .5; }
.date-chip[aria-pressed="true"] { background: var(--sun); color: #1C1B17; box-shadow: 0 6px 16px rgba(242, 194, 0, .35); }
.date-chip[aria-pressed="true"] .dn, .date-chip[aria-pressed="true"] .mk { opacity: 1; }
.date-chip[aria-pressed="true"] .wd { color: rgba(28, 27, 23, .7); }
.date-chip[aria-pressed="true"].train .mk { background: #1C1B17; border-color: #1C1B17; }


.carousel { position: relative; display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 4px 16px 8px; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-padding: 0 16px; overscroll-behavior-x: contain; }
.carousel::-webkit-scrollbar { display: none; }
.day-card { position: relative; flex: none; width: calc(100% - 22px); min-height: 430px; border-radius: 34px; overflow: hidden; scroll-snap-align: center; display: flex; flex-direction: column; padding: 20px; border: 3px solid transparent; }
.day-card .wday { align-self: flex-start; background: #fff; color: #1C1B17; box-shadow: 0 2px 8px rgba(60, 48, 10, .08); font-weight: 700; font-size: 15px; padding: 7px 16px; border-radius: 999px; position: relative; z-index: 2; }
.day-card.rest { background: var(--sun); color: #1C1B17; text-align: center; }
.day-card.today { border-color: var(--sun-deep); }
.day-card.rest.today { border-color: #fff; box-shadow: 0 0 0 2px var(--sun-deep); }
.day-card .wm { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; font-family: var(--font-display); font-weight: 700; font-size: 132px; color: transparent; -webkit-text-stroke: 1.4px rgba(255, 255, 255, .7); line-height: 1; letter-spacing: -.01em; }
.day-card .rest-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; position: relative; z-index: 1; padding: 8px 6px 20px; }
.day-card .rest-body svg { width: 38px; height: 38px; }
.day-card .rest-body h2 { font-family: var(--font-display); font-weight: 700; font-size: 40px; text-transform: uppercase; line-height: 1; }
.day-card .rest-body p { margin: 6px 0 0; font-size: 17px; line-height: 1.35; color: rgba(13, 13, 15, .74); font-weight: 500; }
.day-card .rest-cta { margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; background: #1C1B17; color: #fff; font-weight: 800; font-size: 14px; padding: 11px 18px; border-radius: 999px; }
.day-card .rest-cta svg { width: 17px; height: 17px; }
.day-card[role="button"] { cursor: pointer; }
.day-card[role="button"]:focus-visible { outline: 3px solid var(--sun-deep); outline-offset: 3px; }
.day-card.work { background: linear-gradient(170deg, var(--card-soft) 0%, var(--surface) 60%); color: var(--ink); justify-content: flex-end; box-shadow: var(--shadow); --fig-bg: transparent; }
.day-card.work.today { border-color: var(--sun-deep); }
.day-card.work .wday { position: absolute; top: 20px; left: 20px; background: var(--sun); color: #1C1B17; box-shadow: none; }
.day-card.work .media { position: absolute; inset: 0; }
.day-card.work .media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.day-card.work .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 38%, var(--surface) 64%); }
.day-card.work .fig-slot { flex: 1 1 0; min-height: 150px; position: relative; margin: 40px -6px 8px; }
.day-card.work .fig-slot .fig-box { position: absolute; inset: 0; margin: auto; height: 100%; width: auto; max-width: 100%; aspect-ratio: 4 / 3; background: transparent; border-radius: 0; }
.day-card.work .info-b { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 6px; }
.day-card.work .meta { display: flex; align-items: center; gap: 7px; font-size: 15px; color: var(--muted); font-weight: 600; }
.day-card.work .meta svg { width: 18px; height: 18px; }
.day-card.work h2 { font-family: var(--font-display); font-weight: 700; font-size: 34px; line-height: 1; text-transform: uppercase; }
.day-card.work .btn { margin-top: 10px; }
.day-card .done-chip { position: absolute; top: 20px; right: 20px; z-index: 2; background: #E6F6DF; color: #245C12; font-weight: 800; font-size: 13px; padding: 7px 12px; border-radius: 999px; display: inline-flex; gap: 5px; align-items: center; }
.day-card .done-chip svg { width: 14px; height: 14px; }


.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 18px; padding: 13px 20px; font-weight: 800; background: var(--accent); color: var(--accent-ink); min-height: 52px; transition: transform .12s ease, opacity .12s; text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .4; cursor: default; }
.btn.block { width: 100%; }
.btn.sun { background: var(--sun); color: #1C1B17; }
.btn.caps { font-family: var(--font-display); font-weight: 600; font-size: 19px; text-transform: uppercase; letter-spacing: .01em; }
.btn.ghost { background: var(--surface-2); color: var(--ink); }
.btn.line { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); }
.btn.white { background: #fff; color: #1C1B17; }
.btn.dark { background: #1C1B17; color: #fff; }
.btn.water { background: var(--water); color: var(--water-ink); }
.btn.sm { min-height: 44px; padding: 8px 14px; font-size: 14px; border-radius: 14px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.link { background: none; border: 0; padding: 0; color: var(--ink); font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--sun-deep); text-underline-offset: 4px; }

.chip { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; background: var(--surface-2); color: var(--ink); white-space: nowrap; }
.chip svg { width: 14px; height: 14px; }
.chip.accent { background: var(--sun-soft); color: var(--ink); }
.chip.sun { background: var(--sun); color: #1C1B17; }
.chip.sun-soft { background: var(--sun-soft); color: var(--warn); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.dark { background: #fff; color: #1C1B17; box-shadow: 0 2px 8px rgba(60, 48, 10, .1); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }


.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 96%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
.tabbar .inner { max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); height: var(--tabbar-h); }
.tab { background: none; border: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--muted); position: relative; padding: 0; }
.tab svg { width: 26px; height: 26px; }
.tab[aria-current="page"] { color: var(--ink); }
.tab[aria-current="page"]::after { content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--sun-deep); }
.fab { position: fixed; z-index: 21; right: max(16px, calc(50% - 264px)); bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom, 0px)); width: 62px; height: 62px; border-radius: 50%; border: 0; background: var(--sun); color: #1C1B17; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(160, 120, 0, .32); }
.fab svg { width: 28px; height: 28px; }


.qa { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 4px 18px; }
.qa-item { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 0; border: 0; background: none; text-align: left; border-top: 1px solid var(--line); }
.qa-item:first-child { border-top: 0; }
.qa-ic { width: 50px; height: 50px; border-radius: 16px; background: var(--sun-soft); color: var(--ink); display: grid; place-items: center; flex: none; }
.qa-ic svg { width: 24px; height: 24px; }
.qa-ic.sun { background: var(--sun); color: #1C1B17; }
.qa-item b { display: block; font-size: 17px; font-weight: 700; line-height: 1.25; }
.qa-item .sub2 { display: block; font-size: 14px; color: var(--muted); }
.qa-item .chev { margin-left: auto; width: 20px; height: 20px; flex: none; color: var(--ink); }


.fig-box { background: var(--fig-bg); border-radius: 16px; aspect-ratio: 4 / 3; overflow: hidden; position: relative; }
.fig-box svg.fig { width: 100%; height: 100%; display: block; object-fit: cover; }









.fig-box video, .fig-box .fig-video { width: 100%; height: 100%; display: block; object-fit: contain; }
.fig-box .fig-poster { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: contain; }
.fig-box.is-tile { background: linear-gradient(100deg, var(--fig-bg) 30%, color-mix(in srgb, var(--fig-bg) 70%, #fff) 50%, var(--fig-bg) 70%) var(--fig-bg); background-size: 300% 100%; animation: figShimmer 1.4s ease-in-out infinite; }
.fig-box.is-tile.is-ready { animation: none; background: #100d08; }
.fig-box.is-tile .fig-poster { opacity: 0; transition: opacity .25s ease; }
.fig-box.is-tile.is-ready .fig-poster { opacity: 1; }
@keyframes figShimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .fig-box.is-tile { animation: none; } }
.fig-box.is-tile .fig-poster, .fig-box.is-tile .fig-video { object-fit: cover; object-position: 50% 50%; }

.fig-box.can-play { aspect-ratio: var(--vid-ar, 16 / 9); width: 100%; margin-left: auto; margin-right: auto; background: #100d08; cursor: pointer; -webkit-tap-highlight-color: transparent; }

.fig-box.is-model, .sheet .fig-box.is-model, .player .fig-box.is-model { aspect-ratio: 9 / 16; width: min(100%, 36svh); margin-left: auto; margin-right: auto; background: #050403; cursor: pointer; }
.fig-box.is-model .fig-video { object-fit: cover; }
.player .fig-box.is-model { width: min(100%, 30svh); }

.fig-box.fig-night, .sheet .fig-box.fig-night, .player .fig-box.fig-night { --fig: #F6F2E6; --fig-far: #4E493D; --fig-bg: #24211A; --mat: #4A4318; --box: #3A362D; --line: #4E493D; --muted: #ABA593; --ink: #F6F2E6; background: #24211A; }


.fig-box.can-play .fig-video { position: absolute; inset: 0; z-index: 1; opacity: 0; transition: opacity .3s ease; background: transparent; }
.fig-box.can-play.is-playing .fig-video { opacity: 1; }
.fig-play { position: absolute; left: 50%; top: 50%; z-index: 2; width: 64px; height: 64px; margin: -32px 0 0 -32px; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, .94); color: #1C1B17; cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3); transition: opacity .25s ease, transform .2s ease; -webkit-tap-highlight-color: transparent; }
.fig-play svg { width: 26px; height: 26px; margin-left: 4px; }
.fig-play:active { transform: scale(.94); }
.fig-spin { display: none; position: absolute; inset: -5px; border-radius: 50%; border: 3px solid transparent; border-top-color: #FFDE00; animation: figSpin .8s linear infinite; }
.fig-box.is-loading .fig-spin { display: block; }

.fig-box.is-loading .fig-play { background: rgba(0, 0, 0, .28); box-shadow: none; pointer-events: none; }
.fig-box.is-loading .fig-play svg { opacity: 0; }
.fig-box.is-playing .fig-play { opacity: 0; pointer-events: none; }


.fig-box.can-play { container-type: inline-size; }
.fig-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: none; align-items: center; gap: 4px;
  padding: 18px 8px 8px; background: linear-gradient(to top, rgba(0, 0, 0, .62), rgba(0, 0, 0, 0)); cursor: default; }
.fig-box.is-playing .fig-bar, .fig-box.is-paused .fig-bar, .fig-box.is-seeking .fig-bar, .fig-box.is-loading .fig-bar { display: flex; }
.fig-bar button { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; padding: 0; display: grid; place-items: center;
  background: transparent; color: #fff; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .15s ease, background .15s ease; }
.fig-bar button:active { transform: scale(.9); background: rgba(255, 255, 255, .16); }
.fig-bar button:focus-visible, .fig-seek:focus-visible, .fig-close:focus-visible { outline: 2px solid #FFDE00; outline-offset: 2px; }
.fig-bar svg { width: 20px; height: 20px; display: block; }
.fig-pp .i-play, .fig-box.is-paused .fig-pp .i-pause { display: none; }
.fig-box.is-paused .fig-pp .i-play { display: block; }
.fig-pp .i-play svg { margin-left: 2px; }
.fig-rate { font: 800 12px/1 var(--font-body); font-variant-numeric: tabular-nums; }
.fig-bar .fig-rate { width: auto; min-width: 36px; padding: 0 6px; border-radius: 999px; }
.fig-rate[aria-pressed="true"] { background: #FFDE00; color: #1C1B17; }

.fig-seek { --p: 0; position: relative; flex: 1 1 auto; min-width: 0; height: 36px; cursor: pointer; touch-action: none; border-radius: 6px; }
.fig-seek::before, .fig-seek i { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; }
.fig-seek::before { background: rgba(255, 255, 255, .32); }
.fig-seek i { background: #FFDE00; transform-origin: 0 50%; transform: scaleX(var(--p)); }
.fig-seek::after { content: ""; position: absolute; top: 50%; left: calc(4px + (100% - 8px) * var(--p)); width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .4); transition: transform .15s ease; }
.fig-box.is-seeking .fig-seek::after { transform: scale(1.35); }


@container (max-width: 210px) {
  .fig-bar .fig-rate { display: none; }
  .fig-box.can-play .fig-angles { left: 6px; right: 6px; transform: none; justify-content: center; }
  .fig-box.can-play .fig-angles button { flex: 1 1 0; min-width: 0; font-size: 11px; line-height: 1.15; padding: 6px 4px; white-space: normal; }
}
@container (max-width: 140px) {
  .fig-bar { padding: 14px 2px 2px; justify-content: space-between; }
  .fig-seek { display: none; }
  .fig-bar button { width: 32px; height: 32px; }
  .fig-bar svg { width: 18px; height: 18px; }
  .fig-box.can-play .fig-angles { display: none; }
  .fig-play { width: 48px; height: 48px; margin: -24px 0 0 -24px; }
  .fig-play svg { width: 20px; height: 20px; margin-left: 3px; }
}


.fig-full { position: fixed; inset: 0; z-index: 1000; background: #000; display: flex; align-items: center; justify-content: center; }
html.fig-full-open, html.fig-full-open body { overflow: hidden; }
.fig-full .fig-box.can-play { width: 100%; height: 100%; max-width: none; aspect-ratio: auto; margin: 0; border-radius: 0; background: #000; }
.fig-full .fig-bar { padding: 28px max(12px, env(safe-area-inset-right, 0px), calc((100% - 760px) / 2)) calc(12px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px), calc((100% - 760px) / 2)); gap: 8px; }
.fig-full .fig-bar button { width: 44px; height: 44px; }
.fig-full .fig-bar svg { width: 24px; height: 24px; }
.fig-full .fig-bar .fig-rate { min-width: 48px; font-size: 14px; }
.fig-full .fig-seek { height: 44px; }
.fig-full .fig-angles { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
.fig-full .fig-play { width: 76px; height: 76px; margin: -38px 0 0 -38px; }
.fig-close { position: absolute; z-index: 3; top: calc(12px + env(safe-area-inset-top, 0px)); right: max(12px, env(safe-area-inset-right, 0px));
  width: 44px; height: 44px; border: 0; border-radius: 50%; padding: 0; display: grid; place-items: center; cursor: pointer;
  background: rgba(0, 0, 0, .5); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); -webkit-tap-highlight-color: transparent; }
.fig-close svg { width: 22px; height: 22px; display: block; }
@keyframes figSpin { to { transform: rotate(360deg); } }
.fig-err { display: none; position: absolute; left: 12px; right: 12px; top: calc(50% + 44px); z-index: 2; text-align: center; color: #fff; font-size: 13px; font-weight: 700; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.fig-box.is-error .fig-err { display: block; }
@media (prefers-reduced-motion: reduce) { .fig-box.can-play .fig-video { transition: none; } .fig-spin { animation-duration: 2s; } }
.fig-angles { display: flex; z-index: 2; position: absolute; left: 50%; bottom: 58px; transform: translateX(-50%); gap: 4px; padding: 4px; border-radius: 999px; background: rgba(20, 19, 16, .6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.fig-angles button { white-space: nowrap; border: 0; background: transparent; color: rgba(255, 255, 255, .88); font: 800 13px/1 var(--font-body); padding: 8px 14px; border-radius: 999px; cursor: pointer; }
.fig-angles button[aria-pressed="true"] { background: #fff; color: #1C1B17; }
.dur-label { position: absolute; right: 10px; bottom: 10px; background: rgba(13, 13, 15, .78); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 8px; }
.fig-box .dur { position: absolute; right: 8px; bottom: 8px; background: rgba(13, 13, 15, .78); color: #fff; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 8px; }
.fg, .fg-far { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.fg { stroke: var(--fig); }
.fg-far { stroke: var(--fig-far); }
.fg-fill { fill: var(--fig); }
.pr-sun { fill: var(--sun-deep); }
.pr-sun-far { fill: var(--sun); opacity: .6; }
.pr-hole { fill: var(--ink); }
.pr-bar { stroke: var(--muted); stroke-width: 3; fill: none; stroke-linecap: round; }
.pr-mat { fill: var(--mat); }
.pr-floor { stroke: var(--line); stroke-width: 2.5; stroke-linecap: round; }
.pr-box { fill: var(--box); }
.pr-box-stroke { fill: none; stroke: var(--box); stroke-width: 4; stroke-linecap: round; }
.pr-band { stroke: var(--sun-deep); stroke-width: 3; fill: none; stroke-linecap: round; }
.pr-cable { stroke: var(--muted); stroke-width: 1.5; opacity: .7; }
.pr-palm { stroke: #2E9B63; stroke-width: 4; fill: none; stroke-linecap: round; }
.pr-palm-trunk { stroke: #A07A45; stroke-width: 5; fill: none; stroke-linecap: round; }
.pr-sunlight { fill: var(--sun); }
.pr-wave { stroke: #3A8FD0; stroke-width: 3; fill: none; stroke-linecap: round; }


.dish, .dish-photo { width: 100%; display: block; aspect-ratio: 16 / 10; height: auto; object-fit: cover; }
.dish-bg.dish-sun { fill: #FFEA70; }
.dish-bg.dish-sun2 { fill: #FFDE00; }
.dish-bg.dish-sea { fill: #F7F0DB; }
.dish-bg.dish-sea2 { fill: #EFE4C4; }
.dish-leaf path { fill: rgba(120, 95, 20, .08); }
.thumb { width: 58px; height: 58px; border-radius: 16px; overflow: hidden; flex: none; }
.thumb .dish, .thumb .dish-photo { width: 100%; height: 100%; aspect-ratio: auto; }
.media-top { position: relative; }
.media-top .badge { position: absolute; left: 14px; top: 14px; }
.kcal-badge { position: absolute; right: 14px; bottom: 14px; background: var(--sun); color: #1C1B17; font-family: var(--font-display); font-weight: 600; font-size: 16px; padding: 5px 12px; border-radius: 12px; }


.plan-hero { position: relative; border-radius: 28px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.plan-hero .img { position: relative; display: block; width: 100%; border: 0; padding: 0; background: none; }
.plan-hero .img .dish, .plan-hero .img .dish-photo { aspect-ratio: 16 / 8; }
.pill-cur { position: absolute; left: 14px; top: 14px; background: #fff; color: #1C1B17; font-weight: 800; font-size: 14px; padding: 8px 14px; border-radius: 999px; display: inline-flex; gap: 6px; align-items: center; box-shadow: 0 4px 12px rgba(0, 0, 0, .14); }
.pill-cur svg { width: 16px; height: 16px; }
.plan-hero .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 12px; }
.kcal-big { font-family: var(--font-display); font-size: 40px; font-weight: 700; line-height: 1; }
.macros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.bar { height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; border-radius: 99px; background: #3E8E28; transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform .5s cubic-bezier(.16, 1, .3, 1); }
.macro:nth-child(2) .bar i { background: var(--sun-deep); }
.macro:nth-child(3) .bar i { background: #CDBF97; }
.norm { display: grid; grid-template-columns: auto 1fr; gap: 6px 26px; align-items: center; }
.norm .kcal-big { font-size: 46px; }
.norm-list { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.norm-list > span { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px dashed var(--line); padding-bottom: 3px; }
.norm-list > span:last-child { border-bottom: 0; }
.norm-list b { font-variant-numeric: tabular-nums; }
.water-row { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; }
.glass { aspect-ratio: 3 / 4; border-radius: 5px 5px 9px 9px; border: 2px solid var(--line); background: linear-gradient(to top, var(--sun) var(--fill, 0%), transparent var(--fill, 0%)); transition: background .3s; }
.water-val { font-family: var(--font-display); font-size: 32px; font-weight: 700; line-height: 1; }
.check-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; width: 100%; }
.check-row:first-child { border-top: 0; }
.tick { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; transition: background .15s, border-color .15s, transform .25s cubic-bezier(.16, 1, .3, 1); background: var(--surface); position: relative; padding: 0; }
.tick::after { content: ""; position: absolute; inset: -9px; }
.tick svg { width: 14px; height: 14px; opacity: 0; }
.done .tick, .tick[aria-pressed="true"] { background: var(--sun); border-color: var(--sun); transform: scale(1.06); }
.done .tick svg, .tick[aria-pressed="true"] svg { opacity: 1; color: #1C1B17; }
.done .ttl { color: var(--muted); }
.check-row.done .thumb { opacity: .7; }
.meal-meta { display: block; font-size: 13px; color: var(--muted); font-weight: 600; margin-top: 1px; }
.tipcard { display: flex; gap: 14px; align-items: flex-start; background: var(--sun); color: #1C1B17; border-radius: var(--radius); padding: 18px; }
.tipcard .sunball { width: 40px; height: 40px; border-radius: 12px; background: #fff; flex: none; display: grid; place-items: center; color: #1C1B17; }
.tipcard .sunball svg { width: 20px; height: 20px; }
.tipcard b { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 19px; letter-spacing: .01em; }
.banner { display: flex; gap: 12px; align-items: center; border-radius: var(--radius); padding: 16px 18px; background: var(--surface); box-shadow: var(--shadow); }
.banner.warn { background: var(--warn-soft); box-shadow: none; }

@media (max-width: 560px) {
  .morning-banner { flex-wrap: wrap; position: relative; padding-right: 44px; }
  .morning-banner .grow { flex: 1 1 calc(100% - 56px); min-width: 0; }
  .morning-banner .btn { margin-left: 56px; }
  .morning-banner .x-btn { position: absolute; top: 8px; right: 8px; }
}
.scroller { display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 8px; scroll-snap-type: x proximity; scrollbar-width: none; overscroll-behavior-x: contain; }
.scroller::-webkit-scrollbar { display: none; }
.guide-card { flex: none; width: 178px; scroll-snap-align: start; border: 0; padding: 0; text-align: left; background: var(--surface); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.guide-card svg { display: block; width: 100%; height: 96px; }
.guide-card .gt { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 2px; }
.guide-card b { font-size: 14px; line-height: 1.3; }


.seg { display: flex; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 16px; }
.seg button { flex: 1; min-width: 0; white-space: nowrap; border: 0; background: none; padding: 9px 6px; border-radius: 12px; font-weight: 800; font-size: 14px; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.seg button.cur::after { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--sun-deep); margin-left: 6px; vertical-align: 2px; }
.seg-lock svg { width: 13px; height: 13px; margin-left: 5px; vertical-align: -2px; }
.ex-card { display: grid; grid-template-columns: 92px 1fr auto; gap: 14px; align-items: center; padding: 12px; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow); }
.ex-card .fig-box { border-radius: 14px; cursor: pointer; }
.ex-card .name { font-weight: 800; font-size: 16px; line-height: 1.25; background: none; border: 0; padding: 0; text-align: left; }
.ex-card .dose { font-family: var(--font-display); font-size: 16px; font-weight: 600; white-space: nowrap; margin-top: 2px; }
.ex-card.done { opacity: .6; }
.ex-card .foot { display: flex; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.swapped { color: var(--warn); font-size: 12px; font-weight: 800; }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.info { background: var(--surface); border-radius: 16px; padding: 12px 14px; font-size: 14px; }
.info b { display: block; font-size: 12px; font-weight: 800; color: var(--muted); margin-bottom: 2px; }
.info.bad { background: var(--sun-soft); }
.info.full { grid-column: 1 / -1; }
.alt { display: grid; grid-template-columns: 72px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.alt:first-child { border-top: 0; }


.search { display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: 20px; padding: 0 16px; box-shadow: var(--shadow); }
.search svg { width: 22px; height: 22px; color: var(--muted); flex: none; }
.search input { flex: 1; border: 0; background: none; padding: 16px 0; font-size: 17px; outline: none; min-width: 0; }
.search input::placeholder { color: var(--muted); }
.filters { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.filter-btn { display: flex; align-items: center; gap: 8px; border: 0; background: var(--surface); border-radius: 20px; padding: 15px 14px; font-weight: 700; font-size: 15px; box-shadow: var(--shadow); text-align: left; min-width: 0; }
.filter-btn svg { width: 24px; height: 24px; flex: none; }
.filter-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filter-btn.on { background: var(--sun); color: #1C1B17; }
.lib-list { display: flex; flex-direction: column; gap: 10px; }
.lib-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center; padding: 12px; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow); border: 0; text-align: left; width: 100%; }
.lib-item .fig-box { aspect-ratio: 1; border-radius: 16px; }
.lib-item b { display: block; font-size: 16px; line-height: 1.25; }
.tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 6px; }
.tag { font-size: 13px; background: var(--surface-2); color: var(--ink); padding: 3px 9px; border-radius: 9px; font-weight: 500; }
.info-ic { width: 26px; height: 26px; color: var(--ink); }
.empty { text-align: center; padding: 30px 10px; color: var(--muted); }


.player { position: fixed; inset: 0; z-index: 60; background: var(--bg); display: flex; flex-direction: column; padding: calc(12px + env(safe-area-inset-top, 0px)) 16px calc(16px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; }
.player .inner { max-width: 520px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.player .fig-box { border-radius: 26px; background: var(--surface); }
.segs { display: flex; gap: 4px; }
.segs i { flex: 1; height: 5px; border-radius: 5px; background: var(--line); }
.segs i.on { background: var(--ink); }
.segs i.now { background: var(--sun-deep); }
.set-dots { display: flex; gap: 6px; }
.set-dots i { width: 28px; height: 8px; border-radius: 6px; background: var(--line); }
.set-dots i.on { background: var(--ink); }
.ring { width: 200px; height: 200px; margin: 6px auto; position: relative; display: grid; place-items: center; }
.ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring .track { stroke: var(--line); }
.ring .prog { stroke: var(--sun-deep); stroke-linecap: round; transition: stroke-dashoffset .25s linear; }
.ring .t { font-family: var(--font-display); font-size: 54px; font-weight: 600; }
.player .grow-space { flex: 1; }
.confetti { display: flex; justify-content: center; gap: 8px; }
.confetti i { width: 12px; height: 12px; border-radius: 3px; background: var(--sun); transform: rotate(20deg); }
.confetti i:nth-child(2n) { background: var(--ink); transform: rotate(-15deg); }


.plan-card { background: var(--surface); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); }
.plan-card .img { position: relative; display: block; width: 100%; border: 0; padding: 0; background: none; }
.plan-card .img .dish, .plan-card .img .dish-photo { aspect-ratio: 16 / 10; }
.plan-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; }
.plan-card .dur { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; }
.plan-card .dur svg { width: 20px; height: 20px; }
.plan-card h2 { font-family: var(--font-display); font-weight: 700; font-size: 30px; text-transform: uppercase; line-height: 1.05; display: flex; align-items: center; gap: 10px; }
.plan-card h2 svg { width: 24px; height: 24px; flex: none; }
.macro-line { display: flex; flex-wrap: wrap; gap: 4px 0; color: var(--muted); font-size: 15px; }
.macro-line span + span::before { content: ""; display: inline-block; width: 1.5px; height: 16px; background: var(--line); margin: 0 10px; vertical-align: -3px; }
.plan-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.meal-card { background: var(--surface); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.meal-card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; }
.meal-card .items { display: flex; flex-direction: column; gap: 5px; }
.meal-card .item { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.meal-card .item b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.macro-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.macro-chips span { font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: 9px; font-variant-numeric: tabular-nums; }
.macro-chips .p { background: #E6F6DF; color: #245C12; }
.macro-chips .f { background: var(--sun); color: #1C1B17; }
.macro-chips .c { background: var(--surface-2); color: var(--ink); }
.meta-line { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); font-weight: 600; }
.meta-line span { display: inline-flex; align-items: center; gap: 4px; }
.meta-line svg { width: 15px; height: 15px; }
.tip { font-size: 14px; background: var(--sun-soft); border-radius: 14px; padding: 10px 12px; }
.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.shop-group { display: flex; flex-direction: column; }
.shop-item { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); background: none; border-left: 0; border-right: 0; border-bottom: 0; width: 100%; text-align: left; }
.shop-item:first-of-type { border-top: 0; }
.shop-item.done .ttl { color: var(--muted); text-decoration: line-through; }


.chat { display: flex; flex-direction: column; gap: 10px; min-height: 40vh; }
.msg { display: flex; gap: 8px; align-items: flex-end; }
.msg.me { justify-content: flex-end; }
.ava { width: 32px; height: 32px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.ava.ai { background: var(--sun); color: #1C1B17; }
.ava.ai svg { width: 16px; height: 16px; }
.ava.coach { background: var(--sun); color: #1C1B17; }
.bubble { max-width: 82%; padding: 11px 14px; border-radius: 20px; white-space: pre-wrap; word-wrap: break-word; font-size: 15px; }
.msg.me .bubble { background: var(--sun); color: #1C1B17; border-bottom-right-radius: 6px; }
.msg.them .bubble { background: var(--surface); box-shadow: var(--shadow); border-bottom-left-radius: 6px; }
.bubble.typing { color: var(--muted); }
.quick { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; overscroll-behavior-x: contain; }
.quick::-webkit-scrollbar { display: none; }
.quick button { flex: none; border: 0; background: var(--surface); box-shadow: var(--shadow); border-radius: 999px; padding: 9px 14px; font-size: 13px; font-weight: 700; }
.composer { position: sticky; bottom: calc(var(--tabbar-h) + 8px + env(safe-area-inset-bottom, 0px)); display: flex; gap: 8px; align-items: flex-end; background: var(--surface); border-radius: 22px; padding: 6px 6px 6px 16px; box-shadow: 0 4px 18px rgba(0, 0, 0, .08); border: 1px solid var(--line); }
.composer textarea { flex: 1; border: 0; background: none; resize: none; max-height: 120px; min-height: 24px; padding: 9px 0; outline: none; }
.composer .btn { min-height: 44px; min-width: 44px; padding: 8px 12px; border-radius: 16px; }


.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-size: 13px; font-weight: 800; color: var(--muted); }
.input { width: 100%; border: 1.5px solid var(--line); background: var(--surface); border-radius: 14px; padding: 13px 14px; font-size: 16px; }
.input:focus { outline: none; border-color: var(--ink); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.options { display: flex; flex-direction: column; gap: 10px; }
.option { display: flex; align-items: center; gap: 12px; text-align: left; border: 2px solid transparent; background: var(--surface); border-radius: 22px; padding: 10px 14px 10px 10px; box-shadow: var(--shadow); }
.option[aria-pressed="true"] { border-color: var(--sun-deep); background: var(--sun); color: #1C1B17; }
.option[aria-pressed="true"] span.sub { color: rgba(13, 13, 15, .7); }
.option .fig-box { width: 76px; flex: none; border-radius: 14px; }
.option[aria-pressed="true"] .fig-box { background: rgba(255, 255, 255, .55); --fig: #1C1B17; }
.option b { display: block; }
.option span.sub { font-size: 13px; color: var(--muted); }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { border: 0; background: var(--surface); box-shadow: var(--shadow); border-radius: 999px; padding: 10px 18px; font-weight: 800; font-size: 14px; }
.pill[aria-pressed="true"] { background: var(--sun); color: #1C1B17; }
.checkline { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.checkline input { width: 20px; height: 20px; accent-color: var(--ink); margin-top: 1px; flex: none; }
.feature { display: flex; gap: 14px; align-items: center; }
.feature .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--sun-soft); color: var(--ink); }
.feature .ic svg { width: 22px; height: 22px; }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.scale button { border: 0; background: var(--surface-2); border-radius: 12px; padding: 10px 0; font-weight: 800; }
.scale button[aria-pressed="true"] { background: var(--sun); color: #1C1B17; }
.progressbar { height: 5px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progressbar i { display: block; height: 100%; background: var(--ink); transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform .4s cubic-bezier(.16, 1, .3, 1); }
.error { color: #B3261E; font-size: 14px; font-weight: 700; }
.hero { position: relative; overflow: hidden; border-radius: 34px; padding: 22px; background: var(--sun); color: #1C1B17; }
.hero .muted { color: rgba(13, 13, 15, .7); }
.hero .fig-box { background: rgba(255, 255, 255, .55); --fig: #1C1B17; --mat: #fff; --line: rgba(13, 13, 15, .15); }


.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--sun); color: #1C1B17; display: grid; place-items: center; font-family: var(--font-display); font-size: 24px; font-weight: 700; flex: none; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat b { display: block; font-family: var(--font-display); font-size: 26px; font-weight: 700; line-height: 1.1; }
.stat span { font-size: 12px; color: var(--muted); }
.badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.badge-it { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 12px 6px; border-radius: 18px; background: var(--surface-2); }
.badge-it svg { width: 44px; height: 44px; }
.badge-it b { font-size: 12px; line-height: 1.25; }
.badge-it span { font-size: 11px; color: var(--muted); line-height: 1.25; }
.badge-it.off > *:not(b):not(span) { opacity: .5; }
.badge-it.off svg { filter: grayscale(1); }
.ref-card { background: var(--sun); color: #1C1B17; border-radius: 28px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.ref-card .muted { color: rgba(13, 13, 15, .72); }
.ref-link { font-family: ui-monospace, Menlo, monospace; font-size: 12px; background: rgba(255, 255, 255, .7); border-radius: 12px; padding: 9px 11px; word-break: break-all; }
.tariff { display: flex; flex-direction: column; gap: 12px; border: 1.5px solid var(--line); }
.tariff.featured { border: 3px solid var(--sun-deep); background: var(--card-soft); }
.tariff .price { font-family: var(--font-display); font-size: 32px; font-weight: 700; }
.tariff ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.methods { display: flex; flex-direction: column; gap: 8px; }


.chart svg { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .line { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: var(--sun); opacity: .55; }
.chart .pt { fill: var(--surface); stroke: var(--ink); stroke-width: 2; }
.chart .pt.last { fill: var(--sun); stroke: var(--ink); }
.chart text { fill: var(--muted); font-size: 10px; font-family: var(--font-body); font-variant-numeric: tabular-nums; }
.chart text.val { fill: var(--ink); font-weight: 800; font-size: 11px; paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }


.sheet-back { position: fixed; inset: 0; z-index: 55; background: rgba(40, 32, 8, .45); display: flex; align-items: flex-end; justify-content: center; }



.sheet { width: 100%; max-width: 560px; background: var(--bg); border-radius: 30px 30px 0 0; max-height: 92vh; display: flex; flex-direction: column; overflow: hidden; }
.sheet-body { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 4px 16px calc(20px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; }
.sheet .grab { position: absolute; left: 50%; top: 6px; transform: translateX(-50%); width: 40px; height: 4px; border-radius: 4px; background: var(--line); }
.sheet { transition: transform .18s ease; }
.sheet.dragging { transition: none; will-change: transform; }
.sheet-top { position: relative; flex: none; z-index: 4; display: grid; grid-template-columns: 42px 1fr 42px; align-items: center; gap: 8px; padding: 16px 16px 8px; background: var(--bg); border-bottom: 1px solid var(--line); }
.sheet-top .back-btn { width: 42px; height: 42px; }
.sheet-ttl { font-family: var(--font-display); font-weight: 700; font-size: 17px; text-transform: uppercase; text-align: center; line-height: 1.1; letter-spacing: .02em; }
.page-foot { margin-top: 18px; }
.sheet .cover { margin: 0 -16px; }
.sheet-body > .stack:first-child { margin-top: 8px; }
.sheet .cover .dish, .sheet .cover .dish-photo { border-radius: 0; }
.sheet .fig-box { background: var(--surface); }
.sheet .fig-box.can-play { background: #100d08; }
.guide-sec { display: flex; flex-direction: column; gap: 4px; }
.notice { display: flex; gap: 12px; align-items: center; background: var(--surface); border-radius: 20px; padding: 14px 16px; box-shadow: var(--shadow); border: 0; text-align: left; width: 100%; }
.notice .qa-ic { width: 42px; height: 42px; border-radius: 13px; }
.notice .qa-ic svg { width: 20px; height: 20px; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabbar-h) + 92px + env(safe-area-inset-bottom, 0px)); z-index: 80; background: var(--ink); color: var(--bg); padding: 11px 18px; border-radius: 14px; font-weight: 800; font-size: 14px; max-width: calc(100% - 32px); }
.demo-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #1C1B17; background: var(--sun); padding: 3px 8px; border-radius: 6px; }
.loader { display: grid; place-items: center; min-height: 60vh; text-align: center; gap: 10px; }
.sunspin { width: 54px; height: 54px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 10px var(--sun-soft); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.85); box-shadow: 0 0 0 18px var(--sun-soft); } }


.screen-in { animation: screenIn .38s cubic-bezier(.16, 1, .3, 1); }
@keyframes screenIn { from { opacity: .4; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
  .sunspin, .screen-in { animation: none; }
  .btn:active, .tick[aria-pressed="true"], .done .tick { transform: none; }
  .bar i, .progressbar i, .ring .prog { transition: none; }
}

@media (max-width: 370px) {
  .macros, .stats { gap: 6px; }
  .topbar h1 { font-size: 22px; }
  .day-card .rest-body h2 { font-size: 32px; }
  .ex-card { grid-template-columns: 80px 1fr auto; }
  .filter-btn { font-size: 14px; padding: 14px 12px; }
}


.pg { display: flex; flex-direction: column; gap: 16px; padding: 22px 20px; }
.pg-streak { display: flex; align-items: center; gap: 12px; }
.pg-streak svg { width: 38px; height: 38px; color: var(--ink); flex: none; }
.pg-streak b { font-family: var(--font-display); font-weight: 700; font-size: 56px; line-height: 1; }
.pg-streak span { font-size: 19px; font-weight: 700; line-height: 1.15; }
.pg-grid { display: grid; grid-template-columns: 30px repeat(7, 1fr); gap: 6px; align-items: center; }
.pg-h { text-align: center; font-size: 13px; color: var(--muted); font-weight: 600; }
.pg-w { font-size: 13px; color: var(--muted); font-weight: 600; }
.pg-w.cur { color: var(--ink); font-weight: 800; }
.pg-c { display: block; aspect-ratio: 1; border-radius: 12px; background: var(--surface-2); }
.pg-c.pre { background: transparent; border: 1.5px dashed var(--line); }
.pg-c.future { background: var(--surface-2); opacity: .7; }
.pg-c.rest { background: linear-gradient(140deg, #B6F0BE 0%, #45D66E 100%); }
.pg-c.work { background: linear-gradient(140deg, #FFF3A6 0%, #FFD400 100%); }
.pg-c.today { background: var(--surface); border: 2px solid var(--line); }
.pg-c.rest.today, .pg-c.work.today { border: 0; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }
.pg-c.rest.today { background: linear-gradient(140deg, #B6F0BE 0%, #45D66E 100%); }
.pg-c.work.today { background: linear-gradient(140deg, #FFF3A6 0%, #FFD400 100%); }
.pg-c.missed { background: repeating-linear-gradient(135deg, var(--surface-2) 0 5px, var(--line) 5px 6.5px); }
.pg-legend { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 10px; border-top: 1px solid var(--line); padding-top: 14px; font-size: 14px; color: var(--muted); font-weight: 600; }
.pg-legend span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.pg-legend .pg-c { width: 18px; height: 18px; border-radius: 6px; }
.topbar h1.hello { font-size: 23px; line-height: 1.08; text-wrap: wrap; }
.topbar h1.hello .nw { white-space: nowrap; }


.zoma { display: block; width: 100%; height: auto; fill: #1C1B17; }
.logo { display: inline-block; width: 150px; }
.logo.lg { width: 220px; }


.splash { position: fixed; inset: 0; z-index: 200; overflow: hidden; background: radial-gradient(90% 60% at 50% 44%, #2A2410 0%, #141310 62%, #100F0C 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px; animation: spSafety .4s ease 9s forwards; }
.splash .sp-stage { margin-bottom: 34px; }
.splash:not(.go) * { animation-play-state: paused !important; }
.sp-stage { position: relative; width: min(168px, 44vw); aspect-ratio: 1; display: grid; place-items: center; }
.sp-rays { position: absolute; left: -45%; top: -45%; width: 190%; height: 190%; overflow: visible; opacity: 0; animation: spRaysIn .7s cubic-bezier(.16, 1, .3, 1) 1.3s forwards; }
.sp-rays g { transform-origin: 0 0; animation: spSpin 14s linear 1.3s infinite; }
.sp-rays path { stroke: #F2C200; stroke-width: 7; stroke-linecap: round; fill: none; }
.sp-tile { position: relative; width: 100%; height: 100%; background: #FFDE00; border-radius: 50%; overflow: hidden; transform: scale(0); box-shadow: 0 18px 44px rgba(214, 160, 0, .32), inset 0 -6px 0 rgba(0, 0, 0, .04);
  animation: spTile 1s cubic-bezier(.34, 1.45, .64, 1) .05s forwards, spBreathe 1.8s cubic-bezier(.45, 0, .55, 1) 2.2s infinite; }
.sp-word { position: absolute; inset: 0; width: 100%; height: 100%; }

.sp-l { fill: #1C1B17; opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.4); }
.sp-z { animation: spPop .5s cubic-bezier(.34, 1.56, .64, 1) .72s forwards; }
.sp-o { animation: spPop .5s cubic-bezier(.34, 1.56, .64, 1) .84s forwards; }
.sp-m { animation: spPop .5s cubic-bezier(.34, 1.56, .64, 1) .96s forwards; }
.sp-a { animation: spPop .5s cubic-bezier(.34, 1.56, .64, 1) 1.08s forwards; }
.sp-shine { position: absolute; top: -20%; bottom: -20%; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .7), transparent); transform: skewX(-18deg) translateX(0); animation: spShine 2.4s cubic-bezier(.45, 0, .2, 1) 1.55s infinite; }
.sp-tag { font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: .34em; text-transform: uppercase; color: #ABA593; opacity: 0; transform: translateY(8px); animation: spTag .7s cubic-bezier(.16, 1, .3, 1) 1.5s forwards; }
.sp-load { width: 72px; height: 4px; border-radius: 4px; background: rgba(246, 242, 230, .12); overflow: hidden; opacity: 0; animation: spTag .5s ease 2.3s forwards; }
.sp-load i { display: block; width: 40%; height: 100%; border-radius: 4px; background: #F2C200; animation: spLoad 1.1s cubic-bezier(.65, 0, .35, 1) infinite; }


.splash.out { animation: spIris .75s cubic-bezier(.76, 0, .24, 1) forwards; pointer-events: none; }
.splash.out .sp-stage { transition: transform .75s cubic-bezier(.76, 0, .24, 1); transform: scale(1.18); }
@keyframes spTile { 0% { transform: scale(0); border-radius: 50%; } 30% { transform: scale(.2); border-radius: 50%; } 55% { transform: scale(.2); border-radius: 50%; } 100% { transform: scale(1); border-radius: 24%; } }
@keyframes spBreathe { 0%, 100% { transform: scale(1); border-radius: 24%; } 50% { transform: scale(1.035); border-radius: 24%; } }
@keyframes spPop { from { opacity: 0; transform: scale(.4); } 40% { opacity: 1; } to { opacity: 1; transform: scale(1); } }
@keyframes spLine { to { transform: scaleX(1); } }
@keyframes spRaysIn { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: scale(1); } }
@keyframes spSpin { to { transform: rotate(360deg); } }
@keyframes spShine { 0% { transform: skewX(-18deg) translateX(0); } 45%, 100% { transform: skewX(-18deg) translateX(520%); } }
@keyframes spTag { to { opacity: 1; transform: none; } }
@keyframes spLoad { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }
@keyframes spIris { from { clip-path: circle(150% at var(--ox, 50%) var(--oy, 50%)); } to { clip-path: circle(0 at var(--ox, 50%) var(--oy, 50%)); } }
@keyframes spSafety { to { opacity: 0; visibility: hidden; } }
@keyframes spFadeOut { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .splash * { animation: none !important; }
  .sp-tile { transform: none; border-radius: 24%; }
  .sp-l, .sp-rays, .sp-tag, .sp-load { transform: none; opacity: 1; }
  .sp-shine { display: none; }
  .splash.out { animation: spFadeOut .25s ease forwards; }
  .splash.out .sp-stage { transform: none; }
}
.day-card .wm .logo { width: 88%; }
.day-card .wm .zoma { fill: none; stroke: rgba(255, 255, 255, .75); stroke-width: 4.5; }


.rp-card { background: var(--surface); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); }
.rp-open { display: block; width: 100%; border: 0; padding: 0; background: none; text-align: center; }
.rp-cover { position: relative; background: var(--surface-2); padding-top: 34px; overflow: hidden; }
.rp-cover.big { border-radius: 28px; }
.rp-wm { position: absolute; left: -4%; right: -4%; top: 6px; opacity: .55; pointer-events: none; }
.rp-wm .logo { width: 100%; }
.logo.wm-dark .zoma { fill: none; stroke: var(--line); stroke-width: 3.5; }
.rp-badge { position: relative; z-index: 2; width: 74%; margin: 0 auto -54px; background: var(--sun); color: #1C1B17; border-radius: 22px; padding: 16px 16px 14px; display: flex; flex-direction: column; align-items: center; gap: 6px; box-shadow: 0 10px 24px rgba(160, 120, 0, .22); }
.rp-badge svg { width: 30px; height: 30px; }
.rp-badge b { font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1; text-transform: uppercase; }
.rp-badge span { font-size: 13px; font-weight: 600; color: rgba(28, 27, 23, .75); }
.rp-img .dish, .rp-img .dish-photo { aspect-ratio: 16 / 9; }
.rp-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; }
.rp-card .dur { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; }
.rp-card .dur svg { width: 20px; height: 20px; }
.rp-card p { margin: 0; color: var(--muted); font-size: 15px; }


.page { position: fixed; inset: 0; z-index: 50; background: var(--bg); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; animation: pageIn .38s cubic-bezier(.16, 1, .3, 1); }
@keyframes pageIn { from { transform: translateX(24px); opacity: .5; } }
.page-top { position: sticky; top: 0; z-index: 3; display: grid; grid-template-columns: 46px 1fr 46px; align-items: center; gap: 8px; padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.page-top h1 { font-family: var(--font-display); font-weight: 700; font-size: 24px; text-transform: uppercase; text-align: center; line-height: 1.1; }
.back-btn { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); display: grid; place-items: center; padding: 0; }
.back-btn svg { width: 20px; height: 20px; }
.page-body { max-width: 560px; margin: 0 auto; padding: 8px 16px calc(40px + env(safe-area-inset-bottom, 0px)); }

.mp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mp-stats div { background: var(--surface); border-radius: 18px; padding: 12px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.mp-stats b { font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1.1; }
.mp-stats span { font-size: 12px; color: var(--muted); }
.mp-week { position: relative; display: flex; justify-content: center; align-items: center; margin-top: 8px; scroll-margin-top: 80px; }
.mp-pill { display: inline-flex; align-items: center; gap: 10px; background: var(--sun); color: #1C1B17; font-family: var(--font-display); font-weight: 700; font-size: 26px; text-transform: uppercase; padding: 10px 24px; border-radius: 18px; }
.mp-pill svg { width: 26px; height: 26px; }
.mp-count { position: absolute; left: 0; background: var(--surface); box-shadow: var(--shadow); border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 14px; }
.mp-days { display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; overscroll-behavior-x: contain; }
.mp-days::-webkit-scrollbar { display: none; }
.mp-days button { flex: none; border: 0; background: var(--surface); box-shadow: var(--shadow); border-radius: 14px; padding: 10px 14px; font-family: var(--font-display); font-weight: 600; font-size: 16px; text-transform: uppercase; color: var(--muted); }
.mp-days button[aria-pressed="true"] { background: var(--sun); color: #1C1B17; }
.mp-daycard { background: var(--surface); border-radius: 20px; padding: 14px 16px; text-align: center; box-shadow: var(--shadow); }
.mp-daycard h2 { font-family: var(--font-display); font-weight: 700; font-size: 28px; text-transform: uppercase; line-height: 1.1; }
.mp-daycard span { font-size: 13px; color: var(--muted); font-weight: 600; }
.mp-meal { background: var(--surface); border-radius: 24px; padding: 18px 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; }
.mp-meal.snack { background: var(--surface-2); box-shadow: none; }
.mp-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.mp-head h3 { font-family: var(--font-display); font-weight: 700; font-size: 32px; text-transform: uppercase; line-height: 1; }
.mp-kcal { font-weight: 800; font-size: 13px; background: var(--sun); color: #1C1B17; padding: 4px 10px; border-radius: 10px; white-space: nowrap; }
.mp-dish { font-size: 14px; color: var(--muted); font-weight: 600; margin-top: -2px; }
.mp-items { display: flex; flex-direction: column; gap: 7px; margin-top: 4px; }
.mp-it { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; }
.mp-it span { min-width: 0; }
.mp-it small { display: block; font-size: 12px; color: var(--muted); }
.mp-it b { font-weight: 500; color: var(--muted); white-space: nowrap; }
.mp-how { font-size: 13px; color: var(--muted); line-height: 1.45; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; }
.mp-how b { display: block; color: var(--ink); font-size: 14px; margin-bottom: 2px; }
.mp-macro { font-size: 12px; color: var(--muted); font-weight: 700; }
.mp-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }


.faq { background: var(--surface-2); border-radius: 20px; }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 16px 16px 20px; cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 19px; text-transform: uppercase; line-height: 1.2; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--sun); }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2.5px; margin: -1.25px 0 0 -7px; border-radius: 2px; background: #1C1B17; transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
.faq summary i::after { transform: rotate(90deg); }
.faq[open] summary i::after { transform: rotate(0); }
.faq-a { padding: 0 20px 18px; font-size: 15px; line-height: 1.55; color: var(--ink); }
.faq[open] { background: var(--surface); box-shadow: var(--shadow); }


.guide-page { display: flex; flex-direction: column; gap: 30px; }
.guide-page section { scroll-margin-top: 80px; }
.gp-h { font-family: var(--font-display); font-weight: 700; font-size: 34px; text-transform: uppercase; line-height: 1.05; margin-bottom: 10px; }
.gp-lead { font-size: 17px; line-height: 1.55; margin: 0 0 6px; }
.gp-sub { font-family: var(--font-display); font-weight: 700; font-size: 24px; text-transform: uppercase; line-height: 1.1; margin: 20px 0 6px; }
.gp-sub span { color: #8A6A00; }
.guide-page p { font-size: 16px; line-height: 1.6; margin: 0; }
.gp-note { display: flex; gap: 10px; align-items: flex-start; background: var(--sun-soft); border-radius: 18px; padding: 14px 16px; margin-top: 18px; font-size: 14px; font-weight: 600; }
.gp-note svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.guide-ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 12px; font-size: 16px; line-height: 1.55; }
.guide-ol li::marker { font-weight: 800; }
@media (prefers-reduced-motion: reduce) { .page { animation: none; } .faq summary i::before, .faq summary i::after { transition: none; } }


.region-seg button, .place-seg button { font-size: 15px; padding: 10px 6px; }
.region-seg button[aria-pressed="true"], .place-seg button[aria-pressed="true"] { background: var(--sun); color: #1C1B17; box-shadow: none; }


.xw-row { gap: 12px; }
.xw-card { flex: none; width: 272px; scroll-snap-align: start; background: var(--surface); border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.xw-img { height: 150px; background: linear-gradient(160deg, var(--card-soft), var(--surface-2)); position: relative; }
.xw-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.xw-img .fig-box { height: 100%; width: auto; aspect-ratio: 4 / 3; margin: 0 auto; background: transparent; border-radius: 0; }
.xw-card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.xw-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 24px; text-transform: uppercase; line-height: 1.05; }
.xw-card .tags { margin-top: 0; }
.xw-card .btn { margin-top: auto; }
.xw-meta { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.xw-meta svg { width: 18px; height: 18px; flex: none; }


.comm { background: var(--sun); color: #1C1B17; border-radius: 34px; padding: 22px 20px 20px; display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.comm-art { position: relative; height: 170px; margin: 0 -4px 4px; }
.cm-tile { position: absolute; top: 14px; width: 42%; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 10px 22px rgba(90, 70, 0, .22); display: flex; flex-direction: column; justify-content: center; }
.cm-tile .fig-box, .cm-tile .dish { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; background: #FFF8D6; --fig: #1C1B17; }
.cm-tile.c0 { left: 0; transform: rotate(-7deg); }
.cm-tile.c1 { left: 29%; top: 0; z-index: 2; transform: rotate(2deg); }
.cm-tile.c2 { right: 0; transform: rotate(7deg); background: #1C1B17; color: #fff; padding: 14px; justify-content: flex-end; align-items: flex-end; text-align: right; gap: 2px; }
.cm-tile.c2 b { font-family: var(--font-display); font-size: 22px; text-transform: uppercase; }
.cm-tile.c2 small { color: rgba(255, 255, 255, .7); font-size: 12px; }
.cm-tile.c2 svg { position: absolute; top: 14px; right: 14px; left: auto; width: 26px; height: 26px; color: var(--sun); }
.cm-bubble { position: absolute; left: 8px; top: 8px; display: flex; gap: 2px; background: #fff; border-radius: 12px; padding: 4px 6px; box-shadow: 0 3px 8px rgba(0, 0, 0, .12); }
.cm-bubble svg { width: 16px; height: 16px; color: #E8412C; }
.cm-stat { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 4px; background: #fff; border-radius: 10px; padding: 4px 8px; font-weight: 800; font-size: 13px; box-shadow: 0 3px 8px rgba(0, 0, 0, .12); }
.cm-stat svg { width: 14px; height: 14px; color: #E8412C; }
.cm-stat.s0 { right: 26%; bottom: 26px; }
.cm-stat.s1 { right: 22%; bottom: -2px; }
.comm h2 { font-family: var(--font-display); font-weight: 700; font-size: 28px; text-transform: uppercase; line-height: 1.05; }
.comm-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 16px; font-weight: 600; }
.comm-list li { display: flex; gap: 12px; align-items: flex-start; }
.cm-ic { width: 34px; height: 34px; border-radius: 11px; background: rgba(255, 255, 255, .6); display: grid; place-items: center; flex: none; }
.cm-ic svg { width: 18px; height: 18px; }
.btn.dark svg { width: 20px; height: 20px; }




.pr-row .pr-card { flex: none; width: 272px; scroll-snap-align: start; display: flex; flex-direction: column; }
.pr-row .pr-art { height: 150px; }
.pr-row .pr-card h3 { font-size: 23px; }
.pr-row .pr-card p { font-size: 14px; }
.pr-row .pr-card .body { padding: 16px 18px 18px; flex: 1; }
.pr-row .pr-card .btn { margin-top: auto; }
.pr-card { background: var(--surface); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); }
.pr-art { position: relative; display: block; width: 100%; height: 190px; border: 0; padding: 0; background: radial-gradient(circle at 1px 1px, var(--line) 1px, transparent 1.5px) 0 0 / 14px 14px, var(--surface-2); overflow: hidden; }
.pr-art.big { height: 230px; border-radius: 28px; }
.pr-tile { position: absolute; top: 26px; width: 38%; aspect-ratio: 3 / 4; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 22px rgba(60, 48, 10, .14); }
.pr-tile .fig-box { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; background: #fff; }
.pr-tile.t0 { left: 6%; transform: rotate(-6deg); }
.pr-tile.t1 { left: 31%; top: 14px; z-index: 2; width: 38%; background: var(--sun); }
.pr-tile.t1 .fig-box { background: var(--sun); --fig: #1C1B17; --mat: #fff; }
.pr-tile.t2 { right: 6%; transform: rotate(6deg); }
.pr-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; }
.pr-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 28px; text-transform: uppercase; line-height: 1.05; }
.pr-card p { margin: 0; color: var(--muted); font-size: 15px; }
.pr-point { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.pr-point svg { width: 18px; height: 18px; flex: none; margin-top: 2px; padding: 3px; border-radius: 6px; background: var(--sun); color: #1C1B17; box-sizing: content-box; }
.pr-ex { width: 100%; border: 0; background: none; padding: 0; text-align: left; }


.acc-head { display: flex; gap: 16px; align-items: center; padding: 6px 2px; }
.avatar.big { width: 76px; height: 76px; font-size: 34px; }
.acc-h { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 10px 2px -6px; }
.acc-note { display: flex; gap: 12px; align-items: flex-start; background: var(--surface-2); border-radius: 16px; padding: 12px 14px; font-size: 13px; line-height: 1.45; }
.acc-note svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.sw-list { padding: 4px 18px; }
.sw-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); cursor: pointer; }
.sw-list .sw-row:first-child { border-top: 0; }
.card.stack .sw-row { border-top: 1px solid var(--line); padding: 12px 0; }
.sw-row b { display: block; font-size: 15px; }
.sw-row small { display: block; font-size: 13px; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.switch { appearance: none; -webkit-appearance: none; flex: none; width: 50px; height: 30px; border-radius: 999px; background: var(--line); position: relative; cursor: pointer; transition: background .2s; margin: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .25s cubic-bezier(.16, 1, .3, 1); }
.switch:checked { background: var(--sun-deep); }
.switch:checked::after { transform: translateX(20px); }
.switch:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.consent svg { width: 16px; height: 16px; flex: none; padding: 4px; border-radius: 8px; background: #3E8E28; color: #fff; box-sizing: content-box; margin-top: 1px; }
.consent .link { font-weight: 700; }

.consent-ask { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; }
.consent-ask input { width: 20px; height: 20px; flex: none; margin: 0; accent-color: var(--sun, #E8A33D); }
.consent-ask.need { border-color: var(--warn, #8A5A00); background: var(--warn-soft, #FFF6E5); }
.consent-ask .link { font-weight: 700; }
.warn-text { color: var(--warn, #8A5A00); font-weight: 700; }
.qa-item.danger b { color: #B3261E; }
.qa-item.danger .qa-ic { background: #FDE7E4; color: #B3261E; }
.btn.danger { background: #B3261E; color: #fff; }
.acc-link { width: 100%; border: 0; text-align: left; align-items: center; }
.acc-link .chev { width: 20px; height: 20px; flex: none; margin-left: auto; }
.acc-foot { text-align: center; font-size: 12px; color: var(--muted); padding: 10px 0 4px; line-height: 1.7; }
@media (prefers-reduced-motion: reduce) { .switch, .switch::after { transition: none; } }


.sec-head { margin-top: 10px; display: flex; flex-direction: column; gap: 2px; }
.sec-head h2 { font-size: 20px; font-weight: 800; line-height: 1.2; }
.sec-head p { margin: 0; font-size: 14px; color: var(--muted); }
.page.still { animation: none; }


.x-thumb { display: grid; place-items: center; background: var(--sun-soft); color: var(--ink); }
.x-thumb svg { width: 26px; height: 26px; }
.x-del { flex: none; width: 36px; height: 36px; border-radius: 12px; border: 0; background: var(--surface-2); color: var(--muted); display: grid; place-items: center; padding: 0; position: relative; }
.x-del::after { content: ""; position: absolute; inset: -4px; }
.x-del svg { width: 18px; height: 18px; }
.x-del:active { transform: scale(.94); }
.x-add { margin-top: 2px; }
.food-pick { cursor: pointer; }
.food-pick svg { width: 20px; height: 20px; }
.food-photo { position: relative; border-radius: 20px; overflow: hidden; background: var(--surface-2); }
.food-photo img { display: block; width: 100%; max-height: 260px; object-fit: cover; }
.x-del.on-img { position: absolute; top: 10px; right: 10px; background: rgba(28, 27, 23, .6); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.food-res { display: flex; flex-direction: column; gap: 12px; }
.food-kcal { display: flex; align-items: baseline; gap: 10px; }
.food-kcal input { width: 150px; font-family: var(--font-display); font-size: 40px; font-weight: 700; line-height: 1; padding: 8px 12px; }
.food-kcal span { font-size: 16px; font-weight: 800; color: var(--muted); }
.food-items { display: flex; flex-direction: column; gap: 6px; }
.food-it { display: grid; grid-template-columns: 1fr 78px 14px; align-items: center; gap: 8px; font-size: 15px; }
.food-it input { padding: 8px 10px; font-size: 15px; text-align: right; border-radius: 12px; }


.cyc-card { padding: 0; overflow: hidden; --ph: var(--sun-deep); }
.cyc-card.phase-menstrual { --ph: #E07A63; }
.cyc-card.phase-follicular { --ph: #4FAE3A; }
.cyc-card.phase-luteal { --ph: #C8961E; }
.cyc-head { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 18px; border: 0; background: none; text-align: left; }
.cyc-head b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 18px; text-transform: uppercase; line-height: 1.15; }
.cyc-head .sub2 { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.cyc-head .chev { width: 20px; height: 20px; flex: none; transform: rotate(90deg); transition: transform .25s cubic-bezier(.16, 1, .3, 1); }
.cyc-head[aria-expanded="true"] .chev { transform: rotate(-90deg); }
.cyc-ring { width: 46px; height: 46px; flex: none; }
.cyc-ring circle + circle { stroke: var(--ph, var(--sun-deep)); }
.cyc-ring text { font-family: var(--font-display); font-weight: 700; font-size: 15px; fill: var(--ink); }
.cyc-body { padding: 0 18px 16px; display: flex; flex-direction: column; gap: 10px; }
.cyc-tip { display: flex; gap: 12px; align-items: flex-start; background: var(--card-soft); border-radius: 16px; padding: 12px; }
.cyc-tip .qa-ic { width: 38px; height: 38px; border-radius: 12px; }
.cyc-tip .qa-ic svg { width: 20px; height: 20px; }
.cyc-tip b { font-size: 14px; }
.cyc-tip p { margin: 2px 0 0; font-size: 14px; line-height: 1.45; }
.cyc-body .link { align-self: flex-start; }
.card.stack > .sw-row:first-child { border-top: 0; padding-top: 0; }
.cyc-step { display: flex; align-items: center; gap: 12px; }
.cyc-step b { display: block; font-size: 15px; }
.cyc-step small { display: block; font-size: 12px; color: var(--muted); }
.stepper { display: flex; align-items: center; gap: 4px; background: var(--surface-2); border-radius: 14px; padding: 4px; }
.stepper button { width: 40px; height: 40px; border: 0; border-radius: 11px; background: var(--surface); font-size: 20px; font-weight: 800; box-shadow: var(--shadow); }
.stepper button[disabled] { opacity: .35; }
.stepper b { min-width: 34px; text-align: center; font-family: var(--font-display); font-size: 20px; }
.cyc-now { display: flex; gap: 12px; align-items: center; background: var(--card-soft); border-radius: 16px; padding: 10px 12px; }
.cyc-now b { display: block; font-size: 14px; }
.cyc-now small { display: block; font-size: 12px; color: var(--muted); line-height: 1.35; margin-top: 2px; }
input[type="date"].input { min-height: 50px; }


.report-card { display: flex; align-items: center; gap: 14px; width: 100%; border: 0; text-align: left; background: var(--sun); color: #1C1B17; border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.report-card .rc-ic { width: 46px; height: 46px; border-radius: 14px; background: #fff; display: grid; place-items: center; flex: none; }
.report-card .rc-ic svg { width: 24px; height: 24px; }
.report-card b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 20px; text-transform: uppercase; line-height: 1.1; }
.report-card span span, .report-card .grow > span { display: block; font-size: 14px; margin-top: 2px; }
.report-card .chev { width: 20px; height: 20px; flex: none; }
.rw-nav { display: grid; grid-template-columns: 46px 1fr 46px; align-items: center; gap: 8px; }
.rw-arrow { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--surface); box-shadow: var(--shadow); display: grid; place-items: center; color: var(--ink); padding: 0; }
.rw-arrow svg { width: 20px; height: 20px; }
.rw-arrow[disabled] { opacity: .3; box-shadow: none; }
.rw-title { text-align: center; display: flex; flex-direction: column; }
.rw-title b { font-family: var(--font-display); font-weight: 700; font-size: 24px; text-transform: uppercase; line-height: 1.1; }
.rw-title span { font-size: 13px; color: var(--muted); }
.rw-loading { display: flex; justify-content: center; }
.rw-loading .sunspin { width: 28px; height: 28px; box-shadow: 0 0 0 6px var(--sun-soft); }
.rw-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rs { background: var(--surface); border-radius: 20px; padding: 14px 12px 12px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rs b { font-family: var(--font-display); font-weight: 700; font-size: 36px; line-height: 1; white-space: nowrap; }
.rs b small { font-size: 18px; color: var(--muted); font-weight: 600; }
.rs span { font-size: 12px; line-height: 1.3; color: var(--muted); }
.rs.sun { background: var(--sun); color: #1C1B17; }
.rs.sun b small, .rs.sun span { color: rgba(28, 27, 23, .7); }
.rw-health { display: flex; flex-direction: column; gap: 8px; }
.rw-stats.three .rs b { font-size: 28px; }
.rw-chart-box svg { width: 100%; height: auto; display: block; }
.rw-chart .kb { fill: var(--sun); }
.rw-chart .kb.over { fill: var(--sun-deep); }
.rw-chart .kb.empty { fill: var(--line); }
.rw-chart .norm { stroke: var(--muted); stroke-width: 1.2; stroke-dasharray: 4 4; opacity: .7; }
.rw-chart text { fill: var(--muted); font-size: 11px; font-family: var(--font-body); font-weight: 700; }
.rw-chart .norm-t { font-size: 10px; font-weight: 600; }
.rw-chart text.wd.ok { fill: var(--ink); }
.rw-chart .wk.done { fill: #3E8E28; }
.rw-chart .wk.miss { fill: none; stroke: #D1573F; stroke-width: 2; }
.rw-chart .wk.plan { fill: none; stroke: var(--line); stroke-width: 2; }
.rw-chart .drop { fill: #58A6D8; }
.rw-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted); margin-top: 6px; }
.rw-legend span { display: inline-flex; align-items: center; gap: 6px; }
.rw-legend i { display: inline-block; }
.rw-legend .lg-bar { width: 10px; height: 12px; border-radius: 3px; background: var(--sun); }
.rw-legend .lg-norm { width: 14px; border-top: 1.5px dashed var(--muted); }
.rw-legend .lg-dot { width: 10px; height: 10px; border-radius: 50%; background: #3E8E28; }
.rw-legend .lg-miss { width: 10px; height: 10px; border-radius: 50%; border: 2px solid #D1573F; box-sizing: border-box; }
.rw-legend svg { width: 12px; height: 12px; color: #58A6D8; }
.rw-best { display: flex; gap: 10px; align-items: flex-start; background: var(--sun-soft); border-radius: 14px; padding: 10px 12px; font-size: 14px; }
.rw-best svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--warn); }
.rw-coach { display: flex; flex-direction: column; gap: 6px; }
.rw-coach-h { display: flex; gap: 12px; align-items: center; margin-bottom: 4px; }
.rw-coach-h .qa-ic { width: 42px; height: 42px; border-radius: 14px; }
.rw-coach-h .qa-ic svg { width: 20px; height: 20px; }
.rw-coach-h b { display: block; font-size: 16px; }
.rw-coach-h .tiny { display: block; }
.rw-coach h4 { margin: 8px 0 0; font-family: var(--font-display); font-weight: 600; font-size: 17px; text-transform: uppercase; letter-spacing: .01em; }
.rw-coach ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.rw-coach li { font-size: 15px; line-height: 1.45; }
.rw-coach li::marker { color: var(--sun-deep); }
.rw-coach p { margin: 0; font-size: 15px; }
@media (max-width: 360px) { .rs b { font-size: 30px; } .rw-title b { font-size: 20px; } }
@media (prefers-reduced-motion: reduce) { .cyc-head .chev { transition: none; } }


.rec-card { --ph: #4FAE3A; }
.rec-card.lv-medium { --ph: #E3A815; }
.rec-card.lv-low { --ph: #E07A63; }
.rec-card.lv-unknown { --ph: var(--line); }
.rec-ring circle + circle { stroke: var(--ph); }
.rec-advice { font-size: 14.5px; line-height: 1.5; background: var(--card-soft); border-radius: 16px; padding: 12px 14px; border-left: 4px solid var(--ph); }
.rec-factors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rec-f { background: var(--surface-2); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.rec-f span { font-size: 12px; color: var(--muted); font-weight: 600; }
.rec-f b { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.rec-f small { font-size: 12px; color: var(--muted); }
.rec-f small.good { color: #3E8E2E; }
.rec-f small.low { color: #C4553E; }
.rec-bars { display: flex; align-items: flex-end; gap: 4px; height: 54px; padding-top: 4px; }
.rec-bars i { flex: 1; border-radius: 5px 5px 3px 3px; background: #7CC46A; min-height: 4px; }
.rec-bars i.medium { background: #F2C94C; }
.rec-bars i.low { background: #EE9A86; }
.rec-bars i.none { background: var(--line); }
.dev-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dev-row .grow { min-width: 150px; }
.dev-row b { display: block; font-size: 15px; }
.dev-row small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.dev-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.dev-ic.whoop { background: #1C1B17; color: #FFDE00; }
.dev-ic.apple { background: #FFE8E3; color: #E0533C; }
.dev-ic svg { width: 22px; height: 22px; }
@media all {
  :root[data-theme="dark"] .rec-f small.good { color: #8FD27E; }
  :root[data-theme="dark"] .rec-f small.low { color: #F2A08C; }
  :root[data-theme="dark"] .dev-ic.whoop { background: #FFDE00; color: #1C1B17; }
  :root[data-theme="dark"] .dev-ic.apple { background: #3A2622; color: #FF8A73; }
}
.dev-act { display: flex; gap: 8px; }
@media (max-width: 440px) { .dev-row:has(.dev-act) .dev-act { width: 100%; padding-left: 56px; } .dev-act .btn { flex: 1; } }


.side-nav { display: none; }
@media (min-width: 1024px) {
  :root { --side-w: 256px; --tabbar-h: 0px; }
  body { background: radial-gradient(1100px 560px at 62% -180px, var(--bg-glow) 0%, transparent 70%) no-repeat, var(--bg); }
  .side-nav { display: flex; flex-direction: column; gap: 4px; position: fixed; z-index: 30; top: 0; left: 0; bottom: 0; width: var(--side-w); padding: 30px 18px 20px; background: color-mix(in srgb, var(--surface) 72%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-right: 1px solid var(--line); overflow-y: auto; }
  .sn-logo { padding: 0 12px 26px; }
  .sn-logo .logo { width: 128px; }
  .sn-list { display: flex; flex-direction: column; gap: 4px; }
  .sn-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px; border: 0; border-radius: 14px; background: none; color: var(--muted); font: 700 15px/1.2 var(--font-body); text-align: left; cursor: pointer; transition: background .15s, color .15s; }
  .sn-item svg { width: 22px; height: 22px; flex: none; }
  .sn-item:hover { background: var(--surface-2); color: var(--ink); }
  .sn-item[aria-current="page"] { background: var(--sun); color: #1C1B17; box-shadow: 0 6px 16px rgba(200, 150, 0, .22); }
  .sn-item:focus-visible, .sn-me:focus-visible { outline: 3px solid var(--sun-deep); outline-offset: 2px; }
  .sn-sep { height: 1px; background: var(--line); margin: 12px 10px; }
  .sn-me { margin-top: auto; display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; }
  .sn-me .avatar { width: 40px; height: 40px; flex: none; }
  .sn-me b { display: block; font-size: 14px; line-height: 1.2; }
  .sn-me small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
  .sn-me .chev { width: 18px; height: 18px; flex: none; color: var(--muted); }

  .tabbar, .fab { display: none; }
  main.app { max-width: calc(1180px + var(--side-w)); margin: 0 auto; padding: 30px 44px 64px calc(var(--side-w) + 44px); }
  main.app.tab-coach, main.app.tab-lib { max-width: calc(980px + var(--side-w)); }
  main.app .topbar { padding-bottom: 6px; }
  main.app .topbar h1 { font-size: 34px; }
  main.app .topbar .ava-btn { display: none; }
  main.app .topbar .tb-sub { padding-left: 0; }
  .dash { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 400px); gap: 28px; align-items: start; }
  .dash > .stack { min-width: 0; }
  .card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
  .lib-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 12px; }
  main.app .scroller, main.app .carousel { margin: 0; padding-left: 0; padding-right: 0; scroll-padding: 0; }
  main.app .day-card { width: calc(100% - 64px); min-height: 400px; }
  .dash-side .scroller { margin: 0 -2px; }

  
  .sheet-back { align-items: center; padding: 32px; }
  .sheet { max-width: 620px; border-radius: 30px; max-height: calc(100vh - 64px); }
  .page { left: var(--side-w); }
  .page-body { max-width: 820px; }
  .toast { left: calc(50% + var(--side-w) / 2); }
  .composer { bottom: 20px; }

  
  .qa-item, .guide-card, .xw-card, .pr-card, .plan-card, .rp-card, .report-card { transition: transform .18s cubic-bezier(.16, 1, .3, 1), box-shadow .18s; }
  .guide-card:hover, .xw-card:hover, .plan-card:hover, .rp-card:hover, .report-card:hover { transform: translateY(-2px); }
}
@media (min-width: 1024px) {
  :root[data-theme="dark"] .sn-logo .zoma { fill: var(--ink); }
}
@media (min-width: 1024px) and (prefers-reduced-motion: reduce) {
  .sn-item, .qa-item, .guide-card, .xw-card, .pr-card, .plan-card, .rp-card, .report-card { transition: none; }
  .guide-card:hover, .xw-card:hover, .plan-card:hover, .rp-card:hover, .report-card:hover { transform: none; }
}
@media (min-width: 1024px) {
  .dash .plan-hero { display: grid; grid-template-columns: minmax(220px, 38%) minmax(0, 1fr); }
  .dash .plan-hero .img { height: 100%; }
  .dash .plan-hero .img .dish, .dash .plan-hero .img .dish-photo { aspect-ratio: auto; height: 100%; min-height: 100%; }
  .dash .plan-hero .body { padding: 20px 22px 22px; }
}


.dish-ph { position: relative; display: block; overflow: hidden; }
.dish-ph > .dish-photo { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; background: var(--surface-2); }
.thumb .dish-ph, .rp-img .dish-ph { height: 100%; }
.mp-ph { margin: -18px -20px 4px; border-radius: 24px 24px 0 0; overflow: hidden; }
.mp-ph .dish { aspect-ratio: 16 / 8; }
@media (min-width: 1024px) { .dash .plan-hero .img .dish-ph { height: 100%; } }


html { scroll-padding-bottom: calc(var(--tabbar-h) + 32px + env(safe-area-inset-bottom, 0px)); scroll-padding-top: 16px; }
:root { --control-line: #B8AF96; --danger: #B3261E; }
@media all { :root[data-theme="dark"] { --control-line: #6A6456; --danger: #FF8A73; } }
:root[data-theme="dark"] { --control-line: #6A6456; --danger: #FF8A73; }
.tick, .glass { border-color: var(--control-line); }
.qa-item.danger b { color: var(--danger); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
.search:focus-within, .composer:focus-within { box-shadow: 0 0 0 2px var(--ink); }
.sheet:focus, .player:focus, #page:focus { outline: none; }


.toast { pointer-events: none; top: calc(12px + env(safe-area-inset-top, 0px)); bottom: auto; z-index: 160; box-shadow: 0 10px 28px rgba(0, 0, 0, .28); text-align: center; width: max-content; animation: toastIn .25s ease; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } }

.icon-btn.coach-ava span { font-family: var(--font-display); font-weight: 700; font-size: 18px; width: 30px; height: 30px; border-radius: 50%; background: var(--sun); color: #1C1B17; display: grid; place-items: center; }

.day-card.rest { min-height: 300px; }

.pl-actions { position: sticky; bottom: 0; display: flex; flex-direction: column; gap: 10px; padding-top: 12px; background: linear-gradient(to top, var(--bg) 75%, transparent); }
.scale-legend { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 4px; padding: 0 4px; }
@media (min-width: 1024px) { .toast { bottom: 28px; } }
.pl-actions .row .btn { min-width: 0; }


.logo-tile { display: inline-block; flex: none; width: 56px; aspect-ratio: 1; background: #FFDE00; border-radius: 24%; box-shadow: 0 8px 22px rgba(214, 160, 0, .22), inset 0 -3px 0 rgba(0, 0, 0, .04); vertical-align: middle; }
.logo-tile svg { display: block; width: 100%; height: 100%; }
.logo-tile .lt-z { fill: #1C1B17; }
.logo-tile.sm { width: 40px; }
.logo-tile.md { width: 72px; }
.sn-logo { display: flex; align-items: center; gap: 12px; }
.sn-brand { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: .08em; color: var(--ink); }

.dish-photo { object-position: 50% 62%; }


.sets { display: flex; flex-direction: column; gap: 8px; background: var(--surface-2); border-radius: 20px; padding: 14px 14px 12px; }
.sets-head { display: grid; grid-template-columns: 62px 1fr 1fr; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 0 2px; }
.sets-row { display: grid; grid-template-columns: 62px 1fr 1fr; gap: 8px; align-items: center; }
.sets-row .input { height: 46px; padding: 0 12px; text-align: center; font-size: 17px; font-weight: 700; }
.sets-n { display: grid; place-items: center; height: 46px; border-radius: 14px; background: var(--surface); border: 1.5px solid var(--line); font-weight: 800; font-size: 16px; }
.sets-row.on .sets-n { background: var(--sun); border-color: var(--sun-deep); color: #1C1B17; }


.maxb { display: flex; flex-direction: column; gap: 10px; background: var(--surface-2); border-radius: 20px; padding: 14px; }
.maxb .qa-ic { width: 40px; height: 40px; flex: none; }
.maxb-it { display: flex; flex-direction: column; gap: 2px; }
.maxb-it b { font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.maxb-it span { font-size: 14px; line-height: 1.45; }


.cardio-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cardio-facts.big { grid-template-columns: repeat(2, 1fr); }
.cardio-facts > div { background: var(--surface-2); border-radius: 16px; padding: 12px 10px; text-align: center; }
.cardio-facts b { display: block; font-family: var(--font-display); font-size: 21px; font-weight: 700; line-height: 1.15; }
.cardio-facts span { font-size: 12px; color: var(--muted); }
.cardio-done { display: flex; gap: 10px; align-items: flex-start; background: var(--surface-2); border-radius: 16px; padding: 12px; }
.cardio-done svg { width: 20px; height: 20px; flex: none; color: var(--sun-deep); margin-top: 2px; }
.center-col { align-items: center; text-align: center; }
.stats.three-row { margin-top: -2px; }


.an-card { border: 2px solid var(--line); }
.an-card.warn { border-color: var(--sun-deep); }
.an-card.ok { border-color: color-mix(in srgb, var(--ink) 12%, transparent); }
.an-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.an-facts span { display: flex; flex-direction: column; background: var(--surface-2); border-radius: 14px; padding: 10px 12px; font-size: 12px; color: var(--muted); }
.an-facts b { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.an-suggest { display: flex; flex-direction: column; gap: 10px; background: var(--surface-2); border-radius: 18px; padding: 14px; }


.ai-page .chat { min-height: 28vh; }
.ai-page .composer { bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
.ai-ctx { display: flex; gap: 10px; align-items: flex-start; background: var(--surface-2); border-radius: 16px; padding: 12px; font-size: 13px; line-height: 1.45; }
.ai-ctx svg { width: 18px; height: 18px; flex: none; color: var(--muted); margin-top: 2px; }



.period-seg button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 8px 2px; font-size: 13px; }
.period-seg button .chip { margin: 0; padding: 1px 6px; font-size: 11px; }
.sm-back { width: 38px; height: 38px; }
.sm-back svg { width: 17px; height: 17px; }


.sets-prev { display: flex; gap: 8px; align-items: flex-start; background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 12px; font-size: 13px; line-height: 1.4; }
.sets-prev svg { width: 17px; height: 17px; flex: none; color: var(--muted); margin-top: 1px; }
.sets-prev.up { border-color: var(--sun-deep); background: var(--sun-soft); }
.sets-prev.up svg { color: var(--sun-deep); }
.str-pills { max-height: 96px; overflow-y: auto; }


.offline-note { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--sun-soft); border: 1.5px solid var(--sun-deep); border-radius: 16px; padding: 12px 14px; font-size: 13px; line-height: 1.4; }
.offline-note svg { width: 18px; height: 18px; flex: none; }
.offline-note span { flex: 1; min-width: 160px; }


.ph-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ph-compare figure { margin: 0; border-radius: 16px; overflow: hidden; background: var(--surface-2); }
.ph-compare img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.ph-compare figcaption { padding: 7px 10px; font-size: 12px; font-weight: 700; text-align: center; color: var(--muted); }
.ph-compare.big img { aspect-ratio: 3 / 4; }
.ph-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; overscroll-behavior-x: contain; }
.ph-strip::-webkit-scrollbar { display: none; }
.ph-thumb { flex: none; width: 74px; border: 0; padding: 0; background: none; display: flex; flex-direction: column; gap: 4px; }
.ph-thumb img { width: 74px; height: 92px; object-fit: cover; border-radius: 12px; }
.ph-thumb span { font-size: 11px; font-weight: 700; color: var(--muted); }
.ph-day { display: flex; flex-direction: column; gap: 8px; }
.ph-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ph-cell { position: relative; }
.ph-cell > button:first-child { border: 0; padding: 0; background: none; width: 100%; display: block; border-radius: 14px; overflow: hidden; position: relative; }
.ph-cell img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.ph-cell.on > button:first-child { outline: 3px solid var(--sun-deep); outline-offset: 1px; border-radius: 14px; }
.ph-role { position: absolute; left: 6px; bottom: 6px; background: var(--ink); color: var(--bg); font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; }
.ph-cell .x-del.on-img { position: absolute; top: 5px; right: 5px; }


.quick.freq { flex-wrap: wrap; overflow: visible; }
.quick.freq button { white-space: normal; text-align: left; line-height: 1.25; max-width: 100%; }
.quick.freq button b { color: var(--muted); font-weight: 800; }
.pg-streak .pg-freeze { display: block; margin-top: 3px; font-size: 11px; font-weight: 700; opacity: .75; }


.price-box { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-box .per { font-size: 13px; font-weight: 700; color: var(--muted); }
.price-box .was { font-size: 15px; font-weight: 700; color: var(--muted); text-decoration: line-through; }
.promo-err { color: var(--warn); font-weight: 700; }
.promo-ok { color: #1E8E4F; font-weight: 700; }


.sets-lock { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 12px; font-size: 13px; line-height: 1.35; }
.sets-lock svg { width: 17px; height: 17px; flex: none; color: var(--muted); }
.sets-lock span { flex: 1; min-width: 140px; }
.sets.locked .sets-row .input { opacity: .55; }


.tipcard.as-details { display: block; padding: 0; }
.tipcard.as-details summary { display: flex; gap: 12px; align-items: center; padding: 12px 14px; cursor: pointer; list-style: none; }
.tipcard.as-details summary::-webkit-details-marker { display: none; }
.tipcard.as-details summary small { display: block; margin-top: 2px; font-size: 13px; color: rgba(28, 27, 23, .68); font-weight: 500; } 
.tipcard.as-details > .small { padding: 0 14px 14px; }


.tap { cursor: pointer; }
.tap:has(> :focus-visible), .tap:focus-visible { outline: 3px solid var(--sun-deep); outline-offset: 3px; }



.sun-card { position: relative; overflow: hidden; }
.sun-card::after { content: ""; position: absolute; right: -40px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, var(--sun-soft) 0%, transparent 70%); pointer-events: none; }
.sun-ring { width: 118px; height: 118px; flex: none; transform: rotate(-90deg); }
.sun-ring .sun-track { stroke: var(--line); }
.sun-ring .sun-seg { stroke: var(--sun-deep); transition: stroke-dasharray .5s cubic-bezier(.16, 1, .3, 1); }
.sun-ring .sun-seg.on { stroke: var(--sun); }
.sun-ring .sun-core { transform: rotate(90deg); transform-origin: 70px 70px; }
.sun-ring .sun-core svg { width: 34px; height: 34px; }
.sun-ring .sun-num { font-family: var(--font-display); font-size: 26px; font-weight: 700; fill: var(--ink); }
.sun-ring.closed .sun-core { animation: sunPop .5s cubic-bezier(.16, 1, .3, 1); }
@keyframes sunPop { from { transform: rotate(90deg) scale(.4); opacity: 0; } }
.sun-legend { display: flex; flex-direction: column; gap: 8px; }
.sun-item { display: flex; align-items: center; gap: 10px; }
.sun-item > i { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; }
.sun-item > i svg { width: 13px; height: 13px; }
.sun-item.on > i { background: var(--sun); border-color: var(--sun); color: var(--sun-ink); }
.sun-item span { display: flex; flex-direction: column; min-width: 0; }
.sun-item.on b { text-decoration: line-through; text-decoration-color: var(--line); }


.gift-row { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; padding: 12px 14px; border-radius: 20px; background: var(--card-soft); text-align: left; }
.gift-row svg { width: 18px; height: 18px; flex: none; color: var(--muted); }
.gift-row span.grow { display: flex; flex-direction: column; min-width: 0; }
.gift-box { font-size: 26px; animation: giftShake 2.4s ease-in-out infinite; }
.gift-box.small { font-size: 22px; animation: none; }
@keyframes giftShake { 0%, 88%, 100% { transform: rotate(0); } 92% { transform: rotate(-9deg); } 96% { transform: rotate(9deg); } }
.gift-stage { display: grid; place-items: center; min-height: 160px; }
.gift-big { font-size: 76px; border: 0; background: none; padding: 0; animation: giftShake 1.8s ease-in-out infinite; }
.gift-big.done { animation: sunPop .5s cubic-bezier(.16, 1, .3, 1); }
.gift-audio { width: 100%; }
.promo-code { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 16px; background: var(--sun-soft); border: 2px dashed var(--sun-deep); }
.promo-code b { font-size: 22px; letter-spacing: .06em; }


.stories { display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px 4px; padding: 2px 16px 6px; scrollbar-width: none; overscroll-behavior-x: contain; }
.stories::-webkit-scrollbar { display: none; }
.story { flex: none; width: 68px; border: 0; background: none; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.story-ring { width: 64px; height: 64px; border-radius: 50%; padding: 3px; background: linear-gradient(135deg, var(--sun), var(--sun-deep)); display: grid; place-items: center; }
.story.seen .story-ring { background: var(--line); }
.story-ring img, .story-ph { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--surface); display: grid; place-items: center; font-size: 24px; }
.story .tiny { max-width: 68px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story-view { position: relative; min-height: 100%; display: flex; flex-direction: column; background: var(--ink); color: var(--bg); padding: 56px 20px 40px; }
.story-bars { position: absolute; top: calc(10px + env(safe-area-inset-top, 0px)); left: 16px; right: 16px; display: flex; gap: 4px; z-index: 3; }
.story-bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .3); }
.story-bars i.on, .story-bars i.now { background: var(--sun); }
.story-nav { position: absolute; top: 0; bottom: 0; width: 40%; border: 0; background: none; z-index: 2; }
.story-nav.left { left: 0; } .story-nav.right { right: 0; }
.story-body { position: relative; z-index: 1; margin: auto 0; display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; pointer-events: none; }
.story-media { width: 100%; max-height: 50vh; object-fit: cover; border-radius: 24px; }
.story-ph.big { width: 120px; height: 120px; font-size: 56px; background: rgba(255, 255, 255, .08); }
.story-view h2 { color: var(--bg); }
.story-text { margin: 0; font-size: 17px; line-height: 1.5; opacity: .9; }


.together { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--muted); padding: 0 2px 6px; }
.together .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); flex: none; }
.together .dot.live { background: #2BB673; animation: pulseDot 1.8s ease-in-out infinite; }
@keyframes pulseDot { 50% { box-shadow: 0 0 0 5px rgba(43, 182, 115, .18); } }


.mood-row { display: flex; flex-direction: column; gap: 6px; }
.moods { display: flex; gap: 6px; }
.mood { flex: 1; min-height: 48px; border: 2px solid var(--line); background: var(--surface); border-radius: 16px; font-size: 22px; padding: 0; transition: transform .15s, border-color .15s, background .15s; }
.mood.on { border-color: var(--sun); background: var(--sun-soft); transform: scale(1.06); }


.sunset-art { position: relative; height: 110px; border-radius: 20px; overflow: hidden; background: linear-gradient(180deg, #FFD08A 0%, #FFB05C 55%, #E8743C 100%); }
.sunset-sun { position: absolute; left: 50%; bottom: 26px; width: 58px; height: 58px; margin-left: -29px; border-radius: 50%; background: #FFF3B0; box-shadow: 0 0 36px 12px rgba(255, 220, 120, .7); animation: sunDown 2.2s cubic-bezier(.4, 0, .6, 1) forwards; }
.sunset-sea { position: absolute; left: 0; right: 0; bottom: 0; height: 34px; background: linear-gradient(180deg, rgba(60, 40, 90, .55), rgba(30, 20, 50, .85)); }
@keyframes sunDown { from { transform: translateY(-34px); } to { transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { .sunset-sun, .gift-box, .gift-big, .together .dot.live { animation: none; } }


.rate-row { display: flex; gap: 8px; }
.rate { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px; border: 2px solid var(--line); border-radius: 20px; background: var(--surface); }
.rate span { font-size: 26px; }
.rate b { font-size: 13px; }
.rate:active { border-color: var(--sun); background: var(--sun-soft); }


.zones { display: flex; flex-wrap: wrap; gap: 8px; }
.zone { flex: 1 1 calc(50% - 4px); min-height: 48px; border: 2px solid var(--line); border-radius: 18px; background: var(--surface); font-weight: 700; font-size: 15px; }
.zone:active { border-color: var(--sun); background: var(--sun-soft); }
.two-up { display: flex; gap: 8px; }
.two-up .btn { flex: 1; }


.test-row { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); }
.test-row:first-of-type { border-top: 0; }
.spark { width: 120px; height: 28px; margin-top: 4px; display: block; }
.spark polyline { stroke: var(--sun-deep); }
.test-timer { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 10px 0; }
.test-timer .t { font-family: var(--font-display); font-size: 54px; font-weight: 700; }
.counter { display: flex; align-items: center; gap: 14px; }
.counter b { font-family: var(--font-display); font-size: 34px; min-width: 56px; text-align: center; }


.mate { display: flex; align-items: center; gap: 10px; }
.mate .grow { display: flex; align-items: center; gap: 6px; min-width: 0; }
.fire { border: 0; background: none; font-size: 20px; padding: 4px 6px; border-radius: 12px; }
.fire:active { background: var(--sun-soft); }
.x-btn { border: 0; background: none; padding: 6px; border-radius: 12px; color: var(--muted); flex: none; }
.x-btn svg { width: 16px; height: 16px; display: block; }
.x-btn:active { background: var(--surface-2); }


.xw-img .fig-box.is-tile { width: 100%; }


.player .fig-box.can-play { width: min(100%, calc((100vh - 415px) * 1.7778)); width: min(100%, calc((100svh - 415px) * 1.7778)); flex: none; border-radius: 20px; background: #100d08; }
.player .fig-box.is-model { width: clamp(80px, calc((100svh - 415px) * .5625), min(100%, 30svh)); }
.player .inner { gap: 12px; }
.pl-log { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pl-log label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.pl-log span { flex: none; }
.pl-log .input { min-height: 42px; min-width: 0; width: 100%; padding: 6px 8px; text-align: center; font-size: 18px; font-weight: 800; color: var(--ink); }
.player .pl-skip { white-space: nowrap; }
.player .info { font-size: 14px; padding: 10px 14px; }
.player .pl-actions { padding-top: 8px; }

@media (orientation: landscape) and (max-height: 560px) {
  .player .inner:has(> :is(.fig-box.can-play, .fig-box.is-model)) { max-width: 900px; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 18px; row-gap: 10px; align-content: start; }
  .player .inner:has(> :is(.fig-box.can-play, .fig-box.is-model)) > * { grid-column: 2; }
  .player .inner:has(> :is(.fig-box.can-play, .fig-box.is-model)) > :first-child, .player .inner:has(> :is(.fig-box.can-play, .fig-box.is-model)) > .segs { grid-column: 1 / -1; }
  .player .inner > :is(.fig-box.can-play, .fig-box.is-model) { grid-column: 1; grid-row: 3 / span 12; align-self: start; margin: 0;
    width: calc((100vh - 110px) * .5625); width: calc((100svh - 110px) * .5625); }
  .player .inner > .fig-box.can-play { width: min(56vw, calc((100svh - 110px) * 1.7778)); }
  .player .inner:has(> :is(.fig-box.can-play, .fig-box.is-model)) > .grow-space { display: none; }
  
  .sheet .fig-box.can-play { width: min(100%, calc((100vh - 96px) * 1.7778)); width: min(100%, calc((100svh - 96px) * 1.7778)); }
}


.a2hs { position: fixed; left: 12px; right: 12px; bottom: calc(var(--tabbar-h, 66px) + 14px + env(safe-area-inset-bottom, 0px)); z-index: 120; max-width: 440px; margin: 0 auto;
  background: var(--surface); color: var(--ink); border-radius: 20px; box-shadow: 0 12px 40px rgba(0, 0, 0, .28);
  padding: 12px 12px 12px 14px; display: flex; gap: 12px; align-items: center; font: 14px/1.4 var(--font-body);
  transform: translateY(16px); opacity: 0; transition: transform .35s cubic-bezier(.16, 1, .3, 1), opacity .35s; }
.a2hs.show { transform: none; opacity: 1; }
.a2hs-ic { flex: none; width: 40px; height: 40px; border-radius: 11px; background: #FFDE00 url(/icons/icon-192.png) center / cover; }
.a2hs-t { flex: 1; min-width: 0; }
.a2hs-t b { display: block; font-size: 14px; font-weight: 800; }
.a2hs-t p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.a2hs-t svg { width: 16px; height: 16px; vertical-align: -3px; color: var(--ink); }
.a2hs-go { margin-top: 8px; border: 0; border-radius: 12px; background: #FFDE00; color: #1C1B17; font-weight: 800; padding: 8px 14px; min-height: 38px; font-size: 14px; }
.a2hs-x { flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--muted); font-size: 18px; line-height: 1; display: flex; align-items: center; justify-content: center; }
@media (min-width: 900px) { .a2hs { left: auto; right: 24px; bottom: 24px; } }
@media (prefers-reduced-motion: reduce) { .a2hs { transition: none; } }


.topbar .ttl { min-width: 0; }
.tariff-pill { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; margin-top: 6px; padding: 5px 6px 5px 11px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--muted); font: 600 12.5px/1.2 var(--font-body); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tariff-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tariff-pill b { flex: none; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink); font-weight: 800; }
.tariff-pill.soon b { background: var(--sun, #FFDE00); color: #1C1B17; }
.tariff-pill:active { transform: scale(.98); }


.pay-head h2 { margin: 0; }
.pay-opts { display: flex; flex-direction: column; gap: 10px; }
.pay-opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 14px; border: 1.5px solid var(--line); border-radius: 18px;
  background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; font: inherit; -webkit-tap-highlight-color: transparent;
  transition: border-color .15s ease, background .15s ease, transform .1s ease; }
.pay-opt:active { transform: scale(.99); }
.pay-opt.on { border-color: var(--sun); background: color-mix(in srgb, var(--sun) 9%, var(--surface)); }
.po-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); font-size: 20px; }
.po-ic svg { width: 24px; height: 24px; }
.po-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.po-txt b { font-size: 15.5px; }
.po-txt small { color: var(--muted); font-size: 12.5px; line-height: 1.3; }
.po-price { flex: none; font-size: 16px; white-space: nowrap; }
.po-dot { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); }
.pay-opt.on .po-dot { border-color: var(--sun); background: radial-gradient(circle, var(--sun) 0 45%, transparent 50%); }
.pay-promo { display: flex; gap: 8px; }
.pay-promo .input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .04em; }
.pay-total { display: flex; align-items: baseline; justify-content: space-between; padding: 12px 2px 0; border-top: 1px solid var(--line); }
.pay-total span { color: var(--muted); font-weight: 600; }
.pay-total b { font-size: 24px; }
.pay-total s { color: var(--muted); font-size: 15px; font-weight: 600; margin-right: 6px; }
.pay-go { min-height: 56px; font-size: 17px; }
.pay-wait { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border-radius: 16px; background: var(--surface-2); }
.pay-wait svg { flex: none; width: 22px; height: 22px; color: var(--sun); }


.login-ways { display: flex; flex-direction: column; gap: 8px; }
.login-way { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.lw-ic { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); font-size: 18px; }
.lw-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lw-txt small { color: var(--muted); font-size: 12.5px; line-height: 1.3; overflow-wrap: anywhere; }

@media (max-width: 560px) {
  .login-way:has(.btn) { flex-wrap: wrap; }
  .login-way:has(.btn) .lw-txt { flex: 1 1 calc(100% - 52px); }
  .login-way .btn { margin-left: 48px; }
}
.lw-ok { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--sun) 18%, transparent); color: var(--sun); }
.lw-ok svg { width: 16px; height: 16px; }


.tier-badge { display: inline-flex; align-items: center; justify-content: center; flex: none; align-self: flex-start; padding: 3px 8px; border-radius: 999px;
  font: 900 11px/1 var(--font-body); letter-spacing: .08em; color: #1C1B17; background: var(--surface-2); }
.tier-badge.pro { background: linear-gradient(135deg, #FFE45C, #F2C200); box-shadow: 0 0 0 1px rgba(255, 222, 0, .35), 0 0 14px rgba(255, 222, 0, .45); animation: tierGlow 2.6s ease-in-out infinite; }
.tier-badge.vip { color: #fff; background: linear-gradient(135deg, #B48CFF, #7B4DFF 55%, #F2C200); box-shadow: 0 0 0 1px rgba(180, 140, 255, .4), 0 0 16px rgba(150, 100, 255, .5); animation: tierGlow 2.6s ease-in-out infinite; }
.tier-badge.off { color: var(--muted); background: var(--surface-2); }
.tier-badge.big { padding: 6px 12px; font-size: 13px; }
@keyframes tierGlow { 50% { filter: brightness(1.12); box-shadow: 0 0 0 1px rgba(255, 222, 0, .5), 0 0 22px rgba(255, 222, 0, .6); } }
.tier-badge.vip { animation-name: tierGlowVip; }
@keyframes tierGlowVip { 50% { filter: brightness(1.12); box-shadow: 0 0 0 1px rgba(180, 140, 255, .6), 0 0 24px rgba(150, 100, 255, .7); } }
@media (prefers-reduced-motion: reduce) { .tier-badge { animation: none !important; } }
.ava-btn.tier-pro { box-shadow: 0 0 0 2px #F2C200, 0 0 14px rgba(255, 222, 0, .45); }
.ava-btn.tier-vip { box-shadow: 0 0 0 2px #9B6BFF, 0 0 16px rgba(150, 100, 255, .5); }
.tariff-pill .tier-badge { margin-left: -4px; }
.tariff-pill.active b { background: var(--surface-2); color: var(--ink); }
.tariff-pill.active.soon b { background: var(--sun); color: #1C1B17; }


.sub-link { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface);
  color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.sub-link small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.sub-link .chev { width: 18px; height: 18px; color: var(--muted); }
.sub-hero { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 24px; border: 1px solid var(--line);
  background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--sun) 16%, transparent), transparent 60%), var(--surface); }
.sub-hero.vip { background: radial-gradient(120% 90% at 0% 0%, rgba(150, 100, 255, .22), transparent 60%), var(--surface); }
.sub-hero.none { background: var(--surface); }
.sub-state { padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--sun) 15%, transparent); color: var(--sun); font-weight: 800; font-size: 12.5px; }
.sub-left { font-size: 15px; color: var(--muted); }
.sub-left b { font-size: 34px; color: var(--ink); font-family: var(--font-display); margin-right: 4px; }
.sub-bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.sub-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #F2C200, #FFE45C); }
.sub-hero.vip .sub-bar i { background: linear-gradient(90deg, #7B4DFF, #B48CFF); }
.sub-renew { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.sub-renew svg { width: 16px; height: 16px; color: var(--sun); flex: none; }
.sub-renew span { flex: 1; min-width: 160px; }
.sub-plans { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 640px) { .sub-plans { grid-template-columns: 1fr 1fr; } }
.sub-plan { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.sub-plan.on { border-color: var(--sun); }
.sub-plan ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.sub-hist { display: flex; flex-direction: column; }
.sub-hrow { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sub-hrow:last-child { border-bottom: 0; }
.sub-hrow small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.sub-hrow.refunded { opacity: .55; }


:root { --tq-err: #D6452A; --tq-err-soft: #FCE7E1; --tq-fix: #9A6B00; --tq-fix-soft: #FFF1CC; --tq-ok: #227A52; --tq-ok-soft: #E1F3E9; --tq-video-bg: #0E0C08; }
:root[data-theme="dark"] { --tq-err: #FF7A5C; --tq-err-soft: #3A1C14; --tq-fix: #F3C35A; --tq-fix-soft: #30260E; --tq-ok: #5FD39A; --tq-ok-soft: #12291D; }
.tq-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; font-weight: 700; }
.tq-legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; background: currentColor; }
.tq-legend .e { color: var(--tq-err); } .tq-legend .f { color: var(--tq-fix); } .tq-legend .o { color: var(--tq-ok); }
.tq-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; -webkit-overflow-scrolling: touch; }
.tq-row::-webkit-scrollbar { display: none; }
.tq-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.tq-chip { flex: none; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 14px; min-height: 40px; white-space: nowrap; }
.tq-chip .num { opacity: .6; font-weight: 600; margin-left: 2px; }
.tq-chip.on { background: var(--sun); border-color: var(--sun); color: var(--sun-ink); }
.tq-chip.on .num { opacity: .75; }
.tq-safe-pick { display: grid; gap: 10px; padding: 12px; border-radius: 18px; background: var(--surface-2); }
.tq-h { font-family: var(--font-display); text-transform: uppercase; font-size: 20px; margin: 6px 0 10px; }
.tq-sec + .tq-sec { margin-top: 8px; }
.tq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 720px) { .tq-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .tq-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tq-card { display: grid; gap: 6px; align-content: start; padding: 0; border: 0; background: none; color: var(--ink); text-align: left; min-width: 0; }
.tq-thumb { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: var(--tq-video-bg); box-shadow: var(--shadow); }
.tq-thumb img, .tq-thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tq-thumb video { opacity: 0; transition: opacity .25s; z-index: 1; }
.tq-thumb video.on { opacity: 1; }

.tq-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.tq-badge { font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 8px; background: var(--surface-2); color: var(--ink); }
.tq-badge.tq-n { background: var(--tq-err-soft); color: var(--tq-err); }
.tq-badge.warn { background: var(--tq-fix-soft); color: var(--tq-fix); }
.tq-name { font-size: 15px; line-height: 1.25; }
.tq-err1 { font-size: 13px; line-height: 1.3; color: var(--tq-err); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tq-skel { display: block; border-radius: 18px; background: var(--surface-2); aspect-ratio: 9 / 16; animation: tqPulse 1.2s ease-in-out infinite alternate; }
@keyframes tqPulse { to { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .tq-skel { animation: none; } }
.tq-entry { border-top: 0; padding: 12px 14px; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow); }



.tq-player { position: relative; width: min(100%, calc(62svh * 16 / 9)); margin: 0 auto; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #080604; }
.tq-player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #080604; }
.tq-player canvas.tq-wide { position: absolute; inset: 0; width: 100%; height: 100%; }
.tq-player.is-wide video { opacity: 0; }
.tq-sub { font-size: 12px; letter-spacing: .14em; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.tq-title { font-size: 28px; margin: -6px 0 0; }
.tq-etabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tq-etab { border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 14px; padding: 9px 14px; font-weight: 800; min-height: 42px; }
.tq-etab.on { background: var(--tq-err); border-color: var(--tq-err); color: #fff; }
:root[data-theme="dark"] .tq-etab.on { color: #1C1B17; } 
.tq-trio { display: grid; gap: 8px; }
.tq-trio[hidden] { display: none; }
.tq-blk { border-radius: 16px; padding: 12px 14px; border: 1.5px solid; }
.tq-blk b { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 4px; }
.tq-blk p { margin: 0; font-size: 16px; line-height: 1.35; color: var(--ink); }
.tq-blk.e { border-color: var(--tq-err); background: var(--tq-err-soft); } .tq-blk.e b { color: var(--tq-err); }
.tq-blk.f { border-color: var(--tq-fix); background: var(--tq-fix-soft); } .tq-blk.f b { color: var(--tq-fix); }
.tq-blk.o { border-color: var(--tq-ok); background: var(--tq-ok-soft); } .tq-blk.o b { color: var(--tq-ok); }
.tq-box { background: var(--surface); border-radius: 20px; padding: 14px 16px; box-shadow: var(--shadow); display: grid; gap: 10px; }
.tq-box h3 { margin: 0; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tq-cues { margin: 0; padding-left: 20px; display: grid; gap: 6px; line-height: 1.35; }
.tq-mus { font-size: 13px; font-weight: 800; padding: 5px 10px; border-radius: 10px; background: var(--sun-soft); color: var(--ink); }
.tq-srow { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; }
.tq-srow > span { font-weight: 700; }
.tq-sv { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 8px; }
.tq-sv.ok { background: var(--tq-ok-soft); color: var(--tq-ok); }
.tq-sv.caution { background: var(--tq-fix-soft); color: var(--tq-fix); }
.tq-sv.avoid { background: var(--tq-err-soft); color: var(--tq-err); }
.tq-snote { grid-column: 1 / -1; margin: 0; font-size: 14px; color: var(--muted); line-height: 1.35; }
.tq-disc { margin: 4px 0 0; font-size: 13px; color: var(--muted); line-height: 1.4; }
.tq-credit { font-size: 11px; line-height: 1.4; }

.tq-bio { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; background: #0E0C08; }
.tq-bio[hidden] { display: none; }
.tq-bio-top { flex: none; display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 10px; padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 8px; background: #0E0C08; color: #F6F2E6; }
.tq-bio-top .back-btn { border-color: rgba(246, 242, 230, .5); color: #F6F2E6; }
.tq-bio-ttl { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tq-bio-week { font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 8px; background: rgba(95, 211, 154, .16); color: #5FD39A; white-space: nowrap; }
.tq-bio-week.demo { background: rgba(243, 195, 90, .16); color: #F3C35A; }
.tq-bio-frame { flex: 1; width: 100%; border: 0; display: block; background: #0E0C08; }


.bio-in { display: flex; flex-direction: column; gap: 8px; }
.bio-in-box { position: relative; width: 100%; aspect-ratio: 1 / 1; max-height: 64svh; border-radius: 20px; overflow: hidden; background: radial-gradient(120% 80% at 50% 45%, #17110b, #090706 70%); }
.bio-in-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; opacity: 0; transition: opacity .35s ease; }
.bio-in-box.ready .bio-in-frame { opacity: 1; }
.bio-in-load { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; text-align: center; color: #9a8670; font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.bio-in-box.ready .bio-in-load { display: none; }
@media (prefers-reduced-motion: reduce) { .bio-in-frame { transition: none; } }


.ob { display: flex; flex-direction: column; min-height: calc(100vh - 24px); min-height: calc(100dvh - 24px); }
.ob-top { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 8px 0 10px; background: var(--bg); }
.ob-back { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border: 0; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); color: var(--ink); }
.ob-back svg { width: 20px; height: 20px; transform: scaleX(-1); }
.ob-seg { flex: 1; display: flex; gap: 4px; }
.ob-seg i { flex: 1; height: 5px; border-radius: 3px; background: var(--line); transition: background .3s; }
.ob-seg i.done { background: var(--ink); }
.ob-seg i.cur { background: var(--sun-deep); }
.ob-count { font-size: 12px; font-weight: 800; color: var(--muted); min-width: 34px; text-align: right; }
.ob-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.ob-body { flex: 1; padding-bottom: 16px; animation: ob-in .32s ease both; }
@keyframes ob-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.ob-h { font-size: 31px; margin: 2px 0 0; }
.ob-sub { margin: -6px 0 0; color: var(--muted); font-size: 14px; }
.ob-cta { position: sticky; bottom: 0; z-index: 3; display: flex; flex-direction: column; gap: 6px; padding: 14px 0 calc(12px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(to top, var(--bg) 70%, transparent); }
.ob-skip { align-self: center; padding: 6px; }
.tiles2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tile { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; border: 2px solid transparent; background: var(--surface); border-radius: 22px; padding: 16px; box-shadow: var(--shadow); min-height: 96px; transition: transform .12s; }
.tile:active { transform: scale(.98); }
.tile b { font-size: 17px; }
.tile span { font-size: 13px; color: var(--muted); line-height: 1.35; }
.tile.big b { font-family: var(--font-display); font-size: 44px; line-height: 1; }
.tile[aria-pressed="true"] { background: var(--sun); border-color: var(--sun-deep); color: #1C1B17; }
.tile[aria-pressed="true"] span { color: rgba(28, 27, 23, .72); }


.dial + .dial { border-top: 1px solid var(--line); padding-top: 14px; }
.dial-top { display: flex; align-items: baseline; justify-content: space-between; }
.dial-label { font-weight: 800; }
.dial-val b { font-family: var(--font-display); font-size: 40px; line-height: 1; }
.dial-val small { color: var(--muted); font-weight: 700; }
.dial-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.dial-btn { width: 40px; height: 40px; flex: none; border: 0; border-radius: 50%; background: var(--surface-2); font-size: 22px; font-weight: 800; line-height: 1; color: var(--ink); }
.dial-btn:active { background: var(--sun); color: #1C1B17; }
.range { -webkit-appearance: none; appearance: none; flex: 1; width: 100%; height: 34px; background: transparent; margin: 0; touch-action: pan-y; }
.range::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: linear-gradient(to right, var(--ink) var(--p, 50%), var(--line) var(--p, 50%)); }
.range::-moz-range-track { height: 8px; border-radius: 4px; background: linear-gradient(to right, var(--ink) var(--p, 50%), var(--line) var(--p, 50%)); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -11px; border-radius: 50%; background: var(--sun); border: 3px solid var(--ink); box-shadow: 0 3px 10px rgba(0, 0, 0, .18); }
.range::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--sun); border: 3px solid var(--ink); }


.figs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.figpick { position: relative; padding: 0; border: 2px solid transparent; border-radius: 16px; overflow: hidden; background: #F3EBDD; box-shadow: var(--shadow); transition: transform .12s; }
.figpick:active { transform: scale(.97); }
.figpick img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 2; object-fit: cover; transform: scale(1.18); transform-origin: 50% 46%; }
.figpick span { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); background: rgba(255, 255, 255, .92); color: #1C1B17; font-weight: 800; font-size: 12px; padding: 2px 8px; border-radius: 999px; }
.figpick[aria-pressed="true"] { border-color: var(--ink); }
.figpick[aria-pressed="true"] span { background: var(--sun); }
.figpick[aria-pressed="true"]::after { content: "✓"; position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--sun); font-weight: 900; font-size: 13px; display: grid; place-items: center; }


.steps-card { text-align: center; }
.steps-big b { display: block; font-family: var(--font-display); font-size: 64px; line-height: 1; }
.steps-big span { color: var(--muted); font-size: 13px; }
.steps-lv b { display: block; font-size: 18px; }
.steps-lv span { font-size: 13px; color: var(--muted); }


.tgls { display: flex; flex-direction: column; gap: 8px; }
.tgl { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: 18px; padding: 14px 16px; box-shadow: var(--shadow); cursor: pointer; }
.tgl input { position: absolute; opacity: 0; pointer-events: none; }
.tgl span { flex: 1; }
.tgl b { display: block; font-size: 15px; }
.tgl small { display: block; color: var(--muted); font-size: 12px; }
.tgl i { flex: none; width: 46px; height: 28px; border-radius: 14px; background: var(--line); position: relative; transition: background .2s; }
.tgl i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s; }
.tgl input:checked ~ i { background: var(--ink); }
.tgl input:checked ~ i::after { transform: translateX(18px); background: var(--sun); }
.tgl input:focus-visible ~ i { outline: 2px solid var(--ink); outline-offset: 2px; }


.likes { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.like-stack { position: relative; width: 100%; max-width: 360px; aspect-ratio: 4 / 5; }

.like-stack { max-width: min(360px, calc((100vh - 380px) * .8)); max-width: min(360px, calc((100dvh - 380px) * .8)); min-width: 200px; }
.like-card { position: absolute; inset: 0; border-radius: 26px; overflow: hidden; background: var(--surface-2); box-shadow: 0 10px 30px rgba(60, 48, 10, .14); transform: translateY(calc(var(--i) * 12px)) scale(calc(1 - var(--i) * .05)); transition: transform .25s; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.like-card.top { cursor: grab; }
.like-card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.like-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; background: linear-gradient(to top, rgba(0, 0, 0, .72), transparent); color: #fff; display: flex; flex-direction: column; }
.like-cap b { font-family: var(--font-display); font-size: 28px; text-transform: uppercase; line-height: 1.05; }
.like-cap span { font-size: 13px; opacity: .9; }
.like-stamp { position: absolute; top: 18px; padding: 6px 12px; border-radius: 10px; border: 3px solid; font-family: var(--font-display); font-size: 22px; text-transform: uppercase; font-weight: 700; background: rgba(255, 255, 255, .9); }
.like-stamp.yes { left: 16px; color: #1B8A4B; transform: rotate(-12deg); opacity: var(--yes, 0); }
.like-stamp.no { right: 16px; color: #C8381E; transform: rotate(12deg); opacity: var(--no, 0); }
.like-btns { display: flex; align-items: center; gap: 22px; }
.like-btn { width: 64px; height: 64px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--surface); box-shadow: var(--shadow); transition: transform .12s; }
.like-btn:active { transform: scale(.92); }
.like-btn svg { width: 28px; height: 28px; }
.like-btn.no { color: #C8381E; }
.like-btn.yes { background: var(--sun); color: #1C1B17; }
.likes-done { align-items: center; text-align: center; }
.likes-done .sunball { width: 56px; height: 56px; border-radius: 50%; background: var(--sun); color: #1C1B17; display: grid; place-items: center; }
.likes-done .sunball svg { width: 26px; height: 26px; }


.ob-build { min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 24px 0; }
.ob-build h1 { font-size: 30px; margin: 10px 0 0; }
.build-ring { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--sun-deep) calc(var(--p) * 1%), var(--line) 0); position: relative; transition: background .4s; }
.build-ring::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--bg); }
.build-ring span { position: relative; font-family: var(--font-display); font-size: 30px; font-weight: 700; }
.build-list { list-style: none; margin: 14px 0 0; padding: 18px; display: flex; flex-direction: column; gap: 12px; text-align: left; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow); width: 100%; max-width: 360px; }
.build-list li { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--muted); transition: color .3s; }
.build-list i { width: 26px; height: 26px; flex: none; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; color: transparent; transition: all .3s; }
.build-list i svg { width: 15px; height: 15px; }
.build-list li.done { color: var(--ink); }
.build-list li.done i { background: var(--ink); border-color: var(--ink); color: var(--sun); animation: pop .35s ease; }
.build-list li.cur i { border-color: var(--sun-deep); border-top-color: transparent; animation: spin .8s linear infinite; }
@keyframes pop { 0% { transform: scale(.4); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }


.result { padding-top: 8px; }
.res-hero { position: relative; overflow: hidden; background: #1C1B17; color: #fff; border-radius: 28px; padding: 22px 20px 20px; box-shadow: 0 14px 34px rgba(28, 27, 23, .22); animation: ob-in .4s ease both; }
.res-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 222, 0, .35), transparent 70%); pointer-events: none; }
.res-eye { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.res-hero h1 { font-size: 30px; margin: 6px 0 4px; color: #fff; }
.res-big { display: flex; align-items: baseline; gap: 6px; color: var(--sun); }
.res-big b { font-family: var(--font-display); font-size: 72px; line-height: 1; }
.res-big span { font-family: var(--font-display); font-size: 26px; text-transform: uppercase; }
.res-sub { margin: 2px 0 14px; color: rgba(255, 255, 255, .78); font-size: 14px; }
.res-scale { margin-top: 4px; }
.rs-head { display: flex; justify-content: space-between; font-size: 12px; color: rgba(255, 255, 255, .7); margin-bottom: 8px; }
.rs-head b { color: #fff; font-size: 14px; margin-left: 4px; }
.rs-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.rs-bar i { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .14); position: relative; overflow: hidden; }
.rs-bar i::after { content: ""; position: absolute; inset: 0; background: var(--sun); border-radius: 4px; transform-origin: left; animation: rs-fill .45s calc(.25s + var(--d) * .22s) ease-out both; opacity: calc(.45 + var(--d) * .14); }
@keyframes rs-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.rs-weeks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 6px; }
.rs-weeks span { display: flex; flex-direction: column; }
.rs-weeks small { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: rgba(255, 255, 255, .55); }
.rs-weeks b { font-family: var(--font-display); font-size: 18px; color: #fff; line-height: 1.2; }
.rs-weeks span:last-child b { color: var(--sun); }
.res-meta { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .85); }
.res-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.res-tabs::-webkit-scrollbar { display: none; }
.res-tabs button { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 5px; border: 0; background: var(--surface); color: var(--muted); font-weight: 800; font-size: 13px; padding: 9px 10px; border-radius: 999px; box-shadow: var(--shadow); }
.res-tabs button svg { width: 16px; height: 16px; }
.res-tabs button[aria-selected="true"] { background: var(--ink); color: var(--sun); }
.mrings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center; }
.mring > span { font-size: 13px; font-weight: 700; color: var(--muted); }
.mr { --c: var(--ink); width: 76px; height: 76px; margin: 0 auto 6px; border-radius: 50%; display: grid; place-items: center; align-content: center; position: relative; background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--surface-2) 0); }
.mr::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--surface); }
.mr b, .mr small { position: relative; line-height: 1; }
.mr b { font-family: var(--font-display); font-size: 24px; }
.mr small { font-size: 11px; color: var(--muted); }
.mring.f .mr { --c: var(--sun-deep); }
.mring.c .mr { --c: #6FA8DC; }
.bars2 { display: grid; gap: 6px; font-size: 13px; }
.bars2 div { display: flex; justify-content: space-between; color: var(--muted); }
.bars2 b { color: var(--ink); }
.bars2 i { display: block; height: 8px; border-radius: 4px; background: linear-gradient(to right, var(--sun-deep) var(--w), var(--surface-2) var(--w)); }
.bars2 i.all { background: var(--ink); opacity: .85; }
.res-stat { background: var(--surface); border-radius: 20px; padding: 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; }
.res-stat b { font-family: var(--font-display); font-size: 24px; line-height: 1.1; }
.meal-row h3 { font-size: 17px; margin-top: 2px; }
.res-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.res-chips > span { background: var(--surface-2); border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700; }
.res-chips > span b { font-weight: 800; }
.ex-row { display: flex; align-items: center; gap: 12px; }
.ex-row img, .ex-ph { width: 64px; height: 48px; flex: none; border-radius: 10px; object-fit: cover; background: #111; }
.ex-ph { display: grid; place-items: center; background: var(--fig-bg); overflow: hidden; }
.ex-ph .fig-box { width: 100%; height: 100%; border-radius: 0; background: transparent; }
@media (prefers-reduced-motion: reduce) { .ob-body, .res-hero, .rs-bar i::after, .build-list li.done i { animation: none; } .build-list li.cur i { animation: none; } }

:root[data-theme="dark"] .res-tabs button[aria-selected="true"],
:root[data-theme="dark"] .build-list li.done i,
:root[data-theme="dark"] .figpick[aria-pressed="true"]::after { background: var(--sun); border-color: var(--sun); color: #1C1B17; }
:root[data-theme="dark"] .figpick[aria-pressed="true"] { border-color: var(--sun); }
:root[data-theme="dark"] .tgl input:checked ~ i { background: var(--sun); }
:root[data-theme="dark"] .tgl input:checked ~ i::after { background: #1C1B17; }
:root[data-theme="dark"] .res-hero { border: 1px solid var(--line); }

.goals { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.goalpick { position: relative; padding: 0; border: 3px solid transparent; border-radius: 22px; overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow); text-align: left; transition: transform .12s, border-color .15s; }
.goalpick:active { transform: scale(.98); }
.goalpick img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.gp-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 12px 12px; background: linear-gradient(to top, rgba(20, 18, 12, .82), rgba(20, 18, 12, 0)); color: #fff; display: flex; flex-direction: column; gap: 2px; }
.gp-cap b { font-family: var(--font-display); font-size: 19px; text-transform: uppercase; line-height: 1.05; }
.gp-cap small { font-size: 12px; line-height: 1.3; opacity: .88; }
.goalpick[aria-pressed="true"] { border-color: var(--sun); }
.goalpick[aria-pressed="true"]::after { content: "✓"; position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%; background: var(--sun); color: #1C1B17; font-weight: 900; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.ob-resume { margin-top: 6px; padding: 8px 12px; border-radius: 12px; background: var(--sun-soft); font-size: 13px; font-weight: 700; }
.res-offer { display: flex; flex-direction: column; gap: 12px; background: var(--surface); color: var(--ink); border: 2px solid var(--sun); border-radius: 24px; padding: 18px; box-shadow: var(--shadow); }
.res-offer .row { gap: 12px; }
.res-offer .sunball { width: 40px; height: 40px; border-radius: 12px; background: var(--sun); flex: none; display: grid; place-items: center; color: #1C1B17; }
.res-offer .sunball svg { width: 20px; height: 20px; }
.res-offer .row > div > b { display: block; font-size: 16px; margin-bottom: 2px; }
.res-offer p b { font-size: inherit; }

.ans-list { padding: 6px 18px 18px; display: flex; flex-direction: column; }
.ans-row { display: flex; align-items: center; gap: 10px; text-align: left; border: 0; background: none; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.ans-row small { display: block; font-size: 12px; color: var(--muted); }
.ans-row b { display: block; font-size: 15px; font-weight: 700; }
.ans-row svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.ans-list .btn { margin-top: 14px; }
.watch-note { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: var(--muted); }
.watch-note svg { width: 16px; height: 16px; color: #C8381E; flex: none; }
.fc-check { display: flex; flex-direction: column; gap: 6px; border-left: 4px solid var(--line); }
.fc-check.ok { border-left-color: var(--sun-deep); }
.res-share { position: absolute; z-index: 1; top: 16px; right: 16px; display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: 7px 12px; background: rgba(255, 255, 255, .12); color: #fff; font-weight: 800; font-size: 13px; }
.res-share svg { width: 16px; height: 16px; }
.res-share:active { background: rgba(255, 255, 255, .22); }
:root[data-theme="dark"] .res-offer .btn.dark { background: var(--sun); color: #1C1B17; }

.first-card { position: relative; display: flex; flex-direction: column; gap: 8px; background: #1C1B17; color: #fff; }
.first-card .res-eye { color: rgba(255, 255, 255, .6); }
.first-card h2 { font-size: 26px; margin: 0; color: var(--sun); }
.first-card p { color: rgba(255, 255, 255, .85); }
.first-x { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; }
.first-x svg { width: 16px; height: 16px; }
:root[data-theme="dark"] .first-card { border: 1px solid var(--line); }
