:root {
  --bg: #e4f6fe;
  --ink: #153d59;
  --muted: #52748a;
  --line: #cce3f0;
  --teal: #388db8;
  --teal-dark: #17698f;
  --navy: #153d59;
}

body:not(.launch-active) {
  background: linear-gradient(145deg, #dff6ff, #bfeaff 46%, #9fd9f4);
  background-attachment: fixed;
  color: #153d59;
}

.sidebar {
  background: rgba(225, 247, 255, .9);
  border-color: #b8ddeb;
  color: #153d59;
}

.sidebar-brand span, .nas-panel span, .nav-item, .file-center-heading p {
  color: #52748a;
}

.nav-item:hover, .nav-item.active {
  color: #164d70;
  border-color: #b8ddeb;
  background: rgba(255,255,255,.8);
}

.nav-submenu { border-color: #b8ddeb; }
.workspace { background: transparent; }
.data-center-tabs { background: #d4eef9; border-color: #b8ddeb; }
.file-detail-tabs [aria-selected=true] { background: #388db8; }
.database-browser-layout .file-center-filters, .file-center-tools { background: #edf9fe; border-color: #cce3f0; }
.file-center-tools summary, .file-upload-options summary { color: #17698f; }
.segment-transcribe-button, .odoo-hero, .n8n-hero, .line-admin-hero {
  background: #388db8;
  border-color: #388db8;
}
.segment-transcribe-button:hover:not(:disabled) { background: #17698f; }
.segment-progress > span { background: #388db8; }
.segment-progress > span.active { background-image: linear-gradient(90deg, #388db8 0 40%, #d4eef9 50%, #388db8 60% 100%); }

.launch-music-toggle {
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 999px;
  background: rgba(255,255,255,.63);
  color: #164d70;
  font-weight: 700;
}
.launch-music-toggle:hover, .launch-music-toggle:focus-visible { background: #fff; }

.launch-view::before { animation: sky-drift 12s ease-in-out infinite alternate; }
.launch-view::after { animation: sky-drift 9s ease-in-out infinite alternate-reverse; }
@keyframes sky-drift { from { translate: 0 0; } to { translate: -28px 22px; } }
@media (prefers-reduced-motion: reduce) {
  .launch-view::before, .launch-view::after { animation: none; }
}

/* Same-origin pages shown inside the workspace use the same sky palette. */
html.ai-work-embedded-theme, html.ai-work-embedded-theme body {
  background: linear-gradient(145deg, #dff6ff, #bfeaff 46%, #9fd9f4) fixed;
  color: #153d59;
}
.ai-work-embedded-theme :is(.primary-button, .primary, button[type="submit"], .input-row button, .language-switch button.active) {
  background: #388db8;
  border-color: #388db8;
  color: #fff;
}
.ai-work-embedded-theme :is(.primary-button, .primary, button[type="submit"], .input-row button):hover { background: #17698f; }
