:root {
  --ink: #162033;
  --muted: #687387;
  --line: #e7dccd;
  --panel: rgba(255, 253, 248, 0.9);
  --panel-strong: #fffaf2;
  --cream: #fff7eb;
  --navy: #10233f;
  --midnight: #0b1b32;
  --blue: #2f6f9f;
  --teal: #2d9d91;
  --green: #2f9f63;
  --gold: #d9952c;
  --coral: #e25d4f;
  --berry: #9f4d7a;
  --shadow: 0 18px 48px rgba(28, 35, 49, 0.14);
  --shadow-soft: 0 10px 28px rgba(28, 35, 49, 0.1);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% -8%, rgba(226, 93, 79, 0.18), transparent 30rem),
    radial-gradient(circle at 78% 0%, rgba(45, 157, 145, 0.22), transparent 34rem),
    linear-gradient(135deg, #fff8ee 0%, #f7efe3 42%, #edf7f4 100%);
}

body.theme-dark {
  --ink: #eef7f6;
  --muted: #a8bbc2;
  --line: rgba(145, 182, 183, 0.24);
  --panel: rgba(11, 27, 32, 0.84);
  --panel-strong: #10262c;
  --cream: #0d2024;
  --navy: #e8f5ef;
  --midnight: #061719;
  --blue: #65b8d2;
  --teal: #58d2bd;
  --green: #72d59b;
  --gold: #efbd67;
  --coral: #f17e72;
  --berry: #f0a9c9;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.26);
  background:
    radial-gradient(circle at 12% -8%, rgba(241, 126, 114, 0.15), transparent 30rem),
    radial-gradient(circle at 78% 0%, rgba(88, 210, 189, 0.16), transparent 34rem),
    linear-gradient(135deg, #071416 0%, #0c1f24 48%, #132a2d 100%);
}

body.theme-light {
  color-scheme: light;
}

body.theme-dark {
  color-scheme: dark;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(16, 35, 63, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 35, 63, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 70%);
}

@media (prefers-color-scheme: dark) {
  body:not(.theme-light) {
    --ink: #eef7f6;
    --muted: #a8bbc2;
    --line: rgba(145, 182, 183, 0.24);
    --panel: rgba(11, 27, 32, 0.84);
    --panel-strong: #10262c;
    --cream: #0d2024;
    --navy: #e8f5ef;
    --midnight: #061719;
    --blue: #65b8d2;
    --teal: #58d2bd;
    --green: #72d59b;
    --gold: #efbd67;
    --coral: #f17e72;
    --berry: #f0a9c9;
    --shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.26);
    color-scheme: dark;
    background:
      radial-gradient(circle at 12% -8%, rgba(241, 126, 114, 0.15), transparent 30rem),
      radial-gradient(circle at 78% 0%, rgba(88, 210, 189, 0.16), transparent 34rem),
      linear-gradient(135deg, #071416 0%, #0c1f24 48%, #132a2d 100%);
  }
}

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

button {
  border: 0;
  cursor: pointer;
}

.app {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 16px;
  overflow-y: auto;
  color: #f8fbff;
  background:
    radial-gradient(circle at 10% 2%, rgba(226, 93, 79, 0.28), transparent 18rem),
    radial-gradient(circle at 100% 20%, rgba(45, 157, 145, 0.25), transparent 20rem),
    linear-gradient(180deg, rgba(12, 27, 50, 0.99), rgba(16, 35, 63, 0.97));
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 4px 8px 16px;
}

.mark {
  position: relative;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: #fff7eb url("./assets/cairnicopia-logo.png") center / cover no-repeat;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
  transform: none;
}

.mark::before,
.mark::after {
  display: none;
}

.brand h1 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0;
}

.brand p {
  margin: 2px 0 0;
  color: #bad1dd;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sidebar-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 8px 18px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #dcebf0;
  background: rgba(255, 255, 255, 0.07);
  font-size: 12px;
  font-weight: 750;
}

.signal-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(45, 157, 145, 0.18);
}

.nav {
  display: grid;
  gap: 6px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  color: #dce9ef;
  background: transparent;
  border-radius: 8px;
  text-align: left;
}

.nav button span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 7px;
  color: #eaf7f5;
  background: rgba(255, 255, 255, 0.09);
  font-size: 13px;
}

.nav button.active,
.nav button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.nav button.active span {
  color: #09233a;
  background: linear-gradient(135deg, #fff4d4, #92e5d7);
}

.side-card {
  margin-top: 22px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.side-card-accent {
  background:
    linear-gradient(135deg, rgba(226, 93, 79, 0.18), rgba(45, 157, 145, 0.12)),
    rgba(255, 255, 255, 0.08);
}

.side-card strong {
  display: block;
  margin-bottom: 7px;
}

.side-card p {
  margin: 0;
  color: #c9d9e2;
  font-size: 13px;
  line-height: 1.45;
}

.side-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.side-stat {
  padding: 10px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.side-stat b,
.side-stat span {
  display: block;
}

.side-stat b {
  font-size: 20px;
}

.side-stat span {
  color: #bed2db;
  font-size: 11px;
}

.main {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 14px 32px;
  background: rgba(255, 250, 242, 0.82);
  border-bottom: 1px solid rgba(230, 220, 205, 0.86);
  backdrop-filter: blur(18px);
}

.topbar-main {
  display: grid;
  flex: 1;
  gap: 8px;
  min-width: 0;
}

.topbar-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.search {
  width: 100%;
  max-width: 760px;
}

.search input,
.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  outline: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.search input:focus,
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(47, 111, 159, 0.62);
  box-shadow: 0 0 0 4px rgba(47, 111, 159, 0.12);
}

.account {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--coral), var(--blue));
  box-shadow: var(--shadow-soft);
}

.content {
  width: min(100%, 1480px);
  margin: 0 auto;
  padding: 30px 34px 44px;
}

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

.hero-console {
  position: relative;
  min-height: 310px;
  align-items: stretch;
  padding: 32px;
  overflow: hidden;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    radial-gradient(circle at 8% 0%, rgba(226, 93, 79, 0.55), transparent 22rem),
    radial-gradient(circle at 88% 12%, rgba(45, 157, 145, 0.48), transparent 24rem),
    linear-gradient(135deg, #0b1b32 0%, #102f55 58%, #173e54 100%);
  box-shadow: var(--shadow);
}

.hero-console::after {
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 320px;
  height: 320px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0 2px, transparent 2px 14px);
  transform: rotate(-16deg);
}

.hero-copy,
.hero-panel {
  position: relative;
  z-index: 1;
}

.hero-copy {
  display: grid;
  align-content: center;
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--berry);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-console .eyebrow {
  color: #aee8dd;
}

h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.subtle {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.hero-subtitle,
.hero-console .subtle {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 17px;
}

.hero-actions,
.asset-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 22px;
}

.invite-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.invite-note a {
  color: var(--gold);
  font-weight: 800;
}

.asset-actions {
  margin-top: 12px;
}

.hero-panel {
  align-self: center;
  width: min(390px, 36%);
  min-width: 340px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.hero-panel h3 {
  margin-top: 12px;
  font-size: 24px;
}

.hero-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.45;
}

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

.hero-score div {
  padding: 10px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.hero-score b,
.hero-score span {
  display: block;
}

.hero-score b {
  font-size: 24px;
}

.hero-score span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
}

.progress-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.17);
}

.progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), #fff0b5, var(--coral));
}

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

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

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

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

.card {
  border: 1px solid rgba(231, 220, 205, 0.92);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.card.pad {
  padding: 18px;
}

.soft {
  background:
    linear-gradient(135deg, rgba(255, 250, 242, 0.96), rgba(237, 246, 243, 0.92));
}

.campaign-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.campaign-art {
  min-height: 150px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.48), transparent 1.8rem),
    linear-gradient(135deg, rgba(16, 35, 63, 0.9), rgba(47, 111, 159, 0.7)),
    url("data:image/svg+xml,%3Csvg width='220' height='220' viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.32' stroke-width='3'%3E%3Cpath d='M30 154h154M48 136h118M66 118h82M54 102l58-66 60 66'/%3E%3Cpath d='M86 102V75h45v27'/%3E%3Cpath d='M46 172c36-24 82-24 128 0'/%3E%3C/g%3E%3C/svg%3E");
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 -42px 80px rgba(0, 0, 0, 0.16);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.meta-row.tight {
  gap: 6px;
  margin-top: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 6px 9px;
  border-radius: 999px;
  color: #25405f;
  background: #edf4f1;
  font-size: 12px;
  font-weight: 750;
}

.pill.green {
  color: #11653f;
  background: #dcf5e7;
}

.pill.gold {
  color: #7a4a05;
  background: #fff0cc;
}

.pill.coral {
  color: #8d2c25;
  background: #ffe4df;
}

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

.metric {
  position: relative;
  min-height: 116px;
  overflow: hidden;
  padding: 16px;
  border: 1px solid rgba(231, 220, 205, 0.96);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 248, 236, 0.78));
  box-shadow: var(--shadow-soft);
}

.metric::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, var(--coral), var(--gold), var(--teal));
}

.metric b {
  display: block;
  font-size: 34px;
  line-height: 1;
}

.metric span,
.metric small {
  display: block;
}

.metric span {
  margin-top: 7px;
  color: #37445c;
  font-size: 13px;
  font-weight: 800;
}

.metric small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  box-shadow: 0 10px 22px rgba(16, 35, 63, 0.16);
  font-weight: 800;
}

.btn.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  box-shadow: none;
}

.btn.warm {
  background: linear-gradient(135deg, var(--coral), var(--gold));
}

.btn.ghost {
  color: var(--blue);
  background: transparent;
  box-shadow: none;
}

.btn.compact {
  min-height: 36px;
  padding: 8px 12px;
}

body.theme-dark .topbar {
  background: rgba(8, 20, 22, 0.82);
  border-bottom-color: rgba(145, 182, 183, 0.18);
}

body.theme-dark .card,
body.theme-dark .metric,
body.theme-dark .loop-step,
body.theme-dark .asset,
body.theme-dark .column,
body.theme-dark .mini-card,
body.theme-dark .channel,
body.theme-dark .brief-item,
body.theme-dark .suggestion,
body.theme-dark .prompt-group,
body.theme-dark .niche-track {
  border-color: rgba(145, 182, 183, 0.2);
  background: rgba(12, 29, 32, 0.76);
}

body.theme-dark .soft {
  background:
    linear-gradient(135deg, rgba(19, 48, 50, 0.9), rgba(16, 38, 44, 0.84));
}

body.theme-dark .search input,
body.theme-dark .field input,
body.theme-dark .field textarea,
body.theme-dark .field select {
  color: var(--ink);
  border-color: rgba(145, 182, 183, 0.24);
  background: rgba(7, 20, 22, 0.72);
  box-shadow: none;
}

body.theme-dark .btn.secondary {
  color: var(--ink);
  border-color: rgba(145, 182, 183, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

body.theme-dark .field label,
body.theme-dark .metric span,
body.theme-dark .asset pre,
body.theme-dark .chip {
  color: var(--ink);
}

body.theme-dark .pill {
  color: #d7e8ed;
  background: rgba(255, 255, 255, 0.09);
}

body.theme-dark .pill.green {
  color: #baf1cf;
  background: rgba(114, 213, 155, 0.14);
}

body.theme-dark .pill.gold {
  color: #f8d994;
  background: rgba(239, 189, 103, 0.16);
}

body.theme-dark .pill.coral {
  color: #f8b9b2;
  background: rgba(241, 126, 114, 0.16);
}

body.theme-dark .lesson,
body.theme-dark .claim,
body.theme-dark .visibility-callout {
  background: rgba(239, 189, 103, 0.1);
}

body.theme-dark .asset-coach {
  border-color: rgba(101, 184, 210, 0.22);
  background: rgba(101, 184, 210, 0.1);
}

body.theme-dark .selected-channel {
  border-color: rgba(88, 210, 189, 0.42);
  background: rgba(88, 210, 189, 0.12);
}

body.theme-dark .score-badge,
body.theme-dark .quality-pill,
body.theme-dark .quality-pill.pass {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.09);
}

body.theme-dark .claim-row {
  color: #f8d994;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.loop-card .section-head {
  align-items: flex-start;
}

.loop-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.loop-step {
  min-height: 128px;
  padding: 13px;
  border: 1px solid rgba(231, 220, 205, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
}

.loop-step span {
  display: grid;
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  font-size: 13px;
  font-weight: 800;
}

.loop-step strong {
  display: block;
}

.loop-step p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 13px;
}

.field label {
  color: #28364f;
  font-size: 13px;
  font-weight: 800;
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #32435e;
  font-size: 13px;
}

.chip.selected {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--teal), var(--blue));
}

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

.channel {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
}

.channel input {
  margin-right: 6px;
}

.channel-card {
  min-height: 176px;
}

.icon-bubble {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.38), transparent 1.1rem),
    linear-gradient(135deg, var(--coral), var(--blue));
  font-weight: 800;
}

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

.asset {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.76);
}

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

.asset h4 {
  margin: 0;
}

.asset pre {
  margin: 0;
  white-space: pre-wrap;
  color: #24314a;
  font-family: inherit;
  line-height: 1.48;
}

.learning {
  display: grid;
  gap: 10px;
}

.lesson {
  padding: 13px;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: #fff5e7;
}

.lesson p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.claim {
  display: grid;
  gap: 8px;
  padding: 13px;
  border: 1px solid #f4d58b;
  border-radius: 8px;
  background: #fff7df;
}

.claim-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: #705000;
  font-size: 13px;
}

.kanban {
  display: grid;
  grid-template-columns: repeat(4, minmax(240px, 1fr));
  gap: 14px;
  overflow-x: auto;
}

.column {
  min-height: 360px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.45);
}

.column h3 {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 15px;
}

.mini-card {
  padding: 12px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
}

.mini-card strong {
  display: block;
  margin-bottom: 4px;
}

.mini-card p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

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

.workflow-card,
.strategy-brief,
.coach-card,
.guardrail-card,
.weekly-review {
  overflow: hidden;
}

.brief-grid,
.guardrail-grid,
.niche-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

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

.brief-item {
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.brief-item span,
.score-badge span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.brief-item strong {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
  font-size: 20px;
  line-height: 1.1;
}

.brief-item p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.builder-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.selectable-channels .channel {
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

.selectable-channels .channel:hover {
  transform: translateY(-1px);
}

.selected-channel {
  border-color: rgba(45, 157, 145, 0.48);
  background: rgba(220, 245, 231, 0.68);
}

.score-badge {
  display: grid;
  min-width: 74px;
  place-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  color: #123653;
  background: #dff0f6;
}

.score-badge b {
  font-size: 22px;
  line-height: 1;
}

.score-badge.strong {
  color: #11653f;
  background: #dcf5e7;
}

.score-badge.ok {
  color: #7a4a05;
  background: #fff0cc;
}

.score-badge.weak {
  color: #8d2c25;
  background: #ffe4df;
}

.quality-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 10px 0;
}

.quality-pill {
  padding: 7px 9px;
  border-radius: 999px;
  color: #6b4a08;
  background: #fff0cc;
  font-size: 12px;
  font-weight: 800;
}

.quality-pill.pass {
  color: #11653f;
  background: #dcf5e7;
}

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

.suggestion {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  text-align: left;
  line-height: 1.35;
}

.suggestion.static {
  cursor: default;
}

.suggestion.static p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.visibility-layout .card {
  min-width: 0;
}

.visibility-explainer .brief-grid {
  margin-top: 16px;
}

.visibility-callout {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(45, 157, 145, 0.24);
  border-radius: 8px;
  background: rgba(220, 245, 231, 0.62);
}

.visibility-callout p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

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

.prompt-group {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
}

.prompt-group strong {
  display: block;
}

.prompt-group p {
  margin: 5px 0 9px;
  color: var(--muted);
  font-size: 13px;
}

.prompt-group ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}

.asset-coach {
  margin-top: 12px;
  padding: 13px;
  border: 1px solid rgba(47, 111, 159, 0.18);
  border-radius: 8px;
  background: rgba(223, 240, 246, 0.44);
}

.coach-scores {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.niche-track {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.niche-track h4 {
  margin: 10px 0 6px;
}

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

.setup-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.setup-item.done {
  border-color: rgba(45, 157, 145, 0.28);
  background: rgba(220, 245, 231, 0.58);
}

.setup-check {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--muted);
  font-weight: 800;
}

.setup-item.done .setup-check {
  background: var(--teal);
}

.setup-item strong {
  display: block;
}

.setup-item p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.readiness-card {
  overflow: hidden;
}

.foundation-card {
  background:
    linear-gradient(135deg, rgba(237, 246, 243, 0.94), rgba(255, 248, 236, 0.94));
}

.foundation-card .asset-actions {
  padding-top: 13px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
}

.insight-card {
  background:
    linear-gradient(135deg, rgba(255, 245, 231, 0.96), rgba(237, 246, 243, 0.92));
}

.winner-card {
  display: grid;
  gap: 7px;
  padding: 13px;
  border: 1px solid rgba(45, 157, 145, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.winner-card strong {
  line-height: 1.25;
}

.winner-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.mini-bars {
  display: grid;
  gap: 11px;
  margin-top: 14px;
}

.insight-bar span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.insight-layout {
  margin-top: 16px;
}

.insight-table {
  display: grid;
  gap: 10px;
}

.insight-row,
.metric-asset {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.insight-row p,
.metric-asset p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.score-cell {
  display: grid;
  min-width: 70px;
  place-items: center;
  padding: 9px;
  border-radius: 8px;
  color: #123653;
  background: #dff0f6;
}

.score-cell b {
  font-size: 24px;
  line-height: 1;
}

.score-cell span {
  color: #557087;
  font-size: 11px;
  font-weight: 800;
}

.feedback-steps {
  display: grid;
  gap: 10px;
}

.feedback-steps div {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.feedback-steps p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.metrics-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.metrics-strip span {
  padding: 7px 9px;
  border-radius: 999px;
  color: #25405f;
  background: #edf4f1;
  font-size: 12px;
  font-weight: 800;
}

.readiness-list,
.brain-grid {
  display: grid;
  gap: 10px;
}

.readiness-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
}

.readiness-row p,
.brain-grid p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.usage-meter {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.compact-head {
  margin-bottom: 8px;
}

.progress-track.light {
  background: rgba(16, 35, 63, 0.09);
}

.brand-brain-card {
  background:
    linear-gradient(135deg, rgba(237, 246, 243, 0.92), rgba(255, 250, 242, 0.94));
}

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

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

.calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.day {
  min-height: 118px;
  padding: 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.56);
}

.day:nth-child(7n) {
  border-right: 0;
}

.event {
  display: grid;
  gap: 3px;
  margin-top: 8px;
  padding: 7px;
  border-radius: 6px;
  color: #123653;
  background: #dff0f6;
  font-size: 12px;
}

.event.scheduled {
  background: #dcf5e7;
}

.event strong {
  display: block;
  line-height: 1.25;
}

.event span {
  color: #557087;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  padding: 13px 15px;
  border-radius: 8px;
  color: #fff;
  background: rgba(16, 35, 63, 0.94);
  box-shadow: var(--shadow);
}

.hidden {
  display: none !important;
}

.landing-page {
  color: var(--ink);
}

.landing-page .btn.secondary {
  color: #10233f;
  border-color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.92);
}

.landing-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0;
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.landing-brand .mark {
  width: 42px;
  height: 42px;
}

.landing-brand b,
.landing-brand small {
  display: block;
}

.landing-brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.landing-nav nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.landing-nav a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.landing-nav nav a {
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 999px;
}

.landing-nav nav a:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.58);
}

.landing-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 64px;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 28px;
  align-items: center;
  min-height: calc(100vh - 112px);
}

.landing-copy h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

.landing-copy p:not(.eyebrow) {
  max-width: 640px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.45;
}

.landing-product-card {
  position: relative;
  padding: 24px;
  overflow: hidden;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 0%, rgba(226, 93, 79, 0.52), transparent 18rem),
    radial-gradient(circle at 88% 12%, rgba(45, 157, 145, 0.44), transparent 20rem),
    linear-gradient(135deg, #0b1b32 0%, #102f55 58%, #173e54 100%);
  box-shadow: var(--shadow);
}

.landing-product-card h2 {
  max-width: 430px;
  margin-top: 18px;
  font-size: 34px;
}

.landing-plan {
  display: grid;
  gap: 9px;
  margin-top: 22px;
}

.landing-plan div,
.landing-coach-row span,
.landing-grid article,
.landing-list div {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.landing-plan div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.1);
}

.landing-plan b {
  color: #aee8dd;
}

.landing-plan span {
  color: rgba(255, 255, 255, 0.78);
}

.landing-coach-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.landing-coach-row span {
  padding: 8px 10px;
  color: #10233f;
  background: #dcf5e7;
  font-size: 12px;
  font-weight: 850;
}

.landing-section {
  padding: 62px 0 0;
}

.landing-section h2 {
  max-width: 760px;
  font-size: clamp(32px, 4vw, 52px);
}

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

.landing-grid article,
.landing-list div {
  padding: 17px;
  color: #10233f;
  border-color: rgba(16, 35, 63, 0.14);
  background: rgba(246, 250, 248, 0.94);
  box-shadow: var(--shadow-soft);
}

.landing-grid p,
.landing-list span {
  color: #405968;
  line-height: 1.45;
}

.split-section p {
  color: var(--muted);
  line-height: 1.45;
}

.landing-grid b,
.landing-list b {
  color: #10233f;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 24px;
  align-items: start;
}

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

.landing-list b,
.landing-list span {
  display: block;
}

.landing-list span {
  margin-top: 4px;
}

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

  .loop-steps {
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    overflow-x: auto;
    padding-bottom: 2px;
  }
}

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

  .sidebar {
    position: static;
    height: auto;
  }

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

  .side-stats {
    max-width: 420px;
  }

  .hero-console {
    flex-direction: column;
  }

  .hero-panel {
    width: 100%;
    min-width: 0;
  }

  .two,
  .three {
    grid-template-columns: 1fr;
  }

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

  .landing-hero,
  .split-section {
    grid-template-columns: 1fr;
    min-height: 0;
  }

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

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

  .brief-grid,
  .guardrail-grid,
  .niche-grid,
  .prompt-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .insight-row,
  .metric-asset {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 860px) {
  .sidebar {
    padding: 18px 18px 14px;
  }

  .brand {
    padding-bottom: 12px;
  }

  .sidebar-kicker {
    margin-bottom: 12px;
  }

  .nav {
    display: flex;
    gap: 8px;
    margin: 0 -4px;
    overflow-x: auto;
    padding: 10px 4px 4px;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav button {
    flex: 0 0 auto;
    width: auto;
    min-height: 38px;
    padding: 9px 12px;
    white-space: nowrap;
  }

  .side-card,
  .side-stats {
    display: none;
  }

  .topbar {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    padding: 14px 18px;
  }

  .search {
    max-width: none;
  }

  .account {
    justify-content: flex-start;
  }

  .hero {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-console {
    min-height: 0;
    padding: 24px;
  }

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

@media (max-width: 680px) {
  body {
    background:
      radial-gradient(circle at top left, rgba(226, 93, 79, 0.1), transparent 24rem),
      linear-gradient(135deg, #fff8ee 0%, #edf6f3 100%);
  }

  .app {
    display: block;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 10px 10px 8px;
    overflow: visible;
    background:
      radial-gradient(circle at 8% 0%, rgba(226, 93, 79, 0.22), transparent 18rem),
      linear-gradient(180deg, rgba(12, 27, 50, 0.94), rgba(7, 19, 35, 0.98));
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    border-right: 0;
    box-shadow: 0 14px 30px rgba(9, 20, 34, 0.18);
    backdrop-filter: blur(18px);
  }

  .brand,
  .sidebar-kicker {
    display: none;
  }

  .nav {
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
    scroll-snap-type: x proximity;
  }

  .nav button {
    flex: 0 0 74px;
    min-height: 58px;
    justify-content: center;
    gap: 4px;
    padding: 7px 8px;
    scroll-snap-align: start;
    border-radius: 10px;
    font-size: 11px;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
    flex-direction: column;
  }

  .nav button span {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .topbar {
    position: sticky;
    top: 0;
    padding: 10px 12px;
    gap: 8px;
  }

  .topbar-pills {
    display: none;
  }

  .search input,
  .field input,
  .field textarea,
  .field select {
    min-height: 44px;
    padding: 10px 11px;
    font-size: 16px;
  }

  .account {
    gap: 8px;
  }

  .account .btn {
    flex: 1;
  }

  .account > div:last-child {
    display: none;
  }

  .avatar {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .content {
    padding: 14px 12px 28px;
  }

  .landing-nav {
    position: static;
    width: min(100% - 20px, 1160px);
    align-items: flex-start;
    flex-direction: column;
  }

  .landing-nav nav {
    width: 100%;
    justify-content: flex-start;
  }

  .landing-shell {
    width: min(100% - 20px, 1160px);
    padding-top: 16px;
  }

  .landing-copy h1 {
    font-size: 42px;
  }

  .landing-copy p:not(.eyebrow) {
    font-size: 16px;
  }

  .landing-product-card {
    padding: 18px 15px;
  }

  .landing-product-card h2 {
    font-size: 28px;
  }

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

  .hero {
    gap: 12px;
    margin-bottom: 14px;
  }

  .hero-console {
    padding: 18px 15px;
  }

  .hero-panel {
    display: none;
  }

  .eyebrow {
    margin-bottom: 6px;
    font-size: 10px;
  }

  h2 {
    font-size: 29px;
    line-height: 1.08;
  }

  h3 {
    font-size: 16px;
  }

  .subtle,
  .hero-subtitle {
    font-size: 14px;
    line-height: 1.4;
  }

  .hero-actions .btn {
    width: 100%;
  }

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

  .btn {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 15px;
  }

  .card.pad {
    padding: 12px;
  }

  .campaign-art {
    min-height: 92px;
  }

  .metric {
    min-height: 94px;
    padding: 12px;
  }

  .metric b {
    font-size: 27px;
  }

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

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .pill {
    font-size: 12px;
  }

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

  .brief-grid,
  .guardrail-grid,
  .niche-grid,
  .prompt-grid {
    grid-template-columns: 1fr;
  }

  .channel-card {
    min-height: auto;
  }

  .grid {
    gap: 12px;
  }

  .lesson,
  .claim {
    padding: 12px;
  }

  .kanban {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .column {
    min-height: 0;
  }

  .asset header,
  .readiness-row,
  .insight-row,
  .metric-asset {
    flex-direction: column;
  }

  .asset pre {
    font-size: 14px;
    line-height: 1.5;
  }

  .loop-steps {
    grid-template-columns: repeat(5, minmax(168px, 78vw));
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .loop-step {
    min-height: 116px;
    scroll-snap-align: start;
  }

  .calendar {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .day {
    min-width: 168px;
    scroll-snap-align: start;
    border-bottom: 0;
  }

  .day:nth-child(7n) {
    border-right: 1px solid var(--line);
  }
}

@media (max-width: 430px) {
  .content {
    padding-inline: 10px;
  }

  .nav button {
    flex-basis: 68px;
    font-size: 10px;
  }

  .hero-console {
    padding: 16px 13px;
  }

  h2 {
    font-size: 26px;
  }

  .metric-grid,
  .mini-metrics {
    grid-template-columns: 1fr 1fr;
  }

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