:root {
  --bg: #fbfbfa;
  --panel: #ffffff;
  --sidebar: #f7f7f6;
  --ink: #1d1f22;
  --muted: #8b8f94;
  --line: #e7e7e4;
  --line-2: #eeeeeb;
  --active: #e9e9e6;
  --brand: #28746d;
  --shadow: 0 18px 50px rgba(35, 39, 44, 0.06);
}

/* MOURA workspace refinement */
.sidebar-themes {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.sidebar-themes > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 8px;
}

.sidebar-themes span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 860;
  letter-spacing: 0.1em;
}

.sidebar-themes button {
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--brand);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 820;
}

.theme-side-list {
  min-height: 0;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 6px;
  padding-right: 2px;
}

.theme-side-item {
  min-height: 54px;
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 8px;
  align-items: center;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--ink);
  padding: 8px 9px;
  text-align: left;
}

.theme-side-item:hover,
.theme-side-item.active {
  background: var(--active);
}

.theme-side-item.locked {
  color: #8b8f94;
}

.theme-side-item strong {
  font-size: 13px;
}

.theme-side-item span {
  min-width: 0;
  overflow: hidden;
  color: #5b6167;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.theme-side-item small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 820;
}

.product-controls {
  grid-template-columns: 1fr 1fr auto;
}

.product-controls button {
  align-self: end;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  color: var(--brand);
  padding: 0 14px;
  font-weight: 820;
}

.product-brief-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.product-brief-strip button {
  min-height: 58px;
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fbfbfa;
  color: var(--ink);
  padding: 10px 12px;
  text-align: left;
}

.product-brief-strip span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.product-brief-strip strong {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.execution-grid.gpt-layout {
  grid-template-columns: minmax(420px, 1.35fr) minmax(340px, 0.72fr) minmax(340px, 0.88fr);
}

.gpt-layout .chat-panel {
  min-height: 680px;
}

.gpt-layout .chat-thread {
  min-height: 430px;
  max-height: 720px;
}

.action-side {
  align-content: start;
}

.action-plan {
  display: grid;
  gap: 8px;
}

.action-plan div {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line-2);
  border-radius: 11px;
  background: #fbfbfa;
  padding: 10px;
}

.action-plan span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #edf7f4;
  color: var(--brand);
  font-size: 11px;
  font-weight: 880;
}

.action-plan strong {
  font-size: 13px;
  line-height: 1.5;
}

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

@media (max-width: 1180px) {
  .execution-grid.gpt-layout {
    grid-template-columns: 1fr;
  }

  .gpt-layout .chat-panel {
    min-height: 520px;
  }

  .product-brief-strip,
  .product-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .product-controls,
  .product-brief-strip,
  .product-form {
    grid-template-columns: 1fr;
  }

  .theme-side-list {
    max-height: 340px;
  }
}

/* Dashboard v2 */
.dashboard-v2 {
  grid-template-columns: 260px minmax(0, 1fr);
}

.dashboard-v2 .sidebar {
  gap: 14px;
}

.app-nav {
  gap: 6px;
}

.app-nav button {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #646a70;
  padding: 0 10px;
  text-align: left;
  font-weight: 760;
}

.app-nav button.active {
  background: var(--active);
  color: var(--ink);
}

.plan-card-mini {
  display: grid;
  gap: 8px;
}

.plan-card-mini button {
  min-height: 34px;
  border: 1px solid rgba(40, 116, 109, 0.28);
  border-radius: 10px;
  background: #edf7f4;
  color: var(--brand);
  font-weight: 820;
}

.dashboard-main {
  min-height: 0;
  overflow: hidden;
}

.app-screen {
  display: none;
  min-height: 0;
  flex: 1;
  overflow: auto;
  padding: 22px 24px 48px;
}

.app-screen.active {
  display: block;
}

.command-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.45fr);
  gap: 20px;
  align-items: end;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(35, 39, 44, 0.04);
}

.command-bar h1,
.settings-main h1,
.billing-layout h1,
.runs-layout h1 {
  margin: 4px 0 8px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
}

.command-bar p,
.settings-main p,
.billing-layout p {
  margin: 0;
  color: var(--muted);
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.status-strip article,
.theme-shell,
.theme-workspace,
.execution-panel,
.settings-card,
.billing-plan,
.runs-layout article {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(35, 39, 44, 0.035);
}

.status-strip article {
  min-height: 106px;
  padding: 16px;
}

.status-strip span,
.theme-rail-head span,
.panel-title span,
.billing-plan span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 860;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status-strip strong {
  display: block;
  margin-top: 7px;
  font-size: 20px;
}

.status-strip p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.theme-shell {
  padding: 16px;
}

.theme-rail-head,
.workspace-header,
.panel-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.theme-rail-head h2,
.workspace-header h2 {
  margin: 4px 0 0;
  font-size: 24px;
}

.theme-rail-head button,
.workspace-actions button,
.chat-compose button,
.settings-actions button,
.billing-plan button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 14px;
  font-weight: 820;
}

.workspace-actions button:last-child,
.chat-compose button,
.settings-actions button:first-child,
.billing-plan.active button,
#checkoutButton {
  border-color: var(--brand);
  background: var(--brand);
  color: #ffffff;
}

.theme-rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 12px 2px 2px;
}

.theme-tab {
  flex: 0 0 160px;
  min-height: 88px;
  display: grid;
  align-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfbfa;
  color: var(--ink);
  padding: 12px;
  text-align: left;
}

.theme-tab.active {
  border-color: rgba(40, 116, 109, 0.45);
  background: #edf7f4;
}

.theme-tab.locked {
  background: #f6f6f4;
  color: #858a90;
}

.theme-tab.locked span {
  color: #b17636;
}

.theme-tab strong {
  font-size: 16px;
}

.theme-tab small {
  color: var(--muted);
  font-weight: 720;
}

.theme-workspace {
  margin-top: 14px;
  padding: 18px;
}

.workspace-header p {
  max-width: 700px;
  margin: 7px 0 0;
  color: var(--muted);
}

.execution-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1.25fr) minmax(300px, 0.75fr) minmax(320px, 0.9fr);
  gap: 12px;
  margin-top: 16px;
}

.execution-panel {
  min-height: 160px;
  padding: 14px;
}

.chat-panel {
  grid-row: span 3;
  display: grid;
  grid-template-rows: auto minmax(240px, 1fr) auto;
  gap: 12px;
}

.execution-side {
  display: grid;
  gap: 12px;
}

.chat-thread {
  min-height: 280px;
  max-height: 520px;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: #fbfbfa;
}

.chat-empty {
  color: var(--muted);
}

.chat-empty p {
  margin: 6px 0 0;
}

.chat-message {
  max-width: 86%;
  padding: 10px 12px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
}

.chat-message.user {
  justify-self: end;
  background: #edf7f4;
  border-color: rgba(40, 116, 109, 0.24);
}

.chat-message span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
}

.chat-message p {
  margin: 4px 0 0;
  line-height: 1.55;
}

.chat-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px;
  gap: 8px;
}

.chat-compose textarea,
.settings-card input,
.settings-card select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

.chat-compose textarea {
  min-height: 86px;
  resize: vertical;
  padding: 11px 12px;
}

.settings-layout,
.billing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.68fr);
  gap: 16px;
}

.settings-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  margin-top: 14px;
}

.settings-card.flat {
  box-shadow: none;
  margin-top: 16px;
}

.settings-card label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.settings-card input,
.settings-card select {
  min-height: 42px;
  padding: 0 12px;
  font-weight: 720;
}

.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.api-status {
  margin: 0;
  color: var(--brand);
  font-weight: 760;
}

.settings-card ul {
  margin: 0;
  padding-left: 18px;
  color: #555b61;
  line-height: 1.8;
}

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

.billing-layout {
  grid-template-columns: 320px minmax(0, 1fr);
}

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

.billing-plan {
  display: grid;
  gap: 9px;
  padding: 18px;
}

.billing-plan.active {
  border-color: rgba(40, 116, 109, 0.42);
  background: #edf7f4;
}

.billing-plan h2 {
  margin: 0;
  font-size: 28px;
}

.billing-plan p {
  margin: 0;
  color: var(--muted);
}

.runs-layout {
  max-width: 920px;
}

.run-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.runs-layout article {
  padding: 15px;
}

.runs-layout article span {
  color: var(--muted);
  font-size: 12px;
}

.runs-layout article p {
  margin: 6px 0 0;
  color: var(--muted);
}

.upgrade-options {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.upgrade-options button {
  min-height: 58px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fbfbfa;
  color: var(--ink);
  padding: 0 14px;
  text-align: left;
}

.upgrade-options button.active {
  border-color: rgba(40, 116, 109, 0.45);
  background: #edf7f4;
}

.upgrade-options span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

@media (max-width: 1180px) {
  .dashboard-v2 {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .execution-grid,
  .settings-layout,
  .billing-layout {
    grid-template-columns: 1fr;
  }

  .chat-panel {
    grid-row: auto;
  }

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

@media (max-width: 760px) {
  body {
    overflow: auto;
  }

  .dashboard-v2 {
    min-height: 100vh;
    height: auto;
    grid-template-columns: 1fr;
  }

  .dashboard-v2 .sidebar {
    position: static;
  }

  .topbar,
  .status-strip,
  .command-bar,
  .product-controls,
  .billing-plan-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    height: auto;
    align-items: start;
    padding: 12px;
  }

  .top-actions {
    flex-wrap: wrap;
  }

  .app-screen {
    padding: 14px;
  }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  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;
  letter-spacing: 0;
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  height: 100vh;
  display: grid;
  grid-template-columns: 334px minmax(0, 1fr);
}

.sidebar {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 14px 10px;
  border-right: 1px solid var(--line);
  background: var(--sidebar);
}

.logo {
  display: grid;
  grid-template-columns: 30px 1fr 30px;
  gap: 10px;
  align-items: center;
}

.logo strong {
  color: var(--brand);
  font-size: 24px;
  letter-spacing: -0.03em;
}

.logo button,
.top-actions button,
.panel-head button {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  color: #4b5157;
}

.logo button {
  width: 30px;
  height: 30px;
}

.logo-mark {
  width: 26px;
  height: 26px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 1px;
  padding: 3px;
  border: 1px solid var(--brand);
}

.logo-mark i {
  border: 1px solid var(--brand);
}

.nav-primary,
.nav-menu {
  display: grid;
  gap: 4px;
}

.nav-primary {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.nav-primary a,
.nav-menu a {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border-radius: 9px;
  color: #6c7075;
  text-decoration: none;
  font-weight: 650;
}

.nav-menu a {
  min-height: 36px;
}

.nav-primary a.active,
.nav-menu a.active {
  background: var(--active);
  color: var(--ink);
}

.user-card {
  min-height: 42px;
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(145deg, #1f2937, #8593a0);
}

.invite-card {
  margin-top: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
}

.invite-card strong,
.invite-card span {
  display: block;
}

.invite-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 0 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px);
}

.breadcrumb {
  color: #222529;
  font-weight: 700;
}

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

.top-actions button,
.top-link-button {
  min-height: 34px;
  padding: 0 12px;
  font-weight: 740;
}

.top-link-button {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  color: #4b5157;
  text-decoration: none;
}

.top-actions .signup-button,
.top-link-button.signup-button {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}

.workspace {
  min-height: 0;
  flex: 1;
  display: grid;
  grid-template-columns: 554px minmax(0, 1fr);
}

.growth-os {
  padding: 22px 24px 0;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfa 100%);
}

.product-command {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.5fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 16px;
}

.product-command h1 {
  margin: 6px 0 8px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.02;
  letter-spacing: 0;
}

.product-command p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.product-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.product-controls label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.product-controls select,
.theme-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

.product-controls select {
  min-height: 42px;
  padding: 0 12px;
}

.growth-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.growth-map article,
.theme-card,
.theme-tile {
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(35, 39, 44, 0.04);
}

.growth-map article {
  min-height: 104px;
  border-radius: 16px;
  padding: 16px;
}

.growth-map span,
.theme-card-head span,
.theme-tile span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 860;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.growth-map strong {
  display: block;
  margin-top: 8px;
  font-size: 20px;
}

.growth-map p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.theme-gallery,
.theme-workspace {
  margin-top: 14px;
}

.theme-gallery-head,
.theme-workspace-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 12px;
}

.theme-gallery-head h2,
.theme-workspace-head h2 {
  margin: 4px 0 0;
  font-size: 26px;
  line-height: 1.12;
}

.theme-gallery-head > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  gap: 10px;
}

.theme-tile {
  min-height: 150px;
  display: grid;
  align-content: start;
  gap: 9px;
  border-radius: 16px;
  padding: 15px;
  text-align: left;
}

.theme-tile.active {
  border-color: rgba(40, 116, 109, 0.45);
  background: #f4faf8;
}

.theme-tile[disabled] {
  opacity: 0.48;
  cursor: not-allowed;
}

.theme-tile strong {
  font-size: 18px;
}

.theme-tile p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.theme-tile small {
  color: var(--brand);
  font-weight: 800;
}

.theme-workspace {
  padding-bottom: 22px;
}

.theme-workspace-head button {
  min-height: 40px;
  border: 1px solid var(--brand);
  border-radius: 12px;
  background: var(--brand);
  color: #ffffff;
  font-weight: 800;
  padding: 0 16px;
}

.theme-workspace-head p {
  max-width: 720px;
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.theme-layout {
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(280px, 0.9fr) minmax(300px, 1fr);
  gap: 12px;
}

.theme-card {
  min-height: 180px;
  border-radius: 16px;
  padding: 16px;
}

.theme-card-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
  margin-bottom: 12px;
}

.theme-card-head strong {
  font-size: 14px;
}

.theme-card textarea {
  min-height: 130px;
  resize: vertical;
  padding: 12px;
  line-height: 1.55;
}

.quick-actions,
.brief-list,
.input-schema,
.router-preview,
.output-list,
.review-list,
.next-list {
  display: grid;
  gap: 8px;
}

.quick-actions button,
.brief-list div,
.input-schema label,
.router-preview div,
.output-list article,
.review-list div,
.next-list button {
  border: 1px solid var(--line-2);
  border-radius: 11px;
  background: #fbfbfa;
  padding: 10px 12px;
}

.quick-actions button,
.next-list button {
  color: var(--ink);
  text-align: left;
  font-weight: 750;
}

.quick-actions button.active {
  border-color: rgba(40, 116, 109, 0.4);
  background: #edf7f4;
  color: var(--brand);
}

.brief-list div,
.input-schema label,
.router-preview div,
.review-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.brief-list strong,
.input-schema strong,
.router-preview strong,
.review-list strong {
  color: var(--ink);
}

.input-schema label {
  display: grid;
  grid-template-columns: 34px minmax(100px, 0.42fr) minmax(120px, 1fr);
  align-items: center;
}

.input-schema input {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 10px;
  font: inherit;
}

.output-list article {
  display: grid;
  gap: 6px;
}

.output-list strong {
  font-size: 15px;
}

.output-list p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.artifact-sections {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.artifact-sections section {
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: #ffffff;
  padding: 10px;
}

.artifact-sections span {
  display: block;
  color: var(--brand);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.artifact-sections ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #3e4247;
  font-size: 13px;
  line-height: 1.55;
}

.artifact-review {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.artifact-review span {
  border-radius: 999px;
  background: #edf7f4;
  color: var(--brand);
  font-size: 11px;
  font-weight: 760;
  padding: 5px 8px;
}

.agent-panel {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
  background: #ffffff;
}

.usage {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  border-radius: 16px;
  background: #fbfbfa;
  color: #6f747a;
  box-shadow: var(--shadow);
}

.panel-head {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  border-bottom: 1px solid var(--line);
  color: #8a8f94;
}

.panel-head div {
  display: flex;
  gap: 8px;
}

.panel-head button {
  width: 32px;
  height: 32px;
}

.add-agent {
  margin-top: 28px;
  border: 0;
  background: transparent;
  color: #2d3034;
  font-size: 16px;
  font-weight: 720;
}

.empty {
  margin-top: 44px;
  text-align: center;
  color: #b3b5b8;
}

.empty.compact {
  margin: 14px 0 0;
  text-align: left;
}

.selection-summary {
  margin-top: 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfbfa;
}

.selection-summary div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.selection-summary span,
.selection-summary p {
  color: var(--muted);
}

.selection-summary strong {
  font-size: 18px;
}

.selection-summary p {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.55;
}

.billing-card {
  margin-top: 12px;
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
}

.billing-card span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.billing-card strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
}

.billing-card button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f6f7f6;
  color: var(--ink);
  font-weight: 760;
  padding: 0 12px;
  cursor: pointer;
}

.billing-card button:hover {
  border-color: rgba(14, 94, 84, 0.35);
  color: var(--brand);
}

.selected-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.selected-list button {
  min-height: 42px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
  padding: 0 12px;
}

.selected-list strong {
  color: var(--brand);
  font-size: 12px;
}

.library-panel {
  min-width: 0;
  overflow: auto;
  padding: 36px 48px 48px;
}

.plan-tabs,
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.app-select-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 24px rgba(35, 39, 44, 0.035);
}

.app-select-bar label,
.guided-selects label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.app-select-bar select,
.guided-selects select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 12px;
  font-weight: 720;
}

.plan-tabs button,
.category-tabs button {
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #858a90;
  padding: 0 14px;
  font-weight: 700;
}

.plan-tabs button {
  border: 1px solid var(--line);
  background: #ffffff;
}

.plan-tabs button.active,
.category-tabs button.active {
  background: #ececea;
  color: #24272b;
}

.integrations-panel {
  margin: 18px 0 22px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(235, 250, 247, 0.92), rgba(245, 247, 255, 0.72) 58%, #ffffff);
  box-shadow: 0 12px 34px rgba(35, 39, 44, 0.045);
}

.integrations-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.integrations-head span {
  display: block;
  color: var(--brand);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.integrations-head strong {
  display: block;
  margin-top: 3px;
  font-size: 15px;
}

.integrations-head button {
  min-height: 32px;
  border: 1px solid rgba(40, 116, 109, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--brand);
  padding: 0 12px;
  font-size: 12px;
  font-weight: 800;
}

.connection-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(40, 116, 109, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.connection-status strong {
  color: var(--brand);
  font-size: 13px;
}

.connection-status span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.integration-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(112px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.integration-card {
  min-height: 132px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  padding: 12px 10px;
  border: 1px solid rgba(227, 229, 225, 0.92);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 20px rgba(35, 39, 44, 0.035);
  text-align: center;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.integration-card:hover {
  transform: translateY(-1px);
  border-color: rgba(40, 116, 109, 0.25);
  box-shadow: 0 14px 26px rgba(35, 39, 44, 0.07);
}

.integration-card.connected {
  border-color: rgba(40, 116, 109, 0.38);
  background: rgba(255, 255, 255, 0.96);
}

.integration-card.pulse {
  animation: pulse-card 420ms ease;
}

.integration-logo {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f6f7f6;
  color: #17191c;
  font-size: 18px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(25, 29, 33, 0.05);
}

.integration-logo.blue {
  color: #1768cf;
  background: #eef5ff;
}

.integration-logo.green {
  color: #28746d;
  background: #eef9f4;
}

.integration-logo.red {
  color: #d73333;
  background: #fff1f1;
}

.integration-logo.pink {
  color: #cc3b89;
  background: #fff0f7;
}

.integration-logo.orange {
  color: #d67916;
  background: #fff6e8;
}

.integration-logo.multi {
  color: #28746d;
  background: linear-gradient(135deg, #eaf7f4, #fff6df);
}

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

.integration-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.integration-card button {
  min-height: 28px;
  margin-top: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: #4e555b;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 850;
}

.integration-card.connected button {
  border-color: #cde2dc;
  background: #e8f2ef;
  color: var(--brand);
}

.connector-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(29, 31, 34, 0.24);
  backdrop-filter: blur(10px);
}

.connector-modal.open {
  display: grid;
}

.connector-dialog {
  position: relative;
  width: min(100%, 520px);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(35, 39, 44, 0.18);
}

.connector-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: #697078;
  font-size: 18px;
}

.connector-dialog-head {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: center;
  padding-right: 34px;
}

.connector-dialog-head span:not(.integration-logo) {
  color: var(--brand);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.connector-dialog h2 {
  margin: 4px 0 0;
  font-size: 26px;
}

.connector-dialog p {
  margin: 18px 0;
  color: var(--muted);
  line-height: 1.7;
}

.connector-scopes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.connector-scopes span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbfbfa;
  color: #596068;
  font-size: 12px;
  font-weight: 780;
}

.connector-key-field {
  display: none;
  margin-top: 18px;
}

.connector-key-field.visible {
  display: block;
}

.connector-key-field label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.connector-key-field input {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
  font: inherit;
}

.connector-key-field small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.connector-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.connector-actions button {
  min-height: 42px;
  border-radius: 999px;
  padding: 0 16px;
  font-weight: 820;
}

.connector-actions button:first-child {
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #ffffff;
}

.connector-actions button:first-child:disabled {
  opacity: 0.7;
  cursor: wait;
}

.connector-actions button:last-child {
  border: 1px solid var(--line);
  background: #ffffff;
  color: #4b5157;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  max-width: min(420px, calc(100% - 48px));
  padding: 13px 16px;
  border: 1px solid rgba(40, 116, 109, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: 0 18px 45px rgba(35, 39, 44, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse-card {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.025);
  }

  100% {
    transform: scale(1);
  }
}

.agent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.create-card,
.agent-card {
  min-height: 230px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
}

.create-card {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border-style: dashed;
  color: #202327;
  font-size: 16px;
  font-weight: 760;
}

.create-card span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f6f6f4;
  font-size: 24px;
}

.agent-card {
  padding: 18px;
  box-shadow: 0 8px 22px rgba(35, 39, 44, 0.035);
  position: relative;
  transition: border-color 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.agent-card.selected {
  border-color: rgba(40, 116, 109, 0.55);
  box-shadow: 0 12px 30px rgba(40, 116, 109, 0.1);
}

.agent-card.locked:not(.selected) {
  opacity: 0.48;
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.card-topline span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.card-topline button {
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: #555b61;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 760;
}

.selected .card-topline button {
  background: #e8f2ef;
  border-color: #cde2dc;
  color: var(--brand);
}

.card-topline button:disabled {
  cursor: not-allowed;
}

.agent-card h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.agent-card p {
  margin: 12px 0 18px;
  color: #a0a4a9;
}

.mini-chart {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: #fbfbfa;
}

.mini-chart span {
  font-size: 12px;
  line-height: 1.5;
}

.line-chart,
.placeholder {
  min-height: 100px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background:
    linear-gradient(160deg, transparent 46%, rgba(113, 139, 206, 0.22) 47%, transparent 49%),
    linear-gradient(180deg, #fbfbfa, #ffffff);
}

.line-chart.soft {
  background:
    linear-gradient(160deg, transparent 42%, rgba(113, 139, 206, 0.24) 43%, transparent 45%),
    linear-gradient(180deg, #fbfbfa, #ffffff);
}

.placeholder {
  background: #fbfbfa;
}

@media (max-width: 1120px) {
  .app-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .product-command,
  .theme-layout {
    grid-template-columns: 1fr;
  }

  .theme-grid {
    grid-template-columns: repeat(3, minmax(160px, 1fr));
  }

  .workspace {
    grid-template-columns: 360px minmax(0, 1fr);
  }

  .agent-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .integration-grid {
    grid-template-columns: repeat(3, minmax(112px, 1fr));
  }
}

@media (max-width: 820px) {
  body {
    height: auto;
    overflow: auto;
  }

  .app-shell,
  .workspace {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .agent-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .growth-os {
    padding: 20px 16px 0;
  }

  .product-command,
  .product-controls,
  .growth-map,
  .theme-grid {
    grid-template-columns: 1fr;
  }

  .theme-gallery-head,
  .theme-workspace-head {
    display: grid;
    align-items: start;
  }

  .library-panel {
    padding: 22px 16px 36px;
  }

  .agent-grid {
    grid-template-columns: 1fr;
  }

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

  .app-select-bar {
    grid-template-columns: 1fr;
  }
}

.marketing-body {
  height: auto;
  min-height: 100vh;
  overflow: auto;
  background:
    radial-gradient(circle at 12% 0%, rgba(229, 242, 236, 0.9), transparent 28%),
    radial-gradient(circle at 88% 2%, rgba(232, 239, 255, 0.85), transparent 30%),
    #fbfbfa;
}

.marketing-nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 68px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  margin: 18px auto 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.marketing-brand,
.marketing-nav nav,
.marketing-nav > div,
.hero-actions {
  display: flex;
  align-items: center;
}

.marketing-brand {
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.marketing-brand strong {
  color: var(--brand);
  font-size: 22px;
}

.marketing-nav nav {
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(31, 35, 39, 0.05);
}

.marketing-nav nav.mega-nav {
  position: relative;
  overflow: visible;
}

.mega-nav .nav-group {
  position: relative;
}

.mega-nav .nav-group > button,
.mega-nav > a {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #3d434a;
  padding: 0 14px;
  text-decoration: none;
  font-weight: 760;
}

.mega-nav .nav-group > button::after {
  content: "⌄";
  margin-left: 7px;
  color: var(--muted);
  font-size: 12px;
}

.mega-nav .nav-group.open > button,
.mega-nav .nav-group:hover > button,
.mega-nav > a:hover {
  background: #ffffff;
  color: var(--ink);
}

.nav-dropdown {
  width: 310px;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  z-index: 30;
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 60px rgba(35, 39, 44, 0.12);
  backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition: opacity 150ms ease, transform 150ms ease;
}

.nav-group.open .nav-dropdown,
.nav-group:hover .nav-dropdown,
.nav-group:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav-dropdown a {
  min-height: 62px;
  display: grid;
  align-content: center;
  gap: 4px;
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--ink);
  text-decoration: none;
}

.nav-dropdown a:hover {
  background: #f6f7f5;
}

.nav-dropdown strong {
  font-size: 14px;
}

.nav-dropdown span {
  color: var(--muted);
  font-size: 12px;
}

.marketing-nav nav a,
.nav-login,
.nav-cta {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 14px;
  color: #3d434a;
  text-decoration: none;
  font-weight: 760;
}

.marketing-nav > div {
  justify-content: flex-end;
  gap: 8px;
}

.nav-login {
  border: 1px solid var(--line);
  background: #ffffff;
}

.nav-cta {
  background: var(--brand);
  color: #ffffff;
}

.nav-cta.large,
.nav-login.large {
  min-height: 48px;
  padding: 0 20px;
}

.marketing-hero,
.plans-section,
.tool-flow,
.api-section,
.trust-section,
.workflow-section,
.features-section,
.product-screen-section,
.difference-section,
.security-section,
.final-cta,
.site-page,
.marketing-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-page {
  padding: 74px 0 80px;
}

.site-hero.compact {
  max-width: 820px;
  padding: 24px 0 36px;
}

.site-hero h1 {
  margin: 12px 0 16px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.08;
  overflow-wrap: anywhere;
  line-break: strict;
}

.site-hero p:not(.section-kicker) {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.capability-matrix,
.integration-showcase,
.setup-list,
.pricing-grid.standalone {
  display: grid;
  gap: 14px;
}

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

.capability-matrix article,
.integration-showcase article,
.setup-list article {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(35, 39, 44, 0.04);
}

.capability-matrix article {
  min-height: 210px;
  padding: 20px;
}

.capability-matrix span {
  color: var(--brand);
  font-size: 12px;
  font-weight: 850;
}

.capability-matrix h2 {
  margin: 12px 0;
  font-size: 22px;
}

.capability-matrix p,
.integration-showcase span,
.setup-list p {
  color: var(--muted);
  line-height: 1.7;
}

.setup-list code {
  display: inline-block;
  max-width: 100%;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f6f7f6;
  color: #222827;
  font-size: 0.92em;
  overflow-wrap: anywhere;
}

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

.integration-showcase article {
  min-height: 126px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 20px;
}

.integration-showcase strong {
  font-size: 20px;
}

.security-grid.expanded {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.setup-list article {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  padding: 20px;
}

.setup-list article > span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #e8f2ef;
  color: var(--brand);
  font-weight: 900;
}

.setup-list h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.marketing-hero {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: 56px;
  align-items: center;
  padding: 74px 0 58px;
}

.section-kicker {
  margin: 0;
  color: var(--brand);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.marketing-hero h1,
.section-head h2,
.api-section h2 {
  margin: 14px 0 18px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.02;
  letter-spacing: 0;
}

.marketing-hero p:not(.section-kicker),
.section-head p,
.api-grid p,
.pricing-card p,
.tool-flow p,
.marketing-footer p {
  color: var(--muted);
  line-height: 1.75;
}

.marketing-hero p:not(.section-kicker) {
  max-width: 620px;
  font-size: 17px;
}

.hero-actions {
  gap: 10px;
  margin-top: 28px;
}

.product-preview {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.preview-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.preview-top span,
.preview-note {
  color: var(--muted);
}

.preview-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.guided-selects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 18px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfbfa;
}

.preview-tabs span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #f0f0ee;
  color: #697078;
  font-weight: 760;
}

.preview-tabs .active {
  background: #e4efec;
  color: var(--brand);
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.preview-grid article {
  min-height: 84px;
  display: grid;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  font-weight: 780;
}

.preview-note {
  margin: 18px 0 0;
}

.product-hero {
  grid-template-columns: minmax(0, 0.85fr) minmax(430px, 1.15fr);
}

.product-hero h1 {
  max-width: 560px;
}

.hero-product-board {
  position: relative;
  min-height: 430px;
  padding: 44px 28px 24px;
  border-radius: 32px;
  background:
    linear-gradient(145deg, rgba(233, 250, 247, 0.96), rgba(239, 249, 255, 0.9) 64%, rgba(255, 255, 255, 0.94));
  box-shadow: 0 28px 70px rgba(40, 116, 109, 0.12);
}

.floating-card {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 4px;
  min-width: 168px;
  padding: 14px 16px;
  border: 1px solid rgba(226, 232, 229, 0.9);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 34px rgba(35, 39, 44, 0.08);
  backdrop-filter: blur(12px);
}

.floating-card span,
.board-header span,
.board-menu span,
.screen-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.card-left {
  top: 24px;
  left: -18px;
}

.card-right {
  top: 64px;
  right: -12px;
}

.board-main {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 229, 0.96);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 46px rgba(35, 39, 44, 0.08);
}

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

.board-content {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 18px;
  padding: 20px;
}

.board-menu {
  display: grid;
  gap: 8px;
  align-content: start;
}

.board-menu span {
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: #f7f7f5;
}

.board-menu .active {
  color: var(--brand);
  background: #e8f3ef;
}

.board-cards,
.screen-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.board-cards article,
.screen-grid article {
  min-height: 112px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
}

.board-cards p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.mock-chart {
  min-height: 54px;
  margin-top: 12px;
  border-radius: 12px;
  background:
    linear-gradient(158deg, transparent 43%, rgba(40, 116, 109, 0.28) 44%, transparent 47%),
    linear-gradient(180deg, #f7fbfa, #ffffff);
}

.mock-chart.soft {
  background:
    linear-gradient(158deg, transparent 50%, rgba(113, 139, 206, 0.28) 51%, transparent 54%),
    linear-gradient(180deg, #f7fbfa, #ffffff);
}

.capability-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.capability-row span,
.logo-cloud span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(226, 232, 229, 0.92);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: #3d444a;
  font-weight: 800;
}

.trust-section,
.workflow-section,
.features-section,
.product-screen-section,
.plans-section,
.difference-section,
.security-section {
  padding-top: 86px;
}

.trust-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: center;
}

.trust-section h2,
.workflow-section h2,
.features-section h2,
.product-screen-section h2,
.difference-section h2,
.security-section h2,
.final-cta h2 {
  margin: 12px 0 0;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.08;
}

.logo-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.phase-card,
.screen-card,
.final-cta {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.phase-card {
  overflow: hidden;
}

.phase-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.phase-tabs span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 13px;
  color: #6e747a;
  background: #f6f6f4;
  font-size: 13px;
  font-weight: 800;
}

.phase-tabs .active {
  background: #e4efec;
  color: var(--brand);
}

.phase-body {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  align-items: center;
  padding: 28px;
}

.phase-body strong {
  color: var(--brand);
  font-size: 32px;
}

.phase-body h3 {
  margin: 12px 0 10px;
  font-size: 34px;
  line-height: 1.1;
}

.phase-body p,
.feature-grid p,
.difference-grid p,
.security-grid p {
  color: var(--muted);
  line-height: 1.75;
}

.phase-visual {
  min-height: 260px;
  display: grid;
  grid-template-columns: repeat(2, minmax(110px, 1fr));
  gap: 14px;
  place-items: center;
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 45%, rgba(111, 218, 209, 0.58), transparent 44%),
    linear-gradient(145deg, #effafa, #f8ffff);
}

.phase-visual span {
  display: grid;
  place-items: center;
  width: 94px;
  height: 58px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--brand);
  font-weight: 850;
  box-shadow: 0 10px 28px rgba(40, 116, 109, 0.08);
}

.feature-grid,
.difference-grid,
.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feature-grid article,
.difference-grid article,
.security-grid article {
  min-height: 196px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 28px rgba(35, 39, 44, 0.035);
}

.feature-grid span {
  color: var(--brand);
  font-weight: 850;
}

.feature-grid h3 {
  margin: 28px 0 10px;
  font-size: 22px;
}

.screen-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  overflow: hidden;
}

.screen-card aside {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 24px;
  border-right: 1px solid var(--line);
  background: #f7f8f7;
}

.screen-card aside strong {
  margin-bottom: 12px;
  color: var(--brand);
  font-size: 22px;
}

.screen-card aside span {
  min-height: 34px;
  display: flex;
  align-items: center;
  border-radius: 9px;
  padding: 0 10px;
}

.screen-card aside .active {
  color: var(--ink);
  background: #e8e9e6;
}

.screen-card > div {
  padding: 24px;
}

.screen-selects {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.screen-selects label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.screen-selects select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 12px;
  font-weight: 720;
}

.screen-grid article {
  display: grid;
  align-content: space-between;
}

.final-cta {
  margin-top: 86px;
  padding: 46px;
  background: linear-gradient(135deg, #ffffff, #d8fbf6);
}

.final-cta a {
  margin-top: 24px;
}

.section-head {
  max-width: 680px;
  margin-bottom: 24px;
}

.section-head h2,
.api-section h2 {
  font-size: clamp(34px, 4vw, 54px);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.pricing-card,
.flow-grid article,
.api-grid article {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 28px rgba(35, 39, 44, 0.04);
}

.pricing-card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
}

.pricing-card.featured {
  border-color: rgba(40, 116, 109, 0.35);
  box-shadow: var(--shadow);
}

.pricing-card span {
  color: var(--brand);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.pricing-card h3 {
  margin: 12px 0 8px;
  font-size: 30px;
}

.pricing-card strong {
  display: block;
  margin-top: auto;
}

.pricing-card a {
  min-height: 42px;
  display: grid;
  place-items: center;
  margin-top: 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
  text-decoration: none;
  font-weight: 780;
}

.pricing-card.enterprise a {
  background: var(--brand);
}

.tool-flow,
.api-section {
  padding-top: 74px;
}

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

.flow-grid article,
.api-grid article {
  padding: 22px;
}

.flow-grid span {
  color: var(--brand);
  font-weight: 850;
}

.flow-grid strong,
.api-grid strong {
  display: block;
  margin: 12px 0 8px;
  font-size: 20px;
}

.api-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  align-items: start;
}

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

.marketing-footer {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 28px;
  align-items: start;
  margin-top: 72px;
  padding: 32px 0 48px;
  border-top: 1px solid var(--line);
}

.marketing-footer span {
  color: var(--muted);
  font-size: 12px;
}

.marketing-footer nav {
  display: grid;
  gap: 8px;
}

.marketing-footer a {
  color: #454b52;
  text-decoration: none;
}

.selected-plan {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfbfa;
}

.selected-plan span,
.selected-plan small {
  display: block;
  color: var(--muted);
}

.selected-plan strong {
  display: block;
  margin: 5px 0;
}

.legal-page {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 78px 0;
}

.legal-page h1 {
  margin: 12px 0;
  font-size: clamp(38px, 6vw, 64px);
}

.legal-page > section > p:not(.section-kicker) {
  color: var(--muted);
  line-height: 1.8;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.legal-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
}

.legal-grid h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.legal-grid p {
  margin: 8px 0;
  color: var(--muted);
  line-height: 1.65;
}

@media (max-width: 1100px) {
  .marketing-hero,
  .api-section,
  .trust-section,
  .phase-body,
  .screen-card {
    grid-template-columns: 1fr;
  }

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

  .flow-grid,
  .feature-grid,
  .difference-grid,
  .security-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .screen-card aside {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 720px) {
  .marketing-nav {
    grid-template-columns: 1fr auto;
    border-radius: 24px;
  }

  .marketing-nav nav {
    display: none;
  }

  .marketing-hero {
    min-height: 0;
    grid-template-columns: 1fr;
    padding-top: 52px;
  }

  .product-preview {
    padding: 16px;
  }

  .hero-product-board {
    min-height: 0;
    padding: 22px 14px 16px;
  }

  .floating-card {
    position: static;
    min-width: 0;
    margin-bottom: 10px;
  }

  .board-content,
  .screen-selects {
    grid-template-columns: 1fr;
  }

  .board-cards,
  .screen-grid {
    grid-template-columns: 1fr;
  }

  .guided-selects {
    grid-template-columns: 1fr;
  }

  .pricing-grid,
  .flow-grid,
  .api-grid,
  .feature-grid,
  .difference-grid,
  .security-grid,
  .security-grid.expanded,
  .capability-matrix,
  .integration-showcase,
  .marketing-footer,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .marketing-nav,
  .marketing-nav nav.mega-nav {
    border-radius: 22px;
  }

  .marketing-nav {
    grid-template-columns: 1fr;
  }

  .marketing-nav > div {
    justify-content: flex-start;
  }

  .mega-nav {
    width: 100%;
    flex-wrap: wrap;
  }

  .nav-dropdown {
    width: min(320px, calc(100vw - 48px));
    left: 0;
    transform: translate(0, 6px);
  }

  .nav-group.open .nav-dropdown,
  .nav-group:hover .nav-dropdown,
  .nav-group:focus-within .nav-dropdown {
    transform: translate(0, 0);
  }

  .phase-body,
  .screen-card > div,
  .final-cta {
    padding: 20px;
  }
}

.auth-body {
  height: auto;
  min-height: 100vh;
  overflow: auto;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 20% 0%, rgba(222, 242, 236, 0.95), transparent 32%),
    #fbfbfa;
}

.auth-shell {
  width: min(100% - 32px, 520px);
  padding: 48px 0;
}

.auth-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--brand);
  font-size: 22px;
  font-weight: 820;
}

.auth-copy {
  margin: 28px 0 20px;
}

.auth-copy p {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.auth-copy h1 {
  margin: 0;
  font-size: 34px;
}

.email-confirmation {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid rgba(15, 97, 78, 0.2);
  border-radius: 16px;
  background: #f4fbf8;
}

.email-confirmation[hidden] {
  display: none;
}

.mail-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #ffffff;
  font-weight: 900;
}

.email-confirmation p,
.email-confirmation h2,
.email-confirmation small {
  margin: 0;
}

.email-confirmation p {
  color: var(--brand);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.email-confirmation h2 {
  margin-top: 3px;
  font-size: 18px;
}

.email-confirmation small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.5;
}

.email-confirmation button {
  grid-column: 1 / -1;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #ffffff;
  color: var(--brand);
  font-weight: 830;
}

.email-confirmation button:disabled {
  opacity: 0.55;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form.secondary {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.auth-form.reset {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.auth-form[hidden],
.google-auth-button[hidden],
.text-auth-button[hidden],
.auth-divider[hidden] {
  display: none;
}

.auth-form h2 {
  margin: 0;
  font-size: 20px;
}

.auth-form label {
  display: grid;
  gap: 7px;
  color: #51575e;
  font-size: 13px;
  font-weight: 700;
}

.auth-form input {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
  font: inherit;
}

.auth-form button {
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  background: var(--brand);
  color: #ffffff;
  font-weight: 800;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.google-auth-button {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  color: #1f2328;
  font: inherit;
  font-weight: 800;
}

.google-auth-button span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #4285f4;
  font-size: 13px;
  font-weight: 900;
}

.text-auth-button {
  width: 100%;
  min-height: 38px;
  margin-top: 10px;
  border: 0;
  background: transparent;
  color: var(--brand);
  font: inherit;
  font-size: 13px;
  font-weight: 820;
}

.text-auth-button:disabled {
  opacity: 0.55;
}

.secondary-google {
  margin-top: 12px;
}

.auth-status {
  min-height: 22px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.auth-status[data-type="ok"] {
  color: var(--brand);
}

.admin-body {
  height: auto;
  min-height: 100vh;
  overflow: auto;
  background: #fbfbfa;
}

.admin-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 48px;
}

.admin-header,
.admin-title,
.admin-login,
.admin-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-header {
  min-height: 60px;
  padding-bottom: 18px;
}

.admin-header > div {
  display: flex;
  gap: 8px;
}

.admin-login {
  margin-top: 42px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.admin-login h1,
.admin-title h1 {
  margin: 8px 0 0;
  font-size: 42px;
}

.admin-login p:not(.section-kicker) {
  margin: 10px 0 0;
  color: var(--muted);
}

.admin-login form {
  min-width: min(420px, 100%);
  display: grid;
  gap: 10px;
}

.admin-login label {
  display: grid;
  gap: 7px;
  color: #51575e;
  font-size: 13px;
  font-weight: 760;
}

.admin-login input {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
  font: inherit;
}

.admin-login button,
.admin-title button {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--brand);
  color: #ffffff;
  padding: 0 16px;
  font-weight: 820;
}

.admin-dashboard {
  display: grid;
  gap: 18px;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 12px;
}

.admin-metrics article,
.admin-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(35, 39, 44, 0.04);
}

.admin-metrics article {
  min-height: 104px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
}

.admin-metrics span,
.admin-panel-head span,
.admin-row span,
.admin-row small,
.admin-empty {
  color: var(--muted);
}

.admin-metrics strong {
  font-size: 34px;
}

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

.admin-panel {
  min-height: 280px;
  overflow: hidden;
}

.admin-panel-head {
  min-height: 58px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}

.admin-panel-head h2 {
  margin: 0;
  font-size: 17px;
}

.admin-panel-head span {
  min-width: 30px;
  min-height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f3f4f2;
  font-weight: 800;
}

.admin-table {
  display: grid;
}

.admin-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.7fr 0.7fr 0.8fr;
  gap: 10px;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line-2);
  font-size: 13px;
}

.admin-row.compact {
  grid-template-columns: 1.3fr 0.8fr 0.7fr;
}

.admin-row.members {
  grid-template-columns: 1.35fr 1fr 0.55fr 0.55fr 0.7fr 0.75fr;
}

.admin-row strong,
.admin-row span,
.admin-row small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-empty {
  margin: 0;
  padding: 18px 16px;
}

@media (max-width: 860px) {
  .admin-header,
  .admin-title,
  .admin-login {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-metrics,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-row,
  .admin-row.compact {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* MOURA workspace refinement overrides */
.sidebar-themes {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.sidebar-themes > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 8px;
}

.sidebar-themes span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 860;
  letter-spacing: 0.1em;
}

.theme-side-list {
  min-height: 0;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 6px;
  padding-right: 2px;
}

.theme-side-item {
  min-height: 54px;
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 8px;
  align-items: center;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--ink);
  padding: 8px 9px;
  text-align: left;
}

.theme-side-item:hover,
.theme-side-item.active {
  background: var(--active);
}

.theme-side-item.locked {
  color: #8b8f94;
}

.theme-side-item span {
  min-width: 0;
  overflow: hidden;
  color: #5b6167;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.theme-side-item small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 820;
}

.dashboard-v2 .product-controls {
  grid-template-columns: 1fr 1fr auto;
}

.dashboard-v2 .product-controls button {
  align-self: end;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  color: var(--brand);
  padding: 0 14px;
  font-weight: 820;
}

.product-brief-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.product-brief-strip button {
  min-height: 58px;
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fbfbfa;
  color: var(--ink);
  padding: 10px 12px;
  text-align: left;
}

.product-brief-strip span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.product-brief-strip strong {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.execution-grid.gpt-layout {
  grid-template-columns: minmax(420px, 1.35fr) minmax(340px, 0.72fr) minmax(340px, 0.88fr);
}

.gpt-layout .chat-panel {
  min-height: 680px;
}

.gpt-layout .chat-thread {
  min-height: 430px;
  max-height: 720px;
}

.action-side {
  align-content: start;
}

.action-plan {
  display: grid;
  gap: 8px;
}

.action-plan div {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line-2);
  border-radius: 11px;
  background: #fbfbfa;
  padding: 10px;
}

.action-plan span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #edf7f4;
  color: var(--brand);
  font-size: 11px;
  font-weight: 880;
}

.action-plan strong {
  font-size: 13px;
  line-height: 1.5;
}

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

@media (max-width: 1180px) {
  .execution-grid.gpt-layout {
    grid-template-columns: 1fr;
  }

  .gpt-layout .chat-panel {
    min-height: 520px;
  }

  .product-brief-strip,
  .product-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .dashboard-v2 .product-controls,
  .product-brief-strip,
  .product-form {
    grid-template-columns: 1fr;
  }

  .theme-side-list {
    max-height: 340px;
  }
}

/* MOURA app v3: first-view execution workspace */
.dashboard-v3 {
  height: 100vh;
  grid-template-columns: 304px minmax(0, 1fr);
  background: #f7f8f7;
  transition: grid-template-columns 180ms ease;
}

.dashboard-v3.sidebar-collapsed {
  grid-template-columns: 0 minmax(0, 1fr);
}

.dashboard-v3 .control-sidebar {
  min-width: 0;
  overflow: hidden auto;
  gap: 12px;
  padding: 14px 12px;
  background: #ffffff;
  transition: opacity 160ms ease;
}

.dashboard-v3.sidebar-collapsed .control-sidebar {
  opacity: 0;
  pointer-events: none;
}

.dashboard-v3 .nav-menu {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

.dashboard-v3 .nav-menu button {
  min-height: 34px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #687078;
  font-size: 12px;
  font-weight: 800;
}

.dashboard-v3 .nav-menu button.active,
.dashboard-v3 .nav-menu button:hover {
  background: #edf3f1;
  color: #133a35;
}

.side-control,
.side-product,
.plan-card-mini {
  display: grid;
  gap: 10px;
}

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

.side-control label,
.settings-card label {
  display: grid;
  gap: 6px;
  color: #767d83;
  font-size: 11px;
  font-weight: 850;
}

.side-control select,
.settings-card select,
.settings-card input,
.settings-card textarea,
#outputTypeSelect {
  width: 100%;
  min-height: 40px;
  border: 1px solid #dfe4e2;
  border-radius: 10px;
  background: #ffffff;
  color: #15191d;
  padding: 0 11px;
  font-size: 13px;
  font-weight: 760;
}

.settings-card textarea {
  min-height: 92px;
  padding: 10px 11px;
  resize: vertical;
  line-height: 1.55;
}

.side-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.side-section-head span,
.panel-title span {
  color: #7a8288;
  font-size: 11px;
  font-weight: 880;
}

.side-section-head button {
  border: 1px solid #dfe4e2;
  border-radius: 999px;
  background: #ffffff;
  padding: 6px 10px;
  color: #14433d;
  font-size: 12px;
  font-weight: 850;
}

.side-brief {
  display: grid;
  gap: 7px;
}

.side-brief-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 42px;
  border: 1px solid #e4e8e6;
  border-radius: 10px;
  background: #fbfcfb;
  padding: 8px 9px;
  text-align: left;
}

.side-brief-row span {
  color: #788086;
  font-size: 11px;
  font-weight: 850;
}

.side-brief-row strong {
  min-width: 0;
  overflow: hidden;
  color: #161b1f;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plan-card-mini {
  margin-top: auto;
  border-radius: 14px;
}

.dashboard-main {
  min-width: 0;
  height: 100vh;
  overflow: hidden;
}

.app-topbar {
  height: 58px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
}

.sidebar-reopen {
  width: 36px;
  height: 36px;
  border: 1px solid #dfe4e2;
  border-radius: 10px;
  background: #ffffff;
  color: #1f282d;
}

.app-topbar strong,
.app-topbar span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-topbar strong {
  font-size: 15px;
}

.app-topbar span {
  color: #737b81;
  font-size: 12px;
  font-weight: 700;
}

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

.top-actions button {
  min-height: 36px;
  padding: 0 13px;
  font-size: 12px;
  font-weight: 850;
}

.dashboard-v3 .app-screen {
  height: calc(100vh - 58px);
  overflow: hidden;
  padding: 12px;
}

.workspace-stage {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 364px;
  gap: 12px;
}

.chat-workbench,
.right-workbench > section {
  border: 1px solid #e0e5e3;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(17, 24, 39, 0.045);
}

.chat-workbench {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.chat-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 15px 16px 12px;
  border-bottom: 1px solid #edf0ef;
}

.chat-header h1 {
  margin: 2px 0 4px;
  font-size: 24px;
  line-height: 1.15;
}

.chat-header p {
  margin: 0;
  color: #727a80;
  font-size: 12px;
  font-weight: 720;
}

.mode-tabs {
  display: flex;
  gap: 5px;
  padding: 4px;
  border: 1px solid #e1e6e4;
  border-radius: 999px;
  background: #f7f8f7;
}

.mode-tabs button {
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #667078;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 850;
}

.mode-tabs button.active {
  background: #123d38;
  color: #ffffff;
}

.dashboard-v3 .chat-thread {
  min-height: 0;
  overflow: auto;
  padding: 16px;
  background: linear-gradient(#ffffff, #fbfcfb);
}

.dashboard-v3 .chat-empty {
  max-width: 560px;
  margin: 52px auto 0;
  text-align: center;
}

.dashboard-v3 .chat-empty strong {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
}

.dashboard-v3 .chat-empty p {
  margin: 0;
  color: #747c82;
  line-height: 1.7;
}

.primary-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  grid-template-rows: auto minmax(82px, auto);
  gap: 10px;
  align-items: stretch;
  padding: 12px;
  border-top: 1px solid #e9eeec;
  background: #ffffff;
}

.compose-tools {
  grid-column: 1 / -1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.compose-tools input[type="file"] {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.attach-button,
.chat-attachments small,
#chatAttachmentList button {
  min-height: 34px;
  border: 1px solid #dfe5e2;
  border-radius: 999px;
  background: #ffffff;
  color: #253036;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 820;
  white-space: nowrap;
}

.attach-button {
  border-color: #cfe2dc;
  background: #edf7f4;
  color: #123d38;
}

#chatAttachmentList {
  min-width: 0;
  display: flex;
  gap: 6px;
  overflow: auto;
}

#chatAttachmentList button {
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#chatAttachmentList span {
  margin-right: 5px;
  color: #0e5149;
}

.chat-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.primary-compose textarea {
  width: 100%;
  min-height: 82px;
  max-height: 132px;
  border: 1px solid #dbe2df;
  border-radius: 14px;
  background: #fbfcfb;
  padding: 12px 13px;
  color: #15191d;
  resize: none;
  line-height: 1.55;
}

.primary-compose .send-button {
  width: 100%;
  min-height: 82px;
  border: 0;
  border-radius: 14px;
  background: #123d38;
  color: #ffffff;
  font-weight: 880;
}

.right-workbench {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(138px, 0.8fr) minmax(160px, 1fr) auto;
  gap: 10px;
  overflow: hidden;
}

.right-workbench > section {
  min-height: 0;
  overflow: hidden;
  padding: 12px;
}

.panel-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.panel-title strong {
  min-width: 0;
  overflow: hidden;
  color: #161b1f;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-actions {
  max-height: 108px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  overflow: auto;
}

.compact-actions button,
.next-list button,
.check-list button {
  border: 1px solid #dfe5e2;
  border-radius: 999px;
  background: #ffffff;
  color: #253036;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 820;
}

.compact-actions button.active,
.compact-actions button:hover,
.next-list button:hover,
.check-list button:hover {
  border-color: #bdd6cf;
  background: #edf7f4;
  color: #123d38;
}

.contextual-panel,
.output-panel {
  overflow: auto !important;
}

.context-brief {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.context-brief div {
  display: grid;
  gap: 3px;
  border: 1px solid #edf0ef;
  border-radius: 10px;
  background: #fbfcfb;
  padding: 8px;
}

.context-brief span,
.router-preview span {
  color: #798187;
  font-size: 10px;
  font-weight: 850;
}

.context-brief strong,
.router-preview strong {
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.required-inputs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.required-inputs span {
  border-radius: 999px;
  background: #f2f4f3;
  color: #566068;
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 800;
}

.check-list,
.next-list {
  display: grid;
  gap: 7px;
}

.check-list button {
  display: flex;
  justify-content: space-between;
  border-radius: 10px;
  text-align: left;
}

.dashboard-v3 .output-list {
  display: grid;
  gap: 8px;
}

.dashboard-v3 .output-list article {
  border: 1px solid #ebefed;
  border-radius: 11px;
  background: #fbfcfb;
  padding: 10px;
}

.dashboard-v3 .output-list article.image {
  background: #ffffff;
}

.visual-preview {
  overflow: hidden;
  margin-bottom: 10px;
  border: 1px solid #e0e5e3;
  border-radius: 12px;
  background: #f7f8f7;
}

.visual-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.route-chip {
  display: inline-flex;
  width: fit-content;
  margin: 8px 0 2px;
  border-radius: 999px;
  background: #edf7f4;
  color: #123d38;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 850;
}

.dashboard-v3 .output-list strong {
  font-size: 13px;
}

.dashboard-v3 .output-list p {
  margin: 4px 0 0;
  color: #6f777e;
  font-size: 12px;
  line-height: 1.55;
}

.router-panel {
  max-height: 118px;
}

.router-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.router-preview div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

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

.rich-product-form .span-2 {
  grid-column: 1 / -1;
}

.overview-layout,
.files-layout {
  height: 100%;
  min-height: 0;
  display: grid;
  gap: 12px;
}

.overview-layout {
  grid-template-columns: minmax(0, 1fr) 360px;
}

.files-layout {
  grid-template-columns: 330px minmax(0, 1fr);
}

.overview-main,
.overview-side,
.file-drop-panel,
.file-library-panel,
.dashboard-panel {
  min-width: 0;
}

.overview-main,
.overview-side,
.file-library-panel {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 0;
  overflow: auto;
}

.overview-head,
.file-drop-panel,
.dashboard-panel,
.file-library-panel {
  border: 1px solid #e0e5e3;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(17, 24, 39, 0.045);
}

.overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
}

.overview-head h1,
.file-drop-panel h1,
.file-library-panel h2 {
  margin: 2px 0 0;
  font-size: 24px;
  line-height: 1.15;
}

.overview-head button {
  min-height: 38px;
  border: 0;
  border-radius: 12px;
  background: #123d38;
  color: #ffffff;
  padding: 0 14px;
  font-weight: 850;
}

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

.metric-grid article,
.dashboard-panel,
.file-drop-panel,
.file-library-panel {
  padding: 14px;
}

.metric-grid article {
  border: 1px solid #e0e5e3;
  border-radius: 16px;
  background: #ffffff;
}

.metric-grid span,
.metric-grid p,
.mini-list span,
.file-card p,
.file-drop-panel p {
  color: #6f777e;
  font-size: 12px;
  font-weight: 720;
}

.metric-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
}

.metric-grid p,
.file-card p,
.file-drop-panel p {
  margin: 5px 0 0;
}

.dashboard-actions,
.mini-list {
  display: grid;
  gap: 8px;
}

.dashboard-actions {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.dashboard-actions button {
  min-height: 42px;
  border: 1px solid #dfe5e2;
  border-radius: 12px;
  background: #fbfcfb;
  color: #1d282d;
  font-size: 12px;
  font-weight: 850;
}

.mini-list article {
  display: grid;
  gap: 4px;
  border: 1px solid #edf0ef;
  border-radius: 11px;
  background: #fbfcfb;
  padding: 10px;
}

.mini-list strong {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-drop-panel {
  align-self: start;
  display: grid;
  gap: 12px;
}

.file-drop-zone {
  min-height: 190px;
  display: grid;
  place-items: center;
  gap: 6px;
  border: 1px dashed #bdd6cf;
  border-radius: 16px;
  background: #f4faf8;
  color: #123d38;
  text-align: center;
  cursor: pointer;
}

.file-drop-zone input {
  display: none;
}

.file-drop-zone strong,
.file-drop-zone span {
  display: block;
}

.library-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.library-toolbar select {
  width: 170px;
  min-height: 38px;
  border: 1px solid #dfe4e2;
  border-radius: 10px;
  background: #ffffff;
  padding: 0 10px;
  font-weight: 800;
}

.file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}

.file-card,
.file-empty {
  display: grid;
  gap: 10px;
  border: 1px solid #ebefed;
  border-radius: 13px;
  background: #fbfcfb;
  padding: 10px;
}

.file-preview {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  background: #edf3f1;
  color: #123d38;
  font-weight: 900;
}

.file-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.file-card strong {
  min-width: 0;
  overflow: hidden;
  display: block;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.file-actions button {
  min-height: 34px;
  border: 1px solid #dfe5e2;
  border-radius: 10px;
  background: #ffffff;
  color: #253036;
  font-size: 12px;
  font-weight: 820;
}

@media (max-width: 1120px) {
  .workspace-stage {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .overview-layout,
  .files-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 860px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    overflow: auto;
  }

  .dashboard-v3 {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .dashboard-v3 .control-sidebar {
    position: fixed;
    z-index: 20;
    inset: 0 auto 0 0;
    width: min(320px, 92vw);
    box-shadow: 20px 0 60px rgba(15, 23, 42, 0.15);
  }

  .dashboard-v3 .nav-menu {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .dashboard-v3.sidebar-collapsed .control-sidebar {
    transform: translateX(-100%);
  }

  .workspace-stage {
    grid-template-columns: 1fr;
    height: auto;
    max-width: 100%;
    overflow: visible;
  }

  .right-workbench {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
    scroll-snap-type: x mandatory;
  }

  .right-workbench > section {
    flex: 0 0 min(82vw, 320px);
    scroll-snap-align: start;
  }

  .chat-workbench {
    min-height: calc(100vh - 86px);
    max-width: 100%;
    width: 100%;
  }

  .chat-header {
    grid-template-columns: 1fr;
    padding: 12px;
    overflow: hidden;
  }

  .chat-header h1 {
    font-size: 20px;
  }

  .mode-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
  }

  .mode-tabs button {
    min-width: 0;
    padding: 0 4px;
    font-size: 11px;
    white-space: nowrap;
  }

  .dashboard-v3 .chat-empty {
    max-width: calc(100vw - 46px);
    margin-top: 42px;
    padding: 0 8px;
  }

  .dashboard-v3 .chat-empty strong,
  .dashboard-v3 .chat-empty p {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .dashboard-v3 .chat-empty strong {
    font-size: 18px;
    line-height: 1.45;
  }

  .dashboard-v3 .chat-empty p {
    font-size: 13px;
    line-height: 1.7;
  }

  .dashboard-v3 .app-screen {
    height: auto;
    min-height: calc(100vh - 58px);
    overflow: auto;
    padding: 10px;
  }

  .app-topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    grid-template-columns: auto minmax(0, 1fr);
    height: 56px;
  }

  .top-actions {
    display: none;
  }

  .primary-compose {
    position: sticky;
    bottom: 0;
    z-index: 8;
    grid-template-columns: 1fr 68px;
    padding: 10px;
  }

  .primary-compose textarea {
    min-height: 68px;
  }

  .overview-head,
  .library-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .metric-grid,
  .dashboard-actions,
  .context-brief,
  .file-actions,
  .rich-product-form {
    grid-template-columns: 1fr;
  }

  .rich-product-form .span-2 {
    grid-column: auto;
  }

  .file-grid {
    grid-template-columns: 1fr;
  }
}
