:root {
  --bg: #f6f1e8;
  --bg-soft: #fbf8f2;
  --surface: rgba(255, 252, 247, 0.84);
  --surface-strong: #fffdf9;
  --surface-muted: #f0e8dd;
  --line: rgba(47, 42, 35, 0.1);
  --line-strong: rgba(47, 42, 35, 0.16);
  --text: #1e1b18;
  --text-soft: rgba(30, 27, 24, 0.72);
  --text-faint: rgba(30, 27, 24, 0.5);
  --accent: #d96d43;
  --ig-pink: #e1306c;
  --ig-orange: #f77737;
  --ig-yellow: #fcaf45;
  --accent-soft: rgba(217, 109, 67, 0.14);
  --accent-strong: #b65632;
  --olive: #6f7b5d;
  --shadow-lg: 0 28px 60px rgba(53, 39, 24, 0.08);
  --shadow-md: 0 18px 38px rgba(53, 39, 24, 0.06);
  --shadow-sm: 0 12px 24px rgba(53, 39, 24, 0.05);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --font-body: "Manrope", sans-serif;
  --font-display: "Instrument Serif", serif;
  --font-ui: "Space Grotesk", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font-body);
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(225, 48, 108, 0.12), transparent 28%),
    linear-gradient(225deg, rgba(252, 175, 69, 0.14), transparent 28%),
    linear-gradient(180deg, #fffaf7 0%, #f7f3ee 44%, #fff 100%);
  line-height: 1.6;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.45;
  pointer-events: none;
}

body::before {
  top: -10rem;
  left: -8rem;
  background: rgba(217, 109, 67, 0.12);
}

body::after {
  right: -10rem;
  bottom: -12rem;
  background: rgba(111, 123, 93, 0.14);
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: 0;
}

::selection {
  background: rgba(217, 109, 67, 0.22);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 72px;
}

.topbar,
.panel,
.new-analysis-inner {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  position: sticky;
  top: 18px;
  z-index: 10;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.72);
  box-shadow: var(--shadow-sm);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #833ab4, #e1306c 48%, #f77737);
  color: #fff7ef;
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-mark-image {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 12px 22px rgba(225, 48, 108, 0.14);
}

.brand-name,
.brand-subtitle,
.eyebrow,
.hero-copy,
.helper-text,
.helper-note,
.control-side-label,
.section-kicker,
.report-kicker,
.topbar-nav,
.topbar-chip,
.badge,
.workflow-card p,
.signal-card span,
.signal-list,
.report-pill,
.table-intro p,
.metric-label,
.report-meta-item span,
.profile-mini-stat span,
.content-block h3,
.north-star-card span,
.idea-topline,
.idea-section span,
.status-meta {
  margin: 0;
}

.brand-name {
  font-family: var(--font-ui);
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-subtitle {
  color: var(--text-faint);
  font-size: 0.84rem;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.topbar-nav a,
.report-pill,
.hero-pill,
.topbar-chip,
.badge,
.cell-pill,
.report-pill-soft,
.new-analysis-button,
.status-dot,
.preview-dot {
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.topbar-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.topbar-nav a:hover,
.topbar-nav a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.55);
  outline: none;
}

.topbar-chips {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.topbar-chip,
.badge,
.hero-pill,
.report-pill,
.report-pill-soft {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.46);
  font-size: 0.86rem;
  letter-spacing: 0.01em;
}

.topbar-chip-soft,
.report-pill-soft {
  background: var(--accent-soft);
  border-color: rgba(217, 109, 67, 0.12);
  color: var(--accent-strong);
}

.hero-stage {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(380px, 1.04fr);
  gap: 36px;
  align-items: start;
  padding: 30px 0 18px;
}

.hero-content,
.hero-preview,
.panel,
.new-analysis-inner {
  animation: rise-in 680ms ease both;
}

.hero-content {
  width: min(100%, 760px);
  justify-self: center;
  padding: 0 8px 12px 4px;
  margin-top: 4px;
}

.eyebrow,
.section-kicker,
.report-kicker,
.control-side-label,
.idea-topline,
.preview-headline-card span,
.preview-stat-card span,
.workflow-card span,
.floating-note span,
.metric-label,
.report-meta-item span,
.profile-mini-stat span,
.signal-card > span,
.idea-section span,
.north-star-card > span {
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--text-faint);
}

.hero-content h1,
.section-heading-block h2,
.control-deck-header h2,
.north-star-card h3,
.content-block h3,
.ideas-grid h3,
.preview-headline-card strong {
  margin: 0;
}

.hero-content h1 {
  max-width: 15.5ch;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.18rem, 3.45vw, 3.15rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  text-wrap: balance;
  margin-top: 10px;
}

.hero-copy {
  max-width: 42ch;
  margin-top: 10px;
  color: var(--text-soft);
  font-size: 0.94rem;
  line-height: 1.62;
  text-wrap: pretty;
}

.hero-content h1 span {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.9em;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.hero-signal-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.hero-signal-card {
  border-radius: 22px;
  border: 1px solid rgba(47, 42, 35, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 251, 246, 0.88)),
    rgba(255, 255, 255, 0.78);
  box-shadow:
    0 16px 32px rgba(53, 39, 24, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.hero-signal-card {
  padding: 14px 15px;
}

.hero-signal-card span {
  display: block;
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
  color: var(--text-faint);
}

.hero-signal-card strong {
  display: block;
  margin-top: 10px;
  font-family: var(--font-ui);
  font-size: 0.96rem;
  line-height: 1.18;
  color: var(--text);
}

.hero-mini-proof {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.hero-proof-header {
  margin-top: 0;
}

.hero-proof-header span {
  display: inline-flex;
  align-items: center;
  color: var(--text-faint);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-analysis-panel {
  margin-top: 18px;
  padding: 18px;
  border-radius: 28px;
  border: 1px solid rgba(47, 42, 35, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.88), rgba(255, 250, 245, 0.72)),
    rgba(255, 255, 255, 0.6);
  box-shadow:
    0 20px 45px rgba(53, 39, 24, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.hero-proof-card {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(47, 42, 35, 0.07);
  box-shadow: var(--shadow-sm);
}

.hero-proof-card strong {
  font-family: var(--font-ui);
  font-size: 0.98rem;
  line-height: 1.15;
}

.hero-proof-card span {
  color: var(--text-soft);
  font-size: 0.82rem;
  line-height: 1.48;
}

.hero-pill-row,
.report-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.hero-pill {
  color: var(--text-soft);
  padding: 8px 12px;
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.64);
}

.hero-preview {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  width: 100%;
  justify-self: center;
  align-items: start;
  min-height: auto;
  padding: 0;
}

.phone-shell {
  grid-column: 1 / -1;
  position: relative;
  width: min(100%, 398px);
  justify-self: center;
  padding: 14px;
  border-radius: 36px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.42)),
    linear-gradient(135deg, rgba(225, 48, 108, 0.16), rgba(252, 175, 69, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 36px 70px rgba(61, 31, 22, 0.14);
}

body:not(.inside-telegram) .hero-preview {
  display: grid;
}

body:not(.inside-telegram) .phone-shell {
  display: block;
}

.phone-notch {
  position: absolute;
  top: 26px;
  left: 50%;
  width: 132px;
  height: 28px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(180deg, #201b18, #2d2622);
  z-index: 2;
}

.phone-screen {
  min-height: 568px;
  padding: 18px 18px 20px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(131, 58, 180, 0.14), transparent 30%),
    radial-gradient(circle at top left, rgba(247, 119, 55, 0.12), transparent 28%),
    linear-gradient(180deg, #3a2f2a 0%, #4a3d37 100%);
  color: #f7efe6;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.phone-status-row,
.ig-profile-top,
.ig-profile-stats,
.ig-bottom-bar {
  display: flex;
}

.phone-status-row {
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  color: rgba(247, 239, 230, 0.7);
  font-family: var(--font-ui);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
}

.ig-profile-top {
  gap: 14px;
  align-items: center;
  margin-top: 28px;
}

.ig-profile-avatar-wrap {
  flex: 0 0 auto;
}

.ig-profile-avatar-ring {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #833ab4, #e1306c 52%, #fcaf45);
}

.ig-profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid #312723;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.26), transparent 18%),
    url("https://images.pexels.com/photos/10375885/pexels-photo-10375885.jpeg?auto=compress&cs=tinysrgb&w=500"),
    linear-gradient(145deg, #f6d7c8, #c88d73 48%, #6e5446);
  background-size: auto, cover, auto;
  background-position: center, center, center;
}

.ig-profile-meta {
  min-width: 0;
}

.ig-profile-meta strong {
  display: block;
  font-family: var(--font-ui);
  font-size: 1.1rem;
  line-height: 1.1;
}

.ig-profile-meta p {
  margin: 6px 0 0;
  color: rgba(247, 239, 230, 0.68);
  font-size: 0.88rem;
}

.ig-profile-stats {
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.ig-profile-stats span {
  color: rgba(247, 239, 230, 0.82);
  font-size: 0.79rem;
}

.ig-profile-stats strong {
  margin-right: 5px;
  font-size: 0.95rem;
}

.ig-story-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 22px;
}

.ig-story-row span {
  aspect-ratio: 1;
  display: block;
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(131, 58, 180, 0.9), rgba(225, 48, 108, 0.95) 55%, rgba(252, 175, 69, 0.95));
  padding: 3px;
  position: relative;
}

.ig-story-row span::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background:
    radial-gradient(circle at 40% 30%, rgba(255, 255, 255, 0.22), transparent 18%),
    linear-gradient(180deg, rgba(24, 18, 16, 0.08), rgba(24, 18, 16, 0.32)),
    linear-gradient(145deg, #56473e, #332a26 62%, #251f1c);
  border: 3px solid #312723;
  background-size: auto, auto, auto;
  background-position: center, center, center;
}

.ig-story-row span:nth-child(1)::after {
  background:
    radial-gradient(circle at 40% 30%, rgba(255, 255, 255, 0.22), transparent 18%),
    linear-gradient(180deg, rgba(24, 18, 16, 0.12), rgba(24, 18, 16, 0.3)),
    url("https://images.pexels.com/photos/28749221/pexels-photo-28749221.jpeg?auto=compress&cs=tinysrgb&w=400");
  background-size: auto, auto, cover;
  background-position: center, center, center;
}

.ig-story-row span:nth-child(2)::after {
  background:
    radial-gradient(circle at 40% 30%, rgba(255, 255, 255, 0.22), transparent 18%),
    linear-gradient(180deg, rgba(24, 18, 16, 0.12), rgba(24, 18, 16, 0.3)),
    url("https://images.pexels.com/photos/10375885/pexels-photo-10375885.jpeg?auto=compress&cs=tinysrgb&w=400");
  background-size: auto, auto, cover;
  background-position: center, center, center;
}

.ig-story-row span:nth-child(3)::after {
  background:
    radial-gradient(circle at 40% 30%, rgba(255, 255, 255, 0.22), transparent 18%),
    linear-gradient(180deg, rgba(24, 18, 16, 0.12), rgba(24, 18, 16, 0.3)),
    url("https://images.pexels.com/photos/7947996/pexels-photo-7947996.jpeg?auto=compress&cs=tinysrgb&w=400");
  background-size: auto, auto, cover;
  background-position: center, center, center;
}

.ig-story-row span:nth-child(4)::after {
  background:
    radial-gradient(circle at 40% 30%, rgba(255, 255, 255, 0.22), transparent 18%),
    linear-gradient(180deg, rgba(24, 18, 16, 0.12), rgba(24, 18, 16, 0.3)),
    url("https://images.pexels.com/photos/17458036/pexels-photo-17458036.jpeg?auto=compress&cs=tinysrgb&w=400");
  background-size: auto, auto, cover;
  background-position: center, center, center;
}

.ig-story-row span::before {
  content: attr(data-label);
  position: absolute;
  left: 50%;
  bottom: -22px;
  transform: translateX(-50%);
  color: rgba(247, 239, 230, 0.68);
  font-family: var(--font-ui);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ig-insight-card {
  margin-top: 22px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 14px 24px rgba(24, 18, 16, 0.12);
}

.ig-insight-card span {
  display: block;
  color: rgba(247, 239, 230, 0.5);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ig-insight-card strong {
  display: block;
  margin-top: 10px;
  font-family: var(--font-ui);
  font-size: 1.12rem;
  line-height: 1.15;
}

.ig-insight-card p {
  margin: 10px 0 0;
  color: rgba(247, 239, 230, 0.72);
}

.ig-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 16px;
}

.ig-post-tile {
  position: relative;
  min-height: 112px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  padding: 12px;
  overflow: hidden;
  border-radius: 16px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01)),
    linear-gradient(145deg, #4f3830, #302624 60%, #241d1a);
  border: 1px solid rgba(249, 241, 231, 0.08);
}

.ig-post-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.34));
}

.ig-post-tile::before {
  content: "";
  position: absolute;
  inset: auto 12px 12px auto;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
}

.ig-post-tile-compact {
  min-height: 122px;
}

.ig-post-tile-creator {
  background:
    linear-gradient(180deg, rgba(19, 14, 13, 0.12), rgba(19, 14, 13, 0.68)),
    url("https://images.pexels.com/photos/10375885/pexels-photo-10375885.jpeg?auto=compress&cs=tinysrgb&w=900"),
    radial-gradient(circle at 50% 16%, rgba(255, 217, 169, 0.42), transparent 22%),
    linear-gradient(145deg, #8d624f, #573d34 60%, #251d1a);
  background-size: cover, auto, auto, auto;
  background-position: center, center, center, center;
}

.ig-post-tile-accent {
  background:
    linear-gradient(180deg, rgba(20, 12, 13, 0.18), rgba(20, 12, 13, 0.58)),
    url("https://images.pexels.com/photos/7947996/pexels-photo-7947996.jpeg?auto=compress&cs=tinysrgb&w=900"),
    radial-gradient(circle at top left, rgba(255, 186, 129, 0.42), transparent 28%),
    radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.12), transparent 18%),
    linear-gradient(145deg, #8b5a50, #43282d 62%, #241c1a);
  background-size: cover, cover, auto, auto, auto;
  background-position: center, center, center, center, center;
}

.ig-post-tile-accent::before {
  inset: auto 26px 24px auto;
  width: 74px;
  height: 74px;
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  box-shadow:
    -34px -18px 0 -8px rgba(255, 255, 255, 0.06),
    -34px -18px 0 1px rgba(255, 255, 255, 0.03);
}

.ig-post-tile-soft {
  background:
    linear-gradient(180deg, rgba(13, 17, 21, 0.16), rgba(13, 17, 21, 0.56)),
    url("https://images.pexels.com/photos/28749221/pexels-photo-28749221.jpeg?auto=compress&cs=tinysrgb&w=900"),
    radial-gradient(circle at 70% 16%, rgba(193, 225, 255, 0.28), transparent 20%),
    linear-gradient(145deg, #40525f, #2b3238 62%, #1f2326);
  background-size: cover, cover, auto, auto;
  background-position: center, center, center, center;
}

.ig-post-tile-soft::before {
  inset: auto 18px 26px auto;
  width: 92px;
  height: 54px;
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  box-shadow:
    -18px 0 0 -8px rgba(255, 255, 255, 0.07),
    -18px 0 0 1px rgba(255, 255, 255, 0.03);
}

.ig-post-tile-quote {
  background:
    linear-gradient(180deg, rgba(17, 12, 12, 0.16), rgba(17, 12, 12, 0.58)),
    url("https://images.pexels.com/photos/17458036/pexels-photo-17458036.jpeg?auto=compress&cs=tinysrgb&w=900"),
    radial-gradient(circle at 50% 18%, rgba(241, 214, 186, 0.28), transparent 24%),
    linear-gradient(145deg, #5e4a46, #302625 62%, #221c1a);
  background-size: cover, cover, auto, auto;
  background-position: center, center, center, center;
}

.ig-post-tile-quote::before {
  inset: auto 18px 22px auto;
  width: 84px;
  height: 84px;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow:
    -20px -14px 0 -6px rgba(255, 255, 255, 0.05),
    -20px -14px 0 1px rgba(255, 255, 255, 0.03);
}

.ig-post-tile-wide {
  grid-column: auto;
}

.ig-post-tile-growth {
  background:
    linear-gradient(180deg, rgba(15, 11, 18, 0.12), rgba(15, 11, 18, 0.58)),
    url("https://images.pexels.com/photos/36496955/pexels-photo-36496955.jpeg?auto=compress&cs=tinysrgb&w=1200"),
    radial-gradient(circle at top right, rgba(131, 58, 180, 0.24), transparent 36%),
    radial-gradient(circle at 18% 24%, rgba(255, 179, 110, 0.24), transparent 20%),
    linear-gradient(145deg, #4d384c, #2a2327 62%, #211b1d);
  background-size: cover, cover, auto, auto, auto;
  background-position: center, center, center, center, center;
}

.ig-post-tile-analytics {
  background:
    linear-gradient(180deg, rgba(13, 15, 20, 0.18), rgba(13, 15, 20, 0.56)),
    url("https://images.pexels.com/photos/7109316/pexels-photo-7109316.jpeg?auto=compress&cs=tinysrgb&w=900"),
    radial-gradient(circle at 72% 22%, rgba(194, 214, 255, 0.2), transparent 22%),
    linear-gradient(145deg, #334253, #222d37 62%, #181f25);
  background-size: cover, cover, auto, auto;
  background-position: center, center, center, center;
}

.ig-post-chip,
.ig-post-copy,
.ig-post-tile strong,
.ig-post-kpi,
.ig-post-icon {
  position: relative;
  z-index: 1;
}

.ig-post-chip {
  align-self: flex-start;
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(249, 241, 231, 0.84);
  font-family: var(--font-ui);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ig-post-tile strong {
  color: rgba(255, 246, 235, 0.96);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  line-height: 1.05;
}

.ig-post-copy {
  display: grid;
  gap: 4px;
}

.ig-post-copy small {
  color: rgba(249, 241, 231, 0.72);
  font-family: var(--font-ui);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ig-post-copy p {
  margin: 0;
  max-width: 10ch;
  color: rgba(249, 241, 231, 0.78);
  font-family: var(--font-ui);
  font-size: 0.58rem;
  line-height: 1.35;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ig-post-copy strong + p,
.ig-post-kpi,
.ig-post-icon {
  display: none;
}

.ig-post-copy small {
  font-size: 0.56rem;
}

.ig-post-compact .ig-post-copy,
.ig-post-tile-compact .ig-post-copy {
  margin-top: auto;
}

.ig-bottom-bar {
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
}

.ig-bottom-bar span {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(247, 239, 230, 0.12);
}

.ig-bottom-bar .ig-bottom-bar-active {
  background: linear-gradient(90deg, #f77737, #e1306c);
}

.preview-frame {
  grid-column: 1 / -1;
  position: relative;
  padding: 16px;
  border-radius: 38px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.32)),
    linear-gradient(135deg, rgba(217, 109, 67, 0.12), rgba(111, 123, 93, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow-lg);
}

.preview-window {
  padding: 22px;
  border-radius: 28px;
  background: rgba(32, 28, 25, 0.96);
  color: #f8f1e8;
  min-height: 390px;
}

.preview-window-top {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(248, 241, 232, 0.72);
  font-size: 0.84rem;
}

.preview-window-top p {
  margin: 0 0 0 6px;
}

.preview-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(248, 241, 232, 0.26);
}

.preview-dot:first-child {
  background: #ff8b68;
}

.preview-dot:nth-child(2) {
  background: #f3c05e;
}

.preview-dot:nth-child(3) {
  background: #92c88a;
}

.preview-headline-card,
.preview-stat-card {
  border: 1px solid rgba(248, 241, 232, 0.1);
  background: rgba(248, 241, 232, 0.04);
}

.preview-headline-card {
  margin-top: 24px;
  padding: 20px;
  border-radius: 22px;
}

.preview-headline-card strong {
  display: block;
  margin-top: 10px;
  font-size: 1.35rem;
  font-family: var(--font-ui);
}

.preview-headline-card p {
  margin: 10px 0 0;
  max-width: 27ch;
  color: rgba(248, 241, 232, 0.74);
}

.preview-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.preview-stat-card {
  padding: 18px;
  border-radius: 20px;
}

.preview-stat-card strong {
  display: block;
  margin-top: 10px;
  font-size: 1.28rem;
  line-height: 1.2;
}

.preview-stat-card-wide {
  grid-column: 1 / -1;
}

.preview-lines {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.preview-lines span {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(248, 241, 232, 0.14),
    rgba(248, 241, 232, 0.03)
  );
}

.preview-lines span:nth-child(2) {
  width: 84%;
}

.preview-lines span:nth-child(3) {
  width: 90%;
}

.preview-lines span:nth-child(4) {
  width: 72%;
}

.floating-note {
  position: static;
  max-width: none;
  min-height: 100%;
  padding: 18px 18px 20px;
  border-radius: 24px;
  background: rgba(255, 252, 247, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-sm);
}

.floating-note strong {
  display: block;
  margin-top: 6px;
  font-size: 1rem;
}

.floating-note p {
  margin: 8px 0 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.studio-layout {
  display: grid;
  gap: 22px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.control-deck,
.report-hero,
.direction-stage,
.ideas-stage,
.carousel-stage,
.weekly-plan-stage,
.posts-stage,
.scale-stage,
.report-nav {
  padding: clamp(22px, 3vw, 34px);
}

.control-deck {
  background:
    radial-gradient(circle at top left, rgba(255, 198, 166, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(225, 48, 108, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 253, 250, 0.96), rgba(255, 249, 243, 0.92));
  box-shadow:
    0 24px 48px rgba(53, 39, 24, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.control-deck-header,
.section-heading-block,
.section-heading-row,
.report-kicker-row,
.new-analysis-inner,
.profile-overview-card,
.report-meta-item,
.post-cell,
.idea-section,
.status-card,
.workflow-card,
.signal-card,
.metric-card,
.profile-mini-stat {
  display: flex;
}

.control-deck-header,
.section-heading-row,
.report-kicker-row,
.new-analysis-inner {
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.control-deck-header {
  align-items: flex-start;
}

.section-heading-block {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.section-heading-row {
  align-items: flex-end;
}

.content-block-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.panel-header-stack p,
.section-heading-block p,
.helper-text,
.helper-note,
.workflow-card p,
.signal-list,
.table-intro p,
.profile-bio,
.spotlight-card p,
.content-block li,
.north-star-card li,
.idea-section p,
.report-meta-item strong,
.status-copy p,
.cell-meta,
.cell-caption {
  color: var(--text-soft);
}

.panel-header-stack h2,
.section-heading-block h2 {
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: clamp(1.5rem, 2vw, 2.15rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.panel-header-stack h2 {
  display: flex;
  align-items: center;
}

.section-ig-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  margin-right: 8px;
  border-radius: 10px;
  object-fit: cover;
  vertical-align: middle;
  box-shadow: 0 10px 20px rgba(225, 48, 108, 0.12);
}

.panel-header-stack p,
.section-heading-block p {
  max-width: 54ch;
  margin-top: 10px;
}

.badge {
  flex-shrink: 0;
  color: var(--accent-strong);
  background: rgba(255, 255, 255, 0.58);
}

.control-deck-grid,
.report-hero-grid,
.direction-grid,
.double-grid {
  display: grid;
  gap: 18px;
}

.control-deck-grid {
  grid-template-columns: minmax(0, 1fr);
  margin-top: 30px;
}

.control-form-block,
.control-side,
.spotlight-card,
.content-block,
.metric-card,
.report-meta-card,
.profile-mini-stats,
.north-star-card,
.idea-card,
.signal-card,
.table-intro,
.status-card,
.error-box,
.new-analysis-inner,
.workflow-card {
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.control-form-block,
.control-side,
.report-meta-card,
.profile-mini-stats,
.north-star-card,
.table-intro {
  padding: 22px;
}

.control-side {
  display: grid;
  gap: 14px;
}

.control-side-secondary {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.analyze-form {
  display: grid;
  gap: 14px;
}

.analyze-form label {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.input-row {
  display: flex;
  gap: 12px;
  padding: 8px;
  border-radius: 22px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}

.input-row input {
  width: 100%;
  min-width: 0;
  padding: 18px 18px;
  background: transparent;
  border: 0;
  color: var(--text);
  outline: none;
}

.input-row input::placeholder {
  color: var(--text-faint);
}

.input-row:focus-within {
  border-color: rgba(217, 109, 67, 0.45);
  box-shadow: 0 0 0 4px rgba(217, 109, 67, 0.09);
}

#submit-button,
#new-analysis-button {
  padding: 16px 22px;
  border-radius: 18px;
  background: linear-gradient(145deg, #29211c, #43342c);
  color: #fff9f2;
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow: 0 14px 30px rgba(41, 33, 28, 0.18);
}

#submit-button:hover,
#new-analysis-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(41, 33, 28, 0.2);
}

#submit-button:disabled {
  cursor: progress;
  opacity: 0.82;
}

.helper-text {
  margin-top: 18px;
  font-size: 0.95rem;
}

.status-card,
.error-box {
  align-items: flex-start;
  gap: 14px;
  margin-top: 18px;
  padding: 18px;
}

.status-card {
  background: rgba(111, 123, 93, 0.08);
}

.status-dot {
  width: 12px;
  height: 12px;
  margin-top: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(180deg, #87a56b, #51653f);
  box-shadow: 0 0 0 8px rgba(111, 123, 93, 0.12);
}

.status-copy {
  flex: 1;
}

#status-text {
  margin: 0;
  font-weight: 700;
  color: var(--text);
}

#status-meta {
  margin: 6px 0 0;
  font-size: 0.92rem;
}

.status-progress {
  width: 100%;
  height: 8px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(111, 123, 93, 0.12);
}

#status-progress-fill {
  display: block;
  width: 12%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #71805f, #d96d43);
}

.status-visual {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}

.progress-ring {
  --progress: 12%;
  position: relative;
  width: 74px;
  height: 74px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(255, 253, 248, 0.98) 58%, transparent 59%),
    conic-gradient(#d96d43 var(--progress), rgba(111, 123, 93, 0.18) 0);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.progress-ring strong {
  position: relative;
  z-index: 1;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  line-height: 1;
  color: var(--text);
}

.progress-ring-static {
  width: 86px;
  height: 86px;
}

.loading-card,
.loading-card-copy {
  display: flex;
}

.loading-card {
  align-items: center;
  gap: 18px;
}

.loading-card-copy {
  flex: 1;
  flex-direction: column;
  gap: 6px;
}

.loading-card-copy p {
  margin: 0;
  color: var(--text-soft);
}

.error-box {
  color: #862b21;
  background: rgba(191, 63, 49, 0.08);
}

.workflow-rail,
.summary-grid,
.profile-mini-stats,
.ideas-grid,
.triple-grid {
  display: grid;
  gap: 14px;
}

.workflow-rail {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workflow-card {
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
}

.workflow-card strong {
  display: block;
  color: var(--text);
}

.workflow-card p {
  margin-top: 5px;
}

.signal-card {
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(247, 241, 233, 0.92)),
    var(--surface-strong);
}

.signal-list,
.tag-list,
.insight-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.signal-list,
.insight-list {
  display: grid;
  gap: 10px;
}

.signal-list li,
.insight-list li,
.tag-list li {
  position: relative;
}

.signal-list li,
.insight-list li {
  padding-left: 18px;
}

.signal-list li::before,
.insight-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(217, 109, 67, 0.42);
}

.executive-summary-card,
.summary-focus-card,
.insight-hero-card,
.mini-pattern-card,
.generated-image-frame {
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.executive-summary-card {
  margin-top: 20px;
  padding: 22px;
  background:
    radial-gradient(circle at top right, rgba(217, 109, 67, 0.12), transparent 34%),
    rgba(255, 252, 247, 0.95);
}

.executive-summary-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.executive-summary-head > div:first-child {
  min-width: 0;
}

.executive-summary-head h2 {
  margin: 6px 0 0;
  font-family: var(--font-ui);
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.08;
}

.inline-action-row,
.card-action-row,
.metric-inline-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.inline-action-row {
  justify-content: flex-start;
}

.section-action-row {
  margin-top: 18px;
}

.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 10px 22px rgba(53, 39, 24, 0.06);
}

.action-button:hover,
.action-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(217, 109, 67, 0.28);
  outline: none;
}

.section-toggle-button,
.week-plan-day-button {
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.section-toggle-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(53, 39, 24, 0.06);
}

.section-toggle-button:hover,
.section-toggle-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(217, 109, 67, 0.24);
  color: var(--accent-strong);
  outline: none;
}

.section-toggle-button[aria-expanded="true"] {
  background: var(--accent-soft);
  border-color: rgba(217, 109, 67, 0.24);
  color: var(--accent-strong);
}

.section-collapsible {
  margin-top: 20px;
}

.section-collapsible-compact {
  margin-top: 14px;
}

.section-toggle-button-compact {
  min-height: 38px;
  padding: 9px 13px;
  font-size: 0.8rem;
  box-shadow: none;
}

.action-button:disabled {
  cursor: progress;
  opacity: 0.75;
}

.action-button-accent {
  background: linear-gradient(135deg, #833ab4, #e1306c 48%, #f77737);
  border-color: transparent;
  color: #fff;
}

.executive-summary-grid,
.insight-strip,
.mini-pattern-list,
.generator-output-stack {
  display: grid;
  gap: 14px;
}

.executive-summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 20px;
}

.summary-focus-card,
.insight-hero-card,
.mini-pattern-card {
  padding: 18px;
}

.summary-focus-card span,
.insight-hero-card span,
.mini-pattern-card span,
.subsection-title {
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  font-size: 0.72rem;
}

.summary-focus-card p,
.mini-pattern-card p,
.priority-step-copy,
.formula-text {
  margin: 10px 0 0;
  color: var(--text);
  overflow-wrap: anywhere;
}

.executive-summary-grid {
  align-items: stretch;
}

.summary-focus-card {
  display: flex;
  min-height: 176px;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
}

.summary-focus-card p {
  font-size: clamp(1.02rem, 1.25vw, 1.32rem);
  line-height: 1.48;
  letter-spacing: -0.015em;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
  text-wrap: pretty;
}

#summary-next-step-text {
  font-size: clamp(1.08rem, 1.35vw, 1.42rem);
  font-weight: 600;
  line-height: 1.42;
}

.summary-focus-card-accent,
.insight-hero-card-warning {
  background:
    radial-gradient(circle at top right, rgba(217, 109, 67, 0.14), transparent 42%),
    var(--surface-strong);
}

.insight-strip {
  grid-template-columns: repeat(3, minmax(190px, 240px));
  justify-content: center;
  margin-top: 20px;
}

.insight-hero-card {
  text-align: center;
}

.insight-hero-card strong {
  display: block;
  margin-top: 10px;
  font-family: var(--font-ui);
  font-size: 1.08rem;
  line-height: 1.15;
}

.detail-grid-offset {
  margin-top: 18px;
}

.mini-pattern-list {
  margin-top: 14px;
}

.priority-step-copy {
  margin-bottom: 18px;
}

.subsection-title {
  display: block;
  margin: 18px 0 0;
}

.formula-text {
  min-height: 72px;
  font-size: 1rem;
}

.performance-grid {
  margin-top: 22px;
}

.performance-card {
  height: 100%;
}

.metric-inline-row {
  margin-top: 14px;
}

.mini-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(30, 27, 24, 0.06);
  color: var(--text-soft);
  font-family: var(--font-ui);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
}

.performance-post-link {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  color: var(--accent-strong);
  font-family: var(--font-ui);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.performance-post-link:hover,
.performance-post-link:focus-visible {
  color: var(--accent);
  outline: none;
}

.card-action-row {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.card-action-row .action-button {
  flex: 1 1 180px;
}

.generator-grid {
  align-items: start;
}

.generator-output-stack {
  min-width: 0;
}

.generated-image-frame {
  overflow: hidden;
  padding: 0;
}

.generated-image-frame img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.new-analysis-bar {
  position: sticky;
  top: 102px;
  z-index: 8;
}

.new-analysis-inner {
  padding: 14px 18px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 247, 0.82);
  box-shadow: var(--shadow-sm);
}

.new-analysis-inner span {
  color: var(--text-soft);
}

.results {
  display: grid;
  gap: 22px;
}

.report-hero-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  align-items: start;
}

.report-side {
  display: grid;
  gap: 14px;
  align-content: start;
}

.report-hero-grid > .profile-overview-card,
.report-hero-grid > .executive-summary-card,
.report-hero-grid > .insight-strip,
.report-hero-grid > .spotlight-grid,
.report-hero-grid > .double-grid {
  margin-top: 0;
}

.report-kicker-row {
  justify-content: flex-start;
}

.profile-overview-card {
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.profile-avatar {
  width: 92px;
  height: 92px;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.profile-overview-copy {
  width: min(100%, 700px);
}

.profile-name {
  font-family: var(--font-ui);
  font-weight: 800;
  max-width: 18ch;
  margin: 0 auto;
  font-size: clamp(1.18rem, 1.8vw, 1.7rem);
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.profile-handle,
.profile-category {
  margin: 0;
  overflow-wrap: anywhere;
}

.profile-handle {
  margin-top: 6px;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-strong);
  text-decoration: none;
}

.profile-category {
  margin-top: 5px;
  color: var(--text-faint);
  font-size: 0.82rem;
}

.profile-bio {
  margin-top: 10px;
  max-width: 44ch;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.94rem;
  line-height: 1.55;
}

.spotlight-grid,
.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 220px));
  justify-content: center;
  gap: 14px;
}

.spotlight-grid {
  margin-top: 20px;
}

.spotlight-card,
.content-block,
.metric-card,
.idea-card,
.north-star-card {
  flex-direction: column;
}

.spotlight-card,
.content-block,
.priority-card {
  padding: 20px;
}

.spotlight-card span {
  margin-bottom: 10px;
}

.spotlight-card p {
  margin: 0;
  font-size: 1rem;
}

.spotlight-card-accent,
.north-star-card {
  background:
    radial-gradient(circle at top right, rgba(217, 109, 67, 0.12), transparent 42%),
    var(--surface-strong);
}

.double-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.content-block-dark {
  background: linear-gradient(180deg, rgba(44, 37, 31, 0.96), rgba(28, 24, 21, 0.96));
  border-color: rgba(255, 255, 255, 0.04);
}

.content-block-dark h3,
.content-block-dark li {
  color: #f8f1e8;
}

.content-block-dark .tag-list li {
  color: rgba(248, 241, 232, 0.78);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-list li {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.92rem;
}

.summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric-card,
.profile-mini-stat {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.metric-card {
  min-height: 136px;
  padding: 14px 16px;
  border-radius: 22px;
}

.metric-label {
  text-align: center;
  font-size: 0.68rem;
}

.metric-card strong {
  margin-top: 8px;
  font-family: var(--font-ui);
  font-size: clamp(1.55rem, 2.25vw, 2.4rem);
  line-height: 0.92;
  overflow-wrap: anywhere;
}

#format-split {
  font-size: clamp(1.3rem, 2vw, 2rem);
  line-height: 0.98;
}

.report-meta-card,
.profile-mini-stats {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.report-meta-item,
.profile-mini-stat {
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(246, 241, 232, 0.8);
}

.report-meta-item strong,
.profile-mini-stat strong {
  color: var(--text);
  text-align: right;
}

.profile-mini-stat {
  justify-content: center;
}

.report-meta-link,
.profile-handle {
  color: var(--text);
  text-decoration: none;
}

.report-meta-link.is-disabled,
.profile-handle.is-disabled {
  opacity: 0.68;
  pointer-events: none;
}

.report-meta-link:hover,
.report-meta-link:focus-visible,
.profile-handle:hover,
.profile-handle:focus-visible {
  color: var(--accent-strong);
  outline: none;
}

@media (min-width: 1101px) {
  .report-profile-block,
  .report-summary-block,
  .report-insights-block,
  .report-spotlight-block,
  .report-taxonomy-block {
    grid-column: 1;
  }

  .report-side {
    grid-column: 2;
    grid-row: 1 / span 5;
  }
}

.report-pill-row {
  margin-top: 20px;
}

.report-pill:hover,
.hero-pill:hover,
.topbar-chip:hover {
  transform: translateY(-1px);
}

.direction-grid {
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  margin-top: 22px;
  align-items: start;
}

.north-star-card h3 {
  margin-top: 8px;
  font-family: var(--font-ui);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.18;
}

.north-star-card .insight-list {
  margin-top: 18px;
}

.triple-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.content-block h3 {
  font-family: var(--font-ui);
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.content-block .insight-list,
.priority-card .insight-list {
  margin-top: 14px;
}

.ideas-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
}

.idea-card {
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.idea-card h3 {
  margin-top: 8px;
  font-family: var(--font-ui);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
}

.carousel-generator {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr);
  gap: 16px;
  margin-top: 22px;
}

.carousel-generator > div:first-child,
.carousel-output,
.week-plan-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 253, 249, 0.92);
  padding: 18px;
}

.carousel-generator label {
  display: block;
  margin-bottom: 10px;
  color: var(--text-faint);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.carousel-generator select,
.carousel-generator input,
.carousel-generator button {
  width: 100%;
  border-radius: 14px;
}

.carousel-generator select,
.carousel-generator input {
  padding: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  margin-bottom: 10px;
}

.carousel-generator button {
  padding: 14px;
  background: linear-gradient(135deg, #833ab4, #e1306c 48%, #f77737);
  color: #fff;
  font-weight: 800;
}

.carousel-output {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.post-output,
.post-result-meta {
  display: grid;
  gap: 12px;
}

.post-generator-controls {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.post-generator-controls label {
  font-family: var(--font-ui);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.post-generator-controls input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

.post-generator-controls input::placeholder {
  color: var(--text-faint);
}

.post-output {
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.post-result-card,
.post-result-copy {
  display: grid;
  gap: 12px;
}

.post-result-copy {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(246, 241, 232, 0.56);
}

.post-result-copy p {
  margin: 0;
  color: var(--text);
  line-height: 1.65;
  white-space: normal;
}

.carousel-preview-card {
  aspect-ratio: 1 / 1;
  display: grid;
  align-content: end;
  padding: 24px;
  border-radius: 18px;
  color: #fff;
  background-position: center;
  background-size: cover;
  background:
    linear-gradient(145deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.5)),
    linear-gradient(135deg, #833ab4, #e1306c 45%, #fcaf45);
}

.carousel-preview-card h3 {
  margin: 8px 0;
  font-family: var(--font-ui);
  font-size: clamp(1.25rem, 2.8vw, 1.6rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.carousel-copy-block span,
.week-plan-card span {
  color: var(--text-faint);
  font-family: var(--font-ui);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.carousel-copy-block p,
.week-plan-card p {
  margin: 8px 0 0;
  color: var(--text-soft);
  overflow-wrap: anywhere;
}

.carousel-slides-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.carousel-slide-card {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.carousel-slide-card-generated {
  display: grid;
  gap: 12px;
  align-content: start;
}

.carousel-slide-image-frame {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 30px rgba(53, 39, 24, 0.08);
}

.carousel-slide-image-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.carousel-slide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.carousel-slide-card span {
  color: var(--text-faint);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.carousel-slide-card strong {
  display: block;
  margin-top: 10px;
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.15;
}

.carousel-slide-card p {
  margin: 8px 0 0;
  color: var(--text-soft);
}

.week-plan-list {
  display: grid;
  gap: 12px;
}

.week-plan-stack {
  display: grid;
  gap: 14px;
}

.week-plan-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.week-plan-day-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text-soft);
  font-family: var(--font-ui);
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(53, 39, 24, 0.05);
}

.week-plan-day-button:hover,
.week-plan-day-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(217, 109, 67, 0.24);
  color: var(--accent-strong);
  outline: none;
}

.week-plan-day-button.is-active {
  background: var(--accent-soft);
  border-color: rgba(217, 109, 67, 0.24);
  color: var(--accent-strong);
}

.week-plan-card {
  padding: 18px;
}

.week-plan-card h3 {
  margin: 8px 0;
  font-size: 1.05rem;
}

.week-plan-card strong {
  display: block;
  margin-top: 8px;
}

.idea-section {
  flex-direction: column;
  gap: 7px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.idea-section p {
  margin: 0;
}

.table-intro {
  margin-top: 22px;
  padding: 20px 22px;
}

.posts-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.post-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 253, 249, 0.92);
}

.post-card-error {
  border-color: rgba(191, 63, 49, 0.22);
  background: rgba(191, 63, 49, 0.04);
}

.post-card-toggle {
  display: grid;
  width: 100%;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.post-card-index {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(30, 27, 24, 0.06);
  color: var(--text-soft);
  font-family: var(--font-ui);
}

.post-card-title {
  display: grid;
  min-width: 0;
}

.post-card-title span,
.post-card-title small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-card-title span,
.post-card-link {
  font-weight: 800;
}

.post-card-title small {
  color: var(--text-faint);
  font-size: 0.86rem;
}

.post-card-link {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.post-card-action {
  border: 1px solid transparent;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(30, 27, 24, 0.06);
  color: var(--text-soft);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  white-space: nowrap;
}

.post-card-action:hover,
.post-card-action:focus-visible,
.post-card-link:hover,
.post-card-link:focus-visible,
.post-card-media a:hover,
.post-card-media a:focus-visible {
  color: var(--accent-strong);
  border-color: rgba(217, 109, 67, 0.24);
  outline: none;
}

.post-card-body {
  padding: 0 16px 16px;
}

.post-card-media {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.post-card-media a {
  color: var(--text);
  font-weight: 800;
}

.post-card-media p {
  margin: 8px 0 0;
  color: var(--text-soft);
  overflow-wrap: anywhere;
}

.post-thumb {
  width: 92px;
  height: 118px;
  object-fit: cover;
  border-radius: 18px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.post-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-muted);
  color: var(--text-faint);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.score-badge {
  min-width: 50px;
  padding: 10px 12px;
  background: rgba(217, 109, 67, 0.12);
  color: var(--accent-strong);
}

.post-insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.post-insight-grid div,
.post-error-note {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(246, 241, 232, 0.58);
}

.post-insight-grid span {
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  font-size: 0.72rem;
}

.post-insight-grid p,
.post-error-note {
  margin: 8px 0 0;
  color: var(--text-soft);
  overflow-wrap: anywhere;
}

.post-insight-wide {
  grid-column: 1 / -1;
}

.priority-card-muted {
  background:
    radial-gradient(circle at top right, rgba(111, 123, 93, 0.11), transparent 45%),
    var(--surface-strong);
}

.hidden {
  display: none !important;
}

.panel-form-hidden {
  display: none !important;
}

body.inside-telegram {
  --bg: #efebea;
  --bg-soft: #f5f1ef;
  --surface: rgba(66, 50, 55, 0.86);
  --surface-strong: rgba(73, 55, 61, 0.9);
  --surface-muted: #ddd6d4;
  --line: rgba(63, 46, 52, 0.1);
  --line-strong: rgba(63, 46, 52, 0.16);
  --text: #fff6ef;
  --text-soft: rgba(255, 244, 236, 0.8);
  --text-faint: rgba(255, 244, 236, 0.56);
  --accent: #ff7d52;
  --accent-soft: rgba(255, 125, 82, 0.16);
  --accent-strong: #ffb08b;
  --olive: #98836f;
  --shadow-lg: 0 28px 60px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 18px 38px rgba(0, 0, 0, 0.22);
  --shadow-sm: 0 12px 24px rgba(0, 0, 0, 0.18);
  background:
    radial-gradient(circle at top left, rgba(255, 124, 74, 0.16), transparent 26%),
    radial-gradient(circle at top right, rgba(179, 72, 205, 0.1), transparent 32%),
    linear-gradient(180deg, #f5f1ef 0%, #efe8e6 48%, #e9e2df 100%);
  color: var(--text);
}

body.inside-telegram::before {
  top: -12rem;
  left: -9rem;
  opacity: 0.3;
  background: rgba(255, 121, 77, 0.16);
}

body.inside-telegram::after {
  right: -12rem;
  bottom: -10rem;
  opacity: 0.24;
  background: rgba(175, 74, 211, 0.12);
}

.inside-telegram .page-shell {
  padding-top: 12px;
}

.inside-telegram .hero-stage {
  grid-template-columns: 1fr;
}

.inside-telegram .hero-preview {
  display: none !important;
}

.inside-telegram .topbar,
.inside-telegram .panel,
.inside-telegram .new-analysis-inner,
.inside-telegram .control-form-block,
.inside-telegram .control-side,
.inside-telegram .spotlight-card,
.inside-telegram .content-block,
.inside-telegram .metric-card,
.inside-telegram .report-meta-card,
.inside-telegram .profile-mini-stats,
.inside-telegram .north-star-card,
.inside-telegram .idea-card,
.inside-telegram .signal-card,
.inside-telegram .table-intro,
.inside-telegram .status-card,
.inside-telegram .error-box,
.inside-telegram .summary-focus-card,
.inside-telegram .insight-hero-card,
.inside-telegram .mini-pattern-card,
.inside-telegram .generated-image-frame,
.inside-telegram .hero-signal-card,
.inside-telegram .hero-direct-card,
.inside-telegram .carousel-generator > div:first-child,
.inside-telegram .carousel-output,
.inside-telegram .week-plan-card,
.inside-telegram .post-card,
.inside-telegram .report-meta-item,
.inside-telegram .profile-mini-stat,
.inside-telegram .post-insight-grid div,
.inside-telegram .post-error-note {
  background:
    linear-gradient(180deg, rgba(62, 46, 49, 0.88), rgba(41, 31, 34, 0.92)),
    rgba(35, 27, 30, 0.9);
  border-color: rgba(255, 240, 230, 0.08);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.inside-telegram .topbar {
  position: static;
  background:
    linear-gradient(180deg, rgba(35, 27, 30, 0.88), rgba(29, 22, 25, 0.92)),
    rgba(35, 27, 30, 0.88);
  border-color: rgba(255, 240, 230, 0.08);
}

.inside-telegram .brand-lockup {
  padding: 10px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 240, 230, 0.06);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.inside-telegram .brand-name,
.inside-telegram .profile-name,
.inside-telegram .hero-content h1,
.inside-telegram .section-heading-block h2,
.inside-telegram .panel-header-stack h2,
.inside-telegram .north-star-card h3,
.inside-telegram .content-block h3,
.inside-telegram .idea-card h3,
.inside-telegram .metric-card strong,
.inside-telegram .report-meta-item strong,
.inside-telegram .profile-mini-stat strong {
  color: var(--text);
}

.inside-telegram .topbar-nav,
.inside-telegram .topbar-nav a,
.inside-telegram .hero-copy,
.inside-telegram .brand-subtitle,
.inside-telegram .helper-text,
.inside-telegram .helper-note,
.inside-telegram .section-heading-block p,
.inside-telegram .panel-header-stack p,
.inside-telegram .idea-section p,
.inside-telegram .carousel-copy-block p,
.inside-telegram .week-plan-card p,
.inside-telegram .post-card-media p,
.inside-telegram .post-insight-grid p,
.inside-telegram .post-error-note,
.inside-telegram .profile-bio,
.inside-telegram .report-meta-item span,
.inside-telegram .profile-mini-stat span,
.inside-telegram .metric-label,
.inside-telegram .signal-card > span,
.inside-telegram .idea-section span,
.inside-telegram .status-meta {
  color: var(--text-soft);
}

.inside-telegram .topbar-nav {
  scrollbar-width: none;
}

.inside-telegram .topbar-nav::-webkit-scrollbar {
  display: none;
}

.inside-telegram .topbar-nav a,
.inside-telegram .topbar-chip,
.inside-telegram .hero-pill,
.inside-telegram .report-pill,
.inside-telegram .badge,
.inside-telegram .report-pill-soft,
.inside-telegram .post-card-action,
.inside-telegram .mini-badge {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 240, 230, 0.08);
  color: var(--text-soft);
}

.inside-telegram .hero-signal-card {
  background:
    linear-gradient(180deg, rgba(54, 41, 45, 0.9), rgba(39, 30, 33, 0.94)),
    rgba(35, 27, 30, 0.9);
}

.inside-telegram .hero-signal-card span,
.inside-telegram .hero-direct-card span,
.inside-telegram .hero-proof-header span,
.inside-telegram .hero-proof-card span {
  color: var(--text-faint);
}

.inside-telegram .hero-signal-card strong,
.inside-telegram .hero-direct-card strong,
.inside-telegram .hero-proof-card strong {
  color: var(--text);
}

.inside-telegram .hero-direct-card,
.inside-telegram .hero-analysis-panel,
.inside-telegram .hero-proof-card {
  background:
    linear-gradient(180deg, rgba(56, 42, 46, 0.9), rgba(38, 29, 32, 0.96)),
    rgba(35, 27, 30, 0.9);
}

.inside-telegram .hero-workflow-rail {
  display: none;
}

.inside-telegram .hero-analysis-panel,
.inside-telegram .hero-proof-card,
.inside-telegram .hero-workflow-rail .workflow-card,
.inside-telegram .ig-insight-card {
  background:
    linear-gradient(180deg, rgba(62, 46, 49, 0.7), rgba(41, 31, 34, 0.84)),
    rgba(35, 27, 30, 0.82);
  border-color: rgba(255, 240, 230, 0.08);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.inside-telegram .report-pill-soft,
.inside-telegram .topbar-chip-soft {
  background: rgba(255, 125, 82, 0.12);
  color: #ffd6c2;
  border-color: rgba(255, 125, 82, 0.14);
}

.inside-telegram .topbar-nav a:hover,
.inside-telegram .topbar-nav a:focus-visible,
.inside-telegram .report-pill:hover,
.inside-telegram .hero-pill:hover,
.inside-telegram .topbar-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.inside-telegram #submit-button,
.inside-telegram #new-analysis-button,
.inside-telegram .action-button-accent,
.inside-telegram .carousel-generator button {
  background: linear-gradient(135deg, #b43ac9, #ea4d6f 52%, #ff8a3d);
  color: #fff8f2;
  box-shadow: 0 18px 34px rgba(178, 58, 169, 0.22);
}

.inside-telegram .action-button,
.inside-telegram .carousel-generator select,
.inside-telegram .carousel-generator input {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 240, 230, 0.08);
  color: var(--text);
}

.inside-telegram .input-row {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 240, 230, 0.08);
}

.inside-telegram .input-row input,
.inside-telegram .carousel-generator input,
.inside-telegram .carousel-generator select {
  color: var(--text);
}

.inside-telegram .input-row input::placeholder,
.inside-telegram .carousel-generator input::placeholder {
  color: rgba(247, 237, 229, 0.42);
}

.inside-telegram .content-block-dark {
  background:
    radial-gradient(circle at top right, rgba(234, 77, 111, 0.14), transparent 36%),
    linear-gradient(180deg, rgba(32, 24, 27, 0.98), rgba(20, 16, 18, 0.98));
  border-color: rgba(255, 255, 255, 0.04);
}

.inside-telegram .score-badge {
  background: rgba(255, 125, 82, 0.16);
  color: #ffd6c2;
}

.inside-telegram .studio-layout {
  gap: 18px;
}

.inside-telegram .results {
  gap: 16px;
}

.inside-telegram .control-deck,
.inside-telegram .report-hero,
.inside-telegram .direction-stage,
.inside-telegram .ideas-stage,
.inside-telegram .carousel-stage,
.inside-telegram .weekly-plan-stage,
.inside-telegram .posts-stage,
.inside-telegram .report-nav {
  border-radius: 30px;
}

.inside-telegram .control-deck,
.inside-telegram .report-hero {
  background:
    radial-gradient(circle at top right, rgba(255, 132, 73, 0.1), transparent 26%),
    linear-gradient(180deg, rgba(40, 30, 33, 0.92), rgba(28, 21, 24, 0.96));
}

.inside-telegram .control-deck,
.inside-telegram .report-hero,
.inside-telegram .direction-stage,
.inside-telegram .ideas-stage,
.inside-telegram .carousel-stage,
.inside-telegram .weekly-plan-stage,
.inside-telegram .posts-stage,
.inside-telegram .report-nav {
  padding: 20px;
}

.inside-telegram .control-deck-header,
.inside-telegram .section-heading-block {
  position: relative;
}

.inside-telegram .section-heading-block::after,
.inside-telegram .control-deck-header::after {
  content: "";
  display: block;
  width: 72px;
  height: 1px;
  margin-top: 14px;
  background: linear-gradient(90deg, rgba(255, 132, 73, 0.65), rgba(255, 132, 73, 0));
}

.inside-telegram .control-form-block,
.inside-telegram .executive-summary-card,
.inside-telegram .north-star-card,
.inside-telegram .content-block,
.inside-telegram .metric-card,
.inside-telegram .report-meta-card,
.inside-telegram .profile-mini-stats,
.inside-telegram .signal-card,
.inside-telegram .idea-card,
.inside-telegram .week-plan-card,
.inside-telegram .carousel-output,
.inside-telegram .carousel-generator > div:first-child,
.inside-telegram .table-intro,
.inside-telegram .status-card,
.inside-telegram .error-box {
  border-radius: 24px;
}

.inside-telegram .executive-summary-card {
  background:
    radial-gradient(circle at top right, rgba(234, 77, 111, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(55, 40, 44, 0.94), rgba(36, 28, 31, 0.98));
}

.inside-telegram .executive-summary-grid,
.inside-telegram .summary-grid,
.inside-telegram .spotlight-grid,
.inside-telegram .double-grid,
.inside-telegram .triple-grid,
.inside-telegram .ideas-grid {
  gap: 14px;
}

.inside-telegram .section-heading-block h2,
.inside-telegram .panel-header-stack h2 {
  max-width: 12ch;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.inside-telegram .section-heading-block p,
.inside-telegram .panel-header-stack p {
  max-width: none;
  margin-top: 8px;
  font-size: 0.92rem;
  line-height: 1.48;
}

.inside-telegram .executive-summary-head {
  gap: 12px;
}

.inside-telegram .inline-action-row {
  gap: 8px;
}

.inside-telegram .executive-summary-head .inline-action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
}

.inside-telegram .action-button {
  min-height: 44px;
  padding: 11px 12px;
  border-radius: 14px;
  font-size: 0.84rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.inside-telegram .summary-focus-card p,
.inside-telegram .mini-pattern-card p,
.inside-telegram .priority-step-copy,
.inside-telegram .formula-text,
.inside-telegram .spotlight-card p {
  font-size: 0.96rem;
  line-height: 1.42;
}

.inside-telegram .metric-card {
  min-height: 96px;
  justify-content: center;
}

.inside-telegram .metric-card strong {
  font-size: clamp(1.2rem, 4vw, 1.6rem);
}

.inside-telegram .profile-overview-card {
  gap: 14px;
  text-align: center;
}

.inside-telegram .profile-name {
  font-size: clamp(1.1rem, 3.5vw, 1.45rem);
  line-height: 1.04;
}

.inside-telegram .report-pill-row {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.inside-telegram .report-pill-row::-webkit-scrollbar {
  display: none;
}

.inside-telegram .report-pill {
  flex: 0 0 auto;
  white-space: nowrap;
}

.inside-telegram .summary-focus-card,
.inside-telegram .insight-hero-card,
.inside-telegram .spotlight-card,
.inside-telegram .metric-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.03);
}

.inside-telegram .summary-focus-card-accent,
.inside-telegram .insight-hero-card-warning,
.inside-telegram .spotlight-card-accent,
.inside-telegram .north-star-card,
.inside-telegram .priority-card-muted {
  background:
    radial-gradient(circle at top right, rgba(255, 132, 73, 0.16), transparent 40%),
    linear-gradient(180deg, rgba(58, 42, 46, 0.96), rgba(38, 28, 31, 0.98));
}

.inside-telegram .profile-overview-card {
  padding-bottom: 18px;
  border-bottom-color: rgba(255, 240, 230, 0.08);
}

.inside-telegram .profile-avatar {
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.22);
}

.inside-telegram .tag-list li,
.inside-telegram .signal-list li,
.inside-telegram .insight-list li {
  color: var(--text-soft);
}

.inside-telegram .tag-list li {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 240, 230, 0.08);
}

.inside-telegram .signal-list li::before,
.inside-telegram .insight-list li::before {
  background: rgba(255, 132, 73, 0.5);
}

.inside-telegram .input-row {
  padding: 10px;
  border-radius: 22px;
}

.inside-telegram .input-row:focus-within {
  border-color: rgba(255, 132, 73, 0.38);
  box-shadow: 0 0 0 4px rgba(255, 132, 73, 0.08);
}

.inside-telegram #submit-button,
.inside-telegram #new-analysis-button {
  min-height: 58px;
  border-radius: 18px;
}

.inside-telegram .status-card {
  background:
    linear-gradient(180deg, rgba(86, 113, 93, 0.18), rgba(57, 75, 61, 0.12)),
    rgba(255, 255, 255, 0.04);
}

.inside-telegram .error-box {
  background:
    linear-gradient(180deg, rgba(164, 58, 58, 0.18), rgba(103, 35, 35, 0.14)),
    rgba(255, 255, 255, 0.04);
  color: #ffd0c7;
}

.inside-telegram .new-analysis-inner {
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(36, 28, 31, 0.9), rgba(28, 22, 24, 0.96)),
    rgba(35, 27, 30, 0.9);
}

.inside-telegram .new-analysis-inner span {
  color: var(--text-soft);
}

.inside-telegram .report-pill-row {
  gap: 8px;
}

.inside-telegram .report-meta-item,
.inside-telegram .profile-mini-stat,
.inside-telegram .post-insight-grid div {
  background: rgba(255, 255, 255, 0.05);
}

.inside-telegram .idea-card,
.inside-telegram .week-plan-card,
.inside-telegram .post-card,
.inside-telegram .carousel-slide-card {
  overflow: hidden;
}

.inside-telegram .idea-card::before,
.inside-telegram .week-plan-card::before,
.inside-telegram .post-card::before {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 132, 73, 0.44), rgba(179, 72, 205, 0.24), transparent);
}

.inside-telegram .idea-card,
.inside-telegram .week-plan-card {
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.14);
}

.inside-telegram .idea-card h3,
.inside-telegram .week-plan-card h3,
.inside-telegram .north-star-card h3,
.inside-telegram .carousel-preview-card h3 {
  font-size: 1.08rem;
  line-height: 1.12;
}

.inside-telegram .week-plan-card strong,
.inside-telegram .carousel-slide-card strong,
.inside-telegram .post-card-title span {
  color: var(--text);
}

.inside-telegram .carousel-copy-block p,
.inside-telegram .carousel-slide-card p,
.inside-telegram .week-plan-card p,
.inside-telegram .idea-section p {
  font-size: 0.9rem;
  line-height: 1.46;
}

.inside-telegram .card-action-row,
.inside-telegram .idea-section,
.inside-telegram .post-card-media {
  border-top-color: rgba(255, 240, 230, 0.08);
}

.inside-telegram .carousel-generator {
  gap: 14px;
}

.inside-telegram .carousel-generator label {
  margin-bottom: 8px;
  font-size: 0.72rem;
}

.inside-telegram .carousel-generator select,
.inside-telegram .carousel-generator input,
.inside-telegram .carousel-generator button {
  min-height: 48px;
}

.inside-telegram .carousel-preview-card {
  background:
    linear-gradient(180deg, rgba(20, 16, 18, 0.18), rgba(20, 16, 18, 0.6)),
    linear-gradient(135deg, #b43ac9, #ea4d6f 48%, #ff8a3d);
  border-radius: 24px;
}

.inside-telegram .carousel-slide-card {
  border-color: rgba(255, 240, 230, 0.08);
  background: rgba(255, 255, 255, 0.05);
}

.inside-telegram .generated-image-frame img {
  filter: saturate(1.02) contrast(1.02);
}

.inside-telegram .post-card-toggle {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
}

.inside-telegram .post-card-toggle {
  gap: 10px;
  padding: 14px;
}

.inside-telegram .post-card-index {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-soft);
}

.inside-telegram .post-card-body {
  padding: 0 14px 14px;
}

.inside-telegram .post-card-title small {
  margin-top: 4px;
  color: var(--text-faint);
}

.inside-telegram .post-thumb {
  border-color: rgba(255, 255, 255, 0.08);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

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

@media (max-width: 1100px) {
  .topbar {
    border-radius: 28px;
    padding: 16px;
    flex-wrap: wrap;
  }

  .hero-stage,
  .control-deck-grid,
  .report-hero-grid,
  .direction-grid,
  .double-grid,
  .triple-grid,
  .ideas-grid,
  .carousel-generator {
    grid-template-columns: 1fr;
  }

  .executive-summary-head,
  .executive-summary-grid,
  .insight-strip {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    max-width: 12ch;
  }

  .hero-preview {
    padding: 0;
  }

  .workflow-rail {
    grid-template-columns: 1fr;
  }

  .hero-workflow-rail {
    grid-template-columns: 1fr;
  }

  .carousel-slides-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 821px) {
  body:not(.inside-telegram) .hero-stage {
    grid-template-columns: minmax(0, 0.96fr) minmax(380px, 1.04fr);
  }

  body:not(.inside-telegram) .hero-preview {
    display: grid !important;
  }

  body:not(.inside-telegram) .phone-shell {
    display: block !important;
  }
}

@media (min-width: 1101px) {

  .inside-telegram .hero-content {
    padding: 30px 28px 26px;
    border-radius: 34px;
    background:
      radial-gradient(circle at top left, rgba(255, 138, 97, 0.12), transparent 26%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(245, 239, 236, 0.86));
    border: 1px solid rgba(80, 60, 65, 0.08);
    box-shadow:
      0 30px 54px rgba(84, 57, 46, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.62);
  }

  .inside-telegram .eyebrow,
  .inside-telegram .hero-proof-header span,
  .inside-telegram .hero-signal-card span,
  .inside-telegram .hero-direct-card span,
  .inside-telegram .hero-proof-card span,
  .inside-telegram .hero-workflow-rail .workflow-card span {
    color: rgba(72, 54, 58, 0.56);
  }

  .inside-telegram .hero-content h1,
  .inside-telegram .hero-content h1 span,
  .inside-telegram .hero-signal-card strong,
  .inside-telegram .hero-direct-card strong,
  .inside-telegram .hero-proof-card strong,
  .inside-telegram .hero-workflow-rail .workflow-card strong {
    color: #2d2024;
  }

  .inside-telegram .hero-copy,
  .inside-telegram .hero-direct-card p,
  .inside-telegram .hero-proof-card span,
  .inside-telegram .hero-workflow-rail .workflow-card p {
    color: rgba(61, 45, 49, 0.78);
  }

  .inside-telegram .hero-signal-card,
  .inside-telegram .hero-proof-card,
  .inside-telegram .hero-workflow-rail .workflow-card,
  .inside-telegram .hero-analysis-panel,
  .inside-telegram .hero-direct-card {
    border-color: rgba(80, 60, 65, 0.08);
    box-shadow:
      0 18px 32px rgba(84, 57, 46, 0.06),
      inset 0 1px 0 rgba(255, 255, 255, 0.5);
  }

  .inside-telegram .hero-signal-card {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(248, 242, 239, 0.92));
  }

  .inside-telegram .hero-analysis-panel {
    background:
      radial-gradient(circle at top right, rgba(180, 74, 210, 0.08), transparent 32%),
      linear-gradient(180deg, rgba(249, 243, 240, 0.88), rgba(241, 233, 230, 0.94));
  }

  .inside-telegram .hero-proof-card,
  .inside-telegram .hero-workflow-rail .workflow-card {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(246, 238, 235, 0.9));
  }

  .inside-telegram .hero-pill {
    background: rgba(83, 63, 67, 0.08);
    border-color: rgba(83, 63, 67, 0.08);
    color: rgba(61, 45, 49, 0.78);
  }

  .inside-telegram .hero-direct-card {
    background:
      radial-gradient(circle at top right, rgba(255, 139, 93, 0.12), transparent 30%),
      linear-gradient(180deg, rgba(255, 248, 245, 0.88), rgba(244, 236, 233, 0.94));
  }

  .inside-telegram .hero-stage {
    grid-template-columns: minmax(0, 0.96fr) minmax(380px, 1.04fr);
    align-items: start;
  }

  .inside-telegram .hero-preview {
    display: grid !important;
  }

  .inside-telegram .phone-shell {
    display: block !important;
    width: min(100%, 398px);
    padding: 14px;
    border-radius: 36px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
      linear-gradient(135deg, rgba(225, 48, 108, 0.12), rgba(252, 175, 69, 0.1));
    border: 1px solid rgba(255, 240, 230, 0.08);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.24);
  }

  .inside-telegram .phone-notch {
    display: block;
  }

  .inside-telegram .phone-screen {
    display: block;
    min-height: 568px;
    padding: 18px 18px 20px;
    border-radius: 28px;
    background:
      radial-gradient(circle at top right, rgba(131, 58, 180, 0.18), transparent 30%),
      radial-gradient(circle at top left, rgba(247, 119, 55, 0.12), transparent 28%),
      linear-gradient(180deg, #1d1715 0%, #2a221f 100%);
    border: 0;
    box-shadow: none;
  }

  .inside-telegram .phone-status-row,
  .inside-telegram .ig-bottom-bar {
    display: flex;
  }

  .inside-telegram .ig-profile-top {
    align-items: center;
    margin-top: 28px;
  }

  .inside-telegram .ig-profile-avatar-ring {
    width: 72px;
    height: 72px;
  }

  .inside-telegram .ig-profile-avatar {
    width: 64px;
    height: 64px;
    border-color: #201916;
  }

  .inside-telegram .ig-profile-meta strong {
    font-size: 1.1rem;
  }

  .inside-telegram .ig-story-row {
    margin-top: 22px;
    gap: 12px;
  }

  .inside-telegram .ig-insight-card {
    margin-top: 22px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.05);
  }

  .inside-telegram .ig-post-grid {
    margin-top: 16px;
    gap: 9px;
  }

  .inside-telegram .ig-post-tile {
    border-radius: 16px;
  }
}

@media (max-width: 820px) {
  .page-shell {
    width: min(100% - 20px, 1200px);
    padding-bottom: 48px;
  }

  .topbar {
    position: static;
    gap: 14px;
    border-radius: 24px;
  }

  .topbar-nav,
  .topbar-chips {
    width: 100%;
  }

  .hero-stage {
    padding-top: 16px;
  }

  .hero-content h1 {
    max-width: 12ch;
    font-size: clamp(2.1rem, 9vw, 3.35rem);
  }

  .spotlight-grid {
    grid-template-columns: 1fr;
  }

  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }

  .report-meta-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-meta-item:nth-child(3) {
    grid-column: 1 / -1;
  }

  .profile-mini-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .metric-card {
    min-height: 92px;
    padding: 12px;
    border-radius: 18px;
  }

  .metric-label {
    font-size: 0.62rem;
    letter-spacing: 0.08em;
  }

  .metric-card strong {
    font-size: clamp(1.08rem, 4vw, 1.38rem);
  }

  #format-split {
    font-size: clamp(1rem, 3.6vw, 1.18rem);
  }

  .report-meta-item,
  .profile-mini-stat {
    min-height: 82px;
    padding: 12px;
    border-radius: 18px;
  }

  .report-meta-item {
    align-items: flex-start;
  }

  .profile-mini-stat {
    gap: 8px;
    padding: 12px 10px;
  }

  .executive-summary-head {
    flex-direction: column;
  }

  .input-row,
  .new-analysis-inner,
  .control-deck-header {
    flex-direction: column;
    align-items: stretch;
  }

  #submit-button,
  #new-analysis-button {
    width: 100%;
  }

  .hero-preview {
    grid-template-columns: 1fr;
  }

  .new-analysis-bar {
    top: 18px;
  }

  .profile-name {
    font-size: clamp(1.15rem, 5vw, 1.55rem);
  }

  .section-heading-block h2,
  .panel-header-stack h2 {
    font-size: clamp(1.25rem, 5.5vw, 1.75rem);
  }

  .section-heading-row {
    flex-direction: column;
    align-items: stretch;
  }

  .content-block-toggle-row {
    flex-direction: column;
    align-items: stretch;
  }

  .section-toggle-button {
    width: 100%;
  }

  .post-card-toggle {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .post-card-action {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .post-insight-grid {
    grid-template-columns: 1fr;
  }

  .inside-telegram .page-shell {
    width: min(100% - 14px, 1200px);
    padding-top: 8px;
    padding-bottom: 26px;
  }

  .inside-telegram .topbar {
    gap: 12px;
    padding: 14px;
    border-radius: 28px;
    background:
      linear-gradient(180deg, rgba(36, 28, 31, 0.96), rgba(24, 19, 22, 0.98)),
      rgba(35, 27, 30, 0.92);
  }

  .inside-telegram .brand-lockup {
    gap: 12px;
  }

  .inside-telegram .brand-mark-image {
    width: 50px;
    height: 50px;
    border-radius: 16px;
  }

  .inside-telegram .topbar-nav {
    width: calc(100% + 6px);
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 6px 2px 0;
    margin-right: -6px;
  }

  .inside-telegram .topbar-nav a {
    flex: 0 0 auto;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(47, 42, 35, 0.08);
    color: var(--text-soft);
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  }

  .inside-telegram .hero-stage {
    gap: 18px;
    padding: 16px 0 8px;
  }

  .inside-telegram .hero-content {
    width: 100%;
    padding: 0 4px 8px;
  }

  .inside-telegram .hero-content h1 {
    max-width: 9.6ch;
    margin-top: 8px;
    font-size: clamp(2.05rem, 10vw, 2.8rem);
    line-height: 0.94;
    letter-spacing: -0.05em;
  }

  .inside-telegram .hero-content h1 span {
    margin-top: 4px;
    font-size: 0.72em;
    letter-spacing: -0.04em;
  }

  .inside-telegram .hero-copy {
    max-width: none;
    margin-top: 12px;
    font-size: 1rem;
    line-height: 1.54;
  }

  .inside-telegram .hero-signal-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
  }

  .inside-telegram .hero-signal-card {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 8px;
    padding: 14px 15px;
    border-radius: 18px;
  }

  .inside-telegram .hero-signal-card strong {
    margin-top: 0;
    font-size: 0.92rem;
    text-align: left;
  }

  .inside-telegram .hero-analysis-panel {
    margin-top: 16px;
    padding: 16px;
    border-radius: 24px;
  }

  .inside-telegram .hero-pill {
    padding: 8px 11px;
    font-size: 0.74rem;
  }

  .inside-telegram .hero-direct-card {
    margin-top: 14px;
    padding: 16px;
    border-radius: 20px;
  }

  .inside-telegram .hero-direct-card strong {
    font-size: 1rem;
    line-height: 1.22;
  }

  .inside-telegram .hero-direct-card p {
    font-size: 0.86rem;
    line-height: 1.5;
  }

  .inside-telegram .control-deck {
    margin-top: 6px;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 16px, 1200px);
  }

  .topbar,
  .control-deck,
  .report-hero,
  .direction-stage,
  .ideas-stage,
  .carousel-stage,
  .weekly-plan-stage,
  .posts-stage,
  .scale-stage,
  .report-nav {
    border-radius: 24px;
  }

  .hero-pill-row,
  .report-pill-row {
    gap: 10px;
  }

  .hero-mini-proof {
    grid-template-columns: 1fr;
  }

  .topbar-nav a,
  .topbar-chip,
  .hero-pill,
  .report-pill,
  .badge,
  .action-button {
    width: 100%;
    justify-content: center;
  }

  .profile-overview-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-overview-copy {
    width: 100%;
    max-width: none;
  }

  .profile-bio,
  .profile-name {
    max-width: none;
  }

  .summary-grid {
    gap: 10px;
  }

  .metric-card {
    min-height: 84px;
    padding: 10px;
  }

  .metric-card strong {
    margin-top: 6px;
    font-size: clamp(1rem, 5vw, 1.24rem);
  }

  #format-split {
    font-size: clamp(0.94rem, 4.4vw, 1.08rem);
  }

  .report-meta-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-meta-item:nth-child(3) {
    grid-column: 1 / -1;
  }

  .profile-mini-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .phone-shell {
    width: 100%;
    padding: 12px;
    border-radius: 30px;
  }

  .phone-notch {
    top: 18px;
    width: 108px;
    height: 24px;
  }

  .phone-screen {
    min-height: 560px;
    padding: 18px 16px 22px;
    border-radius: 24px;
  }

  .ig-profile-top {
    align-items: flex-start;
  }

  .ig-insight-card strong {
    font-size: 1.08rem;
  }

  .ig-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ig-post-tile-wide {
    grid-column: span 2;
  }

  .post-card-toggle {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .post-card-index,
  .score-badge,
  .post-card-action {
    justify-self: start;
  }

  .post-card-title span,
  .post-card-title small {
    white-space: normal;
  }

  .week-plan-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .post-card-media {
    grid-template-columns: 1fr;
  }

  .post-thumb {
    width: 100%;
    height: auto;
    max-height: 280px;
  }

  .carousel-preview-card {
    min-height: 280px;
  }

  .inside-telegram .page-shell {
    width: min(100% - 10px, 1200px);
    padding-bottom: 18px;
  }

  .inside-telegram .control-deck,
  .inside-telegram .report-hero,
  .inside-telegram .direction-stage,
  .inside-telegram .ideas-stage,
  .inside-telegram .carousel-stage,
  .inside-telegram .weekly-plan-stage,
  .inside-telegram .posts-stage,
  .inside-telegram .report-nav {
    border-radius: 26px;
  }

  .inside-telegram .topbar {
    padding: 12px;
    border-radius: 24px;
  }

  .inside-telegram .brand-name {
    font-size: 0.92rem;
  }

  .inside-telegram .brand-subtitle {
    font-size: 0.8rem;
  }

  .inside-telegram .topbar-nav {
    width: calc(100% + 2px);
    gap: 7px;
    padding: 2px 2px 0 0;
    margin-right: -2px;
  }

  .inside-telegram .topbar-nav a,
  .inside-telegram .topbar-chip,
  .inside-telegram .hero-pill,
  .inside-telegram .report-pill,
  .inside-telegram .badge,
  .inside-telegram .action-button {
    width: auto;
    justify-content: center;
  }

  .inside-telegram .topbar-nav a {
    padding: 9px 13px;
    font-size: 0.84rem;
  }

  .inside-telegram .eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
  }

  .inside-telegram .hero-content h1 {
    max-width: 9.2ch;
    font-size: clamp(1.85rem, 12vw, 2.4rem);
    line-height: 0.92;
  }

  .inside-telegram .hero-content h1 span {
    font-size: 0.72em;
  }

  .inside-telegram .hero-copy {
    font-size: 0.95rem;
    line-height: 1.52;
  }

  .inside-telegram .hero-signal-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .inside-telegram .executive-summary-head .inline-action-row {
    grid-template-columns: 1fr;
  }

  .inside-telegram .hero-signal-card {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 13px 14px;
  }

  .inside-telegram .hero-signal-card strong {
    text-align: left;
    font-size: 0.9rem;
  }

  .inside-telegram .hero-analysis-panel {
    padding: 14px;
    border-radius: 22px;
  }

  .inside-telegram .hero-mini-proof {
    gap: 8px;
  }

  .inside-telegram .hero-proof-card {
    padding: 12px 14px;
    border-radius: 18px;
  }

  .inside-telegram .hero-proof-card strong {
    font-size: 0.92rem;
  }

  .inside-telegram .hero-proof-card span {
    font-size: 0.78rem;
  }

  .inside-telegram .control-form-block,
  .inside-telegram .executive-summary-card,
  .inside-telegram .north-star-card,
  .inside-telegram .content-block,
  .inside-telegram .metric-card,
  .inside-telegram .report-meta-card,
  .inside-telegram .profile-mini-stats,
  .inside-telegram .signal-card,
  .inside-telegram .idea-card,
  .inside-telegram .week-plan-card,
  .inside-telegram .carousel-output,
  .inside-telegram .carousel-generator > div:first-child,
  .inside-telegram .table-intro,
  .inside-telegram .status-card,
  .inside-telegram .error-box {
    border-radius: 20px;
  }

  .inside-telegram .input-row {
    padding: 8px;
    border-radius: 18px;
  }

  .inside-telegram #submit-button,
  .inside-telegram #new-analysis-button {
    min-height: 52px;
  }

  .inside-telegram .executive-summary-grid,
  .inside-telegram .summary-grid,
  .inside-telegram .spotlight-grid,
  .inside-telegram .double-grid,
  .inside-telegram .triple-grid,
  .inside-telegram .ideas-grid {
    gap: 10px;
  }

  .inside-telegram .section-heading-block::after,
  .inside-telegram .control-deck-header::after {
    width: 56px;
    margin-top: 12px;
  }

  .inside-telegram .control-deck,
  .inside-telegram .report-hero,
  .inside-telegram .direction-stage,
  .inside-telegram .ideas-stage,
  .inside-telegram .carousel-stage,
  .inside-telegram .weekly-plan-stage,
  .inside-telegram .posts-stage,
  .inside-telegram .report-nav {
    padding: 16px;
  }

  .inside-telegram .hero-pill-row {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .inside-telegram .hero-pill {
    width: 100%;
    min-height: 42px;
    padding: 8px 10px;
    text-align: center;
    line-height: 1.25;
  }

  .inside-telegram .hero-direct-card {
    padding: 14px;
    border-radius: 18px;
  }

  .inside-telegram .hero-direct-card strong {
    font-size: 0.95rem;
  }

  .inside-telegram .hero-direct-card p {
    font-size: 0.82rem;
  }
}

body.inside-telegram {
  --bg: #f6f1e8;
  --bg-soft: #fbf8f2;
  --surface: rgba(255, 252, 247, 0.84);
  --surface-strong: #fffdf9;
  --surface-muted: #f0e8dd;
  --line: rgba(47, 42, 35, 0.1);
  --line-strong: rgba(47, 42, 35, 0.16);
  --text: #1e1b18;
  --text-soft: rgba(30, 27, 24, 0.72);
  --text-faint: rgba(30, 27, 24, 0.5);
  --accent: #d96d43;
  --accent-soft: rgba(217, 109, 67, 0.14);
  --accent-strong: #b65632;
  --olive: #6f7b5d;
  --shadow-lg: 0 28px 60px rgba(53, 39, 24, 0.08);
  --shadow-md: 0 18px 38px rgba(53, 39, 24, 0.06);
  --shadow-sm: 0 12px 24px rgba(53, 39, 24, 0.05);
  background:
    linear-gradient(135deg, rgba(225, 48, 108, 0.12), transparent 28%),
    linear-gradient(225deg, rgba(252, 175, 69, 0.14), transparent 28%),
    linear-gradient(180deg, #fffaf7 0%, #f7f3ee 44%, #fff 100%);
  color: var(--text);
}

body.inside-telegram::before {
  top: -10rem;
  left: -8rem;
  opacity: 0.45;
  background: rgba(217, 109, 67, 0.12);
}

body.inside-telegram::after {
  right: -10rem;
  bottom: -12rem;
  opacity: 0.45;
  background: rgba(111, 123, 93, 0.14);
}

.inside-telegram .page-shell {
  width: min(1200px, calc(100% - 20px));
  padding-top: max(12px, env(safe-area-inset-top));
  padding-bottom: calc(34px + env(safe-area-inset-bottom));
}

.inside-telegram .topbar,
.inside-telegram .panel,
.inside-telegram .new-analysis-inner,
.inside-telegram .control-form-block,
.inside-telegram .control-side,
.inside-telegram .spotlight-card,
.inside-telegram .content-block,
.inside-telegram .metric-card,
.inside-telegram .report-meta-card,
.inside-telegram .profile-mini-stats,
.inside-telegram .north-star-card,
.inside-telegram .idea-card,
.inside-telegram .signal-card,
.inside-telegram .table-intro,
.inside-telegram .status-card,
.inside-telegram .error-box,
.inside-telegram .summary-focus-card,
.inside-telegram .insight-hero-card,
.inside-telegram .mini-pattern-card,
.inside-telegram .generated-image-frame,
.inside-telegram .hero-signal-card,
.inside-telegram .hero-direct-card,
.inside-telegram .carousel-generator > div:first-child,
.inside-telegram .carousel-output,
.inside-telegram .week-plan-card,
.inside-telegram .post-card,
.inside-telegram .report-meta-item,
.inside-telegram .profile-mini-stat,
.inside-telegram .post-insight-grid div,
.inside-telegram .post-error-note,
.inside-telegram .carousel-slide-card {
  background: var(--surface-strong);
  border-color: var(--line);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    var(--shadow-sm);
}

.inside-telegram .topbar {
  position: static;
  background: rgba(255, 252, 247, 0.72);
  border-color: var(--line);
}

.inside-telegram .brand-lockup {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.inside-telegram .brand-name,
.inside-telegram .profile-name,
.inside-telegram .hero-content h1,
.inside-telegram .hero-content h1 span,
.inside-telegram .section-heading-block h2,
.inside-telegram .panel-header-stack h2,
.inside-telegram .north-star-card h3,
.inside-telegram .content-block h3,
.inside-telegram .idea-card h3,
.inside-telegram .metric-card strong,
.inside-telegram .report-meta-item strong,
.inside-telegram .profile-mini-stat strong,
.inside-telegram .summary-focus-card p,
.inside-telegram .mini-pattern-card p,
.inside-telegram .priority-step-copy,
.inside-telegram .formula-text,
.inside-telegram .spotlight-card p,
.inside-telegram .week-plan-card strong,
.inside-telegram .carousel-slide-card strong,
.inside-telegram .post-card-title span,
.inside-telegram .post-card-media a,
.inside-telegram .post-card-link {
  color: var(--text);
}

.inside-telegram .topbar-nav,
.inside-telegram .topbar-nav a,
.inside-telegram .hero-copy,
.inside-telegram .brand-subtitle,
.inside-telegram .helper-text,
.inside-telegram .helper-note,
.inside-telegram .section-heading-block p,
.inside-telegram .panel-header-stack p,
.inside-telegram .idea-section p,
.inside-telegram .carousel-copy-block p,
.inside-telegram .week-plan-card p,
.inside-telegram .post-card-media p,
.inside-telegram .post-insight-grid p,
.inside-telegram .post-error-note,
.inside-telegram .profile-bio,
.inside-telegram .report-meta-item span,
.inside-telegram .profile-mini-stat span,
.inside-telegram .metric-label,
.inside-telegram .signal-card > span,
.inside-telegram .idea-section span,
.inside-telegram .status-meta,
.inside-telegram .topbar-chip,
.inside-telegram .hero-pill,
.inside-telegram .report-pill,
.inside-telegram .badge,
.inside-telegram .report-pill-soft,
.inside-telegram .mini-badge,
.inside-telegram .post-card-action,
.inside-telegram .tag-list li,
.inside-telegram .signal-list li,
.inside-telegram .insight-list li {
  color: var(--text-soft);
}

.inside-telegram .topbar-nav a,
.inside-telegram .topbar-chip,
.inside-telegram .hero-pill,
.inside-telegram .report-pill,
.inside-telegram .badge,
.inside-telegram .report-pill-soft,
.inside-telegram .post-card-action,
.inside-telegram .mini-badge {
  background: rgba(255, 255, 255, 0.68);
  border-color: var(--line);
  box-shadow: none;
}

.inside-telegram .report-pill-soft,
.inside-telegram .topbar-chip-soft {
  background: var(--accent-soft);
  color: var(--accent-strong);
  border-color: rgba(217, 109, 67, 0.12);
}

.inside-telegram .topbar-nav a:hover,
.inside-telegram .topbar-nav a:focus-visible,
.inside-telegram .report-pill:hover,
.inside-telegram .hero-pill:hover,
.inside-telegram .topbar-chip:hover {
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
}

.inside-telegram .control-deck,
.inside-telegram .report-hero,
.inside-telegram .direction-stage,
.inside-telegram .ideas-stage,
.inside-telegram .carousel-stage,
.inside-telegram .weekly-plan-stage,
.inside-telegram .posts-stage,
.inside-telegram .report-nav {
  padding: clamp(20px, 4vw, 32px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top left, rgba(255, 198, 166, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(225, 48, 108, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 253, 250, 0.96), rgba(255, 249, 243, 0.92));
}

.inside-telegram .control-deck-header::after,
.inside-telegram .section-heading-block::after {
  width: 72px;
  margin-top: 14px;
  background: linear-gradient(90deg, rgba(217, 109, 67, 0.55), rgba(217, 109, 67, 0));
}

.inside-telegram .hero-stage {
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 16px 0 10px;
}

.inside-telegram .hero-content {
  width: min(100%, 760px);
  justify-self: center;
  padding: 0 4px 12px;
  margin-top: 4px;
  background: none;
  border: 0;
  box-shadow: none;
}

.inside-telegram .hero-content h1 {
  max-width: 13ch;
}

.inside-telegram .hero-copy {
  max-width: 42ch;
}

.inside-telegram .hero-preview {
  display: grid !important;
  width: 100%;
  justify-self: center;
}

.inside-telegram .hero-signal-card,
.inside-telegram .hero-proof-card,
.inside-telegram .hero-workflow-rail .workflow-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(248, 242, 239, 0.92));
  border-color: rgba(80, 60, 65, 0.08);
  box-shadow:
    0 18px 32px rgba(84, 57, 46, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.inside-telegram .hero-analysis-panel {
  background:
    radial-gradient(circle at top right, rgba(180, 74, 210, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(249, 243, 240, 0.88), rgba(241, 233, 230, 0.94));
  border-color: rgba(80, 60, 65, 0.08);
  box-shadow:
    0 18px 32px rgba(84, 57, 46, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.inside-telegram .hero-direct-card {
  background:
    radial-gradient(circle at top right, rgba(255, 139, 93, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(255, 248, 245, 0.88), rgba(244, 236, 233, 0.94));
  border-color: rgba(80, 60, 65, 0.08);
}

.inside-telegram .hero-signal-card span,
.inside-telegram .hero-direct-card span,
.inside-telegram .hero-proof-header span,
.inside-telegram .hero-proof-card span,
.inside-telegram .eyebrow {
  color: rgba(72, 54, 58, 0.56);
}

.inside-telegram .hero-signal-card strong,
.inside-telegram .hero-direct-card strong,
.inside-telegram .hero-proof-card strong {
  color: #2d2024;
}

.inside-telegram .hero-direct-card p,
.inside-telegram .hero-proof-card span {
  color: rgba(61, 45, 49, 0.78);
}

.inside-telegram .phone-shell {
  display: block !important;
  width: min(100%, 398px);
  padding: 14px;
  border-radius: 36px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.42)),
    linear-gradient(135deg, rgba(225, 48, 108, 0.16), rgba(252, 175, 69, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 36px 70px rgba(61, 31, 22, 0.14);
}

.inside-telegram .phone-notch {
  display: block;
}

.inside-telegram .phone-screen {
  display: block;
  min-height: 568px;
  padding: 18px 18px 20px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(131, 58, 180, 0.14), transparent 30%),
    radial-gradient(circle at top left, rgba(247, 119, 55, 0.12), transparent 28%),
    linear-gradient(180deg, #3a2f2a 0%, #4a3d37 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.inside-telegram .phone-status-row,
.inside-telegram .ig-bottom-bar {
  display: flex;
}

.inside-telegram .ig-insight-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 14px 24px rgba(24, 18, 16, 0.12);
}

.inside-telegram .action-button,
.inside-telegram .carousel-generator select,
.inside-telegram .carousel-generator input,
.inside-telegram .post-generator-controls input,
.inside-telegram .input-row {
  background: rgba(255, 255, 255, 0.86);
  border-color: var(--line);
  color: var(--text);
}

.inside-telegram .input-row input,
.inside-telegram .carousel-generator input,
.inside-telegram .carousel-generator select,
.inside-telegram .post-generator-controls input {
  color: var(--text);
}

.inside-telegram .input-row input::placeholder,
.inside-telegram .carousel-generator input::placeholder,
.inside-telegram .post-generator-controls input::placeholder {
  color: var(--text-faint);
}

.inside-telegram #submit-button,
.inside-telegram #new-analysis-button {
  background: linear-gradient(145deg, #29211c, #43342c);
  color: #fff9f2;
  box-shadow: 0 14px 30px rgba(41, 33, 28, 0.18);
}

.inside-telegram .action-button-accent,
.inside-telegram .carousel-generator button {
  background: linear-gradient(135deg, #833ab4, #e1306c 48%, #f77737);
  color: #fff;
  border-color: transparent;
}

.inside-telegram .status-card {
  background: rgba(111, 123, 93, 0.08);
}

.inside-telegram .error-box {
  background: rgba(191, 63, 49, 0.08);
  color: #862b21;
}

.inside-telegram .new-analysis-inner {
  background: rgba(255, 252, 247, 0.82);
  border-color: var(--line);
}

.inside-telegram .report-meta-item,
.inside-telegram .profile-mini-stat,
.inside-telegram .post-insight-grid div,
.inside-telegram .carousel-slide-card,
.inside-telegram .post-error-note {
  background: rgba(246, 241, 232, 0.72);
}

.inside-telegram .score-badge {
  background: rgba(217, 109, 67, 0.12);
  color: var(--accent-strong);
}

.inside-telegram .tag-list li {
  background: rgba(255, 255, 255, 0.62);
  border-color: var(--line);
}

.inside-telegram .signal-list li::before,
.inside-telegram .insight-list li::before {
  background: rgba(217, 109, 67, 0.42);
}

.inside-telegram .report-pill-row,
.inside-telegram .topbar-nav {
  scrollbar-width: none;
}

.inside-telegram .report-pill-row::-webkit-scrollbar,
.inside-telegram .topbar-nav::-webkit-scrollbar {
  display: none;
}

@media (max-width: 820px) {
  .topbar-nav,
  .report-pill-row {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .topbar-nav::-webkit-scrollbar,
  .report-pill-row::-webkit-scrollbar {
    display: none;
  }

  .topbar-nav a,
  .report-pill {
    flex: 0 0 auto;
  }

  .executive-summary-head .inline-action-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .card-action-row .action-button {
    flex: 1 1 calc(50% - 10px);
  }

  .profile-avatar {
    width: 84px;
    height: 84px;
  }

  .inside-telegram .hero-preview {
    order: 2;
  }

  .inside-telegram .phone-shell {
    width: min(100%, 360px);
  }
}

@media (max-width: 560px) {
  .topbar-nav a,
  .hero-pill,
  .report-pill,
  .badge {
    width: auto;
  }

  .hero-pill-row,
  .report-pill-row {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .hero-pill-row::-webkit-scrollbar,
  .report-pill-row::-webkit-scrollbar {
    display: none;
  }

  .hero-pill,
  .report-pill {
    flex: 0 0 auto;
    justify-content: center;
  }

  .action-button {
    width: 100%;
  }

  .executive-summary-head .inline-action-row,
  .card-action-row {
    grid-template-columns: 1fr;
  }

  .card-action-row .action-button {
    flex-basis: 100%;
  }

  .report-meta-item,
  .profile-mini-stat {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .report-meta-item strong,
  .profile-mini-stat strong {
    text-align: left;
  }

  .inside-telegram .page-shell {
    width: min(100%, calc(100% - 12px));
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }

  .inside-telegram .topbar {
    padding: 12px;
    border-radius: 24px;
  }

  .inside-telegram .topbar-nav {
    gap: 8px;
    overflow-x: auto;
  }

  .inside-telegram .topbar-nav a {
    padding: 9px 13px;
  }

  .inside-telegram .hero-content h1 {
    max-width: 9.6ch;
    font-size: clamp(1.95rem, 11vw, 2.55rem);
  }

  .inside-telegram .hero-copy {
    max-width: none;
    font-size: 0.95rem;
  }

  .inside-telegram .hero-signal-row {
    grid-template-columns: 1fr;
  }

  .inside-telegram .hero-pill-row {
    display: flex;
    grid-template-columns: none;
  }

  .inside-telegram .control-deck,
  .inside-telegram .report-hero,
  .inside-telegram .direction-stage,
  .inside-telegram .ideas-stage,
  .inside-telegram .carousel-stage,
  .inside-telegram .weekly-plan-stage,
  .inside-telegram .posts-stage,
  .inside-telegram .report-nav {
    padding: 16px;
    border-radius: 24px;
  }

  .inside-telegram .control-form-block,
  .inside-telegram .executive-summary-card,
  .inside-telegram .north-star-card,
  .inside-telegram .content-block,
  .inside-telegram .metric-card,
  .inside-telegram .report-meta-card,
  .inside-telegram .profile-mini-stats,
  .inside-telegram .signal-card,
  .inside-telegram .idea-card,
  .inside-telegram .week-plan-card,
  .inside-telegram .carousel-output,
  .inside-telegram .carousel-generator > div:first-child,
  .inside-telegram .table-intro,
  .inside-telegram .status-card,
  .inside-telegram .error-box {
    border-radius: 20px;
  }

  .inside-telegram .phone-shell {
    width: min(100%, 340px);
    padding: 12px;
    border-radius: 30px;
  }

  .inside-telegram .phone-screen {
    min-height: 540px;
    padding: 18px 16px 22px;
    border-radius: 24px;
  }

.inside-telegram .ig-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

:root {
  --bg: #06070d;
  --bg-soft: #0b1020;
  --surface: rgba(10, 14, 28, 0.7);
  --surface-strong: rgba(15, 20, 38, 0.9);
  --surface-muted: rgba(102, 124, 187, 0.14);
  --line: rgba(165, 184, 255, 0.14);
  --line-strong: rgba(193, 209, 255, 0.22);
  --text: #f5f7ff;
  --text-soft: rgba(226, 233, 255, 0.78);
  --text-faint: rgba(198, 210, 255, 0.5);
  --accent: #8b5cf6;
  --accent-soft: rgba(139, 92, 246, 0.18);
  --accent-strong: #5fb7ff;
  --olive: #68e2ff;
  --shadow-lg: 0 40px 120px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 24px 80px rgba(0, 0, 0, 0.34);
  --shadow-sm: 0 18px 36px rgba(0, 0, 0, 0.28);
  --font-display: "Sora", sans-serif;
}

body {
  color: var(--text);
  background:
    radial-gradient(circle at 20% 20%, rgba(139, 92, 246, 0.22) 0, transparent 24%),
    radial-gradient(circle at 80% 16%, rgba(95, 183, 255, 0.2) 0, transparent 22%),
    radial-gradient(circle at 50% 110%, rgba(236, 72, 153, 0.14) 0, transparent 26%),
    linear-gradient(180deg, #05060c 0%, #090c17 36%, #070913 100%);
  background-attachment: fixed;
}

body::before,
body::after {
  opacity: 0.8;
  filter: blur(90px);
}

body::before {
  top: -12rem;
  left: -10rem;
  background: rgba(126, 87, 255, 0.2);
}

body::after {
  right: -10rem;
  bottom: -8rem;
  background: rgba(72, 170, 255, 0.15);
}

::selection {
  background: rgba(139, 92, 246, 0.3);
}

body::after,
body::before,
.hero-ambient,
.hero-stage::before,
.hero-stage::after,
.page-shell::before {
  pointer-events: none;
}

.page-shell {
  width: min(1360px, calc(100% - 28px));
  padding: 18px 0 96px;
}

.page-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: radial-gradient(circle at center, black 20%, transparent 82%);
  opacity: 0.28;
}

.topbar,
.panel,
.new-analysis-inner,
.hero-analysis-panel,
.dashboard-frame,
.landing-section,
.phone-shell,
.final-cta-card,
.signal-stage-card,
.feature-orbit-card,
.dashboard-stage-card,
.proof-quote-card,
.pricing-card,
.status-card,
.signal-card,
.metric-card,
.summary-focus-card,
.insight-hero-card,
.spotlight-card,
.content-block,
.north-star-card,
.mini-pattern-card,
.idea-card,
.week-plan-card,
.post-card,
.report-meta-card,
.profile-overview-card,
.executive-summary-card {
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.topbar {
  gap: 18px;
  padding: 14px 18px;
  top: 14px;
  border: 1px solid rgba(174, 195, 255, 0.14);
  border-radius: 999px;
  background: rgba(8, 12, 24, 0.64);
  box-shadow:
    0 14px 50px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.brand-mark-image {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  box-shadow:
    0 14px 32px rgba(225, 48, 108, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1rem;
  color: #ffffff;
}

.brand-subtitle,
.helper-text,
.table-intro p,
.signal-list,
.metric-label,
.report-meta-item span,
.profile-mini-stat span,
.idea-topline,
.idea-section span,
.status-meta {
  color: var(--text-faint);
}

.topbar-nav {
  gap: 8px;
  margin-left: auto;
}

.topbar-nav a {
  color: var(--text-soft);
  border: 1px solid transparent;
}

.topbar-nav a:hover,
.topbar-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(174, 195, 255, 0.14);
  color: #fff;
}

.topbar-cta,
.hero-button,
.action-button,
#submit-button,
#new-analysis-button,
.performance-post-link,
.post-card-action,
.week-plan-day-button {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.topbar-cta,
.hero-button,
#submit-button,
#new-analysis-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(155, 179, 255, 0.16);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(139, 92, 246, 0.34), rgba(95, 183, 255, 0.2)),
    rgba(11, 16, 32, 0.84);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 10px 30px rgba(49, 34, 107, 0.35);
}

.topbar-cta:hover,
.hero-button:hover,
.action-button:hover,
#submit-button:hover,
#new-analysis-button:hover,
.performance-post-link:hover,
.post-card-action:hover,
.week-plan-day-button:hover {
  transform: translateY(-1px);
}

.hero-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(360px, 0.92fr);
  gap: 28px;
  align-items: start;
  padding: 48px 0 16px;
}

.hero-stage::before,
.hero-stage::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.7;
  z-index: -1;
}

.hero-stage::before {
  width: 18rem;
  height: 18rem;
  top: 5%;
  left: 26%;
  background: rgba(139, 92, 246, 0.18);
}

.hero-stage::after {
  width: 20rem;
  height: 20rem;
  right: 0;
  top: 20%;
  background: rgba(95, 183, 255, 0.14);
}

.hero-ambient {
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  filter: blur(72px);
  opacity: 0.7;
}

.hero-ambient-violet {
  width: 18rem;
  height: 18rem;
  left: 10%;
  top: 2rem;
  background: rgba(124, 58, 237, 0.18);
}

.hero-ambient-blue {
  width: 20rem;
  height: 20rem;
  right: 3%;
  top: 8rem;
  background: rgba(59, 130, 246, 0.14);
}

.hero-content {
  display: grid;
  gap: 22px;
  align-content: start;
}

.eyebrow-row,
.hero-action-row,
.hero-kpi-row,
.hero-mini-proof,
.hero-pill-row,
.dashboard-preview-grid,
.preview-band-grid,
.feature-stage-grid,
.dashboard-stage-grid,
.pricing-grid {
  display: grid;
  gap: 14px;
}

.eyebrow-row {
  grid-template-columns: auto auto;
  justify-content: start;
  align-items: center;
}

.eyebrow {
  color: rgba(193, 207, 255, 0.82);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(161, 183, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(226, 233, 255, 0.8);
  font-size: 0.82rem;
}

.hero-kpi-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-kpi-card {
  padding: 18px;
  border: 1px solid rgba(174, 195, 255, 0.12);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(11, 16, 32, 0.75));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hero-kpi-card span,
.hero-input-preview span,
.hero-proof-header span,
.dashboard-frame-top span,
.dashboard-score-card span,
.dashboard-chart-copy span,
.signal-stage-top span,
.feature-orbit-card span,
.dashboard-stage-card span,
.pricing-card span,
.pricing-card strong,
.proof-quote-card strong,
.signal-card span,
.carousel-copy-block span,
.post-error-note,
.week-plan-card span {
  font-family: var(--font-ui);
}

.hero-kpi-card span,
.hero-kpi-card small {
  display: block;
}

.hero-kpi-card span,
.hero-kpi-card small {
  color: var(--text-faint);
}

.hero-kpi-card strong {
  display: block;
  margin: 10px 0 6px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2vw, 2.2rem);
  letter-spacing: -0.04em;
}

.hero-stage h1,
.section-heading-shell h2,
.control-deck h2,
.executive-summary-head h2,
.proof-quote-card p,
.pricing-card strong {
  margin: 0;
}

.hero-stage h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.7rem);
  line-height: 0.94;
  letter-spacing: -0.07em;
  max-width: 12ch;
}

.hero-stage h1 span {
  display: block;
  color: rgba(196, 211, 255, 0.88);
}

.hero-copy {
  max-width: 60ch;
  color: var(--text-soft);
  font-size: 1.08rem;
}

.hero-action-row {
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  align-items: center;
  justify-content: start;
}

.hero-button-secondary,
.action-button,
.performance-post-link,
.post-card-action,
.week-plan-day-button,
select,
input,
textarea {
  border: 1px solid rgba(174, 195, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.hero-button-primary,
.action-button-accent,
#submit-button,
.pricing-card-featured .hero-button-primary {
  border-color: rgba(139, 92, 246, 0.24);
  background:
    linear-gradient(135deg, rgba(139, 92, 246, 0.9), rgba(59, 130, 246, 0.75)),
    rgba(12, 17, 32, 0.94);
  box-shadow:
    0 18px 44px rgba(54, 30, 137, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.hero-button-secondary,
.action-button,
.performance-post-link,
.post-card-action,
.week-plan-day-button {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hero-input-preview {
  display: grid;
  gap: 10px;
  max-width: 38rem;
}

.hero-input-preview span,
.hero-proof-header span,
.section-kicker {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 700;
  color: rgba(204, 214, 255, 0.58);
}

.hero-input-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 12px 12px 12px 20px;
  border: 1px solid rgba(170, 190, 255, 0.14);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(11, 16, 32, 0.84));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 24px 60px rgba(0, 0, 0, 0.26);
}

.hero-input-shell input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  padding: 6px 0;
  color: #171b2b;
  font-size: 1rem;
}

.hero-input-shell input::placeholder {
  color: rgba(23, 27, 43, 0.38);
}

.hero-input-shell button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 126px;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.92), rgba(59, 130, 246, 0.86));
  box-shadow: 0 18px 40px rgba(69, 40, 175, 0.36);
  color: #f7fbff;
  font-family: var(--font-ui);
  font-size: 0.96rem;
  font-weight: 700;
}

.hero-input-shell button:disabled {
  opacity: 0.74;
  cursor: wait;
}

.hero-analysis-panel,
.landing-section,
.dashboard-frame,
.final-cta-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(174, 195, 255, 0.12);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(8, 12, 24, 0.88)),
    rgba(8, 12, 24, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    var(--shadow-md);
}

.hero-analysis-panel {
  padding: 22px;
}

.hero-mini-proof {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.hero-proof-card {
  padding: 18px;
  border: 1px solid rgba(174, 195, 255, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
}

.hero-proof-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.hero-proof-card span,
.proof-quote-card strong,
.pricing-card p,
.dashboard-score-card p,
.dashboard-stage-card p,
.signal-stage-card p,
.feature-orbit-card p {
  color: var(--text-soft);
}

.hero-pill-row {
  grid-template-columns: repeat(2, minmax(0, max-content));
  margin-top: 16px;
}

.hero-pill,
.report-pill,
.report-pill-soft,
.badge,
.cell-pill {
  border: 1px solid rgba(174, 195, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(231, 237, 255, 0.84);
}

.hero-preview {
  display: grid;
  width: 100%;
}

.hero-dashboard {
  position: relative;
  display: grid;
  gap: 18px;
  justify-items: end;
  width: 100%;
}

.dashboard-frame {
  width: min(100%, 36rem);
  padding: 22px;
}

.dashboard-frame-top,
.signal-stage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-frame-top strong,
.section-heading-shell h2,
.control-deck h2,
.profile-name,
.pricing-card strong {
  font-family: var(--font-display);
}

.dashboard-frame-top strong {
  font-size: 1.3rem;
  letter-spacing: -0.04em;
}

.dashboard-preview-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 18px 0;
}

.dashboard-score-card,
.signal-stage-card,
.feature-orbit-card,
.dashboard-stage-card,
.proof-quote-card,
.pricing-card {
  padding: 20px;
  border: 1px solid rgba(174, 195, 255, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.dashboard-score-card strong,
.signal-stage-top strong,
.dashboard-stage-card strong {
  display: block;
  margin: 10px 0 6px;
  font-size: 1.32rem;
  letter-spacing: -0.03em;
}

.dashboard-score-card-primary {
  background:
    radial-gradient(circle at top right, rgba(139, 92, 246, 0.26), transparent 45%),
    rgba(255, 255, 255, 0.04);
}

.dashboard-score-card-heat {
  background:
    radial-gradient(circle at top left, rgba(95, 183, 255, 0.22), transparent 42%),
    rgba(255, 255, 255, 0.04);
}

.dashboard-chart-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(174, 195, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.dashboard-bar-chart,
.pulse-row,
.audience-wave {
  display: grid;
  align-items: end;
  gap: 10px;
}

.dashboard-bar-chart {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  height: 130px;
}

.dashboard-bar-chart span,
.pulse-row span,
.audience-wave span {
  display: block;
  border-radius: 999px 999px 16px 16px;
  background: linear-gradient(180deg, rgba(135, 92, 246, 0.96), rgba(95, 183, 255, 0.66));
  box-shadow: 0 0 26px rgba(121, 115, 255, 0.24);
}

.dashboard-bar-chart span {
  height: var(--bar);
}

.phone-shell {
  width: min(100%, 26rem);
  padding: 14px;
  border: 1px solid rgba(174, 195, 255, 0.12);
  border-radius: 42px;
  background:
    linear-gradient(180deg, rgba(18, 23, 43, 0.98), rgba(9, 12, 24, 0.9)),
    #0a0d1a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 40px 100px rgba(0, 0, 0, 0.45);
}

.phone-screen {
  border-radius: 30px;
  background:
    radial-gradient(circle at top, rgba(126, 58, 242, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(17, 20, 35, 0.96), rgba(10, 13, 23, 0.98));
}

.ig-insight-card,
.ig-post-tile {
  border-color: rgba(175, 194, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
}

.ig-profile-meta p,
.ig-post-copy small,
.ig-insight-card span {
  color: rgba(222, 229, 255, 0.62);
}

.ig-post-chip {
  background: rgba(255, 255, 255, 0.08);
  color: #edf1ff;
}

.landing-section {
  margin-top: 20px;
  padding: 30px;
}

.section-heading-shell {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
  max-width: 54rem;
}

.section-heading-shell h2,
.control-deck h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.section-heading-shell p,
.panel-header-stack p {
  margin: 0;
  color: var(--text-soft);
}

.preview-band-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.signal-stage-card-glow {
  background:
    radial-gradient(circle at top right, rgba(236, 72, 153, 0.18), transparent 42%),
    rgba(255, 255, 255, 0.035);
}

.pulse-row {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  height: 72px;
  margin: 18px 0 10px;
}

.pulse-row span:nth-child(1) {
  height: 34%;
}

.pulse-row span:nth-child(2) {
  height: 78%;
}

.pulse-row span:nth-child(3) {
  height: 52%;
}

.pulse-row span:nth-child(4) {
  height: 100%;
}

.pulse-row span:nth-child(5) {
  height: 64%;
}

.signal-stage-list {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--text-soft);
}

.feature-stage-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-orbit-card span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  margin-bottom: 14px;
  border: 1px solid rgba(174, 195, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.feature-orbit-card h3,
.dashboard-stage-card strong,
.pricing-card strong,
.proof-quote-card strong {
  margin: 0 0 10px;
}

.dashboard-stage-grid {
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
}

.dashboard-stage-card-wide {
  min-height: 260px;
}

.audience-wave {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  height: 130px;
  margin-top: 24px;
}

.audience-wave span:nth-child(1) {
  height: 36%;
}

.audience-wave span:nth-child(2) {
  height: 78%;
}

.audience-wave span:nth-child(3) {
  height: 54%;
}

.audience-wave span:nth-child(4) {
  height: 100%;
}

.audience-wave span:nth-child(5) {
  height: 70%;
}

.audience-wave span:nth-child(6) {
  height: 86%;
}

.proof-stage-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.proof-column,
.pricing-shell {
  display: grid;
  gap: 18px;
}

.proof-quote-card p {
  color: #fff;
  font-size: 1.08rem;
  line-height: 1.6;
}

.pricing-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pricing-card {
  display: grid;
  gap: 12px;
  align-content: start;
}

.pricing-card strong {
  font-size: 2.2rem;
  letter-spacing: -0.06em;
}

.pricing-card-featured {
  position: relative;
  background:
    radial-gradient(circle at top right, rgba(139, 92, 246, 0.24), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(11, 16, 32, 0.8));
}

.pricing-card-featured::after {
  content: "Recommended";
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(174, 195, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.final-cta-card {
  padding: 38px;
  text-align: center;
  background:
    radial-gradient(circle at top center, rgba(139, 92, 246, 0.25), transparent 34%),
    radial-gradient(circle at bottom center, rgba(95, 183, 255, 0.14), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(8, 12, 24, 0.88));
}

.final-cta-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.final-cta-card p:not(.section-kicker) {
  max-width: 44rem;
  margin: 16px auto 0;
  color: var(--text-soft);
}

.final-cta-card .hero-action-row {
  justify-content: center;
  margin-top: 22px;
}

.panel,
.new-analysis-inner {
  border: 1px solid rgba(174, 195, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(8, 12, 24, 0.9)),
    rgba(8, 12, 24, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    var(--shadow-sm);
}

.control-deck {
  padding: 28px;
}

.panel-header-stack h2,
.executive-summary-head h2,
.section-heading-block h2,
.section-heading-row h2 {
  color: #fff;
}

.section-ig-icon {
  filter: drop-shadow(0 10px 24px rgba(225, 48, 108, 0.22));
}

label,
.report-meta-link,
.profile-handle,
.post-card-link {
  color: rgba(222, 229, 255, 0.82);
}

input,
textarea,
select {
  min-height: 56px;
  border-radius: 18px;
  padding: 0 18px;
  outline: none;
}

input::placeholder,
textarea::placeholder {
  color: rgba(202, 211, 255, 0.42);
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(124, 58, 237, 0.36);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.14);
}

.status-card,
.signal-card,
.report-meta-card,
.metric-card,
.summary-focus-card,
.insight-hero-card,
.spotlight-card,
.content-block,
.north-star-card,
.mini-pattern-card,
.idea-card,
.week-plan-card,
.post-card,
.profile-overview-card,
.executive-summary-card {
  border: 1px solid rgba(174, 195, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.status-card,
.signal-card,
.profile-overview-card,
.executive-summary-card,
.report-meta-card,
.content-block,
.north-star-card,
.post-card {
  border-radius: 26px;
}

.status-progress {
  background: rgba(255, 255, 255, 0.08);
}

#status-progress-fill {
  background: linear-gradient(90deg, rgba(139, 92, 246, 1), rgba(95, 183, 255, 1));
}

.progress-ring {
  background:
    radial-gradient(circle at center, rgba(12, 17, 32, 1) 56%, transparent 57%),
    conic-gradient(from 180deg, rgba(95, 183, 255, 1) var(--progress), rgba(255, 255, 255, 0.08) 0);
  color: #fff;
}

.error-box,
.post-error-note {
  border: 1px solid rgba(248, 113, 113, 0.24);
  background: rgba(127, 29, 29, 0.18);
  color: #ffd3d3;
}

.report-nav {
  position: sticky;
  top: 0;
  z-index: 7;
}

.report-nav {
  display: grid;
  gap: 0;
  padding-top: 18px;
  padding-bottom: 18px;
}

.report-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 0;
  align-items: center;
}

.report-pill:hover,
.report-pill:focus-visible {
  background: rgba(139, 92, 246, 0.16);
  color: #fff;
}

.profile-name {
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.05em;
}

.profile-category,
.profile-bio {
  color: var(--text-soft);
}

.profile-avatar {
  border: 1px solid rgba(174, 195, 255, 0.16);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.36);
}

.summary-grid,
.executive-summary-grid,
.insight-strip,
.spotlight-grid,
.double-grid,
.triple-grid,
.ideas-grid.performance-grid,
.profile-ideas-grid,
.weekly-plan-layout,
.week-plan-stack {
  gap: 16px;
}

.metric-card strong,
.profile-mini-stat strong,
.score-badge,
.report-meta-link,
#avg-viral-score {
  color: #fff;
}

.metric-card strong,
.profile-mini-stat strong {
  font-size: 1.5rem;
}

.summary-focus-card h3,
.insight-hero-card strong,
.spotlight-card h3,
.content-block h3,
.north-star-card h3,
.mini-pattern-card h3,
.idea-card h3,
.week-plan-card h3 {
  color: #fff;
}

.summary-focus-card-accent,
.spotlight-card-accent,
.insight-hero-card-warning,
.north-star-card,
.pricing-card-featured {
  border-color: rgba(124, 58, 237, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 44px rgba(52, 29, 124, 0.22);
}

.summary-focus-card-accent {
  background:
    linear-gradient(180deg, rgba(244, 240, 255, 0.98), rgba(236, 245, 255, 0.92)),
    rgba(255, 255, 255, 0.86);
}

.summary-focus-card-accent span {
  color: rgba(83, 92, 176, 0.82);
}

.summary-focus-card-accent p {
  color: #1f2850;
}

.tag-list li,
.insight-list li,
.signal-list li,
.report-meta-item strong,
.post-insight-grid div span,
.post-card-title small,
.idea-section p,
.week-plan-card p {
  color: var(--text-soft);
}

.tag-list li,
.signal-list li,
.cell-pill {
  border: 1px solid rgba(174, 195, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.north-star-card,
.content-block-dark {
  background:
    radial-gradient(circle at top right, rgba(95, 183, 255, 0.12), transparent 38%),
    rgba(255, 255, 255, 0.035);
}

.formula-text,
.priority-step-copy {
  color: rgba(236, 241, 255, 0.9);
}

.idea-card,
.week-plan-card,
.post-card {
  overflow: hidden;
}

.post-card-toggle {
  align-items: center;
  gap: 14px;
}

.post-card-index,
.score-badge {
  border: 1px solid rgba(174, 195, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.post-thumb,
.generated-image-frame,
.generated-image-frame img {
  border-radius: 22px;
}

.post-thumb-placeholder {
  border: 1px dashed rgba(174, 195, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
}

.post-insight-grid {
  gap: 14px;
}

.carousel-copy-block,
.generated-image-frame {
  border-radius: 24px;
}

.new-analysis-inner {
  border-radius: 22px;
}

.new-analysis-inner span {
  color: var(--text-soft);
}

.week-plan-day-button.is-active {
  border-color: rgba(124, 58, 237, 0.3);
  background: rgba(124, 58, 237, 0.18);
  color: #fff;
}

body.inside-telegram {
  --bg: #06070d;
  --bg-soft: #0b1020;
  --surface: rgba(10, 14, 28, 0.82);
  --surface-strong: rgba(15, 20, 38, 0.94);
  --surface-muted: rgba(102, 124, 187, 0.16);
  --line: rgba(165, 184, 255, 0.14);
  --line-strong: rgba(193, 209, 255, 0.22);
  --text: #f5f7ff;
  --text-soft: rgba(226, 233, 255, 0.78);
  --text-faint: rgba(198, 210, 255, 0.5);
}

@media (max-width: 1180px) {
  .hero-stage,
  .proof-stage-grid {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    padding-top: 34px;
  }

  .hero-dashboard {
    justify-items: stretch;
  }

  .dashboard-frame,
  .phone-shell {
    width: 100%;
  }

  .feature-stage-grid,
  .preview-band-grid,
  .dashboard-stage-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .page-shell {
    width: min(100%, calc(100% - 18px));
    padding-top: 12px;
  }

  .topbar {
    flex-wrap: wrap;
    justify-content: space-between;
    border-radius: 28px;
  }

  .topbar-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
  }

  .topbar-cta {
    width: 100%;
  }

  .hero-kpi-row,
  .hero-mini-proof,
  .feature-stage-grid,
  .preview-band-grid,
  .dashboard-stage-grid,
  .pricing-grid,
  .dashboard-preview-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-frame {
    display: none;
  }

  .hero-stage h1 {
    max-width: none;
    font-size: clamp(2.6rem, 13vw, 4.4rem);
  }

  .hero-action-row,
  .final-cta-card .hero-action-row {
    grid-auto-flow: row;
    grid-auto-columns: 1fr;
  }

  .hero-button,
  .topbar-cta,
  #submit-button {
    width: 100%;
  }

  .landing-section,
  .control-deck,
  .final-cta-card {
    padding: 22px;
  }

  .report-nav {
    top: 0;
  }
}

@media (max-width: 560px) {
  .brand-lockup {
    width: 100%;
  }

  .topbar-nav {
    gap: 6px;
  }

  .topbar-nav a {
    flex: 1 1 calc(50% - 6px);
    justify-content: center;
    text-align: center;
  }

  .hero-input-shell {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-input-shell button {
    width: 100%;
  }

  .phone-shell {
    border-radius: 30px;
    padding: 10px;
  }

  .landing-section,
  .panel,
  .hero-analysis-panel,
  .dashboard-frame,
  .final-cta-card {
    border-radius: 24px;
  }
}

:root {
  --bg: #f6f4ef;
  --bg-soft: #fbfaf7;
  --surface: rgba(255, 255, 255, 0.68);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --surface-muted: rgba(235, 240, 255, 0.76);
  --line: rgba(123, 145, 196, 0.16);
  --line-strong: rgba(123, 145, 196, 0.24);
  --text: #171b2b;
  --text-soft: rgba(23, 27, 43, 0.72);
  --text-faint: rgba(23, 27, 43, 0.5);
  --accent: #7c6cff;
  --accent-soft: rgba(124, 108, 255, 0.12);
  --accent-strong: #42a5ff;
  --olive: #65b6ff;
  --shadow-lg: 0 40px 120px rgba(152, 166, 201, 0.18);
  --shadow-md: 0 24px 60px rgba(165, 176, 205, 0.18);
  --shadow-sm: 0 16px 34px rgba(176, 186, 212, 0.16);
}

@keyframes floatDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -10px, 0);
  }
}

@keyframes softGlow {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.04);
  }
}

@keyframes riseIn {
  0% {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

body {
  color: var(--text);
  background:
    radial-gradient(circle at 12% 12%, rgba(142, 190, 255, 0.26), transparent 24%),
    radial-gradient(circle at 84% 14%, rgba(183, 157, 255, 0.22), transparent 22%),
    radial-gradient(circle at 52% 108%, rgba(255, 206, 226, 0.18), transparent 26%),
    linear-gradient(180deg, #fcfbf8 0%, #f5f4ef 44%, #f8f7f3 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

body::before,
body::after {
  opacity: 1;
  filter: blur(78px);
}

body::before {
  background: rgba(152, 198, 255, 0.3);
}

body::after {
  background: rgba(195, 170, 255, 0.22);
}

::selection {
  background: rgba(124, 108, 255, 0.18);
}

.page-shell::before {
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(120, 140, 180, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 140, 180, 0.04) 1px, transparent 1px);
}

.topbar,
.panel,
.new-analysis-inner,
.hero-analysis-panel,
.landing-section,
.dashboard-frame,
.final-cta-card,
.phone-shell,
.signal-stage-card,
.feature-orbit-card,
.dashboard-stage-card,
.proof-quote-card,
.pricing-card,
.status-card,
.signal-card,
.metric-card,
.summary-focus-card,
.insight-hero-card,
.spotlight-card,
.content-block,
.north-star-card,
.mini-pattern-card,
.idea-card,
.week-plan-card,
.post-card,
.report-meta-card,
.profile-overview-card,
.executive-summary-card {
  border: 1px solid rgba(140, 158, 204, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(246, 248, 255, 0.66)),
    rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    var(--shadow-sm);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.topbar {
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 20px 40px rgba(182, 191, 214, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.brand-name,
.hero-stage h1,
.section-heading-shell h2,
.control-deck h2,
.profile-name,
.final-cta-card h2,
.pricing-card strong {
  color: #101525;
}

.brand-subtitle,
.helper-text,
.table-intro p,
.section-heading-shell p,
.panel-header-stack p,
.hero-copy,
.signal-list,
.dashboard-score-card p,
.dashboard-stage-card p,
.signal-stage-card p,
.proof-quote-card strong,
.pricing-card p,
.profile-category,
.profile-bio,
.idea-section p,
.week-plan-card p,
.tag-list li,
.insight-list li {
  color: var(--text-soft);
}

.topbar-nav a {
  color: rgba(23, 27, 43, 0.72);
}

.topbar-nav a:hover,
.topbar-nav a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 10px 24px rgba(180, 189, 215, 0.18);
}

.topbar-cta,
.hero-button-primary,
.action-button-accent,
#submit-button {
  color: #101525;
  border-color: rgba(124, 108, 255, 0.1);
  background:
    linear-gradient(135deg, #7d6dff 0%, #5caeff 58%, #8cc9ff 100%),
    rgba(124, 108, 255, 0.94);
  box-shadow:
    0 18px 44px rgba(124, 108, 255, 0.24),
    0 8px 22px rgba(92, 174, 255, 0.16);
}

.hero-button-secondary,
.action-button,
.performance-post-link,
.post-card-action,
.week-plan-day-button,
input,
textarea,
select {
  color: var(--text);
  border: 1px solid rgba(135, 154, 201, 0.16);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.topbar-cta:hover,
.hero-button:hover,
.action-button:hover,
#submit-button:hover,
#new-analysis-button:hover,
.performance-post-link:hover,
.post-card-action:hover,
.week-plan-day-button:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 34px rgba(149, 163, 205, 0.22),
    0 0 0 1px rgba(124, 108, 255, 0.08);
}

.hero-stage,
.landing-section,
.panel,
.new-analysis-bar {
  animation: riseIn 700ms ease both;
}

.hero-stage {
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.96fr);
}

.hero-ambient-violet,
.hero-ambient-blue {
  animation: softGlow 8s ease-in-out infinite;
}

.hero-content > *,
.dashboard-frame,
.phone-shell,
.landing-section > *,
.control-deck > *,
.results > * {
  animation: riseIn 800ms ease both;
}

.hero-kpi-card,
.hero-proof-card,
.dashboard-score-card,
.signal-stage-card,
.feature-orbit-card,
.dashboard-stage-card,
.proof-quote-card,
.pricing-card,
.metric-card,
.summary-focus-card,
.insight-hero-card,
.spotlight-card,
.content-block,
.north-star-card,
.mini-pattern-card,
.idea-card,
.week-plan-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(248, 249, 255, 0.7)),
    rgba(255, 255, 255, 0.7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 18px 40px rgba(185, 194, 218, 0.14);
}

.hero-stage h1 {
  max-width: 10ch;
  letter-spacing: -0.08em;
}

.hero-stage h1 span {
  color: rgba(22, 28, 45, 0.9);
}

.eyebrow,
.hero-status-chip,
.hero-input-preview span,
.hero-proof-header span,
.section-kicker,
.dashboard-frame-top span,
.dashboard-chart-copy span,
.signal-stage-top span,
.feature-orbit-card span,
.dashboard-stage-card span,
.pricing-card span {
  color: rgba(70, 90, 138, 0.76);
}

.hero-status-chip,
.hero-pill,
.report-pill,
.report-pill-soft,
.badge,
.cell-pill,
.mini-badge {
  background: rgba(255, 255, 255, 0.66);
  border-color: rgba(132, 154, 204, 0.14);
  color: rgba(27, 34, 57, 0.8);
}

.hero-kpi-card,
.dashboard-score-card,
.hero-proof-card,
.signal-stage-card,
.feature-orbit-card,
.dashboard-stage-card,
.proof-quote-card,
.pricing-card,
.summary-focus-card,
.insight-hero-card,
.spotlight-card,
.mini-pattern-card,
.idea-card,
.week-plan-card {
  transform: translateZ(0);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.hero-kpi-card:hover,
.dashboard-score-card:hover,
.hero-proof-card:hover,
.signal-stage-card:hover,
.feature-orbit-card:hover,
.dashboard-stage-card:hover,
.proof-quote-card:hover,
.pricing-card:hover,
.summary-focus-card:hover,
.insight-hero-card:hover,
.spotlight-card:hover,
.mini-pattern-card:hover,
.idea-card:hover,
.week-plan-card:hover {
  transform: translateY(-4px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 24px 54px rgba(173, 183, 209, 0.2);
}

.hero-input-shell {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(138, 156, 203, 0.18);
}

.hero-input-shell button {
  background: linear-gradient(135deg, #7b70ff 0%, #58abff 100%);
  color: #101525;
}

.dashboard-frame,
.final-cta-card {
  background:
    radial-gradient(circle at top right, rgba(181, 208, 255, 0.24), transparent 30%),
    radial-gradient(circle at bottom left, rgba(214, 190, 255, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(246, 248, 255, 0.68));
}

.dashboard-frame {
  animation: floatDrift 8s ease-in-out infinite;
}

.phone-shell {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(240, 244, 255, 0.88)),
    #ffffff;
  box-shadow:
    0 34px 80px rgba(180, 190, 218, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.phone-screen {
  background:
    radial-gradient(circle at top, rgba(184, 206, 255, 0.3), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f6f7fb 100%);
}

.phone-notch,
.ig-bottom-bar span,
.ig-bottom-bar-active {
  background: rgba(24, 29, 46, 0.86);
}

.ig-profile-meta strong,
.ig-insight-card strong,
.ig-post-copy strong,
.dashboard-score-card strong,
.dashboard-stage-card strong,
.signal-stage-top strong,
.pricing-card strong,
.metric-card strong,
.profile-mini-stat strong,
.score-badge {
  color: #161c2f;
}

.ig-profile-meta p,
.ig-post-copy small,
.ig-insight-card span {
  color: rgba(36, 44, 67, 0.58);
}

.ig-insight-card,
.ig-post-tile {
  background: rgba(255, 255, 255, 0.7);
}

.ig-post-chip {
  background: rgba(124, 108, 255, 0.09);
  color: #4d54b8;
}

.pulse-row span,
.dashboard-bar-chart span,
.audience-wave span {
  background: linear-gradient(180deg, rgba(122, 109, 255, 0.92), rgba(86, 173, 255, 0.58));
  box-shadow: 0 8px 22px rgba(122, 109, 255, 0.16);
}

.pricing-card-featured::after {
  content: "Выбор пользователей";
  color: #5e67cf;
  background: rgba(255, 255, 255, 0.84);
}

.final-cta-card {
  text-align: center;
}

.panel,
.new-analysis-inner,
.status-card,
.signal-card,
.report-meta-card,
.profile-overview-card,
.executive-summary-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(247, 248, 253, 0.72)),
    rgba(255, 255, 255, 0.74);
}

.status-progress {
  background: rgba(131, 151, 201, 0.12);
}

#status-progress-fill {
  background: linear-gradient(90deg, #7c6cff, #4ea8ff);
}

.progress-ring {
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 1) 56%, transparent 57%),
    conic-gradient(from 180deg, rgba(78, 168, 255, 1) var(--progress), rgba(200, 210, 235, 0.36) 0);
  color: #171b2b;
}

.error-box,
.post-error-note {
  background: rgba(255, 239, 241, 0.88);
  color: #8e3a4b;
  border-color: rgba(227, 150, 170, 0.22);
}

.report-pill:hover,
.report-pill:focus-visible,
.week-plan-day-button.is-active {
  background: rgba(124, 108, 255, 0.11);
  color: #3e47a8;
  border-color: rgba(124, 108, 255, 0.18);
}

.post-thumb-placeholder,
.generated-image-frame,
.carousel-copy-block,
.post-result-card,
.post-result-copy,
.post-result-meta {
  background: rgba(255, 255, 255, 0.68);
}

input::placeholder,
textarea::placeholder {
  color: rgba(43, 52, 82, 0.38);
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(124, 108, 255, 0.26);
  box-shadow: 0 0 0 4px rgba(124, 108, 255, 0.08);
}

body.inside-telegram {
  --bg: #f6f4ef;
  --bg-soft: #fbfaf7;
  --surface: rgba(255, 255, 255, 0.76);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --surface-muted: rgba(235, 240, 255, 0.76);
  --line: rgba(123, 145, 196, 0.16);
  --line-strong: rgba(123, 145, 196, 0.24);
  --text: #171b2b;
  --text-soft: rgba(23, 27, 43, 0.72);
  --text-faint: rgba(23, 27, 43, 0.5);
}

@media (max-width: 1180px) {
@media (max-width: 860px) {
  .hero-preview,
  .hero-dashboard {
    width: 100%;
    justify-items: stretch;
  }

  .dashboard-frame {
    display: none;
  }

  .hero-action-row {
    grid-template-columns: 1fr;
  }

  .hero-action-row .hero-button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .hero-preview,
  .hero-dashboard,
  .phone-shell {
    width: 100%;
    max-width: calc(100vw - 32px);
  }
}

.north-star-card h3,
.content-block h3,
.insight-hero-card strong,
.spotlight-card h3,
.mini-pattern-card h3,
.idea-card h3,
.week-plan-card h3,
.summary-focus-card h3 {
  color: #171b2b;
}

.priority-step-copy,
.formula-text,
.mini-pattern-card p,
.spotlight-card p,
.post-card-media a,
.post-card-link {
  color: rgba(23, 27, 43, 0.88);
}

.north-star-card,
.content-block,
.content-block-dark,
.insight-hero-card,
.mini-pattern-card,
.spotlight-card,
.idea-card,
.week-plan-card,
.post-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(246, 248, 255, 0.82)),
    rgba(255, 255, 255, 0.82);
}

.content-block-dark .tag-list li,
.content-block-dark h3,
.content-block-dark li {
  color: rgba(23, 27, 43, 0.82);
}

#results .profile-name,
#results .executive-summary-head h2,
#results .section-heading-block h2,
#results .section-heading-row h2,
#results .metric-card strong,
#results .report-meta-item strong,
#results .report-meta-link,
#results .profile-mini-stat strong,
#results .summary-focus-card p,
#results .insight-hero-card strong,
#results .spotlight-card p,
#results .content-block h3,
#results .north-star-card h3,
#results .mini-pattern-card h3,
#results .post-card-link,
#results .score-badge,
#results #avg-viral-score {
  color: #171b2b;
}

#results .executive-summary-head h2 {
  max-width: 14ch;
  color: #171b2b !important;
  text-shadow: none;
}

#results .section-kicker,
#results .metric-label,
#results .report-meta-item span,
#results .profile-mini-stat span,
#results .summary-focus-card span,
#results .insight-hero-card span,
#results .spotlight-card span,
#results .north-star-card > span,
#results .subsection-title {
  color: rgba(23, 27, 43, 0.58);
}

#results #summary-next-step-text,
#results .profile-handle,
#results .profile-handle.is-disabled,
#results .report-meta-link,
#results .report-meta-link.is-disabled,
#results .summary-focus-card p,
#results .summary-focus-card-accent p,
#results .content-block h3,
#results .insight-hero-card strong,
#results .spotlight-card h3,
#results .north-star-card h3,
#results .mini-pattern-card h3,
#results #avg-viral-score {
  color: #171b2b !important;
}

#results .profile-category,
#results .profile-bio,
#results .report-meta-item span,
#results .metric-label,
#results .profile-mini-stat span,
#results .summary-focus-card span {
  color: rgba(23, 27, 43, 0.7) !important;
}

#results .content-block-dark h3,
#results .content-block-dark li,
#results .content-block-dark .tag-list li {
  color: #171b2b !important;
}

@media (max-width: 560px) {
  .hero-stage {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 20px;
  }

  .hero-content {
    width: 100%;
    gap: 18px;
  }

  .eyebrow-row {
    grid-template-columns: 1fr;
    gap: 10px;
    justify-items: start;
  }

  .eyebrow {
    letter-spacing: 0.18em;
    font-size: 0.72rem;
  }

  .hero-status-chip {
    min-height: 32px;
    padding: 0 12px;
    font-size: 0.78rem;
  }

  .hero-kpi-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-kpi-row {
    display: none;
  }

  .hero-kpi-card {
    width: 100%;
    padding: 16px;
  }

  .hero-kpi-card strong {
    font-size: clamp(1.7rem, 8vw, 2.1rem);
  }

  .page-shell {
    width: min(100% - 16px, 1200px);
    padding: 12px 0 40px;
  }

  .topbar {
    gap: 12px;
    padding: 14px;
    border-radius: 22px;
  }

  .brand-lockup {
    gap: 12px;
    align-items: center;
  }

  .brand-mark-image {
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }

  .brand-subtitle {
    max-width: 22ch;
    line-height: 1.35;
  }

  .control-deck,
  .report-hero,
  .direction-stage,
  .ideas-stage,
  .carousel-stage,
  .weekly-plan-stage,
  .posts-stage,
  .scale-stage,
  .report-nav,
  .final-cta-card,
  .landing-section {
    padding: 18px;
  }

  .report-hero-grid,
  .executive-summary-grid,
  .summary-grid,
  .insight-strip,
  .spotlight-grid,
  .double-grid,
  .triple-grid,
  .report-meta-card,
  .profile-mini-stats,
  .workflow-rail {
    grid-template-columns: 1fr;
  }

  .report-meta-item:nth-child(3) {
    grid-column: auto;
  }

  .profile-overview-card {
    align-items: flex-start;
    text-align: left;
    gap: 12px;
    margin-top: 0;
    padding-bottom: 0;
    border-bottom: 0;
  }

  .profile-overview-copy {
    width: 100%;
  }

  .profile-avatar {
    width: 76px;
    height: 76px;
    border-radius: 22px;
  }

  .profile-name {
    font-size: clamp(1.3rem, 7vw, 1.7rem);
  }

  .executive-summary-head {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .executive-summary-head h2,
  #results .executive-summary-head h2 {
    max-width: none;
    font-size: clamp(1.24rem, 6.8vw, 1.58rem);
  }

  .executive-summary-head .inline-action-row,
  .inline-action-row,
  .card-action-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .action-button,
  .section-toggle-button,
  .week-plan-day-button {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    white-space: normal;
  }

  .section-heading-block h2,
  .section-heading-row h2,
  .panel-header-stack h2 {
    max-width: none;
    font-size: clamp(1.22rem, 6.4vw, 1.7rem);
  }

  .report-nav {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .report-pill-row {
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .report-pill-row::-webkit-scrollbar {
    display: none;
  }

  .report-pill {
    width: auto;
    flex: 0 0 auto;
    min-height: 38px;
    padding: 8px 10px;
    font-size: 0.76rem;
    white-space: nowrap;
  }

  .input-row {
    flex-direction: column;
  }

  input,
  textarea,
  select {
    min-height: 52px;
  }
}

@media (max-width: 400px) {
  .page-shell {
    width: calc(100% - 12px);
  }

  .brand-subtitle {
    max-width: 18ch;
  }

  .topbar-nav a,
  .report-pill {
    font-size: 0.72rem;
  }
}
