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

:root {
  --bg: #080b12;
  --panel: #101620;
  --panel-strong: #151d2a;
  --panel-soft: #0d121b;
  --ink: #f7f1e3;
  --muted: #a9b3c7;
  --dim: #667085;
  --line: rgba(244, 234, 210, 0.13);
  --aurora: #67e8d0;
  --aurora-strong: #2dd4bf;
  --ember: #d7a84f;
  --arcane: #b667ff;
  --danger: #e87373;
  --shadow: 0 18px 70px rgba(0, 0, 0, 0.34);
  --radius: 8px;
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% 8%, rgba(103, 232, 208, 0.12), transparent 24rem),
    linear-gradient(135deg, #080b12 0%, #0b1019 44%, #111827 100%);
  color: var(--ink);
  font-family: "Manrope", "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 250px;
  padding: 18px;
  border-right: 1px solid var(--line);
  background: rgba(8, 11, 18, 0.82);
  backdrop-filter: blur(22px);
  z-index: 3;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 24px;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--aurora), var(--arcane));
  color: #071018;
  font-weight: 800;
}

.brand strong,
.brand span {
  display: block;
}

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

nav {
  display: grid;
  gap: 5px;
}

nav a {
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
  padding: 9px 10px;
  text-decoration: none;
}

nav a:hover,
nav a.active {
  background: rgba(103, 232, 208, 0.1);
  color: var(--ink);
}

main {
  margin-left: 250px;
  padding: 28px;
}

section {
  max-width: var(--content);
  margin: 0 auto;
  padding: 34px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 28px;
  min-height: 650px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--aurora);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
.type-sample strong {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-weight: 700;
}

h1 {
  max-width: 700px;
  margin-bottom: 18px;
  font-size: clamp(42px, 5vw, 74px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: 30px;
  line-height: 1.12;
}

h3 {
  margin-bottom: 10px;
  font-family: "Manrope", "Segoe UI", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 17px;
  font-weight: 700;
}

.lead {
  max-width: 650px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.62;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 8px 12px;
  text-decoration: none;
}

.button.primary {
  background: var(--aurora);
  color: #071018;
}

.button.ghost {
  background: rgba(244, 234, 210, 0.08);
  color: var(--ink);
}

.hero-panel,
.surface,
.screen-preview {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(21, 29, 42, 0.96), rgba(13, 18, 27, 0.96));
  box-shadow: var(--shadow);
}

.hero-panel {
  min-height: 560px;
  padding: 18px;
}

.panel-top {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
}

.panel-top span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(244, 234, 210, 0.24);
}

.command {
  border: 1px solid rgba(103, 232, 208, 0.22);
  border-radius: var(--radius);
  background: rgba(8, 11, 18, 0.72);
  color: var(--muted);
  padding: 12px 14px;
}

.command.small {
  font-size: 14px;
}

.atlas {
  position: relative;
  min-height: 350px;
  margin: 16px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(244, 234, 210, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(244, 234, 210, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 35% 42%, rgba(103, 232, 208, 0.22), transparent 9rem),
    radial-gradient(circle at 67% 62%, rgba(182, 103, 255, 0.18), transparent 10rem),
    #0a1018;
  background-size: 44px 44px, 44px 44px, auto, auto, auto;
}

.atlas::before,
.atlas::after {
  content: "";
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(103, 232, 208, 0.7), transparent);
  transform: rotate(-18deg);
}

.atlas::before {
  inset: 42% 14% auto 18%;
}

.atlas::after {
  inset: 64% 20% auto 38%;
  transform: rotate(24deg);
}

.node {
  position: absolute;
  border: 1px solid rgba(244, 234, 210, 0.18);
  border-radius: 999px;
  background: rgba(8, 11, 18, 0.76);
  color: var(--ink);
  font-size: 13px;
  padding: 7px 10px;
}

.node.one { left: 18%; top: 33%; }
.node.two { right: 18%; top: 24%; }
.node.three { left: 36%; bottom: 24%; }
.node.four { right: 12%; bottom: 18%; }

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.metric-row div {
  border-radius: var(--radius);
  background: rgba(244, 234, 210, 0.06);
  padding: 12px;
}

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

.metric-row strong {
  font-size: 25px;
}

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

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

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

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

.surface {
  padding: 18px;
}

.surface p,
.component-card p,
.rules p {
  color: var(--muted);
  line-height: 1.58;
}

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

.swatches span {
  min-height: 82px;
  border-radius: var(--radius);
  background: var(--swatch);
  color: #fff;
  display: flex;
  align-items: flex-end;
  padding: 10px;
  font-size: 13px;
  font-weight: 700;
}

.type-sample {
  margin: 18px 0;
  border-left: 2px solid var(--ember);
  padding-left: 14px;
}

.type-sample span,
.type-sample strong {
  display: block;
}

.type-sample span {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
}

.type-sample strong {
  font-size: 34px;
  line-height: 1.04;
}

.section-heading {
  margin-bottom: 18px;
}

.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(215, 168, 79, 0.16);
  color: #f5d795;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
  padding: 4px 8px;
}

.chip.teal {
  background: rgba(103, 232, 208, 0.14);
  color: var(--aurora);
}

.chip.violet {
  background: rgba(182, 103, 255, 0.16);
  color: #d9b5ff;
}

.component-card {
  min-height: 230px;
}

.component-card .button {
  margin: 8px 8px 0 0;
}

.progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(244, 234, 210, 0.08);
  margin: 18px 0;
}

.progress span {
  display: block;
  width: 74%;
  height: 100%;
  background: linear-gradient(90deg, var(--aurora), var(--ember));
}

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

.clean-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.clean-list b {
  color: var(--muted);
  font-size: 13px;
}

.dream-app {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 300px;
  min-height: 760px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0a1018;
  box-shadow: var(--shadow);
}

.dream-sidebar,
.right-inspector {
  background:
    radial-gradient(circle at 60% 15%, rgba(103, 232, 208, 0.08), transparent 12rem),
    rgba(8, 11, 18, 0.82);
}

.dream-sidebar {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  padding: 16px 14px;
}

.dream-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  font-size: 18px;
}

.dream-logo span {
  color: var(--ink);
  font-size: 26px;
}

.project-switcher {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(244, 234, 210, 0.06);
  margin-bottom: 18px;
  padding: 8px;
}

.project-switcher .cover {
  width: 38px;
  height: 46px;
  border-radius: 6px;
  background:
    linear-gradient(160deg, rgba(103, 232, 208, 0.2), rgba(182, 103, 255, 0.16)),
    #111827;
}

.project-switcher b,
.project-switcher em {
  display: block;
}

.project-switcher b {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-switcher em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.gear {
  color: var(--muted);
}

.dream-nav {
  display: grid;
  gap: 5px;
}

.dream-nav.lower {
  border-top: 1px solid var(--line);
  margin-top: auto;
  padding-top: 14px;
}

.dream-nav.foot {
  margin-top: 18px;
}

.dream-nav button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  padding: 9px 8px;
  text-align: left;
}

.dream-nav button.active,
.dream-nav button:hover {
  background: rgba(244, 234, 210, 0.08);
  color: var(--ink);
}

.dream-nav span {
  grid-row: span 2;
  color: currentColor;
  font-size: 21px;
  text-align: center;
}

.dream-nav b,
.dream-nav em {
  display: block;
}

.dream-nav b {
  font-size: 14px;
  font-weight: 600;
}

.dream-nav em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.dream-topbar {
  display: grid;
  grid-template-columns: minmax(260px, 560px) auto;
  gap: 12px;
  align-items: center;
  min-height: 62px;
  border-bottom: 1px solid var(--line);
  padding: 10px 14px;
}

.dream-search {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 11, 18, 0.62);
  color: var(--muted);
  padding: 8px 10px;
}

.dream-search kbd {
  margin-left: auto;
  border-radius: 5px;
  background: rgba(244, 234, 210, 0.08);
  color: var(--muted);
  font-family: inherit;
  font-size: 11px;
  padding: 2px 5px;
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.top-actions button {
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  padding: 8px;
}

.top-actions button:first-child {
  color: var(--ink);
  font-weight: 600;
}

.avatar {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(103, 232, 208, 0.38);
  border-radius: 50%;
  background: rgba(103, 232, 208, 0.12);
  color: var(--aurora);
  font-weight: 800;
}

.dream-content {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.project-overview,
.scene-pipeline {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(244, 234, 210, 0.035);
  padding: 12px;
}

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

.mini-heading h3,
.scene-pipeline h3 {
  margin-bottom: 10px;
}

.mini-heading button {
  border: 0;
  background: transparent;
  color: #c7a7ff;
  cursor: pointer;
}

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

.ring-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  align-items: center;
}

.ring {
  display: grid;
  width: 104px;
  height: 104px;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, #0a1018 52%, transparent 54%),
    conic-gradient(var(--aurora) 62%, rgba(244, 234, 210, 0.1) 0);
  font-size: 24px;
  font-weight: 700;
}

.ring-card p,
.target-chart p {
  color: var(--muted);
  margin-bottom: 8px;
}

.ring-card b {
  color: var(--ink);
}

.arc-list {
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 0 16px;
}

.arc-list h4,
.target-chart h4 {
  margin: 0 0 10px;
}

.arc-list button {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  margin-bottom: 11px;
  padding: 0 0 7px;
  text-align: left;
}

.arc-list i {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  border-radius: 999px;
  background: rgba(244, 234, 210, 0.08);
}

.arc-list i::before {
  content: "";
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--arcane), var(--aurora));
}

.target-chart svg {
  width: 100%;
  min-height: 120px;
}

.target-chart path {
  fill: rgba(103, 232, 208, 0.14);
  stroke: none;
}

.target-chart polyline {
  fill: none;
  stroke: var(--aurora);
  stroke-width: 3;
}

.pipeline-columns {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.pipeline-col {
  border-top: 2px solid var(--arcane);
  border-radius: 6px;
  background: rgba(244, 234, 210, 0.045);
  padding: 10px 8px;
}

.pipeline-col.blue { border-color: #60a5fa; }
.pipeline-col.cyan { border-color: #38bdf8; }
.pipeline-col.gold { border-color: var(--ember); }
.pipeline-col.orange { border-color: #f97316; }
.pipeline-col.green { border-color: #4ade80; }

.pipeline-col b,
.pipeline-col span,
.pipeline-col em {
  display: block;
  text-transform: uppercase;
}

.pipeline-col b {
  color: var(--muted);
  font-size: 11px;
}

.pipeline-col span,
.pipeline-col em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  text-transform: none;
}

.pipeline-col p {
  border: 1px solid rgba(244, 234, 210, 0.08);
  border-radius: 5px;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.35;
  margin: 8px 0;
  padding: 8px;
}

.right-inspector {
  position: relative;
  border-left: 1px solid var(--line);
  padding: 18px;
}

.close-panel {
  position: absolute;
  top: 16px;
  right: 16px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 24px;
}

.panel-tabs {
  display: flex;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  margin: 16px 0;
}

.panel-tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  padding: 0 0 9px;
}

.panel-tabs button.active {
  border-color: var(--arcane);
  color: var(--ink);
}

.panel-progress span {
  width: 75%;
  background: var(--arcane);
}

.right-inspector dl {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.right-inspector dl div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.right-inspector dt,
.right-inspector dd,
.right-inspector p,
.beat-list {
  color: var(--muted);
}

.right-inspector dd {
  margin: 0;
}

.right-inspector h4 {
  margin: 18px 0 8px;
}

.beat-list {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}

.beat-list li {
  position: relative;
  padding-left: 28px;
}

.beat-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 16px;
  height: 16px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.beat-list li.done::before {
  background: var(--arcane);
  border-color: var(--arcane);
}

.interactive-shell {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 28% 30%, rgba(103, 232, 208, 0.1), transparent 18rem),
    linear-gradient(180deg, rgba(21, 29, 42, 0.96), rgba(8, 11, 18, 0.96));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.map-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 14px;
}

.segmented {
  display: inline-flex;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 11, 18, 0.62);
  padding: 4px;
}

.segmented button {
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 10px;
}

.segmented button.active {
  background: rgba(103, 232, 208, 0.13);
  color: var(--ink);
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  min-height: 520px;
}

.relation-map {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(244, 234, 210, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(244, 234, 210, 0.035) 1px, transparent 1px),
    #0a1018;
  background-size: 36px 36px;
}

.relation-map svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.link {
  stroke: rgba(103, 232, 208, 0.5);
  stroke-width: 2;
}

.link.enemy,
.link.threat {
  stroke: rgba(232, 115, 115, 0.62);
}

.link.trade {
  stroke: rgba(215, 168, 79, 0.58);
}

.link.strained {
  stroke: rgba(244, 234, 210, 0.26);
  stroke-dasharray: 5 7;
}

.map-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: grid;
  min-width: 112px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-align: center;
  transform: translate(-50%, -50%);
}

.map-node span {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  justify-self: center;
  border: 2px solid rgba(103, 232, 208, 0.44);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, rgba(244, 234, 210, 0.22), transparent 26px),
    #111827;
  box-shadow: 0 0 0 6px rgba(103, 232, 208, 0.05);
  color: var(--aurora);
  font-weight: 800;
}

.map-node b,
.map-node em {
  display: block;
  margin-top: 6px;
}

.map-node b {
  font-size: 13px;
}

.map-node em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.map-node.main span,
.map-node.active span {
  border-color: var(--arcane);
  box-shadow: 0 0 0 7px rgba(182, 103, 255, 0.12), 0 0 28px rgba(182, 103, 255, 0.28);
  color: #d9b5ff;
}

.map-node.danger span {
  border-color: rgba(232, 115, 115, 0.58);
  color: #ffb1b1;
}

.map-node.muted span {
  border-color: rgba(244, 234, 210, 0.28);
  color: var(--muted);
}

.map-legend {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: rgba(8, 11, 18, 0.72);
  color: var(--muted);
  font-size: 12px;
  padding: 5px 8px;
}

.map-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.loyal-dot { background: var(--aurora); }
.enemy-dot { background: var(--danger); }
.ember-dot { background: var(--ember); }

.map-inspector {
  border-left: 1px solid var(--line);
  background: rgba(8, 11, 18, 0.52);
  padding: 18px;
}

.map-inspector h3 {
  margin-bottom: 12px;
  font-size: 24px;
}

.map-inspector p {
  color: var(--muted);
  line-height: 1.58;
}

.map-inspector dl {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.map-inspector dl div {
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.map-inspector dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.map-inspector dd {
  margin: 5px 0 0;
  font-size: 14px;
}

.planner-demo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 72% 22%, rgba(215, 168, 79, 0.1), transparent 14rem),
    rgba(8, 11, 18, 0.78);
  box-shadow: var(--shadow);
  padding: 14px;
}

.planner-days,
.planner-cards,
.thread-board {
  grid-column: 1;
}

.planner-days {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.planner-days button {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(244, 234, 210, 0.04);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  padding: 10px;
  text-align: left;
}

.planner-days button.active {
  border-color: rgba(103, 232, 208, 0.48);
  background: rgba(103, 232, 208, 0.1);
  color: var(--ink);
}

.planner-days b,
.planner-days span {
  display: block;
}

.planner-days b {
  font-size: 15px;
}

.planner-days span {
  font-size: 12px;
}

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

.planner-cards::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(244, 234, 210, 0.22), transparent);
}

.task-card {
  position: relative;
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(21, 29, 42, 0.94);
  padding: 12px;
}

.task-card.selected {
  border-color: rgba(232, 115, 115, 0.8);
  box-shadow: 0 0 0 1px rgba(232, 115, 115, 0.2), 0 0 28px rgba(232, 115, 115, 0.12);
}

.task-card span {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(244, 234, 210, 0.08);
  color: var(--muted);
  font-size: 12px;
  padding: 4px 7px;
}

.task-card h3 {
  margin: 18px 0 8px;
}

.task-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.48;
}

.thread-board {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(244, 234, 210, 0.035);
  margin-top: 12px;
  padding: 12px;
}

.thread-row {
  display: grid;
  grid-template-columns: 32px 170px repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
  min-height: 44px;
}

.thread-row b {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
}

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

.thread-row i {
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.78;
}

.thread-row.urgent { color: var(--danger); }
.thread-row.focus { color: var(--aurora); }
.thread-row.admin { color: var(--ember); }
.thread-row.learning { color: var(--arcane); }

.planner-note {
  grid-column: 2;
  grid-row: 1 / span 3;
  border-left: 1px solid var(--line);
  padding: 8px 0 8px 14px;
}

.planner-note p {
  color: var(--muted);
  line-height: 1.55;
}

.planner-note b {
  color: var(--ink);
}

.inspector-progress {
  border-radius: var(--radius);
  background: rgba(244, 234, 210, 0.05);
  padding: 12px;
}

.inspector-progress > span,
.inspector-progress > b {
  display: inline-block;
  margin-bottom: 10px;
}

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

.inspector-progress > b {
  float: right;
}

.screen-preview {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 260px;
  min-height: 450px;
  overflow: hidden;
}

.mini-sidebar,
.inspector {
  background: rgba(8, 11, 18, 0.54);
  padding: 18px;
}

.mini-sidebar {
  display: grid;
  align-content: start;
  gap: 12px;
  border-right: 1px solid var(--line);
}

.mini-sidebar span {
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  background: rgba(244, 234, 210, 0.08);
}

.mini-sidebar span:first-child {
  background: var(--aurora);
}

.workspace {
  padding: 18px;
}

.board {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr 0.9fr;
  gap: 12px;
  margin-top: 16px;
}

.lane {
  min-height: 250px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(244, 234, 210, 0.05);
  padding: 14px;
}

.lane.tall {
  min-height: 330px;
  background: rgba(103, 232, 208, 0.08);
}

.lane p,
.inspector p {
  color: var(--muted);
  line-height: 1.5;
}

.inspector {
  border-left: 1px solid var(--line);
}

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

.rules-grid p {
  min-height: 120px;
  border-radius: var(--radius);
  background: rgba(244, 234, 210, 0.05);
  margin: 0;
  padding: 14px;
}

@media (max-width: 980px) {
  .sidebar {
    position: sticky;
    top: 0;
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sidebar nav {
    display: flex;
    overflow-x: auto;
  }

  main {
    margin-left: 0;
    padding: 20px;
  }

  .hero,
  .grid.two,
  .grid.three,
  .rules-grid,
  .dream-app,
  .overview-grid,
  .pipeline-columns,
  .map-toolbar,
  .map-layout,
  .planner-demo,
  .planner-cards,
  .screen-preview {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .hero-panel {
    min-height: 500px;
  }

  .screen-preview {
    min-height: 0;
  }

  .mini-sidebar {
    display: flex;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .inspector {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .map-inspector {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .dream-sidebar,
  .right-inspector,
  .planner-note {
    border-left: 0;
    border-right: 0;
  }

  .planner-note {
    grid-column: 1;
    grid-row: auto;
    border-top: 1px solid var(--line);
    padding: 14px 0 0;
  }
}

@media (max-width: 640px) {
  main {
    padding: 16px;
  }

  .brand {
    padding-bottom: 12px;
  }

  h1 {
    font-size: 40px;
  }

  .lead {
    font-size: 16px;
  }

  .metric-row,
  .swatches,
  .board,
  .planner-days {
    grid-template-columns: 1fr;
  }

  .dream-topbar,
  .ring-card,
  .thread-row {
    grid-template-columns: 1fr;
  }

  .relation-map {
    min-height: 460px;
    transform-origin: top left;
  }

  .map-node {
    min-width: 82px;
  }

  .map-node span {
    width: 44px;
    height: 44px;
  }

  .map-node b {
    font-size: 12px;
  }

  .map-node em {
    display: none;
  }
}
