/* Voxel World Lab: розмітка поверх спільної теми (theme.css). Акцент інструмента: свіжий зелений. */
:root { --accent: #81c784; --accent-hi: #b2e2b4; --accent-glow: rgba(129, 199, 132, .14); }
body { min-height: 100vh; display: flex; flex-direction: column;
  background: radial-gradient(1200px 460px at 50% -120px, rgba(129, 199, 132, .10), transparent 70%), var(--bg); }
header.top { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 12px 18px;
  background: linear-gradient(180deg, var(--panel), var(--bg-elev)); border-bottom: 1px solid var(--line); position: relative; }
header.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: .55; }
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--ff-ui); font-weight: 850; text-transform: uppercase; font-size: 20px; white-space: nowrap; letter-spacing: .07em; text-shadow: 0 0 14px color-mix(in srgb, var(--accent, var(--gold)) 50%, transparent); }
.brand svg { width: 24px; height: 24px; color: var(--accent); flex: none; }
.brand span { color: var(--accent); text-shadow: 0 0 14px currentColor; }
.spacer { flex: 1; }
main.wrap { flex: 1; width: 100%; max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; padding: 16px 18px 32px; align-items: start; }
.stage { min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-1); overflow: hidden; }
.stage-h { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg button { border: 0; border-radius: 0; background: none; padding: 6px 12px; }
.seg button.on { background: var(--accent-glow); color: var(--accent-hi); }
.ctl-inline { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.ctl-inline input[type=range] { width: 110px; } .ctl-inline output { font-family: var(--ff-mono); color: var(--text); min-width: 28px; }
.palette { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 14px; border-bottom: 1px solid var(--line-soft); }
.palette[hidden] { display: none; }
.sw { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 4px; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; background: none; color: var(--muted); cursor: pointer; }
.sw i { width: 16px; height: 16px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, .15); }
.sw.on { border-color: var(--accent); color: var(--accent-hi); background: var(--accent-glow); }
.canvaswrap { position: relative; height: min(72vh, 720px); overflow: hidden; background: #13191f; touch-action: none; }
.busy { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); background: var(--panel-3); color: var(--accent-hi); border: 1px solid var(--accent); border-radius: 99px; padding: 6px 16px; font-size: 13px; pointer-events: none; }
.busy[hidden] { display: none; }
button.wide { width: 100%; }
.canvaswrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; }
.canvaswrap.tool canvas { cursor: crosshair; }
.hint { font-size: 12px; color: var(--faint); margin: 10px 14px 12px; line-height: 1.5; }
.side { display: flex; flex-direction: column; gap: 12px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-1); padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 9px; }
.card h2 { margin: 0 0 2px; font-family: var(--ff-ui); font-size: 11px; text-transform: uppercase; letter-spacing: .18em; color: var(--accent); font-weight: 600; }
.card .hint { margin: 4px 0 0; }
.ctl { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; align-items: center; font-size: 13px; color: var(--muted); }
.ctl output { font-family: var(--ff-mono); font-size: 12px; color: var(--text); }
.ctl input[type=range], .ctl input[type=text] { grid-column: 1 / -1; width: 100%; }
.ctl.txt { grid-template-columns: 1fr; }
.counts { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 12px; font-size: 12px; color: var(--muted); }
.counts div { display: flex; align-items: center; gap: 6px; } .counts i { width: 10px; height: 10px; border-radius: 3px; flex: none; } .counts b { margin-left: auto; font-family: var(--ff-mono); font-weight: 500; color: var(--text); }
.exp { display: flex; flex-wrap: wrap; gap: 8px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0; background: var(--panel-3); color: var(--accent-hi); border: 1px solid var(--accent);
  font-weight: 600; padding: 10px 20px; border-radius: 99px; box-shadow: var(--shadow-2); transition: .25s var(--ease); pointer-events: none; z-index: 50; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%); }
@media (max-width: 980px) { main.wrap { grid-template-columns: minmax(0, 1fr); padding: 12px 16px 28px; } header.top { padding: 12px 16px; } .canvaswrap { height: 56vh; } }
