:root {
  --paper: #f2f0e9;
  --panel: #fbfaf6;
  --panel-2: #eef0e8;
  --ink: #111712;
  --forest: #173f32;
  --lime: #d8f279;
  --rule: rgba(17, 23, 18, 0.16);
  --text: #111712;
  --muted: #647067;
  --accent: #173f32;
  --accent-2: #84ab43;
  --node: #fcfbf7;
  --node-border: rgba(23, 63, 50, 0.22);
  --shadow: rgba(30, 52, 41, 0.12);
  --edge: #6e8878;
  --edge-glow: rgba(23, 63, 50, 0.22);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--paper);
  min-height: 100vh;
}

.workspace-app {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.studio-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  min-height: 52px;
  padding: 6px 12px;
  border-bottom: 1px solid var(--rule);
  background: rgba(251, 250, 246, 0.97);
  position: relative;
  z-index: 30;
}

.studio-header-brand,
.studio-header-end,
.studio-tool-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.studio-header-brand {
  max-width: min(240px, 28vw);
}

.studio-header-brand .workspace-mark,
.studio-header-brand .brand-mark {
  width: 32px;
  height: 32px;
}

.studio-header-brand .brand-wordmark {
  font-size: 15px;
}

.studio-header-brand .brand-motto {
  font-size: 10px;
}

.studio-switch-link {
  padding: 6px 8px;
  border-left: 1px solid var(--rule);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.studio-header-toolbar {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: visible;
}

.studio-header-toolbar-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
  overflow-x: auto;
  scrollbar-width: none;
}

.studio-header-toolbar-scroll::-webkit-scrollbar {
  display: none;
}

.studio-header-toolbar-scroll > * {
  flex-shrink: 0;
}

.studio-header-end {
  flex-shrink: 0;
}

.studio-header-divider {
  width: 1px;
  height: 26px;
  flex-shrink: 0;
  background: var(--rule);
}

.idea-map-header,
.family-tree-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  min-height: 52px;
  padding: 6px 12px;
  position: relative;
  z-index: 30;
  overflow: visible;
  border-bottom: 1px solid var(--rule);
  background: rgba(251, 250, 246, 0.98);
}

.workspace-header-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  min-width: 0;
}

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

.workspace-header-brand .workspace-mark,
.workspace-header-brand .brand-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.workspace-header-brand .brand-wordmark {
  font-family: var(--font-brand), Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
}

.workspace-header-divider {
  width: 1px;
  height: 22px;
  flex-shrink: 0;
  background: var(--rule);
}

.workspace-header-title {
  color: var(--forest);
  font-family: var(--font-brand), Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}

.idea-map-header-right,
.family-tree-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  min-width: 0;
  flex: 0 1 auto;
  overflow: visible;
}

.idea-map-header-tools,
.family-tree-header-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: visible;
}

.idea-map-header-tools-scroll,
.family-tree-header-tools-scroll {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.idea-map-header-tools-scroll::-webkit-scrollbar,
.family-tree-header-tools-scroll::-webkit-scrollbar {
  display: none;
}

.idea-map-header-tools-scroll > *,
.family-tree-header-tools-scroll > * {
  flex-shrink: 0;
}

.idea-map-header-tools .icon-btn,
.family-tree-header-tools .icon-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 8px;
}

.idea-map-type-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 2px;
  padding-right: 8px;
  border-right: 1px solid var(--rule);
}

.idea-map-type-control > span {
  color: #68736b;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.idea-map-type-control select {
  min-width: 104px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid rgba(23, 63, 50, 0.18);
  border-radius: 8px;
  background: #fff;
  color: var(--forest);
  font: inherit;
  font-size: 11px;
  font-weight: 750;
}

.idea-map-type-control select:focus {
  outline: none;
  border-color: rgba(23, 63, 50, 0.42);
  box-shadow: 0 0 0 3px rgba(216, 242, 121, 0.28);
}

.idea-map-zoom,
.family-tree-zoom {
  min-height: 32px;
  margin-inline: 2px;
  padding-inline: 4px;
  border-inline: 1px solid var(--rule);
}

.idea-map-bar-btn,
.family-tree-bar-btn {
  height: 32px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}

.idea-map-more,
.family-tree-more {
  position: relative;
  flex-shrink: 0;
  z-index: 1;
}

.idea-map-more[open],
.family-tree-more[open] {
  z-index: 45;
}

.idea-map-more summary,
.family-tree-more summary {
  height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--forest);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}

.idea-map-more summary::-webkit-details-marker,
.family-tree-more summary::-webkit-details-marker {
  display: none;
}

.idea-map-more-panel,
.family-tree-more-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  width: 270px;
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 18px 44px rgba(30, 52, 41, 0.16);
}

.idea-map-more-panel label,
.family-tree-more-panel label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.idea-map-more-panel select,
.family-tree-more-panel select {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--rule);
  border-radius: 9px;
  background: #fff;
  color: var(--text);
}

.idea-map-more-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  color: var(--text);
  font-size: 12px;
  font-weight: 650;
}

.idea-map-more-check input {
  accent-color: var(--forest);
}

.idea-map-header-actions,
.family-tree-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding-left: 8px;
  margin-left: 2px;
  border-left: 1px solid var(--rule);
}

.idea-map-action-btn,
.family-tree-action-btn {
  height: 32px;
  padding-inline: 12px;
  font-size: 11px;
  white-space: nowrap;
}

.idea-map-header .preview-btn,
.family-tree-header .preview-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.idea-map-header .preview-type-badge {
  font-size: 9px;
  padding: 2px 6px;
}

.studio-tool-btn {
  min-height: 34px;
  padding: 0 10px;
  font-size: 11px;
  white-space: nowrap;
}

.studio-session-btn {
  min-height: 34px;
  padding-inline: 12px;
  font-size: 12px;
  white-space: nowrap;
}

.studio-zoom {
  min-height: 34px;
}

.studio-select select {
  min-height: 34px;
  padding: 0 8px;
  border: 1px solid var(--rule);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  font: inherit;
  font-size: 11px;
  font-weight: 650;
}

.studio-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 8px;
  border: 1px solid var(--rule);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--forest);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.studio-check input {
  accent-color: var(--forest);
}

.studio-tools {
  position: relative;
  flex-shrink: 0;
  z-index: 1;
}

.studio-tools[open] {
  z-index: 45;
}

.studio-tools summary {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--rule);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--forest);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.studio-tools summary::-webkit-details-marker {
  display: none;
}

.studio-tools-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 270px;
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 18px 44px rgba(30, 52, 41, 0.16);
  z-index: 40;
}

.studio-tools-panel label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.studio-tools-panel select {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--rule);
  border-radius: 9px;
  background: #fff;
  color: var(--text);
}

.workspace-search-btn svg {
  width: 16px;
  height: 16px;
}

.workspace-search-dialog {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: start center;
  padding: 72px 16px 16px;
  pointer-events: none;
}

.workspace-search-dialog[hidden] {
  display: none;
}

.workspace-search-panel {
  position: relative;
  width: min(520px, 100%);
  padding: 16px;
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: 0 24px 60px rgba(30, 52, 41, 0.18);
  pointer-events: auto;
}

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

.workspace-search-panel-head strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 750;
}

.workspace-search-panel input[type="search"] {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
  outline: none;
}

.workspace-search-panel input[type="search"]:focus {
  border-color: rgba(23, 63, 50, 0.42);
  box-shadow: 0 0 0 3px rgba(216, 242, 121, 0.32);
}

.family-topbar {
  display: grid;
  grid-template-columns: auto minmax(180px, 360px) auto;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
  padding: 10px 16px;
  border-bottom: 1px solid var(--rule);
  background: rgba(251, 250, 246, 0.97);
  position: relative;
  z-index: 30;
}

.family-heading,
.family-session,
.family-command-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.family-switch-link {
  margin-left: 8px;
  padding: 7px 10px;
  border-left: 1px solid var(--rule);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.family-search input {
  width: 100%;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font: inherit;
  outline: none;
}

.family-search input:focus {
  border-color: rgba(23, 63, 50, 0.42);
  box-shadow: 0 0 0 3px rgba(216, 242, 121, 0.32);
}

.family-session {
  justify-content: flex-end;
}

.family-commandbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  min-height: 54px;
  padding: 7px 16px;
  border-bottom: 1px solid var(--rule);
  background: rgba(242, 240, 233, 0.97);
  position: relative;
  z-index: 25;
}

.family-command-primary {
  margin-left: auto;
}

.family-icon-btn {
  min-height: 38px;
  padding: 0 12px;
  font-size: 12px;
  white-space: nowrap;
}

.family-zoom {
  min-height: 38px;
}

.family-tools {
  position: relative;
}

.family-tools summary {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--rule);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--forest);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.family-tools summary::-webkit-details-marker {
  display: none;
}

.family-tools-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 270px;
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 18px 44px rgba(30, 52, 41, 0.16);
}

.family-tools-panel label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.family-tools-panel select {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--rule);
  border-radius: 9px;
  background: #fff;
  color: var(--text);
}

.family-stage {
  background-color: #edf0e8;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.3)),
    radial-gradient(rgba(23, 63, 50, 0.19) 0.8px, transparent 0.8px);
}

.family-empty-card {
  width: min(620px, 100%);
}

.family-status {
  min-height: 45px;
  padding-block: 7px;
}

.idea-topbar {
  display: grid;
  grid-template-columns: auto minmax(180px, 360px) auto;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
  padding: 10px 16px;
  border-bottom: 1px solid var(--rule);
  background: rgba(251, 250, 246, 0.97);
  position: relative;
  z-index: 30;
}

.idea-heading,
.idea-session,
.idea-command-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.idea-switch-link {
  margin-left: 8px;
  padding: 7px 10px;
  border-left: 1px solid var(--rule);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.idea-search input {
  width: 100%;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font: inherit;
  outline: none;
}

.idea-search input:focus {
  border-color: rgba(23, 63, 50, 0.42);
  box-shadow: 0 0 0 3px rgba(216, 242, 121, 0.32);
}

.idea-session {
  justify-content: flex-end;
}

.idea-commandbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  min-height: 54px;
  padding: 7px 16px;
  border-bottom: 1px solid var(--rule);
  background: rgba(242, 240, 233, 0.97);
  position: relative;
  z-index: 25;
}

.idea-command-primary {
  margin-left: auto;
}

.idea-icon-btn {
  min-height: 38px;
  padding: 0 12px;
  font-size: 12px;
  white-space: nowrap;
}

.idea-zoom {
  min-height: 38px;
}

.idea-graph-type select,
.idea-layout select {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--rule);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 650;
}

.idea-auto {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--rule);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--forest);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.idea-auto input {
  accent-color: var(--forest);
}

.idea-tools {
  position: relative;
}

.idea-tools summary {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--rule);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--forest);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.idea-tools summary::-webkit-details-marker {
  display: none;
}

.idea-tools-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 270px;
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 18px 44px rgba(30, 52, 41, 0.16);
}

.idea-tools-panel label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.idea-tools-panel select {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--rule);
  border-radius: 9px;
  background: #fff;
  color: var(--text);
}

.idea-stage {
  background-color: #edf0e8;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.3)),
    radial-gradient(rgba(23, 63, 50, 0.19) 0.8px, transparent 0.8px);
}

.idea-empty-card {
  width: min(760px, 100%);
}

.idea-status {
  min-height: 45px;
  padding-block: 7px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  padding: 8px 14px;
  background: rgba(251, 250, 246, 0.96);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar-leading {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.topbar-sep {
  width: 1px;
  height: 30px;
  flex-shrink: 0;
  background: var(--rule);
}

.topbar-sep-tools {
  margin-left: 4px;
}

.workspace-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}

.workspace-mark,
.brand-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: block;
  border-radius: 50%;
  box-shadow: 0 8px 18px var(--shadow);
}

.workspace-name,
.brand-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.workspace-name strong,
.brand-copy strong:not(.brand-wordmark) {
  display: block;
  color: var(--ink);
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.workspace-name .brand-wordmark,
.brand-wordmark {
  font-family: var(--font-brand), Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.workspace-name .brand-wordmark {
  font-size: 15px;
}

.workspace-name .brand-motto,
.workspace-name small,
.brand-motto {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
  font-weight: 500;
  white-space: nowrap;
}

.toolbar-nav {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.55);
}

.toolbar-nav .nav-link {
  padding: 7px 10px;
  font-size: 12px;
}

.toolbar-session {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.toolbar-session .primary,
.toolbar-session .ghost {
  padding: 7px 12px;
  font-size: 12px;
}

.toolbar {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.toolbar-tools {
  justify-content: flex-end;
  margin-left: auto;
}

.toolbar-section {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
}

.toolbar-cluster {
  padding: 2px;
  border-radius: 9px;
  border: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.78);
}

.toolbar-search {
  flex: 0 1 220px;
  min-width: 140px;
  padding: 2px 6px;
}

.toolbar-search .search-control {
  width: 100%;
  min-height: 28px;
  border: none;
  background: transparent;
  padding: 2px 4px;
}

.toolbar-search .search-control input[type="search"] {
  width: 100%;
  min-width: 0;
}

.compact-btn {
  min-height: 28px;
  padding: 6px 10px;
  font-size: 12px;
}

.compact-select {
  min-height: 28px;
  padding: 4px 6px;
  font-size: 12px;
}

.compact-check {
  padding: 4px 8px 4px 6px;
  font-size: 12px;
}

.zoom-readout {
  min-width: 46px;
  padding: 6px 4px;
  font-size: 11px;
  font-weight: 700;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-link {
  text-decoration: none;
  color: var(--muted);
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--ink);
  border-color: rgba(23, 63, 50, 0.18);
  background: rgba(255, 255, 255, 0.72);
}

.nav-link.active {
  color: #fff;
  background: var(--forest);
  border-color: transparent;
  font-weight: 650;
}

.logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: -0.04em;
  color: var(--paper);
  background: var(--forest);
  box-shadow: 0 10px 24px var(--shadow);
  flex-shrink: 0;
}

.title {
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--ink);
}

.subtitle {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.home-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

button {
  border: none;
  padding: 7px 12px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

button.primary {
  background: var(--forest);
  color: #fff;
  box-shadow: 0 10px 22px rgba(23, 63, 50, 0.18);
}

button.primary:hover:not(:disabled) {
  transform: translateY(-1px);
}

button.ghost {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  border: 1px solid var(--rule);
}

button.ghost:hover:not(:disabled) {
  background: rgba(216, 242, 121, 0.22);
  border-color: rgba(23, 63, 50, 0.24);
}

.zoom-strip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.zoom-strip button {
  padding: 6px 8px;
  min-width: 30px;
}

.icon-btn svg {
  width: 15px;
  height: 15px;
}

.control-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 28px;
  padding: 4px 6px;
  border-radius: 8px;
  border: 1px solid var(--rule);
  font-size: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.82);
}

.check-control {
  padding-right: 10px;
}

.control-group select,
.control-group input[type="search"] {
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 12px;
  outline: none;
  appearance: none;
}

.control-group input[type="search"] {
  min-width: 120px;
}

.search-control {
  width: min(220px, 100%);
}

.search-control input[type="search"] {
  width: 100%;
}

.stage {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  cursor: grab;
  background-color: #eef0e8;
  background-image: radial-gradient(rgba(23, 63, 50, 0.19) 0.8px, transparent 0.8px);
  background-size: 18px 18px;
}

.stage.panning {
  cursor: grabbing;
}

.canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  transform-origin: 0 0;
}

.edges {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: 5;
  pointer-events: none;
  transform-origin: 0 0;
}

.map-edge-shadow {
  fill: none;
  stroke: rgba(23, 63, 50, 0.1);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map-edge-line {
  fill: none;
  stroke: url(#wenodify-edge-gradient);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map-edge.is-active .map-edge-shadow {
  stroke: rgba(216, 242, 121, 0.42);
  stroke-width: 9;
}

.map-edge.is-active .map-edge-line {
  stroke: #173f32;
  stroke-width: 2.8;
}

.map-edge-port {
  fill: #fcfbf7;
  stroke: #6e8878;
  stroke-width: 1.6;
}

.map-edge.is-active .map-edge-port {
  fill: #d8f279;
  stroke: #173f32;
  stroke-width: 2;
}

.empty-state {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  pointer-events: none;
  z-index: 4;
}

.empty-card {
  width: min(560px, 100%);
  display: grid;
  gap: 16px;
  padding: 38px 34px 34px;
  border: 1px solid rgba(23, 63, 50, 0.18);
  border-radius: 22px;
  background: rgba(251, 250, 246, 0.94);
  box-shadow: 0 28px 70px rgba(30, 52, 41, 0.12);
  pointer-events: auto;
}

.empty-card--with-picker {
  width: min(760px, 100%);
}

.graph-type-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.graph-type-option {
  display: grid;
  gap: 4px;
  padding: 12px 12px 10px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease, transform 120ms ease;
}

.graph-type-option:hover {
  border-color: rgba(84, 140, 100, 0.28);
  transform: translateY(-1px);
}

.graph-type-option.is-active {
  border-color: rgba(84, 140, 100, 0.45);
  background: rgba(223, 244, 234, 0.62);
  box-shadow: inset 0 0 0 1px rgba(84, 140, 100, 0.12);
}

.graph-type-option strong {
  color: var(--forest);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.graph-type-option span {
  color: #58645b;
  font-size: 12px;
  line-height: 1.45;
}

.graph-type-option em {
  color: #748078;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.empty-preview-hint {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(223, 244, 234, 0.35);
  color: #476552;
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
}

.preview-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.preview-type-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(84, 140, 100, 0.12);
  color: #35624a;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.preview-btn:disabled .preview-type-badge {
  opacity: 0.55;
}

.toolbar .compact-btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.empty-eyebrow {
  margin: 0;
  color: #748078;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.empty-card h1 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.empty-card > p {
  margin: 0;
  color: #58645b;
  font-size: 16px;
  line-height: 1.65;
}

.empty-steps {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  text-align: left;
}

.empty-steps li {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.empty-steps strong {
  color: var(--forest);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.empty-steps span {
  color: #647067;
  font-size: 13px;
  line-height: 1.5;
}

.empty-start {
  justify-self: start;
  margin-top: 6px;
  padding-inline: 22px;
}

.workspace-hint {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  pointer-events: none;
  max-width: min(720px, calc(100% - 32px));
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: rgba(251, 250, 246, 0.94);
  box-shadow: 0 10px 24px rgba(30, 52, 41, 0.08);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.workspace-hint.hidden,
.workspace-toast.hidden,
.canvas-validation-note.hidden,
.report.hidden {
  display: none;
}

.canvas-validation-note {
  position: fixed;
  bottom: 72px;
  left: 18px;
  z-index: 210;
  max-width: min(380px, calc(100vw - 36px));
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(210, 120, 40, 0.22);
  background: rgba(255, 249, 240, 0.96);
  box-shadow: 0 10px 24px rgba(30, 52, 41, 0.12);
  pointer-events: auto;
}

.canvas-validation-note .experience-preview-warnings {
  color: #6a756f;
  font-size: 12px;
  line-height: 1.5;
}

.canvas-validation-note .experience-preview-warnings summary {
  cursor: pointer;
  color: #8a5a24;
}

.canvas-validation-note .experience-preview-warning-lines {
  margin-top: 8px;
  max-height: 140px;
  overflow: auto;
}

.canvas-validation-note .experience-preview-warning-line {
  margin: 0 0 4px;
  color: #5f6d78;
}

.canvas-validation-note .experience-preview-warning-line[data-focus-node] {
  cursor: pointer;
}

.canvas-validation-note .experience-preview-warning-line[data-focus-node]:hover {
  color: #35624a;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
}

.workspace-status {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 10px 20px;
  border-top: 1px solid var(--rule);
  background: rgba(251, 250, 246, 0.96);
  color: #647067;
  font-size: 11px;
}

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

.status-home {
  color: var(--forest);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.status-home:hover {
  text-decoration: underline;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.82);
  color: #58645b;
  font-weight: 650;
}

.status-pill[data-state="saving"] {
  border-color: rgba(23, 63, 50, 0.22);
  background: rgba(216, 242, 121, 0.24);
  color: var(--forest);
}

.status-pill[data-state="saved"] {
  border-color: rgba(23, 63, 50, 0.18);
  color: var(--forest);
}

.status-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
}

.status-metrics strong {
  color: var(--ink);
  font-weight: 750;
}

.status-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  text-align: right;
}

.status-right a {
  color: var(--forest);
  font-weight: 700;
  text-decoration: none;
}

.status-right a:hover {
  text-decoration: underline;
}

.status-shortcuts {
  color: #8b948d;
}

.workspace-toast {
  position: fixed;
  left: 50%;
  bottom: 72px;
  transform: translateX(-50%);
  z-index: 300;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(23, 63, 50, 0.18);
  background: var(--forest);
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  box-shadow: 0 16px 40px rgba(23, 63, 50, 0.22);
}

.studio-companion-prompt {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 280;
  display: grid;
  gap: 12px;
  width: min(360px, calc(100vw - 32px));
  padding: 16px 18px;
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: rgba(251, 250, 246, 0.98);
  box-shadow: 0 18px 44px rgba(30, 52, 41, 0.16);
  animation: studio-companion-in 320ms ease;
}

@keyframes studio-companion-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.studio-companion-prompt-eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.studio-companion-prompt-body {
  margin: 4px 0 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
}

.studio-companion-prompt-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.studio-companion-prompt-open,
.studio-companion-prompt-later {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.studio-companion-prompt-open {
  text-decoration: none;
}

.studio-companion-prompt-later {
  color: var(--muted);
}

.node-root {
  border-color: var(--forest);
  box-shadow: 0 14px 32px rgba(23, 63, 50, 0.14);
}

.node-root::before {
  content: "Root";
  position: absolute;
  top: -10px;
  left: 12px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--forest);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.node-root .label {
  color: var(--forest);
}

.node {
  position: absolute;
  z-index: 2;
  width: 196px;
  min-width: 196px;
  max-width: 196px;
  padding: 13px 14px 11px;
  border-radius: 14px;
  background: var(--node);
  border: 1px solid var(--node-border);
  box-shadow: 0 12px 28px var(--shadow);
  cursor: grab;
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
}

.node:hover {
  border-color: rgba(23, 63, 50, 0.38);
}

.node.hidden {
  display: none;
}

.node:active {
  cursor: grabbing;
}

.node.selected {
  border-color: var(--forest);
  box-shadow: 0 0 0 2px rgba(23, 63, 50, 0.16), 0 16px 30px rgba(30, 52, 41, 0.14);
  transform: scale(1.02);
}

.node-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.person-card-main {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.person-avatar {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--forest);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.person-card-copy {
  min-width: 0;
}

.person-generation {
  margin-bottom: 3px;
  color: #829087;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.node.partnered::after {
  content: "Partner";
  position: absolute;
  top: -10px;
  right: 10px;
  font-size: 10px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(23, 63, 50, 0.1);
  border: 1px solid rgba(23, 63, 50, 0.28);
  color: var(--forest);
}

.node.placeholder {
  opacity: 0.82;
  border-style: dashed;
  background: rgba(252, 251, 247, 0.88);
}

.node.placeholder::after {
  content: "Inactive";
  background: rgba(216, 242, 121, 0.35);
  border-color: rgba(132, 171, 67, 0.45);
  color: #3f5f31;
}

.node.placeholder .label {
  color: var(--muted);
}

.node.placeholder .person-avatar {
  color: var(--forest);
  background: rgba(216, 242, 121, 0.52);
}

.node .label {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  overflow-wrap: anywhere;
  color: #203027;
  font-family: Georgia, "Times New Roman", serif;
}

.status-chip {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 2px 6px;
  font-size: 9px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid rgba(23, 63, 50, 0.18);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
}

.status-chip[data-status="active"] {
  color: var(--forest);
  border-color: rgba(23, 63, 50, 0.35);
  background: rgba(216, 242, 121, 0.35);
}

.status-chip[data-status="archived"] {
  color: #647067;
  border-color: rgba(100, 112, 103, 0.28);
  background: rgba(238, 240, 232, 0.9);
}

.node-body {
  margin-top: 5px;
  color: #58645b;
  font-size: 11px;
  line-height: 1.35;
  max-height: 45px;
  overflow: hidden;
}

.node-body.empty {
  color: #8b948d;
  font-style: italic;
}

.node .meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.node .toggle {
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 2px 6px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.72);
}

.node:not(.has-children) .toggle {
  display: none;
}

.node.has-children .toggle {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.node.has-children:hover .toggle,
.node.has-children:focus-within .toggle {
  opacity: 1;
  pointer-events: auto;
}

.node.match {
  border-color: var(--forest);
  box-shadow: 0 0 0 2px rgba(23, 63, 50, 0.18);
}

.report {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 320px;
  max-height: calc(100% - 80px);
  overflow: auto;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 0 16px 18px;
  box-shadow: 0 20px 40px rgba(30, 52, 41, 0.12);
  opacity: 1;
  transition: opacity 0.2s ease, transform 0.25s ease;
}

.report::-webkit-scrollbar {
  width: 8px;
}

.report::-webkit-scrollbar-track {
  background: rgba(238, 240, 232, 0.8);
  border-radius: 999px;
}

.report::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(23, 63, 50, 0.45), rgba(132, 171, 67, 0.55));
  border-radius: 999px;
  border: 2px solid rgba(238, 240, 232, 0.8);
}

.report {
  scrollbar-width: thin;
  scrollbar-color: rgba(23, 63, 50, 0.45) rgba(238, 240, 232, 0.8);
}

.inspector {
  position: absolute;
  left: 18px;
  top: 18px;
  width: 340px;
  max-height: calc(100% - 72px);
  overflow: auto;
  z-index: 5;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--rule);
  background: rgba(251, 250, 246, 0.98);
  box-shadow: 0 20px 44px rgba(30, 52, 41, 0.12);
  backdrop-filter: blur(12px);
}

.inspector.hidden {
  display: none;
}

.inspector-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}

.inspector-kicker {
  color: #748078;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.inspector-title {
  margin-top: 2px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.inspector-form {
  display: grid;
  gap: 12px;
}

.inspector-field {
  display: grid;
  gap: 6px;
  color: #748078;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.inspector-field input,
.inspector-field textarea,
.inspector-field select {
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 10px 11px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  font: inherit;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  outline: none;
}

.inspector-field textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.45;
}

.inspector-field input:focus,
.inspector-field textarea:focus,
.inspector-field select:focus {
  border-color: rgba(23, 63, 50, 0.45);
  box-shadow: 0 0 0 2px rgba(23, 63, 50, 0.1);
}

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

.report-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 -16px 16px;
  padding: 14px 16px 12px;
  border-radius: 19px 19px 0 0;
  background: var(--panel);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 2;
}

.report-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}

.report-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.report-actions .ghost {
  min-height: 30px;
  padding: 5px 10px;
  font-size: 12px;
}

.report-actions .ghost.icon-btn {
  min-width: 30px;
  padding: 5px 8px;
}

.report-section {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--rule);
}

.report-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  color: #748078;
  margin-bottom: 8px;
}

.report-text {
  margin: 0;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.5;
}

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

.report-grid div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--muted);
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(238, 240, 232, 0.88);
  border: 1px solid var(--rule);
}

.report-grid strong {
  color: var(--ink);
  font-size: 15px;
}

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

.report-list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(238, 240, 232, 0.88);
  border: 1px solid var(--rule);
}

.report-list strong {
  color: var(--ink);
  font-weight: 600;
}

.report-outline {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.report-outline .depth-group {
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.82);
}

.report-outline .depth-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
  color: #748078;
}

.report-outline .depth-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.report-chip {
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(23, 63, 50, 0.18);
  color: var(--ink);
  background: rgba(252, 251, 247, 0.95);
}

.inspector-meta div {
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.inspector-meta span {
  display: block;
  margin-bottom: 3px;
  color: #748078;
  font-size: 10px;
  text-transform: uppercase;
}

.inspector-meta strong {
  display: block;
  color: var(--ink);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-btn {
  padding: 6px 12px;
}

.file-btn {
  min-height: 30px;
  padding: 6px 12px;
}

.joint {
  cursor: pointer;
}

.joint:hover {
  filter: drop-shadow(0 0 6px rgba(23, 63, 50, 0.35));
}

.joint.inactive {
  cursor: not-allowed;
  opacity: 0.55;
}

.joint.inactive:hover {
  filter: none;
}

/* ── Node card footer & action buttons ─────────────────────── */

.node-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid var(--rule);
}

.node-footer .desc {
  font-size: 10px;
  color: #8b948d;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.node-footer .desc.has-subtree-tooltip {
  position: relative;
  z-index: 6;
  cursor: help;
  pointer-events: auto;
  text-decoration: underline dotted rgba(116, 128, 120, 0.55);
  text-underline-offset: 2px;
}

.node-footer .node-btns {
  position: relative;
  z-index: 6;
  pointer-events: auto;
}

.workspace-subtree-tooltip {
  position: fixed;
  z-index: 500;
  width: min(220px, calc(100vw - 24px));
  max-height: min(240px, 40vh);
  overflow: auto;
  padding: 10px 12px;
  border: 1px solid rgba(23, 63, 50, 0.14);
  border-radius: 12px;
  background: rgba(252, 251, 247, 0.98);
  box-shadow: 0 16px 40px rgba(17, 23, 18, 0.16);
  pointer-events: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(23, 63, 50, 0.42) var(--panel-2);
  scrollbar-gutter: stable;
}

.workspace-subtree-tooltip::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.workspace-subtree-tooltip::-webkit-scrollbar-track {
  margin: 6px 0;
  background: rgba(238, 240, 232, 0.55);
  border-radius: 999px;
}

.workspace-subtree-tooltip::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(23, 63, 50, 0.42), rgba(132, 171, 67, 0.52));
  border-radius: 999px;
  border: 1.5px solid rgba(252, 251, 247, 0.98);
  min-height: 28px;
}

.workspace-subtree-tooltip::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(23, 63, 50, 0.58), rgba(132, 171, 67, 0.68));
}

.workspace-subtree-tooltip::-webkit-scrollbar-corner {
  background: transparent;
}

.workspace-subtree-tooltip-title {
  margin: 0 0 8px;
  color: #748078;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workspace-subtree-tooltip-body {
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink);
}

.workspace-subtree-tooltip .subtree-summary {
  display: grid;
  gap: 6px;
}

.workspace-subtree-tooltip .subtree-summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(23, 63, 50, 0.08);
}

.workspace-subtree-tooltip .subtree-summary-row span {
  color: #748078;
  font-size: 11px;
  white-space: nowrap;
}

.workspace-subtree-tooltip .subtree-summary-row strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.workspace-subtree-tooltip .subtree-summary-total {
  border-bottom: 0;
  padding-top: 2px;
  margin-top: 2px;
}

.workspace-subtree-tooltip .subtree-summary-total span,
.workspace-subtree-tooltip .subtree-summary-total strong {
  color: #2f5a3d;
}

.generation-guide {
  position: absolute;
  left: 22px;
  right: 22px;
  z-index: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}

.generation-guide span {
  flex: 0 0 auto;
  color: rgba(55, 75, 64, 0.58);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.generation-guide i {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(23, 63, 50, 0.16), transparent 85%);
}

.family-inspector-header {
  align-items: center;
}

.family-inspector-person {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.family-inspector-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.family-inspector-actions button {
  min-height: 38px;
}

.family-inspector-actions button:last-child {
  grid-column: 1 / -1;
}

.family-inspector-actions button:disabled {
  opacity: 0.44;
  cursor: not-allowed;
}

.family-inspector-note {
  margin: 10px 0 0;
  padding: 10px 11px;
  border-radius: 10px;
  color: #5f6e64;
  background: rgba(216, 242, 121, 0.2);
  font-size: 11px;
  line-height: 1.45;
}

.family-inspector-meta {
  margin-top: 12px;
}

.family-relatives {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}

.family-relatives-heading {
  margin-bottom: 8px;
  color: #748078;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.family-relatives button {
  width: 100%;
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 8px;
  align-items: center;
  padding: 9px 10px;
  border: 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.family-relatives button:hover {
  border-radius: 9px;
  background: rgba(216, 242, 121, 0.2);
}

.family-relatives button span {
  color: #849087;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.family-relatives button strong {
  overflow: hidden;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.family-relatives p {
  margin: 0;
  color: #849087;
  font-size: 12px;
}

.family-inspector-footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
}

.family-inspector-footer .danger-btn {
  margin-left: auto;
  color: #a34545;
  border-color: rgba(163, 69, 69, 0.24);
}

.node-btns {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}

.node-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--rule);
  color: #748078;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  font-family: inherit;
}

.node-btn svg {
  width: 11px;
  height: 11px;
}

.node-btn:hover {
  background: rgba(216, 242, 121, 0.28);
  border-color: rgba(23, 63, 50, 0.28);
  color: var(--forest);
}

.node-btn[data-action="add-child"]:hover {
  border-color: rgba(23, 63, 50, 0.35);
  background: rgba(216, 242, 121, 0.35);
  color: var(--forest);
}

.node-btn[data-action="open-detail"]:hover {
  border-color: rgba(23, 63, 50, 0.35);
  background: rgba(238, 240, 232, 0.95);
  color: var(--forest);
}

.node-btn.hidden {
  display: none;
}

.node-btn.toggle-btn {
  width: 26px;
  padding: 0;
}

.node:not(.has-children) .toggle-btn {
  display: none;
}

.node.has-children .toggle-btn {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.node.has-children:hover .toggle-btn,
.node.has-children:focus-within .toggle-btn,
.node.has-children .toggle-btn:focus-visible {
  opacity: 1;
  pointer-events: auto;
}

.toggle-icon {
  width: 11px;
  height: 11px;
  transition: transform 0.15s ease;
}

.toggle-btn.is-collapsed .toggle-icon {
  transform: rotate(90deg);
}

.node.is-dragging {
  cursor: grabbing;
  z-index: 2;
}

/* ── Inline label edit ─────────────────────────────────────── */

.label-edit-input {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid rgba(23, 63, 50, 0.45);
  outline: none;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 0 0 2px;
  line-height: 1.2;
  caret-color: var(--forest);
}

/* ── Modal backdrop & dialog ───────────────────────────────── */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(17, 23, 18, 0.28);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modal-fade-in 0.16s ease;
}

.modal-backdrop.modal-out {
  animation: modal-fade-out 0.18s ease forwards;
}

@keyframes modal-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes modal-fade-out {
  from { opacity: 1; }
  to   { opacity: 0; }
}

.modal {
  background: rgba(251, 250, 246, 0.98);
  border: 1px solid var(--rule);
  border-radius: 20px;
  box-shadow: 0 32px 72px rgba(30, 52, 41, 0.18);
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  animation: modal-slide-in 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-detail {
  width: min(520px, calc(100vw - 32px));
}

.modal-export {
  width: min(760px, calc(100vw - 32px));
  overflow: hidden;
}

.export-preview-header {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(251, 250, 246, 0.98));
}

.export-preview-body {
  gap: 16px;
  padding-top: 16px;
}

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

.export-preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.export-preview-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.export-preview-chip--json {
  color: var(--forest);
  border-color: rgba(23, 63, 50, 0.24);
  background: rgba(216, 242, 121, 0.22);
}

.export-preview-chip--sql {
  color: #245a49;
  border-color: rgba(36, 90, 73, 0.24);
  background: rgba(132, 171, 67, 0.16);
}

.export-preview-chip--file {
  max-width: min(100%, 320px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
  color: #425047;
}

.export-preview-panel {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(17, 23, 18, 0.14);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.65) inset,
    0 18px 40px rgba(17, 23, 18, 0.12);
  background: #0f1411;
}

.export-preview-toolbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, #171d19 0%, #121714 100%);
}

.export-preview-toolbar-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.export-preview-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  opacity: 0.92;
}

.export-preview-dot--close {
  background: #ff6b6b;
}

.export-preview-dot--min {
  background: #ffd166;
}

.export-preview-dot--max {
  background: #84ab43;
}

.export-preview-toolbar-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  color: rgba(232, 238, 233, 0.72);
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.export-preview-toolbar-badge {
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(216, 242, 121, 0.18);
  background: rgba(23, 63, 50, 0.42);
  color: #d8f279;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.export-preview-viewport {
  display: grid;
  grid-template-columns: auto 1fr;
  max-height: min(52vh, 440px);
  overflow: auto;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 120px),
    #101512;
}

.export-preview-viewport::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.export-preview-viewport::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
}

.export-preview-viewport::-webkit-scrollbar-thumb {
  border: 2px solid #101512;
  border-radius: 999px;
  background: rgba(132, 171, 67, 0.45);
}

.export-preview-gutter {
  position: sticky;
  left: 0;
  padding: 16px 12px 16px 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.18);
  color: rgba(232, 238, 233, 0.34);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.62;
  text-align: right;
  user-select: none;
  white-space: pre;
}

.export-preview-code {
  margin: 0;
  padding: 16px 18px 16px 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.62;
  white-space: pre;
  tab-size: 2;
}

.export-preview-code code.hljs {
  display: block;
  padding: 0;
  background: transparent;
  font: inherit;
  line-height: inherit;
  white-space: inherit;
}

.export-preview-footer {
  background: rgba(251, 250, 246, 0.98);
}

@keyframes modal-slide-in {
  from { transform: translateY(14px) scale(0.98); opacity: 0; }
  to   { transform: translateY(0) scale(1);      opacity: 1; }
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--rule);
}

.modal-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  margin-top: 3px;
}

.modal-body {
  padding: 18px 20px;
  display: grid;
  gap: 14px;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 20px 20px;
  border-top: 1px solid var(--rule);
}

.modal-footer .danger-btn {
  margin-right: auto;
  color: #ff7575;
  border-color: rgba(255, 117, 117, 0.35);
  background: transparent;
}

.modal-footer .danger-btn:hover {
  background: rgba(255, 117, 117, 0.1);
  border-color: rgba(255, 117, 117, 0.6);
}

@media (max-width: 720px) {
  .studio-header {
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 10px;
  }

  .idea-map-header,
  .family-tree-header {
    gap: 8px;
    padding: 6px 10px;
  }

  .workspace-header-title {
    font-size: 13px;
  }

  .idea-map-header-right,
  .family-tree-header-right {
    gap: 6px;
  }

  .idea-map-header-actions,
  .family-tree-header-actions {
    padding-left: 6px;
  }

  .idea-map-action-btn,
  .family-tree-action-btn {
    padding-inline: 10px;
  }

  .idea-map-more-panel,
  .family-tree-more-panel {
    position: fixed;
    top: auto;
    right: 10px;
    bottom: 58px;
    left: 10px;
    width: auto;
  }

  .studio-companion-prompt {
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: auto;
  }

  .studio-companion-prompt-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .studio-companion-prompt-open,
  .studio-companion-prompt-later {
    width: 100%;
    justify-content: center;
  }

  .studio-header-brand {
    max-width: none;
    flex: 1 1 auto;
  }

  .studio-header-toolbar {
    order: 3;
    flex: 1 1 100%;
    padding-top: 4px;
    border-top: 1px solid var(--rule);
  }

  .studio-header-end {
    margin-left: 0;
  }

  .studio-session-btn.primary {
    padding-inline: 10px;
  }

  .studio-tools-panel {
    position: fixed;
    top: auto;
    right: 10px;
    bottom: 58px;
    left: 10px;
    width: auto;
  }

  .family-topbar {
    grid-template-columns: 1fr auto;
    gap: 8px 10px;
    padding: 8px 10px;
  }

  .idea-topbar {
    grid-template-columns: 1fr auto;
    gap: 8px 10px;
    padding: 8px 10px;
  }

  .family-heading .brand-motto,
  .family-switch-link,
  .idea-heading .brand-motto,
  .idea-switch-link {
    display: none;
  }

  .family-search {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .idea-search {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .family-search input {
    min-height: 42px;
  }

  .idea-search input {
    min-height: 42px;
  }

  .family-session .primary,
  .family-session .ghost {
    min-height: 40px;
    padding-inline: 10px;
  }

  .idea-session .primary,
  .idea-session .ghost {
    min-height: 40px;
    padding-inline: 10px;
  }

  .family-commandbar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 7px;
    padding: 7px 10px;
  }

  .idea-commandbar {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 7px;
    padding: 7px 10px;
  }

  .family-command-group {
    gap: 6px;
  }

  .idea-command-group {
    gap: 6px;
  }

  .family-command-primary {
    grid-column: 1;
    margin-left: 0;
  }

  .idea-command-primary {
    grid-column: 1 / -1;
    margin-left: 0;
  }

  .idea-graph-type,
  .idea-layout,
  .idea-auto {
    grid-column: span 1;
  }

  .family-zoom {
    grid-column: 2;
    grid-row: 1;
  }

  .idea-zoom {
    grid-column: 2;
    grid-row: 1;
  }

  .family-tools {
    grid-column: 2;
    grid-row: 2;
  }

  .idea-tools {
    grid-column: 3;
    grid-row: 1;
  }

  .family-icon-btn,
  .family-tools summary {
    min-height: 42px;
  }

  .idea-icon-btn,
  .idea-tools summary,
  .idea-graph-type select,
  .idea-layout select,
  .idea-auto {
    min-height: 42px;
  }

  .family-tools-panel {
    position: fixed;
    top: auto;
    right: 10px;
    bottom: 58px;
    left: 10px;
    width: auto;
  }

  .idea-tools-panel {
    position: fixed;
    top: auto;
    right: 10px;
    bottom: 58px;
    left: 10px;
    width: auto;
  }

  .family-status {
    grid-template-columns: auto 1fr;
    gap: 8px;
    padding: 7px 10px;
    text-align: left;
  }

  .idea-status {
    grid-template-columns: auto 1fr;
    gap: 8px;
    padding: 7px 10px;
    text-align: left;
  }

  .family-status .status-metrics {
    justify-content: flex-end;
    gap: 5px 10px;
  }

  .idea-status .status-metrics {
    justify-content: flex-end;
    gap: 5px 10px;
  }

  .family-status .status-right {
    display: none;
  }

  .idea-status .status-right {
    display: none;
  }

  .family-empty-card {
    max-height: calc(100% - 20px);
    overflow: auto;
  }

  .idea-empty-card {
    max-height: calc(100% - 20px);
    overflow: auto;
  }

  .topbar {
    flex-wrap: wrap;
    padding: 8px 10px;
    gap: 8px;
  }

  .topbar-leading {
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 8px;
  }

  .topbar-sep-tools {
    display: none;
  }

  .workspace-mark,
  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .workspace-name strong {
    font-size: 15px;
  }

  .toolbar-tools {
    flex-basis: 100%;
    margin-left: 0;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    align-items: stretch;
    padding-top: 8px;
    border-top: 1px solid var(--rule);
  }

  .toolbar-section {
    flex: 0 0 auto;
  }

  .toolbar-nav .nav-link {
    padding: 7px 8px;
    font-size: 11px;
  }

  .toolbar-session .primary,
  .toolbar-session .ghost {
    padding: 8px 10px;
    font-size: 12px;
  }

  .inspector {
    left: 12px;
    right: 12px;
    top: auto;
    bottom: 12px;
    width: auto;
    max-height: min(calc(100% - 24px), 520px);
    border-radius: 18px;
  }

  .node {
    width: 176px;
    min-width: 176px;
    max-width: 176px;
  }

  .generation-guide {
    left: 12px;
    right: 12px;
  }

  .toolbar-search {
    flex-basis: 180px;
  }

  .workspace-status {
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: center;
  }

  .status-right {
    justify-content: center;
    flex-wrap: wrap;
  }

  .empty-card {
    padding: 28px 22px;
  }

  .empty-steps li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .report {
    right: 12px;
    left: 12px;
    width: auto;
    max-height: calc(100% - 24px);
  }
}

/* Experience preview (device-frame mockups) */

.experience-preview-modal {
  width: min(1080px, 96vw);
  max-height: min(920px, 94vh);
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.experience-preview-header {
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.experience-preview-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  max-width: 52ch;
}

.experience-preview-close {
  flex-shrink: 0;
}

.experience-preview-body {
  padding: 16px 20px 24px;
  overflow: auto;
  background: #eef2eb;
}

.experience-preview-stage {
  display: grid;
  place-items: center;
  min-height: min(640px, 72vh);
  padding: 8px 0 12px;
}

.experience-preview-footer {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px 20px;
}

.experience-preview-footer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.experience-preview-footnote {
  color: var(--muted);
  font-size: 12px;
}

.experience-device {
  width: 100%;
  display: grid;
  place-items: center;
}

.experience-device-frame {
  padding: 10px;
  border-radius: 42px;
  background: linear-gradient(145deg, #2a2f38 0%, #11151c 55%, #090b10 100%);
  box-shadow:
    0 40px 90px rgba(16, 24, 20, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.experience-device-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 34px;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.experience-device--phone .experience-device-frame {
  border-radius: 46px;
  padding: 12px;
}

.experience-device--phone .experience-device-shell {
  width: min(390px, 88vw);
  height: min(780px, 86vh);
  border-radius: 36px;
}

.experience-device--tablet .experience-device-frame {
  border-radius: 34px;
  padding: 14px;
}

.experience-device--tablet .experience-device-shell {
  width: min(620px, 92vw);
  height: min(820px, 88vh);
  border-radius: 28px;
}

.experience-device--desktop .experience-device-frame {
  border-radius: 18px;
  padding: 8px;
  background: linear-gradient(180deg, #d7dce3, #aeb6c2);
}

.experience-device--desktop .experience-device-shell {
  width: min(860px, 94vw);
  height: min(640px, 82vh);
  border-radius: 14px;
  background: #eef1f5;
  box-shadow:
    0 24px 60px rgba(16, 24, 20, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.experience-device-status {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 12px 18px 8px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 600;
}

.experience-device-dynamic-island {
  width: 96px;
  height: 28px;
  margin-inline: auto;
  border-radius: 999px;
  background: #050607;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.experience-device-status-icons {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.experience-device-icon {
  width: 16px;
  height: 12px;
  color: rgba(255, 255, 255, 0.88);
}

.experience-device-icon--battery {
  width: 22px;
}

.experience-device-appbar {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(8, 10, 14, 0.92);
}

.experience-device-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 72px;
  padding: 8px 10px 8px 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.experience-device-back svg {
  width: 18px;
  height: 18px;
}

.experience-device-back:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.14);
}

.experience-device-back:disabled {
  opacity: 0.28;
  cursor: default;
}

.experience-device-app-title {
  color: rgba(255, 255, 255, 0.94);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.experience-device-app-spacer {
  min-width: 72px;
}

.experience-device-screen {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background: #f5f7fa;
  color: #1b2430;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.experience-device-screen::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
}

.experience-device-screen-inner {
  min-height: 100%;
  padding: 22px 18px 28px;
  box-sizing: border-box;
}

.experience-device-home-indicator {
  flex: 0 0 auto;
  height: 18px;
  background: #000;
}

.experience-device-home-indicator::after {
  content: "";
  display: block;
  width: 118px;
  height: 5px;
  margin: 7px auto 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
}

/* Wekify OS — simulated mobile system chrome for device previews */

.wekify-os-shell {
  background:
    radial-gradient(circle at 50% -20%, rgba(216, 242, 121, 0.08), transparent 42%),
    linear-gradient(180deg, #07110d 0%, #030605 100%);
  animation: wekify-os-boot 0.38s ease;
}

@keyframes wekify-os-boot {
  from {
    opacity: 0.72;
    transform: scale(0.985);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.wekify-os-frame {
  background: linear-gradient(145deg, #1a2e26 0%, #0a1210 55%, #040605 100%);
  box-shadow:
    0 40px 90px rgba(16, 24, 20, 0.32),
    inset 0 1px 0 rgba(216, 242, 121, 0.1);
}

.wekify-os-status {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 12px 18px 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.wekify-os-time {
  padding-left: 2px;
}

.wekify-os-island {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 96px;
  height: 30px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #173f32 0%, #0f2a22 100%);
  box-shadow:
    inset 0 1px 0 rgba(216, 242, 121, 0.16),
    0 4px 14px rgba(0, 0, 0, 0.28);
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.wekify-os-island:hover {
  background: linear-gradient(180deg, #1e4f3f 0%, #123328 100%);
}

.wekify-os-island-glyph {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: rgba(216, 242, 121, 0.18);
  color: #d8f279;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.wekify-os-island-name {
  color: rgba(255, 255, 255, 0.88);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wekify-os-device.experience-device--phone .wekify-os-island-name {
  display: none;
}

.wekify-os-status-icons {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.wekify-os-status-icon {
  width: 16px;
  height: 12px;
  color: rgba(255, 255, 255, 0.88);
}

.wekify-os-status-icon--battery {
  width: 22px;
}

.wekify-os-appbar {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 12px 10px;
  border-bottom: 1px solid rgba(216, 242, 121, 0.1);
  background: rgba(7, 17, 13, 0.94);
}

.wekify-os-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 72px;
  padding: 8px 10px 8px 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(216, 242, 121, 0.1);
  color: #dff4ea;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.wekify-os-back svg {
  width: 18px;
  height: 18px;
}

.wekify-os-back:hover:not(:disabled) {
  background: rgba(216, 242, 121, 0.18);
}

.wekify-os-back:disabled {
  opacity: 0.28;
  cursor: default;
}

.wekify-os-appbar-center {
  min-width: 0;
  text-align: center;
}

.wekify-os-app-title {
  display: block;
  color: rgba(255, 255, 255, 0.96);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wekify-os-app-spacer {
  min-width: 72px;
}

.wekify-os-screen {
  background:
    radial-gradient(circle at 50% 0%, rgba(216, 242, 121, 0.12), transparent 38%),
    linear-gradient(180deg, #f7faf6 0%, #f1f5f0 100%);
}

.wekify-os-screen-inner {
  padding-top: 18px;
}

.wekify-os-homebar {
  flex: 0 0 auto;
  display: grid;
  gap: 4px;
  place-items: center;
  padding: 6px 0 8px;
  background: #030605;
}

.wekify-os-home-indicator {
  width: 118px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.wekify-os-home-indicator::after {
  content: "";
  display: block;
  width: 118px;
  height: 5px;
  margin: 7px auto 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  transition: background 0.16s ease, transform 0.16s ease;
}

.wekify-os-home-indicator:hover::after {
  background: #d8f279;
  transform: scaleX(1.04);
}

.wekify-os-device--home .wekify-os-home-indicator::after {
  background: rgba(216, 242, 121, 0.88);
}

.wekify-os-home-label {
  color: rgba(216, 242, 121, 0.42);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.wekify-os-screen--home {
  background: #07110d;
}

.wekify-os-screen--home .wekify-os-screen-inner {
  padding: 0;
  min-height: 100%;
}

.wekify-os-home {
  position: relative;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 28px 22px 20px;
  color: #f4f8f2;
}

.wekify-os-home-wallpaper {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(216, 242, 121, 0.22), transparent 34%),
    radial-gradient(circle at 82% 78%, rgba(23, 63, 50, 0.42), transparent 40%),
    linear-gradient(165deg, #123628 0%, #07110d 48%, #030605 100%);
  pointer-events: none;
}

.wekify-os-home-widgets,
.wekify-os-home-apps,
.wekify-os-home-hint {
  position: relative;
  z-index: 1;
}

.wekify-os-home-widgets {
  margin-bottom: 28px;
}

.wekify-os-home-date {
  margin: 0;
  color: rgba(244, 248, 242, 0.72);
  font-size: 13px;
  font-weight: 600;
}

.wekify-os-home-clock {
  margin: 4px 0 0;
  font-size: 52px;
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
}

.wekify-os-home-apps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 14px;
  margin-top: auto;
}

.wekify-os-app-icon {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: center;
  cursor: default;
}

.wekify-os-app-icon--primary {
  cursor: pointer;
}

.wekify-os-app-icon--primary:hover .wekify-os-app-icon-tile {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.wekify-os-app-icon-tile {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(180deg, #dff4ea 0%, #b9e4cb 100%);
  color: #173f32;
  font-size: 22px;
  font-weight: 800;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 8px 18px rgba(0, 0, 0, 0.18);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.wekify-os-app-icon-tile--muted {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.08) 100%);
  color: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.wekify-os-app-icon-label {
  max-width: 72px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  color: rgba(244, 248, 242, 0.92);
}

.wekify-os-app-icon--static .wekify-os-app-icon-label {
  color: rgba(244, 248, 242, 0.58);
}

.wekify-os-home-hint {
  margin: 14px 0 0;
  color: rgba(244, 248, 242, 0.48);
  font-size: 11px;
  text-align: center;
}

.wekify-os-widget {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(216, 242, 121, 0.14);
  backdrop-filter: blur(8px);
}

.wekify-os-widget-kicker {
  display: block;
  color: rgba(216, 242, 121, 0.72);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wekify-os-widget-title {
  display: block;
  margin-top: 6px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.wekify-os-widget-copy {
  margin: 6px 0 0;
  color: rgba(244, 248, 242, 0.68);
  font-size: 12px;
  line-height: 1.45;
}

.wekify-os-app-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #d97706;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}

.wekify-os-app-icon-tile {
  position: relative;
}

.wekify-os-app-icon-tile--studio {
  background: linear-gradient(180deg, #173f32 0%, #0f2a22 100%);
  color: #d8f279;
}

.wekify-os-dock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 16px;
  padding: 10px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.wekify-os-dock-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #173f32 0%, #0f2a22 100%);
  color: #d8f279;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}

.wekify-os-dock-icon--primary {
  background: linear-gradient(180deg, #dff4ea 0%, #b9e4cb 100%);
  color: #173f32;
}

.wekify-os-dock-icon--muted {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
}

.wekify-os-dock-icon:hover {
  transform: translateY(-1px);
}

.wekify-os-shell {
  position: relative;
}

.wekify-os-quick-panel {
  position: absolute;
  inset: 52px 10px auto;
  z-index: 8;
  padding: 16px;
  border-radius: 22px;
  background: rgba(8, 16, 12, 0.94);
  border: 1px solid rgba(216, 242, 121, 0.16);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
  color: #f4f8f2;
  animation: wekify-os-quick-in 0.22s ease;
}

@keyframes wekify-os-quick-in {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.wekify-os-quick-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wekify-os-quick-kicker {
  color: #d8f279;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.wekify-os-quick-close {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f4f8f2;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.wekify-os-quick-lede {
  margin: 10px 0 0;
  color: rgba(244, 248, 242, 0.68);
  font-size: 12px;
  line-height: 1.5;
}

.wekify-os-quick-stats {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
}

.wekify-os-quick-stats div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  font-size: 12px;
}

.wekify-os-quick-stats dt {
  margin: 0;
  color: rgba(244, 248, 242, 0.48);
  font-weight: 600;
}

.wekify-os-quick-stats dd {
  margin: 0;
  color: #f4f8f2;
  font-weight: 600;
}

.wekify-os-quick-actions {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.wekify-os-quick-action {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #f4f8f2;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.wekify-os-quick-action--primary {
  background: linear-gradient(180deg, #dff4ea 0%, #b9e4cb 100%);
  border-color: transparent;
  color: #173f32;
  text-align: center;
}

.experience-browser-chrome {
  flex: 0 0 auto;
  padding: 12px 14px 10px;
  background: linear-gradient(180deg, #eceff3, #dde3ea);
  border-bottom: 1px solid rgba(30, 52, 41, 0.08);
}

.experience-browser-traffic {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.experience-browser-traffic span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #ff5f57;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.experience-browser-traffic span:nth-child(2) {
  background: #febc2e;
}

.experience-browser-traffic span:nth-child(3) {
  background: #28c840;
}

.experience-browser-toolbar {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
}

.experience-device-back--browser {
  min-width: 38px;
  width: 38px;
  height: 38px;
  padding: 0;
  justify-content: center;
  background: rgba(255, 255, 255, 0.72);
  color: #334155;
  box-shadow: inset 0 0 0 1px rgba(30, 52, 41, 0.08);
}

.experience-browser-url {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 0 0 1px rgba(30, 52, 41, 0.08);
  color: #475569;
  font-size: 13px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.experience-device--desktop .experience-device-screen {
  background: #f8fafc;
}

.experience-device--desktop .experience-device-screen-inner {
  padding: 28px 32px 36px;
}

.experience-bubble {
  margin: 14px 8px;
  padding: 14px 16px;
  border-radius: 18px;
  line-height: 1.6;
  font-size: 14px;
}

.experience-bubble--bot {
  margin-right: 42px;
  background: #ffffff;
  border: 1px solid rgba(30, 52, 41, 0.08);
  border-bottom-left-radius: 6px;
}

.experience-bubble--user {
  margin-left: 42px;
  background: #dff4ea;
  border: 1px solid rgba(30, 120, 80, 0.12);
  border-bottom-right-radius: 6px;
}

.experience-bubble--user .experience-chip,
.experience-bubble--bot .experience-chip {
  margin-bottom: 6px;
}

.experience-bubble--option {
  margin-left: 28px;
}

.experience-choice-label {
  padding: 4px 14px 0;
  color: #748078;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.experience-bubble--bot .experience-chip {
  background: rgba(84, 140, 100, 0.16);
  color: #476552;
}

.experience-bubble p {
  margin: 6px 0 0;
}

.experience-conversation {
  padding: 8px 4px 0;
}

.experience-dialog-transcript {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 8px 12px;
}

.experience-dialog-line {
  padding: 12px 14px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(30, 52, 41, 0.08);
}

.experience-dialog-text {
  margin: 6px 0 0;
  line-height: 1.6;
  font-size: 14px;
}

.experience-dialog-note {
  margin: 8px 0 0;
  color: #748078;
  font-size: 12px;
  line-height: 1.5;
  font-style: italic;
}

.experience-choice--dialog {
  text-align: left;
}

.experience-choice-row,
.experience-choice-grid,
.experience-topic-grid,
.experience-step-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 8px 20px;
}

.experience-choice-grid,
.experience-topic-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.experience-choice,
.experience-topic-card,
.experience-outline-link,
.experience-crumb {
  border: 1px solid rgba(30, 52, 41, 0.12);
  border-radius: 14px;
  padding: 10px 12px;
  background: #ffffff;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.experience-choice:hover,
.experience-topic-card:hover,
.experience-outline-link:hover,
.experience-crumb:hover {
  border-color: rgba(84, 140, 100, 0.35);
  background: rgba(223, 244, 234, 0.45);
}

.experience-choice--quiz {
  display: grid;
  gap: 4px;
}

.experience-choice--quiz span {
  color: #5f6d78;
  font-size: 12px;
}

.experience-quiz,
.experience-steps,
.experience-explorer,
.experience-family {
  padding: 8px 4px 12px;
}

.experience-quiz-meta,
.experience-steps-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.experience-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(84, 140, 100, 0.12);
  color: #35624a;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.experience-progress {
  color: #5f6d78;
  font-size: 12px;
}

.experience-quiz h3,
.experience-steps h3,
.experience-topic-hero h3,
.experience-ideas-detail h3,
.experience-family-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.experience-quiz-notes,
.experience-topic-hero p,
.experience-steps p,
.experience-ideas-detail p,
.experience-empty {
  margin: 0;
  color: #5f6d78;
  line-height: 1.6;
  font-size: 14px;
}

.experience-steps-bar {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: rgba(30, 52, 41, 0.08);
  overflow: hidden;
}

.experience-steps-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #84ab43, #54a878);
}

.experience-step-nav {
  justify-content: space-between;
  padding-inline: 0;
  margin-top: 18px;
}

.experience-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  color: #8a96a3;
  font-size: 12px;
}

.experience-crumb.is-active {
  background: rgba(84, 140, 100, 0.14);
  border-color: rgba(84, 140, 100, 0.28);
}

.experience-topic-hero {
  padding: 14px;
  margin-bottom: 12px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(30, 52, 41, 0.08);
}

.experience-topic-card {
  display: grid;
  gap: 4px;
}

.experience-topic-card span {
  color: #5f6d78;
  font-size: 12px;
}

.experience-ideas {
  display: grid;
  grid-template-columns: minmax(180px, 34%) 1fr;
  min-height: 360px;
}

.experience-outline-panel {
  padding: 12px;
  border-right: 1px solid rgba(30, 52, 41, 0.08);
  background: #eef2f7;
}

.experience-outline-panel ul {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.experience-outline-item {
  margin-left: calc(var(--depth, 1) * 10px);
}

.experience-outline-link.is-active,
.experience-outline-item.is-active > .experience-outline-link {
  background: rgba(84, 140, 100, 0.16);
  border-color: rgba(84, 140, 100, 0.28);
}

.experience-ideas-detail {
  padding: 18px;
}

.experience-status {
  display: inline-flex;
  margin-top: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.experience-status--draft {
  background: rgba(255, 180, 80, 0.18);
  color: #9a6118;
}

.experience-status--archived {
  background: rgba(120, 130, 140, 0.16);
  color: #5f6d78;
}

.experience-family-card {
  padding: 16px;
  margin-bottom: 14px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(30, 52, 41, 0.08);
}

.experience-family-group h4 {
  margin: 0 0 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5f6d78;
}

.experience-family-group + .experience-family-group {
  margin-top: 14px;
}

.experience-family--doc {
  display: grid;
  grid-template-columns: minmax(180px, 34%) 1fr;
  min-height: 360px;
}

.experience-family-detail {
  display: grid;
  gap: 12px;
  align-content: start;
}

.experience-family-relations h4 {
  margin: 0 0 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5f6d78;
}

.experience-family-relations + .experience-family-relations {
  margin-top: 14px;
}

.experience-family-relation-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.experience-family-partner {
  color: #5f6d78;
  font-weight: 400;
  font-size: 0.92em;
}

@media (max-width: 720px) {
  .experience-ideas,
  .experience-family--doc {
    grid-template-columns: 1fr;
  }

  .experience-outline-panel {
    border-right: 0;
    border-bottom: 1px solid rgba(30, 52, 41, 0.08);
  }

  .experience-preview-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

.experience-preview-warnings-wrap {
  margin-left: auto;
  max-width: min(44ch, 100%);
}

.experience-preview-warnings {
  color: #6a756f;
  font-size: 12px;
  line-height: 1.5;
}

.experience-preview-warnings summary {
  cursor: pointer;
  color: #8a5a24;
  list-style-position: outside;
}

.experience-preview-warning-lines {
  margin-top: 8px;
  max-height: 120px;
  overflow: auto;
}

.experience-preview-warning-line {
  margin: 0 0 4px;
  color: #5f6d78;
}

.experience-preview-warning-line[data-focus-node] {
  cursor: pointer;
}

.experience-preview-warning-line[data-focus-node]:hover {
  color: #35624a;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
}

.experience-preview-backdrop {
  padding: 18px;
}

.experience-preview-backdrop--immersive {
  padding: 0;
  background: rgba(11, 16, 24, 0.62);
  backdrop-filter: blur(2px);
}

.experience-preview-shell {
  display: grid;
  place-items: center;
  width: auto;
  max-width: none;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  will-change: transform;
}

.experience-preview-shell--dragging {
  cursor: grabbing;
}

.experience-preview-drag-handle {
  cursor: grab;
  touch-action: none;
}

.experience-preview-shell--dragging .experience-preview-drag-handle {
  cursor: grabbing;
}

.experience-preview-backdrop--immersive .experience-preview-stage {
  min-height: auto;
  padding: 24px 12px;
  background: transparent;
}

.experience-preview-modal--present {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  border-radius: 0;
}

.experience-preview-backdrop:has(.experience-preview-modal--present) {
  padding: 0;
}

.experience-preview-modal--present .experience-preview-header,
.experience-preview-modal--present .experience-preview-warnings-wrap,
.experience-preview-modal--present .experience-preview-footer {
  display: none;
}

.experience-preview-modal--present .experience-preview-body {
  padding: 0;
  min-height: 100vh;
  background: #0b1018;
}

.experience-preview-modal--present .experience-preview-stage {
  min-height: calc(100vh - 56px);
  padding: 0;
}

.experience-preview-modal--present .experience-device-frame {
  width: 100%;
  min-height: calc(100vh - 56px);
  padding: 0;
  border-radius: 0;
  background: #000;
  box-shadow: none;
}

.experience-preview-modal--present .experience-device-shell {
  width: min(420px, 100%);
  min-height: calc(100vh - 56px);
  border-radius: 0;
  box-shadow: none;
}

.experience-preview-modal--present .experience-device--desktop .experience-device-frame,
.experience-preview-modal--present .experience-device--tablet .experience-device-frame {
  background: #000;
}

.experience-preview-modal--present .experience-device--desktop .experience-device-shell,
.experience-preview-modal--present .experience-device--tablet .experience-device-shell {
  width: min(820px, 100%);
}

.experience-preview-modal--present .experience-device-screen {
  max-height: none;
  min-height: calc(100vh - 148px);
}

.experience-present-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(16, 20, 27, 0.96);
  color: #eef2f7;
}

.experience-present-bar.hidden {
  display: none;
}

.experience-present-title {
  font-size: 13px;
  font-weight: 600;
}

.experience-present-actions {
  display: flex;
  gap: 8px;
}

.export-validation-banner {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(210, 120, 40, 0.28);
  background: rgba(255, 236, 210, 0.55);
  color: #6b4518;
}

.export-validation-banner strong {
  display: block;
  margin-bottom: 6px;
}

.export-validation-banner ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.5;
}
