/* Homepage-only refinement layer. It intentionally stops before the workspace app. */

:root {
  --home-refine-line: #e8e8e8;
  --home-refine-ink: #171717;
  --home-refine-muted: #707070;
  --home-refine-blue: #2563eb;
  --home-refine-warm: #fffdf8;
}

/* Manifesto: keep the copy, remove the decorative side pieces. */
[data-section03-story] .story-inner {
  min-height: 520px;
  padding: 104px 32px;
  display: grid;
  place-items: center;
}

[data-section03-story] .story-copy.statement-copy {
  position: relative;
  inset: auto;
  grid-area: auto;
  width: min(100%, 720px);
  max-width: 720px;
  margin: 0;
  padding: 0;
  transform: none;
  justify-self: center;
  align-self: center;
  text-align: left;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

[data-section03-story] .statement-nowrap {
  white-space: nowrap;
}

/* Quote strip: half-height, one text colour, no auxiliary mark. */
[data-section04-links] .home-testimonial-band {
  margin: 0;
  min-height: 118px;
  padding: 26px 48px;
}

[data-section04-links] .home-testimonial-content {
  min-height: 64px;
  width: 100%;
  display: block;
}

[data-section04-links] .home-testimonial-content > p {
  max-width: 900px;
  margin: 0;
  color: #262626;
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: currentColor;
  font-size: clamp(18px, 1.55vw, 24px);
  line-height: 1.48;
}

/* Opportunity cards: quiet white paper and restrained depth. */
.home-discovery {
  --home-discovery-card-width: 188px;
  --home-discovery-card-height: 252px;
}

.home-discovery-card {
  background: #fff;
  border-color: #ececec;
  box-shadow:
    0 1px 2px rgba(24, 24, 24, 0.015),
    0 5px 14px rgba(24, 24, 24, 0.02);
}

.home-discovery-card-copy h3 {
  color: #242424;
  font-size: 18px;
  line-height: 1.28;
}

.home-discovery-card-copy p {
  color: #6c6c6c;
  font-size: 14px;
  line-height: 1.45;
}

.home-discovery-card-stats dt {
  color: #2d2d2d;
  font-size: 14px;
}

.home-discovery-card-stats dd {
  color: #777;
  font-size: 12.5px;
}

.home-discovery-copy {
  padding-top: 8px;
}

/* Dub-inspired asymmetric mosaic, populated with Yuchaoguan bot capabilities. */
.customers {
  padding: 0;
}

.bot-mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: row dense;
  grid-auto-rows: 292px;
  gap: 1px;
  overflow: hidden;
  border-top: 1px solid var(--home-refine-line);
  border-bottom: 1px solid var(--home-refine-line);
  background: var(--home-refine-line);
}

/* This section owns its staggered reveal. Keep the outer shell visible so the
   shared page reveal utility never leaves a full-height blank region. */
.bot-mosaic.reveal {
  opacity: 1;
  transform: none;
}

.bot-mosaic-cell {
  --mosaic-x: 50%;
  --mosaic-y: 50%;
  position: relative;
  min-width: 0;
  overflow: hidden;
  color: var(--home-refine-ink);
  background: #fff;
  box-shadow: none;
  transition: background-color 180ms ease;
}

.bot-mosaic-wide {
  grid-column: span 2;
}

.bot-mosaic-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 38px 30px;
}

.bot-mosaic-logo > svg {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  stroke-width: 1.7;
}

.bot-mosaic-logo > div {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.bot-mosaic-logo strong {
  font-size: 22px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.bot-mosaic-logo span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #7b7b7b;
  font-size: 14.5px;
  line-height: 1.3;
  white-space: nowrap;
}

.bot-mosaic-logo span b {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.09);
}

.bot-mosaic-story {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px 44px;
}

.bot-mosaic-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: max-content;
  margin-bottom: 13px;
  color: #656565;
  font-size: 13px;
  font-weight: 560;
}

.bot-mosaic-kicker svg {
  width: 15px;
  height: 15px;
  stroke-width: 1.8;
}

.bot-mosaic-story h3 {
  margin: 0 0 8px;
  color: #171717;
  font-size: clamp(21px, 1.6vw, 25px);
  font-weight: 650;
  line-height: 1.24;
  letter-spacing: -0.025em;
}

.bot-mosaic-story p {
  max-width: 520px;
  margin: 0;
  color: #666;
  font-size: 16.5px;
  line-height: 1.65;
}

.bot-mosaic-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.bot-mosaic-status span {
  padding: 5px 9px;
  border: 1px solid #ececec;
  border-radius: 7px;
  color: #696969;
  background: rgba(255, 255, 255, 0.76);
  font-size: 12.5px;
  line-height: 1;
}

@media (hover: hover) and (pointer: fine) {
  .bot-mosaic-cell:hover {
    z-index: 1;
    box-shadow: none;
  }

  .home-discovery-card:hover {
    box-shadow: 0 4px 12px rgba(24, 24, 24, 0.025);
  }
}

.bot-mosaic.is-mosaic-ready .bot-mosaic-cell {
  opacity: 0;
  transform: translateY(12px);
}

.bot-mosaic.is-mosaic-ready.is-mosaic-visible .bot-mosaic-cell {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 420ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 180ms ease;
  transition-delay: calc(var(--mosaic-index, 0) * 34ms);
}

/* Dub-style CTA: two explicit curves, a flat bridge, and aligned side rails. */
.dark-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 388px;
}

.dark-cta::before {
  content: none;
}

.dark-cta-grid {
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.15;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.86), transparent 86%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.86), transparent 86%);
}

.dark-cta-rails {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: min(960px, calc(100% - 32px));
  margin-inline: auto;
  border-inline: 1px solid rgba(255, 255, 255, 0.085);
  pointer-events: none;
}

.dark-cta-notch {
  position: absolute;
  z-index: 2;
  top: -1px;
  left: 50%;
  display: flex;
  width: min(700px, calc(100vw - 32px));
  height: 64px;
  color: #fff;
  transform: translateX(-50%) translateY(-1px);
  pointer-events: none;
}

.dark-cta-curve {
  width: 85px;
  height: 64px;
  flex: 0 0 85px;
  overflow: visible;
}

.dark-cta-curve-left {
  transform: translate(1px, 1px);
}

.dark-cta-curve-right {
  transform: translate(-1px, 1px) scaleX(-1);
}

.dark-cta-notch-center {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-width: 0;
  height: 65px;
  border-top: 1px solid currentColor;
  background: currentColor;
}

.dark-cta-inner {
  position: relative;
  z-index: 3;
  gap: 20px;
  padding-top: 34px;
}

.dark-cta h2 {
  font-size: clamp(34px, 3.2vw, 44px);
}

.dark-cta p {
  font-size: 17px;
}

@media (max-width: 959px) {
  [data-section03-story] .story-inner {
    min-height: 470px;
    padding: 88px 32px;
  }

  [data-section04-links] .home-testimonial-band {
    padding: 24px 32px;
  }

  .bot-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 238px;
  }

  .bot-mosaic-story {
    padding: 24px 26px;
  }
}

@media (max-width: 639px) {
  [data-section03-story] .story-inner {
    min-height: auto;
    padding: 72px 22px;
  }

  [data-section03-story] .story-copy.statement-copy {
    width: 100%;
  }

  [data-section03-story] .statement-nowrap {
    white-space: normal;
  }

  [data-section04-links] .home-testimonial-band {
    min-height: 96px;
    padding: 20px 22px;
  }

  [data-section04-links] .home-testimonial-content {
    min-height: 0;
    display: block;
    text-align: left;
  }

  [data-section04-links] .home-testimonial-content > p {
    font-size: 17px;
    line-height: 1.5;
    text-align: left;
  }

  .home-discovery {
    --home-discovery-card-width: 176px;
    --home-discovery-card-height: 238px;
  }

  .home-discovery-card-copy h3 {
    font-size: 17px;
  }

  .bot-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
  }

  .bot-mosaic-wide {
    grid-column: 1 / -1;
  }

  .bot-mosaic-cell {
    min-height: 158px;
  }

  .bot-mosaic-logo {
    min-width: 0;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    padding: 24px 16px;
  }

  .bot-mosaic-logo > svg {
    width: 28px;
    height: 28px;
  }

  .bot-mosaic-logo strong {
    font-size: 17px;
  }

  .bot-mosaic-logo span {
    align-items: flex-start;
    font-size: 12px;
    white-space: normal;
  }

  .bot-mosaic-story {
    min-height: 224px;
    padding: 28px 24px;
  }

  .bot-mosaic-story h3 {
    font-size: 21px;
  }

  .bot-mosaic-story p {
    font-size: 15.5px;
  }

  .dark-cta {
    min-height: 352px;
  }

  .dark-cta-inner {
    padding-top: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bot-mosaic-cell,
  .bot-mosaic.is-mosaic-ready .bot-mosaic-cell,
  .bot-mosaic.is-mosaic-ready.is-mosaic-visible .bot-mosaic-cell {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Final homepage detail pass. */
.site-nav .nav-inner {
  width: min(100%, var(--page-max));
  display: flex;
  justify-content: flex-start;
  padding-inline: 0;
}

.site-nav .brand { font-weight: 400; }

[data-section03-story] .story-inner {
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: center;
  justify-items: stretch;
}

[data-section03-story] .story-copy.statement-copy {
  width: 100%;
  max-width: 620px;
  justify-self: start;
}

.home-statement-proof {
  position: relative;
  width: 300px;
  min-height: 220px;
  justify-self: end;
  pointer-events: none;
}

.home-statement-chart {
  position: absolute;
  inset: 14px 0 auto;
  z-index: 0;
  width: 100%;
  height: 200px;
  overflow: visible;
}

.home-statement-chart-grid path {
  fill: none;
  stroke: #d9e2ef;
  stroke-width: 1;
  stroke-dasharray: 5 6;
}

.home-statement-chart-area {
  fill: url(#home-statement-chart-fill);
}

.home-statement-chart-line {
  fill: none;
  stroke: #4f8cff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-statement-proof-card {
  position: absolute;
  top: 32px;
  right: 8px;
  z-index: 1;
  width: 190px;
  box-sizing: border-box;
  padding: 15px 14px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
  color: #222;
  transform: rotate(-3deg);
  transform-origin: center;
}

[data-section03-story] .statement-copy .statement-close {
  font-size: 24px;
}

.home-statement-proof-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
}

.home-statement-proof-live {
  padding: 3px 6px;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 9px;
  font-weight: 600;
}

.home-statement-proof-metrics {
  margin: 12px 0 0;
  display: grid;
  gap: 8px;
}

.home-statement-proof-metrics div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.home-statement-proof-metrics dt {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #6b7280;
  font-size: 10.5px;
  white-space: nowrap;
}

.home-statement-proof-metrics dd {
  margin: 0;
  color: #1f2937;
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.proof-dot {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  display: inline-block;
}

.proof-dot-blue { background: #60a5fa; }
.proof-dot-violet { background: #a78bfa; }
.proof-dot-green { background: #34d399; }

.home-statement-proof-owner {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid #eceff3;
}

.home-statement-proof-avatar {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f3f4f6;
  color: #374151;
  font-size: 11px;
  font-weight: 600;
}

.home-statement-proof-owner > span:last-child { display: grid; gap: 2px; }
.home-statement-proof-owner strong { font-size: 11.5px; font-weight: 600; }
.home-statement-proof-owner small { color: #9ca3af; font-size: 9.5px; }

[data-section04-links] .home-testimonial-band {
  min-height: 177px;
  padding: 39px 48px;
}

[data-section04-links] .home-testimonial-content {
  min-height: 96px;
  display: flex;
  align-items: center;
}

.home-scale-metrics dd small {
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1;
  margin-left: 2px;
  vertical-align: 0.08em;
}

.home-discovery-copy {
  padding-top: 0;
  transform: translateY(-10px);
}

.bot-mosaic { grid-auto-rows: 264px; }
.dark-cta-notch-center { border-top: 0; }

.dark-cta-guide-path {
  stroke: var(--home-refine-line, #e5e7eb);
  stroke-width: 1px;
  shape-rendering: crispEdges;
}

@media (max-width: 959px) {
  .site-nav .nav-inner { width: min(960px, calc(100% - 40px)); }
  [data-section03-story] .story-inner { grid-template-columns: minmax(0, 1fr) clamp(190px, 30vw, 230px); gap: clamp(12px, 2vw, 24px); }
  [data-section03-story] .story-copy.statement-copy { max-width: 560px; }
  .home-statement-proof { width: 100%; min-height: 210px; }
  .home-statement-proof-card { width: min(174px, calc(100% - 12px)); right: 2px; transform: rotate(-2deg); }
  [data-section04-links] .home-testimonial-band { min-height: 168px; padding: 36px 32px; }
  [data-section04-links] .home-testimonial-content { min-height: 96px; }
  .bot-mosaic { grid-auto-rows: 218px; }
}

@media (min-width: 640px) and (max-width: 959px) {
  [data-section03-story] .story-inner {
    grid-template-columns: minmax(0, 1fr) clamp(190px, 30vw, 230px);
    gap: clamp(12px, 2vw, 24px);
    padding-inline: clamp(24px, 4vw, 32px);
    overflow: hidden;
  }

  [data-section03-story] .story-copy.statement-copy {
    min-width: 0;
    max-width: none;
  }

  [data-section03-story] .statement-nowrap { white-space: normal; }

  .home-statement-proof {
    width: 100%;
    min-width: 0;
    max-width: 230px;
    box-sizing: border-box;
  }

  [data-section03-story] .statement-copy .statement-close { font-size: 28px; }
}

@media (max-width: 639px) {
  .site-nav .nav-inner { width: calc(100% - 32px); }
  [data-section03-story] .story-inner { grid-template-columns: 1fr; }
  .home-statement-proof { display: none; }
  [data-section04-links] .home-testimonial-band { min-height: 144px; padding: 30px 22px; }
  [data-section04-links] .home-testimonial-content { min-height: 84px; }
  .bot-mosaic-cell { min-height: 146px; }
  .bot-mosaic-story { min-height: 204px; }
}

@media (min-width: 960px) {
  [data-section03-story] .statement-copy .statement-close { font-size: 30px; }
}

/* The CTA transition stays structural: two SVG arcs, two guide extensions, then solid black. */
.customers::after { content: none; }
.bot-mosaic { border-bottom: 0; }
.dark-cta {
  border-top: 0;
  background: #000;
}
.dark-cta-grid,
.dark-cta-rails { display: none; }
.dark-cta-notch-center { border-top: 0; }

.dark-cta-notch::before,
.dark-cta-notch::after {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0;
  width: 1px;
  height: 65px;
  background: var(--home-refine-line, #e5e7eb);
  pointer-events: none;
}

@media (min-width: 960px) {
  .dark-cta-notch {
    width: min(700px, calc(50vw + 99px));
  }

  .dark-cta-notch::before,
  .dark-cta-notch::after {
    content: none;
  }
}

@media (max-width: 959px) {
  .dark-cta-guide-path { display: none; }
  .dark-cta-notch::before { left: 50%; }
  .dark-cta-notch::after { display: none; }
}

/* Homepage product preview mirrors the real workspace without sharing its state or handlers. */
.dashboard-shell.home-workspace-preview {
  position: relative;
  display: block;
  background: #fff;
}

.home-workspace-preview > .app-spine,
.home-workspace-preview > .app-sidebar,
.home-workspace-preview > .app-content {
  display: none;
}

.home-canvas-demo {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #fff;
  color: #171717;
  font-family: var(--font-ui);
}

.home-canvas-sidebar {
  position: absolute;
  z-index: 4;
  inset: 0 auto 0 0;
  width: 21%;
  padding: 14px 12px;
  border-right: 1px solid #e5e7eb;
  background: rgba(255, 255, 255, 0.97);
}

.home-canvas-user {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
}

.home-canvas-avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid #d8dadd;
  border-radius: 8px;
}

.home-canvas-avatar svg { width: 16px; height: 16px; }
.home-canvas-user strong,
.home-canvas-user small { display: block; }
.home-canvas-user strong { font-size: 11px; font-weight: 600; }
.home-canvas-user small { margin-top: 2px; color: #8b8f96; font-size: 8px; }

.home-canvas-account-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 7px 0 14px;
}

.home-canvas-account-actions span {
  min-height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid #e1e3e6;
  border-radius: 7px;
  color: #4b4f55;
  font-size: 8px;
}

.home-canvas-sidebar h3 {
  margin: 11px 0 7px;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.3;
}

.home-canvas-robot {
  min-height: 44px;
  display: grid;
  grid-template-columns: 27px 1fr;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
  padding: 6px;
  border: 1px solid #dfe2e6;
  border-radius: 8px;
  background: #fff;
}

.home-canvas-robot > svg {
  width: 26px;
  height: 26px;
  padding: 6px;
  border-radius: 7px;
  background: #f4f7fa;
  color: #6f8498;
}

.home-canvas-robot.is-blue { border-color: #9ab8ff; }
.home-canvas-robot.is-blue > svg { background: #edf4ff; color: #3478ff; }
.home-canvas-robot.is-copper > svg { background: #fff5ef; color: #b66f4b; }
.home-canvas-robot.is-sand { border-color: #d9c5a5; }
.home-canvas-robot.is-sand > svg { background: #fbf6ed; color: #9c7c50; }
.home-canvas-robot b,
.home-canvas-robot small { display: block; }
.home-canvas-robot b { font-size: 9px; font-weight: 600; }
.home-canvas-robot small { margin-top: 2px; color: #90949a; font-size: 7px; }

.home-canvas-feature-list {
  display: grid;
  gap: 5px;
}

.home-canvas-feature-list span {
  min-height: 28px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 7px;
  border: 1px solid #e3e7ee;
  border-radius: 7px;
  background: #f8fbff;
  color: #505861;
  font-size: 8px;
}

.home-canvas-feature-list svg { width: 13px; height: 13px; color: #4f83ff; }

.home-canvas-toolbar {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  left: 21%;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-bottom: 1px solid #edf0f3;
  background: rgba(255, 255, 255, 0.94);
}

.home-canvas-toolbar span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border: 1px solid #dfe2e6;
  border-radius: 999px;
  background: #fff;
  color: #44484e;
  font-size: 9px;
}

.home-canvas-toolbar span.is-primary { border-color: #b7ccff; color: #245ee8; }
.home-canvas-toolbar span.is-demo {
  border-color: #cbd2dc;
  color: #273444;
  font-weight: 600;
}
.home-canvas-toolbar small {
  color: #8b8f96;
  font-size: 7px;
}
.home-canvas-toolbar svg { width: 13px; height: 13px; }

.home-canvas-board {
  position: absolute;
  inset: 58px 0 0 21%;
  overflow: hidden;
  background-color: #fff;
  background-image: radial-gradient(circle, #d4d8de 0.8px, transparent 0.9px);
  background-size: 14px 14px;
}

.home-canvas-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.home-canvas-link-base,
.home-canvas-link-halo {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.home-canvas-link-halo {
  stroke: rgba(255, 255, 255, 0.96);
  stroke-width: 5.25;
}
.home-canvas-link-base {
  stroke-width: 1.35;
  opacity: 0.92;
}
.home-canvas-link-base.is-blue { stroke: #89a8e8; }
.home-canvas-link-base.is-copper { stroke: #c99373; }
.home-canvas-link-base.is-sand { stroke: #b9a17e; }
.home-canvas-link-base.is-neutral { stroke: #b9c0c9; }

.home-canvas-config {
  position: absolute;
  z-index: 2;
  top: 8%;
  left: 3%;
  width: 29%;
  min-width: 146px;
  padding: 10px;
  border: 1px solid #9dbbff;
  border-radius: 9px;
  background: #fff;
  color: #34383d;
}

.home-canvas-config-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 9px;
}
.home-canvas-config-head span { color: #8b8f96; font-size: 12px; }
.home-canvas-config > small { color: #767b82; font-size: 7px; }
.home-canvas-segments { display: flex; gap: 4px; margin: 5px 0 7px; }
.home-canvas-segments span {
  padding: 3px 6px;
  border: 1px solid #e1e4e8;
  border-radius: 5px;
  color: #777c83;
  font-size: 7px;
}
.home-canvas-segments span.active { border-color: #b9d0ff; background: #edf4ff; color: #3478ff; }
.home-canvas-input {
  min-height: 36px;
  padding: 7px;
  border: 1px solid #e2e5e9;
  border-radius: 6px;
  color: #979ba1;
  font-size: 7px;
}
.home-canvas-config-foot { margin: 8px -10px -10px; padding: 6px 10px; border-top: 1px solid #eceef1; color: #969aa0; font-size: 7px; }

.home-canvas-node {
  position: absolute;
  z-index: 2;
  left: var(--x);
  top: var(--y);
  width: 16%;
  min-width: 0;
  min-height: 54px;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 8px;
  padding: 9px;
  border: 1px solid #a9c1fa;
  border-radius: 10px;
  background: #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.045);
}

.home-canvas-node > svg {
  width: 32px;
  height: 32px;
  padding: 8px;
  border: 1px solid #bdd0ff;
  border-radius: 8px;
  background: #eef4ff;
  color: #3478ff;
}
.home-canvas-node b,
.home-canvas-node small { display: block; white-space: nowrap; }
.home-canvas-node b { overflow: hidden; color: #24272b; font-size: 9px; font-weight: 600; text-overflow: ellipsis; }
.home-canvas-node small { margin-top: 3px; color: #969aa0; font-size: 7px; }
.home-canvas-node.is-feature { width: 15%; }
.home-canvas-node.is-copper { border-color: #d7aa91; }
.home-canvas-node.is-copper > svg { border-color: #e5c4b2; background: #fff5ef; color: #af6844; }
.home-canvas-node.is-sand { border-color: #cfb991; }
.home-canvas-node.is-sand > svg { border-color: #dfcda9; background: #fbf6ed; color: #95754a; }
.home-canvas-node.is-capability {
  width: 17%;
  background: #fff;
}
.home-canvas-node.is-entitlement {
  width: 12%;
  min-width: 0;
  border-color: #c9cdd3;
}
.home-canvas-node.is-entitlement > svg {
  border-color: #dfe2e6;
  background: #f7f8f9;
  color: #626a74;
}
.home-canvas-node.is-group { width: 15%; min-width: 0; border-color: #b9bdc3; }
.home-canvas-node.is-group > svg { border-color: #dfe1e4; background: #fff; color: #4d5258; }

.home-canvas-minimap {
  position: absolute;
  z-index: 2;
  bottom: 12px;
  left: 14px;
  width: 120px;
  height: 72px;
  border: 1px solid #dfe3e8;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.92);
}
.home-canvas-minimap span,
.home-canvas-minimap i,
.home-canvas-minimap b { position: absolute; height: 5px; border-radius: 2px; background: #cbd5e1; }
.home-canvas-minimap span { top: 17px; left: 20px; width: 20px; }
.home-canvas-minimap i { top: 39px; left: 48px; width: 18px; }
.home-canvas-minimap b { top: 24px; right: 18px; width: 22px; background: #6ea2ff; }

@media (max-width: 959px) {
  .home-canvas-sidebar { width: 23%; }
  .home-canvas-toolbar { left: 23%; }
  .home-canvas-board { left: 23%; }
  .home-canvas-node {
    width: 17%;
    min-width: 0;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 5px;
    padding: 7px;
  }
  .home-canvas-node > svg {
    width: 26px;
    height: 26px;
    padding: 6px;
  }
  .home-canvas-node.is-feature { width: 17%; }
  .home-canvas-node.is-entitlement { width: 13%; }
  .home-canvas-node.is-group { width: 15%; }
}

@media (max-width: 699px) {
  .home-canvas-config {
    width: 30%;
    min-width: 0;
    padding: 6px;
  }
  .home-canvas-config-head { margin-bottom: 5px; }
  .home-canvas-segments { gap: 2px; margin-block: 3px 5px; }
  .home-canvas-segments span { padding: 2px 3px; }
  .home-canvas-input { min-height: 30px; padding: 4px; }
  .home-canvas-config-foot { margin: 5px -6px -6px; padding: 4px 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-canvas-link-base,
  .home-canvas-link-halo { transition: none; }
}
