:root {
  --bg: #f5efe4;
  --bg-strong: #e7ddca;
  --surface: rgba(255, 252, 246, 0.9);
  --surface-strong: #fffdf8;
  --text: #1f1a16;
  --muted: #665d54;
  --accent: #0f9d58;
  --line: rgba(31, 26, 22, 0.1);
  --shadow: 0 20px 60px rgba(63, 45, 24, 0.12);
}

* { 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(15, 157, 88, 0.16), transparent 30%),
    radial-gradient(circle at bottom right, rgba(193, 124, 45, 0.16), transparent 25%),
    linear-gradient(135deg, var(--bg), var(--bg-strong));
}

.layout {
  width: min(980px, calc(100% - 24px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.hero,
.panel,
.note-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.hero {
  padding: 28px;
  margin-bottom: 18px;
}

.hero-simple h1 {
  max-width: 12ch;
  font-size: clamp(2.4rem, 7vw, 4.8rem);
  line-height: 1.02;
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
}

.eyebrow {
  margin: 0 0 10px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.lead,
.panel-header p,
.hint,
.saved-description,
.empty-state,
.event-log {
  color: var(--muted);
}

.lead {
  max-width: 60ch;
  line-height: 1.7;
}

.panel {
  padding: 24px;
  margin-bottom: 18px;
}

.panel-header {
  margin-bottom: 18px;
}

.panel-header h2,
.saved-card h3,
.note-card h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
}

.form-grid,
.advanced-grid,
.saved-links,
.notes,
.toolbar {
  display: grid;
  gap: 16px;
}

.simple-form {
  gap: 14px;
}

.two-col,
.three-col,
.notes {
  display: grid;
  gap: 16px;
}

.two-col { grid-template-columns: repeat(2, 1fr); }
.three-col { grid-template-columns: repeat(3, 1fr); }
.notes { grid-template-columns: repeat(2, 1fr); }

label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

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

input,
textarea,
select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-strong);
  color: var(--text);
}

textarea { resize: vertical; }

.checkbox {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.checkbox input {
  width: 18px;
  height: 18px;
}

.actions,
.saved-footer {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

button,
.link-button {
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 140ms ease, background 140ms ease;
}

button:hover,
.link-button:hover { transform: translateY(-1px); }

button[type="submit"],
.link-button {
  background: var(--accent);
  color: white;
}

.button-secondary,
.secondary-link {
  background: rgba(31, 26, 22, 0.06);
  color: var(--text);
  text-decoration: none;
}

.output-simple {
  display: grid;
  gap: 8px;
}

.advanced-box {
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px dashed var(--line);
  background: rgba(255, 255, 255, 0.4);
}

.advanced-box summary {
  cursor: pointer;
  font-weight: 700;
}

.advanced-grid {
  margin-top: 16px;
}

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

.empty-state {
  padding: 14px 16px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.42);
}

.saved-links-simple {
  grid-template-columns: 1fr;
}

.saved-card,
.note-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.38);
}

.special-note {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(15, 157, 88, 0.24);
  background: rgba(15, 157, 88, 0.08);
}

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

.saved-card-active {
  border-color: rgba(15, 157, 88, 0.5);
  box-shadow: 0 14px 30px rgba(15, 157, 88, 0.1);
}

.tiktok-fastlane .chip-wrap,
.tiktok-fastlane .insight-grid {
  display: none;
}

.tiktok-fastlane .actions {
  justify-content: center;
}

.tiktok-fastlane .link-button,
.tiktok-fastlane .button-secondary {
  min-width: 220px;
  min-height: 58px;
  font-size: 1.15rem;
}

.saved-card-header {
  display: grid;
  gap: 4px;
}

.saved-meta {
  font-size: 0.9rem;
  color: var(--muted);
}

.saved-description {
  margin: 0;
  line-height: 1.55;
}

.saved-footer {
  align-items: center;
  justify-content: space-between;
}

.event-log {
  margin: 0;
  padding-left: 18px;
  line-height: 1.7;
}

@media (max-width: 820px) {
  .two-col,
  .three-col,
  .notes,
  .toolbar {
    grid-template-columns: 1fr;
  }

  .layout {
    width: min(100% - 16px, 980px);
    padding-top: 18px;
  }

  .panel,
  .hero {
    padding: 18px;
  }
}
