:root {
  --orbit-violet: #5447cc;
  --orbit-violet-lit: #bba0ff;
  --orbit-indigo: #5966e6;
  --orbit-pink: #ed57aa;
  --orbit-coral: #f98280;
  --orbit-amber: #ffb36a;
}

.shell {
  color-scheme: dark;
  --bg: #12101b;
  --paper: #1b1725;
  --ink: #f5effb;
  --muted: #bdb3cc;
  --line: #3a3048;
  --side: #171320;
  --primary: var(--orbit-violet-lit);
  --primary-hover: #ddc9ff;
  --lavender: #cfb9ff;
  --radius: 14px;
  --orbit-field: #241d31;
  --orbit-surface-raised: #2c233b;
  --orbit-primary-gradient: linear-gradient(103deg, #4c34a3 0%, var(--orbit-violet) 34%, #6535a9 64%, #842f76 100%);
  --studio-loader-color: #efe7fa;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 89% 14%, #2818457d, transparent 53rem),
    radial-gradient(ellipse at 44% 100%, #2b1e384d, transparent 46rem),
    var(--bg);
}

.shell .side {
  border-right: 1px solid #392c49;
  background:
    radial-gradient(ellipse at 5% 6%, #4d2b6e79, transparent 17rem),
    var(--side);
}
.shell .wordmark > span span { color: var(--lavender); }
.shell .nav-group a, .shell .learning-menu-link { border-radius: 11px; }
.shell .nav-group a:hover, .shell .learning-menu-link:is(:hover, :focus-visible, [aria-current]) { background: #2a2238; }
.shell .nav-group a[aria-current] {
  color: var(--ink);
  background: linear-gradient(100deg, #503381, #352652 66%, #302448);
  box-shadow: inset 2px 0 #c4a1ff, 0 2px 18px #8546fe2b;
}
.shell .nav-group a[aria-current] .icon { color: #d8c1ff; }
.shell .side-foot { border-color: var(--line); }
.shell .avatar {
  border-color: #956ccf6b;
  border-radius: 10px;
  color: #f2e8ff;
  background: #392852;
}
.shell .bar { background: #171321; }
.shell .eyeline { color: var(--muted); }
.shell .eyeline i {
  border-radius: 2px;
  background: linear-gradient(90deg, var(--orbit-indigo), #b688ff 62%, var(--orbit-pink));
  box-shadow: 0 0 12px #a46cff84;
}
.shell :focus-visible { outline-color: var(--lavender); }
.shell .workspace-tabs a[aria-current] { color: var(--lavender); box-shadow: inset 0 -2px #a675f6; }
.shell .creation-tabs a[aria-current] { color: var(--orbit-violet); }

.shell .button:not(.primary), .shell .icon-btn {
  background: var(--orbit-field);
  border-color: var(--line);
  color: var(--ink);
}
.shell :is(.button:not(.primary), .icon-btn):hover { border-color: #a780e58a; background: var(--orbit-surface-raised); }
.shell .button.primary {
  border-color: #a884eea0;
  background: var(--orbit-primary-gradient) 8% / 170% 100%;
  box-shadow: 0 3px 16px #7752d64f;
  color: #fff;
}
.shell .button.primary:is(:hover, :focus-visible) {
  border-color: #d0abff;
  background-position: 98%;
  box-shadow: 0 3px 21px #9d58ec72;
}
.shell #queue-paused {
  --studio-loader-color: currentColor;
  border-color: var(--orbit-violet-lit);
  background: var(--lavender);
  color: #2b1c4d;
}
.shell #queue-paused:is(:hover, :focus-visible) {
  border-color: var(--primary-hover);
  background: var(--primary-hover);
}
.shell :is(.empty, .history-row, .download-bar, .results-actions) a:not(.button) { color: var(--lavender); }
.shell .section-title > a { color: var(--lavender); }
.shell .panel legend { color: var(--ink); }
.shell .panel input::placeholder, .shell .panel textarea::placeholder { color: #a9a0b8; }
.shell :is(.panel, .preview-panel, .job-list, .upload-box, .studio-dialog) { border-color: var(--line); }
.shell :is(.job-list, .studio-dialog) { background: var(--paper); color: var(--ink); }
.shell .studio-dialog::backdrop { background: #0d0a17b8; }
.shell .upload-box { background: var(--orbit-field); }
.shell .panel, .shell .preview-panel { box-shadow: 0 10px 26px #0b061229; }
.shell :is(.job-row, .preview-caption, .download-bar, .history-row, .font-row, th, td) { border-color: var(--line); }
.shell table thead th { color: var(--muted); background: var(--orbit-field); }
.shell .job-icon { color: #d4c1ff; background: #332748; }
.shell :is(.badge, .live-indicator) { color: #d5ccdf; background: #342c3e; }
.shell .badge:is(.working, .running, .publishing, .scheduled) { color: #e4d4ff; background: #482f69; }
.shell .badge:is(.done, .approved, .published), .shell .live-indicator { color: #a5e9ba; background: #233b33; }
.shell .badge:is(.failed, .uncertain) { color: #ffc4bd; background: #542c3b; }
.shell .badge:is(.brief, .needs_input) { color: #ffdaa9; background: #483628; }
.shell :is(.notice, .messages p):not(:where(.generation-panel[data-generation-active="true"])) {
  background: #2b223f;
  border-color: #614d80;
  color: var(--ink);
}
.shell :is(.messages p.error, .notice.error, .form-errors, .errorlist) { background: #452634; border-color: #9a586a; color: #ffd1c9; }
.shell .research-matches mark { background: #4f3d29; color: #ffdfab; }
.shell .voice-phrases a:is(:hover, [aria-current]) { background: var(--orbit-surface-raised); }
.shell .learning-panel { background: var(--paper); color: var(--ink); }

.shell .orbit-hero {
  min-height: clamp(9rem, 16vw, 15rem);
  align-items: flex-end;
  padding: clamp(1.2rem, 3vw, 2.7rem);
  border: 1px solid #70539375;
  border-radius: 20px;
}
.shell :is(.orbit-hero, .preview-mat, .photo-gallery) {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse at var(--orbit-x, 62%) var(--orbit-y, 44%), #7f3bc220, transparent 62%),
    radial-gradient(ellipse at 104% 98%, #79374b2e, transparent 47%),
    radial-gradient(ellipse at 87% 13%, #4959d22b, transparent 52%),
    #181224;
}
.shell .orbit-hero::before,
.shell .preview-mat::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent calc(100% - 1px), #c6a6ff10 0) 0 50% / 29px 100%,
    linear-gradient(transparent calc(100% - 1px), #c6a6ff10 0) 50% 0 / 100% 29px;
  mask-image: linear-gradient(100deg, transparent, #000);
}
.shell .orbit-hero::after {
  content: "";
  position: absolute;
  inset: 0 22% auto 28%;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, #7956df 36%, #c49afc, #e76eac 70%, transparent);
  box-shadow: 0 0 14px #a86dffb0;
}
.orbit-dust {
  display: block;
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.shell .preview-mat :is(img, video), .shell .photo-review img { border-radius: 11px; }
.shell .photo-gallery { padding: 10px; border-radius: 12px; }
.shell .photo-review { background: #1a1521dd; }
.shell :is(.tile, .dashboard-sections a) {
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
  color: var(--ink);
}
.shell .dashboard-sections a { padding: 13px 14px; }
.shell :is(.tile-meta, .tile-bottom, .tile-go) { color: var(--muted); }
.shell :is(.tile, .dashboard-sections a):hover {
  border-color: #a578eaad;
  box-shadow: 0 0 21px #8650de33;
}
.shell .dashboard-sections a:hover .icon { color: var(--lavender); }
.shell .dashboard-chart-bar {
  border-color: #b991fb;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(0deg, var(--orbit-violet), #b190fa);
}
.shell .project-cover { border-radius: 13px; }
.shell .project-link:hover .project-cover { box-shadow: 0 0 22px #9757e851; }

@media (prefers-reduced-motion: no-preference) {
  .shell .button.primary { transition: background-position .38s ease, box-shadow .24s ease, border-color .24s ease; }
  .shell :is(.tile, .dashboard-sections a, .project-cover) { transition: box-shadow .24s ease, border-color .24s ease; }
}
@media (max-width: 640px) {
  .shell .orbit-hero { min-height: 8rem; }
  .shell .orbit-hero .page-actions { gap: 8px; }
}
