:root {
  color-scheme: dark;
  --bg: #080609;
  --bg-soft: #10090d;
  --panel: #160d13;
  --panel-2: #1b1117;
  --panel-3: #24141c;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .14);
  --text: #f4f2ef;
  --muted: #a0a0a0;
  --muted-2: #777777;
  --acid: #8f2446;
  --acid-2: #ad3758;
  --acid-dark: #2d0e1b;
  --orange: #b15f77;
  --danger: #c95872;
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --display: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font);
  background:
    radial-gradient(ellipse at 92% -8%, rgba(143, 36, 70, .14), transparent 34%),
    radial-gradient(ellipse at -12% 42%, rgba(143, 36, 70, .05), transparent 36%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, textarea, select { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--acid); outline-offset: 3px; }
.app-shell { width: min(100%, 640px); min-height: 100vh; margin: 0 auto; padding: 0 20px calc(104px + var(--safe-bottom)); position: relative; }

/* top bar */
.topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.brand-lockup { display: flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; }
.brand-mark { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; gap: 3px; border-radius: 11px; background: var(--acid); transform: skew(-7deg); box-shadow: 0 5px 24px rgba(143, 36, 70, .12); }
.brand-mark i { width: 4px; border-radius: 5px; display: block; background: #fff1f5; transform: skew(7deg); }
.brand-mark i:nth-child(1) { height: 12px; }
.brand-mark i:nth-child(2) { height: 20px; }
.brand-mark i:nth-child(3) { height: 15px; }
.brand-copy { display: flex; flex-direction: column; gap: 2px; }
.brand-copy b { font: 700 15px/1 var(--display); letter-spacing: -.055em; }
.brand-copy b span { color: var(--acid); margin-left: 3px; }
.brand-copy small { color: var(--muted-2); font: 8px/1.2 var(--mono); letter-spacing: .15em; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.online-pill { display: flex; align-items: center; gap: 6px; color: #a2a2a2; font: 8px var(--mono); letter-spacing: .09em; }
.online-pill i, .coach-status-copy small i { width: 6px; height: 6px; display: inline-block; border-radius: 50%; background: var(--acid); box-shadow: 0 0 11px rgba(143, 36, 70,.6); }
.avatar-button { width: 38px; height: 38px; position: relative; border: 1px solid rgba(143, 36, 70,.28); border-radius: 13px; background: #20131a; color: var(--acid); font: 700 14px var(--display); cursor: pointer; }
.avatar-button i { position: absolute; width: 7px; height: 7px; right: -2px; bottom: -2px; background: var(--acid); border: 2px solid var(--bg); border-radius: 50%; }

.screen { display: none; animation: screen-in .38s cubic-bezier(.2,.75,.25,1) both; }
.screen.active { display: block; }
@keyframes screen-in { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
.eyebrow { display: flex; align-items: center; gap: 8px; color: #999999; font: 8px/1.3 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.eyebrow-line { width: 17px; height: 1px; background: var(--acid); box-shadow: 0 0 8px rgba(143, 36, 70,.35); }

/* homepage hero */
.home-intro > .eyebrow { margin: 3px 0 14px 2px; }
.hero-block { min-height: 340px; position: relative; isolation: isolate; overflow: hidden; border: 1px solid rgba(143, 36, 70,.17); border-radius: 27px; padding: 28px 25px 18px; background: linear-gradient(112deg, #24111a 0%, #1b0d14 46%, #141414 100%); box-shadow: 0 22px 60px rgba(0, 0, 0,.18); }
.hero-block::before { content: ""; position: absolute; z-index: -2; width: 340px; height: 340px; right: -115px; top: -96px; border-radius: 50%; background: radial-gradient(circle, rgba(143, 36, 70,.21), rgba(143, 36, 70,.055) 42%, transparent 70%); }
.hero-block::after { content: ""; position: absolute; z-index: -2; inset: 0; opacity: .2; background-image: linear-gradient(rgba(177, 76, 105,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(177, 76, 105,.07) 1px, transparent 1px); background-size: 34px 34px; mask-image: linear-gradient(90deg, transparent, #000000 60%, #000000); }
.hero-grid { position: absolute; width: 215px; height: 215px; right: -55px; top: 28px; border: 1px solid rgba(143, 36, 70,.18); border-radius: 50%; box-shadow: 0 0 0 19px rgba(143, 36, 70,.025), 0 0 0 39px rgba(143, 36, 70,.025), inset 0 0 55px rgba(143, 36, 70,.045); }
.hero-copy { position: relative; z-index: 2; max-width: 365px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 30px; color: #c5aeb7; background: rgba(255, 255, 255,.045); border: 1px solid rgba(255, 255, 255,.07); font: 8px var(--mono); letter-spacing: .13em; }
.kicker-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 9px var(--acid); }
.hero-copy h1 { margin: 20px 0 11px; color: #fbf0f3; font: 700 clamp(37px, 10vw, 54px)/.99 var(--display); letter-spacing: -.075em; }
.hero-copy h1 em, .page-title em { color: var(--acid); font-style: normal; }
.hero-copy p { max-width: 285px; margin: 0; color: #adadad; font-size: 12px; line-height: 1.6; }
.hero-cta { display: inline-flex; min-height: 43px; align-items: center; justify-content: space-between; gap: 23px; margin-top: 22px; padding: 0 13px 0 15px; border: 0; border-radius: 10px; background: var(--acid); color: #fff1f5; font: 700 9px var(--mono); letter-spacing: .055em; cursor: pointer; box-shadow: 0 8px 22px rgba(143, 36, 70,.13); transition: transform .18s, box-shadow .18s; }
.hero-cta b { font-size: 17px; }
.hero-cta:active { transform: translateY(1px) scale(.985); }
.hero-visual { position: absolute; right: 14px; top: 53px; width: 214px; height: 232px; opacity: .98; }
.visual-orbit { position: absolute; border: 1px solid rgba(143, 36, 70,.25); border-radius: 50%; transform: rotate(-28deg); }
.orbit-a { width: 185px; height: 185px; top: 18px; left: 18px; border-left-color: transparent; border-bottom-color: rgba(143, 36, 70,.07); }
.orbit-b { width: 140px; height: 140px; top: 40px; left: 40px; border-style: dashed; border-color: rgba(143, 36, 70,.18); }
.visual-number { position: absolute; top: -12px; right: -5px; color: transparent; -webkit-text-stroke: 1px rgba(210, 133, 154,.25); font: 700 86px/.9 var(--display); letter-spacing: -.1em; }
.visual-core { position: absolute; width: 94px; height: 94px; top: 63px; left: 63px; display: grid; place-items: center; border: 1px solid rgba(143, 36, 70,.55); border-radius: 27px; transform: rotate(-12deg); background: linear-gradient(145deg, rgba(143, 36, 70,.16), rgba(143, 36, 70,.015)); box-shadow: 0 0 40px rgba(143, 36, 70,.11), inset 0 0 27px rgba(143, 36, 70,.08); }
.visual-core span { color: var(--acid); font: 700 57px/.9 var(--display); transform: rotate(12deg); text-shadow: 0 0 26px rgba(143, 36, 70,.28); }
.visual-core i { position: absolute; top: 11px; right: 10px; color: #d99aad; font: 700 18px var(--display); transform: rotate(12deg); }
.visual-spark { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 15px 4px rgba(143, 36, 70,.26); }
.spark-a { top: 45px; right: 36px; }.spark-b { bottom: 37px; left: 21px; width: 4px; height: 4px; }
.visual-caption { position: absolute; right: 1px; bottom: 2px; color: rgba(193, 132, 149,.48); font: 7px/1.5 var(--mono); letter-spacing: .14em; text-align: right; }
.hero-bottom { position: absolute; bottom: 17px; left: 25px; right: 25px; padding-top: 12px; border-top: 1px solid rgba(245, 225, 227,.1); display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #898989; font: 7px var(--mono); letter-spacing: .12em; }
.hero-bottom span:last-child { color: #bdbdbd; text-align: right; }

/* sections and stats */
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 28px 1px 13px; }
.section-heading h2 { margin: 5px 0 0; color: var(--text); font: 600 22px/1.1 var(--display); letter-spacing: -.055em; }
.date-chip { padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; color: #acacac; font: 8px var(--mono); letter-spacing: .08em; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.stat-card { min-height: 139px; position: relative; overflow: hidden; padding: 15px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg, #191919, #131313); }
.stat-ai { border-color: rgba(143, 36, 70,.2); background: linear-gradient(145deg, #321520, #1c1c1c); }
.stat-top { display: flex; align-items: center; justify-content: space-between; color: #a4a4a4; font: 8px var(--mono); letter-spacing: .1em; }
.stat-icon { color: var(--acid); font-size: 16px; }
.stat-value { margin-top: 13px; color: #f6e8ed; font: 700 37px/.95 var(--display); letter-spacing: -.07em; }
.stat-value span { margin-left: 4px; color: #a1a1a1; font-size: 15px; letter-spacing: -.02em; }
.stat-foot { margin-top: 7px; color: #989898; font-size: 9px; line-height: 1.35; }
.usage-track { height: 3px; margin-top: 13px; overflow: hidden; border-radius: 5px; background: rgba(0, 0, 0,.28); }
.usage-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--acid); box-shadow: 0 0 10px rgba(143, 36, 70,.5); transition: width .35s ease; }
.stat-label { position: relative; z-index: 1; margin-top: 19px; color: #f3e5e9; font: 700 20px/1.1 var(--display); letter-spacing: -.055em; }
.goal-decoration { position: absolute; right: 13px; bottom: 0; height: 60px; display: flex; align-items: end; gap: 4px; opacity: .55; }
.goal-decoration i { display: block; width: 5px; border-radius: 5px 5px 0 0; background: linear-gradient(to top, rgba(143, 36, 70,.03), rgba(143, 36, 70,.5)); }
.goal-decoration i:nth-child(1) { height: 19px; }.goal-decoration i:nth-child(2) { height: 32px; }.goal-decoration i:nth-child(3) { height: 25px; }.goal-decoration i:nth-child(4) { height: 48px; }.goal-decoration i:nth-child(5) { height: 37px; }.goal-decoration i:nth-child(6) { height: 57px; }.goal-decoration i:nth-child(7) { height: 43px; }
.section-spaced { margin-top: 31px; }

/* quick access cards */
.action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.action-card { min-height: 163px; display: flex; position: relative; flex-direction: column; align-items: flex-start; text-align: left; overflow: hidden; padding: 14px; border: 1px solid var(--line); border-radius: 17px; background: linear-gradient(145deg, #1a1a1a, #121212); color: var(--text); cursor: pointer; transition: transform .18s, border-color .18s, background .18s; }
.action-card:active { transform: scale(.985); }
.action-card::after { content: ""; position: absolute; width: 110px; height: 110px; right: -45px; bottom: -44px; border-radius: 50%; border: 1px solid rgba(143, 36, 70,.11); box-shadow: 0 0 0 13px rgba(143, 36, 70,.018), 0 0 0 27px rgba(143, 36, 70,.018); pointer-events: none; }
.action-top { width: 100%; display: flex; align-items: center; justify-content: space-between; color: #8e8e8e; font: 7px var(--mono); letter-spacing: .11em; }
.action-arrow { color: var(--acid); font-size: 15px; }
.action-icon { width: 37px; height: 37px; margin: 12px 0 9px; display: grid; place-items: center; border-radius: 12px; color: var(--acid); background: rgba(143, 36, 70,.09); border: 1px solid rgba(143, 36, 70,.13); }
.action-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.action-card strong { font: 700 15px/1.1 var(--display); letter-spacing: -.04em; }
.action-card small { margin-top: 5px; color: #939393; font-size: 9px; line-height: 1.35; }
.action-workout { background: linear-gradient(145deg, #32131f, #1c1c1c); border-color: rgba(143, 36, 70,.22); }
.action-workout .action-icon { color: #fff2f5; background: var(--acid); }
.action-nutrition .action-icon { color: #bd778b; background: rgba(143, 36, 70,.1); border-color: rgba(143, 36, 70,.17); }
.action-studio .action-icon { color: #cc8195; background: rgba(173, 55, 88,.1); border-color: rgba(173, 55, 88,.17); }
.action-coach .action-icon { color: #d08a9d; background: rgba(177, 76, 105,.1); border-color: rgba(177, 76, 105,.17); }
.notice-card { display: flex; gap: 13px; margin-top: 17px; padding: 16px; border: 1px solid rgba(143, 36, 70,.17); border-radius: 17px; background: linear-gradient(112deg, rgba(143, 36, 70,.08), rgba(25, 25, 25,.5)); }
.notice-icon { width: 35px; height: 35px; flex: none; display: grid; place-items: center; border-radius: 11px; color: var(--acid); background: rgba(143, 36, 70,.12); }
.notice-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.notice-copy { min-width: 0; }
.notice-label { display: block; margin: 1px 0 6px; color: var(--acid); font: 7px var(--mono); letter-spacing: .12em; }
.notice-copy strong { display: block; font: 600 14px var(--display); }
.notice-copy p { margin: 5px 0 8px; color: #9c9c9c; font-size: 10px; line-height: 1.5; }
.text-link { padding: 0; border: 0; background: transparent; color: var(--acid); font: 600 10px var(--font); cursor: pointer; }
.text-link span { padding-left: 4px; font-size: 14px; }
.progress-shortcut { width: 100%; display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255, 255, 255,.025); color: var(--text); text-align: left; cursor: pointer; }
.progress-shortcut-icon { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 11px; background: rgba(143, 36, 70,.09); color: var(--acid); font-size: 18px; }
.progress-shortcut b { display: block; font: 600 12px var(--display); }
.progress-shortcut small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.shortcut-arrow { margin-left: auto; color: var(--acid); font-size: 19px; }

/* inner screens */
.screen-hero { position: relative; overflow: hidden; margin-bottom: 21px; padding: 19px 18px 14px; border: 1px solid var(--line); border-radius: 21px; background: linear-gradient(138deg, #1e1e1e, #141414 75%); }
.screen-hero::after { content: ""; position: absolute; right: -32px; top: 38px; width: 155px; height: 155px; border-radius: 50%; border: 1px solid rgba(143, 36, 70,.14); box-shadow: 0 0 0 15px rgba(143, 36, 70,.02), 0 0 0 31px rgba(143, 36, 70,.018); pointer-events: none; }
.screen-hero-title { display: flex; align-items: flex-start; gap: 11px; position: relative; z-index: 1; margin-top: 19px; }
.screen-index { padding-top: 7px; color: var(--acid); font: 10px var(--mono); letter-spacing: .05em; }
.page-title { margin: 0; font: 700 clamp(35px, 9vw, 48px)/.98 var(--display); letter-spacing: -.075em; }
.page-lead { position: relative; z-index: 1; max-width: 380px; margin: 13px 0 19px 26px; color: #a4a4a4; font-size: 11px; line-height: 1.65; }
.screen-hero-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 11px; border-top: 1px solid var(--line); color: #7d7d7d; font: 7px var(--mono); letter-spacing: .12em; }
.screen-hero-bottom span:last-child { color: #ababab; }
.screen-hero-workout::before, .screen-hero-progress::before { content: ""; position: absolute; width: 125px; height: 125px; right: -2px; bottom: -55px; border-radius: 50%; background: radial-gradient(circle, rgba(143, 36, 70,.13), transparent 67%); }
.screen-hero-nutrition::after { border-color: rgba(143, 36, 70,.15); box-shadow: 0 0 0 15px rgba(143, 36, 70,.02), 0 0 0 31px rgba(143, 36, 70,.014); }
.screen-hero-nutrition .screen-index { color: #bd778b; }
.screen-hero-nutrition .page-title em { color: #bd778b; }
.screen-hero-nutrition .screen-hero-bottom span:first-child { color: #b87589; }
.screen-hero-studio::after { border-color: rgba(173, 55, 88,.18); box-shadow: 0 0 0 15px rgba(173, 55, 88,.02), 0 0 0 31px rgba(173, 55, 88,.015); }
.screen-hero-studio .screen-index { color: #cc8195; }
.screen-hero-studio .page-title em { color: #cc8195; }
.screen-hero-coach::after { border-color: rgba(177, 76, 105,.17); box-shadow: 0 0 0 15px rgba(177, 76, 105,.02), 0 0 0 31px rgba(177, 76, 105,.015); }
.screen-hero-coach .screen-index, .screen-hero-coach .page-title em { color: #d48a9e; }
.screen-hero-profile::after { border-color: rgba(143, 36, 70,.18); }
.feature-panel { min-height: 160px; position: relative; overflow: hidden; padding: 17px; margin-bottom: 17px; border: 1px solid rgba(143, 36, 70,.17); border-radius: 19px; background: linear-gradient(120deg, #351520, #1e1e1e 66%, #1e1017); }
.feature-panel::after { content: "A"; position: absolute; top: -34px; right: 9px; color: transparent; -webkit-text-stroke: 1px rgba(177, 76, 105,.17); font: 700 180px/.9 var(--display); letter-spacing: -.1em; transform: rotate(10deg); }
.panel-micro { position: relative; z-index: 1; color: #bd8495; font: 8px var(--mono); letter-spacing: .16em; }
.panel-title { position: relative; z-index: 1; margin-top: 18px; color: #f8edf1; font: 600 26px/1.04 var(--display); letter-spacing: -.06em; }
.panel-title b { color: var(--acid); }
.panel-bottom { position: absolute; z-index: 1; bottom: 13px; left: 17px; right: 17px; display: flex; justify-content: space-between; color: #989898; font: 7px var(--mono); letter-spacing: .12em; }
.panel-stamp { color: var(--acid); }
.field-group { display: flex; flex-direction: column; gap: 8px; margin: 15px 0; }
.field-group label { color: #cecece; font-size: 10px; font-weight: 700; letter-spacing: .015em; }
.field-group input, .field-group textarea, .field-group select, .chat-compose textarea { width: 100%; min-height: 48px; border: 1px solid var(--line-strong); border-radius: 12px; outline: none; background: #141414; color: var(--text); font: 12px var(--font); padding: 13px 14px; resize: vertical; transition: border-color .18s, background .18s; }
.field-group textarea { min-height: 91px; line-height: 1.55; }
.field-group input:focus, .field-group textarea:focus, .field-group select:focus, .chat-compose textarea:focus { border-color: rgba(143, 36, 70,.48); background: #24131c; }
.field-group input::placeholder, .field-group textarea::placeholder, .chat-compose textarea::placeholder { color: #696969; }
.field-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23b88b99' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.primary-button, .secondary-button { display: flex; align-items: center; justify-content: space-between; min-height: 50px; border: 0; border-radius: 12px; padding: 0 16px; font: 700 9px var(--mono); letter-spacing: .09em; cursor: pointer; transition: transform .16s, box-shadow .16s, opacity .16s; }
.primary-button { color: #fff2f5; background: linear-gradient(110deg, #a83254, #7e1e3d); box-shadow: 0 8px 23px rgba(143, 36, 70,.09); }
.primary-button b { font: 700 18px var(--display); }
.secondary-button { color: var(--acid); border: 1px solid rgba(143, 36, 70,.24); background: rgba(143, 36, 70,.07); }
.full-button { width: 100%; margin: 17px 0; }
.primary-button:active, .secondary-button:active { transform: scale(.99); }
.nutrition-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0 21px; }
.nutrition-tiles div { min-height: 94px; display: flex; flex-direction: column; gap: 6px; padding: 12px 10px; border: 1px solid var(--line); border-radius: 13px; background: linear-gradient(145deg, #1a1a1a, #141414); }
.nutrition-tiles span { color: #bd778b; font: 8px var(--mono); }
.nutrition-tiles b { color: #eee0e6; font: 600 12px var(--display); }
.nutrition-tiles small { color: var(--muted); font-size: 8px; line-height: 1.35; }
.subsection { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.subsection h2, .privacy-panel h2, .admin-panel h2 { margin: 10px 0 7px; color: var(--text); font: 600 22px/1.12 var(--display); letter-spacing: -.055em; }
.muted-copy { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.small-textarea { min-height: 70px !important; }
.upload-zone { min-height: 188px; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; overflow: hidden; padding: 20px; border: 1px dashed rgba(177, 76, 105,.36); border-radius: 19px; background: radial-gradient(ellipse at 50% 0%, rgba(143, 36, 70,.1), transparent 65%), #211018; text-align: center; cursor: pointer; transition: border-color .2s, background .2s; }
.upload-zone:active { border-color: #cc8195; background-color: #2a1420; }
.upload-zone input { display: none; }
.upload-visual { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; border: 1px solid rgba(177, 76, 105,.23); background: rgba(143, 36, 70,.11); color: #cc8195; }
.upload-visual svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.upload-zone strong { color: #faedf1; font: 600 14px var(--display); }
.upload-zone small { color: #bb8998; font-size: 9px; }
.upload-formats { color: #777777; font: 7px var(--mono); letter-spacing: .13em; }
.upload-preview { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; color: #b0b0b0; font-size: 10px; overflow-wrap: anywhere; }
.consent-row { display: flex; align-items: flex-start; gap: 10px; margin: 17px 0; color: #909090; font-size: 9px; line-height: 1.55; }
.consent-row input { flex: none; margin: 2px 0 0; accent-color: var(--acid); }
.result-card { margin-top: 17px; overflow: hidden; border: 1px solid rgba(143, 36, 70,.2); border-radius: 16px; background: #161616; }
.result-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 15px; border-bottom: 1px solid var(--line); color: var(--acid); font: 8px var(--mono); letter-spacing: .13em; }
.result-content { padding: 15px; color: #dbdbdb; font-size: 11px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.icon-button { padding: 5px 8px; border: 1px solid var(--line-strong); border-radius: 8px; background: transparent; color: #a2a2a2; font-size: 15px; cursor: pointer; }
.hidden { display: none !important; }

/* coach */
.coach-status { display: flex; align-items: center; gap: 11px; padding: 13px; border: 1px solid rgba(177, 76, 105,.17); border-radius: 15px; background: linear-gradient(110deg, rgba(177, 76, 105,.08), rgba(22, 22, 22,.8)); }
.coach-avatar { width: 40px; height: 40px; position: relative; display: grid; place-items: center; flex: none; border-radius: 13px; background: linear-gradient(145deg, #be667e, #87324a); color: #fff0f4; font: 700 20px var(--display); }
.coach-avatar span { position: absolute; right: -2px; bottom: -2px; width: 9px; height: 9px; border: 2px solid var(--bg); border-radius: 50%; background: #b7506b; }
.coach-status-copy { min-width: 0; }
.coach-status-copy b { color: #f6e8ed; font: 600 10px var(--display); letter-spacing: .04em; }
.coach-status-copy small { display: flex; align-items: center; gap: 6px; margin-top: 4px; color: #9c9c9c; font: 7px var(--mono); letter-spacing: .07em; }
.coach-status-copy small i { width: 5px; height: 5px; }
.coach-count { margin-left: auto; color: #cb8799; font: 600 11px var(--mono); }
.chat-window { min-height: 230px; max-height: 430px; overflow-y: auto; display: flex; flex-direction: column; gap: 11px; padding: 15px 0; }
.chat-date { margin: 2px 0; color: #6c6c6c; font: 7px var(--mono); letter-spacing: .14em; text-align: center; }
.message { max-width: 89%; padding: 12px 14px; border-radius: 14px; color: #dfdfdf; font-size: 10px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.assistant-message { align-self: flex-start; border: 1px solid var(--line); border-top-left-radius: 4px; background: #1c1c1c; }
.user-message { align-self: flex-end; border: 1px solid rgba(143, 36, 70,.17); border-top-right-radius: 4px; background: rgba(143, 36, 70,.1); }
.message-label { margin-bottom: 5px; color: var(--acid); font: 7px var(--mono); letter-spacing: .13em; }
.suggestion-heading { margin: 6px 0 8px; color: #7b7b7b; font: 7px var(--mono); letter-spacing: .13em; }
.suggestion-row { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 11px; scrollbar-width: none; }
.suggestion-row::-webkit-scrollbar { display: none; }
.suggestion { flex: none; white-space: nowrap; padding: 8px 11px; border: 1px solid var(--line); border-radius: 30px; background: #191919; color: #b7b7b7; font: 9px var(--font); cursor: pointer; }
.chat-compose { display: flex; align-items: flex-end; gap: 8px; padding: 8px; border: 1px solid var(--line-strong); border-radius: 15px; background: #141414; }
.chat-compose textarea { min-height: 36px; max-height: 110px; padding: 8px; resize: none; border: 0; background: transparent; }
.chat-compose button { width: 37px; height: 37px; flex: none; border: 0; border-radius: 11px; background: var(--acid); color: #fff2f5; font-size: 19px; cursor: pointer; }
.chat-footnote { margin-top: 9px; color: #7b7b7b; font-size: 8px; line-height: 1.5; }

/* progress, profile and history */
.progress-form, .profile-form { padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg, #191919, #131313); }
.form-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.form-icon { width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid rgba(143, 36, 70,.18); border-radius: 11px; background: rgba(143, 36, 70,.09); color: var(--acid); font-size: 18px; }
.form-heading b { display: block; color: #f3e9ea; font: 600 13px var(--display); }
.form-heading small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.timeline-list, .plan-list { display: flex; flex-direction: column; gap: 9px; }
.timeline-item, .plan-item { padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: #161616; }
.timeline-item { display: flex; gap: 11px; }
.timeline-pin { width: 7px; height: 7px; flex: none; margin-top: 5px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 10px rgba(143, 36, 70,.35); }
.timeline-item b, .plan-item b { color: #eee0e6; font: 600 11px var(--display); }
.timeline-item small, .plan-item small { display: block; margin-top: 4px; color: #848484; font: 8px var(--mono); }
.timeline-item p { margin: 7px 0 0; color: #acacac; font-size: 9px; line-height: 1.5; }
.plan-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plan-item .plan-kind { margin-bottom: 5px; color: var(--acid); font: 7px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.plan-item button { padding: 7px 9px; border: 1px solid var(--line-strong); border-radius: 8px; background: transparent; color: #b0b0b0; font-size: 9px; cursor: pointer; }
.plan-actions { display: flex; flex: none; gap: 6px; }
.plan-actions button { padding: 6px 7px; font-size: 8px; }
.empty-state { padding: 21px 16px; border: 1px dashed rgba(245, 225, 227,.14); border-radius: 13px; color: #7d7d7d; font-size: 9px; line-height: 1.5; text-align: center; }
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.profile-form { padding-bottom: 5px; }
.profile-consent { margin-top: 20px; }
.privacy-panel { margin-top: 17px; padding: 17px; border: 1px solid rgba(143, 36, 70,.16); border-radius: 17px; background: linear-gradient(145deg, rgba(143, 36, 70,.06), rgba(22, 22, 22,.7)); }
.privacy-panel ul { padding-left: 17px; color: #aeaeae; font-size: 9px; line-height: 1.85; }
.privacy-warning { padding: 11px; border-left: 2px solid #a83254; border-radius: 0 9px 9px 0; background: rgba(143, 36, 70,.07); color: #c89aaa; font-size: 8px; line-height: 1.6; }
.danger-button { width: 100%; margin-top: 8px; padding: 12px; border: 1px solid rgba(143, 36, 70,.28); border-radius: 10px; background: rgba(143, 36, 70,.055); color: var(--danger); font: 8px var(--mono); letter-spacing: .09em; cursor: pointer; }
.admin-panel { margin-top: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #141414; }
.admin-panel .stat-card { min-height: 85px; }
.admin-panel .stat-value { font-size: 25px; }
.version-label { padding: 25px 0 8px; color: #5a5a5a; font: 7px var(--mono); letter-spacing: .13em; text-align: center; }
.version-label span { color: var(--acid); }

/* bottom navigation and feedback */
.bottom-nav { position: fixed; z-index: 10; bottom: 0; left: 50%; width: min(640px, 100%); display: flex; align-items: center; justify-content: space-around; padding: 10px 12px calc(9px + var(--safe-bottom)); transform: translateX(-50%); border-top: 1px solid rgba(244, 220, 222,.09); background: rgba(11, 11, 11,.91); backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4); }
.nav-item { min-width: 53px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0 4px; border: 0; background: transparent; color: #6c6c6c; cursor: pointer; transition: color .18s; }
.nav-item svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.nav-item small { font: 7px var(--mono); letter-spacing: .02em; }
.nav-item.active { color: var(--acid); }
.nav-center { margin-top: -14px; }
.nav-center span { width: 43px; height: 43px; display: grid; place-items: center; border: 4px solid var(--bg); border-radius: 14px; background: var(--acid); color: #fff2f5; box-shadow: 0 5px 20px rgba(143, 36, 70,.18); }
.nav-center svg { width: 19px; height: 19px; stroke-width: 1.8; }
.nav-center small { margin-top: -2px; }
.nav-center.active span { background: #cc8195; box-shadow: 0 0 0 1px rgba(143, 36, 70,.25), 0 7px 22px rgba(143, 36, 70,.25); }
.toast { position: fixed; z-index: 30; left: 50%; bottom: calc(92px + var(--safe-bottom)); max-width: calc(100% - 36px); padding: 12px 16px; transform: translate(-50%, 13px); opacity: 0; pointer-events: none; border: 1px solid rgba(143, 36, 70,.22); border-radius: 11px; background: #d6a0ad; color: #fff2f5; font-size: 10px; line-height: 1.4; box-shadow: 0 10px 28px rgba(0, 0, 0,.32); transition: opacity .2s, transform .2s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.loading-overlay { position: fixed; z-index: 40; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 11px; background: rgba(8, 5, 5,.88); backdrop-filter: blur(14px); }
.loading-overlay b { color: var(--acid); font: 9px var(--mono); letter-spacing: .16em; }
.loading-overlay span { color: #898989; font-size: 9px; }
.loader-mark { display: flex; gap: 5px; margin-bottom: 8px; }
.loader-mark i { width: 4px; height: 25px; border-radius: 5px; background: var(--acid); animation: loader-bar .8s infinite ease-in-out; }
.loader-mark i:nth-child(2) { animation-delay: .12s; }.loader-mark i:nth-child(3) { animation-delay: .24s; }
@keyframes loader-bar { 0%,100% { transform: scaleY(.38); opacity: .45; } 50% { transform: scaleY(1); opacity: 1; } }

@media (min-width: 520px) {
  .app-shell { padding-right: 26px; padding-left: 26px; }
  .hero-block { min-height: 365px; padding: 31px 29px 19px; }
  .hero-copy h1 { font-size: 56px; }
  .hero-visual { right: 27px; top: 58px; transform: scale(1.1); transform-origin: top right; }
  .hero-bottom { left: 29px; right: 29px; }
  .action-card { min-height: 174px; padding: 16px; }
}
@media (max-width: 380px) {
  .app-shell { padding-right: 15px; padding-left: 15px; }
  .online-pill { display: none; }
  .hero-block { min-height: 335px; padding: 22px 18px 17px; }
  .hero-copy h1 { font-size: 39px; }
  .hero-copy p { max-width: 245px; font-size: 11px; }
  .hero-visual { right: -34px; top: 81px; transform: scale(.83); transform-origin: top right; opacity: .72; }
  .hero-bottom { left: 18px; right: 18px; font-size: 6px; }
  .action-card { min-height: 155px; padding: 12px; }
  .action-card strong { font-size: 14px; }
  .section-heading h2 { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* PRIME dark-burgundy finish — deep black cherry surfaces and restrained ruby accents */
:root {
  --prime-red: #8f2446;
  --prime-red-bright: #ad3758;
  --prime-black: #080909;
}
::selection { background: rgba(143, 36, 70, .28); color: #fff; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline-color: var(--prime-red-bright);
}
.primary-button, .hero-cta {
  background: var(--prime-red);
  color: #fff;
  box-shadow: 0 8px 24px rgba(143, 36, 70, .18);
}
.primary-button:hover, .hero-cta:hover { background: var(--prime-red-bright); }
.brand-mark {
  background: var(--prime-red);
  box-shadow: 0 5px 24px rgba(143, 36, 70, .22);
}
.brand-mark i { background: #fff; }
.brand-copy b span, .hero-copy h1 em, .page-title em { color: var(--prime-red-bright); }
.online-pill i, .coach-status-copy small i, .kicker-dot {
  background: var(--prime-red);
  box-shadow: 0 0 11px rgba(143, 36, 70, .55);
}


/* PRIME admin user database */
.admin-users-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:18px 0 10px; color:var(--text); font:600 11px var(--display); }
.admin-users-heading button { padding:8px 10px; border:1px solid var(--line-strong); border-radius:9px; background:#201018; color:#d7a5b5; font:8px var(--mono); letter-spacing:.08em; cursor:pointer; }
.admin-users-list { display:grid; gap:8px; }
.admin-user-row { padding:12px; border:1px solid var(--line); border-radius:12px; background:linear-gradient(145deg,#1a1016,#120d11); }
.admin-user-top { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:9px; }
.admin-user-top b { color:#e6c4cf; font:600 11px var(--mono); letter-spacing:.06em; }
.admin-user-top span { color:#8e7b83; font:8px var(--mono); }
.admin-user-tags { display:flex; flex-wrap:wrap; gap:5px; }
.admin-user-tags span { padding:5px 7px; border:1px solid #35232c; border-radius:7px; background:#1d1219; color:#baa3ad; font:8px var(--mono); }
.admin-privacy-note { margin-top:12px; }
