/* Shared surface treatment; node coordinates, media and 3D rendering are untouched. */
:root {
  --font-display:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  --font-text: var(--font-display);
  --fs-body: 14px;
  --fs-callout: 14px;
  --fs-caption2: 12px;
  --fs-caption1: 13px;
  --fw-bold: 500;
  --r-pill: 10px;
  --theme-purple: #7b7b80;
  --shadow-0: none;
  --shadow-1: 0 0 0 1px var(--line);
  --shadow-2: 0 4px 16px #0002;
  --shadow-3: 0 8px 32px #0004;
  --accent: #246fd0;
  --brand-solid: #246fd0;
  --accent-hover: #1b5fb8;
  --accent-active: #17509b;
  --accent-ink: #2464ad;
  --accent-soft: #edf3fa;
  --accent-tint: #246fd00f;
  --focus-ring: 0 0 0 2px #83b9ff55;
}
:root[data-theme="dark"]:not([data-theme-lock]) {
  --bg-canvas: #141415;
  --surface: #19191b;
  --surface-2: #202022;
  --surface-3: #252527;
  --gray-1: #141415;
  --gray-2: #19191b;
  --gray-3: #202022;
  --gray-4: #252527;
  --gray-9: #85858b;
  --gray-10: #909096;
  --gray-11: #a1a1a6;
  --gray-14: #ededed;
  --line: #ffffff14;
  --line-soft: #ffffff0f;
  --line-faint: #ffffff08;
  --accent: #83b9ff;
  --accent-ink: #83b9ff;
  --accent-hover: #b0d0ff;
  --accent-active: #71a8ed;
  --accent-line: #83b9ff66;
  --accent-tint: #83b9ff10;
  --accent-soft: #83b9ff12;
  --brand-solid: #246fd0;
  --btn-primary-bg: #ededed;
  --btn-primary-ink: #161616;
  --btn-primary-bg-hover: #fff;
  --btn-primary-bg-active: #ccc;
  --state-on-bg: #28282b;
  --state-on-ink: #ededed;
  --accent-solid: #ededed;
  --on-solid: #161616;
  --selection-line: #83b9ff;
  --focus-ring: 0 0 0 2px #83b9ff55;
  --vibrancy-bg: #19191bf2;
  --vibrancy-bg-strong: #202022f5;
}
body {
  font-family: var(--font-text);
  font-size: 14px;
}
.home-hero-title,
.page-title,
.account-page-head h1,
.library-page-head h1 {
  font-weight: 500;
  letter-spacing: -0.02em;
  font-style: normal;
}
.home-hero-title em {
  font-style: normal;
  background: none;
  color: var(--ink);
  -webkit-text-fill-color: currentColor;
}
.home-page:before,
.home-hero:before {
  background-image: none !important;
}
.home-hero {
  background: none;
}
.home-hero-head {
  justify-content: flex-start;
}
.home-hero-title {
  font-size: 28px;
  line-height: 1.3;
}
.home-hero-logo,
.cv-brand-mark {
  background: url("/local/brand-mark.svg") center/contain no-repeat !important;
}
.home-hero-logo > * {
  visibility: hidden;
}
.cv-brand-mark > * {
  visibility: hidden;
}
.home-composer {
  border-radius: 12px !important;
  box-shadow: none !important;
  border: 1px solid var(--line) !important;
}
.global-sidebar {
  border-color: var(--line) !important;
  background: var(--surface) !important;
  box-shadow: none !important;
}
.global-sidebar :is(.nav-item, .gs-nav-item, .gs-nav a) {
  min-height: 36px;
  border-radius: 8px;
  box-shadow: none;
}
.sidebar,
.left-panel,
.right-panel {
  background: var(--surface) !important;
  border-color: var(--line) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
.nav-item.active,
.side-nav a.active {
  background: var(--fill-active) !important;
  box-shadow: none !important;
  color: var(--ink) !important;
}
.topbar {
  background: var(--surface) !important;
  border-color: var(--line) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
.btn.primary,
.btn-text.primary {
  background: var(--btn-primary-bg) !important;
  color: var(--btn-primary-ink) !important;
  box-shadow: none !important;
}
.panel,
.stat,
.card,
.plan,
.workflow-card,
.feature-card {
  background: var(--surface) !important;
  border-color: var(--line) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
.stat strong,
.price {
  background: none !important;
  -webkit-text-fill-color: currentColor;
  color: var(--ink);
}
.plan.recommend {
  background: var(--surface-2) !important;
  border-color: var(--accent-line) !important;
  box-shadow: none !important;
  color: var(--ink);
}
.hero-carousel,
.slide {
  background: var(--surface) !important;
  box-shadow: none !important;
}
.feature-visual,
.wf-icon {
  background: var(--surface-3) !important;
}
.tabs {
  background: var(--surface-2);
  border-color: var(--line);
  box-shadow: none;
  backdrop-filter: none;
}
.tab.active {
  background: var(--surface-3) !important;
  box-shadow: none !important;
  color: var(--ink) !important;
}
.btn,
.btn-text,
.btn-outline,
.btn-capsule {
  box-shadow: none !important;
  border-color: var(--line) !important;
}
.site-footer {
  background: none !important;
}
.cv-topbar,
.canvas-toolbar,
.canvas-bottom-bar,
.cv-bottom-bar,
.node-card,
.tool-node-card,
.dock-panel {
  box-shadow: 0 0 0 1px var(--line) !important;
}
.canvas-area {
  background: var(--bg-canvas) !important;
}
.cv-brand {
  border-radius: 8px !important;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.orders-shell header h1 {
  font-weight: 500;
}
.orders-card {
  box-shadow: none !important;
  border-radius: 12px;
}
.wrap,
.auth-card {
  border-radius: 12px;
}
.local-page :is(h1, h2) {
  font-weight: 500;
}
.local-page button {
  border-radius: 8px;
  min-height: 36px;
}
.local-page .structured-editor {
  margin: 16px 0;
}
.local-page .structured-editor h3 {
  font-size: 16px;
}
@media (max-width: 700px) {
  .home-hero-title {
    font-size: 24px;
  }
  .home-hero-head {
    gap: 12px;
  }
  .home-hero-logo {
    width: 28px;
    height: 28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
:root,
:root[data-theme="dark"]:not([data-theme-lock]) {
  --site-logo-image: url("/local/brand-mark.svg") !important;
}
.global-logo.has-logo img,
.cv-brand-mark img,
#canvasModalMark img {
  content: normal !important;
  filter: none !important;
}
.global-logo.has-logo img {
  object-fit: contain;
}
.global-logo.has-logo {
  background: none !important;
  box-shadow: none !important;
}

/* Product wordmark: stable 2-line rhythm beside the unchanged soundwave. */
@media (min-width: 701px) {
  body .global-side-head .global-brand-name {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 0;
  }
  body .global-side-head .global-brand-name .brand-product {
    font-size: 12px;
    font-weight: 400;
    color: var(--ink-3);
    line-height: 1.2;
  }
  html.gsb-collapsed body .global-side-head .global-brand-name {
    display: none;
  }
}

.canvas-gen-logo {
  box-shadow: none !important;
}

.project-card:hover > .project-more,
.project-card:focus-within > .project-more,
.project-more.is-open {
  opacity: 1;
  transform: none;
}
.project-more {
  z-index: 2;
}

/* Project actions stay next to the row, outside the sidebar scroll clipping. */
.global-side-project-row {
  position: relative;
  border-radius: 8px;
}
body .global-side-project-row .global-side-project {
  padding-right: 36px;
}
.global-project-more {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: var(--surface-3);
  color: var(--ink-3);
  opacity: 0;
  cursor: pointer;
}
.global-project-more svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.global-side-project-row:hover .global-project-more,
.global-side-project-row:focus-within .global-project-more,
.global-project-more[aria-expanded="true"] {
  opacity: 1;
}
.global-side-project-row:hover {
  background: var(--fill-hover);
}
.global-project-more:hover {
  color: var(--ink);
}
.global-project-pin {
  display: flex;
  margin-left: auto;
  color: var(--ink-3);
}
.global-project-pin svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}
.project-quick-menu {
  position: fixed;
  z-index: 11000;
  min-width: 204px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface, #19191c);
  color: var(--ink, #f2f2f3);
  box-shadow: 0 12px 36px #0003;
}
.project-quick-menu :is(button, a) {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 13px;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}
.project-quick-menu svg {
  width: 16px;
  height: 16px;
  flex: none;
}
.project-quick-menu :is(button, a):is(:hover, :focus-visible) {
  background: var(--fill-hover, #ffffff0c);
}
.project-quick-menu .danger {
  color: #c77c86;
  border-top: 1px solid var(--line);
  border-radius: 0 0 6px 6px;
  margin-top: 4px;
}
@media (hover: none) {
  .global-project-more {
    opacity: 1;
  }
}
