:root {
  --bg: #f5f0e8;
  --bg-strong: #fffaf2;
  --card: rgba(255, 251, 245, 0.88);
  --card-strong: rgba(34, 47, 62, 0.96);
  --text: #16202a;
  --muted: #5f6a73;
  --line: rgba(22, 32, 42, 0.12);
  --accent: #d96d32;
  --accent-deep: #9d3e12;
  --sea: #1b6b73;
  --success: #1f7a53;
  --shadow: 0 24px 60px rgba(87, 59, 29, 0.15);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(217, 109, 50, 0.18), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(27, 107, 115, 0.18), transparent 22%),
    linear-gradient(180deg, #f6efe2 0%, #f4f1eb 48%, #ebe7df 100%);
}

.app-shell {
  width: min(100%, 560px);
  margin: 0 auto;
  padding: 14px 14px 22px;
}

.hero-card,
.recommend-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 18px;
  background: linear-gradient(145deg, rgba(255, 249, 240, 0.95), rgba(245, 235, 223, 0.88));
}

.compact-shell {
  min-height: calc(100vh - 36px);
  display: grid;
  align-content: start;
  gap: 14px;
}

.eyebrow,
.card-kicker,
.meta-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  font-weight: 800;
}

.eyebrow,
.card-kicker {
  color: var(--accent-deep);
}

h1,
h2 {
  margin: 10px 0 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.05;
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 24px;
}

.card-copy {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.compact-controls {
  display: grid;
  gap: 10px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 13px;
  font-weight: 700;
}

.field input,
.field select,
.primary-button,
.ghost-button,
.card-button {
  width: 100%;
  border-radius: 18px;
  font: inherit;
}

.field input,
.field select {
  border: 1px solid rgba(22, 32, 42, 0.14);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  padding: 15px 16px;
}

.button-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.button-row--single {
  grid-template-columns: 1fr;
}

.primary-button,
.ghost-button,
.card-button {
  border: 0;
  text-decoration: none;
  text-align: center;
  padding: 15px 16px;
  font-weight: 800;
  cursor: pointer;
}

.primary-button,
.card-button {
  background: linear-gradient(135deg, var(--accent) 0%, #ff9761 100%);
  color: white;
}

.ghost-button {
  background: rgba(22, 32, 42, 0.06);
  color: var(--text);
}

.card-button--light {
  background: rgba(255, 255, 255, 0.14);
  color: white;
}

.link-grid {
  display: grid;
  gap: 10px;
}

.result-inline,
.alt-block {
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(22, 32, 42, 0.08);
  background: rgba(255, 255, 255, 0.58);
}

.link-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(22, 32, 42, 0.08);
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
}

.link-chip span:last-child {
  color: var(--accent-deep);
}

.channel-list {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.channel-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(22, 32, 42, 0.08);
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
}

.channel-row__badge {
  flex: 0 0 auto;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(217, 109, 50, 0.14);
  color: var(--accent-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.channel-row__name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.channel-row__price {
  flex: 0 0 auto;
  color: var(--success);
  font-weight: 800;
}

.channel-row__cta {
  flex: 0 0 auto;
  color: var(--accent-deep);
}

.summary-line {
  margin: 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.summary-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.summary-value-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.inline-action {
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.product-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.mode-channels-only .compact-controls {
  display: none;
}

.mode-channels-only #primaryDescription,
.mode-channels-only #primaryTitle,
.mode-channels-only #primaryLabel {
  display: none;
}

.footnote {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
