@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/Manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/Manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --color-bg-main: #e8d3c0;
  --color-bg-soft: #f4e5d8;
  --color-bg-card: #fff7ef;
  --color-bg-muted: #d7b89f;
  --color-text-main: #30180f;
  --color-text-soft: #5a3326;
  --color-text-muted: #7a5a48;
  --color-chocolate-dark: #30180f;
  --color-chocolate: #5a3326;
  --color-chocolate-light: #8a5a44;
  --color-border: #b98e76;
  --color-border-soft: rgba(48, 24, 15, 0.16);
  --color-red: #d71920;
  --color-red-hover: #b51218;
  --color-red-shadow: rgba(215, 25, 32, 0.16);
  --shadow-soft: 0 18px 45px rgba(48, 24, 15, 0.12);
  --shadow-card: 0 10px 28px rgba(48, 24, 15, 0.10);
  --bg: var(--color-bg-main);
  --bg-soft: var(--color-bg-soft);
  --surface: rgba(255, 247, 239, 0.92);
  --surface-strong: var(--color-bg-card);
  --surface-muted: var(--color-bg-soft);
  --text: var(--color-text-main);
  --text-muted: var(--color-text-muted);
  --primary: var(--color-red);
  --primary-strong: var(--color-red-hover);
  --secondary: var(--color-chocolate);
  --secondary-soft: rgba(90, 51, 38, 0.10);
  --accent: var(--color-chocolate-light);
  --border: var(--color-border-soft);
  --border-strong: rgba(48, 24, 15, 0.28);
  --shadow-sm: var(--shadow-card);
  --shadow-md: var(--shadow-soft);
  --shadow-lg: 0 34px 84px rgba(48, 24, 15, 0.16);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 30px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  color: var(--text);
  font: 16px/1.6 "Manrope", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 247, 239, 0.52), transparent 25%),
    radial-gradient(circle at top right, rgba(90, 51, 38, 0.10), transparent 22%),
    linear-gradient(180deg, #fff7ef 0%, var(--color-bg-soft) 42%, var(--color-bg-main) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 247, 239, 0.58), transparent 24%),
    radial-gradient(circle at 50% 0%, rgba(215, 184, 159, 0.34), transparent 20%);
  opacity: 0.85;
}

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

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

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.shell-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 14px 0;
  background: rgba(255, 247, 239, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-soft);
}

.shell-header .container,
.nav-actions,
.hero-actions,
.form-actions,
.section-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.shell-header .container,
.section-actions {
  justify-content: space-between;
}

.section-actions-centered {
  justify-content: center;
  margin-top: 28px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
  justify-content: flex-end;
  margin-left: auto;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 247, 239, 0.9);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.menu-toggle-icon {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 16px;
}

.menu-toggle-icon span {
  display: block;
  width: 2px;
  height: 2px;
  border-radius: 999px;
  background: var(--secondary);
  transition: width 0.18s ease, height 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.menu-toggle.is-open .menu-toggle-icon {
  flex-direction: row;
  align-items: center;
}

.menu-toggle.is-open .menu-toggle-icon span {
  width: 16px;
  height: 2px;
}

.menu-toggle-label {
  display: inline-flex;
  align-items: center;
}

.micro {
  color: var(--text-muted);
  font-size: 0.86rem;
}

.micro-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--secondary);
  font-weight: 700;
  font-size: 0.86rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-textual {
  gap: 15px;
  padding-left: 5px;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: auto;
  height: 46px;
  max-width: 190px;
  object-fit: contain;
  object-position: left center;
}

.brand-heart {
  display: block;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  object-fit: contain;
}

.brand-title {
  display: block;
  max-width: 250px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #f4e5d8);
  box-shadow: 0 14px 34px rgba(215, 25, 32, 0.22);
}

.brand-copy small {
  display: block;
  margin-bottom: 2px;
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-copy span {
  font-size: 1.05rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--surface-strong);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #f4e5d8);
  box-shadow: 0 10px 22px rgba(215, 25, 32, 0.16);
}

.btn.primary:hover {
  box-shadow: 0 14px 26px rgba(215, 25, 32, 0.2);
}

.btn.secondary {
  background: rgba(255, 247, 239, 0.98);
  border-color: rgba(48, 24, 15, 0.1);
}

.btn.small {
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.92rem;
}

.eyebrow,
.badge,
.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.landing-body .hero-copy > .eyebrow,
.landing-body .quick-test-tool > .eyebrow,
.landing-body .section-heading > .eyebrow,
.landing-body .hero-opening-badge {
  display: none;
}

.landing-body.inline-editor-available .hero-copy > .eyebrow,
.landing-body.inline-editor-available .quick-test-tool > .eyebrow,
.landing-body.inline-editor-available .section-heading > .eyebrow,
.landing-body.inline-editor-available .hero-opening-badge {
  display: inline-flex;
}

.eyebrow,
.badge {
  color: var(--secondary);
  background: rgba(215, 25, 32, 0.08);
}

.meta-pill {
  color: var(--secondary);
  background: rgba(90, 51, 38, 0.08);
}

.lead,
.helper-text,
.meta,
.muted,
.card p,
.card li {
  color: var(--text-muted);
}

.hero {
  padding: 56px 0 36px;
}

.hero-grid,
.grid-2,
.dashboard-grid,
.conversation-grid,
.admin-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

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

.hero-copy,
.hero-preview,
.card,
.promo-strip,
.admin-layout aside {
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-md);
}

.hero-copy,
.card {
  padding: 24px;
}

.hero-preview {
  overflow: hidden;
}

.hero h1,
.hero h2 {
  margin: 18px 0 16px;
  font-size: clamp(2.3rem, 5vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.065em;
}

.metrics,
.stat-grid,
.form-grid {
  display: grid;
  gap: 14px;
}

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

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

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

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

.metric,
.stat-card,
.list .item,
.suggestion-item,
.message-row {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 247, 239, 0.82);
  border: 1px solid rgba(48, 24, 15, 0.08);
}

.metric strong,
.stat-card strong {
  display: block;
  letter-spacing: -0.04em;
}

.metric strong {
  font-size: 1.35rem;
}

.stat-card strong {
  margin-top: 8px;
  font-size: 1.8rem;
  letter-spacing: -0.05em;
}

.stat-card span {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.preview-top {
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--border);
}

.preview-chat {
  padding: 22px;
  display: grid;
  gap: 14px;
}

.bubble {
  max-width: 88%;
  padding: 14px 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(48, 24, 15, 0.08);
}

.bubble.user {
  margin-left: auto;
  background: linear-gradient(135deg, rgba(215, 25, 32, 0.12), rgba(138, 90, 68, 0.18));
}

.bubble.ai {
  background: linear-gradient(135deg, rgba(90, 51, 38, 0.08), rgba(234, 243, 255, 0.94));
}

.bubble small,
.message-row strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.section {
  padding: 24px 0 56px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 14px 0 10px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.list {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
  font-size: 0.94rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea,
select {
  width: 100%;
  min-height: 48px;
  padding: 13px 14px;
  border-radius: 16px;
  border: 1px solid rgba(48, 24, 15, 0.14);
  background: rgba(255, 247, 239, 0.96);
  color: var(--text);
  font: inherit;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input[type="file"] {
  width: 100%;
  padding: 14px;
  border-radius: 16px;
  border: 1px dashed rgba(48, 24, 15, 0.2);
  background: rgba(244, 249, 255, 0.92);
  color: var(--text-muted);
  font: inherit;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(215, 25, 32, 0.46);
  box-shadow: 0 0 0 4px rgba(215, 25, 32, 0.14);
}

.password-field {
  position: relative;
}

.password-control {
  position: relative;
  display: block;
}

.password-control input {
  padding-right: 54px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(244, 229, 216, 0.92);
  color: #30180f;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.password-toggle:hover {
  background: #d7b89f;
  transform: translateY(-50%) scale(1.04);
}

.forgot-under-password {
  margin-top: 8px;
}

.messages {
  min-height: 220px;
  max-height: 440px;
  overflow: auto;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 247, 239, 0.96);
  border: 1px solid rgba(48, 24, 15, 0.08);
  display: grid;
  gap: 12px;
}

.message-row.user {
  justify-items: end;
}

.message-row.partner {
  justify-items: start;
}

.message-row {
  display: grid;
  padding: 0;
  border: 0;
  background: transparent;
}

.message-row__bubble {
  max-width: min(82%, 620px);
  padding: 13px 15px;
  border: 1px solid rgba(48, 24, 15, 0.09);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(48, 24, 15, 0.06);
}

.message-row.user .message-row__bubble {
  border-bottom-right-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #f4e5d8);
}

.message-row.partner .message-row__bubble {
  border-bottom-left-radius: 8px;
  background: rgba(255, 247, 239, 0.98);
}

.message-row.unknown .message-row__bubble {
  max-width: 100%;
  background: rgba(244, 229, 216, 0.96);
}

.message-row__bubble strong,
.message-row__bubble time {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  opacity: 0.72;
}

.message-row__bubble time {
  margin-top: 7px;
  font-weight: 700;
  text-align: right;
}

.suggestion-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.suggestion-item p {
  margin: 0;
  flex: 1;
  color: var(--text);
}

.suggestion-skeleton {
  display: grid;
  gap: 12px;
}

.suggestion-skeleton span {
  display: block;
  min-height: 74px;
  border-radius: 18px;
  background: linear-gradient(90deg, rgba(244, 229, 216, 0.92), rgba(255, 247, 239, 0.98), rgba(244, 229, 216, 0.92));
  background-size: 220% 100%;
  animation: skeleton-shimmer 1.2s linear infinite;
  border: 1px solid rgba(48, 24, 15, 0.08);
}

@keyframes skeleton-shimmer {
  from { background-position: 0 0; }
  to { background-position: -220% 0; }
}

.copy-suggestion-btn {
  border-color: rgba(216, 181, 74, 0.32);
  background: linear-gradient(180deg, rgba(255, 244, 205, 0.96), rgba(255, 249, 228, 0.98));
  color: #785f13;
  box-shadow: 0 10px 24px rgba(216, 181, 74, 0.14);
}

.copy-suggestion-btn:hover {
  border-color: rgba(216, 181, 74, 0.45);
  background: linear-gradient(180deg, rgba(255, 240, 186, 0.98), rgba(255, 247, 217, 1));
  color: #6e560d;
}

.copy-suggestion-btn.is-copied {
  border-color: rgba(88, 173, 118, 0.32);
  background: linear-gradient(180deg, rgba(220, 246, 225, 0.98), rgba(236, 251, 239, 1));
  color: #2e7a43;
  box-shadow: 0 10px 24px rgba(88, 173, 118, 0.16);
}

.greeting-copy-btn {
  min-width: 48px;
  padding-inline: 12px;
  font-size: 1rem;
  line-height: 1;
}

.greeting-copy-btn svg {
  display: block;
  margin: 0 auto;
}

.inline-editor-toolbar {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  width: min(360px, calc(100vw - 24px));
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(48, 24, 15, 0.12);
  border-radius: 20px;
  background: rgba(255, 247, 239, 0.96);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
}

.inline-editor-toolbar__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.inline-editor-toolbar__head strong {
  color: var(--secondary);
}

.inline-editor-toolbar__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.inline-editor-versions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.inline-editor-version-select {
  min-height: 40px;
  border-radius: 12px;
  font-size: 0.86rem;
}

.inline-editor-empty {
  color: var(--text-muted);
  font-size: 0.86rem;
}

.inline-editor-toolbar__status {
  min-height: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.inline-editor-toolbar__status.is-error {
  color: #b51218;
}

.inline-section-editing {
  outline: 2px dashed rgba(215, 25, 32, 0.28);
  outline-offset: 6px;
}

.inline-editable-node {
  cursor: text;
  border-radius: 10px;
}

.inline-editable-node:focus {
  outline: 2px solid rgba(215, 25, 32, 0.24);
  background: rgba(244, 229, 216, 0.88);
}

.status {
  min-height: 24px;
  font-size: 0.92rem;
  font-weight: 700;
}

.status.error {
  color: #d71920;
}

.status.success {
  color: #1f8a5b;
}

.promo-strip {
  margin-top: 28px;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.footer {
  padding: 32px 0 52px;
  color: var(--text-muted);
}

.login-wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 42px auto 0;
}

.login-wrap-compact {
  width: min(620px, calc(100% - 40px));
}

.app-shell {
  padding: 28px 0 56px;
}

.app-hero-grid,
.app-workspace-grid,
.conversation-workspace-grid {
  display: grid;
  gap: 20px;
}

.app-hero-grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.78fr);
  align-items: stretch;
}

.login-wrap-compact.app-hero-grid,
.login-wrap-compact {
  display: block;
}

.app-workspace-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: start;
}

.conversation-workspace-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: start;
}

.conversation-workspace-grid > .data-card:last-child {
  grid-column: 1 / -1;
}

.app-intro-card,
.app-form-card,
.action-card,
.data-card,
.result-card,
.workspace-card,
.info-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 247, 239, 0.92);
  box-shadow: var(--shadow-md);
}

.app-intro-card,
.app-form-card,
.action-card,
.data-card,
.result-card,
.workspace-card,
.info-card {
  padding: 28px;
}

.app-intro-card {
  background: linear-gradient(180deg, rgba(255, 247, 239, 0.98), rgba(239, 247, 255, 0.96));
}

.app-intro-card h1,
.app-form-card h1,
.workspace-top h1,
.workspace-top h2 {
  margin: 14px 0 12px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.app-intro-card p,
.app-form-card p,
.workspace-top p,
.panel-lead {
  color: var(--text-muted);
}

.app-feature-list,
.app-metrics-row,
.quick-stats,
.context-badges {
  display: grid;
  gap: 12px;
}

.app-feature-list {
  margin: 22px 0 0;
}

.app-feature {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid rgba(48, 24, 15, 0.08);
  border-radius: 18px;
  background: rgba(245, 249, 255, 0.88);
}

.app-feature strong,
.quick-stat strong {
  display: block;
  margin-bottom: 4px;
  letter-spacing: -0.03em;
}

.app-feature-badge {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--primary);
  background: rgba(215, 25, 32, 0.1);
  font-size: 0.86rem;
  font-weight: 800;
}

.app-metrics-row,
.quick-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quick-stat {
  padding: 15px 16px;
  border: 1px solid rgba(48, 24, 15, 0.08);
  border-radius: 18px;
  background: rgba(244, 229, 216, 0.9);
}

.quick-stat span {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.workspace-top,
.panel-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.panel-top h2,
.panel-top h3 {
  margin: 10px 0 8px;
  letter-spacing: -0.04em;
}

.panel-stack {
  display: grid;
  gap: 20px;
}

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

.context-badges .badge {
  justify-content: flex-start;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(244, 229, 216, 0.92);
}

.context-badge-wide {
  grid-column: 1 / -1;
}

.helper-card {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(48, 24, 15, 0.08);
  border-radius: 18px;
  background: rgba(244, 229, 216, 0.9);
}

.helper-card strong {
  display: block;
  margin-bottom: 6px;
}

.helper-card-soft {
  background: linear-gradient(180deg, rgba(255, 251, 236, 0.9), rgba(255, 247, 239, 0.98));
  border-color: rgba(216, 181, 74, 0.18);
}

.conversation-panels {
  display: grid;
  gap: 20px;
}

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

.memory-pill {
  padding: 14px 16px;
  border: 1px solid rgba(48, 24, 15, 0.08);
  border-radius: 18px;
  background: rgba(244, 229, 216, 0.92);
}

.memory-pill strong,
.memory-pill span {
  display: block;
}

.memory-pill span {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.history-card .messages {
  min-height: 360px;
}

.result-card .list {
  gap: 14px;
}

.result-card .suggestion-item {
  background: rgba(255, 247, 239, 0.96);
}

.analysis-progress {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(48, 24, 15, 0.08);
  background: rgba(246, 250, 255, 0.92);
}

.analysis-progress__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.analysis-progress__bar {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(206, 221, 241, 0.82);
}

.analysis-progress__bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.94), rgba(125, 211, 252, 0.92));
  transition: width 0.25s ease;
}

.stacked-form {
  margin-top: 16px;
}

.snapshot-item {
  gap: 12px;
}

.snapshot-copy {
  margin: 12px 0 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.snapshot-list {
  gap: 16px;
}

.snapshot-thumb {
  display: block;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(48, 24, 15, 0.08);
  background: #f4e5d8;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
}

.admin-detail-messages {
  min-height: 280px;
  max-height: 560px;
  overflow: auto;
}

@media (max-width: 920px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }
}

.admin-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  padding: 24px 0 54px;
}

.admin-hero-card {
  grid-column: 1 / -1;
}

.admin-page .container {
  width: min(1440px, calc(100% - 40px));
}

.admin-panels {
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.admin-layout aside {
  padding: 20px;
  height: fit-content;
  position: sticky;
  top: 96px;
}

.admin-menu {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.admin-menu button {
  justify-content: flex-start;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: left;
}

.admin-menu .btn.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #5a3326);
  border-color: rgba(215, 25, 32, 0.18);
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
}

.data-table th {
  text-align: left;
  padding: 0 14px 6px;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.data-table td {
  padding: 14px;
  vertical-align: top;
}

.data-table-empty {
  padding: 20px 14px;
  color: var(--text-muted);
  text-align: center;
}

.prompt-list-btn.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #5a3326);
  border-color: rgba(215, 25, 32, 0.18);
  box-shadow: var(--shadow-sm);
}

.prompt-editor-actions .btn {
  min-width: 180px;
}

.code-preview {
  min-height: 220px;
  margin: 18px 0 0;
  padding: 18px;
  border: 1px solid rgba(48, 24, 15, 0.08);
  border-radius: 18px;
  background: rgba(255, 247, 239, 0.96);
  color: var(--text);
  white-space: pre-wrap;
  overflow: auto;
}

.code {
  font-family: "Consolas", monospace;
  font-size: 0.88rem;
}

.empty-state {
  padding: 30px 18px;
  text-align: center;
  color: var(--text-muted);
}

.loading {
  opacity: 0.72;
  pointer-events: none;
}

.landing-body {
  background:
    linear-gradient(180deg, #fff7ef 0%, #f4e5d8 52%, #e8d3c0 100%);
}

.landing-body::before {
  display: none;
}

.landing-body .shell-header {
  background: rgba(255, 247, 239, 0.98);
  backdrop-filter: none;
}

.landing-body .hero-sales {
  padding-top: 24px;
}

.landing-body .section-deferred {
  content-visibility: auto;
  contain-intrinsic-size: 960px;
}

.hero-sales-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: stretch;
  max-width: 920px;
  margin: 0 auto;
}

.hero-sales-grid-with-media {
  max-width: 1220px;
  gap: 24px;
}

.hero-inline-photo {
  margin: 0 0 18px;
}

.hero-inline-photo__picture {
  display: block;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(48, 24, 15, 0.08);
  box-shadow: 0 18px 40px rgba(48, 24, 15, 0.12);
  background: rgba(255, 247, 239, 0.94);
}

.hero-inline-photo__image {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  object-position: center 22%;
}

.hero-copy-sales {
  padding: 24px 28px 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 247, 239, 0.98), rgba(244, 229, 216, 0.92));
  box-shadow: 0 18px 44px rgba(48, 24, 15, 0.09);
}

.hero-media-panel {
  display: grid;
}

.hero-media-panel-compact {
  align-items: start;
  display: none;
}

.hero-media-card {
  position: relative;
  overflow: hidden;
  min-height: 0;
  border-radius: 34px;
  border: 1px solid rgba(48, 24, 15, 0.1);
  background:
    radial-gradient(circle at top right, rgba(150, 225, 214, 0.16), transparent 36%),
    linear-gradient(180deg, rgba(255, 247, 239, 0.98), rgba(240, 247, 255, 0.96));
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.09),
    inset 0 1px 0 rgba(255, 247, 239, 0.78);
}

.hero-media-card-compact {
  width: min(100%, 440px);
  justify-self: center;
}

.hero-media-card-compact .hero-media-image {
  aspect-ratio: 5 / 6;
  object-position: center 18%;
}

.hero-media-picture {
  display: block;
  height: auto;
}

.hero-media-image {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  transform: none;
  transition: none;
}

.hero-media-caption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 247, 239, 0.42);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 247, 239, 0.92), rgba(255, 247, 239, 0.88));
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
}

.hero-media-kicker {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(48, 24, 15, 0.08);
  color: var(--secondary);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-media-caption strong {
  display: block;
  font-size: clamp(1.1rem, 1.4vw, 1.42rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-media-caption p {
  margin: 0;
  max-width: 34ch;
  color: rgba(15, 23, 40, 0.72);
  line-height: 1.6;
}

.hero-copy-sales h1 {
  margin: 10px 0 14px;
  max-width: 14ch;
  letter-spacing: -0.045em;
}

.hero-copy-sales .lead {
  max-width: 680px;
  font-size: 0.98rem;
  line-height: 1.72;
  color: rgba(15, 23, 40, 0.68);
}

.hero-copy-sales .lead a {
  color: var(--primary);
  font-weight: 800;
}

.hero-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.hero-keywords span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(244, 229, 216, 0.92);
  color: var(--secondary);
  font-weight: 700;
  font-size: 0.95rem;
}

.hero-keywords-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.hero-keywords-list li {
  position: relative;
  padding-left: 22px;
  color: var(--text);
}

.hero-keywords-list li h3 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.02rem, 2vw, 1.16rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.hero-keywords-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #22c55e;
}

.hero-keywords-list li:nth-child(3n + 1) {
  color: inherit;
}

.hero-keywords-list li:nth-child(3n + 1)::before {
  background: #22c55e;
}

.hero-keywords-list li:nth-child(3n + 2) {
  color: inherit;
}

.hero-keywords-list li:nth-child(3n + 2)::before {
  background: #8a5a44;
}

.hero-keywords-list li:nth-child(3n) {
  color: inherit;
}

.hero-keywords-list li:nth-child(3n)::before {
  background: #7a5a48;
}

.related-keywords a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(244, 229, 216, 0.92);
  color: var(--secondary);
  font-weight: 700;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.breadcrumbs a {
  color: var(--secondary);
}

.hero-actions-grid .btn {
  flex: 0 0 auto;
  min-width: 292px;
}

.hero-subactions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.hero-subactions a {
  color: rgba(90, 51, 38, 0.78);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.hero-subactions a:hover {
  color: var(--secondary);
}

.hero-direct-note {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(48, 24, 15, 0.1);
}

.hero-direct-note strong {
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.hero-direct-note span {
  max-width: 700px;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.landing-body .hero-actions-grid,
.landing-body .hero-subactions,
.landing-body .hero-direct-note {
  display: none;
}

.hero-opening-entry {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 18px 18px 20px;
  border: 1px solid rgba(48, 24, 15, 0.1);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(150, 225, 214, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(255, 247, 239, 0.98), rgba(244, 249, 255, 0.94));
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.hero-opening-badge {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(48, 24, 15, 0.08);
  color: var(--secondary);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-opening-entry strong {
  font-size: clamp(1.05rem, 2vw, 1.24rem);
  letter-spacing: -0.03em;
}

.hero-opening-entry span {
  color: var(--text-muted);
  font-size: 0.98rem;
}

.hero-opening-entry .btn {
  justify-self: start;
  min-width: 280px;
}

.hero-proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.hero-metrics,
.trust-strip-inner,
.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-visual {
  min-width: 0;
}

.hero-metrics {
  margin-top: 22px;
  align-items: stretch;
}

.hero-metric {
  min-width: 0;
  flex: 1 1 180px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(244, 229, 216, 0.86);
}

.hero-metric strong,
.hero-metric span {
  display: block;
}

.hero-metric strong {
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.hero-metric span {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.hero-demo-card {
  height: 100%;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 247, 239, 0.98), rgba(240, 247, 255, 0.96));
  box-shadow: var(--shadow-lg);
}

.hero-demo-card-wide {
  margin-top: 18px;
}

.hero-demo-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.hero-demo-head h2 {
  margin: 12px 0 0;
  font-size: clamp(1.8rem, 2.6vw, 2.7rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero-demo-badge {
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(90, 51, 38, 0.08);
  color: var(--secondary);
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}

.hero-demo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.9fr);
  gap: 16px;
}

.hero-demo-layout-stack {
  grid-template-columns: 1fr;
}

.hero-demo-thread,
.hero-demo-responses {
  padding: 18px;
  border: 1px solid rgba(48, 24, 15, 0.08);
  border-radius: 24px;
  background: rgba(255, 247, 239, 0.88);
  box-shadow: var(--shadow-sm);
}

.hero-demo-person {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-demo-person img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.hero-demo-person strong,
.hero-demo-person span {
  display: block;
}

.hero-demo-person span {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.hero-message {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 20px;
}

.hero-message.incoming {
  max-width: 88%;
  background: rgba(244, 229, 216, 0.98);
}

.hero-message.system {
  max-width: 94%;
  margin-left: auto;
  background: rgba(232, 243, 255, 0.98);
}

.hero-message small {
  display: block;
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.hero-message p {
  margin: 0;
}

.hero-demo-responses {
  display: flex;
  flex-direction: column;
}

.hero-demo-responses-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 12px;
}

.hero-demo-responses-head strong {
  font-size: 1rem;
}

.hero-demo-responses-head span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

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

.hero-response {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid rgba(48, 24, 15, 0.1);
  border-radius: 18px;
  background: #fff7ef;
  color: var(--text);
  text-align: left;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.hero-response:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.hero-response.is-featured {
  border-color: rgba(215, 25, 32, 0.26);
  background: linear-gradient(135deg, rgba(215, 25, 32, 0.1), rgba(255, 247, 239, 0.98));
}

.hero-demo-note {
  margin-top: 14px;
  padding: 15px 16px;
  border-radius: 18px;
  background: rgba(90, 51, 38, 0.06);
}

.hero-demo-note strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.96rem;
}

.hero-demo-note p {
  margin: 0;
  color: var(--text-muted);
}

.hero-demo-cta {
  width: 100%;
  margin-top: 16px;
}

.trust-strip {
  padding: 10px 0 38px;
}

.trust-strip-inner {
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 247, 239, 0.84);
  box-shadow: var(--shadow-sm);
}

.trust-strip-inner strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.02rem;
}

.trust-strip-inner p {
  margin: 0;
  color: var(--text-muted);
}

.trust-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.trust-pills span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(244, 229, 216, 0.9);
  border: 1px solid rgba(48, 24, 15, 0.08);
  font-weight: 700;
  color: var(--secondary);
}

.why-grid,
.privacy-grid {
  display: grid;
  gap: 18px;
}

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

.why-card {
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(255, 247, 239, 0.94);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.why-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.why-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.why-body {
  padding: 18px 20px 22px;
}

.why-body strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.08rem;
  letter-spacing: -0.03em;
}

.why-body p {
  margin: 0 0 8px;
  color: var(--text-muted);
}

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

.privacy-card {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: rgba(255, 247, 239, 0.9);
  box-shadow: var(--shadow-sm);
}

.privacy-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.06rem;
}

.privacy-card p {
  margin: 0;
  color: var(--text-muted);
}

.soft-section {
  position: relative;
}

.soft-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(248, 252, 255, 0.74), rgba(235, 244, 255, 0.68));
}

.benefit-grid,
.step-grid,
.scenario-grid,
.pricing-grid,
.footer-grid {
  display: grid;
  gap: 18px;
}

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

.step-grid,
.scenario-grid,
.pricing-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.benefit-card,
.step-card,
.scenario-card,
.pricing-card,
.faq-item,
.final-cta {
  border: 1px solid var(--border);
  border-radius: 26px;
  background: rgba(255, 247, 239, 0.88);
  box-shadow: var(--shadow-sm);
}

.benefit-card,
.step-card,
.scenario-card,
.pricing-card {
  padding: 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.benefit-card:hover,
.step-card:hover,
.scenario-card:hover,
.pricing-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(215, 25, 32, 0.18);
}

.benefit-card strong,
.step-card strong,
.scenario-card strong,
.pricing-card .pricing-name {
  display: block;
  margin-bottom: 10px;
  font-size: 1.08rem;
  letter-spacing: -0.03em;
}

.photo-card {
  overflow: hidden;
  padding: 0;
}

.photo-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.photo-card-copy {
  padding: 20px 22px 22px;
}

.step-no {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 12px;
  color: var(--secondary);
  background: rgba(215, 25, 32, 0.1);
  font-size: 0.84rem;
  font-weight: 800;
}

.scenario-label,
.pricing-badge {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
}

.scenario-label {
  color: var(--secondary);
  background: rgba(90, 51, 38, 0.08);
}

.scenario-before,
.scenario-after,
.pricing-card p,
.pricing-card li,
.faq-item p,
.step-card p,
.benefit-card p {
  margin: 0;
  color: var(--text-muted);
}

.scenario-after {
  margin-top: 10px;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-card ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.pricing-value {
  font-size: 1.55rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.pricing-value small {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
}

.pricing-badge {
  color: #fff;
  background: linear-gradient(135deg, var(--secondary), #8a5a44);
}

.pricing-card.featured {
  background: linear-gradient(180deg, rgba(247, 251, 255, 0.98), rgba(236, 244, 255, 0.94));
  border-color: rgba(215, 25, 32, 0.18);
}

.pricing-card.selected {
  border-color: rgba(46, 125, 50, 0.28);
  box-shadow: 0 18px 48px rgba(46, 125, 50, 0.12);
  background: linear-gradient(180deg, rgba(247, 255, 250, 0.98), rgba(239, 250, 243, 0.94));
}

.pricing-card .btn {
  margin-top: auto;
}

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

.faq-item {
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 1.1rem;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  padding: 0 20px 18px;
}

.final-cta {
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(180deg, rgba(255, 247, 239, 0.98), rgba(239, 247, 255, 0.94));
  box-shadow: var(--shadow-md);
}

.mid-cta-card {
  margin-top: 22px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255, 247, 239, 0.92);
  box-shadow: var(--shadow-sm);
}

.mid-cta-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.06rem;
  letter-spacing: -0.03em;
}

.mid-cta-card p {
  margin: 0;
  color: var(--text-muted);
}

.footer-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: start;
}

.footer-sales a {
  text-decoration: underline;
  text-decoration-color: rgba(72, 49, 36, 0.18);
  text-underline-offset: 3px;
}

.trust-section {
  padding-top: 8px;
  padding-bottom: 14px;
}

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

.trust-compact-card {
  padding: 18px 20px;
  border: 1px solid rgba(48, 24, 15, 0.08);
  border-radius: 22px;
  background: rgba(255, 247, 239, 0.95);
  box-shadow: var(--shadow-xs);
}

.trust-compact-card strong {
  display: block;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.trust-compact-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.65;
}

.quick-test-section {
  padding-top: 2px;
  scroll-margin-top: 104px;
}

.quick-test-layout,
.content-layout {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  align-items: start;
}

.quick-test-narrow,
.seo-narrow {
  max-width: 920px;
}

.quick-test-copy,
.quick-test-tool,
.content-section {
  border: 1px solid var(--border);
  border-radius: 26px;
  background: rgba(255, 247, 239, 0.9);
  box-shadow: var(--shadow-sm);
}

.quick-test-copy,
.quick-test-tool,
.content-section {
  padding: 24px;
}

.quick-test-narrow {
  display: grid;
  gap: 10px;
}

.quick-test-copy {
  background: linear-gradient(180deg, rgba(255, 247, 239, 0.98), rgba(239, 247, 255, 0.94));
}

.quick-test-copy h2,
.page-hero h1 {
  margin: 14px 0 12px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.quick-test-copy h2 {
  font-size: clamp(1.38rem, 1.9vw, 1.82rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.quick-test-copy .lead {
  font-size: 0.98rem;
}

.quick-test-steps {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.quick-test-step {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(48, 24, 15, 0.08);
  background: rgba(244, 229, 216, 0.88);
}

.quick-test-step strong {
  display: block;
  margin-bottom: 4px;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.inline-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(48, 24, 15, 0.1);
  background: rgba(244, 229, 216, 0.92);
  font-weight: 700;
  color: var(--secondary);
}

.tool-grid {
  display: grid;
  gap: 16px;
}

.tool-scenario-group,
.tone-picker,
.goal-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.scenario-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.scenario-toggle,
.tone-chip {
  position: relative;
  display: inline-flex;
}

.scenario-toggle input,
.tone-chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.scenario-toggle span,
.tone-chip span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(48, 24, 15, 0.1);
  background: rgba(255, 247, 239, 0.98);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.scenario-row .scenario-toggle {
  display: flex;
}

.scenario-row .scenario-toggle span {
  width: 100%;
  justify-content: center;
  padding-inline: 10px;
  text-align: center;
  white-space: nowrap;
}

.scenario-toggle input:checked + span,
.tone-chip input:checked + span {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #5a3326);
  border-color: rgba(215, 25, 32, 0.24);
  box-shadow: 0 14px 30px rgba(215, 25, 32, 0.18);
}

.tone-picker.is-disabled {
  opacity: 0.55;
}

.tone-chip.is-disabled span {
  cursor: not-allowed;
  color: var(--text-muted);
  background: rgba(244, 248, 255, 0.92);
  box-shadow: none;
}

.upload-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

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

.upload-panel-form .status {
  min-height: 20px;
}

.conversation-upload-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.conversation-upload-grid .upload-panel-form:first-child {
  grid-column: 1 / -1;
}

.conversation-upload-grid--single {
  grid-template-columns: 1fr;
}

.upload-panel,
.tool-note {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px dashed rgba(48, 24, 15, 0.18);
  background: rgba(244, 229, 216, 0.84);
}

.upload-panel {
  position: relative;
  display: grid;
  gap: 14px;
  min-height: 188px;
  cursor: pointer;
  border-style: solid;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 247, 239, 0.98), rgba(244, 229, 216, 0.95));
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.upload-panel:hover {
  transform: translateY(-2px);
  border-color: rgba(215, 25, 32, 0.24);
  box-shadow: var(--shadow-sm);
  background: rgba(249, 252, 255, 0.98);
}

.upload-panel input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-panel-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}

.upload-panel-head strong,
.upload-panel-caption,
.upload-panel-action,
.upload-panel-meta {
  display: block;
}

.upload-panel-head strong {
  margin-bottom: 4px;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.upload-panel-caption,
.upload-panel-meta {
  color: var(--text-muted);
  line-height: 1.5;
}

.upload-panel-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 247, 239, 0.96);
  border: 1px solid rgba(48, 24, 15, 0.12);
  font-weight: 800;
  color: var(--secondary);
}

.upload-panel-meta {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(48, 24, 15, 0.08);
  font-size: 0.92rem;
}

.upload-panel-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  min-height: 34px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(215, 25, 32, 0.1);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 800;
}

.upload-panel-primary {
  background: linear-gradient(180deg, rgba(255, 247, 239, 0.98), rgba(237, 245, 255, 0.96));
}

.tone-picker-compact .tone-chip span {
  min-height: 40px;
  padding: 9px 12px;
}

.chat-composer-card {
  display: grid;
  gap: 14px;
}

.chat-composer-window {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(48, 24, 15, 0.1);
  border-radius: 24px;
  background: rgba(255, 247, 239, 0.98);
  box-shadow: var(--shadow-sm);
}

.chat-composer-head strong,
.chat-composer-head span,
.chat-composer-hint,
.chat-attachments-meta {
  display: block;
}

.chat-composer-head strong {
  margin-bottom: 6px;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.chat-composer-head span,
.chat-composer-hint,
.chat-attachments-meta {
  color: var(--text-muted);
  line-height: 1.6;
}

.chat-composer-window textarea {
  min-height: 168px;
  resize: vertical;
  border-radius: 18px;
  border: 1px solid rgba(48, 24, 15, 0.1);
  background: rgba(255, 247, 239, 0.94);
  padding: 16px 18px;
  font: inherit;
  color: var(--text);
}

.chat-composer-window textarea:focus {
  outline: none;
  border-color: rgba(215, 25, 32, 0.28);
  box-shadow: 0 0 0 4px rgba(215, 25, 32, 0.08);
}

.chat-composer-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.chat-optional-note {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.chat-attach-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(244, 229, 216, 0.96);
  border: 1px solid rgba(48, 24, 15, 0.12);
  font-weight: 800;
  color: var(--secondary);
  cursor: pointer;
  overflow: hidden;
}

.nav-actions-dashboard {
  justify-content: flex-end;
}

.meta-pill-user {
  background: linear-gradient(135deg, rgba(215, 25, 32, 0.12), rgba(132, 192, 255, 0.22));
  color: var(--secondary);
}

.meta-pill-ai {
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.12), rgba(134, 239, 172, 0.2));
  color: #166534;
}

.dashboard-shell .panel-stack {
  gap: 24px;
}

.workspace-card-dashboard,
.admin-panel-card {
  overflow: hidden;
}

.workspace-top-dashboard {
  align-items: stretch;
}

.dashboard-hero-copy {
  max-width: 720px;
}

.quick-stats-dashboard {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: min(100%, 430px);
}

.quick-stat-accent {
  background: linear-gradient(180deg, rgba(244, 229, 216, 0.96), rgba(255, 247, 239, 0.98));
}

.quick-stat-calm {
  background: linear-gradient(180deg, rgba(242, 247, 255, 0.96), rgba(255, 247, 239, 0.98));
}

.quick-stat-success {
  background: linear-gradient(180deg, rgba(237, 252, 242, 0.98), rgba(255, 247, 239, 0.98));
}

.dashboard-workspace-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: start;
}

.dashboard-billing-card {
  display: grid;
  gap: 18px;
}

.dashboard-pricing-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.helper-card-dashboard {
  background: linear-gradient(180deg, rgba(246, 250, 255, 0.95), rgba(255, 247, 239, 0.98));
}

.dashboard-chat-card {
  display: grid;
  gap: 18px;
}

.dashboard-chat-top {
  align-items: center;
}

.dashboard-create-chat {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(48, 24, 15, 0.08);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 247, 239, 0.98), rgba(255, 247, 239, 0.98));
}

.dashboard-create-chat[hidden] {
  display: none;
}

.dashboard-create-chat .quick-test-tool {
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.dashboard-create-chat .tool-grid {
  gap: 18px;
}

.conversation-list .item {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.conversation-list .item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(215, 25, 32, 0.18);
}

.conversation-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.conversation-card__thumb {
  width: 112px;
  height: 148px;
  padding: 8px;
  border-radius: 20px;
  object-fit: contain;
  object-position: center top;
  border: 1px solid rgba(48, 24, 15, 0.1);
  background: rgba(244, 229, 216, 0.92);
}

.conversation-card__thumb--empty {
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.conversation-card__body {
  display: grid;
  gap: 12px;
}

.conversation-card__visible {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.conversation-card__identity {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.conversation-card__name {
  font-size: 1.12rem;
  font-weight: 850;
  color: var(--text-strong);
}

.conversation-card__age {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #0f4b2a;
  background: linear-gradient(135deg, rgba(220, 252, 231, 0.9), rgba(236, 253, 245, 0.98));
  border: 1px solid rgba(34, 197, 94, 0.16);
  font-weight: 750;
}

.conversation-card__purpose {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.conversation-card__purpose span,
.conversation-card__comment {
  border: 1px solid rgba(48, 24, 15, 0.1);
  background: rgba(255, 247, 239, 0.94);
}

.conversation-card__purpose span {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.conversation-card__comment {
  padding: 12px 14px;
  border-radius: 16px;
  color: var(--text-strong);
}

.conversation-card__spoiler {
  border-top: 1px solid rgba(48, 24, 15, 0.08);
  padding-top: 10px;
}

.conversation-card__spoiler summary {
  width: max-content;
  max-width: 100%;
  cursor: pointer;
  color: var(--secondary);
  font-size: 0.92rem;
  font-weight: 800;
  list-style: none;
}

.conversation-card__spoiler summary::-webkit-details-marker {
  display: none;
}

.conversation-card__spoiler summary::after {
  content: " ↓";
  color: var(--text-muted);
  font-weight: 700;
}

.conversation-card__spoiler[open] summary::after {
  content: " ↑";
}

.conversation-card__spoiler-body {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.conversation-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.conversation-card__head h3 {
  margin: 0;
}

.conversation-card__menu {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.conversation-trash-btn {
  min-width: 42px;
  padding-inline: 12px;
  color: #b51218;
  border-color: rgba(215, 25, 32, 0.22);
  background: rgba(255, 246, 245, 0.96);
}

.conversation-trash-btn:hover {
  border-color: rgba(215, 25, 32, 0.4);
  background: rgba(255, 235, 232, 0.98);
}

.conversation-card__summary {
  margin: 0;
  color: var(--text-muted);
}

.conversation-card__last-message,
.conversation-card__next-step {
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.conversation-card__last-message {
  color: var(--text-strong);
  background: rgba(255, 247, 239, 0.96);
  border: 1px solid rgba(48, 24, 15, 0.08);
}

.conversation-card__next-step {
  color: #0f4b2a;
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.92), rgba(240, 253, 244, 0.98));
  border: 1px solid rgba(34, 197, 94, 0.14);
  font-weight: 700;
}

.conversation-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.conversation-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.conversation-card__editor {
  display: grid;
  gap: 12px;
  margin-top: 8px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(48, 24, 15, 0.08);
  background: rgba(246, 250, 255, 0.9);
}

.trace-details {
  padding: 16px;
  border: 1px solid rgba(185, 142, 118, 0.9);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 247, 239, 0.98), rgba(255, 247, 239, 0.96));
  box-shadow: var(--shadow-soft);
}

.trace-details summary {
  display: grid;
  gap: 6px;
  cursor: pointer;
  color: var(--text-strong);
  font-weight: 800;
}

.trace-details summary strong {
  display: block;
  max-height: 2.8em;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
}

.trace-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.trace-item {
  padding: 12px 14px;
  border: 1px solid rgba(185, 142, 118, 0.75);
  border-radius: 16px;
  background: rgba(255, 247, 239, 0.92);
}

.trace-item strong {
  display: block;
  margin-bottom: 6px;
}

.trace-item p {
  margin: 0;
  color: var(--text-muted);
}

.trace-item time {
  display: block;
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 0.82rem;
}

.legal-page {
  max-width: 980px;
  margin: 0 auto;
  line-height: 1.72;
}

.legal-page h1 {
  max-width: 860px;
}

.legal-page h2 {
  margin: 34px 0 12px;
  color: var(--text-strong);
  font-size: clamp(1.22rem, 1.7vw, 1.55rem);
}

.legal-page p {
  margin: 0 0 14px;
}

.legal-page ul {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding-left: 22px;
  color: var(--text-muted);
}

.legal-page a {
  color: var(--primary);
  font-weight: 800;
}

.partner-hero {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin-top: 20px;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 247, 239, 0.98), rgba(239, 247, 255, 0.94));
  border: 1px solid rgba(48, 24, 15, 0.08);
}

.partner-hero__image {
  width: 180px;
  height: 236px;
  padding: 10px;
  border-radius: 24px;
  object-fit: contain;
  object-position: center top;
  border: 1px solid rgba(48, 24, 15, 0.1);
  background: rgba(244, 229, 216, 0.92);
}

.partner-hero__body {
  display: grid;
  gap: 10px;
}

.conversation-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 247, 239, 0.94);
  border: 1px solid rgba(48, 24, 15, 0.08);
}

.conversation-search {
  flex: 1 1 280px;
  margin: 0;
}

.suggestion-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.workflow-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.workflow-step {
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 247, 239, 0.96), rgba(255, 247, 239, 0.98));
  border: 1px solid rgba(48, 24, 15, 0.08);
}

.workflow-step span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  margin-bottom: 10px;
}

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

.workflow-step p {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.advanced-upload-details {
  border: 1px solid rgba(48, 24, 15, 0.1);
  border-radius: 20px;
  background: rgba(255, 247, 239, 0.78);
  padding: 14px;
}

.advanced-upload-details summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--text-strong);
}

.advanced-upload-grid {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.suggestion-item__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.suggestion-tone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 247, 205, 0.95);
  color: #8a5a00;
  font-size: 0.78rem;
  font-weight: 800;
}

.empty-state-action {
  display: grid;
  gap: 6px;
}

.admin-sidebar {
  background: linear-gradient(180deg, rgba(255, 247, 239, 0.98), rgba(240, 247, 255, 0.94));
}

.admin-panel-card {
  padding: 24px;
}

.admin-kpi-grid-modern {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.stat-card-payment {
  background: linear-gradient(180deg, rgba(241, 245, 255, 0.98), rgba(255, 247, 239, 0.98));
}

.stat-card-success {
  background: linear-gradient(180deg, rgba(236, 253, 245, 0.98), rgba(255, 247, 239, 0.98));
}

.stat-card-pending {
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.98), rgba(255, 247, 239, 0.98));
}

.stat-card-warning {
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.98), rgba(255, 247, 239, 0.98));
}

.stat-card-danger {
  background: linear-gradient(180deg, rgba(254, 242, 242, 0.98), rgba(255, 247, 239, 0.98));
}

.stat-card-revenue {
  background: linear-gradient(180deg, rgba(244, 229, 216, 0.98), rgba(255, 247, 239, 0.98));
}

.promo-strip-modern {
  flex-wrap: wrap;
  align-items: stretch;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 247, 239, 0.94), rgba(255, 247, 239, 0.98));
}

.promo-strip-modern > div {
  min-width: 180px;
  flex: 1 1 180px;
}

.data-table-modern {
  display: block;
  width: 100%;
  overflow-x: auto;
}

.data-table-modern thead,
.data-table-modern tbody {
  width: 100%;
}

.data-table-modern tbody tr {
  background: rgba(255, 247, 239, 0.92);
  box-shadow: inset 0 0 0 1px rgba(48, 24, 15, 0.06);
}

.data-table-modern tbody tr:hover {
  background: rgba(240, 247, 255, 0.96);
}

.data-table-modern td:first-child {
  border-top-left-radius: 14px;
  border-bottom-left-radius: 14px;
}

.data-table-modern td:last-child {
  border-top-right-radius: 14px;
  border-bottom-right-radius: 14px;
}

.admin-panels > .admin-panel-card[data-admin-panel="billing"],
.admin-billing-card {
  grid-column: 1 / -1;
}

.admin-panels > .admin-panel-card[data-admin-panel="billing"] .detail-grid,
.billing-stack-grid {
  grid-template-columns: 1fr;
  gap: 20px;
}

.admin-billing-editor .list {
  display: grid;
  gap: 16px;
}

.admin-billing-editor .list .item {
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 247, 239, 0.95), rgba(255, 247, 239, 0.98));
}

.admin-payments-card .payments-table {
  table-layout: auto;
}

.admin-payments-card .payments-table th,
.admin-payments-card .payments-table td {
  vertical-align: middle;
}

.admin-payments-card .payments-table th:nth-child(1),
.admin-payments-card .payments-table td:nth-child(1) {
  min-width: 220px;
}

.admin-payments-card .payments-table th:nth-child(2),
.admin-payments-card .payments-table td:nth-child(2) {
  min-width: 220px;
}

.admin-payments-card .payments-table th:nth-child(3),
.admin-payments-card .payments-table td:nth-child(3) {
  min-width: 110px;
}

.admin-payments-card .payments-table th:nth-child(4),
.admin-payments-card .payments-table td:nth-child(4) {
  min-width: 110px;
  white-space: nowrap;
}

.admin-payments-card .payments-table th:nth-child(5),
.admin-payments-card .payments-table td:nth-child(5) {
  min-width: 180px;
}

.admin-payments-card .payments-table th:nth-child(6),
.admin-payments-card .payments-table td:nth-child(6) {
  min-width: 160px;
  white-space: nowrap;
}

.billing-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.billing-dashboard-card {
  border: 1px solid rgba(48, 24, 15, 0.08);
  border-radius: 24px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(255, 247, 239, 0.96), rgba(255, 247, 239, 0.99));
  box-shadow: inset 0 1px 0 rgba(255, 247, 239, 0.65);
}

.billing-dashboard-card h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.billing-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.billing-kpi {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 104px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 247, 239, 0.88);
  border: 1px solid rgba(48, 24, 15, 0.08);
}

.billing-kpi span {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.billing-kpi strong {
  font-size: clamp(1.4rem, 2vw, 2rem);
  line-height: 1;
  color: var(--text);
}

.billing-kpi-revenue {
  background: linear-gradient(180deg, rgba(244, 229, 216, 0.98), rgba(255, 247, 239, 0.98));
}

.billing-kpi-success {
  background: linear-gradient(180deg, rgba(236, 253, 245, 0.98), rgba(255, 247, 239, 0.98));
}

.billing-kpi-pending {
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.98), rgba(255, 247, 239, 0.98));
}

.billing-progress-block {
  margin-top: 18px;
}

.payment-mix {
  display: flex;
  gap: 8px;
  width: 100%;
  height: 14px;
  margin-top: 12px;
}

.payment-mix-segment {
  min-width: 0;
  border-radius: 999px;
  transition: flex-grow 0.2s ease;
}

.payment-mix-segment.succeeded {
  background: linear-gradient(90deg, #22c55e, #86efac);
}

.payment-mix-segment.pending {
  background: linear-gradient(90deg, #8a5a44, #fde68a);
}

.payment-mix-segment.other {
  background: linear-gradient(90deg, #60a5fa, #c4b5fd);
}

.payment-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 12px;
}

.payment-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.payment-legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.payment-legend-swatch.succeeded {
  background: #22c55e;
}

.payment-legend-swatch.pending {
  background: #8a5a44;
}

.payment-legend-swatch.other {
  background: #8b5cf6;
}

.mini-bars {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  min-height: 176px;
  margin-top: 14px;
}

.mini-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.mini-bar-track {
  display: flex;
  align-items: end;
  width: 100%;
  min-height: 128px;
  padding: 8px 0 0;
}

.mini-bar-fill {
  width: 100%;
  border-radius: 16px 16px 10px 10px;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.9), rgba(147, 197, 253, 0.72));
  min-height: 10px;
}

.mini-bar-fill.is-empty {
  background: rgba(226, 232, 240, 0.9);
}

.mini-bar-value {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--text);
}

.mini-bar-label {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.funnel-inline {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.funnel-step {
  display: grid;
  grid-template-columns: minmax(120px, 0.9fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.funnel-step strong {
  font-size: 0.94rem;
}

.funnel-step span {
  color: var(--text-muted);
  font-size: 0.86rem;
}

.funnel-step-bar {
  position: relative;
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.9);
  overflow: hidden;
}

.funnel-step-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.92), rgba(125, 211, 252, 0.88));
}

.funnel-step-value {
  font-weight: 800;
  color: var(--text);
}

.funnel-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 247, 239, 0.88);
  border: 1px solid rgba(48, 24, 15, 0.08);
}

.funnel-note p {
  margin: 8px 0 0;
  color: var(--text-muted);
}

.status-chip,
.tier-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.tier-chip-free {
  color: var(--secondary);
  background: rgba(90, 51, 38, 0.08);
}

.tier-chip-pro {
  color: #1d4ed8;
  background: rgba(59, 130, 246, 0.14);
}

.tier-chip-max {
  color: #7c2d12;
  background: rgba(251, 191, 36, 0.2);
}

.status-chip-pending {
  color: #9a3412;
  background: rgba(251, 191, 36, 0.22);
}

.status-chip-succeeded {
  color: #166534;
  background: rgba(74, 222, 128, 0.22);
}

.status-chip-canceled,
.status-chip-failed {
  color: #b91c1c;
  background: rgba(248, 113, 113, 0.18);
}

.status-chip-waiting_for_capture {
  color: #1d4ed8;
  background: rgba(96, 165, 250, 0.18);
}

.status-chip-refunded {
  color: #6d28d9;
  background: rgba(196, 181, 253, 0.22);
}

.status-chip-neutral {
  color: var(--secondary);
  background: rgba(226, 232, 240, 0.9);
}

.status {
  display: flex;
  align-items: center;
  min-height: 24px;
  margin-top: 12px;
}

.status.error,
.status.success {
  padding: 10px 12px;
  border-radius: 14px;
}

.status.error {
  background: rgba(254, 242, 242, 0.96);
}

.status.success {
  background: rgba(236, 253, 245, 0.96);
}

@media (max-width: 1180px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-layout aside {
    position: static;
  }
}

@media (max-width: 960px) {
  .billing-dashboard-grid,
  .billing-kpi-grid,
  .quick-stats-dashboard,
  .dashboard-workspace-grid {
    grid-template-columns: 1fr;
  }

  .workspace-top-dashboard {
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .nav-actions-dashboard {
    width: 100%;
    justify-content: flex-start;
  }

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

  .promo-strip-modern > div {
    min-width: 100%;
  }

  .mini-bars {
    gap: 8px;
  }

  .funnel-step {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .admin-payments-card .payments-table th:nth-child(1),
  .admin-payments-card .payments-table td:nth-child(1),
  .admin-payments-card .payments-table th:nth-child(2),
  .admin-payments-card .payments-table td:nth-child(2) {
    min-width: 180px;
  }
}

@media (max-width: 560px) {
  .admin-kpi-grid-modern,
  .quick-stats-dashboard,
  .billing-kpi-grid {
    grid-template-columns: 1fr;
  }

  .workspace-card-dashboard,
  .admin-panel-card,
  .action-card-dashboard,
  .data-card-dashboard {
    padding: 20px;
  }

  .brand-title {
    max-width: 180px;
    font-size: 0.92rem;
  }

  .app-page .workspace-card-dashboard,
  .app-page .admin-panel-card,
  .app-page .action-card-dashboard,
  .app-page .data-card-dashboard,
  .app-page .app-intro-card,
  .app-page .app-form-card,
  .app-page .action-card,
  .app-page .data-card,
  .app-page .result-card,
  .app-page .workspace-card,
  .app-page .info-card {
    padding: 18px;
  }

  .app-page .quick-stat,
  .app-page .stat-card {
    padding: 13px 14px;
  }

  .app-page .meta-pill {
    padding: 7px 10px;
    font-size: 0.78rem;
  }
}

.chat-attach-btn input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.chat-attachments-meta {
  font-size: 0.92rem;
}

.chat-attachments-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.attachment-preview-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  max-width: 220px;
  padding: 7px 10px;
  border: 1px solid rgba(48, 24, 15, 0.1);
  border-radius: 999px;
  background: rgba(255, 247, 239, 0.96);
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-thumb {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(48, 24, 15, 0.1);
  background: rgba(244, 229, 216, 0.9);
  box-shadow: var(--shadow-xs);
}

.chat-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-thumb-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--secondary);
}

.chat-composer-hint {
  margin: 0;
  font-size: 0.95rem;
}

.tool-field-note {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.tool-note {
  border-style: solid;
}

.tool-note strong {
  display: block;
  margin-bottom: 6px;
}

.greeting-output {
  display: grid;
  gap: 12px;
}

.greeting-card {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(48, 24, 15, 0.08);
  background: rgba(255, 247, 239, 0.98);
}

.greeting-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.greeting-card strong {
  display: block;
  margin: 0;
}

.greeting-card p {
  margin: 0;
  white-space: pre-line;
}

.greeting-card-analysis {
  border-color: rgba(215, 25, 32, 0.16);
  background: linear-gradient(180deg, rgba(244, 248, 255, 0.98), rgba(255, 247, 239, 0.98));
}

.tool-status {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.tool-debug {
  margin-top: 10px;
  border: 1px solid rgba(48, 24, 15, 0.08);
  border-radius: 18px;
  background: rgba(255, 247, 239, 0.98);
  overflow: hidden;
}

.tool-debug summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
  font-weight: 700;
  color: var(--text-main);
}

.tool-debug summary::-webkit-details-marker {
  display: none;
}

.tool-debug-body {
  display: grid;
  gap: 12px;
  padding: 0 16px 16px;
}

.tool-debug-meta {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  color: var(--text-muted);
  font-size: 0.92rem;
}

.tool-debug-section {
  display: grid;
  gap: 6px;
}

.tool-debug-section strong {
  font-size: 0.92rem;
}

.tool-debug-section pre {
  margin: 0;
  padding: 12px 14px;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #274064;
  border-radius: 14px;
  background: rgba(242, 247, 255, 0.95);
  border: 1px solid rgba(48, 24, 15, 0.08);
}

.page-shell {
  padding: 30px 0 56px;
}

.page-hero {
  margin-bottom: 22px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 247, 239, 0.98), rgba(239, 247, 255, 0.94));
  box-shadow: var(--shadow-md);
}

.page-hero p {
  max-width: 760px;
}

.examples-grid,
.intent-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

.example-card {
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(48, 24, 15, 0.07);
  background: rgba(252, 253, 255, 0.98);
}

.example-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.example-card p,
.example-card ul {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.seo-copy {
  display: grid;
  gap: 14px;
}

.seo-copy h3 {
  margin: 10px 0 0;
  font-size: 1.28rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.seo-copy p {
  margin: 0;
  color: var(--text-muted);
}

.example-card ul {
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.why-it-works-grid,
.review-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.why-it-works-card,
.review-card,
.reason-example-card {
  padding: 20px 22px;
  border: 1px solid rgba(48, 24, 15, 0.08);
  border-radius: 24px;
  background: rgba(255, 247, 239, 0.96);
  box-shadow: var(--shadow-xs);
}

.why-it-works-card strong,
.review-card strong,
.reason-example-copy strong {
  display: block;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.why-it-works-card p,
.review-card p,
.reason-example-copy p,
.reason-example-list {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.68;
}

.reason-example-card {
  margin-top: 14px;
  display: grid;
  gap: 18px;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
}

.reason-example-list {
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.review-tag {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--secondary);
  background: rgba(90, 51, 38, 0.08);
}

.seo-footer-list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.seo-footer-list a {
  text-decoration: underline;
  text-decoration-color: rgba(48, 24, 15, 0.14);
  text-underline-offset: 3px;
}

.site-map-hero {
  padding: 76px 0 42px;
}

.site-map-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.site-map-card {
  display: grid;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255, 247, 239, 0.86);
  box-shadow: 0 18px 44px rgba(20, 56, 112, 0.08);
}

.site-map-card strong {
  font-size: 1.1rem;
}

.site-map-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.55;
}

.site-map-card a {
  width: fit-content;
}

@media (max-width: 1180px) {
  .quick-test-layout,
  .content-layout {
    grid-template-columns: 1fr;
  }

  .trust-strip-compact,
  .why-it-works-grid,
  .review-grid,
  .reason-example-card {
    grid-template-columns: 1fr;
  }

  .app-hero-grid,
  .app-workspace-grid,
  .conversation-workspace-grid {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .examples-grid,
  .intent-grid {
    grid-template-columns: 1fr;
  }

  .hero-sales-grid-with-media {
    max-width: 920px;
  }

  .hero-media-image {
    aspect-ratio: 4 / 5;
  }

  .hero-media-card-compact {
    width: min(100%, 380px);
  }

  .hero-media-card-compact .hero-media-image {
    aspect-ratio: 4 / 5;
    object-position: center 16%;
  }
}

@media (max-width: 760px) {
  .site-map-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1080px) {
  .hero-grid,
  .grid-2,
  .dashboard-grid,
  .conversation-grid,
  .admin-layout,
  .admin-panels,
  .step-grid,
  .scenario-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .admin-layout aside {
    position: static;
  }

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

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

  .app-metrics-row,
  .quick-stats,
  .context-badges,
  .memory-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  body::before {
    display: none;
  }

  .shell-header,
  .hero-copy,
  .card,
  .promo-strip,
  .hero-copy-sales,
  .hero-demo-card,
  .mid-cta-card,
  .quick-test-copy,
  .quick-test-tool,
  .content-section,
  .upload-panel {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .shell-header {
    background: #fff7ef;
  }

  .container {
    width: min(1180px, calc(100% - 28px));
  }

  .brand-logo {
    height: 38px;
  }

  .brand-heart {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .brand-title {
    max-width: 220px;
    font-size: 0.98rem;
  }

  .shell-header .container {
    align-items: center;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-copy-sales {
    padding: 22px;
  }

  .hero h1 {
    font-size: clamp(2.15rem, 7vw, 3.45rem);
    line-height: 0.96;
  }

  .hero-copy-sales .lead {
    font-size: 1rem;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions .btn {
    flex: 1 1 220px;
  }

  .landing-body .header-actions {
    position: relative;
    width: auto;
    align-items: center;
  }

  .landing-body .menu-toggle {
    display: inline-flex;
    align-self: center;
    min-height: 42px;
    padding: 8px 13px;
    gap: 6px;
    font-size: 0.92rem;
  }

  .landing-body .nav-actions {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 40;
    width: min(320px, calc(100vw - 28px));
    display: none;
    gap: 10px;
    align-items: stretch;
    max-height: calc(100vh - 110px);
    padding: 12px;
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(255, 247, 239, 0.98);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  }

  .landing-body .header-actions.is-open .nav-actions {
    display: grid;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .landing-body .header-actions.is-open .menu-toggle-icon {
    flex-direction: row;
    align-items: center;
  }

  .landing-body .nav-actions .btn {
    width: 100%;
  }

  .inline-editor-toolbar {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }

  .hero-demo-head {
    flex-direction: column;
  }

  .quick-test-section {
    padding-top: 18px;
  }

  .hero-demo-card-wide {
    margin-top: 14px;
  }

  .why-card img {
    height: 200px;
  }

  .app-intro-card,
  .app-form-card,
  .action-card,
  .data-card,
  .result-card,
  .workspace-card,
  .info-card {
    padding: 22px;
  }
}

@media (max-width: 720px) {
  .container {
    width: calc(100% - 20px);
  }

  body {
    background:
      linear-gradient(180deg, #fff7ef 0%, #f4e5d8 48%, #e8d3c0 100%);
  }

  .shell-header {
    padding: 12px 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .brand {
    width: 100%;
    justify-content: center;
  }

  .brand-textual {
    justify-content: flex-start;
    padding-left: 2px;
  }

  .brand-title {
    max-width: 175px;
    font-size: 0.94rem;
  }

  .hero-media-card {
    min-height: 0;
  }

  .hero-media-card-compact {
    width: min(100%, 320px);
  }

  .hero-media-card-compact .hero-media-image {
    aspect-ratio: 7 / 9;
    object-position: center 14%;
  }

  .hero-media-image {
    aspect-ratio: 3 / 4;
    object-position: center top;
  }

  .shell-header .container,
  .form-actions,
  .promo-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .shell-header .container {
    align-items: center;
  }

  .landing-body .nav-actions .btn,
  .hero-actions .btn,
  .final-cta .btn,
  .pricing-card .btn,
  .mid-cta-card .btn {
    width: 100%;
  }

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

  .hero-proof-row {
    gap: 8px;
  }

  .hero-proof-row .meta-pill:nth-child(3) {
    display: none;
  }

  .form-grid,
  .metrics,
  .stat-grid,
  .admin-kpi-grid,
  .benefit-grid,
  .footer-grid,
  .why-grid,
  .privacy-grid,
  .examples-grid,
  .intent-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .card,
  .promo-strip,
  .hero-copy-sales,
  .final-cta,
  .hero-demo-card,
  .mid-cta-card,
  .app-intro-card,
  .app-form-card,
  .action-card,
  .data-card,
  .result-card,
  .workspace-card,
  .info-card {
    padding: 18px;
  }

  .quick-test-copy,
  .quick-test-tool,
  .content-section,
  .upload-panel,
  .upload-panel-primary {
    background: #fff7ef;
    box-shadow: 0 16px 38px rgba(48, 24, 15, 0.08);
  }

  .hero-metrics,
  .trust-strip-inner,
  .final-cta,
  .mid-cta-card,
  .hero-demo-responses-head,
  .workspace-top,
  .panel-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .trust-pills {
    justify-content: flex-start;
  }

  .suggestion-item {
    flex-direction: column;
  }

  .suggestion-item .btn {
    width: 100%;
  }

  .conversation-card,
  .partner-hero {
    grid-template-columns: 1fr;
  }

  .conversation-card__thumb,
  .partner-hero__image {
    width: 100%;
    max-width: 260px;
    justify-self: start;
  }

  .conversation-card__visible {
    flex-direction: column;
  }

  .conversation-card__menu {
    width: 100%;
  }

  .conversation-card__menu .btn,
  .conversation-card__menu button {
    flex: 1 1 auto;
  }

  .conversation-toolbar,
  .suggestion-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  .app-page .shell-header .container {
    align-items: flex-start;
    gap: 10px;
  }

  .app-page .brand,
  .app-page .brand-textual {
    width: auto;
    justify-content: flex-start;
  }

  .app-page .nav-actions,
  .app-page .nav-actions-dashboard {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    justify-content: flex-start;
    margin-left: 0;
  }

  .app-page .nav-actions .meta-pill,
  .app-page .nav-actions-dashboard .meta-pill {
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
  }

  .app-page .nav-actions .btn.small,
  .app-page .nav-actions-dashboard .btn.small {
    width: 100%;
  }

  .app-page .workspace-top h1,
  .app-page .workspace-top h2,
  .app-page .app-intro-card h1,
  .app-page .app-form-card h1 {
    font-size: clamp(1.7rem, 8vw, 2.45rem);
    line-height: 1.02;
  }

  .app-page .context-badges {
    grid-template-columns: 1fr;
  }

  .admin-page .admin-menu {
    display: flex;
    gap: 10px;
    margin-right: -2px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .admin-page .admin-menu::-webkit-scrollbar {
    display: none;
  }

  .admin-page .admin-menu .btn {
    flex: 0 0 auto;
    white-space: nowrap;
    overflow-wrap: normal;
  }

  .chat-thumb {
    width: 64px;
    height: 64px;
  }

  .faq-item summary {
    padding-right: 52px;
  }

  .scenario-row .scenario-toggle span {
    min-height: 40px;
    padding-inline: 8px;
    font-size: 0.88rem;
  }

  .chat-composer-window {
    padding: 16px;
    border-radius: 20px;
  }

  .chat-composer-window textarea {
    min-height: 148px;
  }

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

.upload-panel {
    min-height: auto;
  }
}

.payment-result-shell {
  max-width: 920px;
}

.payment-result-card {
  display: grid;
  gap: 14px;
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255, 247, 239, 0.98), rgba(245, 249, 255, 0.94));
  box-shadow: var(--shadow-lg);
}

.payment-result-card h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.payment-result-meta {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.payment-result-actions {
  margin-top: 8px;
}

.payment-result-success {
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.16), transparent 38%),
    linear-gradient(180deg, rgba(255, 247, 239, 0.98), rgba(241, 253, 245, 0.94));
}

.payment-result-pending {
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.18), transparent 38%),
    linear-gradient(180deg, rgba(255, 247, 239, 0.98), rgba(255, 250, 238, 0.94));
}

.payment-result-error {
  background:
    radial-gradient(circle at top right, rgba(215, 25, 32, 0.16), transparent 38%),
    linear-gradient(180deg, rgba(255, 247, 239, 0.98), rgba(255, 243, 243, 0.94));
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 16px;
  z-index: 130;
  padding: 0;
  pointer-events: none;
}

.cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 20px;
  border: 1px solid rgba(26, 34, 56, 0.08);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 247, 214, 0.96), rgba(255, 247, 239, 0.96));
  box-shadow: 0 16px 40px rgba(19, 36, 76, 0.08);
  pointer-events: auto;
}

.cookie-banner__inner p {
  margin: 6px 0 0;
  color: var(--text-muted);
}

/* Chocolate cream theme override. Keep layout intact: colors, borders and shadows only. */
body {
  background:
    radial-gradient(circle at 14% 0%, rgba(255, 247, 239, 0.78), transparent 28%),
    radial-gradient(circle at 86% 6%, rgba(138, 90, 68, 0.14), transparent 26%),
    linear-gradient(180deg, var(--color-bg-card) 0%, var(--color-bg-soft) 46%, var(--color-bg-main) 100%);
}

.card,
.hero,
.hero-panel,
.quick-test-tool,
.feature-card,
.step-card,
.why-card,
.faq-item,
.case-card,
.review-card,
.pricing-card,
.plan-card,
.conversation-card,
.dashboard-card,
.admin-panel-card,
.auth-card,
.payment-card,
.payment-result-card,
.chat-composer-card,
.chat-composer-window,
.greeting-card,
.dialog-card,
.profile-card,
.helper-card,
.promo-strip,
.upload-panel,
.tool-note,
.site-map-card,
.content-card,
.cookie-banner__inner,
section.card {
  color: var(--color-text-main);
  background: rgba(255, 247, 239, 0.96);
  border-color: var(--color-border-soft);
  box-shadow: var(--shadow-card);
}

.shell-header,
.mobile-nav,
.modal,
.dropdown-menu {
  background: rgba(255, 247, 239, 0.96);
  border-color: var(--color-border-soft);
  box-shadow: var(--shadow-card);
}

.site-footer,
.footer,
.dark-section,
.admin-sidebar,
.deep-panel,
.footer-shell {
  color: var(--color-bg-card);
  background: var(--color-chocolate-dark);
  border-color: rgba(255, 247, 239, 0.14);
}

.site-footer a,
.footer a,
.dark-section a,
.admin-sidebar a,
.deep-panel a {
  color: var(--color-bg-card);
}

.muted,
.micro,
.tool-field-note,
.chat-composer-hint,
.chat-optional-note,
.section-subtitle,
.lead,
small {
  color: var(--color-text-muted);
}

.eyebrow,
.badge,
.pill,
.tier-chip,
.status-chip,
.nav-link,
.topic-link,
.tag,
.chip,
.helper-chip {
  color: var(--color-chocolate);
  background: rgba(90, 51, 38, 0.09);
  border-color: var(--color-border-soft);
}

.logo-mark,
.feature-icon,
.step-icon,
.why-icon,
.card-icon,
.icon-badge,
.menu-toggle-icon span {
  color: var(--color-chocolate);
  background: rgba(90, 51, 38, 0.10);
}

.heart,
.spark,
.active-icon,
.accent-icon {
  color: var(--color-red);
}

.btn,
button,
input,
textarea,
select,
.chat-attach-btn {
  border-color: var(--color-border-soft);
}

input,
textarea,
select,
.chat-composer-window textarea,
.form-control {
  color: var(--color-text-main);
  background: rgba(255, 247, 239, 0.98);
  border-color: var(--color-border-soft);
}

input:focus,
textarea:focus,
select:focus,
.chat-composer-window textarea:focus {
  border-color: var(--color-chocolate-light);
  box-shadow: 0 0 0 4px rgba(90, 51, 38, 0.14);
  outline: none;
}

.btn.primary,
button.btn.primary,
.primary,
.hero-actions .btn.primary,
.form-actions .btn.primary,
.section-actions .btn.primary {
  color: var(--color-red);
  background: rgba(255, 247, 239, 0.96);
  border: 1px solid var(--color-red);
  box-shadow: 0 12px 28px var(--color-red-shadow);
}

.btn.primary:hover,
button.btn.primary:hover,
.primary:hover,
.hero-actions .btn.primary:hover,
.form-actions .btn.primary:hover,
.section-actions .btn.primary:hover {
  color: var(--color-red-hover);
  background: #f4e5d8;
  border-color: var(--color-red-hover);
  box-shadow: 0 16px 34px rgba(215, 25, 32, 0.20);
}

.btn.secondary,
.btn.ghost,
.secondary,
.chat-attach-btn,
.menu-toggle {
  color: var(--color-chocolate);
  background: rgba(255, 247, 239, 0.92);
  border-color: var(--color-border-soft);
  box-shadow: none;
}

.btn.secondary:hover,
.btn.ghost:hover,
.secondary:hover,
.chat-attach-btn:hover,
.menu-toggle:hover {
  color: var(--color-chocolate-dark);
  background: rgba(244, 229, 216, 0.96);
  border-color: var(--color-border);
}

.scenario-toggle span,
.tone-chip span {
  color: var(--color-chocolate);
  background: rgba(255, 247, 239, 0.98);
  border-color: var(--color-border-soft);
  box-shadow: none;
}

.scenario-toggle input:checked + span,
.tone-chip input:checked + span,
.nav-actions .is-active,
.admin-nav .is-active,
[aria-selected="true"] {
  color: var(--color-bg-card);
  background: linear-gradient(135deg, var(--color-chocolate-dark), var(--color-chocolate));
  border-color: rgba(48, 24, 15, 0.34);
  box-shadow: 0 14px 30px rgba(48, 24, 15, 0.18);
}

.tone-chip.is-disabled span,
.btn:disabled,
button:disabled,
input:disabled,
textarea:disabled,
select:disabled {
  color: rgba(122, 90, 72, 0.76);
  background: rgba(215, 184, 159, 0.34);
  border-color: rgba(48, 24, 15, 0.10);
  box-shadow: none;
}

.success,
.status-success,
.tier-chip-pro,
.tier-chip-max {
  color: #30523a;
  background: rgba(244, 229, 216, 0.9);
  border-color: rgba(48, 82, 58, 0.18);
}

.warning,
.status-warning {
  color: #7a5a1f;
  background: rgba(244, 229, 216, 0.9);
  border-color: rgba(122, 90, 31, 0.20);
}

.danger,
.status-error,
.error,
.alert-error {
  color: var(--color-red-hover);
  background: rgba(255, 247, 239, 0.94);
  border-color: rgba(215, 25, 32, 0.20);
  box-shadow: 0 10px 24px var(--color-red-shadow);
}

table,
thead,
tbody,
tr,
td,
th {
  border-color: var(--color-border-soft);
}

thead,
.table-head {
  color: var(--color-chocolate);
  background: rgba(244, 229, 216, 0.82);
}

.progress-bar,
.meter,
.usage-bar {
  background: rgba(90, 51, 38, 0.14);
}

.progress-bar span,
.meter span,
.usage-bar span {
  background: linear-gradient(90deg, var(--color-chocolate), var(--color-chocolate-light));
}

.copy-suggestion-btn,
.greeting-copy-btn {
  color: var(--color-chocolate);
  background: rgba(244, 229, 216, 0.92);
  border-color: var(--color-border-soft);
}

.copy-suggestion-btn:hover,
.greeting-copy-btn:hover {
  color: var(--color-red-hover);
  border-color: var(--color-red-hover);
  box-shadow: 0 10px 24px var(--color-red-shadow);
}

.is-copied,
.copy-suggestion-btn.is-copied,
.greeting-copy-btn.is-copied {
  color: #30523a;
  background: rgba(244, 229, 216, 0.96);
  border-color: rgba(48, 82, 58, 0.22);
}

.payment-result-success,
.payment-result-pending,
.payment-result-error {
  background:
    radial-gradient(circle at top right, rgba(138, 90, 68, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(255, 247, 239, 0.98), rgba(244, 229, 216, 0.94));
}

::selection {
  color: var(--color-bg-card);
  background: var(--color-chocolate);
}
