﻿:root {
  --bg: #050c1a;
  --bg-soft: #0a152b;
  --panel: rgba(20, 35, 66, 0.85);
  --panel-border: rgba(124, 160, 221, 0.22);
  --panel-border-strong: rgba(138, 179, 255, 0.36);
  --text: #ebf3ff;
  --muted: #9ab0d5;
  --accent: #55b4ff;
  --accent-2: #33dfc5;
  --ok: #58d792;
  --warn: #f4c46a;
  --preview: #e9b355;
  --ready: #47d18a;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 800px at 8% -10%, rgba(52, 109, 210, 0.2), transparent 58%),
    radial-gradient(900px 700px at 95% 0%, rgba(31, 150, 217, 0.18), transparent 50%),
    linear-gradient(180deg, #040916 0%, #081127 45%, #060d1e 100%);
}

a {
  color: #b7d5ff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.workspace-shell {
  display: grid;
  grid-template-columns: 290px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: rgba(7, 16, 35, 0.85);
  border-right: 1px solid rgba(120, 155, 217, 0.22);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  overflow: auto;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 18px;
  border-bottom: 1px solid rgba(135, 168, 227, 0.17);
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: linear-gradient(135deg, #3191f6 0%, #3bd4c4 100%);
  display: grid;
  place-items: center;
  font-size: 21px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.brand-title, .brand-title { font-family: "Space Grotesk", "Segoe UI", system-ui, sans-serif; }

.brand-title {
  font-weight: 700;
  font-size: 15px;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 12px;
}

.launchpad-link-wrap {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(135, 168, 227, 0.12);
}

.route-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 11px 13px;
  color: #d3e2fb;
  background: rgba(255, 255, 255, 0.02);
  transition: 0.2s ease;
}

.route-link:hover {
  text-decoration: none;
  border-color: rgba(137, 174, 238, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

.route-link.is-active {
  background: rgba(69, 129, 224, 0.24);
  border-color: rgba(139, 186, 255, 0.48);
  color: #f2f7ff;
}

.mode-nav {
  flex: 1;
  padding: 14px;
  overflow: auto;
}

.group-block {
  margin-bottom: 18px;
}

.group-title {
  color: rgba(182, 206, 241, 0.62);
  font-size: 11px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  margin: 0 0 8px;
  padding: 0 6px;
}

.mode-link-label {
  font-size: 14px;
  font-weight: 600;
}

.mode-tag {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid;
  line-height: 1.2;
}

.mode-tag.ready {
  border-color: rgba(94, 221, 156, 0.5);
  background: rgba(74, 191, 130, 0.2);
  color: #adf5cb;
}

.mode-tag.preview {
  border-color: rgba(240, 187, 98, 0.5);
  background: rgba(255, 166, 0, 0.16);
  color: #ffd89b;
}

.operator-block {
  border-top: 1px solid rgba(135, 168, 227, 0.14);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.operator-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #318ef3 0%, #3dcfc3 100%);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.operator-email {
  font-size: 13px;
  font-weight: 600;
}

.operator-role {
  color: var(--muted);
  font-size: 11px;
}

.main-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.top-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px 18px;
  background: rgba(6, 15, 33, 0.82);
  border-bottom: 1px solid rgba(132, 166, 228, 0.22);
  backdrop-filter: blur(16px);
}

.header-group {
  color: rgba(188, 210, 244, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
}

.header-title, .hero-panel h2, .panel h2 { font-family: "Space Grotesk", "Segoe UI", system-ui, sans-serif; }

.header-title {
  margin: 2px 0 0;
  font-size: 31px;
  line-height: 1.1;
}

.header-desc {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 720px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.status-pill {
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  border: 1px solid rgba(132, 166, 228, 0.34);
  background: rgba(255, 255, 255, 0.03);
  color: #dce9ff;
}

.status-pill.ready {
  border-color: rgba(91, 209, 145, 0.5);
  background: rgba(60, 187, 118, 0.2);
  color: #aef6cb;
}

.status-pill.preview {
  border-color: rgba(255, 193, 89, 0.52);
  background: rgba(233, 159, 25, 0.16);
  color: #ffd79a;
}

.status-pill.neutral {
  border-color: rgba(130, 165, 230, 0.38);
  background: rgba(255, 255, 255, 0.03);
  color: #dce8ff;
}

.ghost-btn,
.primary-btn,
button,
input,
select,
textarea {
  font: inherit;
}

button,
.primary-btn,
.ghost-btn {
  cursor: pointer;
}

.ghost-btn,
.primary-btn {
  border-radius: 10px;
  padding: 9px 12px;
  border: 1px solid rgba(131, 169, 236, 0.28);
  transition: 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.04);
  color: #d9e8ff;
}

.ghost-btn:hover {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(153, 187, 246, 0.42);
}

.primary-btn {
  border-color: rgba(82, 164, 255, 0.72);
  background: linear-gradient(135deg, rgba(49, 130, 240, 0.88), rgba(44, 199, 210, 0.84));
  color: #f7fbff;
  font-weight: 600;
}

.primary-btn:hover {
  text-decoration: none;
  filter: brightness(1.07);
}

.view {
  display: none;
  padding: 20px 24px 32px;
  gap: 14px;
}

.view.is-active {
  display: flex;
  flex-direction: column;
}

.hero-panel,
.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.hero-panel {
  background: linear-gradient(145deg, rgba(18, 45, 90, 0.92), rgba(10, 24, 52, 0.9));
}

.hero-badge,
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  border: 1px solid;
}

.hero-badge,
.tag-cyan {
  border-color: rgba(82, 211, 255, 0.42);
  background: rgba(53, 159, 223, 0.24);
  color: #b8e7ff;
}

.hero-panel h2 {
  margin: 10px 0 8px;
  font-size: 30px;
}

.hero-panel p {
  margin: 0;
  color: var(--muted);
  max-width: 900px;
}

.hero-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.launchpad-groups {
  display: grid;
  gap: 18px;
}

.launch-group-title {
  margin: 0;
  font-size: 22px;
}

.launch-group-desc {
  margin: 6px 0 10px;
  color: var(--muted);
}

.mode-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}

.mode-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(133, 167, 229, 0.2);
  border-radius: 12px;
  padding: 14px;
}

.mode-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mode-card h4 {
  margin: 0;
  font-size: 19px;
}

.mode-card p {
  margin: 7px 0 10px;
  color: var(--muted);
}

.mode-card ul {
  margin: 0 0 12px;
  padding-left: 17px;
  color: #d1e2ff;
  display: grid;
  gap: 4px;
}

.panel h2,
.panel h3,
.panel h4 {
  margin: 0;
}

.panel p {
  margin: 6px 0 0;
  color: var(--muted);
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.profile-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(132, 167, 231, 0.2);
  border-radius: 12px;
  padding: 12px;
  transition: 0.16s ease;
  cursor: pointer;
}

.profile-card.is-active {
  border-color: rgba(64, 190, 255, 0.56);
  background: rgba(58, 152, 224, 0.22);
}

.profile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.locale-pill {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(153, 183, 239, 0.35);
  color: #d3e6ff;
}

.profile-summary {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.inline-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.field-grow {
  flex: 1 1 220px;
  min-width: 180px;
}

.toggle-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 13px;
}

.toggle-inline input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.clone-simple-head {
  gap: 12px;
}

.clone-step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.clone-step-card {
  border: 1px solid rgba(133, 167, 229, 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px;
  display: grid;
  gap: 4px;
}

.clone-step-badge {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(82, 164, 255, 0.66);
  background: rgba(56, 146, 252, 0.26);
  color: #cde9ff;
  display: inline-grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}

.clone-simple-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 14px;
}

.clone-advanced {
  margin: 0;
}

.clone-advanced summary {
  cursor: pointer;
  font-weight: 600;
  color: #d9ebff;
}

.clone-advanced[open] summary {
  margin-bottom: 10px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.three-col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 14px;
}

.col {
  display: grid;
  gap: 12px;
}

.panel.subpanel {
  background: rgba(255, 255, 255, 0.015);
  box-shadow: none;
}

label {
  display: block;
  font-size: 13px;
  color: #dbeaff;
  margin-bottom: 6px;
}

input[type="text"],
input[type="number"],
input[type="password"],
input[type="email"],
select,
textarea,
input[type="file"] {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(136, 170, 232, 0.24);
  background: rgba(9, 21, 45, 0.78);
  color: var(--text);
  padding: 9px 10px;
}

input[type="range"] {
  width: 100%;
  accent-color: #3ac8e4;
}

textarea {
  resize: vertical;
  min-height: 78px;
}

.file-picker {
  display: grid;
  gap: 8px;
  border: 1px dashed rgba(132, 167, 231, 0.46);
  border-radius: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.file-picker input[type="file"] {
  background: transparent;
  border: none;
  padding: 0;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.chip {
  border: 1px solid rgba(132, 167, 231, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #d5e5ff;
  padding: 6px 10px;
  font-size: 12px;
}

.chip:hover {
  background: rgba(255, 255, 255, 0.08);
}

.slider-row {
  display: grid;
  gap: 5px;
}

.slider-row label {
  display: flex;
  justify-content: space-between;
  margin: 0;
}

.full {
  width: 100%;
}

audio {
  width: 100%;
  margin-top: 6px;
}

.json-box {
  margin: 6px 0 0;
  border: 1px solid rgba(133, 168, 230, 0.22);
  background: rgba(5, 14, 31, 0.94);
  color: #d7e8ff;
  border-radius: 10px;
  padding: 10px;
  white-space: pre-wrap;
  font-size: 12px;
  max-height: 380px;
  overflow: auto;
}

.list-box {
  border: 1px solid rgba(133, 168, 230, 0.2);
  border-radius: 10px;
  background: rgba(5, 14, 31, 0.84);
  padding: 10px;
  max-height: 240px;
  overflow: auto;
  font-size: 13px;
  color: #d2e4ff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.stat-card {
  border: 1px solid rgba(133, 168, 230, 0.24);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 10px;
}

.stat-card div {
  color: var(--muted);
  font-size: 12px;
}

.stat-card strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.turnstile-panel {
  margin: 8px 24px 26px;
  border-radius: 12px;
  border: 1px dashed rgba(126, 162, 229, 0.3);
  background: rgba(255, 255, 255, 0.025);
  padding: 12px;
}

.turnstile-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.mobile-menu-btn {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 130;
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(131, 169, 236, 0.3);
  background: rgba(7, 18, 38, 0.86);
  color: #dbe9ff;
}

@media (max-width: 1120px) {
  .two-col {
    grid-template-columns: 1fr;
  }

  .clone-simple-grid {
    grid-template-columns: 1fr;
  }

  .three-col {
    grid-template-columns: 1fr;
  }
}


/* ── Custom Scrollbar ────────────────────────────────── */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb {
  background: rgba(85, 180, 255, 0.28);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(85, 180, 255, 0.5);
  background-clip: content-box;
}
::-webkit-scrollbar-corner {
  background: transparent;
}

/* ── Text Selection ──────────────────────────────────── */
::selection {
  background: rgba(85, 180, 255, 0.3);
  color: #f0f8ff;
}

/* ── Focus Visible ───────────────────────────────────── */
:focus-visible {
  outline: 2px solid rgba(85, 180, 255, 0.7);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Smooth Scroll ───────────────────────────────────── */
html {
  scroll-behavior: smooth;
}

/* ── View Transitions ────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.view.is-active {
  animation: fadeInUp 0.35s ease-out;
}

/* ── Card Hover Lift ─────────────────────────────────── */
.mode-card:hover,
.profile-card:hover,
.stat-card:hover,
.clone-step-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
  border-color: rgba(85, 180, 255, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

/* ── Pulse Glow for Ready Status ────────────────────── */
@keyframes pulseReady {
  0%, 100% { box-shadow: 0 0 0 0 rgba(71, 209, 138, 0.4); }
  50%       { box-shadow: 0 0 0 6px rgba(71, 209, 138, 0); }
}

.status-pill.ready {
  animation: pulseReady 2.5s ease-in-out infinite;
}

/* ── Step Badge Check Animation ─────────────────────── */
@keyframes stepComplete {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}


/* ── Toast Notification System ───────────────────────── */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 12px;
  min-width: 300px;
  max-width: 420px;
  font-size: 14px;
  font-weight: 500;
  pointer-events: auto;
  backdrop-filter: blur(12px);
  border: 1px solid;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  animation: toastIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  cursor: pointer;
}

.toast.toast-exit {
  animation: toastOut 0.25s ease-in forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(60px) scale(0.9); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(0) scale(1); }
  to   { opacity: 0; transform: translateX(60px) scale(0.9); }
}

.toast-success {
  background: rgba(15, 40, 25, 0.92);
  border-color: rgba(71, 209, 138, 0.5);
  color: #aef6cb;
}
.toast-success .toast-icon { color: #47d18a; }

.toast-error {
  background: rgba(45, 15, 15, 0.92);
  border-color: rgba(255, 100, 100, 0.5);
  color: #ffc0c0;
}
.toast-error .toast-icon { color: #ff6464; }

.toast-warn {
  background: rgba(40, 30, 10, 0.92);
  border-color: rgba(244, 196, 106, 0.5);
  color: #ffd89b;
}
.toast-warn .toast-icon { color: #f4c46a; }

.toast-info {
  background: rgba(10, 25, 50, 0.92);
  border-color: rgba(85, 180, 255, 0.5);
  color: #cde9ff;
}
.toast-info .toast-icon { color: #55b4ff; }

.toast-icon { font-size: 18px; flex-shrink: 0; }
.toast-msg  { flex: 1; line-height: 1.4; }
.toast-close { font-size: 16px; opacity: 0.6; flex-shrink: 0; }
.toast-close:hover { opacity: 1; }


/* ── Loading Spinner Overlay ────────────────────────── */
.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 9, 22, 0.75);
  backdrop-filter: blur(6px);
  animation: fadeIn 0.2s ease;
}

.loading-overlay.hidden {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.spinner-ring {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid rgba(85, 180, 255, 0.15);
  border-top-color: #55b4ff;
  animation: spinRing 0.85s linear infinite;
  box-shadow: 0 0 20px rgba(85, 180, 255, 0.3);
}

@keyframes spinRing {
  to { transform: rotate(360deg); }
}

.loading-label {
  position: absolute;
  margin-top: 68px;
  font-size: 13px;
  color: rgba(188, 210, 244, 0.75);
  font-family: "Inter", system-ui, sans-serif;
  letter-spacing: 0.04em;
}

/* ── Empty State Polish ──────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 32px 20px;
  text-align: center;
}

.empty-state-icon {
  font-size: 36px;
  opacity: 0.45;
  animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

.empty-state-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  max-width: 280px;
}

.empty-state-sub {
  font-size: 12px;
  color: rgba(154, 176, 213, 0.6);
}


/* ── Light Theme ─────────────────────────────────────── */
[data-theme="light"] {
  --bg: #f0f4f9;
  --bg-soft: #e8eef7;
  --panel: rgba(255, 255, 255, 0.88);
  --panel-border: rgba(100, 130, 190, 0.25);
  --panel-border-strong: rgba(80, 120, 180, 0.4);
  --text: #1a2540;
  --muted: #5a6e96;
  --accent: #2563eb;
  --accent-2: #0891b2;
  --ok: #16a34a;
  --warn: #d97706;
  --preview: #b45309;
  --ready: #15803d;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] body {
  background: linear-gradient(180deg, #e8eef7 0%, #d8e4f2 50%, #edf1f7 100%);
}

[data-theme="light"] .sidebar {
  background: rgba(220, 232, 248, 0.9);
  border-right-color: rgba(150, 180, 230, 0.3);
}

[data-theme="light"] .panel,
[data-theme="light"] .hero-panel {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(150, 180, 230, 0.35);
}

[data-theme="light"] .top-header {
  background: rgba(230, 240, 252, 0.88);
  border-bottom-color: rgba(150, 180, 230, 0.3);
}

[data-theme="light"] .json-box,
[data-theme="light"] .list-box {
  background: rgba(245, 248, 255, 0.95);
  border-color: rgba(150, 180, 230, 0.3);
}

[data-theme="light"] .mode-card,
[data-theme="light"] .profile-card,
[data-theme="light"] .clone-step-card {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(150, 180, 230, 0.3);
}

/* ── Theme Toggle Button ──────────────────────────────── */
.theme-toggle-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid rgba(131, 169, 236, 0.28);
  background: rgba(255, 255, 255, 0.04);
  color: #d9e8ff;
  cursor: pointer;
  font-size: 13px;
  transition: 0.2s ease;
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .theme-toggle-btn {
  color: #1a2540;
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(150, 180, 230, 0.4);
}

.theme-toggle-btn:hover {
  text-decoration: none;
}

@media (max-width: 920px) {
  .workspace-shell {
    grid-template-columns: 1fr;
  }

  .mobile-menu-btn {
    display: grid;
    place-items: center;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 280px;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    z-index: 120;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .top-header {
    padding-left: 58px;
  }

  .header-title, .hero-panel h2, .panel h2 { font-family: "Space Grotesk", "Segoe UI", system-ui, sans-serif; }

.header-title {
    font-size: 24px;
  }

  .view {
    padding: 14px;
  }

  .turnstile-panel {
    margin: 8px 14px 18px;
  }
}
