/* Minimal, modern UI — focused on the screen experience */

:root {
  --bg: #0b0f19;
  --panel: rgba(255, 255, 255, 0.06);
  --panel2: rgba(255, 255, 255, 0.09);
  --stroke: rgba(255, 255, 255, 0.12);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.64);
  --shadow: 0 14px 50px rgba(0, 0, 0, 0.55);
  --radius: 16px;
  --radius-sm: 12px;
  --accent: #7c4dff;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: radial-gradient(1200px 600px at 20% -10%, rgba(124, 77, 255, 0.22), transparent 55%),
              radial-gradient(900px 520px at 95% 10%, rgba(41, 98, 255, 0.18), transparent 60%),
              var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.55);
  color: rgba(255,255,255,0.92);
  z-index: 999;
}
.skip-link:focus {
  left: 12px;
  outline: 2px solid rgba(124, 77, 255, 0.8);
  outline-offset: 2px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--stroke);
  background: rgba(11, 15, 25, 0.72);
  backdrop-filter: blur(10px);
}

.brand { display: flex; gap: 12px; align-items: center; }
.logo {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(140deg, #ffffff, #d5ddff 35%, #7c4dff 95%);
  box-shadow: 0 10px 30px rgba(124, 77, 255, 0.25);
}
.title { font-weight: 750; letter-spacing: 0.2px; margin: 0; font-size: 16px; }
.subtitle { font-size: 12px; color: var(--muted); margin: 2px 0 0; }

.top-actions { display: flex; gap: 10px; align-items: center; }

.btn {
  appearance: none;
  border: 1px solid var(--stroke);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}
.btn:hover { transform: translateY(-1px); background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.18); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid rgba(124, 77, 255, 0.75); outline-offset: 2px; }

.btn-primary {
  border-color: rgba(124, 77, 255, 0.55);
  background: linear-gradient(135deg, rgba(124, 77, 255, 0.85), rgba(41, 98, 255, 0.7));
}
.btn-primary:hover { border-color: rgba(124, 77, 255, 0.8); }
.btn-ghost {
  background: transparent;
  box-shadow: none;
}

.layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 16px;
  padding: 16px;
  height: calc(100% - 70px);
}

.panel {
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.04));
  box-shadow: var(--shadow);
  overflow: auto;
}

.panel-section {
  padding: 16px 16px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.panel-section h2 {
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: 0.3px;
  color: rgba(255,255,255,0.88);
}

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips-wrap { margin-bottom: 10px; }
.chip {
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.9);
  padding: 9px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 120ms ease, transform 120ms ease, border-color 120ms ease;
  font-size: 13px;
}
.chip:hover { transform: translateY(-1px); background: rgba(255,255,255,0.08); }
.chip.is-active {
  border-color: rgba(124, 77, 255, 0.65);
  background: rgba(124, 77, 255, 0.18);
}
.chip-sm { padding: 7px 10px; font-size: 12px; }

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.field { display: grid; gap: 6px; }
.field span { font-size: 12px; color: var(--muted); }
.field input[type="number"],
.field input[type="text"] {
  width: 100%;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.22);
  color: var(--text);
  outline: none;
}
.field input[type="color"] {
  width: 100%;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.22);
  padding: 4px;
  cursor: pointer;
}
.field input:focus-visible { outline: 2px solid rgba(124, 77, 255, 0.7); outline-offset: 2px; }

.hint {
  margin-top: 10px;
  color: rgba(255,255,255,0.62);
  font-size: 12px;
  line-height: 1.4;
}

.callout {
  margin-top: 10px;
  border: 1px solid rgba(255, 122, 0, 0.45);
  background: rgba(255, 122, 0, 0.12);
  color: rgba(255,255,255,0.92);
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 12px;
}
.is-hidden { display: none; }

.list {
  margin: 10px 0 0 18px;
  padding: 0;
  color: rgba(255,255,255,0.76);
  font-size: 13px;
  line-height: 1.6;
}

.footer {
  padding: 14px 16px;
  color: rgba(255,255,255,0.5);
  font-size: 12px;
}

.stage {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 320px;
}

.screen {
  position: absolute;
  inset: 0;
  background: #ffffff;
}

.stage-overlay {
  position: absolute;
  inset: 12px 12px auto 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}

.badge {
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.22);
  backdrop-filter: blur(8px);
  font-size: 12px;
  color: rgba(255,255,255,0.9);
}
.badge-right { margin-left: auto; }
.sep { opacity: 0.55; }

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
    height: auto;
  }
  .stage { min-height: 46vh; }
  .topbar { position: static; }
}

