:root { --accent: #0f0; --accent-soft: rgba(0, 255, 0, 0.35); --bg: #000; --base-font-size: 16px; }
* { box-sizing: border-box; font-family: monospace !important; }

body {
  background: var(--bg);
  color: var(--accent);
  margin: 0;
  padding: 16px;
  height: calc(100vh - var(--site-nav-h, 0px));
  display: flex;
  flex-direction: column;
  font-size: var(--base-font-size);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.btn {
  background: var(--bg);
  color: var(--accent);
  border: 2px solid var(--accent);
  padding: 6px 14px;
  cursor: pointer;
  font-size: 0.9rem;
}

.btn:hover { background: var(--accent); color: var(--bg); }

.editor { display: flex; flex-direction: column; flex: 1; gap: 10px; min-height: 0; }
.editor-bar { display: flex; align-items: center; gap: 12px; }
.editor-name { font-weight: bold; }
.editor-status { opacity: 0.7; font-size: 0.85rem; margin-left: auto; }
.editor-area { 
    flex: 1; 
    min-height: 0; 
    background: var(--bg);
    color: var(--accent);
    border: 2px solid var(--accent);
    padding: 12px;
    font-size: 0.9rem;
    resize: none;
    outline: none;

}
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.panel { border: 2px solid var(--accent); padding: 16px; margin: 12px 0; }
.panel-title { font-weight: bold; margin-bottom: 12px; }

.slider { margin: 16px 0; display: flex; align-items: center; gap: 12px; }
.slider input { flex: 1; max-width: 300px; cursor: pointer; }
.slider span { min-width: 40px; }

.color-picker { margin: 16px 0; display: flex; align-items: center; gap: 16px; }

.color-wheel {
  position: relative;
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: conic-gradient(
    hsl(0, 100%, 50%), hsl(60, 100%, 50%), hsl(120, 100%, 50%),
    hsl(180, 100%, 50%), hsl(240, 100%, 50%), hsl(300, 100%, 50%), hsl(360, 100%, 50%)
  );
  cursor: crosshair;
  touch-action: none;
  outline: none;
}
.color-wheel:focus-visible { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }

.color-wheel-hole {
  position: absolute;
  inset: 24%;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  pointer-events: none;
}

.color-wheel-marker {
  position: absolute;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  background: var(--bg);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px var(--accent);
  pointer-events: none;
}

.nav-badge { font-weight: bold; }
