@import url("https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800;900&display=swap");

:root {
  --bg: #f4f7fc;
  --surface: #ffffff;
  --surface-2: #eef3ff;
  --ink: #1d2635;
  --muted: #627089;
  --line: #d9e2f1;
  --teal: #2563eb;
  --teal-dark: #1d4ed8;
  --amber: #f59e0b;
  --coral: #ef5b5b;
  --blue: #0ea5e9;
  --green: #10b981;
  --violet: #7c3aed;
  --shadow: 0 18px 48px rgba(29, 38, 53, 0.11);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Be Vietnam Pro", "Be Vietnam", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background:
    linear-gradient(rgba(37, 99, 235, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(239, 91, 91, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 42%, #eef6ff 100%);
  background-size: 34px 34px;
}

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

button {
  border: 0;
  cursor: pointer;
}

.app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  transition: grid-template-columns 0.22s ease;
}

.app.menuCollapsed {
  grid-template-columns: 86px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 22px;
  background:
    linear-gradient(180deg, #1e293b 0%, #111827 58%, #0f172a 100%);
  color: #f8fbff;
  overflow-y: auto;
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 28px;
}

.menuToggle {
  margin-left: auto;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: #f8fbff;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 900;
}

.brandMark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, var(--coral), var(--amber));
  border-radius: var(--radius);
  font-weight: 900;
  letter-spacing: 0;
}

.brand h1,
.brand p,
.topbar h2,
.heroCopy h3,
.panel h3 {
  margin: 0;
}

.brand h1 {
  font-size: 20px;
  line-height: 1.08;
}

.brand p {
  color: #b8cbc8;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.45;
}

.menuCollapsed .sidebar {
  padding: 18px 14px;
}

.menuCollapsed .brand {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.menuCollapsed .brand > div:not(.brandMark) {
  display: none;
}

.menuCollapsed .menuToggle {
  margin-left: 0;
}

.menuCollapsed .lessonNav {
  display: none;
}

.progressBlock,
.teacherCard {
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 14px;
}

.progressBlock,
.teacherCard,
.timeBox,
.classTimer,
.heroPanel,
.legacyWorkspace {
  display: none;
}

.progressTop {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.progressTrack {
  height: 8px;
  margin: 12px 0 10px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

#progressBar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--coral), var(--amber), var(--green));
  transition: width 0.25s ease;
}

#progressHint,
.teacherCard p {
  margin: 0;
  color: #b8cbc8;
  font-size: 13px;
  line-height: 1.45;
}

.lessonNav {
  display: grid;
  gap: 14px;
  margin: 22px 0;
}

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

.lessonGroupHeader {
  width: 100%;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 24px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border-radius: var(--radius);
  text-align: left;
}

.lessonGroup.active .lessonGroupHeader {
  border-color: rgba(245, 158, 11, 0.55);
  background: rgba(245, 158, 11, 0.13);
}

.lessonGroupBadge {
  width: 44px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: #111827;
  background: linear-gradient(135deg, var(--amber), #ffffff);
  font-size: 12px;
  font-weight: 900;
}

.lessonGroupTitle {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.lessonGroupTitle strong {
  font-size: 15px;
  line-height: 1.28;
}

.lessonGroupTitle small {
  color: #b8cbc8;
  font-size: 12px;
  line-height: 1.45;
}

.lessonGroupChevron {
  color: #b8cbc8;
  font-size: 19px;
  font-weight: 900;
  text-align: center;
}

.lessonGroupBody {
  display: grid;
  gap: 9px;
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.11);
}

.lessonGroup.collapsed .lessonGroupBody {
  display: none;
}

.lessonButton {
  width: 100%;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  color: #dcebea;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius);
}

.menuCollapsed .lessonButton {
  grid-template-columns: 44px;
  justify-content: center;
  padding: 9px;
}

.menuCollapsed .lessonGroup {
  justify-items: center;
}

.menuCollapsed .lessonGroupHeader {
  grid-template-columns: 44px;
  justify-content: center;
  padding: 8px;
}

.menuCollapsed .lessonGroupTitle,
.menuCollapsed .lessonGroupChevron {
  display: none;
}

.menuCollapsed .lessonGroupBody {
  padding-left: 0;
  border-left: 0;
}

.menuCollapsed .lessonIndex {
  width: 44px;
  height: 44px;
}

.menuCollapsed .lessonMeta {
  display: none;
}

.lessonButton:hover,
.lessonButton.active {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

.lessonButton.active {
  box-shadow: inset 4px 0 0 var(--amber);
}

.lessonButton.done .lessonIndex {
  background: var(--green);
}

.lessonIndex {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: white;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 800;
  font-size: 13px;
}

.lessonMeta strong {
  display: block;
  color: white;
  font-size: 15px;
  line-height: 1.34;
  margin-bottom: 4px;
}

.lessonMeta span {
  display: block;
  color: #b8cbc8;
  font-size: 12px;
  line-height: 1.45;
}

.ghostButton {
  width: 100%;
  margin-top: 12px;
  padding: 10px 12px;
  color: #eafffd;
  background: rgba(255, 255, 255, 0.11);
  border-radius: var(--radius);
}

.content {
  min-width: 0;
  padding: 28px 24px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.overline,
.miniLabel {
  margin: 0 0 6px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.topbar h2 {
  font-size: 32px;
  line-height: 1.1;
}

.timeBox {
  display: flex;
  align-items: center;
  gap: 10px;
}

.timeBox span {
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 700;
}

.timeBox button,
.classTimer button,
.quizOption,
.actionButton,
.tabButton,
.layoutButton,
.scenarioButton {
  padding: 10px 14px;
  border-radius: var(--radius);
  color: white;
  background: var(--teal);
  font-weight: 800;
}

.heroPanel,
.panel {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.heroPanel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 24px;
  margin-bottom: 18px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(255, 255, 255, 0.96) 42%),
    linear-gradient(90deg, rgba(245, 158, 11, 0.12), rgba(16, 185, 129, 0.08));
}

.deckShell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 18px;
  align-items: stretch;
}

.deckStage,
.slideRail {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.deckStage {
  min-height: calc(100vh - 206px);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: visible;
}

.slideMount {
  min-height: calc(100vh - 300px);
  display: grid;
}

.learningSlide {
  min-height: calc(100vh - 300px);
  display: grid;
  align-content: start;
  gap: 26px;
  padding: clamp(28px, 3.6vw, 52px);
  background:
    radial-gradient(circle at 84% 16%, rgba(245, 158, 11, 0.14), transparent 30%),
    radial-gradient(circle at 8% 80%, rgba(37, 99, 235, 0.1), transparent 32%),
    white;
}

.slideTopline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.slidePill {
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef3ff;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.learningSlide h2 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1.1;
  letter-spacing: 0;
}

.learningSlide .slideLead {
  max-width: 940px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.76;
}

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

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

.slideHeroSplit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 32px;
  align-items: start;
}

.slideHeroSplit .slideFocus {
  margin-top: 20px;
}

.slideMedia {
  margin: 0;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f8fbff;
  border-radius: var(--radius);
  box-shadow: 0 18px 42px rgba(29, 38, 53, 0.12);
}

.slideMedia img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  display: block;
  object-fit: cover;
}

.slideCard {
  min-height: 148px;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  border-radius: var(--radius);
  box-shadow: 0 14px 30px rgba(29, 38, 53, 0.075);
}

.slideCard strong {
  font-size: 18px;
  line-height: 1.32;
}

.slideCard p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
}

.slideNumber {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: white;
  background: linear-gradient(135deg, var(--teal), var(--coral));
  font-weight: 900;
}

.slideFocus {
  padding: 26px;
  border-left: 5px solid var(--coral);
  background: #fff7ed;
  border-radius: var(--radius);
}

.slideFocus h3 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.32;
}

.slideFocus p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.78;
}

.slideDemoBox {
  padding: 22px;
  border: 1px solid var(--line);
  background: #f8fbff;
  border-radius: var(--radius);
}

.caseDemo {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 18px;
  align-items: stretch;
}

.caseWebsitePreview {
  display: block;
}

.caseWebsitePreview .miniSite {
  min-height: 100%;
}

.demoImage {
  margin: 0;
  min-height: 380px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: white;
  border-radius: var(--radius);
}

.demoImage img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  display: block;
  object-fit: cover;
}

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

.auditItem {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  background: white;
  border-radius: var(--radius);
  color: var(--ink);
  text-align: left;
}

.auditItem strong {
  font-size: 15px;
}

.auditItem span {
  color: var(--muted);
  font-size: 13px;
}

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

.rubricItem {
  min-height: 158px;
  padding: 16px;
  border: 1px solid var(--line);
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(29, 38, 53, 0.08);
}

.rubricItem span {
  display: inline-block;
  margin-bottom: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--teal), var(--coral));
  font-size: 13px;
  font-weight: 900;
}

.rubricItem h4 {
  margin: 0 0 8px;
  font-size: 18px;
}

.rubricItem p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.publishBoard .checkItem {
  cursor: pointer;
}

.checkItem input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.checkItem:has(input:checked) {
  border-color: rgba(16, 185, 129, 0.55);
  background: #f0fdf4;
}

.seoMock {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 16px;
}

.serpCard,
.pageMock {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(29, 38, 53, 0.08);
}

.serpCard button,
.pageMock button {
  width: 100%;
  padding: 13px;
  border: 1px solid var(--line);
  background: #f8fbff;
  border-radius: var(--radius);
  color: var(--ink);
  text-align: left;
  line-height: 1.55;
}

.seoTitle {
  color: var(--teal-dark) !important;
  font-size: 20px;
  font-weight: 800;
}

.seoMeta {
  color: var(--muted) !important;
}

.seoUrl {
  color: var(--green) !important;
  font-size: 14px;
}

.houseExperience {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 18px;
  align-items: stretch;
}

.houseAiWrap {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: white;
}

.houseAiWrap img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  display: block;
  object-fit: cover;
}

.hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  min-width: 92px;
  min-height: 38px;
  padding: 8px 12px;
  border: 2px solid rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--teal), var(--coral));
  box-shadow: 0 12px 28px rgba(29, 38, 53, 0.28);
  font-weight: 900;
}

.hotspot::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: inherit;
}

.hotspot:hover {
  background: linear-gradient(135deg, var(--coral), var(--amber));
}

.hotspotDomain { left: 24%; top: 38%; }
.hotspotHosting { left: 30%; top: 78%; }
.hotspotWordPress { left: 56%; top: 42%; }
.hotspotTheme { left: 76%; top: 50%; }

.deckControls {
  display: grid;
  grid-template-columns: 140px 1fr 140px;
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
  border-top: 1px solid var(--line);
  background: #f8fbff;
}

.deckControls button {
  padding: 11px 14px;
  border-radius: var(--radius);
  color: white;
  background: var(--teal);
  font-weight: 900;
}

.deckControls button:disabled {
  cursor: default;
  opacity: 0.42;
}

#slideCounter {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.slideProgress {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

#slideProgressBar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--coral), var(--amber));
  transition: width 0.22s ease;
}

.slideRail {
  padding: 18px;
}

.railHeader h3 {
  margin: 0 0 14px;
}

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

.slideThumb {
  width: 100%;
  display: grid;
  gap: 6px;
  padding: 13px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  text-align: left;
}

.slideThumb.active {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(239, 91, 91, 0.12);
}

.slideThumb span {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
}

.slideThumb strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.36;
}

.heroCopy h3 {
  font-size: 28px;
  line-height: 1.12;
  max-width: 880px;
}

.heroCopy p {
  max-width: 900px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 16px;
}

.classTimer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(160deg, #1e293b 0%, #172033 100%);
  color: #f4fbfa;
  border-radius: var(--radius);
}

.classTimer span {
  display: block;
  color: #b8cbc8;
  font-size: 12px;
}

.classTimer strong {
  display: block;
  margin-top: 4px;
  font-size: 28px;
  line-height: 1;
}

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

.classTimer button {
  min-width: 86px;
  padding: 8px 10px;
}

#timerReset {
  background: rgba(255, 255, 255, 0.14);
}

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

.primaryColumn,
.practiceColumn {
  display: grid;
  gap: 18px;
}

.panel {
  padding: 20px;
  position: relative;
  overflow: hidden;
}

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

.stickyPanel {
  position: sticky;
  top: 18px;
}

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

.panelHeader h3 {
  font-size: 21px;
}

.panelHeader p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.compact {
  margin-bottom: 12px;
}

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

.tag {
  padding: 6px 8px;
  border: 1px solid var(--line);
  background: #f8fbff;
  color: var(--teal-dark);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 800;
}

.conceptGrid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr);
  gap: 16px;
  align-items: start;
}

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

.conceptCard {
  width: 100%;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  color: inherit;
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.conceptCard:hover,
.conceptCard.active {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 12px 26px rgba(29, 38, 53, 0.08);
}

.conceptCard.active {
  background: linear-gradient(135deg, #f8fbff, #fff7ed);
}

.conceptIcon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #eef3ff, #fff4df);
  color: var(--teal-dark);
  font-weight: 900;
}

.conceptCard h4,
.activityCard h4,
.explainCard h4,
.quizBox h4,
.teacherNotes h4 {
  margin: 0 0 10px;
  font-size: 16px;
}

.conceptCard p,
.activityCard p,
.explainCard p,
.teacherNotes p,
.quizBox p,
.smallText {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
  font-size: 15px;
}

.smallButton {
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: #f8fbff;
  color: var(--teal-dark);
  border-radius: var(--radius);
  font-weight: 800;
}

.conceptDetailPanel {
  min-width: 0;
}

.detailsBox {
  padding: 16px;
  border-left: 4px solid var(--coral);
  background: #fff7ed;
  border-radius: var(--radius);
}

.detailsBox h4 {
  margin: 0 0 8px;
}

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

.deepDiveItem {
  padding: 12px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(255, 255, 255, 0.74);
  border-radius: var(--radius);
}

.deepDiveItem strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 13px;
}

.deepDiveItem p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.detailsBox ul,
.activityCard ul,
.teacherNotes ul {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.55;
}

.demoTabs,
.layoutTabs,
.scenarioTabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.tabButton,
.layoutButton,
.scenarioButton {
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.tabButton.active,
.layoutButton.active,
.scenarioButton.active {
  color: white;
  background: var(--teal);
  border-color: var(--teal);
}

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

.compareCard,
.explainCard,
.journeyStep,
.pluginRow,
.layoutPreview,
.poemCard,
.dataCard,
.colorCard {
  border: 1px solid var(--line);
  background: white;
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 10px 24px rgba(29, 38, 53, 0.055);
}

.compareCard h4 {
  margin: 0 0 10px;
  font-size: 17px;
}

.compareCard dl {
  margin: 0;
}

.compareCard dt {
  margin-top: 10px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.compareCard dd {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 14px;
}

.houseMap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  align-items: center;
}

.houseVisual {
  min-height: 300px;
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(245, 158, 11, 0.12)),
    white;
  border-radius: var(--radius);
  overflow: hidden;
}

.houseShape {
  width: min(82%, 410px);
  aspect-ratio: 1.35;
  position: relative;
  border: 5px solid #1d2635;
  border-top: 0;
  background: #fdfefe;
}

.houseShape::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -76px;
  width: 58%;
  aspect-ratio: 1;
  border-left: 5px solid #1d2635;
  border-top: 5px solid #1d2635;
  transform: translateX(-50%) rotate(45deg);
  background: #fdfefe;
}

.room {
  position: absolute;
  display: grid;
  place-items: center;
  padding: 8px;
  border: 2px solid var(--line);
  background: var(--surface-2);
  border-radius: var(--radius);
  font-weight: 900;
  color: var(--teal-dark);
}

.room.domain { left: 8%; top: 18%; width: 38%; height: 28%; }
.room.hosting { right: 8%; top: 18%; width: 38%; height: 28%; }
.room.theme { left: 8%; bottom: 12%; width: 38%; height: 28%; }
.room.wordpress { right: 8%; bottom: 12%; width: 38%; height: 28%; }

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

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

.journeyStep {
  border-top: 5px solid var(--teal);
}

.journeyStep:nth-child(2) { border-top-color: var(--amber); }
.journeyStep:nth-child(3) { border-top-color: var(--blue); }
.journeyStep:nth-child(4) { border-top-color: var(--coral); }

.journeyStep h4,
.pluginRow h4,
.layoutPreview h4,
.poemCard h4,
.dataCard h4,
.colorCard h4 {
  margin: 0 0 8px;
}

.siloBuilder {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.siloTree,
.siloChecklist {
  border: 1px solid var(--line);
  background: white;
  border-radius: var(--radius);
  padding: 14px;
}

.treeNode {
  margin: 8px 0;
  padding: 10px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border-left: 4px solid var(--teal);
  font-weight: 800;
}

.treeNode.child {
  margin-left: 28px;
  border-left-color: var(--amber);
}

.treeNode.grandchild {
  margin-left: 56px;
  border-left-color: var(--coral);
}

.siloChecklist label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 10px 0;
  color: var(--muted);
  line-height: 1.45;
}

.siloChecklist input {
  margin-top: 4px;
  accent-color: var(--teal);
}

.layoutStudio {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 14px;
}

.layoutTabs {
  display: grid;
  align-content: start;
  margin-bottom: 0;
}

.layoutCanvas {
  min-height: 520px;
  border: 1px solid var(--line);
  background: #fcfefe;
  border-radius: var(--radius);
  padding: 16px;
}

.mockBrowser {
  height: 100%;
  min-height: 490px;
  display: grid;
  gap: 10px;
}

.browserBar {
  height: 28px;
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 0 10px;
  background: #edf3f2;
  border-radius: var(--radius);
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--coral);
}

.dot:nth-child(2) { background: var(--amber); }
.dot:nth-child(3) { background: var(--green); }

.layoutBody {
  min-height: 430px;
  display: grid;
  gap: 10px;
}

.mockBlock {
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.mockHero { min-height: 88px; background: #d9f2ef; }
.mockHero { background: #dbeafe; }
.mockText { min-height: 42px; }
.mockAccent { background: #fef3c7; }
.mockImage { background: #fee2e2; }
.mockDark { background: #1e293b; }
.mockGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mockColumns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.mockMasonry { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; align-items: start; }
.mockMasonry .mockBlock:nth-child(2) { min-height: 120px; }
.mockMasonry .mockBlock:nth-child(4) { min-height: 96px; }
.mockList { display: grid; gap: 8px; }
.mockList .mockBlock { min-height: 48px; }
.mockSplit { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mockAsym { display: grid; grid-template-columns: 1.7fr 1fr; gap: 10px; }
.mockZigzag { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mockZigzag .wide { grid-column: 2; }
.mockFull { min-height: 250px; background: #162323; }

.webDemoFrame,
.caseWebsitePreview .miniSite {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 14px 32px rgba(29, 38, 53, 0.08);
}

.webDemoFrame header,
.miniSite header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: #f8fbff;
  font-size: 13px;
}

.webDemoFrame nav,
.miniSite nav {
  color: var(--muted);
  font-size: 12px;
}

.webDemoFrame h4,
.miniSite h4 {
  margin: 0;
  font-size: 22px;
  line-height: 1.18;
}

.webDemoFrame p,
.miniSite p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.webDemoFrame button,
.miniSite button {
  width: fit-content;
  margin-top: 12px;
  padding: 9px 11px;
  border-radius: var(--radius);
  color: white;
  background: var(--teal);
  font-weight: 900;
}

.webHeroMini,
.webSplitDemo section,
.webZDemo section,
.miniHero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 0.9fr);
  gap: 14px;
  align-items: center;
  padding: 22px;
}

.webHeroMini img,
.webSplitDemo img,
.webZDemo img,
.miniHero img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
}

.layoutDirection {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: #f3f7ff;
}

.layoutDirection span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid #d6e2f3;
  background: #fff;
  border-radius: 999px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.layoutDirection b {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  color: white;
  background: var(--blue);
  font-size: 11px;
}

.layoutDirection i {
  color: var(--muted);
  font-style: normal;
  font-weight: 900;
}

.annotated {
  position: relative;
}

.layoutOverlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.layoutHighlight {
  position: absolute;
  display: inline-grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 6px;
  max-width: 178px;
  padding: 6px 8px;
  border: 2px solid var(--coral);
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(239, 68, 68, 0.16);
  color: var(--ink);
}

.layoutHighlight strong {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--coral);
  color: white;
  font-size: 12px;
}

.layoutHighlight small {
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
}

.webHeroMini small,
.webSplitDemo small,
.miniHero small {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--teal-dark);
  font-weight: 900;
}

.productGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0 16px 16px;
}

.productGrid article,
.webSectionChips span,
.masonryPreview article,
.miniProof span,
.miniCrm {
  border: 1px solid var(--line);
  background: #f8fbff;
  border-radius: var(--radius);
}

.productGrid article {
  min-height: 70px;
  display: grid;
  gap: 4px;
  place-content: center;
  text-align: center;
  font-size: 12px;
}

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

.webSectionChips span,
.miniProof span {
  padding: 10px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

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

.masonryPreview article {
  min-height: 78px;
  display: grid;
  place-items: center;
  color: var(--teal-dark);
  font-weight: 900;
}

.masonryPreview .tile1,
.masonryPreview .tile4 {
  min-height: 122px;
}

.webArticleDemo main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 14px;
  padding: 16px;
}

.webArticleDemo article,
.webArticleDemo aside {
  padding: 14px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
}

.webArticleDemo aside {
  display: grid;
  gap: 8px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
}

.caseWebsitePreview {
  min-width: 0;
}

.miniSite {
  position: relative;
}

.miniForm {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  padding: 0 16px 16px;
}

.miniForm input {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: white;
}

.miniCrm {
  display: grid;
  gap: 4px;
  margin: 0 16px 16px;
  padding: 12px;
  color: var(--muted);
  font-size: 12px;
}

.miniSite::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 3px solid var(--coral);
  border-radius: var(--radius);
  box-shadow: 0 0 0 999px rgba(255, 255, 255, 0.45);
}

.miniSite.focusAds::after { left: 12px; right: 12px; top: 10px; height: 42px; }
.miniSite.focusHero::after { left: 14px; right: 14px; top: 58px; height: 178px; }
.miniSite.focusProof::after { left: 14px; right: 14px; top: 244px; height: 52px; }
.miniSite.focusForm::after { left: 14px; right: 14px; top: 304px; height: 52px; }
.miniSite.focusCrm::after { left: 14px; right: 14px; bottom: 14px; height: 58px; }

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

.toolFlow article {
  padding: 14px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
}

.toolFlow span {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
}

.toolFlow h4 {
  margin: 8px 0;
  font-size: 14px;
  line-height: 1.35;
}

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

.layoutInfo {
  margin-top: 12px;
  padding: 12px;
  border: 1px dashed var(--teal);
  background: #f1faf8;
  border-radius: var(--radius);
}

.decisionPanel {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
  gap: 18px;
  align-items: start;
  padding: 22px;
  border: 1px solid var(--line);
  background: #f8fbff;
  border-radius: var(--radius);
}

.decisionPanel h3 {
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.2;
}

.decisionPanel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.decisionPanel ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
}

.decisionPanel li {
  color: var(--muted);
  line-height: 1.55;
}

.realCasePanel,
.builderDemo,
.colorPanel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 20px;
  align-items: stretch;
}

.demoImage.compact {
  min-height: 300px;
  margin-bottom: 0;
}

.demoImage.compact img {
  min-height: 300px;
}

.vibeDemoImage {
  position: relative;
}

.vibeMarker {
  position: absolute;
  z-index: 2;
  min-width: 72px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.95);
  color: white;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
  transform: translate(-50%, -50%);
}

.vibeImageNote {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1;
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 30px rgba(29, 38, 53, 0.14);
  backdrop-filter: blur(8px);
}

.vibeImageNote span {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.vibeImageNote b {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
}

.vibeExplain {
  display: grid;
  align-content: start;
}

.vibeMeta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.vibeMeta span,
.vibeOutput {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef3ff;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
}

.vibeExplain .numberFlow {
  margin-top: 12px;
  margin-bottom: 12px;
}

.vibeOutput {
  justify-content: flex-start;
  width: fit-content;
  margin: 2px 0 10px;
  background: #f8fbff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 700;
}

.checkBullets,
.numberFlow {
  margin: 14px 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.7;
}

.checkBullets li,
.numberFlow li {
  margin: 9px 0;
}

.builderPreview {
  overflow: hidden;
  border: 1px solid var(--line);
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 14px 32px rgba(29, 38, 53, 0.08);
}

.builderVisual {
  min-height: 430px;
}

.siteChrome {
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: #eef3ff;
  color: var(--muted);
  font-size: 12px;
}

.siteChrome span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--coral);
}

.siteChrome span:nth-child(2) { background: var(--amber); }
.siteChrome span:nth-child(3) { background: var(--green); }

.siteChrome b {
  margin-left: 6px;
}

.builderFrame {
  height: 100%;
  min-height: 430px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: #f8fbff;
}

.builderCanvas {
  position: relative;
  min-height: 300px;
  padding: 16px;
  background:
    linear-gradient(90deg, rgba(37, 99, 235, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(37, 99, 235, 0.06) 1px, transparent 1px),
    #fff;
  background-size: 34px 34px;
}

.builderCanvas img {
  width: 100%;
  height: 292px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 34px rgba(29, 38, 53, 0.12);
}

.builderOverlay {
  position: absolute;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 10px;
  border: 3px solid var(--coral);
  background: rgba(255, 255, 255, 0.78);
  border-radius: var(--radius);
  box-shadow: 0 0 0 999px rgba(15, 23, 42, 0.18), 0 18px 35px rgba(239, 68, 68, 0.2);
  color: var(--ink);
}

.builderOverlay span {
  width: fit-content;
  padding: 5px 8px;
  border-radius: 999px;
  color: white;
  background: var(--coral);
  font-weight: 900;
  font-size: 12px;
}

.builderOverlay small {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
}

.builderOverlay.row {
  border-color: var(--amber);
  box-shadow: 0 0 0 999px rgba(15, 23, 42, 0.16), 0 18px 35px rgba(245, 158, 11, 0.2);
}

.builderOverlay.row span { background: var(--amber); color: #111827; }

.builderOverlay.column {
  border-color: var(--blue);
  box-shadow: 0 0 0 999px rgba(15, 23, 42, 0.16), 0 18px 35px rgba(37, 99, 235, 0.2);
}

.builderOverlay.column span { background: var(--blue); }

.builderOverlay.element {
  border-color: var(--green);
  box-shadow: 0 0 0 999px rgba(15, 23, 42, 0.16), 0 18px 35px rgba(34, 197, 94, 0.2);
}

.builderOverlay.element span { background: var(--green); color: #06331d; }

.builderJourney {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  background: #f8fbff;
  border-radius: var(--radius);
}

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

.audienceMap {
  min-height: 420px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(29, 38, 53, 0.08);
}

.audienceFunnel {
  position: relative;
  min-height: 420px;
  padding: 18px;
  background:
    linear-gradient(90deg, rgba(37, 99, 235, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(37, 99, 235, 0.06) 1px, transparent 1px),
    #f8fbff;
  background-size: 34px 34px;
}

.audienceFunnel img {
  position: absolute;
  inset: 18px;
  width: calc(100% - 36px);
  height: calc(100% - 36px);
  object-fit: cover;
  border-radius: var(--radius);
  opacity: 0.28;
  filter: saturate(0.85);
}

.audienceNode {
  position: absolute;
  z-index: 1;
  display: grid;
  gap: 5px;
  width: 31%;
  min-height: 110px;
  padding: 14px;
  border: 1px solid #d6e2f3;
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(29, 38, 53, 0.1);
}

.audienceNode b {
  font-size: 18px;
}

.audienceNode span {
  color: var(--muted);
  line-height: 1.35;
}

.nodeCold { top: 12%; left: 9%; }
.nodeCustom { top: 12%; left: 58%; }
.nodeRemarketing { top: 54%; left: 9%; }
.nodeLookalike { top: 54%; left: 58%; }

.audienceFunnel::before,
.audienceFunnel::after {
  content: "→";
  position: absolute;
  z-index: 2;
  color: var(--blue);
  font-size: 34px;
  font-weight: 900;
}

.audienceFunnel::before {
  top: 27%;
  left: 47%;
}

.audienceFunnel::after {
  content: "↓";
  top: 42%;
  left: 22%;
}

.audienceFocus {
  position: absolute;
  z-index: 3;
  display: grid;
  align-content: end;
  gap: 4px;
  padding: 10px;
  border: 3px solid var(--coral);
  background: rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  box-shadow: 0 0 0 999px rgba(15, 23, 42, 0.2), 0 18px 35px rgba(239, 68, 68, 0.2);
}

.audienceFocus strong {
  width: fit-content;
  padding: 6px 9px;
  border-radius: 999px;
  color: white;
  background: var(--coral);
  font-size: 12px;
}

.audienceFocus small {
  color: var(--ink);
  font-weight: 900;
}

.journeyPills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.journeyPills span {
  padding: 7px 10px;
  border: 1px solid #d6e2f3;
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.journeyPills span.active {
  border-color: var(--blue);
  background: var(--blue);
  color: white;
}

.builderHero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(170px, 1.1fr);
  gap: 14px;
  align-items: center;
  padding: 16px;
}

.builderHero img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: var(--radius);
}

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

.builderCopy small {
  color: var(--teal-dark);
  font-weight: 900;
}

.builderCopy strong {
  font-size: 22px;
  line-height: 1.22;
}

.builderCopy button,
.realLayoutPreview button {
  width: fit-content;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: white;
  background: var(--coral);
  font-weight: 900;
}

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

.builderCards article {
  min-height: 80px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: #f8fbff;
  border-radius: var(--radius);
  color: var(--teal-dark);
  font-weight: 900;
}

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

.dataSource {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  background: white;
  border-radius: var(--radius);
  color: var(--ink);
  text-align: left;
}

.dataSource span {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
}

.dataSource.active {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.swatches {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}

.swatches span {
  width: 54px;
  height: 54px;
  border: 1px solid rgba(29, 38, 53, 0.12);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.realLayoutPreview {
  min-height: 262px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(170px, 1.08fr);
  grid-template-rows: 1fr auto;
  gap: 12px;
  align-items: stretch;
}

.realLayoutPreview figure {
  margin: 0;
  min-height: 210px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #e2e8f0;
}

.realLayoutPreview img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  display: block;
  object-fit: cover;
}

.previewCopy {
  display: grid;
  align-content: center;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--line);
  background: white;
  border-radius: var(--radius);
}

.previewCopy span {
  width: fit-content;
  padding: 5px 8px;
  border-radius: var(--radius);
  background: #eef3ff;
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 900;
}

.previewCopy h4 {
  margin: 0;
  font-size: 22px;
  line-height: 1.18;
}

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

.previewSections {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.previewSections b {
  min-height: 42px;
  display: grid;
  place-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  background: #f8fbff;
  border-radius: var(--radius);
  color: var(--teal-dark);
  font-size: 12px;
  text-align: center;
}

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

.templateField {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(29, 38, 53, 0.055);
}

.templateField strong {
  font-size: 14px;
  line-height: 1.35;
}

.templateField textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--line);
  background: #f8fbff;
  border-radius: var(--radius);
  padding: 10px;
  color: var(--ink);
  line-height: 1.5;
}

.templateActions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  background: #f8fbff;
  border-radius: var(--radius);
}

.templateActions span {
  color: var(--muted);
  font-size: 14px;
}

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

.promptCard {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(29, 38, 53, 0.07);
}

.promptCard strong {
  font-size: 18px;
}

.promptCard p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
  font-size: 15px;
}

.adMockBoard {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  gap: 16px;
  align-items: stretch;
}

.socialAdPreview {
  overflow: hidden;
  border: 1px solid var(--line);
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 14px 32px rgba(29, 38, 53, 0.08);
}

.postHeader {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.postHeader span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--teal), var(--coral));
  font-weight: 900;
}

.socialAdPreview figure {
  margin: 0;
  height: 220px;
  overflow: hidden;
}

.socialAdPreview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.socialAdPreview h4,
.socialAdPreview p {
  margin: 0;
  padding: 0 14px;
}

.socialAdPreview h4 {
  padding-top: 14px;
  font-size: 20px;
  line-height: 1.25;
}

.socialAdPreview p {
  padding-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}

.socialAdPreview button {
  width: calc(100% - 28px);
  margin: 14px;
  padding: 11px 12px;
  border-radius: var(--radius);
  color: white;
  background: var(--teal);
  font-weight: 900;
}

.campaignPyramid {
  display: grid;
  gap: 10px;
  max-width: 760px;
  margin: 0 auto;
}

.pyramidLayer {
  min-height: 74px;
  display: grid;
  gap: 4px;
  place-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: white;
  text-align: center;
  background: var(--teal);
}

.pyramidLayer span {
  font-size: 13px;
  opacity: 0.9;
}

.pyramidLayer.layer0 { margin: 0 26%; background: var(--coral); }
.pyramidLayer.layer1 { margin: 0 16%; background: var(--amber); }
.pyramidLayer.layer2 { margin: 0 7%; background: var(--blue); }
.pyramidLayer.layer3 { margin: 0; background: var(--green); }

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

.pluginRow {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
}

.pluginRow strong {
  color: var(--teal-dark);
}

.resourceIntro {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

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

.resourceCard {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(29, 38, 53, 0.07);
}

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

.resourceCardTop h4 {
  margin: 8px 0 0;
  font-size: 18px;
  line-height: 1.25;
}

.resourceCardTop p,
.resourceWhy {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.resourceBadge {
  display: inline-flex;
  width: fit-content;
  padding: 5px 8px;
  border-radius: var(--radius);
  background: #eef3ff;
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

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

.resourceLinks a {
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--teal-dark);
  background: #f8fbff;
  font-size: 13px;
  font-weight: 800;
}

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

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

.colorSwatch {
  height: 58px;
  margin-bottom: 10px;
  border-radius: var(--radius);
}

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

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

.runItem {
  min-height: 128px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  background: white;
  border-radius: var(--radius);
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.runItem.active {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(239, 91, 91, 0.12);
}

.runItem:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.35);
}

.runItem strong {
  font-size: 14px;
  line-height: 1.25;
}

.runItem span {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
}

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

.activityCard {
  padding: 14px;
  border: 1px solid var(--line);
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(29, 38, 53, 0.055);
}

.activityCard span {
  display: inline-block;
  margin-bottom: 8px;
  padding: 5px 8px;
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
}

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

.quizOption {
  width: 100%;
  color: var(--ink);
  text-align: left;
  background: #f8fbff;
  border: 1px solid var(--line);
}

.quizOption.correct {
  color: white;
  background: var(--green);
  border-color: var(--green);
}

.quizOption.wrong {
  color: white;
  background: var(--coral);
  border-color: var(--coral);
}

.quizFeedback {
  padding: 12px;
  background: #eef3ff;
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px;
}

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

.noteBox {
  padding: 12px;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

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

.talkStep {
  padding: 12px;
  border: 1px solid var(--line);
  background: white;
  border-radius: var(--radius);
}

.talkStep strong {
  display: block;
  margin-bottom: 6px;
  color: var(--teal-dark);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.talkStep p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.talkStep em {
  color: var(--ink);
  font-style: normal;
  font-weight: 800;
}

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

  .app.menuCollapsed {
    grid-template-columns: 1fr;
  }

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

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

  .workspace,
  .heroPanel,
  .deckShell,
  .slideHeroSplit,
  .houseExperience,
  .caseDemo,
  .caseWebsitePreview,
  .audienceStudio,
  .realCasePanel,
  .builderDemo,
  .colorPanel {
    grid-template-columns: 1fr;
  }

  .deckStage {
    min-height: auto;
  }

  .slideRail {
    order: 2;
  }

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

  .stickyPanel {
    position: relative;
    top: auto;
  }
}

@media (max-width: 760px) {
  .content,
  .sidebar {
    padding: 16px;
  }

  .topbar,
  .panelHeader,
  .timeBox {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar h2,
  .heroCopy h3 {
    font-size: 24px;
  }

  .lessonNav,
  .conceptGrid,
  .conceptMap,
  .decisionPanel,
  .compareGrid,
  .houseMap,
  .journeyMap,
  .siloBuilder,
  .layoutStudio,
  .realLayoutPreview,
  .webHeroMini,
  .webSplitDemo section,
  .webZDemo section,
  .miniHero,
  .webArticleDemo main,
  .productGrid,
  .webSectionChips,
  .miniProof,
  .miniForm,
  .toolFlow,
  .poemGrid,
  .dataGrid,
  .dataSourceGrid,
  .templateGrid,
  .promptGrid,
  .adMockBoard,
  .resourceGrid,
  .colorGrid,
  .runSheet,
  .activityList,
  .slideGrid,
  .slideGrid.three,
  .rubricBoard,
  .deckControls,
  .slideThumbs,
  .seoMock {
    grid-template-columns: 1fr;
  }

  .layoutCanvas,
  .mockBrowser,
  .layoutBody,
  .webDemoFrame {
    min-height: auto;
  }

  .webHeroMini img,
  .webSplitDemo img,
  .webZDemo img,
  .miniHero img {
    height: 190px;
  }

  .layoutHighlight {
    max-width: 150px;
    transform: scale(0.9);
    transform-origin: left top;
  }

  .builderCanvas img {
    height: 240px;
  }

  .builderOverlay {
    padding: 7px;
  }

  .audienceMap,
  .audienceFunnel {
    min-height: 360px;
  }

  .audienceNode {
    width: 36%;
    min-height: 92px;
    padding: 10px;
  }

  .nodeCold { left: 6%; }
  .nodeCustom { left: 58%; }
  .nodeRemarketing { left: 6%; }
  .nodeLookalike { left: 58%; }

  .previewSections,
  .builderCards {
    grid-template-columns: 1fr;
  }

  .learningSlide {
    min-height: auto;
    padding: 22px 20px 24px;
  }

  .slideMount,
  .deckStage {
    min-height: auto;
  }

  .slideMedia,
  .slideMedia img,
  .houseAiWrap,
  .houseAiWrap img {
    min-height: 280px;
  }

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

  .pyramidLayer.layer0,
  .pyramidLayer.layer1,
  .pyramidLayer.layer2 {
    margin: 0;
  }
}

.timeBox,
.classTimer,
.heroPanel,
.legacyWorkspace,
#timerDisplay,
#timerStart,
#timerReset {
  display: none !important;
}
