:root {
  color-scheme: dark;
  --bg: #07101f;
  --bg-secondary: #0b1430;
  --surface: rgba(13, 22, 43, 0.94);
  --surface-strong: rgba(20, 33, 63, 0.98);
  --surface-muted: rgba(11, 19, 38, 0.98);
  --surface-highlight: rgba(30, 48, 92, 0.96);
  --surface-header: rgba(7, 14, 28, 0.92);
  --surface-sidebar: rgba(8, 15, 30, 0.96);
  --stroke: rgba(131, 153, 197, 0.16);
  --stroke-strong: rgba(139, 172, 229, 0.3);
  --text: #f5f7ff;
  --text-soft: #a4b3d4;
  --text-faint: #6f82aa;
  --accent: #5ca9ff;
  --accent-strong: #7a5dff;
  --accent-soft: rgba(92, 169, 255, 0.18);
  --success: #7ae9b9;
  --warning: #ffd86f;
  --danger: #ff628d;
  --shadow: 0 28px 60px rgba(1, 7, 20, 0.42);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #edf2ff;
  --bg-secondary: #dce6ff;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: rgba(251, 253, 255, 0.98);
  --surface-muted: rgba(238, 244, 255, 0.98);
  --surface-highlight: rgba(223, 234, 255, 0.98);
  --surface-header: rgba(238, 244, 255, 0.92);
  --surface-sidebar: rgba(247, 250, 255, 0.96);
  --stroke: rgba(37, 55, 95, 0.12);
  --stroke-strong: rgba(37, 55, 95, 0.22);
  --text: #0d1830;
  --text-soft: #50627f;
  --text-faint: #7a8eae;
  --accent: #2563ff;
  --accent-strong: #6a4df6;
  --accent-soft: rgba(37, 99, 255, 0.1);
  --success: #0f9f63;
  --warning: #b7791f;
  --danger: #e11d48;
  --shadow: 0 24px 54px rgba(49, 73, 122, 0.18);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(92, 169, 255, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(122, 93, 255, 0.14), transparent 24%),
    linear-gradient(180deg, var(--bg), var(--bg-secondary));
}

.app-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.55;
  mask-image: radial-gradient(circle at center, black 35%, transparent 95%);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 1.45rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.panel-hero {
  background:
    radial-gradient(circle at top right, rgba(92, 169, 255, 0.2), transparent 34%),
    radial-gradient(circle at bottom left, rgba(122, 93, 255, 0.16), transparent 28%),
    var(--surface);
}

.panel-accent {
  background:
    radial-gradient(circle at top left, rgba(122, 93, 255, 0.24), transparent 36%),
    linear-gradient(135deg, rgba(13, 22, 43, 0.95), rgba(34, 57, 110, 0.95));
}

.panel-nested {
  border-radius: 1.15rem;
  box-shadow: none;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

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

.button-primary {
  background: linear-gradient(135deg, rgba(108, 71, 255, 0.96), rgba(137, 73, 255, 0.96));
  border-color: rgba(149, 107, 255, 0.5);
  box-shadow: 0 18px 32px rgba(78, 32, 177, 0.36);
  color: #fff;
}

.button-secondary {
  background: var(--surface-highlight);
  border-color: var(--stroke);
  color: var(--text);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--stroke);
  color: var(--text-soft);
}

.button-secondary:hover,
.button-ghost:hover {
  border-color: var(--stroke-strong);
  color: var(--text);
}

.button-danger {
  background: linear-gradient(135deg, var(--danger), #d21b5b);
  color: #fff;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.input,
.select {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid var(--stroke);
  background: var(--surface-strong);
  color: var(--text);
  padding: 0.9rem 1rem;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.input::placeholder,
.code-editor::placeholder,
.sidebar-search-input::placeholder,
.composer-textarea::placeholder {
  color: var(--text-faint);
}

.input:focus,
.select:focus,
.code-editor:focus,
.sidebar-search-input:focus,
.composer-textarea:focus {
  outline: none;
  border-color: rgba(92, 169, 255, 0.44);
  box-shadow: 0 0 0 4px rgba(92, 169, 255, 0.12);
}

.sidebar-panel {
  transform: translateX(-105%);
  transition: transform 240ms ease;
  background: var(--surface-sidebar);
  border-right: 1px solid var(--stroke);
}

body.sidebar-open .sidebar-panel {
  transform: translateX(0);
}

.sidebar-shell {
  display: flex;
  height: 100%;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
  padding: 1.2rem 1rem 1rem;
}

.brand-shell {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.3rem 0.25rem 0.6rem;
}

.brand-mark {
  display: inline-flex;
  height: 3rem;
  width: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  color: var(--accent);
  background:
    radial-gradient(circle at center, rgba(92, 169, 255, 0.24), transparent 62%),
    rgba(10, 18, 34, 0.96);
  box-shadow: inset 0 0 0 1px rgba(92, 169, 255, 0.22);
}

.brand-kicker,
.workspace-kicker,
.workspace-banner-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.brand-title {
  margin: 0.15rem 0 0;
  font-family: "Space Grotesk", ui-sans-serif, system-ui;
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1;
}

.workspace-chip {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  border-radius: 1.15rem;
  border: 1px solid var(--stroke);
  background: rgba(16, 28, 54, 0.92);
  padding: 0.95rem 1rem;
}

.workspace-chip-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.workspace-chip-value {
  margin-top: 0.45rem;
  word-break: break-word;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-soft);
}

.workspace-chip-badge,
.topbar-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(122, 93, 255, 0.34);
  background: rgba(122, 93, 255, 0.12);
  padding: 0.5rem 0.75rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ddd4ff;
}

.sidebar-search-shell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 1rem;
  border: 1px solid var(--stroke);
  background: rgba(16, 26, 49, 0.88);
  padding: 0.9rem 1rem;
}

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

.sidebar-search-input::-webkit-search-cancel-button {
  display: none;
}

.rail-group {
  border-radius: 1.2rem;
  border: 1px solid var(--stroke);
  background: rgba(12, 20, 39, 0.78);
  padding: 1rem;
}

.rail-group-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.rail-section-icon {
  display: inline-flex;
  height: 2rem;
  width: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(92, 169, 255, 0.14);
  color: var(--accent);
}

.rail-section-icon.is-orchestration {
  background: rgba(122, 93, 255, 0.16);
  color: #d7c4ff;
}

.rail-create-button {
  margin-top: 1rem;
}

.tree-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.folder-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  border-radius: 1rem;
  border: 1px solid transparent;
  background: rgba(18, 30, 58, 0.84);
  padding: 0.85rem 0.9rem;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.folder-row:hover {
  border-color: var(--stroke-strong);
  background: rgba(25, 41, 77, 0.96);
  transform: translateX(2px);
}

.folder-actions {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  opacity: 0;
  transition: opacity 180ms ease;
}

.group:hover .folder-actions {
  opacity: 1;
}

.folder-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.folder-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  transition: transform 180ms ease, opacity 180ms ease, color 180ms ease;
}

.folder-chevron.is-empty {
  opacity: 0.25;
}

[data-folder-item].is-collapsed .folder-chevron {
  transform: rotate(0deg);
}

[data-folder-item]:not(.is-collapsed) .folder-chevron {
  transform: rotate(90deg);
}

.tree-branch {
  margin-left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  border-left: 1px solid rgba(111, 130, 170, 0.22);
  padding-left: 0.85rem;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2rem;
  width: 2rem;
  border-radius: 999px;
  color: var(--text-soft);
  transition: background-color 180ms ease, color 180ms ease;
}

.icon-button:hover {
  background: var(--surface-highlight);
  color: var(--text);
}

.plugin-item-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  border-radius: 1rem;
  border: 1px solid rgba(111, 130, 170, 0.18);
  background: rgba(13, 22, 43, 0.9);
  padding: 0.8rem 0.9rem;
}

.plugin-item-button {
  display: block;
  min-width: 0;
  flex: 1;
  color: inherit;
  text-align: left;
}

.plugin-item-row.is-active {
  border-color: rgba(92, 169, 255, 0.36);
  background:
    linear-gradient(135deg, rgba(92, 169, 255, 0.1), rgba(122, 93, 255, 0.12)),
    rgba(12, 20, 39, 0.98);
  box-shadow: inset 0 0 0 1px rgba(92, 169, 255, 0.18);
}

.plugin-type-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(111, 130, 170, 0.24);
  background: rgba(23, 36, 66, 0.96);
  padding: 0.28rem 0.58rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 0.75rem;
  border-top: 1px solid var(--stroke);
  padding-top: 1rem;
}

.sidebar-user-card {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.8rem;
}

.sidebar-user-avatar {
  display: inline-flex;
  height: 2.5rem;
  width: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
}

.workspace-shell {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.workspace-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--stroke);
  background: var(--surface-header);
  padding: 1.35rem 1.25rem 1.15rem;
  backdrop-filter: blur(16px);
}

.workspace-title {
  margin-top: 0.35rem;
  font-family: "Space Grotesk", ui-sans-serif, system-ui;
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 700;
  line-height: 1.05;
}

.workspace-subtitle {
  margin-top: 0.6rem;
  max-width: 58rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-soft);
}

.workspace-topbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.workspace-main {
  flex: 1;
  padding: 1.25rem;
}

.workspace-grid {
  display: grid;
  gap: 1.25rem;
  min-height: calc(100vh - 8.5rem);
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 25rem);
}

.workspace-banner {
  background:
    radial-gradient(circle at top right, rgba(92, 169, 255, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(15, 25, 49, 0.96), rgba(20, 35, 70, 0.92));
}

.workspace-banner-title {
  margin-top: 0.45rem;
  font-family: "Space Grotesk", ui-sans-serif, system-ui;
  font-size: clamp(1.8rem, 2.2vw, 2.4rem);
  font-weight: 700;
  line-height: 1.1;
}

.workspace-banner-copy {
  margin-top: 0.75rem;
  max-width: 44rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-soft);
}

.workspace-banner-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.metric-chip {
  display: grid;
  min-width: 6rem;
  gap: 0.15rem;
  border-radius: 1rem;
  border: 1px solid rgba(131, 153, 197, 0.18);
  background: rgba(8, 16, 31, 0.42);
  padding: 0.85rem 1rem;
}

.metric-value {
  font-family: "Space Grotesk", ui-sans-serif, system-ui;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
}

.metric-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.console-panel {
  background:
    linear-gradient(180deg, rgba(18, 30, 58, 0.86), rgba(11, 18, 35, 0.96));
}

.console-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
}

.console-title-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.75rem;
}

.console-icon {
  display: inline-flex;
  height: 2.15rem;
  width: 2.15rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.8rem;
  background: rgba(92, 169, 255, 0.12);
  color: var(--accent);
}

.console-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.console-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(111, 130, 170, 0.22);
  background: rgba(14, 23, 44, 0.96);
  padding: 0.48rem 0.72rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.chat-scroll {
  position: relative;
  flex: 1;
  overflow-y: auto;
  padding: 0 1.35rem 1.35rem;
}

.chat-stream {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.chat-empty-state {
  display: flex;
  min-height: 18rem;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  border-radius: 1.35rem;
  border: 1px solid rgba(111, 130, 170, 0.18);
  background:
    radial-gradient(circle at top right, rgba(92, 169, 255, 0.12), transparent 34%),
    rgba(13, 22, 43, 0.92);
  padding: 2rem;
}

.chat-entry {
  border-radius: 1.25rem;
  border: 1px solid var(--stroke);
  padding: 1rem 1.05rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.chat-entry-assistant {
  background:
    linear-gradient(180deg, rgba(24, 40, 76, 0.88), rgba(15, 25, 49, 0.96));
}

.chat-entry-user {
  margin-left: auto;
  max-width: 94%;
  border-color: rgba(122, 93, 255, 0.26);
  background:
    linear-gradient(135deg, rgba(44, 63, 123, 0.82), rgba(27, 40, 81, 0.98));
}

.chat-entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.chat-entry-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(92, 169, 255, 0.14);
  padding: 0.32rem 0.58rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #cfe2ff;
}

.chat-entry-user .chat-entry-badge {
  background: rgba(122, 93, 255, 0.18);
  color: #e4dcff;
}

.composer-shell {
  border-top: 1px solid var(--stroke);
  padding: 1.15rem 1.35rem 1.35rem;
}

.composer-frame {
  border-radius: 1.25rem;
  border: 1px solid rgba(111, 130, 170, 0.22);
  background:
    linear-gradient(180deg, rgba(23, 38, 73, 0.86), rgba(15, 24, 45, 0.98));
  padding: 1rem;
}

.composer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.composer-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(111, 130, 170, 0.2);
  background: rgba(10, 17, 33, 0.7);
  padding: 0.45rem 0.7rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.composer-textarea {
  width: 100%;
  min-height: 8rem;
  resize: vertical;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 0.95rem 0 0;
  font-size: 0.98rem;
  line-height: 1.7;
}

.composer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  border-top: 1px solid rgba(111, 130, 170, 0.18);
  padding-top: 0.95rem;
}

.code-editor,
.code-preview code,
.workspace-chip-value,
.font-mono {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

.code-editor {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.75;
}

.code-preview {
  margin: 0;
  min-height: 100%;
  white-space: pre-wrap;
}

.sidebar-scrim {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(2, 6, 23, 0.62);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

body.sidebar-open .sidebar-scrim {
  opacity: 1;
  pointer-events: auto;
}

.context-menu {
  position: fixed;
  z-index: 70;
  width: 13rem;
  border-radius: 1rem;
  border: 1px solid var(--stroke);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  padding: 0.5rem;
  backdrop-filter: blur(18px);
}

.context-menu-item {
  width: 100%;
  border-radius: 0.8rem;
  padding: 0.8rem 0.9rem;
  text-align: left;
  color: var(--text);
  transition: background-color 180ms ease;
}

.context-menu-item:hover {
  background: var(--surface-highlight);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 75;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(2, 6, 23, 0.65);
  backdrop-filter: blur(10px);
}

.modal-card {
  width: min(100%, 34rem);
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  border-radius: 1.45rem;
  border: 1px solid var(--stroke);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  backdrop-filter: blur(24px);
}

.message-copy > :first-child,
.markdown-content > :first-child {
  margin-top: 0;
}

.message-copy > :last-child,
.markdown-content > :last-child {
  margin-bottom: 0;
}

.message-copy p,
.message-copy li,
.markdown-content p,
.markdown-content li {
  color: inherit;
  line-height: 1.85;
}

.message-copy ul,
.message-copy ol,
.markdown-content ul,
.markdown-content ol {
  margin: 1rem 0;
  padding-left: 1.25rem;
}

.message-copy code:not(pre code),
.markdown-content code:not(pre code) {
  border-radius: 0.55rem;
  background: rgba(6, 14, 31, 0.72);
  padding: 0.18rem 0.45rem;
  font-size: 0.9em;
}

html[data-theme="light"] .message-copy code:not(pre code),
html[data-theme="light"] .markdown-content code:not(pre code) {
  background: rgba(37, 55, 95, 0.08);
}

.message-copy pre,
.markdown-content pre {
  overflow-x: auto;
  border-radius: 1rem;
  border: 1px solid rgba(111, 130, 170, 0.18);
  background: rgba(6, 13, 28, 0.56);
  margin: 1rem 0;
  padding: 1rem;
}

.message-copy pre code,
.markdown-content pre code {
  white-space: pre;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4 {
  margin: 1.35rem 0 0.75rem;
  font-family: "Space Grotesk", ui-sans-serif, system-ui;
  line-height: 1.2;
}

.markdown-content h1 {
  font-size: 2rem;
}

.markdown-content h2 {
  font-size: 1.5rem;
}

.markdown-content h3 {
  font-size: 1.2rem;
}

.markdown-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.18rem;
}

.markdown-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.markdown-content th,
.markdown-content td {
  border: 1px solid var(--stroke);
  padding: 0.75rem;
  text-align: left;
}

.toast {
  border-radius: 1rem;
  border: 1px solid rgba(92, 169, 255, 0.22);
  background: rgba(7, 15, 30, 0.96);
  color: #fff;
  padding: 0.95rem 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

html[data-theme="light"] .toast {
  background: rgba(12, 23, 44, 0.9);
}

.fade-rise {
  animation: fade-rise 420ms cubic-bezier(0.2, 0.9, 0.25, 1) both;
}

.drag-ghost {
  opacity: 0.42;
}

.drag-active .folder-row,
.sortable-chosen .folder-row {
  border-color: rgba(92, 169, 255, 0.3);
}

.auth-tab {
  color: var(--text-soft);
  transition: background-color 180ms ease, color 180ms ease;
}

.auth-tab.is-active {
  background: linear-gradient(135deg, rgba(92, 169, 255, 0.14), rgba(122, 93, 255, 0.14));
  color: var(--text);
}

.search-hidden {
  display: none !important;
}

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

::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(111, 130, 170, 0.28);
}

@media (min-width: 1024px) {
  .sidebar-scrim {
    display: none;
  }
}

@media (max-width: 1279px) {
  .workspace-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1023px) {
  .workspace-main,
  .workspace-topbar {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .modal-card {
    padding: 1.25rem;
  }
}

@media (max-width: 640px) {
  .workspace-title {
    font-size: 1.85rem;
  }

  .console-header,
  .composer-shell,
  .chat-scroll {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .sidebar-shell {
    padding: 1rem 0.85rem 0.9rem;
  }

  .composer-actions,
  .workspace-banner-metrics,
  .workspace-topbar-actions {
    align-items: stretch;
  }
}

@keyframes fade-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

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