:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --panel: #ffffff;
  --panel-soft: #f8fafc;
  --ink: #142033;
  --muted: #607086;
  --line: #d9e1ec;
  --line-strong: #b8c5d6;
  --blue: #1754cf;
  --teal: #0f9f8f;
  --green: #168449;
  --amber: #c67811;
  --red: #bd3b3b;
  --shadow: 0 20px 60px rgba(26, 43, 68, 0.10);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 1280px;
  height: 100vh;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button {
  font: inherit;
}

.app-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  height: 100vh;
  padding: 12px;
  overflow: hidden;
}

.topbar,
.element-tree,
.canvas-panel,
.inspector {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  border-radius: 8px;
  padding: 8px 12px;
}

.eyebrow {
  color: var(--blue);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  margin-top: 2px;
  font-size: 20px;
  line-height: 1.1;
}

h2 {
  font-size: 16px;
  line-height: 1.2;
}

p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

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

.tool-button,
.ghost-button {
  height: 34px;
  border-radius: 5px;
  padding: 0 16px;
  cursor: pointer;
  font-size: 13px;
}

.tool-button,
.topbar-actions .ghost-button {
  border: 1px solid #123f9d;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
}

.clone-button {
  min-width: 92px;
  text-transform: uppercase;
}

.settings-button {
  min-width: 104px;
}

.download-code-button {
  min-width: 126px;
}

.connect-agent-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  border-color: rgba(23, 84, 207, 0.20);
  background: rgba(23, 84, 207, 0.12);
  color: rgba(23, 84, 207, 0.72);
  font-weight: 750;
}

.ghost-button {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  font-weight: 650;
}

button:disabled,
.ghost-button:disabled,
.tool-button:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  height: 34px;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  color: var(--muted);
  padding: 0 16px;
  font-size: 13px;
  font-weight: 750;
}

.status-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 999px;
  background: currentColor;
}

.status-pill.is-working {
  border-color: rgba(22, 132, 73, 0.35);
  background: rgba(22, 132, 73, 0.10);
  color: var(--green);
}

.status-pill.is-connected {
  border-color: rgba(23, 84, 207, 0.35);
  background: rgba(23, 84, 207, 0.10);
  color: var(--blue);
}

.workspace {
  display: grid;
  grid-template-columns: 260px minmax(720px, 1fr) 360px;
  align-items: stretch;
  gap: 16px;
  min-height: 0;
}

.prompt-composer {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  padding: 8px 10px;
}

.prompt-composer-main {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  min-width: 0;
}

.prompt-scope-area:empty {
  display: none;
}

.prompt-scope-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 220px;
  min-height: 32px;
  border: 1px solid rgba(23, 84, 207, 0.22);
  border-radius: 999px;
  background: rgba(23, 84, 207, 0.08);
  color: var(--blue);
  padding: 0 7px 0 11px;
  font-size: 12px;
  font-weight: 800;
}

.prompt-scope-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prompt-scope-chip button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 999px;
  background: rgba(23, 84, 207, 0.12);
  color: var(--blue);
  cursor: pointer;
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
}

.prompt-composer textarea {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  min-height: 38px;
  max-height: 92px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 9px 10px;
  font: inherit;
  font-size: 13px;
  line-height: 1.4;
}

.prompt-composer textarea:focus {
  outline: 2px solid rgba(23, 84, 207, 0.20);
  border-color: rgba(23, 84, 207, 0.42);
}

.prompt-composer textarea:disabled {
  border-color: var(--line);
  background: #eef2f7;
  color: var(--muted);
  cursor: not-allowed;
}

.prompt-composer textarea:disabled::placeholder {
  color: #8a97a8;
}

.prompt-submit-button {
  min-width: 76px;
  height: 38px;
}

.prompt-submit-button:disabled {
  border-color: var(--line);
  background: #dbe4f0;
  color: #7b8796;
}

.prompt-notice {
  min-height: 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.element-tree,
.canvas-panel,
.inspector {
  border-radius: 8px;
  overflow: hidden;
}

.element-tree {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
}

.canvas-panel {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  min-height: 0;
  position: relative;
}

.inspector {
  min-height: 0;
  overflow: auto;
}

.element-tree-header {
  border-bottom: 1px solid var(--line);
  padding: 16px 14px 14px;
}

.element-tree-header h2 {
  margin-top: 3px;
  font-size: 18px;
  font-weight: 760;
}

.element-tree-content {
  overflow: auto;
  padding: 12px 8px;
}

.tree-empty {
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  color: var(--muted);
  padding: 12px;
  font-size: 12px;
  line-height: 1.4;
}

.tree-row {
  display: grid;
  grid-template-columns: 18px 24px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  width: 100%;
  min-height: 40px;
  margin: 2px 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  padding: 6px 8px 6px calc(6px + (var(--tree-depth, 0) * 19px));
  text-align: left;
}

.tree-row {
  cursor: pointer;
}

.tree-row.is-selectable:hover,
.tree-row.is-structural:hover,
.tree-row.is-selected {
  background: rgba(23, 84, 207, 0.07);
}

.tree-row.is-selected {
  border-color: #5454d8;
  background: #5454d8;
  color: #fff;
  box-shadow: 0 8px 18px rgba(84, 84, 216, 0.22);
}

.tree-row.is-highlighted {
  border-color: rgba(198, 120, 17, 0.45);
  background: rgba(198, 120, 17, 0.10);
}

.tree-row.is-structural {
  color: var(--ink);
}

.tree-row-chevron {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform 0.14s ease;
}

.tree-row.is-expanded .tree-row-chevron {
  transform: rotate(90deg);
}

.tree-row:not(.has-children) .tree-row-chevron {
  color: transparent;
}

.tree-row.is-selected .tree-row-chevron {
  color: #fff;
}

.tree-row-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
}

.tree-row.is-selectable .tree-row-icon {
  color: var(--ink);
}

.tree-row.is-selected .tree-row-icon,
.tree-row.is-selected .tree-row-copy small {
  color: rgba(255, 255, 255, 0.84);
}

.tree-row-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.tree-row-copy strong,
.tree-row-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tree-row-copy strong {
  color: inherit;
  font-size: 15px;
  font-weight: 560;
  line-height: 1.2;
}

.tree-row-copy small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.25;
}

.legend {
  display: flex;
  gap: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.legend span {
  display: inline-flex;
  align-items: center;
}

.legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 999px;
}

.screen-dot {
  background: var(--blue);
}

.flow-dot {
  background: var(--teal);
}

.changed-dot {
  background: var(--amber);
}

.render-mode-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-soft);
  padding: 3px;
}

.render-mode-toggle button {
  height: 32px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  padding: 0 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.render-mode-toggle button.is-active {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 4px 16px rgba(20, 32, 51, 0.10);
}

.zoom-control {
  position: absolute;
  z-index: 30;
  top: 14px;
  right: 14px;
}

.zoom-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 104px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  padding: 0 14px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 750;
  box-shadow: 0 8px 24px rgba(20, 32, 51, 0.08);
}

.zoom-chevron {
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
}

.zoom-menu {
  position: absolute;
  z-index: 20;
  top: 48px;
  right: 0;
  display: grid;
  width: 220px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 8px;
  box-shadow: 0 18px 48px rgba(20, 32, 51, 0.18);
}

.zoom-menu[hidden] {
  display: none;
}

.zoom-menu button {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  padding: 0 10px;
  cursor: pointer;
  font-size: 14px;
  text-align: left;
}

.zoom-menu button:hover,
.zoom-menu button.is-active {
  background: var(--panel-soft);
}

.zoom-menu button[data-zoom-action] {
  display: block;
}

.zoom-check {
  color: var(--ink);
  font-weight: 800;
}

.zoom-menu button.is-active .zoom-check::before {
  content: "✓";
}

.zoom-divider {
  height: 1px;
  margin: 8px;
  background: var(--line);
}

.canvas {
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: auto;
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    #fbfcfe;
  background-size: 32px 32px;
}

.canvas-scroll-area {
  position: relative;
  min-width: 100%;
  min-height: 100%;
}

.canvas-board {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
}

.connections-svg,
.screen-layer {
  position: absolute;
  top: 0;
  left: 0;
}

.screen-layer {
  width: 100%;
  height: 100%;
}

.connections-svg {
  overflow: visible;
}

.connection-line {
  stroke: var(--teal);
  stroke-width: 2;
  opacity: 0.42;
  fill: none;
  filter: none;
}

.connection-label {
  display: none;
}

.connection-line.is-highlighted {
  stroke: var(--amber);
  opacity: 0.9;
  animation: dashPulse 0.9s ease-out;
}

.screen-card {
  position: absolute;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(20, 32, 51, 0.08);
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.screen-card:hover,
.screen-card.is-selected {
  border-color: var(--blue);
  box-shadow: 0 16px 36px rgba(23, 84, 207, 0.18);
  transform: translateY(-1px);
}

.screen-card.is-highlighted {
  animation: cardPulse 0.9s ease-out;
}

.screen-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 12px;
}

.screen-titlebar strong {
  font-size: 15px;
  line-height: 1.2;
}

.screen-badge {
  border-radius: 999px;
  background: rgba(23, 84, 207, 0.10);
  color: var(--blue);
  padding: 4px 7px;
  font-size: 11px;
  font-weight: 800;
}

.screen-preview {
  padding: 12px;
  overflow: visible;
}

.screen-card.is-owned-screen .screen-preview {
  padding: 0;
}

.screen-card.is-live-preview-screen .screen-preview {
  padding: 0;
  background: #eef3f4;
}

.screen-card.is-live-preview-screen {
  background: #eef3f4;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.screen-card.is-live-preview-screen:hover,
.screen-card.is-live-preview-screen.is-selected {
  transform: none;
}

.live-preview-screen {
  position: relative;
  overflow: hidden;
  border: 0;
  background: #eef3f4;
}

.live-preview-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #eef3f4;
  pointer-events: none;
}

.live-preview-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.live-preview-anchor {
  appearance: none;
  position: absolute;
  margin: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  padding: 0;
  box-shadow: none;
  color: transparent;
  cursor: pointer;
  font: inherit;
  outline: none;
}

.live-preview-anchor:hover,
.live-preview-anchor.is-selected {
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(23, 84, 207, 0.72), 0 0 0 2px rgba(23, 84, 207, 0.14);
}

.live-preview-anchor.is-highlighted {
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(198, 120, 17, 0.82), 0 0 0 2px rgba(198, 120, 17, 0.16);
  animation: rowPulse 0.9s ease-out;
}

.live-preview-error {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  border: 1px solid rgba(198, 120, 17, 0.32);
  border-radius: 8px;
  background: #fff7ed;
  color: #9a3412;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 800;
}

.source-chip {
  margin-bottom: 8px;
  border: 1px solid rgba(23, 84, 207, 0.20);
  border-radius: 999px;
  background: rgba(23, 84, 207, 0.07);
  color: var(--blue);
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 750;
}

.ux-region {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.ux-region-title {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ux-component {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-soft);
  padding: 7px 8px;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.ux-component:hover,
.ux-component.is-selected {
  border-color: rgba(23, 84, 207, 0.48);
  background: rgba(23, 84, 207, 0.06);
}

.ux-component.is-selected {
  outline: 2px solid rgba(23, 84, 207, 0.56);
  outline-offset: 2px;
}

.ux-component.is-highlighted {
  border-color: var(--amber);
  background: rgba(198, 120, 17, 0.10);
  animation: rowPulse 0.9s ease-out;
}

.ux-component-name {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logic-badges {
  display: inline-flex;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
}

.logic-badge {
  max-width: 104px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 159, 143, 0.12);
  color: var(--teal);
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.no-flow-dot {
  width: 8px;
  height: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
}

.wireframe-screen {
  overflow: hidden;
  position: relative;
  border: 1px solid #e2e8f3;
  border-radius: 24px;
  background: #fff;
  padding: 22px;
  box-shadow: inset 0 0 0 1px rgba(20, 32, 51, 0.02);
}

.wire-statusbar {
  display: flex;
  justify-content: space-between;
  height: 28px;
  padding: 0 6px;
}

.wire-statusbar span {
  display: block;
  width: 48px;
  height: 7px;
  border-radius: 999px;
  background: #e7edf6;
}

.wire-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 12px;
  margin-bottom: 18px;
}

.wire-header-left,
.wire-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.wire-header-left {
  flex: 1;
}

.wire-title-block {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.wire-title-text {
  overflow: hidden;
  color: var(--ink);
  font-size: 24px;
  font-weight: 850;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wire-title-line {
  width: 132px;
  height: 10px;
}

.wire-section {
  margin-top: 22px;
}

.wire-section-title {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 850;
  text-transform: uppercase;
}

.wire-section-body {
  display: grid;
  gap: 14px;
}

.wire-chip-strip .wire-section-body {
  display: flex;
  gap: 10px;
  overflow: hidden;
}

.wire-component {
  position: relative;
  margin: 0;
  border-color: #dce4ef;
  background: #f8fafc;
  padding: 0;
}

.wire-component .no-flow-dot {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 8px;
  height: 8px;
  opacity: 0.65;
}

.wire-iconButton {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-height: 44px;
  border-radius: 999px;
  background: #f1f5fb;
}

.wire-icon-glyph {
  width: 18px;
  height: 18px;
  border: 2px solid #9aa9bc;
  border-radius: 6px;
}

.wire-chip {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 38px;
  border-radius: 999px;
  padding: 0 28px 0 16px;
  background: #eef4ff;
}

.wire-chip-label {
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.wire-taskCard {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  min-height: 78px;
  align-items: center;
  gap: 16px;
  padding: 14px 44px 14px 16px;
  background: #fff;
}

.wire-card-dot {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #e8f0fb;
}

.wire-card-copy {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.wire-card-title {
  overflow: hidden;
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wire-card-line {
  width: 68%;
  height: 12px;
}

.wire-detailRow,
.wire-inputLine {
  display: grid;
  grid-template-columns: minmax(120px, 0.55fr) minmax(0, 1fr);
  align-items: center;
  min-height: 64px;
  gap: 14px;
  padding: 12px 44px 12px 18px;
  background: #fff;
}

.wire-detail-label {
  overflow: hidden;
  color: var(--muted);
  font-size: 15px;
  font-weight: 850;
  text-transform: uppercase;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wire-detail-value,
.wire-input-line {
  width: 80%;
  height: 14px;
}

.wire-checkboxRow {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 12px 44px 12px 18px;
  background: #fff;
}

.wire-checkbox-box {
  width: 24px;
  height: 24px;
  border: 2px solid #a9b7c9;
  border-radius: 6px;
  background: #fff;
}

.wire-checkbox-line {
  width: 88%;
  height: 11px;
}

.wire-checkbox-line.is-short {
  width: 44%;
}

.wire-buttonRow {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 44px 10px 18px;
  background: #eef4ff;
}

.wire-button-label {
  overflow: hidden;
  color: var(--blue);
  font-size: 14px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wire-logic-badges {
  position: absolute;
  right: 12px;
  bottom: 10px;
  display: inline-flex;
  gap: 4px;
}

.wire-iconButton .wire-logic-badges,
.wire-chip .wire-logic-badges {
  right: -5px;
  bottom: -7px;
}

.wire-shimmer {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef6;
}

.wire-shimmer::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  animation: shimmerSweep 1.8s linear infinite;
}

.wire-sr-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.owned-ui-screen {
  overflow: hidden;
  border: 0;
  background: #f4f5f7;
  color: #111827;
  box-shadow: none;
}

.owned-node {
  min-width: 0;
}

.owned-screen {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 0 24px 24px;
  background:
    linear-gradient(#f4f5f7 0 112px, transparent 112px),
    #f7f8fa;
}

.owned-section {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.owned-section.owned-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 112px;
  margin: 0 -24px 34px;
  border-bottom: 1px solid #e5e7eb;
  padding: 32px 24px 26px;
  background: #f4f5f7;
}

.owned-section.owned-hero {
  gap: 9px;
  margin-bottom: 40px;
}

.owned-section.owned-priority {
  margin-bottom: 34px;
}

.owned-section.owned-details {
  gap: 10px;
  margin-bottom: 34px;
}

.owned-section.owned-notes {
  gap: 12px;
  margin-bottom: 30px;
}

.owned-section.owned-subtasks {
  gap: 12px;
  margin-bottom: 22px;
}

.owned-section.owned-bottomaction {
  margin-top: auto;
  margin-bottom: 0;
  padding-top: 12px;
}

.owned-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.owned-row.owned-actions {
  gap: 14px;
}

.owned-row.owned-chips {
  gap: 16px;
}

.owned-section-label {
  display: flex;
  justify-content: space-between;
  color: #526077;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
}

.owned-text.owned-eyebrow {
  color: #101828;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
}

.owned-text.owned-title {
  font-size: 23px;
  font-weight: 900;
  line-height: 1;
}

.owned-text.owned-headline {
  max-width: 365px;
  font-size: 23px;
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.01em;
}

.owned-component.ux-component {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 0;
  border: 1px solid transparent;
  background: transparent;
  padding: 0;
  color: inherit;
  text-align: left;
  box-shadow: none;
}

.owned-component.ux-component:hover,
.owned-component.ux-component.is-selected {
  border-color: transparent;
  background: transparent;
}

.owned-component.is-selected {
  outline: 2px solid rgba(23, 84, 207, 0.68);
  outline-offset: 2px;
}

.owned-component.is-highlighted {
  outline: 2px solid rgba(198, 120, 17, 0.72);
  outline-offset: 2px;
  animation: rowPulse 0.9s ease-out;
}

.owned-iconbutton {
  width: 42px;
  height: 42px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #111827;
}

.owned-iconbutton:first-child {
  border-color: rgba(198, 120, 17, 0.55);
  background: #fffaf3;
}

.owned-iconbutton.is-danger {
  border-color: rgba(255, 48, 88, 0.42);
  background: #fff7f9;
  color: #ff3058;
}

.owned-icon {
  display: block;
  position: relative;
  width: 20px;
  height: 20px;
}

.owned-icon-back::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 5px;
  width: 9px;
  height: 9px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.owned-icon-back::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 10px;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.owned-icon-share::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 9px;
  width: 14px;
  height: 2px;
  background: currentColor;
  transform: rotate(-28deg);
  box-shadow: 0 7px 0 currentColor;
}

.owned-icon-share::after {
  content: "";
  position: absolute;
  left: 1px;
  top: 5px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 13px -4px 0 currentColor, 13px 10px 0 currentColor;
}

.owned-icon-delete::before {
  content: "";
  position: absolute;
  inset: 2px 4px 3px;
  border: 2px solid #ff3058;
  border-top-width: 3px;
  border-radius: 3px;
}

.owned-chip {
  height: 34px;
  border-radius: 999px;
  background: #fff;
  padding: 0 19px;
  color: #111827;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.04);
}

.owned-chip.is-owned-selected {
  background: #111827;
  color: #fff;
}

.owned-detailrow {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  justify-content: stretch;
  width: 100%;
  min-height: 66px;
  border: 1px solid #eef1f5;
  border-radius: 12px;
  background: #fff;
  padding: 13px 16px;
  gap: 14px;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
}

.owned-detailrow strong {
  display: block;
  color: #4b5870;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.owned-detailrow small {
  display: block;
  margin-top: 5px;
  color: #101828;
  font-size: 13px;
  font-weight: 650;
}

.owned-detail-icon,
.owned-checkbox-box,
.owned-button-icon {
  display: inline-block;
  flex: 0 0 auto;
}

.owned-detail-icon {
  position: relative;
  width: 26px;
  height: 26px;
  align-self: center;
  border-radius: 999px;
  background: #eef3f8;
}

.owned-detail-icon::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 2px solid #9aa8bb;
  border-radius: 3px;
}

.owned-notecard {
  border-radius: 0;
  background: #fff;
  padding: 18px 20px;
  color: #334155;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.45;
  text-transform: uppercase;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
}

.owned-button {
  gap: 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.owned-button.owned-ghost {
  justify-self: start;
  height: 32px;
  color: #111827;
  padding: 0 4px;
}

.owned-button.owned-primary,
.owned-button.is-full-width {
  width: 100%;
}

.owned-button.owned-primary {
  height: 42px;
  background: #111827;
  color: #fff;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.14);
}

.owned-button-icon {
  width: 12px;
  height: 12px;
  border: 1px solid currentColor;
  border-radius: 3px;
}

.owned-progress {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}

.owned-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #1754cf;
}

.owned-checkboxrow {
  justify-content: flex-start;
  width: 100%;
  height: 35px;
  gap: 12px;
  color: #111827;
  font-size: 12px;
  font-weight: 650;
}

.owned-checkbox-box {
  width: 18px;
  height: 18px;
  border: 1.5px solid #9aa8bb;
  border-radius: 4px;
  background: #fff;
}

.owned-absolute-screen {
  border: 0;
  border-radius: 0;
  background: #f3f4f6;
  padding: 0;
}

.owned-absolute-screen .owned-screen {
  position: absolute;
  inset: 0;
  display: block;
  min-height: 0;
  padding: 0;
  background: #f3f4f6;
}

.owned-absolute-screen .owned-node {
  position: absolute;
  margin: 0;
}

.owned-absolute-screen .owned-scaffold,
.owned-absolute-screen .owned-section,
.owned-absolute-screen .owned-row,
.owned-absolute-screen .owned-column {
  pointer-events: none;
}

.owned-absolute-screen .owned-surface.owned-appbar {
  background: #fff;
}

.owned-absolute-screen .owned-screen.owned-nativetasklist {
  overflow: hidden;
  background: #fff;
}

.owned-absolute-screen .owned-surface.owned-page {
  background: #fff;
}

.owned-absolute-screen .owned-text.owned-brandtitle {
  color: #111827;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.15;
}

.owned-absolute-screen .owned-text.owned-mutedsmall {
  color: #6b7280;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.owned-absolute-screen .owned-text.owned-goaltitle {
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}

.owned-absolute-screen .owned-text.owned-goalsubtitle {
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.owned-absolute-screen .owned-text.owned-urgentlabel,
.owned-absolute-screen .owned-text.owned-sectioncenter,
.owned-absolute-screen .owned-text.owned-completedlabel {
  text-align: center;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
}

.owned-absolute-screen .owned-text.owned-urgentlabel {
  color: #ff3b6b;
}

.owned-absolute-screen .owned-text.owned-sectioncenter {
  color: #9aa3af;
}

.owned-absolute-screen .owned-text.owned-completedlabel {
  color: #22c55e;
}

.owned-absolute-screen .owned-surface.owned-goalcard {
  border-radius: 4px;
  background: #050505;
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.12);
}

.owned-absolute-screen .owned-iconbutton.owned-component {
  display: flex;
  width: auto;
  height: auto;
  border-color: transparent;
  background: transparent;
  color: #6b7280;
}

.owned-absolute-screen .owned-iconbutton .owned-icon-settings::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 12px;
  height: 12px;
  border: 4px dotted currentColor;
  border-radius: 999px;
}

.owned-absolute-screen .owned-progressring {
  display: grid;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, #050505 0 55%, transparent 56%),
    conic-gradient(#22d3ee var(--ring-sweep), rgba(255,255,255,0.22) 0);
  color: #fff;
  font-size: 8px;
  font-weight: 900;
}

.owned-absolute-screen .owned-chip {
  border-radius: 3px;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 12px;
  font-weight: 800;
}

.owned-absolute-screen .owned-chip.is-owned-selected {
  background: #050505;
  color: #fff;
}

.owned-absolute-screen .owned-taskrow {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  background: #f7f7f8;
  padding: 0 16px;
  gap: 14px;
  color: #111827;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
}

.owned-task-check {
  display: block;
  width: 22px;
  height: 22px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  background: #fff;
}

.owned-task-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.owned-task-copy strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owned-task-copy small {
  color: #6b7280;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.15;
}

.owned-priority-pill {
  border-radius: 3px;
  background: #fff1f5;
  color: #ff4d7d;
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 850;
}

.owned-taskrow.owned-tone-medium .owned-priority-pill {
  background: #fff7ed;
  color: #fb923c;
}

.owned-taskrow.owned-tone-none .owned-priority-pill {
  background: #fff1f5;
  color: #ff7aa2;
}

.owned-taskrow.is-completed .owned-task-check {
  border-color: #111827;
  background: #111827;
}

.owned-taskrow.is-completed .owned-task-check::before {
  content: "✓";
  display: block;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  line-height: 20px;
  text-align: center;
}

.owned-taskrow.is-completed .owned-task-copy strong {
  color: #6b7280;
  text-decoration: line-through;
}

.owned-absolute-screen .owned-inputbar {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  border-radius: 0;
  background: #f8f8f9;
  color: #9ca3af;
  padding: 0 34px;
  font-size: 15px;
  font-weight: 800;
}

.owned-plus {
  color: #6b7280;
  font-size: 18px;
  font-weight: 900;
}

.owned-absolute-screen .owned-fab {
  display: flex;
  gap: 9px;
  border-radius: 999px;
  background: #22d3ee;
  color: #05242d;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(34, 211, 238, 0.35);
}

.owned-fab-icon {
  position: relative;
  width: 16px;
  height: 16px;
}

.owned-fab-icon::before,
.owned-fab-icon::after {
  content: "";
  position: absolute;
  border-radius: 2px;
  background: currentColor;
}

.owned-fab-icon::before {
  left: 6px;
  top: 0;
  width: 4px;
  height: 16px;
}

.owned-fab-icon::after {
  left: 0;
  top: 6px;
  width: 16px;
  height: 4px;
}

.owned-absolute-screen .owned-divider {
  background: #e5e7eb;
}

.owned-absolute-screen .owned-text {
  display: block;
  overflow: hidden;
  color: #111827;
}

.owned-absolute-screen .owned-text.owned-eyebrow,
.owned-absolute-screen .owned-text.owned-sectionlabel,
.owned-absolute-screen .owned-text.owned-sectionaside {
  color: #526077;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.owned-absolute-screen .owned-text.owned-sectionaside {
  text-align: right;
}

.owned-absolute-screen .owned-text.owned-title {
  font-size: 24px;
  font-weight: 900;
  line-height: 1.05;
}

.owned-absolute-screen .owned-text.owned-headline {
  font-size: 24px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.owned-absolute-screen .owned-component.ux-component {
  position: absolute;
  box-sizing: border-box;
  width: auto;
  min-width: 0;
  min-height: 0;
  margin: 0;
  border: 1px solid transparent;
  padding: 0;
  pointer-events: auto;
}

.owned-absolute-screen .owned-structural-anchor {
  display: block;
  z-index: 0;
  border-radius: 10px;
  background: transparent;
  color: transparent;
}

.owned-absolute-screen .owned-structural-anchor.is-selected {
  outline: 2px solid rgba(23, 84, 207, 0.42);
  outline-offset: 2px;
}

.owned-absolute-screen .owned-iconbutton {
  display: flex;
  width: auto;
  height: auto;
  border-color: transparent;
  background: transparent;
  color: #111827;
}

.owned-absolute-screen .owned-iconbutton:first-child,
.owned-absolute-screen .owned-iconbutton.is-danger {
  background: transparent;
}

.owned-absolute-screen .owned-iconbutton:first-child {
  border-color: transparent;
}

.owned-absolute-screen .owned-iconbutton.is-danger {
  border-color: transparent;
  color: #ff3058;
}

.owned-absolute-screen .owned-chip {
  display: flex;
  width: auto;
  height: auto;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  font-size: 12px;
  font-weight: 900;
  box-shadow: none;
}

.owned-absolute-screen .owned-chip.is-owned-selected {
  background: #111827;
  color: #fff;
}

.owned-absolute-screen .owned-detailrow {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  width: auto;
  min-height: 0;
  border: 0;
  border-radius: 10px;
  background: #fff;
  padding: 0 16px;
  gap: 12px;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
}

.owned-absolute-screen .owned-detailrow strong {
  display: inline;
  margin-right: 6px;
  color: #526077;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.owned-absolute-screen .owned-detailrow small {
  display: inline;
  margin: 0;
  color: #111827;
  font-size: 13px;
  font-weight: 650;
}

.owned-absolute-screen .owned-detail-icon {
  width: 26px;
  height: 26px;
  background: #eef3f8;
}

.owned-absolute-screen .owned-notecard {
  overflow: hidden;
  border-radius: 0;
  background: #fff;
  padding: 18px;
  color: #334155;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.45;
  text-transform: uppercase;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
}

.owned-absolute-screen .owned-button {
  display: flex;
  gap: 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.owned-absolute-screen .owned-button.owned-ghost {
  justify-content: flex-start;
  color: #111827;
  background: transparent;
}

.owned-absolute-screen .owned-button.owned-primary {
  background: #111827;
  color: #fff;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.14);
}

.owned-absolute-screen .owned-progress {
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}

.owned-absolute-screen .owned-checkboxrow {
  display: flex;
  justify-content: flex-start;
  width: auto;
  height: auto;
  gap: 12px;
  color: #111827;
  font-size: 12px;
  font-weight: 650;
}

.owned-absolute-screen .owned-screen.owned-nativetasklist .owned-surface.owned-page {
  background: #fff;
}

.owned-absolute-screen .owned-screen.owned-nativetasklist .owned-surface.owned-goalcard {
  border-radius: 4px;
  background: #050505;
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.14);
}

.owned-absolute-screen .owned-screen.owned-nativetasklist .owned-iconbutton.owned-component {
  color: #6b7280;
  background: transparent;
}

.owned-absolute-screen .owned-screen.owned-nativetasklist .owned-iconbutton .owned-icon-settings::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 12px;
  height: 12px;
  border: 4px dotted currentColor;
  border-radius: 999px;
}

.owned-absolute-screen .owned-screen.owned-nativetasklist .owned-progressring {
  display: grid;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, #050505 0 55%, transparent 56%),
    conic-gradient(#22d3ee var(--ring-sweep), rgba(255, 255, 255, 0.2) 0);
  color: #fff;
  font-size: 8px;
  font-weight: 900;
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.2);
}

.owned-absolute-screen .owned-screen.owned-nativetasklist .owned-chip {
  border-radius: 3px;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.04);
}

.owned-absolute-screen .owned-screen.owned-nativetasklist .owned-chip.is-owned-selected {
  background: #050505;
  color: #fff;
}

.owned-absolute-screen .owned-screen.owned-nativetasklist .owned-taskrow {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  background: #f7f7f8;
  padding: 0 16px;
  gap: 14px;
  color: #111827;
  box-shadow: 0 2px 5px rgba(17, 24, 39, 0.04);
}

.owned-absolute-screen .owned-screen.owned-nativetasklist .owned-inputbar {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  border-radius: 0;
  background: #f8f8f9;
  color: #9ca3af;
  padding: 0 34px;
  font-size: 15px;
  font-weight: 800;
}

.owned-absolute-screen .owned-screen.owned-nativetasklist .owned-fab {
  display: flex;
  gap: 9px;
  border-radius: 999px;
  background: #22d3ee;
  color: #05242d;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 18px 38px rgba(34, 211, 238, 0.38);
}

.owned-absolute-screen .owned-screen.owned-nativetaskdetail,
.owned-absolute-screen .owned-screen.owned-nativetaskdetail .owned-surface.owned-page {
  background: #fff;
}

.owned-absolute-screen .owned-screen.owned-nativetaskdetail .owned-section.owned-component {
  background: transparent;
}

.owned-absolute-screen .owned-screen.owned-nativetaskdetail .owned-iconbutton.owned-component {
  color: #111827;
  background: transparent;
}

.owned-absolute-screen .owned-screen.owned-nativetaskdetail .owned-iconbutton.is-danger {
  color: #ff3058;
}

.owned-absolute-screen .owned-screen.owned-nativetaskdetail .owned-chip {
  border-radius: 3px;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.04);
}

.owned-absolute-screen .owned-screen.owned-nativetaskdetail .owned-chip.is-owned-selected {
  background: #050505;
  color: #fff;
}

.owned-absolute-screen .owned-screen.owned-nativetaskdetail .owned-detailrow {
  grid-template-columns: 28px minmax(0, 1fr);
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  background: #f7f7f8;
  padding: 0 16px;
  gap: 14px;
  box-shadow: 0 2px 5px rgba(17, 24, 39, 0.04);
}

.owned-absolute-screen .owned-screen.owned-nativetaskdetail .owned-detailrow strong {
  color: #526077;
  font-size: 10px;
}

.owned-absolute-screen .owned-screen.owned-nativetaskdetail .owned-detailrow small {
  font-size: 13px;
  font-weight: 750;
}

.owned-absolute-screen .owned-screen.owned-nativetaskdetail .owned-detail-icon {
  width: 22px;
  height: 22px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  background: #fff;
}

.owned-absolute-screen .owned-screen.owned-nativetaskdetail .owned-detail-icon::before {
  content: none;
}

.owned-absolute-screen .owned-screen.owned-nativetaskdetail .owned-notecard {
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  background: #f7f7f8;
  color: #374151;
  box-shadow: 0 2px 5px rgba(17, 24, 39, 0.04);
}

.owned-absolute-screen .owned-screen.owned-nativetaskdetail .owned-button.owned-primary {
  height: auto;
  border-radius: 4px;
  background: #050505;
  color: #fff;
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.12);
}

.owned-absolute-screen .owned-screen.owned-nativetaskdetail .owned-button.owned-ghost {
  font-size: 12px;
}

.owned-absolute-screen .owned-screen.owned-nativetaskdetail .owned-checkboxrow {
  height: auto;
  color: #111827;
  font-size: 12px;
  font-weight: 750;
}

.owned-absolute-screen .owned-screen.owned-nativetaskdetail .owned-text.owned-title {
  font-size: 18px;
  line-height: 1.1;
}

.owned-absolute-screen .owned-screen.owned-nativetaskdetail .owned-text.owned-headline {
  font-size: 20px;
  line-height: 1.08;
}

.ff-screen {
  border-radius: 2px;
  background: #f3f4f6;
  padding: 0;
}

.ff-snapshot-screen {
  border: 0;
  background: #fff;
  box-shadow: none;
}

.ff-snapshot-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  user-select: none;
}

.ff-snapshot-overlay {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.ff-snapshot-overlay .ff-node {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
  color: transparent !important;
  pointer-events: none;
}

.ff-snapshot-overlay .ff-node::before,
.ff-snapshot-overlay .ff-node::after {
  opacity: 0 !important;
}

.ff-snapshot-overlay .ff-component {
  --snapshot-outline-inset: -3px;
  --snapshot-outline-radius: 10px;
  --snapshot-outline-color: rgba(23, 84, 207, 0.72);
  position: relative;
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
  color: transparent !important;
  opacity: 1;
  outline: none !important;
  pointer-events: auto;
}

.ff-snapshot-overlay .ff-component * {
  opacity: 0 !important;
}

.ff-snapshot-overlay .ff-component::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: var(--snapshot-outline-inset);
  border: 2px solid transparent;
  border-radius: var(--snapshot-outline-radius);
  background: transparent;
  pointer-events: none;
  opacity: 1 !important;
  box-sizing: border-box;
}

.ff-snapshot-overlay .ff-component:hover::after,
.ff-snapshot-overlay .ff-component.is-selected::after,
.ff-snapshot-overlay .ff-component.is-highlighted::after {
  border-color: var(--snapshot-outline-color);
  background: rgba(23, 84, 207, 0.05);
}

.ff-snapshot-overlay .ff-component.is-highlighted {
  --snapshot-outline-color: var(--amber);
}

.ff-snapshot-overlay .ff-component.is-highlighted::after {
  background: rgba(198, 120, 17, 0.08);
}

.ff-snapshot-overlay .ff-component[data-visual-type="iconbutton"] {
  --snapshot-outline-inset: 2px;
  --snapshot-outline-radius: 999px;
}

.ff-snapshot-overlay .ff-component[data-visual-type*="chip"] {
  --snapshot-outline-inset: 0px;
}

.ff-snapshot-overlay .ff-component[data-visual-type*="todo_item"] {
  --snapshot-outline-inset: 0px;
}

.ff-snapshot-overlay .ff-component[data-visual-type*="detail_item"] {
  --snapshot-outline-inset: 0px;
}

.ff-snapshot-overlay .ff-component[data-visual-type="checkbox"],
.ff-snapshot-overlay .ff-component[data-component-kind="toggle"] {
  --snapshot-outline-inset: -4px;
  --snapshot-outline-radius: 5px;
}

.ff-snapshot-overlay .ff-component[data-visual-type="fab"],
.ff-snapshot-overlay .ff-component[data-visual-type*="button"]:not([data-visual-type="iconbutton"]) {
  --snapshot-outline-inset: -2px -8px;
  --snapshot-outline-radius: 10px;
}

.ff-snapshot-overlay .ff-snapshot-bound {
  position: absolute;
  z-index: 5;
  display: block;
  box-sizing: border-box;
  min-width: 0;
  min-height: 0 !important;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  border-radius: var(--snapshot-outline-radius);
  padding: 0;
}

.ff-snapshot-overlay .ff-snapshot-bound::after {
  inset: var(--snapshot-outline-inset);
}

.ff-node {
  min-width: 0;
}

.ff-scaffold {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: #f3f4f6;
}

.ff-column {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ff-scaffold > .ff-column {
  height: 100%;
}

.ff-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.ff-align-space-between {
  justify-content: space-between;
}

.ff-align-center {
  justify-content: center;
}

.ff-align-start {
  justify-content: flex-start;
}

.ff-align-end {
  justify-content: flex-end;
}

.ff-cross-stretch {
  align-items: stretch;
}

.ff-cross-start {
  align-items: flex-start;
}

.ff-cross-center {
  align-items: center;
}

.ff-cross-end {
  align-items: flex-end;
}

.ff-row-distributed {
  justify-content: space-between;
}

.ff-row-distributed > .ff-row {
  margin-left: auto;
}

.ff-expanded {
  flex: 1 1 auto;
  min-height: 0;
}

.ff-full-width {
  width: 100%;
}

.ff-expanded > .ff-node,
.ff-expanded > .ff-component {
  width: 100%;
}

.ff-bg-surface {
  background: #fff;
}

.ff-bg-background {
  background: #f3f4f6;
}

.ff-bg-primary_text {
  background: #111827;
  color: #fff;
}

.ff-bg-accent {
  background: #34d399;
}

.ff-border-bottom {
  border-bottom: 1px solid #dde3ec;
}

.ff-border-top {
  border-top: 1px solid #dde3ec;
}

.ff-scaffold > .ff-column > .ff-container.ff-border-bottom:first-child {
  padding: 34px 28px 22px;
}

.ff-scaffold > .ff-column > .ff-container.ff-border-bottom:first-child .ff-column {
  gap: 14px;
}

.ff-scaffold > .ff-column > .ff-container.ff-border-bottom:first-child .ff-row:first-child {
  min-height: 56px;
}

.ff-scaffold > .ff-column > .ff-container.ff-border-bottom:first-child .ff-row:first-child > .ff-column {
  flex: 1;
}

.ff-container.ff-bg-primary_text {
  border-radius: 16px;
  padding: 18px;
}

.ff-container.ff-bg-primary_text .ff-row {
  justify-content: space-between;
}

.ff-container.ff-bg-primary_text .ff-text {
  color: #fff;
}

.ff-progress-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ff-scaffold > .ff-column > .ff-container[style*="height:60px"] {
  display: flex;
  align-items: center;
  padding: 0 28px;
}

.ff-scaffold > .ff-column > .ff-expanded {
  padding: 18px 28px 24px;
}

.ff-scaffold > .ff-column > .ff-expanded > .ff-column {
  gap: 10px;
  height: 100%;
}

.ff-scaffold > .ff-column > .ff-column.ff-scroll {
  flex: 1 1 auto;
  overflow: hidden;
  padding: 28px;
}

.ff-column.ff-scroll {
  gap: 22px;
}

.ff-container.ff-border-top {
  padding: 14px 28px;
  background: #fff;
}

.ff-text {
  display: block;
  overflow: hidden;
  color: #111827;
  font-size: 14px;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.ff-text:nth-child(1),
.ff-column > .ff-text:first-child {
  font-weight: 800;
}

.ff-text:is(.ff-text) {
  white-space: pre-line;
}

.ff-column > .ff-text:first-child:not(:only-child) {
  font-size: 13px;
  color: #64748b;
  text-transform: uppercase;
}

.ff-row .ff-text {
  white-space: nowrap;
}

.ff-column > .ff-text + .ff-text {
  color: #64748b;
  font-size: 12px;
}

.ff-scaffold > .ff-column > .ff-container.ff-border-bottom:first-child .ff-column > .ff-text:first-child {
  color: #111827;
  font-size: 25px;
  font-weight: 850;
  text-transform: none;
}

.ff-scaffold > .ff-column > .ff-column.ff-scroll > .ff-column:first-child .ff-text:nth-child(2),
.ff-scaffold > .ff-column > .ff-column.ff-scroll .ff-text:nth-child(3) {
  color: #111827;
  font-size: 28px;
  font-weight: 850;
  line-height: 1.12;
  text-transform: none;
  white-space: normal;
}

.ff-component {
  position: relative;
  display: inline-flex;
  width: auto;
  min-height: auto;
  border: 1px solid transparent;
  background: transparent;
  padding: 0;
  color: inherit;
  text-align: left;
}

.ff-component:hover,
.ff-component.is-selected {
  border-color: rgba(23, 84, 207, 0.55);
  background: rgba(23, 84, 207, 0.04);
}

.ff-component.is-selected {
  outline: 2px solid rgba(23, 84, 207, 0.54);
  outline-offset: 2px;
}

.ff-component.is-highlighted {
  border-color: var(--amber);
  background: rgba(198, 120, 17, 0.08);
  animation: rowPulse 0.9s ease-out;
}

.ff-iconbutton {
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
}

.ff-icon {
  position: relative;
  display: inline-block;
  width: 22px;
  height: 22px;
}

.ff-icon-generic,
.ff-icon-settings,
.ff-icon-add,
.ff-icon-check,
.ff-icon-edit {
  border: 2px solid #1f2937;
  border-radius: 7px;
}

.ff-icon-back::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 4px;
  width: 12px;
  height: 12px;
  border-bottom: 3px solid #111827;
  border-left: 3px solid #111827;
  transform: rotate(45deg);
}

.ff-icon-share::before,
.ff-icon-share::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: #111827;
}

.ff-icon-share::before {
  inset: 3px auto auto 3px;
  width: 6px;
  height: 6px;
  box-shadow: 12px 6px 0 #111827, 1px 13px 0 #111827;
}

.ff-icon-share::after {
  top: 9px;
  left: 8px;
  width: 12px;
  height: 2px;
  transform: rotate(-24deg);
}

.ff-icon-delete {
  border: 2px solid #ef3e61;
  border-top-width: 4px;
  border-radius: 4px;
}

.ff-icon-delete::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 4px;
  width: 10px;
  border-top: 3px solid #ef3e61;
}

.ff-category_chip,
.ff-priority_chip {
  align-items: center;
  min-height: 38px;
  border-radius: 999px;
  background: #fff;
  padding: 0 18px;
  color: #111827;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}

.ff-category_chip.ff-selected-state,
.ff-priority_chip.ff-selected-state {
  background: #111827;
  color: #fff;
}

.ff-container[style*="height:60px"] .ff-row {
  gap: 8px;
  overflow: hidden;
}

.ff-todo_item,
.ff-detail_item,
.ff-row:has(.ff-checkbox) {
  width: 100%;
}

.ff-todo_item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 74px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  padding: 12px 14px;
}

.ff-todo-check {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #e8eef6;
}

.ff-todo-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.ff-todo-copy strong {
  overflow: hidden;
  color: #111827;
  font-size: 15px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ff-todo-meta {
  color: #64748b;
  font-size: 11px;
  font-weight: 750;
}

.ff-completed-state .ff-todo-copy strong {
  color: #64748b;
  text-decoration: line-through;
}

.ff-line {
  height: 9px;
}

.ff-line-medium {
  width: 170px;
}

.ff-line-short {
  width: 120px;
}

.ff-detail_item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 68px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  padding: 12px 14px;
}

.ff-detail-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #eef2f7;
}

.ff-detail-copy {
  display: grid;
  gap: 8px;
}

.ff-detail-copy strong {
  color: #64748b;
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.ff-checkbox {
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 2px solid #94a3b8;
  border-radius: 6px;
  background: #fff;
}

.ff-row:has(.ff-checkbox) {
  min-height: 42px;
}

.ff-row:has(.ff-checkbox) .ff-text {
  flex: 1;
  color: #111827;
  font-size: 14px;
  text-transform: none;
}

.ff-row:has(.ff-checkbox.ff-completed-state) .ff-text {
  color: #64748b;
  text-decoration: line-through;
}

.ff-std-textfield {
  flex: 1;
  align-items: center;
  min-height: 48px;
  border-radius: 12px;
  background: #f8fafc;
  padding: 0 14px;
  color: #64748b;
}

.ff-field-icon {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  border: 2px solid #94a3b8;
  border-radius: 999px;
}

.ff-field-hint {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ff-std-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border-radius: 10px;
  background: #111827;
  padding: 0 16px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.ff-std-button.ff-full-width,
.ff-expanded > .ff-std-button,
.ff-expanded > .ff-component.ff-std-button {
  width: 100%;
}

.ff-std-button.ff-variant-ghost {
  background: transparent;
  color: #111827;
}

.ff-std-button.ff-variant-primary {
  background: #111827;
  color: #fff;
}

.ff-std-button.ff-size-small {
  min-height: 34px;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 12px;
}

.ff-std-button .ff-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.ff-fab {
  position: absolute;
  right: 24px;
  bottom: 24px;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  border-radius: 999px;
  background: #34d399;
  padding: 0 18px;
  color: #111827;
  font-size: 13px;
  font-weight: 800;
}

.ff-progress-bar {
  display: block;
  overflow: hidden;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #e5e7eb;
}

.ff-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #1754cf;
}

.ff-progress-circle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 4px solid #34d399;
  border-radius: 999px;
  color: #fff;
  font-size: 9px;
  font-weight: 850;
}

.ff-divider {
  height: 1px;
  background: #dde3ec;
}

.ff-sizedbox {
  flex: 0 0 auto;
}

.component-row,
.behavior-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 34px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-soft);
  padding: 7px 8px;
  font-size: 12px;
  font-weight: 700;
}

.behavior-row {
  display: block;
  background: #fff;
}

.behavior-row strong {
  display: block;
  font-size: 13px;
}

.behavior-row span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.component-row.is-highlighted,
.behavior-row.is-highlighted {
  border-color: var(--amber);
  background: rgba(198, 120, 17, 0.10);
  animation: rowPulse 0.9s ease-out;
}

.component-kind {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.flow-count,
.trigger-count {
  margin-top: 10px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

.trigger-count {
  color: var(--muted);
}

.screen-card.is-owned-screen .trigger-count {
  margin: 0;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.empty-flow-row {
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.inspector-section {
  border-bottom: 1px solid var(--line);
  padding: 16px;
}

.inspector-section:last-child {
  border-bottom: 0;
}

.inspector-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.small-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--muted);
  padding: 0 8px;
  font-size: 11px;
  font-weight: 750;
}

.component-list,
.flow-list,
.step-list,
.trigger-groups,
.trigger-list,
.event-list,
.action-list,
.action-summary-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.inspector-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 10px;
}

.selected-component-card {
  display: grid;
  gap: 5px;
  margin-top: 12px;
  border: 1px solid rgba(23, 84, 207, 0.24);
  border-radius: 8px;
  background: rgba(23, 84, 207, 0.06);
  padding: 10px;
}

.selected-component-card strong {
  display: block;
  font-size: 13px;
}

.selected-component-card span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.event-group,
.action-summary-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 10px;
}

.event-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.event-title-row strong {
  font-size: 13px;
}

.action-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0;
}

.action-card.is-highlighted {
  border-color: var(--amber);
  background: rgba(198, 120, 17, 0.08);
}

.action-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px;
  cursor: pointer;
  list-style: none;
}

.action-card summary::-webkit-details-marker {
  display: none;
}

.action-card summary::before {
  content: "›";
  color: var(--muted);
  font-size: 16px;
  font-weight: 800;
  transform: rotate(0deg);
}

.action-card[open] summary::before {
  transform: rotate(90deg);
}

.action-card summary span:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.action-card summary strong {
  font-size: 13px;
}

.action-card summary small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-card .step-list,
.action-card .empty-state {
  margin: 0 10px 10px;
}

.action-summary-item strong {
  display: block;
  font-size: 13px;
}

.action-summary-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.empty-state.is-compact {
  margin-top: 8px;
  padding: 10px;
  font-size: 12px;
}

.inspector-card.is-highlighted {
  border-color: var(--amber);
  background: rgba(198, 120, 17, 0.08);
}

.inspector-card strong {
  display: block;
  font-size: 13px;
}

.inspector-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.defined-trigger-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.inspector-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-soft);
  padding: 4px;
}

.inspector-tabs button {
  height: 34px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
}

.inspector-tabs button.is-active {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 4px 14px rgba(20, 32, 51, 0.10);
}

.inspector-tab-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.event-list {
  display: grid;
  gap: 8px;
}

.event-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.event-card.is-selected {
  border-color: rgba(23, 84, 207, 0.42);
  background: rgba(23, 84, 207, 0.045);
}

.event-card.is-highlighted {
  border-color: var(--amber);
  background: rgba(198, 120, 17, 0.07);
  animation: rowPulse 0.9s ease-out;
}

.event-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  cursor: pointer;
  list-style: none;
}

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

.event-summary::before {
  content: "›";
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 16px;
  font-weight: 850;
  transition: transform 0.16s ease;
}

.event-card[open] .event-summary::before {
  transform: rotate(90deg);
}

.event-summary-copy {
  display: grid;
  flex: 1;
  gap: 3px;
  min-width: 0;
}

.event-summary-copy strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-summary-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-panel {
  display: grid;
  gap: 10px;
}

.settings-modal[hidden] {
  display: none;
}

.settings-modal {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 32px;
}

.settings-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 32, 51, 0.42);
  backdrop-filter: blur(2px);
}

.settings-dialog {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(920px, calc(100vw - 64px));
  height: min(680px, calc(100vh - 64px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(20, 32, 51, 0.28);
}

.settings-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 18px 20px;
}

.settings-dialog-header h2 {
  margin-top: 2px;
  font-size: 22px;
}

.settings-close-button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--ink);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.settings-dialog-body {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 0;
}

.settings-nav {
  display: grid;
  align-content: start;
  gap: 6px;
  border-right: 1px solid var(--line);
  background: var(--panel-soft);
  padding: 16px;
}

.settings-nav-item {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  padding: 10px 12px;
  text-align: left;
  font-size: 13px;
  font-weight: 800;
}

.settings-nav-item.is-active {
  border-color: rgba(23, 84, 207, 0.18);
  background: #fff;
  color: var(--blue);
  box-shadow: 0 8px 24px rgba(20, 32, 51, 0.08);
}

.settings-dialog-content {
  min-height: 0;
  overflow: auto;
  padding: 20px;
}

.settings-content-header {
  margin-bottom: 16px;
}

.settings-content-header h2 {
  font-size: 18px;
}

.settings-content-header p {
  margin-top: 4px;
}

.settings-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.settings-panel-title h3 {
  margin: 0;
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.settings-panel-title span {
  border-radius: 999px;
  background: rgba(23, 84, 207, 0.08);
  color: var(--blue);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
  text-transform: capitalize;
}

.settings-table-list {
  display: grid;
  gap: 8px;
}

.settings-card {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.settings-card span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.settings-card strong {
  color: var(--ink);
  font-size: 13px;
}

.settings-card small {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.event-detail {
  border-top: 1px solid var(--line);
  padding: 10px;
}

.compact-record-list {
  display: grid;
  gap: 12px;
}

.compact-record-group {
  display: grid;
  gap: 7px;
}

.compact-record-group h3 {
  margin: 0;
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.compact-records {
  display: grid;
  gap: 7px;
}

.compact-record {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 9px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 9px 10px;
}

.compact-record.is-inherited {
  background: var(--panel-soft);
}

.compact-record > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.compact-record strong,
.compact-record small {
  display: block;
}

.compact-record strong {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.25;
}

.compact-record small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.defined-trigger-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.defined-trigger-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.defined-trigger-card.is-selected {
  border-color: rgba(23, 84, 207, 0.44);
  background: rgba(23, 84, 207, 0.05);
}

.defined-trigger-card.is-highlighted {
  border-color: var(--amber);
  background: rgba(198, 120, 17, 0.08);
  animation: rowPulse 0.9s ease-out;
}

.trigger-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  cursor: pointer;
  list-style: none;
}

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

.trigger-summary::before {
  content: "›";
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 16px;
  font-weight: 850;
  transition: transform 0.16s ease;
}

.defined-trigger-card[open] .trigger-summary::before {
  transform: rotate(90deg);
}

.trigger-summary-copy {
  display: grid;
  flex: 1;
  gap: 3px;
  min-width: 0;
}

.trigger-summary-copy strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trigger-summary-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trigger-detail {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 10px;
}

.trigger-meta {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(23, 84, 207, 0.16);
  border-radius: 8px;
  background: #fff;
  padding: 9px 10px;
}

.trigger-meta span {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.logic-model-summary {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(15, 159, 143, 0.18);
  border-radius: 8px;
  background: rgba(15, 159, 143, 0.06);
  padding: 10px;
}

.logic-model-summary > strong {
  color: var(--ink);
  font-size: 12px;
}

.logic-model-group {
  display: grid;
  gap: 4px;
}

.logic-model-group > span {
  color: var(--teal);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.logic-model-group p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.logic-model-group b {
  color: var(--ink);
  font-weight: 750;
}

.logic-model-group small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.logic-model-tab-header {
  margin-bottom: 12px;
}

.logic-model-record-list {
  display: grid;
  gap: 10px;
}

.logic-model-record-group {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel-soft);
}

.logic-model-record-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  cursor: pointer;
  list-style: none;
}

.logic-model-record-group summary::-webkit-details-marker {
  display: none;
}

.logic-model-record-group summary::before {
  content: "›";
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 16px;
  font-weight: 850;
  transition: transform 0.16s ease;
}

.logic-model-record-group[open] summary::before {
  transform: rotate(90deg);
}

.logic-model-record-group summary span {
  flex: 1;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.logic-model-record-group summary small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.logic-model-records {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding: 10px;
}

.logic-model-record {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 9px 10px;
}

.logic-model-record.is-related {
  border-color: rgba(15, 159, 143, 0.34);
  background: rgba(15, 159, 143, 0.07);
}

.logic-model-record strong,
.logic-model-record span,
.logic-model-record small {
  display: block;
}

.logic-model-record strong {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.25;
}

.logic-model-record span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.logic-model-record small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.logic-model-record em {
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(23, 84, 207, 0.10);
  color: var(--blue);
  padding: 4px 7px;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  text-transform: uppercase;
}

.step-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  align-items: start;
}

.step-list.is-compact {
  display: grid;
  gap: 10px;
}

.step-links {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.decision-paths {
  display: grid;
  gap: 3px;
  margin-top: 6px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.decision-paths strong {
  font-size: 11px;
  color: var(--text);
}

.decision-paths small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.trigger-group {
  display: grid;
  gap: 8px;
}

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

.trigger-group-title {
  color: var(--blue);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.trigger-anchor {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 9px 10px;
}

.trigger-anchor.is-highlighted {
  border-color: var(--amber);
  background: rgba(198, 120, 17, 0.08);
}

.trigger-anchor strong {
  display: block;
  font-size: 12px;
}

.trigger-anchor span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.empty-state {
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.activity-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
}

.activity-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 10px;
}

.activity-item:first-child {
  border-color: rgba(23, 84, 207, 0.28);
  background: rgba(23, 84, 207, 0.07);
}

.activity-item strong {
  display: block;
  font-size: 13px;
}

.activity-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.activity-time {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

@media (max-width: 1100px) {
  body {
    min-width: 0;
    overflow: auto;
  }

  .app-shell {
    min-width: 960px;
  }

  .topbar {
    align-items: flex-start;
  }

  .topbar-actions {
    max-width: 620px;
  }

  .prompt-composer-main {
    flex-wrap: wrap;
  }

  .prompt-scope-area {
    order: 1;
  }

  .prompt-composer textarea {
    order: 3;
    flex-basis: 100%;
  }

  .prompt-submit-button {
    order: 2;
    margin-left: auto;
  }
}

@keyframes cardPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(198, 120, 17, 0.45), 0 16px 36px rgba(23, 84, 207, 0.18);
  }
  100% {
    box-shadow: 0 0 0 18px rgba(198, 120, 17, 0), 0 16px 36px rgba(23, 84, 207, 0.18);
  }
}

@keyframes rowPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(198, 120, 17, 0.34);
  }
  100% {
    box-shadow: 0 0 0 12px rgba(198, 120, 17, 0);
  }
}

@keyframes dashPulse {
  0% {
    stroke-width: 7;
  }
  100% {
    stroke-width: 3;
  }
}

@keyframes shimmerSweep {
  100% {
    transform: translateX(100%);
  }
}
