:root {
  --bg: #0e1116;
  --phone: #0e1116;
  --surface: #171b23;
  --surface-2: #242832;
  --line: #2f3541;
  --text: #f3f5f7;
  --muted: #89919e;
  --dim: #69717f;
  --cyan: #2ed2d5;
  --cyan-soft: #13373d;
  --lime: #9cf35b;
  --amber: #f3b546;
  --rose: #f05d7b;
  --violet: #8c78f0;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: transparent;
  color: inherit;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

button {
  border: 0;
  color: inherit;
  font: inherit;
}

button:focus-visible,
input:focus-visible {
  outline: 2px solid rgba(46, 210, 213, 0.85);
  outline-offset: 3px;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 18px;
}

.phone {
  position: relative;
  width: min(390px, 100%);
  height: min(844px, calc(100vh - 36px));
  min-height: 680px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--phone);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.topbar {
  display: grid;
  grid-template-columns: 36px 1fr 34px;
  align-items: center;
  gap: 12px;
  padding: 16px 18px 10px;
}

.avatar,
.ghost-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--surface-2);
}

.avatar {
  color: var(--cyan);
  font-weight: 800;
}

.ghost-button {
  margin-left: auto;
  cursor: pointer;
  color: var(--muted);
  transition: color 180ms ease, transform 180ms ease, background 180ms ease;
}

.ghost-button:active {
  transform: scale(0.94);
}

.ghost-button:hover {
  color: var(--cyan);
  background: #1d2731;
}

.ghost-button svg {
  width: 18px;
  height: 18px;
  display: block;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

h1 {
  margin: 1px 0 0;
  font-size: 18px;
  line-height: 1.18;
  font-weight: 800;
}

.screen {
  flex: 1;
  overflow: hidden auto;
  padding: 8px 14px 14px;
  scrollbar-width: thin;
  scrollbar-color: #155b62 #0c1116;
  will-change: opacity, transform;
}

.screen::-webkit-scrollbar { width: 5px; }
.screen::-webkit-scrollbar-track { margin: 10px 0 12px; border-radius: 99px; background: #0c1116; }
.screen::-webkit-scrollbar-thumb {
  border: 1px solid rgba(9, 12, 16, 0.75);
  border-radius: 99px;
  background: #155b62;
}
.screen::-webkit-scrollbar-thumb:hover { background: #217d83; }

.screen.enter-forward {
  animation: screenForward 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.screen.enter-back {
  animation: screenBack 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes screenForward {
  from {
    opacity: 0;
    transform: translateX(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes screenBack {
  from {
    opacity: 0;
    transform: translateX(-18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.card {
  width: 100%;
  padding: 16px;
  margin-bottom: 12px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
}

.compact .card {
  padding: 13px;
  margin-bottom: 9px;
}

.compact .task {
  min-height: 52px;
  margin-bottom: 8px;
}

.card.clickable,
.stat,
.day,
.pill[data-action] {
  cursor: pointer;
}

.card.clickable,
.stat,
.day,
.pill[data-action],
.primary {
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, opacity 180ms ease;
}

.card.clickable:active,
.stat:active,
.day:active,
.pill[data-action]:active,
.primary:active {
  transform: scale(0.985);
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--cyan);
  background: var(--cyan-soft);
  font-size: 11px;
  font-weight: 700;
}

.score-card {
  display: grid;
  gap: 12px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.trend-up {
  color: var(--lime);
  font-size: 12px;
  font-weight: 800;
}

.trend-chart {
  height: 104px;
  display: grid;
  grid-template-columns: repeat(var(--trend-count, 4), minmax(0, 1fr));
  align-items: end;
  gap: 8px;
  margin-top: 14px;
  padding: 0 4px;
  border-bottom: 1px solid var(--line);
}

.trend-column {
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: end;
  justify-items: center;
  gap: 7px;
}

.trend-column i {
  width: 100%;
  max-width: 34px;
  min-height: 16px;
  border-radius: 8px 8px 2px 2px;
  background: #26353c;
}

.trend-column.current i {
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(46, 210, 213, 0.22);
}

.trend-column small {
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}

.score-row {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 16px;
  align-items: center;
}

.score-ring {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  border: 5px solid var(--cyan);
  border-radius: 50%;
  background: #17242b;
  color: var(--text);
  font-size: 36px;
  font-weight: 900;
}

.profile-premium-link {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding: 13px 14px;
  border: 1px solid rgba(239, 91, 91, 0.36);
  border-radius: 12px;
  background: rgba(239, 91, 91, 0.1);
  color: #ff7777;
  text-align: left;
  cursor: pointer;
}

.profile-premium-link span {
  display: grid;
  gap: 3px;
}

.profile-premium-link strong {
  font-size: 13px;
}

.profile-premium-link small {
  color: var(--muted);
  font-size: 10px;
}

.title {
  margin: 0;
  font-size: 20px;
  line-height: 1.18;
  font-weight: 800;
}

.body {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.task {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  margin-bottom: 10px;
  padding: 11px 12px;
  background: var(--surface-2);
  border-radius: 14px;
}

.dot {
  width: 8px;
  height: 8px;
  margin: auto;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.03);
}

.task strong {
  display: block;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
}

.task small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.25;
}

.task-state {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cyan);
  font-size: 10px;
  font-weight: 900;
}

.task-state::before {
  content: "";
  width: 32px;
  height: 2px;
  border-radius: 2px;
  background: var(--muted);
}

.task.done .task-state { color: var(--lime); }

.upload-card {
  min-height: 305px;
  display: grid;
  justify-items: center;
  align-content: center;
  text-align: center;
}

.face {
  position: relative;
  width: 132px;
  height: 132px;
  margin-bottom: 18px;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  background: #26333d;
  background-position: center;
  background-size: cover;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.face.has-photo {
  border-color: var(--lime);
  box-shadow: 0 0 34px rgba(156, 243, 91, 0.16);
}

.landmark-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 220ms ease;
}

.landmark-overlay.visible {
  opacity: 1;
}

.landmark-point {
  position: absolute;
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px;
  border: 1px solid #061014;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 7px rgba(46, 210, 213, 0.8);
}

.analysis-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  background: var(--surface-2);
}

.analysis-result span {
  color: var(--muted);
  font-size: 12px;
}

.analysis-result strong {
  color: var(--cyan);
  font-size: 20px;
}

.appearance-score-list {
  display: grid;
  gap: 10px;
  width: 100%;
  margin-top: 14px;
  text-align: left;
}

.appearance-score {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-2);
}

.appearance-score-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.appearance-score-head strong {
  color: var(--text);
  font-size: 12px;
}

.appearance-score-head span {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.appearance-score .bar {
  margin-top: 8px;
}

.appearance-score small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

.score-section-title {
  margin: 18px 0 0;
  color: var(--text);
  font-size: 15px;
}

.result-score-panel {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 18px 14px;
  border: 1px solid rgba(46, 210, 213, 0.22);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(46, 210, 213, 0.12), rgba(27, 34, 43, 0.9));
  text-align: center;
}

.result-score-panel span,
.result-score-panel small {
  color: var(--muted);
  font-size: 11px;
}

.result-score-panel strong {
  color: var(--cyan);
  font-size: 38px;
  line-height: 1;
}

.result-hero {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(46, 210, 213, 0.22);
  border-radius: 18px;
  background: #151c24;
}

.result-photo {
  width: 88px;
  height: 88px;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  background: #26333d center / cover no-repeat;
  box-shadow: 0 0 26px rgba(46, 210, 213, 0.16);
}

.result-hero-copy {
  display: grid;
  gap: 4px;
}

.result-hero-copy > span {
  color: var(--muted);
  font-size: 11px;
}

.result-hero-copy strong {
  color: var(--cyan);
  font-size: 42px;
  line-height: 0.95;
  letter-spacing: 0;
}

.result-hero-copy strong small {
  margin-left: 4px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.result-hero-copy em {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(46, 210, 213, 0.12);
  color: var(--cyan);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

/* ── Premium blur gate ── */
.premium-blur-wrap {
  position: relative;
}

.premium-blur-wrap.locked > *:first-child {
  filter: blur(6px);
  pointer-events: none;
  user-select: none;
}

.premium-blur-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 14px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.18) 40%,
    rgba(0, 0, 0, 0.55) 100%
  );
}

.premium-blur-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.premium-blur-icon {
  font-size: 20px;
  line-height: 1;
}

.premium-blur-badge strong {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}

.premium-blur-badge span {
  font-size: 12px;
  color: var(--muted);
}

.result-premium-card {
  position: relative;
  width: 100%;
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(46, 210, 213, 0.26);
  border-radius: 16px;
  background: #151c24;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  opacity: 0;
  transform: translateY(24px);
  animation: resultPremiumIn 520ms cubic-bezier(0.2, 0.8, 0.2, 1) 300ms forwards;
}

.result-premium-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--cyan);
}

.result-premium-card:active {
  transform: scale(0.99);
}

.result-premium-kicker {
  color: var(--cyan);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.result-premium-highlight {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.result-premium-highlight strong {
  color: var(--lime);
  font-size: 36px;
  line-height: 1;
}

.result-premium-highlight span {
  max-width: 180px;
  color: var(--text);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.25;
}

.result-premium-route {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.result-premium-route span {
  min-width: 0;
  padding: 9px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #11161c;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.result-premium-route span:last-child {
  border-color: rgba(156, 243, 91, 0.3);
  background: rgba(156, 243, 91, 0.08);
  color: var(--lime);
}

.result-premium-route i {
  color: var(--cyan);
  font-size: 17px;
  font-style: normal;
  text-align: center;
}

.result-premium-card p {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.result-premium-card b {
  display: grid;
  min-height: 42px;
  place-items: center;
  border-radius: 10px;
  background: var(--cyan);
  color: #071417;
  font-size: 13px;
  font-weight: 900;
}

@keyframes resultPremiumIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.share-cta {
  width: 100%;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 3px 12px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(46, 210, 213, 0.28);
  border-radius: 14px;
  background: rgba(46, 210, 213, 0.08);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.share-cta strong,
.share-cta small {
  display: block;
}

.share-cta-icon {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  color: var(--cyan);
}

.share-cta-icon svg {
  width: 22px;
  height: 22px;
}

.share-cta-copy {
  min-width: 0;
}

.share-cta strong { font-size: 13px; }
.share-cta small {
  color: var(--muted);
  font-size: 10px;
}
.share-preview {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 100%;
  padding: 18px 4px 10px;
  text-align: center;
}

.share-kicker {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.share-photo {
  width: 116px;
  height: 116px;
  margin-top: 18px;
  border: 2px solid var(--cyan);
  border-radius: 22px;
  background: #26333d center / cover no-repeat;
  box-shadow: 0 0 28px rgba(46, 210, 213, 0.16);
}

.share-score {
  margin-top: 16px;
  color: var(--text);
  font-size: 64px;
  line-height: .95;
  font-weight: 900;
}

.share-score small {
  color: var(--muted);
  font-size: 18px;
  font-weight: 700;
}

.share-tier {
  margin-top: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--cyan-soft);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
}

.share-metrics {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 24px;
}

.share-metrics div {
  display: grid;
  gap: 3px;
  padding: 11px 6px;
  border-radius: 12px;
  background: var(--surface);
}

.share-metrics strong { color: var(--cyan); font-size: 17px; }
.share-metrics span { color: var(--muted); font-size: 10px; }

.result-intro {
  margin: 14px 2px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.welcome-content {
  min-height: 72vh;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 20px 8px;
  text-align: center;
}

.welcome-mark {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border: 6px solid var(--cyan);
  border-radius: 50%;
  color: var(--cyan);
  font-size: 32px;
  font-weight: 900;
  box-shadow: 0 0 42px rgba(46, 210, 213, 0.28);
}

.welcome-greeting {
  margin-top: 0;
  color: var(--cyan);
  font-size: 22px;
  font-weight: 800;
}

.welcome-loader {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 20px;
}

.welcome-loader i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  animation: welcome-pulse 900ms ease-in-out infinite;
}

.welcome-loader i:nth-child(2) { animation-delay: 140ms; }
.welcome-loader i:nth-child(3) { animation-delay: 280ms; }

@keyframes welcome-pulse {
  0%, 100% { opacity: .3; transform: translateY(0) scale(.8); }
  50% { opacity: 1; transform: translateY(-4px) scale(1); }
}

.welcome-content h2 {
  margin-top: 10px;
  color: var(--text);
  font-size: 30px;
  line-height: 1.05;
}

.welcome-content p {
  max-width: 280px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.sheet.subscription-screen,
.sheet.subscription-screen .sheet-panel {
  background: #0e1116;
}

.sheet.subscription-screen .sheet-head {
  display: none;
}

.sheet.subscription-screen .sheet-panel {
  display: grid;
  align-items: center;
}

.subscription-content {
  width: min(100%, 340px);
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 100%;
  padding: 20px 4px;
  text-align: center;
}

.subscription-icon {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border: 1px solid rgba(46, 210, 213, 0.45);
  border-radius: 22px;
  background: rgba(46, 210, 213, 0.12);
  color: var(--cyan);
  box-shadow: 0 0 36px rgba(46, 210, 213, 0.12);
}

.subscription-icon svg {
  width: 34px;
  height: 34px;
}

.subscription-kicker {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.subscription-content h2 {
  margin: 9px 0 0;
  color: var(--text);
  font-size: 26px;
  line-height: 1.1;
}

.subscription-content > p:not(.subscription-status) {
  max-width: 290px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.subscription-status {
  max-width: 300px;
  margin: 16px 0 0;
  color: var(--amber);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.subscription-actions {
  width: 100%;
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.subscription-primary,
.subscription-secondary {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  transition: transform 180ms ease, opacity 180ms ease, background 180ms ease;
}

.subscription-primary {
  background: var(--cyan);
  color: #061012;
}

.subscription-secondary {
  border: 1px solid rgba(46, 210, 213, 0.28);
  background: rgba(46, 210, 213, 0.08);
  color: var(--cyan);
}

.subscription-primary:active,
.subscription-secondary:active {
  transform: scale(.98);
}

.subscription-primary:disabled,
.subscription-secondary:disabled {
  cursor: wait;
  opacity: .6;
}

.premium-locked {
  border-color: rgba(46, 210, 213, 0.25);
  background: linear-gradient(145deg, rgba(46, 210, 213, 0.08), var(--surface));
}

.premium-lock-copy {
  display: grid;
  gap: 4px;
  margin-top: 18px;
  padding: 16px;
  border: 1px dashed rgba(46, 210, 213, 0.3);
  border-radius: 14px;
  color: var(--text);
}

.premium-lock-copy strong {
  font-size: 13px;
}

.premium-lock-copy span {
  color: var(--cyan);
  opacity: 0.8;
  font-size: 11px;
}

.sheet.premium-screen .sheet-panel {
  background: #0e1116;
}

.premium-content {
  display: grid;
  justify-items: center;
  padding: 4px 0 8px;
  text-align: center;
}

.premium-badge {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(243, 181, 70, 0.45);
  border-radius: 18px;
  background: rgba(243, 181, 70, 0.12);
  color: var(--amber);
  font-size: 26px;
  box-shadow: 0 0 30px rgba(243, 181, 70, 0.12);
}

.premium-kicker {
  margin-top: 14px;
  color: var(--amber);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.premium-content h2 {
  margin: 8px 0 0;
  color: var(--text);
  font-size: 24px;
  line-height: 1.1;
}

.premium-content > p {
  max-width: 290px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.premium-benefits {
  width: 100%;
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 12px;
  border-radius: 14px;
  background: var(--surface);
  text-align: left;
}

.premium-benefits span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 12px;
}

.premium-benefits i {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(156, 243, 91, 0.14);
  color: var(--lime);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.premium-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 18px;
}

.premium-price strong {
  color: var(--amber);
  font-size: 30px;
}

.premium-price span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.premium-status,
.premium-expiry {
  color: var(--amber) !important;
  font-size: 12px !important;
  font-weight: 700;
}

.premium-primary,
.premium-secondary {
  width: 100%;
  min-height: 46px;
  margin-top: 14px;
  border-radius: 14px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.premium-primary {
  background: var(--cyan);
  color: #071a1a;
}

.premium-secondary {
  border: 1px solid rgba(0, 212, 212, 0.28);
  background: rgba(0, 212, 212, 0.08);
  color: var(--cyan);
}

.premium-primary:disabled,
.premium-secondary:disabled {
  cursor: wait;
  opacity: .6;
}

.premium-yoomoney {
  width: 100%;
  min-height: 46px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(139, 92, 246, 0.35);
  background: rgba(139, 92, 246, 0.1);
  color: #a78bfa;
}

.premium-yoomoney:disabled {
  cursor: wait;
  opacity: .6;
}

.premium-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 0;
  color: var(--muted);
  font-size: 11px;
}

.premium-divider::before,
.premium-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--muted);
  opacity: 0.2;
}

/* ── Payment picker ── */
.pay-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 4px 0 8px;
}

.pay-picker {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.pay-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  padding: 14px 10px;
  border-radius: 14px;
  background: var(--surface);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
}

.pay-option--active {
  border-color: var(--cyan);
  background: color-mix(in srgb, var(--cyan) 8%, var(--surface));
}

.pay-option-icon {
  font-size: 28px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
}

.pay-option-icon--ym {
  font-size: 0;
}

.ym-logo {
  display: inline-block;
  font-size: 10px;
  font-weight: 900;
  color: white;
  background: #8B5CF6;
  border-radius: 6px;
  padding: 3px 6px;
  letter-spacing: -0.3px;
  white-space: nowrap;
}

/* Все дочерние элементы кнопки не должны перехватывать клики */
.pay-option * {
  pointer-events: none;
}

.pay-option-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.pay-option-info strong {
  font-size: 13px;
  color: var(--text);
}

.pay-option-info small {
  font-size: 11px;
  color: var(--muted);
}

.pay-option-radio {
  display: none;
}


.premium-note {
  max-width: 280px;
  margin-top: 14px;
  color: var(--dim);
  font-size: 10px;
  line-height: 1.35;
}

.welcome-button {
  max-width: 280px;
  margin-top: 28px;
}

.profile-upload {
  width: 100%;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.profile-upload:active {
  transform: scale(0.99);
}

.profile-upload-photo {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--cyan);
  border-radius: 12px;
  background: rgba(46, 210, 213, 0.08) center / cover no-repeat;
  color: var(--cyan);
  font-size: 25px;
  line-height: 1;
}

.profile-upload-photo.has-photo {
  border-style: solid;
}

.profile-upload strong {
  display: block;
  font-size: 12px;
}

.profile-upload small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
}

.profile-upload b {
  color: var(--cyan);
  font-size: 24px;
  font-weight: 400;
}

.landmark-metrics {
  width: 100%;
  margin-top: 4px;
}

.landmark-metric {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.landmark-metric span,
.landmark-metric small {
  color: var(--muted);
  font-size: 11px;
}

.landmark-metric strong {
  color: var(--text);
  font-size: 12px;
}

.landmark-metric small {
  grid-column: 1 / -1;
  font-size: 10px;
}

.analysis-progress {
  width: 100%;
  max-width: 300px;
  height: 6px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-2);
}

.analysis-progress span {
  display: block;
  width: var(--progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--lime));
  transition: width 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.primary {
  width: 100%;
  max-width: 300px;
  min-height: 48px;
  margin-top: 16px;
  border-radius: 14px;
  background: var(--cyan);
  color: #051012;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.primary.secondary {
  background: var(--surface-2);
  color: var(--text);
}

.full-action {
  max-width: none;
  min-height: 46px;
  margin: 0 0 12px;
}

.task-screen-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0 10px;
}

.task-group-screen {
  margin-bottom: 16px;
}

.task-group-screen > strong {
  display: block;
  margin: 0 0 8px 2px;
  color: var(--muted);
  font-size: 12px;
}

.task-toggle-row {
  width: 100%;
  color: inherit;
  text-align: left;
}

.guide-library {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.guide-problems {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  margin: 12px 0 2px;
  padding-bottom: 2px;
}

.problem-card {
  min-height: 76px;
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.problem-card strong {
  font-size: 14px;
}

.problem-card small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}


.guide-article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.guide-article h2 {
  margin: 0 0 9px;
  font-size: 15px;
}

.guide-sheet-article {
  margin-top: 14px;
}

.guide-sheet-article h3 {
  margin: 0 0 9px;
  font-size: 15px;
}

.guide-steps {
  display: grid;
  gap: 9px;
}

.guide-step {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 9px;
  align-items: start;
}

.guide-step > span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
}

.guide-step p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.guide-article ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 17px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.38;
}

.guide-note {
  margin: 2px 2px 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.primary:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;
  margin-top: 14px;
}

.day {
  min-height: 64px;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 8px 0;
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  border: 1px solid transparent;
}

.day.active {
  background: var(--cyan);
  color: #061012;
  border-color: rgba(46, 210, 213, 0.5);
}

.day i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
}

.day.complete i { background: var(--lime); }
.day.active i { background: #061012; }

.chips {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
  scrollbar-color: #155b62 transparent;
}

.chips .pill {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 8px 14px;
  font-size: 12px;
  white-space: nowrap;
  color: var(--text);
  background: var(--surface-2);
}

.chips::-webkit-scrollbar { height: 4px; }
.chips::-webkit-scrollbar-track { background: transparent; }
.chips::-webkit-scrollbar-thumb { border-radius: 99px; background: #155b62; }

.chips .pill.active {
  color: #061012;
  background: var(--cyan);
}

.profile-card {
  display: grid;
  justify-items: center;
  text-align: center;
}

.profile-identity {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.profile-access-status {
  width: 100%;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  margin-top: 14px;
  padding: 11px 4px;
  border-top: 1px solid rgba(46, 210, 213, 0.16);
  border-bottom: 1px solid rgba(46, 210, 213, 0.16);
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.profile-access-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--amber);
}

.profile-access-icon svg {
  width: 22px;
  height: 22px;
}

.profile-access-status > span:last-child {
  display: grid;
  gap: 2px;
}

.profile-access-status small {
  color: var(--cyan);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-access-status strong {
  font-size: 13px;
}

.referral-section {
  display: grid;
  gap: 12px;
  margin: 16px 2px 0;
  padding: 16px 2px 4px;
  border-top: 1px solid var(--line);
}

.referral-head {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  text-align: left;
}

.referral-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--cyan);
}

.referral-icon svg {
  width: 24px;
  height: 24px;
}

.referral-head > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.referral-head small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.referral-head strong {
  font-size: 15px;
}

.referral-head > b {
  min-width: 38px;
  color: var(--lime);
  font-size: 24px;
  text-align: right;
}

.referral-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  gap: 8px;
}

.referral-share,
.referral-copy {
  min-height: 46px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 160ms ease, opacity 160ms ease;
}

.referral-share {
  background: var(--cyan);
  color: #071114;
  font-weight: 900;
}

.referral-copy {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
}

.referral-copy svg {
  width: 20px;
  height: 20px;
}

.referral-share:active,
.referral-copy:active {
  transform: scale(0.98);
}

.referral-share:disabled,
.referral-copy:disabled {
  opacity: 0.45;
  cursor: default;
}

.referral-total {
  color: var(--muted);
  font-size: 11px;
}

.referral-total strong {
  color: var(--text);
}

.profile-photo {
  width: 94px;
  height: 94px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 50%;
  background: #1c303b;
  color: var(--cyan);
  font-size: 28px;
  font-weight: 900;
}

.stats {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.stats:has(> .stat:nth-child(2):last-child) {
  grid-template-columns: repeat(2, 1fr);
}

.stat {
  min-height: 72px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 14px;
  background: var(--surface-2);
  cursor: pointer;
}

.stat:hover {
  background: #2a2f3a;
}

.metric-row {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.looks-scale {
  display: grid;
  gap: 6px;
  margin: 14px 0;
}

.looks-scale-row {
  display: flex;
  justify-content: space-between;
  padding: 9px 11px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
}

.looks-scale-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
}

.looks-scale-row strong {
  color: var(--text);
}

.looks-scale-row.current {
  outline: 1px solid var(--cyan);
}

/* ── Гайды: платные категории помечены, бесплатная открыта ── */
.pill-locked {
  opacity: 0.62;
}

.pill-lock {
  display: inline-flex;
  align-items: center;
  margin-left: 5px;
  opacity: 0.8;
}

.pill-lock svg {
  width: 11px;
  height: 11px;
}

.pill.active .pill-lock {
  opacity: 1;
}

.guide-free-hint {
  margin: 10px 2px 2px;
  font-size: 11px;
  line-height: 1.45;
  color: var(--cyan);
  opacity: 0.8;
}

/* ── Axis: сегментированная шкала уровней ──
   Раньше семь подписей с процентами не помещались по ширине и налезали друг на друга.
   Теперь прогрессию показывает цвет сегментов, а текст остаётся только в бейдже. */
.axis-wrap {
  position: relative;
  margin: 4px 0 20px;
  padding: 14px 16px 13px;
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
}

/* мягкое свечение в цвет текущего уровня */
.axis-wrap::before {
  content: "";
  position: absolute;
  top: -55%;
  left: 50%;
  width: 78%;
  height: 130%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--tier-color, var(--cyan)) 20%, transparent), transparent 68%);
  opacity: 0.55;
  pointer-events: none;
}

.axis-wrap > * {
  position: relative;
}

.axis-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 13px;
}

.axis-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.axis-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  color: var(--tier-color, var(--cyan));
}

.axis-badge i {
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--tier-color, var(--cyan));
  background: color-mix(in srgb, var(--tier-color, var(--cyan)) 16%, transparent);
}

.axis-track {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 14px;
}

.axis-seg {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--seg-color) 16%, transparent);
  transition: height 0.25s ease, background 0.25s ease;
}

/* пройденные уровни подсвечены слабее активного, но ярче будущих */
.axis-seg--reached {
  background: color-mix(in srgb, var(--seg-color) 55%, transparent);
}

.axis-seg--active {
  height: 14px;
  background: var(--seg-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--seg-color) 22%, transparent),
    0 4px 14px color-mix(in srgb, var(--seg-color) 45%, transparent);
  animation: axis-seg-in 0.45s ease-out both;
}

@keyframes axis-seg-in {
  from {
    height: 6px;
    box-shadow: 0 0 0 0 transparent, 0 0 0 transparent;
  }
}

.axis-pointer-row {
  position: relative;
  height: 6px;
  margin-top: 5px;
}

.axis-pointer {
  position: absolute;
  top: 0;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 5px solid var(--tier-color, var(--cyan));
}

.axis-caption {
  margin: 9px 0 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--muted);
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .axis-seg,
  .axis-seg--active {
    animation: none;
    transition: none;
  }
}

.metric {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.metric strong {
  font-size: 12px;
}

.metric span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.bar {
  grid-column: 1 / -1;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-2);
}

.bar i {
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--lime));
}

.stat strong {
  color: var(--cyan);
  font-size: 22px;
}

.stat span {
  color: var(--muted);
  font-size: 11px;
}

.tabbar {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 10px 14px 12px;
  background: #0e1116;
  --indicator-x: 14px;
  --indicator-w: 64px;
}

.tabbar::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 10px;
  left: 0;
  width: var(--indicator-w);
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(180deg, #16434c 0%, #12323a 100%);
  box-shadow: 0 0 24px rgba(46, 210, 213, 0.12);
  transform: translateX(var(--indicator-x));
  transition:
    transform 340ms cubic-bezier(0.2, 0.9, 0.2, 1.15),
    width 340ms cubic-bezier(0.2, 0.9, 0.2, 1.15);
}

.tab {
  position: relative;
  z-index: 1;
  min-width: 0;
  height: 50px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  transition:
    color 180ms ease,
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tab.active {
  color: var(--text);
  background: transparent;
  transform: translateY(-1px);
}

.tab-icon {
  width: 22px;
  height: 22px;
  color: currentColor;
}

.tab svg {
  width: 22px;
  height: 22px;
  display: block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.toast {
  position: absolute;
  z-index: 6;
  left: 18px;
  right: 18px;
  bottom: 92px;
  padding: 12px 14px;
  border: 1px solid rgba(46, 210, 213, 0.2);
  border-radius: 14px;
  background: rgba(23, 27, 35, 0.96);
  color: var(--text);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.analysis-result-backdrop {
  position: absolute;
  inset: 0;
  z-index: 7;
  padding: 22px 18px 28px;
  overflow: hidden;
  background: #0e1116;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.analysis-result-backdrop.visible {
  opacity: 1;
  visibility: visible;
}

.analysis-result-backdrop .sheet-head {
  margin-bottom: 18px;
}

.analysis-result-backdrop .result-premium-card {
  opacity: 1;
  transform: none;
  animation: none;
}

.sheet {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  align-items: end;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.sheet.premium-from-result {
  background: rgba(3, 6, 9, 0.56);
  backdrop-filter: blur(1.5px);
}

.sheet.open {
  opacity: 1;
  pointer-events: auto;
}

.sheet-panel {
  max-height: 78%;
  overflow: hidden auto;
  scrollbar-width: thin;
  scrollbar-color: #155b62 #0c1116;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px 24px 0 0;
  background: #11161d;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.36);
  transform: translateY(20px);
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sheet-panel::-webkit-scrollbar { width: 5px; }
.sheet-panel::-webkit-scrollbar-track { border-radius: 99px; background: #0c1116; }
.sheet-panel::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: #155b62;
}

.sheet.open .sheet-panel {
  transform: translateY(0);
}

.sheet.full-screen {
  align-items: stretch;
  background: #0e1116;
}

.sheet.full-screen .sheet-panel {
  width: 100%;
  max-height: none;
  height: 100%;
  overflow: hidden auto;
  padding: 22px 18px 28px;
  border: 0;
  border-radius: 0;
  background: #0e1116;
  box-shadow: none;
  transform: none;
}

.sheet.welcome-screen .sheet-head {
  display: none;
}

.sheet.welcome-screen,
.sheet.welcome-screen .sheet-panel {
  background: #0e1116;
}

.sheet.full-screen .sheet-head {
  position: sticky;
  top: -22px;
  z-index: 1;
  margin: -22px -18px 18px;
  padding: 22px 18px 14px;
  background: rgba(14, 17, 22, 0.96);
  backdrop-filter: blur(12px);
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  position: relative;
  z-index: 10;
  background: inherit;
}

.sheet-head h2 {
  margin: 1px 0 0;
  font-size: 20px;
}

.icon-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--muted);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.settings-list {
  display: grid;
  gap: 10px;
}

.setting-row {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 0;
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.setting-row:active {
  transform: scale(0.99);
}

.setting-row strong,
.sheet-action strong {
  display: block;
  font-size: 13px;
}

.setting-row small,
.sheet-action small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.toggle {
  width: 46px;
  height: 28px;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface-2);
  cursor: pointer;
}

.toggle::before {
  content: "";
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 180ms ease, background 180ms ease;
}

.toggle.on {
  background: rgba(46, 210, 213, 0.18);
}

.toggle.on::before {
  transform: translateX(18px);
  background: var(--cyan);
}

.sheet-actions {
  display: grid;
  gap: 10px;
}

.sheet-action {
  width: 100%;
  padding: 13px;
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.sheet-action:hover,
.setting-row:hover {
  background: #1d232d;
}

.sheet-action.danger {
  color: var(--rose);
}

.task-group {
  display: grid;
  gap: 8px;
}

.task-group > strong {
  margin: 6px 2px 0;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 430px) {
  .app-shell { padding: 0; }
  .phone {
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }
}
