:root {
  --bg: #181818;
  --bg-deep: #0f0f0f;
  --rail: #202020;
  --surface: #222222;
  --surface-2: #292929;
  --surface-3: #303030;
  --line: #343434;
  --line-soft: #2a2a2a;
  --text: #f4f4f4;
  --text-soft: #d4d4d4;
  --muted: #8c8c8c;
  --muted-2: #6d6d6d;
  --blue: #2f9bff;
  --danger: #ff5e57;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
  --radius: 10px;
  --rail-width: 300px;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-theme="light"] {
  --bg: #f6f6f5;
  --bg-deep: #ededeb;
  --rail: #ffffff;
  --surface: #ffffff;
  --surface-2: #f1f1ef;
  --surface-3: #e8e8e5;
  --line: #d9d9d4;
  --line-soft: #e7e7e3;
  --text: #171717;
  --text-soft: #343434;
  --muted: #696969;
  --muted-2: #777777;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.12);
}

@media (prefers-color-scheme: light) {
  html[data-theme="auto"] {
    --bg: #f6f6f5;
    --bg-deep: #ededeb;
    --rail: #ffffff;
    --surface: #ffffff;
    --surface-2: #f1f1ef;
    --surface-3: #e8e8e5;
    --line: #d9d9d4;
    --line-soft: #e7e7e3;
    --text: #171717;
    --text-soft: #343434;
    --muted: #696969;
    --muted-2: #777777;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.12);
  }
}

* {
  box-sizing: border-box;
  scrollbar-color: #4a4a4a #1c1c1c;
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #1c1c1c;
}

::-webkit-scrollbar-thumb {
  background: #4a4a4a;
  border: 2px solid #1c1c1c;
  border-radius: 999px;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
}

body.auth-active {
  overflow: auto;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

p,
h1,
h2,
h3 {
  margin: 0;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sv-shell {
  display: grid;
  grid-template-columns: var(--rail-width) minmax(0, 1fr);
  height: 100vh;
  min-height: 100vh;
  background: var(--bg);
}

.sv-shell.sidebar-collapsed {
  --rail-width: 56px;
}

.sv-sidebar {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: 14px 8px;
  background: var(--rail);
  border-right: 1px solid #252525;
}

.sv-sidebar.is-collapsed {
  align-items: center;
  padding-top: 16px;
  gap: 12px;
}

.sidebar-reveal {
  width: 39px;
  height: 39px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  color: var(--text-soft);
  background: #252525;
  border: 1px solid #343434;
  border-radius: 8px;
}

.sidebar-reveal:hover,
.sidebar-reveal:focus-visible {
  color: var(--text);
  background: #2c2c2c;
  outline: none;
}

.sidebar-reveal svg {
  width: 12px;
  height: 12px;
}

.collapsed-brand {
  margin-bottom: 2px;
}

.collapsed-nav,
.collapsed-bottom {
  display: grid;
  gap: 7px;
}

.collapsed-nav button,
.collapsed-bottom button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--text-soft);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
}

.collapsed-nav button:hover,
.collapsed-nav button.is-active,
.collapsed-bottom button:hover {
  color: var(--text);
  background: #2b2b2b;
  border-color: #353535;
}

.collapsed-bottom {
  margin-top: auto;
}

.sidebar-head,
.brand-lockup,
.top-actions,
.head-icons,
.bottom-tools,
.page-actions,
.library-toolbar,
.library-title-row,
.section-head,
.composer-tools,
.prompt-chips,
.legal-topline,
.dialog-actions {
  display: flex;
  align-items: center;
}

.sidebar-head {
  justify-content: space-between;
  gap: 10px;
  padding: 0 8px 16px;
}

.sidebar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 39px;
  margin: 0 4px 12px;
  padding: 0 10px;
  color: var(--muted);
  background: #262626;
  border: 1px solid #363636;
  border-radius: 8px;
}

.sidebar-search input {
  width: 100%;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: none;
  font-size: 0.84rem;
}

.brand-lockup {
  gap: 10px;
  min-width: 0;
}

.brand-lockup strong {
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 700;
}

.brand-lockup small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 0.75rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  color: var(--text);
}

.side-nav,
.side-section,
.settings-group,
.log-list,
.scheduled-prompts,
.legal-sections,
.stack-form,
.settings-form,
.settings-lines,
.plugin-section {
  display: grid;
}

.side-nav {
  flex: 0 0 auto;
  gap: 3px;
}

.side-section {
  flex: 0 0 auto;
  gap: 8px;
  margin-top: 24px;
  padding: 0 4px;
}

.task-side-list {
  flex: 1 1 auto;
  min-height: 112px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 1px;
}

.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 24px;
  color: var(--muted);
  font-size: 0.83rem;
}

.side-link {
  width: 100%;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 36px;
  padding: 8px 10px;
  color: var(--text);
  background: transparent;
  border: 0;
  border-radius: 8px;
  text-align: left;
}

.side-link:hover,
.side-link:focus-visible,
.side-link.is-active {
  background: #2b2b2b;
  outline: none;
}

.side-link span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-link.small {
  color: var(--text-soft);
  font-size: 0.86rem;
}

.side-link svg {
  color: var(--text-soft);
}

.task-empty {
  padding: 7px 10px;
  color: var(--muted);
  font-size: 0.8rem;
}

.thread-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  align-items: center;
  border-radius: 8px;
}

.thread-row.is-active {
  background: #2b2b2b;
}

.thread-row .side-link {
  background: transparent;
}

.thread-more {
  width: 27px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 7px;
  font-weight: 700;
}

.thread-row:hover .thread-more,
.thread-more:hover {
  background: #353535;
  color: var(--text);
}

.thread-context-menu {
  position: absolute;
  top: calc(100% + 3px);
  right: 0;
  z-index: 30;
  width: 205px;
  display: grid;
  gap: 2px;
  padding: 8px;
  background: #252525;
  border: 1px solid #404040;
  border-radius: 11px;
  box-shadow: var(--shadow);
}

.thread-context-menu button {
  min-height: 35px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 9px;
  color: var(--text-soft);
  background: transparent;
  border: 0;
  border-radius: 7px;
  font-size: 0.84rem;
  text-align: left;
}

.thread-context-menu button:hover {
  background: #303030;
}

.thread-context-menu button svg {
  width: 16px;
  height: 16px;
}

.thread-context-menu button svg:last-child {
  margin-left: auto;
}

.thread-context-menu hr {
  width: 100%;
  margin: 5px 0;
  border: 0;
  border-top: 1px solid #383838;
}

.thread-context-menu .danger-text {
  color: var(--danger);
}

.thread-project-list {
  display: grid;
  margin: 0 4px 5px;
  padding: 4px;
  background: #1d1d1d;
  border-radius: 7px;
}

.thread-project-list button {
  min-height: 30px;
  color: var(--muted);
  font-size: 0.78rem;
}

.project-group {
  display: grid;
  gap: 5px;
}

.project-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  align-items: center;
}

.project-group.selected > .project-row .side-link {
  background: #292929;
}

.project-thread-tree {
  display: grid;
  gap: 2px;
  margin: 0 0 4px 13px;
  padding-left: 8px;
  border-left: 1px solid #393939;
}

.sidebar-bottom {
  flex: 0 0 auto;
  display: grid;
  gap: 12px;
  margin-top: auto;
}

.notify-card {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 13px;
  background: #242424;
  border: 1px solid #3a3a3a;
  border-radius: 10px;
}

.notify-card p {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  color: var(--text);
  font-size: 0.85rem;
  line-height: 1.45;
}

.notify-card div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mini-button,
.button,
.icon-button,
.icon-pill,
.credit-pill,
.avatar-button,
.plus-button,
.ghost-link,
.inline-link,
.side-link,
.prompt-chips button,
.scheduled-prompts button,
.integration-card {
  transition: 140ms ease;
}

.mini-button {
  min-height: 29px;
  color: var(--text);
  background: transparent;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
}

.mini-button.light,
.button.light-action {
  color: #111111;
  background: #f4f4f4;
  border-color: #f4f4f4;
}

.bottom-tools {
  justify-content: space-between;
  gap: 8px;
  padding: 0 8px;
  color: var(--muted);
  font-size: 0.76rem;
}

.icon-button,
.icon-pill {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  color: var(--text-soft);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
}

.icon-button:hover,
.icon-pill:hover,
.credit-pill:hover,
.avatar-button:hover,
.button.outline:hover,
.prompt-chips button:hover,
.scheduled-prompts button:hover,
.plugin-row:hover,
.integration-card:hover {
  background: #2b2b2b;
  border-color: #3b3b3b;
}

.icon-button.subtle {
  width: 26px;
  height: 26px;
  color: var(--muted);
}

.sv-main {
  min-width: 0;
  min-height: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  background: var(--bg);
}

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

.topbar h1 {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 800;
}

.top-actions {
  gap: 8px;
}

.notification-wrap {
  position: relative;
}

.notification-trigger {
  position: relative;
}

.notification-trigger small {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 16px;
  padding: 2px 4px;
  color: #101010;
  background: #f2f2f2;
  border-radius: 999px;
  font-size: 0.62rem;
  line-height: 1;
  font-weight: 800;
}

.notification-panel {
  position: absolute;
  z-index: 45;
  top: calc(100% + 10px);
  right: 0;
  width: min(365px, calc(100vw - 34px));
  display: grid;
  gap: 4px;
  padding: 9px;
  background: #242424;
  border: 1px solid #3a3a3a;
  border-radius: 11px;
  box-shadow: var(--shadow);
}

.notification-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 6px 9px;
}

.notification-panel header button {
  color: var(--muted);
  background: transparent;
  border: 0;
}

.notification-panel article {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 8px;
  border-top: 1px solid #303030;
}

.notification-panel article > span {
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 999px;
  background: #777777;
}

.notification-panel article > span.blue {
  background: var(--blue);
}

.notification-panel article > span.green {
  background: #65c759;
}

.notification-panel article p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.credit-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 5px 11px;
  color: var(--text);
  background: transparent;
  border: 1px solid #3a3a3a;
  border-radius: 999px;
  font-weight: 800;
}

.avatar-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  overflow: hidden;
  color: #121212;
  background: #d8d8d8;
  border: 1px solid #3a3a3a;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.avatar-button img,
.settings-avatar img,
.large-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-stage {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  position: relative;
  padding: 26px 24px 60px;
}

.thread-page-stage {
  overflow: hidden;
  padding: 0 24px 12px;
}

.home-center {
  width: min(840px, calc(100vw - var(--rail-width) - 48px));
  min-height: calc(100vh - 220px);
  display: grid;
  align-content: center;
  gap: 20px;
  margin: 0 auto;
  text-align: center;
}

.plan-pill {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 36px;
  padding: 0 16px;
  color: var(--muted);
  background: #242424;
  border-radius: 999px;
  font-size: 0.84rem;
}

.plan-pill > span:nth-child(2) {
  width: 1px;
  height: 18px;
  background: #383838;
}

.plan-pill button,
.inline-link,
.ghost-link {
  color: var(--blue);
  background: transparent;
  border: 0;
  font-weight: 700;
}

.home-center h2,
.scheduled-empty h2 {
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 4.4vw, 2.75rem);
  font-weight: 500;
  letter-spacing: 0;
}

.task-composer {
  min-height: 184px;
  display: grid;
  gap: 10px;
  padding: 14px;
  text-align: left;
  background: #242424;
  border: 1px solid #343434;
  border-radius: 20px;
}

.studio-controls {
  display: grid;
  grid-template-columns: 142px minmax(170px, 1fr) minmax(160px, 1fr);
  gap: 8px;
}

.studio-controls label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 700;
}

.studio-controls select,
.studio-controls input {
  height: 34px;
  min-height: 34px;
  padding: 0 9px;
  color: var(--text-soft);
  background: #202020;
  border-color: #363636;
  font-size: 0.78rem;
}

.studio-controls input[type="file"] {
  padding: 4px;
}

.studio-controls input[type="file"]::file-selector-button {
  min-height: 24px;
  padding: 0 7px;
  font-size: 0.72rem;
}

.attachment-note {
  color: var(--muted);
  font-size: 0.75rem;
}

.task-composer textarea {
  width: 100%;
  min-height: 56px;
  resize: none;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: none;
}

.task-composer textarea::placeholder,
input::placeholder,
textarea::placeholder {
  color: #686868;
}

.composer-tools {
  gap: 9px;
}

.composer-spacer {
  flex: 1;
}

.round-tool {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  color: var(--text-soft);
  background: #202020;
  border: 1px solid #363636;
  border-radius: 999px;
}

.round-tool.send {
  color: var(--text);
  background: #3a3a3a;
  border: 0;
}

.tool-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 10px;
  color: var(--text);
  background: #202020;
  border: 1px solid #363636;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.tool-badge:hover,
.tool-badge:focus-visible {
  background: #2b2b2b;
  border-color: #454545;
  outline: none;
}

.tool-badge small {
  color: #59a8ff;
}

.prompt-chips {
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.prompt-chips button {
  min-height: 40px;
  padding: 0 16px;
  color: var(--text);
  background: transparent;
  border: 1px solid #343434;
  border-radius: 999px;
  font-weight: 650;
}

.download-card {
  position: absolute;
  left: 50%;
  bottom: 44px;
  transform: translateX(-50%);
  width: min(540px, calc(100% - 48px));
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  background: #242424;
  border-radius: 10px;
}

.download-card p {
  margin-top: 5px;
  color: var(--muted);
}

.mini-preview {
  width: 120px;
  height: 64px;
  display: flex;
  gap: 4px;
  padding: 8px;
  background: #303030;
  border-radius: 6px;
}

.mini-preview span {
  flex: 1;
  border-radius: 3px;
  background: #1a1a1a;
}

.content-wide {
  width: min(1140px, 100%);
  margin: 0 auto;
}

.content-narrow {
  width: min(860px, 100%);
  margin: 0 auto;
}

.page-actions {
  position: absolute;
  top: 14px;
  right: 12px;
  gap: 8px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 13px;
  color: var(--text);
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  font-weight: 760;
}

.button-primary {
  color: #111111;
  background: #f4f4f4;
  border-color: #f4f4f4;
}

.button.outline {
  background: transparent;
}

.button.danger {
  color: var(--danger);
  border-color: rgba(255, 94, 87, 0.35);
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: min(820px, 100%);
  margin: 34px auto;
}

.feature-cards article {
  display: grid;
  gap: 13px;
  min-height: 114px;
  padding: 13px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.search-row,
.search-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  background: #242424;
  border: 1px solid transparent;
  border-radius: 8px;
}

.search-row {
  width: min(720px, 100%);
  min-height: 36px;
  margin: 0 auto 26px;
  padding: 0 12px;
}

.search-row input,
.search-mini input {
  width: 100%;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: none;
}

.plugin-section {
  gap: 13px;
  width: min(720px, 100%);
  margin: 0 auto 26px;
}

.section-head {
  justify-content: space-between;
  gap: 12px;
}

.section-head h2 {
  font-size: 1rem;
}

.section-head p,
.plugin-row p,
.settings-heading p,
.settings-form small,
.settings-lines span,
.device-box p,
.api-callout,
.empty-state p {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.pager {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
}

.pager button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--muted);
  background: #242424;
  border: 1px solid #333333;
  border-radius: 999px;
}

.pager button:first-child svg {
  transform: rotate(180deg);
}

.pager a {
  margin-left: 10px;
  color: var(--text-soft);
  font-weight: 700;
}

.button.outline.is-active {
  color: var(--text);
  border-color: var(--text-soft);
  background: var(--surface-2);
}

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

.plugin-grid.compact {
  width: min(760px, 100%);
}

.plugin-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 12px;
  background: transparent;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
}

.plugin-row strong {
  display: block;
  color: var(--text);
  font-size: 0.9rem;
}

.app-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--text);
  background: #2b2b2b;
  border: 1px solid #383838;
  border-radius: 9px;
  font-weight: 900;
}

.app-gmail {
  color: #4285f4;
}

.app-instagram {
  color: #ff45b4;
}

.app-google_drive {
  color: #35a853;
}

.app-meta_ads {
  color: #168aff;
}

.plus-button {
  width: 30px;
  height: 30px;
  color: var(--text-soft);
  background: transparent;
  border: 1px solid #333333;
  border-radius: 8px;
}

.scheduled-empty {
  width: min(768px, 100%);
  min-height: calc(100vh - 150px);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 20px;
  margin: 0 auto;
  text-align: center;
}

.calendar-ghost {
  position: relative;
  width: 134px;
  height: 118px;
  display: grid;
  place-items: center;
  color: #bdbdbd;
  background: #222222;
  border: 1px solid #303030;
  border-radius: 16px;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.28);
}

.calendar-ghost span {
  width: 68px;
  height: 68px;
  display: block;
  background:
    linear-gradient(#3d3d3d 0 0) 0 0 / 12px 12px,
    linear-gradient(#3d3d3d 0 0) 18px 0 / 12px 12px,
    linear-gradient(#3d3d3d 0 0) 36px 0 / 12px 12px,
    linear-gradient(#3d3d3d 0 0) 54px 0 / 12px 12px,
    linear-gradient(#3d3d3d 0 0) 0 18px / 12px 12px,
    linear-gradient(#d0d0d0 0 0) 36px 36px / 12px 12px;
  background-repeat: no-repeat;
}

.calendar-ghost svg {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 28px;
  height: 28px;
  padding: 6px;
  color: #111111;
  background: #bfbfbf;
  border-radius: 999px;
}

.scheduled-prompts {
  gap: 12px;
  width: min(768px, 100%);
}

.scheduled-prompts button {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 22px;
  gap: 13px;
  align-items: center;
  min-height: 56px;
  padding: 0 16px;
  color: var(--text-soft);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 16px;
  text-align: left;
}

.library-toolbar {
  justify-content: space-between;
  gap: 20px;
  width: min(1000px, 100%);
  margin: 4px auto 32px;
}

.library-toolbar > div {
  display: flex;
  gap: 8px;
}

.search-mini {
  width: 240px;
  min-height: 34px;
  padding: 0 10px;
}

.library-title-row {
  justify-content: space-between;
  width: min(1000px, 100%);
  margin: 0 auto 12px;
}

.library-title-row h2 {
  font-size: 1rem;
}

.library-title-row span {
  color: var(--text-soft);
  font-size: 0.82rem;
}

.file-grid {
  width: min(1000px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 auto;
}

.file-card {
  overflow: hidden;
  min-height: 238px;
  background: #303030;
  border: 1px solid #434343;
  border-radius: 10px;
}

.file-card header {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 12px;
  background: #242424;
}

.file-card header strong {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 0.85rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-card header button {
  color: var(--muted);
  background: transparent;
  border: 0;
}

.file-icon {
  position: relative;
  height: 184px;
  display: grid;
  place-items: center;
  color: #d4d4d4;
}

.file-icon > svg {
  width: 56px;
  height: 56px;
  color: #a8a8b6;
}

.file-icon span {
  position: absolute;
  margin: 38px 0 0 42px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #333333;
  background: #eeeeee;
  border-radius: 8px;
}

.agent-board {
  min-height: calc(100vh - 160px);
  display: grid;
  align-content: center;
  gap: 16px;
}

.agent-output {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 36px;
  background: transparent;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  text-align: center;
}

.agent-output p {
  max-width: 680px;
  color: var(--text-soft);
  line-height: 1.6;
}

.agent-orb {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: var(--text);
  background: #242424;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.result-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}

.result-meta span {
  padding: 5px 9px;
  color: var(--text-soft);
  background: #242424;
  border: 1px solid #343434;
  border-radius: 999px;
  font-size: 0.75rem;
}

.ai-output {
  width: min(680px, 100%);
  max-height: min(42vh, 410px);
  overflow: auto;
  margin: 0;
  padding: 16px;
  color: var(--text-soft);
  background: #202020;
  border: 1px solid #303030;
  border-radius: 10px;
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.62;
  text-align: left;
  white-space: pre-wrap;
}

.agent-output .result-notice {
  max-width: 680px;
  color: var(--muted);
  font-size: 0.8rem;
}

.log-list {
  width: min(560px, 100%);
  gap: 7px;
  margin-top: 8px;
}

.schedules-board {
  display: grid;
  gap: 18px;
  padding-top: 22px;
}

.schedules-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.schedules-heading h2 {
  font-size: 1.55rem;
}

.subtle-copy,
.settings-note {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.automation-list {
  display: grid;
  gap: 10px;
}

.automation-list article {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
}

.automation-list span {
  color: var(--text-soft);
}

.automation-list small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.scheduled-prompts.compact {
  margin-top: 14px;
}

.log-list p {
  padding: 8px 10px;
  background: #222222;
  border: 1px solid #303030;
  border-radius: 8px;
  font-size: 0.84rem;
}

.inline-task {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.inline-task input {
  min-height: 42px;
  padding: 0 12px;
  color: var(--text);
  background: #242424;
  border: 1px solid #343434;
  border-radius: 10px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 42px;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(7px);
}

.modal-backdrop.nested {
  z-index: 45;
}

.settings-window {
  width: min(1440px, calc(100vw - 96px));
  height: min(820px, calc(100vh - 84px));
  display: grid;
  grid-template-columns: 222px minmax(0, 1fr);
  overflow: hidden;
  background: #1c1c1c;
  border: 1px solid #2d2d2d;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.settings-sidebar {
  min-width: 0;
  padding: 24px 8px;
  background: #1b1b1b;
  border-right: 1px solid #2e2e2e;
}

.profile-switch {
  width: 100%;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 9px;
  padding: 6px 10px 20px;
  color: var(--text);
  background: transparent;
  border: 0;
  border-bottom: 1px solid #2c2c2c;
  text-align: left;
}

.profile-switch > span:nth-child(2) {
  min-width: 0;
}

.profile-switch strong,
.profile-switch small {
  display: block;
  min-width: 0;
  max-width: 126px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-avatar,
.large-avatar {
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #121212;
  background: #d0d0d0;
  border-radius: 999px;
  font-weight: 900;
}

.settings-avatar {
  width: 34px;
  height: 34px;
  font-size: 0.74rem;
}

.large-avatar {
  width: 58px;
  height: 58px;
  font-size: 0.9rem;
}

.settings-group {
  gap: 2px;
  margin-top: 18px;
}

.settings-group p {
  padding: 0 14px 7px;
  color: var(--muted);
  font-size: 0.77rem;
}

.settings-group button,
.settings-help {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  width: 100%;
  min-height: 32px;
  padding: 7px 13px;
  color: var(--text-soft);
  background: transparent;
  border: 0;
  border-radius: 8px;
  text-align: left;
}

.settings-group button.is-active,
.settings-group button:hover,
.settings-help:hover {
  color: var(--text);
  background: #2b2b2b;
}

.settings-help {
  grid-template-columns: 20px 1fr 18px;
  margin-top: 20px;
  border-top: 1px solid #2c2c2c;
  border-radius: 0;
}

.settings-content {
  position: relative;
  min-width: 0;
  overflow: auto;
  padding: 36px 64px 60px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--muted);
  background: transparent;
  border: 0;
}

.settings-heading {
  display: grid;
  gap: 5px;
  padding-bottom: 18px;
  border-bottom: 1px solid #2b2b2b;
}

.settings-heading h2 {
  font-size: 1.55rem;
}

.settings-form,
.settings-block {
  gap: 14px;
  width: min(768px, 100%);
  margin-top: 24px;
}

.settings-form label,
.settings-block label,
.stack-form label {
  display: grid;
  gap: 8px;
  color: var(--text-soft);
  font-size: 0.83rem;
  font-weight: 750;
}

input,
textarea,
select {
  min-width: 0;
  color: var(--text);
  background: #272727;
  border: 1px solid transparent;
  border-radius: 8px;
}

input,
select {
  min-height: 36px;
  padding: 0 12px;
}

textarea {
  padding: 12px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #4a4a4a;
  outline: none;
}

input[type="file"] {
  color: var(--muted);
}

input[type="file"]::file-selector-button {
  min-height: 30px;
  margin-right: 8px;
  color: var(--text);
  background: #1f1f1f;
  border: 1px solid #3a3a3a;
  border-radius: 7px;
  font-weight: 750;
}

.account-form {
  grid-template-columns: 62px minmax(0, 280px) auto auto auto;
  align-items: end;
}

.photo-upload input {
  padding: 7px;
}

.two-col {
  grid-template-columns: 1fr 1fr;
}

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

.plan-panel {
  width: min(768px, 100%);
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #2f2f2f;
  border-radius: 10px;
}

.plan-panel > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.plan-panel dl {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 13px 20px;
  margin: 0;
  padding-top: 14px;
  border-top: 1px dashed #333333;
}

.plan-panel dt {
  color: var(--text-soft);
  font-weight: 800;
}

.plan-panel dd {
  margin: 0;
  color: var(--text);
  font-weight: 850;
}

.settings-lines {
  width: min(768px, 100%);
  gap: 16px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #2b2b2b;
}

.settings-lines p {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.approval-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.approval-card {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 8px;
  padding: 14px;
}

.approval-card div {
  display: grid;
  gap: 4px;
  margin-right: auto;
}

.approval-card small {
  color: var(--muted);
}

.tabs {
  display: flex;
  gap: 24px;
  width: min(768px, 100%);
  min-height: 42px;
  margin-top: 18px;
  border-bottom: 1px solid #2b2b2b;
}

.tabs button {
  color: var(--muted);
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  font-weight: 750;
}

.tabs button.is-active {
  color: var(--text);
  border-bottom-color: var(--text);
}

.theme-row {
  display: flex;
  gap: 8px;
}

.theme-card {
  display: grid;
  place-items: center;
  gap: 6px;
  width: 110px;
  height: 64px;
  color: var(--text-soft);
  background: transparent;
  border: 1px solid #383838;
  border-radius: 10px;
  font-weight: 800;
}

.theme-card.is-selected {
  color: var(--text);
  border-color: #ededed;
}

.setting-toggle {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 48px;
}

.setting-toggle small {
  display: block;
  margin-top: 2px;
}

.setting-toggle input {
  appearance: none;
  width: 28px;
  min-height: 16px;
  height: 16px;
  padding: 0;
  background: #666666;
  border-radius: 999px;
}

.setting-toggle input::after {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  margin: 1px;
  background: #f5f5f5;
  border-radius: 999px;
  transition: 140ms ease;
}

.setting-toggle input:checked {
  background: var(--blue);
}

.setting-toggle input:checked::after {
  transform: translateX(12px);
}

.record-title {
  width: min(768px, 100%);
  margin-top: 28px;
  font-size: 0.9rem;
}

.usage-table {
  width: min(768px, 100%);
  margin-top: 12px;
  border-collapse: collapse;
  color: var(--text-soft);
  font-size: 0.82rem;
}

.usage-table th,
.usage-table td {
  padding: 13px 4px;
  border-top: 1px solid #2b2b2b;
  text-align: left;
}

.usage-table th:last-child,
.usage-table td:last-child {
  text-align: right;
}

.import-row {
  width: min(768px, 100%);
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 22px;
  gap: 12px;
  align-items: center;
  min-height: 74px;
  margin-top: 24px;
  padding: 12px 16px;
  color: var(--text);
  background: transparent;
  border: 1px solid #2f2f2f;
  border-radius: 10px;
  text-align: left;
}

.device-box {
  width: min(768px, 100%);
  min-height: 430px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 9px;
  margin-top: 18px;
  padding: 24px;
  border: 1px solid #2f2f2f;
  border-radius: 10px;
  text-align: center;
}

.device-box > svg {
  width: 34px;
  height: 34px;
  color: var(--muted);
}

.device-box.with-files {
  min-height: 290px;
}

.folder-files {
  width: min(560px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 12px;
  text-align: left;
}

.folder-files span {
  min-width: 0;
  overflow: hidden;
  padding: 7px 9px;
  color: var(--text-soft);
  background: #242424;
  border-radius: 6px;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.folder-files small {
  float: right;
  color: var(--muted);
}

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

.runtime-banner {
  width: min(768px, 100%);
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  margin-top: 22px;
  padding: 13px 15px;
  color: var(--muted);
  border: 1px solid #343434;
  border-radius: 10px;
}

.runtime-banner.is-online > svg {
  color: #49b984;
}

.runtime-banner small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.capability-grid {
  width: min(768px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 25px;
}

.capability-grid article {
  display: grid;
  gap: 7px;
  padding: 13px;
  border: 1px solid #303030;
  border-radius: 10px;
}

.capability-grid article span {
  width: max-content;
  padding: 3px 7px;
  color: var(--muted);
  background: #242424;
  border-radius: 999px;
  font-size: 0.72rem;
}

.capability-grid article.is-ready span {
  color: #8be1b7;
  background: rgba(73, 185, 132, 0.12);
}

.capability-grid article p {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.48;
}

.settings-note {
  width: min(768px, 100%);
  margin-top: 20px;
}

.integration-grid {
  width: min(768px, 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.integration-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 22px;
  gap: 14px;
  align-items: center;
  min-height: 90px;
  padding: 14px 16px;
  color: var(--text);
  background: transparent;
  border: 1px solid #2f2f2f;
  border-radius: 10px;
  text-align: left;
}

.integration-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}

.api-callout {
  width: min(768px, 100%);
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  margin-top: 16px;
  padding: 0 16px;
  background: #242424;
  border-radius: 8px;
}

.api-callout span {
  flex: 1;
  color: var(--text-soft);
}

.empty-state {
  width: min(768px, 100%);
  min-height: 420px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.empty-state.small > svg {
  width: 34px;
  height: 34px;
  color: var(--muted);
}

.knowledge-dialog {
  position: relative;
  width: min(680px, calc(100vw - 48px));
  padding: 22px 24px;
  background: #202020;
  border: 1px solid #303030;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.knowledge-dialog h2 {
  margin-bottom: 18px;
}

.knowledge-dialog small {
  justify-self: end;
  color: var(--muted);
}

.dialog-actions {
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.auth-page,
.legal-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg-deep);
}

.auth-card,
.legal-card {
  width: min(520px, 100%);
  display: grid;
  gap: 18px;
  padding: 24px;
  background: #1d1d1d;
  border: 1px solid #303030;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

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

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

.auth-copy h1,
.legal-card h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.auth-copy p,
.legal-card p,
.fine-print {
  color: var(--muted);
  line-height: 1.55;
}

.auth-alert {
  padding: 10px 12px;
  color: #ffb5b0;
  background: rgba(255, 94, 87, 0.12);
  border: 1px solid rgba(255, 94, 87, 0.2);
  border-radius: 8px;
}

.legal-consent {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: #242424;
  border: 1px solid #303030;
  border-radius: 10px;
}

.legal-consent label {
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
}

.legal-sections {
  gap: 16px;
}

.legal-sections article {
  padding-top: 14px;
  border-top: 1px solid #303030;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  max-width: min(360px, calc(100vw - 36px));
  padding: 12px 14px;
  color: #111111;
  background: #f2f2f2;
  border-radius: 10px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  :root {
    --rail-width: 250px;
  }

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

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

  .attachment-field {
    grid-column: 1 / -1;
  }

  .settings-window {
    width: calc(100vw - 32px);
    height: calc(100vh - 32px);
  }
}

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

  .sv-shell {
    grid-template-columns: 1fr;
  }

  .sv-sidebar {
    position: sticky;
    top: 0;
    z-index: 10;
    min-height: 0;
  }

  .side-section,
  .sidebar-bottom {
    display: none;
  }

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

  .side-link {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 4px;
    font-size: 0.72rem;
  }

  .page-stage {
    padding: 18px 14px 40px;
  }

  .home-center,
  .scheduled-empty {
    width: 100%;
  }

  .download-card,
  .page-actions {
    position: static;
    transform: none;
    width: 100%;
    margin-top: 20px;
  }

  .feature-cards,
  .plugin-grid,
  .file-grid,
  .integration-grid,
  .studio-controls,
  .capability-grid,
  .folder-files,
  .account-form,
  .two-col {
    grid-template-columns: 1fr;
  }

  .attachment-field {
    grid-column: auto;
  }

  .settings-window {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .settings-sidebar {
    border-right: 0;
    border-bottom: 1px solid #2e2e2e;
  }

  .settings-content {
    padding: 28px 18px 40px;
  }

  .settings-lines p {
    grid-template-columns: 1fr;
  }
}

/* Agent workspace surfaces */
.agent-workspace {
  width: min(820px, 100%);
  height: calc(100vh - 74px);
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0 auto;
}

.chat-thread {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 24px;
  padding: 22px 8px 24px 0;
  scrollbar-color: #464646 transparent;
  scrollbar-width: thin;
}

.thread-welcome {
  align-self: center;
  display: grid;
  gap: 8px;
  margin: auto 0;
  color: var(--text);
  text-align: center;
}

.thread-welcome h2 {
  font-size: 1.45rem;
}

.thread-welcome p {
  color: var(--muted);
}

.chat-message {
  display: grid;
  gap: 12px;
  line-height: 1.58;
}

.chat-message.user {
  justify-self: end;
  max-width: min(660px, 90%);
  padding: 14px 16px;
  background: #272727;
  border-radius: 14px;
}

.chat-message.assistant header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
}

.chat-message.assistant header small {
  padding: 2px 6px;
  color: var(--muted);
  border: 1px solid #373737;
  border-radius: 5px;
}

.chat-content {
  color: var(--text-soft);
  white-space: normal;
}

.chat-content.is-streaming::after {
  display: inline-block;
  width: 7px;
  height: 16px;
  margin-left: 4px;
  vertical-align: -2px;
  background: #dfdfdf;
  content: "";
  animation: cursor-blink 900ms step-end infinite;
}

@keyframes cursor-blink {
  50% {
    opacity: 0;
  }
}

.tool-activity {
  display: grid;
  gap: 8px;
  width: min(620px, 100%);
}

.tool-event {
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 11px;
  color: var(--muted);
  background: #232323;
  border: 1px solid #292929;
  border-radius: 999px;
  font-size: 0.82rem;
}

.tool-event span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tool-event.done svg:last-child {
  color: #60c657;
}

.tool-event.error {
  color: #efaaa5;
  border-color: rgba(255, 94, 87, 0.28);
}

.workspace-composer {
  position: sticky;
  bottom: 0;
  min-height: 104px;
  flex: 0 0 auto;
  padding: 13px;
  border-radius: 16px;
  box-shadow: 0 -14px 32px rgba(24, 24, 24, 0.85);
}

.native-agents {
  width: min(1120px, 100%);
  display: grid;
  gap: 22px;
  margin: 0 auto;
}

.agents-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
}

.agents-head h2 {
  margin-bottom: 6px;
  font-size: 1.35rem;
}

.agents-head p,
.empty-copy {
  color: var(--muted);
}

.platform-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.platform-pills button {
  min-height: 34px;
  padding: 0 13px;
  color: var(--muted);
  background: transparent;
  border: 1px solid #393939;
  border-radius: 999px;
}

.platform-pills button.selected {
  color: var(--text);
  background: #292929;
  border-color: #555555;
}

.metrics-panel {
  display: grid;
  gap: 15px;
  padding: 18px;
  border: 1px solid #303030;
  border-radius: 8px;
}

.metrics-panel > header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.metrics-panel > header span {
  color: var(--muted);
  font-size: 0.8rem;
}

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

.metric-grid article {
  min-height: 70px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 10px;
  background: #222222;
  border-radius: 7px;
}

.metric-grid small {
  color: var(--muted);
}

.metric-grid strong {
  font-size: 1.08rem;
}

.metric-bars {
  display: grid;
  gap: 8px;
}

.metric-bar {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 60px;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.8rem;
}

.metric-bar div {
  height: 7px;
  overflow: hidden;
  background: #292929;
  border-radius: 999px;
}

.metric-bar i {
  display: block;
  height: 100%;
  background: #eeeeee;
  border-radius: inherit;
}

.metric-bar strong {
  color: var(--text-soft);
  text-align: right;
}

.memory-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  padding: 13px 15px;
  border: 1px solid #303030;
  border-radius: 8px;
}

.memory-status span {
  padding: 6px 9px;
  color: var(--text-soft);
  background: #252525;
  border-radius: 999px;
  font-size: 0.78rem;
}

.memory-status small {
  width: 100%;
  color: var(--muted);
}

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

.pipeline-card {
  min-height: 188px;
  display: grid;
  gap: 9px;
  align-content: start;
  padding: 14px;
  border: 1px solid #303030;
  border-radius: 8px;
}

.pipeline-card small {
  color: var(--muted);
}

.pipeline-card h3 {
  font-size: 0.94rem;
}

.pipeline-card p {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.pipeline-card footer {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
}

.pipeline-card footer span {
  flex: 1;
  color: var(--muted);
  font-size: 0.73rem;
}

.pipeline-card footer button {
  min-height: 30px;
  padding: 0 10px;
  color: #141414;
  background: #ededed;
  border: 0;
  border-radius: 6px;
  font-weight: 700;
}

.home-center .workspace-composer {
  position: relative;
  min-height: 138px;
  box-shadow: none;
}

.workspace-composer textarea {
  min-height: 44px;
}

.workspace-composer .composer-tools {
  position: relative;
  flex-wrap: wrap;
  gap: 7px;
}

.composer-popup-wrap {
  position: relative;
}

.composer-menu {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  z-index: 12;
  width: 275px;
  display: grid;
  gap: 3px;
  padding: 8px;
  background: #242424;
  border: 1px solid #393939;
  border-radius: 11px;
  box-shadow: var(--shadow);
}

.composer-menu button {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  color: var(--text-soft);
  background: transparent;
  border: 0;
  border-radius: 7px;
  text-align: left;
}

.composer-menu button:hover,
.composer-menu button.selected {
  background: #303030;
}

.permission-menu {
  width: 330px;
}

.permission-menu button {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  align-content: center;
}

.permission-menu small {
  color: var(--muted);
  line-height: 1.35;
}

.permission-pill svg:last-child {
  width: 13px;
  height: 13px;
}

.web-pill {
  color: #85c3ff;
}

.mode-select,
.model-select {
  height: 34px;
  max-width: 156px;
  padding: 0 8px;
  color: var(--text-soft);
  background: #202020;
  border: 1px solid #363636;
  border-radius: 999px;
  font-size: 0.79rem;
}

.model-select {
  max-width: 170px;
}

.file-chip {
  width: fit-content;
  max-width: 100%;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 9px;
  min-height: 50px;
  padding: 6px 7px;
  color: var(--text-soft);
  background: #202020;
  border: 1px solid #383838;
  border-radius: 9px;
}

.file-chip > svg,
.file-chip img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  padding: 8px;
  background: #303030;
  border-radius: 6px;
}

.file-chip img {
  padding: 0;
}

.file-chip span {
  display: grid;
  min-width: 0;
}

.file-chip strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
}

.file-chip small {
  color: var(--muted);
}

.file-chip button {
  color: var(--muted);
  background: transparent;
  border: 0;
}

.workflow-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.project-context {
  align-items: center;
  color: var(--text-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 14px 10px;
}

.project-context span {
  border-left: 1px solid var(--line);
  color: var(--muted);
  padding-left: 8px;
}

.workflow-chips button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 9px;
  color: var(--text-soft);
  background: #2a2a2a;
  border: 1px solid #404040;
  border-radius: 999px;
  font-size: 0.76rem;
}

.workflow-chips button svg:first-child {
  color: #71ce65;
}

.workflow-chips button svg:last-child {
  width: 13px;
  height: 13px;
  color: var(--muted);
}

.voice-capture {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 55px;
}

.voice-wave {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 3px;
}

.voice-wave span {
  width: 3px;
  height: 14px;
  background: #d4d4d4;
  border-radius: 3px;
  animation: waveform 600ms ease-in-out infinite alternate;
}

.voice-wave span:nth-child(2),
.voice-wave span:nth-child(4) {
  animation-delay: 160ms;
  height: 26px;
}

.voice-wave span:nth-child(3) {
  animation-delay: 300ms;
  height: 18px;
}

@keyframes waveform {
  to {
    transform: scaleY(0.42);
  }
}

.voice-time {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.round-tool.confirm {
  color: #141414;
  background: #eeeeee;
}

.schedule-surface {
  width: 100%;
}

.schedule-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.schedule-tabs {
  margin-bottom: 18px;
  border-bottom: 1px solid #303030;
}

.calendar-toolbar {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 16px 0;
}

.calendar-toolbar button:first-child svg {
  transform: rotate(180deg);
}

.calendar-toolbar .button {
  margin-left: auto;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays span {
  padding: 10px 14px;
  color: var(--muted);
  text-align: right;
  font-size: 0.78rem;
}

.calendar-grid article {
  min-height: 142px;
  padding: 11px 9px;
  border-top: 1px solid #2d2d2d;
  border-right: 1px solid #2d2d2d;
}

.calendar-grid time {
  display: block;
  color: var(--text-soft);
  text-align: right;
  font-size: 0.8rem;
}

.calendar-event {
  width: 100%;
  display: grid;
  gap: 5px;
  margin-top: 12px;
  padding: 10px 8px;
  color: var(--text-soft);
  background: transparent;
  border: 1px solid #383838;
  border-radius: 7px;
  text-align: left;
}

.calendar-event strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.76rem;
}

.calendar-event small {
  color: var(--muted);
}

.automation-cards {
  width: min(460px, 100%);
  display: grid;
  gap: 14px;
  margin: 24px auto;
}

.automation-card {
  position: relative;
  display: grid;
  gap: 13px;
  padding: 15px;
  color: var(--text-soft);
  border: 1px solid #3b3b3b;
  border-radius: 10px;
}

.automation-card header,
.automation-card footer {
  display: flex;
  align-items: center;
  gap: 8px;
}

.automation-card header strong {
  flex: 1;
}

.automation-card p,
.automation-card small {
  color: var(--muted);
  line-height: 1.5;
}

.automation-card footer button {
  margin-left: auto;
  color: var(--text-soft);
  background: #2b2b2b;
  border: 0;
  border-radius: 7px;
  padding: 7px 10px;
}

.mini-switch {
  position: relative;
  width: 34px;
  height: 20px;
}

.mini-switch input {
  opacity: 0;
}

.mini-switch span {
  position: absolute;
  inset: 0;
  background: #454545;
  border-radius: 999px;
}

.mini-switch span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  background: #ffffff;
  border-radius: 50%;
  content: "";
}

.mini-switch input:checked + span {
  background: var(--blue);
}

.mini-switch input:checked + span::after {
  left: 17px;
}

.item-menu {
  position: absolute;
  top: calc(100% - 16px);
  right: 12px;
  z-index: 5;
  min-width: 170px;
  display: grid;
  padding: 7px;
  background: #252525;
  border: 1px solid #404040;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.item-menu button {
  min-height: 37px;
  padding: 0 9px;
  color: var(--text);
  background: transparent;
  border: 0;
  border-radius: 6px;
  text-align: left;
}

.item-menu button:hover {
  background: #303030;
}

.item-menu .danger-text {
  color: var(--danger);
}

.schedule-empty {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin: 80px auto;
  color: var(--muted);
}

.project-dialog,
.schedule-dialog {
  position: relative;
  width: min(560px, calc(100vw - 34px));
  padding: 25px;
  color: var(--text);
  background: #1d1d1d;
  border: 1px solid #303030;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.schedule-dialog {
  width: min(680px, calc(100vw - 34px));
  max-height: calc(100vh - 44px);
  overflow: auto;
}

.project-dialog h2,
.schedule-dialog h2 {
  margin-bottom: 20px;
}

.folder-hero {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
  background: #292929;
  border-radius: 14px;
}

.folder-hero svg {
  width: 31px;
  height: 31px;
}

.schedule-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.advanced-schedule {
  display: grid;
  gap: 12px;
  padding: 15px;
  border: 1px solid #303030;
  border-radius: 10px;
}

.advanced-schedule summary {
  cursor: pointer;
  font-weight: 700;
}

.advanced-schedule[open] summary {
  margin-bottom: 12px;
}

@media (max-width: 760px) {
  .agent-workspace {
    height: calc(100vh - 144px);
  }

  .thread-page-stage {
    padding: 0 12px 10px;
  }

  .agents-head,
  .metrics-panel > header {
    align-items: start;
    flex-direction: column;
  }

  .metric-grid,
  .pipeline-grid {
    grid-template-columns: 1fr;
  }

  .metric-bar {
    grid-template-columns: 104px minmax(0, 1fr) 46px;
  }

  .model-select,
  .mode-select {
    max-width: 122px;
  }

  .permission-menu {
    width: min(310px, calc(100vw - 28px));
    left: -45px;
  }

  .calendar-grid article {
    min-height: 94px;
    padding: 6px 4px;
  }

  .calendar-event {
    padding: 6px 4px;
  }

  .schedule-fields {
    grid-template-columns: 1fr;
  }
}

/* Public ShamVerse brand site */
body.landing-active {
  overflow-x: hidden;
  background: #05060a;
}

.sv-landing {
  --landing-bg: #05060a;
  --landing-surface: #0d101a;
  --landing-surface-raised: #121624;
  --landing-line: rgba(165, 180, 218, 0.17);
  --landing-line-bright: rgba(151, 151, 255, 0.42);
  --landing-copy: #f6f7fc;
  --landing-muted: #9aa4bf;
  --landing-muted-strong: #b6bfd3;
  --landing-indigo: #626dff;
  --landing-violet: #906cff;
  --landing-blue: #b8ddff;
  min-height: 100vh;
  overflow-x: clip;
  color: var(--landing-copy);
  background: var(--landing-bg);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

.sv-landing a {
  color: inherit;
  text-decoration: none;
}

.landing-container {
  width: min(1240px, calc(100% - 64px));
  margin: 0 auto;
}

.landing-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(5, 6, 10, 0.72);
  border-bottom: 1px solid rgba(130, 142, 175, 0.08);
  backdrop-filter: blur(22px);
}

.landing-nav {
  width: min(1400px, calc(100% - 64px));
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: clamp(30px, 5vw, 74px);
  margin: 0 auto;
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-size: 1.17rem;
  letter-spacing: 0;
}

.landing-brand span {
  width: 33px;
  height: 33px;
  display: inline-grid;
  place-items: center;
  color: #fafaff;
  background: linear-gradient(145deg, #485bfb, #9768ff);
  border-radius: 10px;
  box-shadow: 0 9px 30px rgba(97, 98, 255, 0.35);
}

.landing-brand svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.55;
}

.landing-brand strong {
  font-weight: 670;
}

.landing-links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.35vw, 38px);
  color: var(--landing-muted-strong);
  font-size: 0.9rem;
}

.landing-links a {
  transition: color 170ms ease;
}

.landing-links a:hover,
.landing-footer a:hover,
.landing-footer button:hover {
  color: var(--landing-copy);
}

.landing-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.landing-signin,
.landing-primary,
.landing-secondary {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 21px;
  color: var(--landing-copy);
  background: transparent;
  border: 1px solid var(--landing-line);
  border-radius: 999px;
  font-size: 0.91rem;
  font-weight: 620;
  letter-spacing: 0;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.landing-signin {
  min-height: 42px;
  padding: 0 17px;
  color: var(--landing-muted-strong);
}

.landing-primary {
  background: linear-gradient(118deg, #5865fd 0%, #8170ff 54%, #966fff 100%);
  border-color: transparent;
  box-shadow: 0 15px 42px rgba(83, 93, 246, 0.27);
}

.landing-primary.compact {
  min-height: 43px;
  padding: 0 18px;
}

.landing-primary svg {
  width: 15px;
  height: 15px;
}

.landing-secondary {
  color: var(--landing-muted-strong);
}

.landing-primary:hover {
  box-shadow: 0 18px 54px rgba(101, 100, 255, 0.44);
  transform: translateY(-1px);
}

.landing-secondary:hover,
.landing-signin:hover {
  color: var(--landing-copy);
  background: rgba(108, 118, 166, 0.09);
  border-color: rgba(180, 190, 225, 0.3);
}

.landing-hero {
  min-height: 850px;
  display: grid;
  grid-template-columns: minmax(360px, 0.82fr) minmax(550px, 1.18fr);
  align-items: start;
  gap: clamp(36px, 5vw, 86px);
  padding: clamp(98px, 10vh, 110px) 0 92px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-top: 68px;
}

.hero-copy h1 {
  max-width: 590px;
  color: var(--landing-copy);
  font-size: clamp(3.75rem, 5.1vw, 4.8rem);
  font-weight: 560;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy h1 span {
  color: #c7ccff;
}

.hero-copy p {
  max-width: 470px;
  margin-top: 29px;
  color: var(--landing-muted-strong);
  font-size: clamp(1rem, 1.18vw, 1.08rem);
  font-weight: 420;
  letter-spacing: 0;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 13px;
  margin-top: 39px;
}

.hero-product {
  position: relative;
  min-height: 600px;
  display: grid;
  align-items: center;
  padding-top: 24px;
}

.aurora-scene {
  position: absolute;
  inset: -100px -155px -96px -64px;
  background-image: url("assets/shamverse-spectral-horizon.jpg");
  background-repeat: no-repeat;
  background-position: 70% 67%;
  background-size: cover;
  opacity: 0.88;
  mix-blend-mode: screen;
}

.aurora-scene::after {
  position: absolute;
  inset: -1px;
  content: "";
  background:
    linear-gradient(90deg, #000000 0%, rgba(0, 0, 0, 0.95) 13%, transparent 35%, transparent 82%, rgba(0, 0, 0, 0.8) 100%),
    linear-gradient(180deg, #000000 0%, transparent 23%, transparent 76%, #000000 100%);
}

.workflow-panel {
  position: relative;
  z-index: 1;
  width: min(650px, 100%);
  min-height: 510px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-left: auto;
  padding: 26px;
  background: linear-gradient(145deg, rgba(17, 20, 31, 0.91), rgba(7, 9, 15, 0.94));
  border: 1px solid rgba(160, 176, 224, 0.19);
  border-radius: 28px;
  box-shadow: 0 38px 100px rgba(0, 0, 0, 0.48), 0 0 80px rgba(72, 88, 246, 0.11);
  backdrop-filter: blur(20px);
}

.workflow-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.workflow-title > div {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 5px 8px;
}

.live-dot {
  width: 7px;
  height: 7px;
  background: #8170ff;
  border-radius: 50%;
  box-shadow: 0 0 14px #8170ff;
}

.workflow-title small {
  color: #747f9d;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.workflow-title strong {
  grid-column: 1 / -1;
  margin-top: 6px;
  font-size: 1.12rem;
  font-weight: 560;
  letter-spacing: 0;
}

.collaboration {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 11px;
  color: #abb4cd;
  white-space: nowrap;
  background: rgba(105, 118, 167, 0.1);
  border: 1px solid rgba(137, 151, 197, 0.13);
  border-radius: 999px;
  font-size: 0.72rem;
}

.collaboration svg {
  width: 14px;
  height: 14px;
}

.workflow-tabs {
  display: flex;
  gap: 7px;
  padding: 4px;
  border-bottom: 1px solid rgba(148, 163, 207, 0.13);
}

.workflow-tabs button {
  min-height: 34px;
  padding: 0 13px;
  color: #8d96ae;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.77rem;
  font-weight: 570;
}

.workflow-tabs button.selected {
  color: #f5f5ff;
  background: rgba(99, 105, 255, 0.17);
  border-color: rgba(135, 140, 255, 0.25);
}

.landing-composer {
  min-height: 102px;
  display: flex;
  align-items: flex-end;
  gap: 18px;
  padding: 17px 16px 15px 19px;
  background: rgba(13, 16, 28, 0.85);
  border: 1px solid rgba(157, 171, 215, 0.16);
  border-radius: 18px;
}

.landing-composer p {
  flex: 1;
  align-self: flex-start;
  color: #d9deed;
  font-size: 0.88rem;
  line-height: 1.58;
  letter-spacing: 0;
}

.landing-composer button {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #646dff;
  border: 0;
  border-radius: 999px;
}

.landing-composer svg {
  width: 15px;
  height: 15px;
}

.agent-lane {
  position: relative;
  display: grid;
  gap: 7px;
  padding-left: 12px;
}

.agent-lane::before {
  position: absolute;
  top: 23px;
  bottom: 23px;
  left: 25px;
  width: 1px;
  content: "";
  background: linear-gradient(#6e76ff, rgba(122, 130, 255, 0.1));
}

.landing-agent-row {
  position: relative;
  z-index: 1;
  min-height: 47px;
  display: grid;
  grid-template-columns: 27px 105px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 0 12px 0 0;
  color: #dce1f2;
  background: rgba(8, 10, 17, 0.4);
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 0.78rem;
}

.landing-agent-row.active {
  background: rgba(86, 94, 227, 0.1);
  border-color: rgba(118, 126, 253, 0.3);
}

.agent-node {
  justify-self: center;
  width: 13px;
  height: 13px;
  background: #111523;
  border: 1px solid rgba(155, 168, 209, 0.42);
  border-radius: 50%;
}

.landing-agent-row.complete .agent-node {
  background: #747dff;
  border-color: #8c93ff;
}

.landing-agent-row.active .agent-node {
  background: #9a75ff;
  border-color: #beafff;
  box-shadow: 0 0 17px rgba(148, 112, 255, 0.7);
}

.landing-agent-row small {
  min-width: 0;
  overflow: hidden;
  color: #96a0ba;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-state {
  padding: 5px 9px;
  color: #8d98b1;
  background: rgba(133, 147, 188, 0.07);
  border-radius: 999px;
  font-size: 0.69rem;
}

.landing-agent-row.active .agent-state {
  color: #d9d0ff;
  background: rgba(125, 97, 255, 0.18);
}

.proof-band {
  border-top: 1px solid rgba(138, 154, 200, 0.1);
  border-bottom: 1px solid rgba(138, 154, 200, 0.1);
}

.proof-band .landing-container {
  min-height: 121px;
  display: grid;
  grid-template-columns: 275px 1fr;
  align-items: center;
  gap: 48px;
}

.proof-band p {
  color: #818ba4;
  font-size: 0.82rem;
}

.channel-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #bcc5d9;
  font-size: 1.02rem;
  font-weight: 550;
  letter-spacing: 0;
}

.channel-list span + span {
  position: relative;
}

.channel-list span + span::before {
  position: absolute;
  top: 50%;
  left: clamp(-44px, -3.2vw, -26px);
  width: 4px;
  height: 4px;
  content: "";
  background: #4c5369;
  border-radius: 50%;
}

.landing-workflow,
.creator-section,
.pricing-section {
  padding-top: clamp(96px, 11vw, 138px);
}

.section-intro {
  max-width: 630px;
  display: grid;
  gap: 18px;
  margin-bottom: 62px;
}

.section-intro h2,
.landing-cta h2 {
  color: var(--landing-copy);
  font-size: clamp(2.45rem, 3.7vw, 3.45rem);
  font-weight: 540;
  line-height: 1.08;
  letter-spacing: 0;
}

.section-intro p {
  max-width: 480px;
  color: var(--landing-muted);
  font-size: 1rem;
  line-height: 1.67;
}

.stage-layout {
  display: grid;
  grid-template-columns: minmax(620px, 1fr) 310px;
  gap: 24px;
  align-items: stretch;
}

.stage-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 26px 9px;
  border-top: 1px solid var(--landing-line);
  border-bottom: 1px solid var(--landing-line);
}

.stage-rail article {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 245px;
  padding: 0 17px;
}

.stage-rail article:not(:last-child)::after {
  position: absolute;
  top: 16px;
  right: -1px;
  bottom: 15px;
  width: 1px;
  content: "";
  background: var(--landing-line);
}

.stage-rail article > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #8c95ab;
  background: #0c0f17;
  border: 1px solid var(--landing-line);
  border-radius: 50%;
  font-size: 0.75rem;
}

.stage-rail article.active > span {
  color: #fff;
  background: #645dff;
  border-color: #645dff;
  box-shadow: 0 0 27px rgba(100, 93, 255, 0.5);
}

.stage-rail small {
  color: #8c95b0;
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.stage-rail h3 {
  font-size: 1.02rem;
  font-weight: 550;
  letter-spacing: 0;
}

.stage-rail p {
  color: #909ab4;
  font-size: 0.81rem;
  line-height: 1.65;
}

.publish-card {
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 295px;
  padding: 27px 25px 24px;
  background: linear-gradient(150deg, rgba(42, 39, 91, 0.5), rgba(13, 16, 27, 0.8));
  border: 1px solid rgba(134, 128, 255, 0.31);
  border-radius: 24px;
}

.publish-card > small {
  color: #a999ff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.publish-card h3 {
  font-size: 1.18rem;
  font-weight: 560;
  letter-spacing: 0;
}

.publish-card p {
  color: #9da7bf;
  font-size: 0.83rem;
  line-height: 1.55;
}

.publish-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.publish-card div span {
  padding: 7px 9px;
  color: #c9cfe0;
  border: 1px solid rgba(147, 158, 197, 0.17);
  border-radius: 999px;
  font-size: 0.69rem;
}

.publish-card .landing-primary {
  min-height: 43px;
  margin-top: auto;
  padding: 0 14px;
  font-size: 0.82rem;
}

.section-intro.split {
  max-width: none;
  grid-template-columns: 1fr 380px;
  align-items: end;
}

.creator-uses {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.creator-uses article {
  min-height: 296px;
  display: grid;
  align-content: start;
  gap: 19px;
  padding: 32px 30px;
  background: linear-gradient(145deg, rgba(13, 16, 25, 0.75), rgba(8, 10, 16, 0.75));
  border: 1px solid var(--landing-line);
  border-radius: 25px;
  transition: border-color 180ms ease, transform 180ms ease;
}

.creator-uses article:hover {
  border-color: rgba(132, 133, 255, 0.34);
  transform: translateY(-2px);
}

.creator-uses article > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #b4baff;
  background: rgba(91, 99, 254, 0.12);
  border-radius: 13px;
}

.creator-uses article > span svg {
  width: 22px;
  height: 22px;
}

.creator-uses h3 {
  margin-top: 20px;
  font-size: 1.38rem;
  font-weight: 540;
  letter-spacing: 0;
}

.creator-uses p {
  color: var(--landing-muted);
  line-height: 1.55;
}

.creator-uses a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  color: #c5caff;
  font-size: 0.83rem;
}

.creator-uses a svg {
  width: 13px;
  height: 13px;
}

.pricing-section {
  padding-bottom: clamp(104px, 12vw, 146px);
}

.section-intro.centered {
  justify-items: center;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.landing-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: min(1020px, 100%);
  margin: 0 auto;
}

.landing-plans article {
  position: relative;
  min-height: 334px;
  display: grid;
  align-content: start;
  gap: 13px;
  padding: 30px 28px 26px;
  border: 1px solid var(--landing-line);
  border-radius: 23px;
}

.landing-plans article.featured {
  background: rgba(94, 92, 243, 0.075);
  border-color: rgba(130, 127, 255, 0.5);
  box-shadow: inset 0 1px 0 rgba(177, 174, 255, 0.2);
}

.plan-note {
  position: absolute;
  top: 27px;
  right: 24px;
  padding: 5px 9px;
  color: #cfc8ff;
  background: rgba(116, 102, 255, 0.15);
  border-radius: 999px;
  font-size: 0.67rem;
}

.landing-plans h3 {
  font-size: 1.35rem;
  font-weight: 560;
  letter-spacing: 0;
}

.plan-copy {
  max-width: 245px;
  color: var(--landing-muted);
  font-size: 0.86rem;
  line-height: 1.58;
}

.landing-plans strong {
  display: block;
  margin-top: auto;
  margin-bottom: 18px;
  font-size: 2.2rem;
  font-weight: 540;
  letter-spacing: 0;
}

.landing-plans strong small {
  color: var(--landing-muted-strong);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0;
}

.landing-primary.full,
.landing-secondary.full {
  width: 100%;
  min-height: 45px;
  padding: 0 15px;
  font-size: 0.84rem;
}

.landing-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(112px, 14vw, 168px) 0 clamp(116px, 14vw, 170px);
  border-top: 1px solid rgba(152, 162, 201, 0.09);
  text-align: center;
}

.cta-light {
  position: absolute;
  inset: -40px 0 -20px;
  background-image: url("assets/shamverse-spectral-horizon.jpg");
  background-position: 50% 52%;
  background-size: cover;
  opacity: 0.66;
  mask-image: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, 0.94) 23%, #000 58%, transparent 100%);
}

.landing-cta .landing-container {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 24px;
}

.landing-cta p {
  max-width: 480px;
  color: #b7bfd4;
  line-height: 1.7;
}

.landing-footer {
  color: var(--landing-muted);
  background: #07080c;
  border-top: 1px solid rgba(155, 169, 208, 0.12);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr repeat(3, 1fr);
  gap: 46px;
  padding: 66px 0 55px;
}

.footer-brand p {
  max-width: 250px;
  margin-top: 18px;
  font-size: 0.86rem;
  line-height: 1.6;
}

.footer-grid > div:not(.footer-brand) {
  display: grid;
  align-content: start;
  gap: 16px;
}

.footer-grid h3 {
  color: #73809d;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.footer-grid a,
.footer-grid button {
  width: fit-content;
  padding: 0;
  color: #b7bfd3;
  background: transparent;
  border: 0;
  font-size: 0.87rem;
}

.footer-base {
  min-height: 68px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(155, 169, 208, 0.1);
  font-size: 0.78rem;
}

.auth-back {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.auth-back svg {
  width: 13px;
  height: 13px;
  transform: rotate(180deg);
}

@media (max-width: 1120px) {
  .landing-links {
    display: none;
  }

  .landing-hero {
    grid-template-columns: 1fr;
    padding-top: 70px;
  }

  .hero-copy {
    padding-top: 0;
    text-align: center;
  }

  .hero-copy h1,
  .hero-copy p {
    margin-right: auto;
    margin-left: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-product {
    min-height: 545px;
    padding-top: 0;
  }

  .workflow-panel {
    margin: 0 auto;
  }

  .proof-band .landing-container {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 24px;
    padding: 28px 0;
  }

  .channel-list {
    width: 100%;
  }

  .stage-layout {
    grid-template-columns: 1fr;
  }

  .publish-card {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .landing-container,
  .landing-nav {
    width: min(100% - 32px, 540px);
  }

  .landing-nav {
    min-height: 68px;
    gap: 12px;
  }

  .landing-brand strong {
    font-size: 1.04rem;
  }

  .landing-brand span {
    width: 30px;
    height: 30px;
  }

  .landing-signin {
    display: none;
  }

  .landing-primary.compact {
    min-height: 40px;
    padding: 0 13px;
    font-size: 0.78rem;
  }

  .landing-hero {
    min-height: 0;
    gap: 56px;
    padding: 70px 0 66px;
  }

  .hero-copy h1 {
    font-size: clamp(2.24rem, 11.5vw, 2.65rem);
    line-height: 1.04;
  }

  .hero-copy h1 br {
    display: none;
  }

  .hero-copy p {
    margin-top: 24px;
    font-size: 0.95rem;
  }

  .hero-buttons {
    flex-direction: column;
    margin-top: 31px;
  }

  .hero-product {
    min-height: 0;
  }

  .aurora-scene {
    inset: -45px -30px -55px;
  }

  .workflow-panel {
    min-height: 0;
    gap: 17px;
    padding: 18px;
    border-radius: 22px;
  }

  .workflow-title {
    display: grid;
  }

  .collaboration {
    justify-self: start;
  }

  .workflow-tabs {
    overflow-x: auto;
  }

  .landing-composer {
    min-height: 95px;
  }

  .landing-agent-row {
    grid-template-columns: 25px minmax(82px, 1fr) auto;
    gap: 8px;
  }

  .landing-agent-row small {
    display: none;
  }

  .agent-state {
    grid-column: 3;
    grid-row: 1;
  }

  .proof-band .landing-container {
    justify-items: start;
  }

  .channel-list {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 18px 28px;
  }

  .channel-list span + span::before {
    display: none;
  }

  .landing-workflow,
  .creator-section,
  .pricing-section {
    padding-top: 76px;
  }

  .section-intro {
    gap: 14px;
    margin-bottom: 36px;
  }

  .section-intro h2,
  .landing-cta h2 {
    font-size: clamp(2.12rem, 11vw, 2.5rem);
  }

  .stage-rail,
  .creator-uses,
  .landing-plans,
  .section-intro.split {
    grid-template-columns: 1fr;
  }

  .stage-rail {
    gap: 0;
    padding: 6px 0;
  }

  .stage-rail article {
    min-height: 0;
    padding: 20px 14px;
  }

  .stage-rail article:not(:last-child)::after {
    top: auto;
    right: 14px;
    bottom: 0;
    left: 14px;
    width: auto;
    height: 1px;
  }

  .creator-uses article,
  .landing-plans article {
    min-height: 0;
  }

  .landing-plans strong {
    margin-top: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 38px 20px;
    padding: 48px 0 42px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-base {
    flex-direction: column;
    justify-content: center;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sv-landing *,
  .sv-landing *::before,
  .sv-landing *::after {
    scroll-behavior: auto;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }
}

/* Knowledge graph, model routing, and creator control surfaces */
.usage-mini {
  position: relative;
  display: grid;
  gap: 9px;
  padding: 13px;
  color: var(--text-soft);
  background: #242424;
  border: 1px solid #3a3a3a;
  border-radius: 10px;
}

.usage-mini p {
  color: var(--muted);
  font-size: 0.79rem;
}

.usage-mini div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.usage-close {
  position: absolute;
  top: 6px;
  right: 6px;
  color: var(--muted);
  background: transparent;
  border: 0;
}

.usage-close svg {
  width: 14px;
  height: 14px;
}

.oauth-divider {
  position: relative;
  margin: 18px 0 13px;
  color: var(--muted);
  font-size: 0.76rem;
  text-align: center;
}

.oauth-divider::before {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #303030;
  content: "";
}

.oauth-divider span {
  position: relative;
  padding: 0 12px;
  background: #1c1c1c;
}

.oauth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.token-economy {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid #303030;
  border-radius: 8px;
}

.token-economy header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.token-economy header p,
.token-economy > small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.8rem;
}

.economy-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.economy-summary strong {
  display: grid;
  gap: 5px;
  padding: 12px;
  background: #222222;
  border-radius: 7px;
  font-size: 1.15rem;
}

.economy-summary small,
.rate-grid p {
  color: var(--muted);
  font-size: 0.76rem;
}

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

.rate-grid article {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid #303030;
  border-radius: 7px;
}

.rate-grid span {
  width: fit-content;
  padding: 2px 6px;
  color: #98cbff;
  background: #232b34;
  border-radius: 999px;
  font-size: 0.7rem;
}

.graph-page {
  display: grid;
  gap: 18px;
}

.graph-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
}

.graph-head p {
  max-width: 700px;
  margin-top: 7px;
  color: var(--muted);
}

.graph-head div:last-child {
  display: flex;
  gap: 8px;
}

.graph-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.graph-toolbar button {
  min-height: 32px;
  padding: 0 12px;
  color: var(--muted);
  background: transparent;
  border: 1px solid #343434;
  border-radius: 999px;
}

.graph-toolbar button.selected {
  color: var(--text);
  background: #2b2b2b;
}

.graph-toolbar span {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.78rem;
}

.graph-layout {
  display: grid;
  grid-template-columns: minmax(520px, 1fr) 294px;
  gap: 14px;
}

.graph-canvas-card,
.graph-inspector {
  border: 1px solid #303030;
  border-radius: 8px;
  background: #1d1d1d;
}

.graph-canvas {
  width: 100%;
  height: min(58vh, 530px);
  min-height: 450px;
  background-image: radial-gradient(#303030 1px, transparent 1px);
  background-size: 22px 22px;
  border-radius: 8px;
  touch-action: none;
}

.graph-edge line {
  stroke: #525252;
  stroke-width: 1.4;
}

.graph-edge text {
  fill: #858585;
  font-size: 10px;
  paint-order: stroke;
  stroke: #1d1d1d;
  stroke-width: 5px;
  stroke-linejoin: round;
  text-anchor: middle;
}

.graph-node {
  cursor: grab;
}

.graph-node:active {
  cursor: grabbing;
}

.graph-node circle {
  stroke: #171717;
  stroke-width: 5px;
  opacity: 0.95;
}

.graph-node.selected circle {
  stroke: #ffffff;
  stroke-width: 2.5px;
}

.graph-node text {
  fill: #e9e9e9;
  font-size: 12px;
  text-anchor: middle;
  pointer-events: none;
}

.graph-node .node-category {
  fill: #8d8d8d;
  font-size: 10px;
}

.graph-help {
  padding: 0 16px 14px;
  color: var(--muted);
  font-size: 0.8rem;
}

.graph-inspector {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 17px;
}

.graph-inspector header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.graph-inspector header > span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.graph-inspector header p,
.graph-inspector > p,
.relation-list p {
  color: var(--muted);
  line-height: 1.48;
}

.graph-inspector dl {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 7px;
  margin: 0;
  font-size: 0.79rem;
}

.graph-inspector dt {
  color: var(--muted);
}

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

.relation-list button {
  display: grid;
  gap: 3px;
  padding: 9px;
  color: var(--text-soft);
  background: #242424;
  border: 1px solid #303030;
  border-radius: 7px;
  text-align: left;
}

.relation-list span {
  color: var(--muted);
  font-size: 0.76rem;
}

.thread-split {
  height: 100%;
  min-height: 0;
}

.thread-split.with-preview {
  display: grid;
  grid-template-columns: minmax(430px, 1fr) minmax(380px, 47%);
  gap: 16px;
}

.thread-split.with-preview .agent-workspace {
  width: 100%;
}

.thread-split.preview-centered::before {
  position: fixed;
  inset: 0;
  z-index: 21;
  content: "";
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(3px);
}

.computer-preview {
  height: calc(100vh - 74px);
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  overflow: hidden;
  background: #1d1d1d;
  border: 1px solid #353535;
  border-radius: 14px;
}

.preview-centered .computer-preview {
  position: fixed;
  z-index: 22;
  left: 50%;
  top: 50%;
  width: min(900px, calc(100vw - 80px));
  height: min(680px, calc(100vh - 80px));
  transform: translate(-50%, -50%);
  box-shadow: var(--shadow);
}

.computer-preview > header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 14px;
  border-bottom: 1px solid #303030;
}

.computer-preview header div {
  flex: 1;
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 3px 8px;
}

.computer-preview header svg {
  grid-row: span 2;
}

.computer-preview header small {
  color: var(--muted);
}

.computer-preview header button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--muted);
  background: transparent;
  border: 0;
}

.terminal-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  color: var(--muted);
  background: #202020;
  font-size: 0.77rem;
}

.terminal-status span {
  width: 8px;
  height: 8px;
  background: #6dd5b5;
  border-radius: 50%;
}

.computer-files,
.file-preview {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 8px;
  overflow: auto;
  padding: 14px;
}

.computer-files h3 {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.device-create {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  margin-bottom: 6px;
}

.device-create input {
  min-width: 0;
  padding: 0 10px;
  color: var(--text);
  background: #242424;
  border: 1px solid #303030;
  border-radius: 7px;
}

.computer-files button {
  display: flex;
  gap: 9px;
  align-items: center;
  min-height: 37px;
  padding: 7px 9px;
  color: var(--text-soft);
  background: #242424;
  border: 1px solid #303030;
  border-radius: 7px;
  text-align: left;
}

.computer-files small {
  margin-left: auto;
  color: var(--muted);
}

.device-approvals {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid #303030;
}

.device-approvals > header {
  display: grid;
  gap: 4px;
  padding: 0 0 5px;
  border: 0;
}

.device-approvals > header small,
.device-approvals p {
  color: var(--muted);
  font-size: 0.77rem;
}

.device-approval {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 7px;
  padding: 8px;
  background: #242424;
  border: 1px solid #303030;
  border-radius: 7px;
}

.device-approval div,
.file-preview .device-approval div {
  display: grid;
  justify-content: start;
  min-width: 0;
}

.device-approval strong {
  font-size: 0.78rem;
}

.device-approval small {
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.computer-files .device-approval button {
  min-height: 31px;
  padding: 5px 9px;
}

.computer-files .remove-folder {
  justify-content: center;
  color: #f47d7d;
  background: transparent;
  border-color: #523131;
}

.approval-status {
  padding: 5px 8px;
  color: #96ddb7;
  font-size: 0.75rem;
  text-transform: capitalize;
}

.device-approval.rejected .approval-status {
  color: #f47d7d;
}

.file-preview textarea {
  height: 100%;
  min-height: 380px;
  font-family: Consolas, monospace;
  font-size: 0.78rem;
}

.file-preview div,
.computer-preview footer {
  display: flex;
  gap: 8px;
  justify-content: end;
}

.computer-path {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.computer-path h3 {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.danger-outline {
  color: #f47d7d;
  background: transparent;
  border: 1px solid #523131;
}

.round-tool.send.stop {
  color: #151515;
  background: #f0f0f0;
}

.computer-preview footer {
  padding: 12px 14px;
  border-top: 1px solid #303030;
}

.chat-content p {
  margin: 0 0 9px;
}

.chat-content h2,
.chat-content h3,
.chat-content h4 {
  margin: 13px 0 8px;
  color: var(--text);
}

.chat-content h2 {
  font-size: 1.16rem;
}

.chat-content h3,
.chat-content h4 {
  font-size: 1rem;
}

.chat-content strong {
  color: var(--text);
}

.chat-content code {
  padding: 2px 5px;
  background: #292929;
  border-radius: 4px;
}

.chat-content pre {
  overflow: auto;
  padding: 12px;
  background: #202020;
  border: 1px solid #303030;
  border-radius: 7px;
}

.chat-content a {
  color: #86c5ff;
}

.chat-content .list-line {
  position: relative;
  padding-left: 18px;
}

.chat-content .list-line::before {
  position: absolute;
  left: 5px;
  content: "-";
}

.chat-content.content-video {
  border-left: 2px solid #b88df1;
  padding-left: 13px;
}

.chat-content.content-audio,
.chat-content.content-music {
  border-left: 2px solid #6dd5b5;
  padding-left: 13px;
}

.rendered-audio {
  display: block;
  width: min(100%, 430px);
  margin-top: 12px;
}

.chat-content.content-image {
  border-left: 2px solid #e6b457;
  padding-left: 13px;
}

.agent-picker {
  width: 330px;
  max-height: min(52vh, 520px);
  overflow: auto;
}

.agent-picker > strong {
  padding: 8px 9px;
  font-size: 0.8rem;
}

.agent-picker button b {
  flex: 1;
  font-weight: 650;
}

.picker-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 3px;
}

.picker-row > button:first-child {
  min-width: 0;
}

.selection-dot {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid #515151;
  border-radius: 999px;
}

.picker-row > button.selected .selection-dot {
  color: #171717;
  background: #f2f2f2;
  border-color: #f2f2f2;
}

.selection-dot svg {
  width: 12px;
  height: 12px;
}

.picker-row .picker-edit {
  min-height: 36px;
  justify-content: center;
  padding: 0;
}

.picker-row .picker-edit svg {
  width: 15px;
  height: 15px;
}

.agent-picker hr {
  width: 100%;
  border: 0;
  border-top: 1px solid #343434;
}

.calendar-toolbar input {
  width: 150px;
}

.calendar-grid article.outside time {
  color: #575757;
}

.connector-dialog,
.byom-dialog,
.graph-dialog,
.template-dialog {
  position: relative;
  width: min(520px, calc(100vw - 36px));
  display: grid;
  gap: 15px;
  padding: 26px;
  background: #1d1d1d;
  border: 1px solid #303030;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.byom-dialog {
  width: min(710px, calc(100vw - 36px));
}

.connector-dialog > p,
.byom-dialog > p,
.template-dialog > p {
  color: var(--muted);
  line-height: 1.55;
}

.template-dialog {
  width: min(760px, calc(100vw - 36px));
  max-height: calc(100vh - 42px);
  overflow: auto;
}

.template-kind {
  width: fit-content;
  padding: 4px 8px;
  color: #9bcaff;
  background: #232f3c;
  border-radius: 999px;
  text-transform: uppercase;
  font-size: 0.67rem;
  font-weight: 800;
}

.template-dialog textarea {
  min-height: 325px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.79rem;
  line-height: 1.5;
}

.template-library {
  margin-top: 25px;
}

.template-library .section-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.8rem;
}

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

.template-card {
  display: grid;
  gap: 7px;
  justify-items: start;
  min-height: 84px;
  padding: 11px;
  color: var(--text-soft);
  background: #232323;
  border: 1px solid #323232;
  border-radius: 8px;
  text-align: left;
}

.template-card:hover,
.template-card.customized {
  border-color: #46505b;
}

.template-card small {
  color: var(--muted);
}

.file-card .file-icon {
  width: 100%;
  border: 0;
  color: inherit;
}

.connector-scope {
  display: grid;
  gap: 6px;
  padding: 12px;
  color: var(--text-soft);
  background: #242424;
  border-radius: 7px;
}

.connector-scope span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.preset-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.preset-pills button {
  min-height: 31px;
  padding: 0 11px;
  color: var(--text-soft);
  background: #252525;
  border: 1px solid #393939;
  border-radius: 999px;
}

.provider-list {
  width: min(768px, 100%);
  display: grid;
  gap: 9px;
  margin-top: 24px;
}

.provider-list article {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px;
  border: 1px solid #303030;
  border-radius: 7px;
}

.provider-list article strong {
  flex: 1;
}

.provider-list article span {
  color: var(--muted);
  font-size: 0.78rem;
}

.provider-list article button {
  color: var(--muted);
  background: transparent;
  border: 0;
}

.provider-list article.provider-ready span {
  color: #6dd5b5;
}

.provider-list article .provider-use {
  min-height: 30px;
  padding: 0 12px;
  color: var(--text);
  border: 1px solid #444;
  border-radius: 999px;
}

@media (max-width: 1040px) {
  .graph-layout,
  .thread-split.with-preview {
    grid-template-columns: 1fr;
  }

  .computer-preview {
    height: min(520px, 70vh);
  }

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

@media (max-width: 760px) {
  .graph-head,
  .token-economy header {
    align-items: start;
    flex-direction: column;
  }

  .graph-layout {
    display: block;
  }

  .graph-canvas {
    min-height: 360px;
    margin-bottom: 12px;
  }

  .economy-summary,
  .oauth-grid,
  .rate-grid {
    grid-template-columns: 1fr;
  }
}

/* Neutral product branding for the public entry surface. */
.sv-landing {
  --landing-line-bright: rgba(236, 236, 236, 0.28);
  --landing-indigo: #f0f0f0;
  --landing-violet: #f0f0f0;
  --landing-blue: #f0f0f0;
}

.landing-brand span {
  color: #f4f4f4;
  background: #111111;
  border: 1px solid #343434;
  box-shadow: none;
}

.landing-primary {
  color: #101010;
  background: #f2f2f2;
  box-shadow: none;
}

.landing-primary:hover {
  box-shadow: none;
}

.hero-copy h1 span {
  color: #f5f5f5;
}

.aurora-scene {
  display: none;
}

.workflow-panel,
.publish-card {
  background: #101010;
  border-color: #303030;
  box-shadow: 0 24px 68px rgba(0, 0, 0, 0.42);
}

.live-dot,
.landing-agent-row.complete .agent-node,
.landing-agent-row.active .agent-node,
.stage-rail article.active > span {
  background: #f0f0f0;
  border-color: #f0f0f0;
  box-shadow: none;
}

.workflow-tabs button.selected,
.landing-agent-row.active,
.landing-plans article.featured {
  background: #191919;
  border-color: #3c3c3c;
}

.landing-agent-row.active .agent-state,
.publish-card > small,
.creator-uses a {
  color: #d5d5d5;
  background: transparent;
}
