/* WarUniverse · Ship Design Generator — dark neon admin theme */
:root {
  --bg: #04050b;
  --bg2: #080b16;
  --panel: #0b1020;
  --panel2: #0f1630;
  --line: #1a2542;
  --line2: #263562;
  --text: #e6f1ff;
  --muted: #7f93b8;
  --cyan: #00f0ff;
  --mag: #ff2bd6;
  --lime: #6bff9e;
  --warn: #ffb020;
  --danger: #ff4d6a;
  --glow-c: 0 0 14px rgba(0, 240, 255, .35);
  --glow-m: 0 0 14px rgba(255, 43, 214, .35);
  --font: Bahnschrift, 'Segoe UI', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; color: var(--text); font-family: var(--font); font-size: 14px;
  background:
    radial-gradient(900px 500px at 8% -10%, rgba(0, 240, 255, .10), transparent 60%),
    radial-gradient(800px 500px at 100% 0%, rgba(255, 43, 214, .10), transparent 60%),
    linear-gradient(180deg, var(--bg2), var(--bg));
  background-attachment: fixed;
}
a { color: var(--cyan); }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: .04em; }
h3 { font-size: 12px; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; letter-spacing: .12em; }
small { font-weight: 400; color: var(--muted); font-size: 12px; letter-spacing: 0; margin-left: 8px; }
.hint { color: var(--muted); font-size: 12px; margin: 8px 0; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 30; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 20px; background: rgba(5, 7, 15, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(0, 240, 255, .12), 0 8px 30px rgba(0, 0, 0, .5);
}
.brand { display: flex; align-items: center; gap: 16px; }
.brand h1 { font-size: 20px; letter-spacing: .18em; }
.brand h1 .glitch { color: var(--cyan); text-shadow: 0 0 10px rgba(0, 240, 255, .7), 0 0 30px rgba(0, 240, 255, .3); }
.brand h1 em { font-style: normal; color: var(--mag); text-shadow: 0 0 10px rgba(255, 43, 214, .7), 0 0 30px rgba(255, 43, 214, .3); }
.back { text-decoration: none; font-size: 12px; letter-spacing: .1em; color: var(--muted); border: 1px solid var(--line2); padding: 5px 10px; border-radius: 4px; }
.back:hover { color: var(--cyan); border-color: var(--cyan); box-shadow: var(--glow-c); }
.top-right { display: flex; align-items: center; gap: 10px; }
.pill { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .1em; padding: 3px 10px; border-radius: 99px; border: 1px solid var(--line2); color: var(--muted); }
.pill.on { color: var(--lime); border-color: rgba(107, 255, 158, .5); box-shadow: 0 0 10px rgba(107, 255, 158, .25); }
.pill.off { color: var(--danger); border-color: rgba(255, 77, 106, .5); }
.pill.live { color: var(--cyan, #00f0ff); border-color: rgba(0, 240, 255, .55); box-shadow: 0 0 12px rgba(0, 240, 255, .35); animation: livePulse 1.2s ease-in-out infinite; }
.pill.live.off { color: var(--muted); border-color: var(--line2); box-shadow: none; animation: none; }
@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.busy { font-size: 11px; letter-spacing: .15em; color: var(--cyan); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* ---------- layout ---------- */
.shell { display: grid; grid-template-columns: 220px minmax(0, 1fr) 310px; gap: 18px; padding: 18px 20px 48px; max-width: 1760px; margin: 0 auto; align-items: start; }
.side { position: sticky; top: 70px; display: flex; flex-direction: column; gap: 6px; }
.side button {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; cursor: pointer;
  background: linear-gradient(90deg, rgba(15, 22, 48, .9), rgba(11, 16, 32, .6)); color: var(--muted);
  border: 1px solid var(--line); border-left: 3px solid var(--line2); border-radius: 6px; padding: 11px 12px; font: inherit; font-weight: 600; transition: .15s;
}
.side button b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 4px; font-size: 11px; background: #0a0f20; border: 1px solid var(--line2); color: var(--cyan); }
.side button:hover { color: var(--text); border-left-color: var(--cyan); }
.side button.active { color: #fff; border-color: rgba(0, 240, 255, .5); border-left-color: var(--mag); box-shadow: var(--glow-c), inset 0 0 24px rgba(0, 240, 255, .06); }
.side button.active b { background: var(--cyan); color: #001018; border-color: var(--cyan); }
.main { min-width: 0; }

.panel { display: none; background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px 22px; box-shadow: 0 10px 40px rgba(0, 0, 0, .45); position: relative; }
.panel::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 2px; border-radius: 10px 10px 0 0; background: linear-gradient(90deg, var(--cyan), var(--mag)); box-shadow: 0 0 14px rgba(0, 240, 255, .5); }
.panel.active { display: block; animation: in .2s ease; }
@keyframes in { from { opacity: 0; transform: translateY(4px); } }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.panel-head h2 { font-size: 17px; text-transform: uppercase; letter-spacing: .14em; }

.message { margin-bottom: 12px; padding: 9px 14px; border-radius: 6px; border: 1px solid rgba(0, 240, 255, .4); background: rgba(0, 240, 255, .07); color: var(--cyan); }
.message.error { border-color: rgba(255, 77, 106, .55); background: rgba(255, 77, 106, .08); color: #ff9aae; }

/* ---------- form controls ---------- */
input, select, button { font: inherit; }
input[type=text], input[type=search], input[type=number], input:not([type]), select {
  background: #070b18; color: var(--text); border: 1px solid var(--line2); border-radius: 5px; padding: 7px 9px; min-width: 0; outline: none;
}
input:focus, select:focus { border-color: var(--cyan); box-shadow: 0 0 0 2px rgba(0, 240, 255, .15); }
input[type=color] { width: 38px; height: 32px; padding: 2px; background: #070b18; border: 1px solid var(--line2); border-radius: 5px; cursor: pointer; }
input[type=range] { width: 100%; accent-color: var(--cyan); }
input:disabled, select:disabled { opacity: .4; }
.num { width: 78px; } .num.wide { width: 130px; } .num.rgb { width: 56px; padding: 6px; text-align: center; }
.hex { width: 92px; text-transform: uppercase; font-family: Consolas, monospace; }
label { display: flex; flex-direction: column; gap: 5px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); position: relative; }
label output { position: absolute; right: 0; top: 0; color: var(--cyan); font-family: Consolas, monospace; letter-spacing: 0; }
.form { display: grid; gap: 12px; }
.form.cols { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); margin-top: 14px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.three .num, .two .num { width: 100%; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
.row.tight { margin: 8px 0 0; gap: 5px; } .row.nowrap { flex-wrap: nowrap; margin: 0; } .row.nowrap input { flex: 1; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-end; margin-bottom: 12px; }
.toolbar label { flex-direction: row; align-items: center; gap: 8px; }
.toolbar label output { position: static; min-width: 52px; }
* { scrollbar-color: var(--line2) var(--bg2); scrollbar-width: thin; }
.chk { flex-direction: row !important; align-items: center; gap: 7px !important; cursor: pointer; text-transform: none; font-size: 13px; letter-spacing: 0; color: var(--text); }
.chk input { accent-color: var(--mag); width: 16px; height: 16px; }

.btn {
  display: inline-block; cursor: pointer; text-decoration: none; text-align: center; color: #001a20; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: linear-gradient(180deg, #38f6ff, #00c8e0); border: 0; border-radius: 5px; padding: 10px 18px; box-shadow: var(--glow-c); transition: .15s;
}
.btn:hover:not(:disabled) { filter: brightness(1.15); transform: translateY(-1px); }
.btn:disabled { opacity: .45; cursor: wait; }
.btn.sm { padding: 6px 11px; font-size: 11px; }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line2); box-shadow: none; }
.btn.ghost:hover:not(:disabled) { border-color: var(--cyan); color: var(--cyan); }
.btn.magenta { background: linear-gradient(180deg, #ff62e6, #d414b4); color: #20001a; box-shadow: var(--glow-m); }
.btn.danger { background: linear-gradient(180deg, #ff7a8e, #e0304f); color: #2a0008; box-shadow: none; }
.btn.ghost.danger { background: transparent; color: var(--danger); border-color: rgba(255, 77, 106, .5); }
.btn.mega { padding: 14px 26px; font-size: 15px; letter-spacing: .14em; background: linear-gradient(90deg, #00f0ff, #ff2bd6); color: #05020a; box-shadow: 0 0 22px rgba(0, 240, 255, .4), 0 0 22px rgba(255, 43, 214, .35); }
progress { width: 100%; height: 8px; accent-color: var(--mag); margin-top: 10px; }

/* ---------- stages (alpha checker) ---------- */
.checker { background-color: #0a0d18; background-image: linear-gradient(45deg, #121830 25%, transparent 25%, transparent 75%, #121830 75%), linear-gradient(45deg, #121830 25%, transparent 25%, transparent 75%, #121830 75%); background-size: 20px 20px; background-position: 0 0, 10px 10px; }
.stage { position: relative; border: 1px solid var(--line2); border-radius: 8px; overflow: hidden; box-shadow: inset 0 0 40px rgba(0, 0, 0, .6); }
.stage:not(.checker) { background: radial-gradient(circle at 50% 50%, #0b1230, #02030a 80%); }
.stage canvas { display: block; width: 100%; height: 100%; }
.stage.big { height: min(62vh, 560px); min-height: 320px; }
.stage.small { display: inline-block; min-width: 140px; min-height: 120px; max-width: 100%; }
.stage.small canvas { width: 160px; height: 140px; }
.dock-stage { height: 230px; }

/* ---------- ship gallery ---------- */
.ship-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.ship-card { background: #080c1a; border: 1px solid var(--line); border-radius: 8px; padding: 10px; cursor: pointer; transition: .15s; display: flex; flex-direction: column; gap: 6px; }
.ship-card:hover { border-color: var(--cyan); box-shadow: var(--glow-c); transform: translateY(-2px); }
.ship-card.active { border-color: var(--mag); box-shadow: var(--glow-m), inset 0 0 20px rgba(255, 43, 214, .08); }
.ship-card.off { opacity: .45; cursor: not-allowed; }
.ship-card h3 { margin: 4px 0 0; color: var(--text); font-size: 14px; text-transform: none; letter-spacing: .03em; }
.ship-img { height: 120px; border-radius: 6px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); }
.ship-img img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 0 8px rgba(0, 240, 255, .25)); }
.meta { font-size: 11px; color: var(--muted); }
.chips { display: flex; gap: 4px; flex-wrap: wrap; min-height: 18px; }
.badge { font-size: 10px; font-weight: 700; letter-spacing: .08em; padding: 2px 7px; border-radius: 3px; background: rgba(0, 0, 0, .65); color: var(--cyan); border: 1px solid rgba(0, 240, 255, .35); }
.badge.ok { color: var(--lime); border-color: rgba(107, 255, 158, .4); }
.badge.bad { color: var(--danger); border-color: rgba(255, 77, 106, .5); }
.badge.inline { background: #070b18; color: var(--muted); border-color: var(--line2); }
.badge.inline.ok { color: var(--lime); }

/* ---------- weapon editor ---------- */
.wp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 16px; }
.wp-canvas { height: 500px; cursor: crosshair; touch-action: none; outline: none; }
.wp-side h3:first-child { margin-top: 0; }
.wp-palette { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.wp-model { cursor: pointer; background: #070b18; border: 1px solid var(--line2); border-radius: 6px; color: var(--muted); padding: 4px; font-size: 10px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.wp-model:hover { border-color: var(--mag); color: var(--text); box-shadow: var(--glow-m); }
.wp-model canvas { width: 80px; height: 32px; max-width: 100%; }
.wp-list { max-height: 200px; overflow: auto; display: flex; flex-direction: column; gap: 3px; }
.wp-row { display: flex; align-items: center; gap: 8px; text-align: left; cursor: pointer; background: #070b18; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 5px 8px; font-size: 12px; }
.wp-row i { width: 12px; height: 12px; border-radius: 3px; border: 1px solid #fff3; flex: none; }
.wp-row.active { border-color: var(--mag); color: var(--text); }

/* ---------- colours / combos ---------- */
.color-fields { display: grid; gap: 8px; }
.color-row { display: grid; grid-template-columns: 96px 38px 96px auto; gap: 10px; align-items: center; background: #080c1a; border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px; }
.color-row .lab { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
.rgbs { display: flex; gap: 6px; }
.combo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.combo { cursor: pointer; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; background: #080c1a; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 8px; font-size: 12px; }
.combo:hover { border-color: var(--cyan); color: var(--text); }
.combo.active { border-color: var(--mag); color: #fff; box-shadow: var(--glow-m); }
.combo .sw { display: flex; width: 100%; height: 18px; border-radius: 4px; overflow: hidden; border: 1px solid #fff2; }
.combo .sw i { flex: 1; }
.combo .sw i.rainbow { background: linear-gradient(90deg, red, orange, yellow, lime, cyan, blue, magenta); }

/* ---------- studio 3-step ---------- */
.studio-steps { display: flex; flex-direction: column; gap: 18px; margin-bottom: 12px; }
.studio-step h3 {
  display: flex; align-items: center; gap: 10px; margin: 0 0 6px;
  font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--text);
}
.studio-step h3 em {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%; font-style: normal; font-size: 12px;
  background: var(--mag); color: #fff; box-shadow: var(--glow-m);
}
.color-pick-wrap { display: flex; flex-direction: column; gap: 12px; }
.color-group-title {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan);
  margin: 4px 0 0; padding-bottom: 4px; border-bottom: 1px solid #fff1;
}
.color-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.color-pick {
  cursor: pointer; text-align: left; display: flex; flex-direction: column; gap: 5px;
  background: linear-gradient(160deg, #0d1428, #070a16); color: var(--muted);
  border: 1px solid var(--line); border-radius: 8px; padding: 10px; transition: .15s;
}
.color-pick:hover { border-color: var(--cyan); color: var(--text); transform: translateY(-1px); box-shadow: var(--glow-c); }
.color-pick.active { border-color: var(--mag); color: #fff; box-shadow: var(--glow-m), inset 0 0 20px rgba(255, 43, 214, .08); }
.color-pick-hero { border-color: #2a4a6a; }
.color-pick-hero .sw { height: 18px; }
.color-pick strong { color: var(--text); font-size: 12px; letter-spacing: .03em; }
.color-pick span { font-size: 10px; font-family: ui-monospace, Consolas, monospace; opacity: .8; }
.color-pick .sw { display: flex; width: 100%; height: 16px; border-radius: 4px; overflow: hidden; border: 1px solid #fff2; }
.color-pick .sw i { flex: 1; }
.pick-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pick {
  cursor: pointer; min-width: 96px; text-align: left; display: flex; flex-direction: column; gap: 2px;
  background: linear-gradient(160deg, #0d1428, #070a16); color: var(--muted);
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; transition: .15s;
}
.pick:hover { border-color: var(--cyan); color: var(--text); }
.pick.active { border-color: var(--mag); color: #fff; box-shadow: var(--glow-m); }
.pick strong { color: var(--text); font-size: 13px; }
.pick span { font-size: 10px; letter-spacing: .04em; line-height: 1.25; text-transform: none; }
.pick-off.active { border-color: #889; box-shadow: none; }
.pick-glow.active { border-color: var(--cyan); box-shadow: var(--glow-c); }

/* ---------- one-click design packs ---------- */
.pack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-bottom: 8px; }
.pack {
  cursor: pointer; text-align: left; display: flex; flex-direction: column; gap: 6px;
  background: linear-gradient(160deg, #0d1428, #070a16); color: var(--muted);
  border: 1px solid var(--line); border-radius: 8px; padding: 12px; transition: .15s;
}
.pack:hover { border-color: var(--cyan); color: var(--text); transform: translateY(-1px); box-shadow: var(--glow-c); }
.pack.active { border-color: var(--mag); color: #fff; box-shadow: var(--glow-m), inset 0 0 24px rgba(255, 43, 214, .08); }
.pack strong { color: var(--text); font-size: 13px; letter-spacing: .04em; }
.pack span { font-size: 11px; line-height: 1.3; }
.pack .sw { display: flex; width: 100%; height: 14px; border-radius: 4px; overflow: hidden; border: 1px solid #fff2; }
.pack .sw i { flex: 1; }
.pack-swatch-bar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin: 8px 0 16px; padding: 10px 12px; border-radius: 8px;
  background: #0a0e18; border: 1px solid #fff1;
}
.pack-swatch-bar .chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase;
}
.pack-swatch-bar .chip b {
  width: 22px; height: 22px; border-radius: 4px; border: 1px solid #fff3;
  box-shadow: inset 0 0 0 1px #0006;
}
.adv { margin-top: 18px; border: 1px solid var(--line); border-radius: 8px; background: #080c1a; padding: 0 14px 14px; }
.adv > summary {
  cursor: pointer; list-style: none; padding: 12px 0; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; font-size: 12px; color: var(--cyan);
}
.adv > summary::-webkit-details-marker { display: none; }
.adv[open] > summary { border-bottom: 1px solid var(--line); margin-bottom: 12px; }

/* ---------- design / neon cards ---------- */
.design-grid, .neon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 8px; }
.design, .neon { cursor: pointer; text-align: left; display: flex; flex-direction: column; gap: 3px; background: linear-gradient(160deg, #0b1124, #070a16); color: var(--muted); border: 1px solid var(--line); border-radius: 7px; padding: 11px 12px; transition: .15s; }
.design strong, .neon strong { color: var(--text); font-size: 13px; letter-spacing: .04em; }
.design span, .neon span { font-size: 11px; }
.neon em { font-style: normal; font-size: 10px; color: var(--cyan); letter-spacing: .06em; text-transform: uppercase; margin-top: 4px; }
.design:hover, .neon:hover { border-color: var(--cyan); transform: translateY(-1px); }
.design.active { border-color: var(--cyan); box-shadow: var(--glow-c), inset 0 0 22px rgba(0, 240, 255, .08); }
.neon.active { border-color: var(--mag); box-shadow: var(--glow-m), inset 0 0 22px rgba(255, 43, 214, .1); }
.neon.active strong { text-shadow: 0 0 10px var(--mag); }

/* ---------- random / skin cards ---------- */
.rnd-bar { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; margin-bottom: 12px; }
.toggles { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 10px 12px; background: #080c1a; border: 1px solid var(--line); border-radius: 6px; }
.skin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 14px; margin-top: 12px; }
.skin-card { background: #080c1a; border: 1px solid var(--line); border-radius: 8px; padding: 9px; display: flex; flex-direction: column; gap: 6px; transition: .15s; }
.skin-card:hover { border-color: var(--line2); box-shadow: 0 0 18px rgba(0, 240, 255, .12); }
.thumb-wrap { position: relative; border-radius: 6px; border: 1px solid var(--line); display: grid; place-items: center; min-height: 130px; overflow: hidden; }
.thumb-wrap.small { width: 84px; min-height: 66px; flex: none; }
.thumb { width: 100%; height: auto; max-height: 160px; object-fit: contain; }
.thumb-wrap .badge { position: absolute; left: 6px; top: 6px; }
.thumb-wrap .icon { position: absolute; right: 4px; top: 4px; }
.icon { background: rgba(0, 0, 0, .55); border: 1px solid var(--line2); color: var(--muted); border-radius: 50%; width: 28px; height: 28px; cursor: pointer; font-size: 15px; line-height: 1; }
.icon.on { color: var(--warn); border-color: var(--warn); text-shadow: 0 0 8px var(--warn); }
.name-in { width: 100%; font-weight: 700; background: transparent !important; border-color: transparent !important; padding: 4px 2px !important; }
.name-in:hover, .name-in:focus { border-color: var(--line2) !important; background: #070b18 !important; }

/* ---------- preview / publish ---------- */
.pv-layout { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 16px; }
.pv-game h3 { margin-top: 0; }
.pub-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pub-col h3:first-child { margin-top: 0; }
.pub-card { display: flex; gap: 12px; align-items: center; background: #080c1a; border: 1px solid var(--line); border-radius: 6px; padding: 8px; min-height: 54px; }
.pub-card .thumb-wrap img { width: 100%; }

/* ---------- dock ---------- */
.dock { position: sticky; top: 70px; }
.dock-card { display: flex; flex-direction: column; gap: 10px; background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line2); border-radius: 10px; padding: 12px; box-shadow: 0 0 26px rgba(0, 240, 255, .1); }
.dock-title { display: flex; justify-content: space-between; align-items: center; font-weight: 700; letter-spacing: .06em; }
.dock.compact .dock-stage { display: none; }
.swatch-row { display: flex; gap: 4px; }
.swatch-row i { flex: 1; height: 16px; border-radius: 3px; border: 1px solid #fff3; }

/* ---------- auth gate ---------- */
.gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(2, 3, 8, .92); backdrop-filter: blur(6px); }
.gate[hidden] { display: none; }
.gate-box { width: min(480px, 92vw); display: grid; gap: 14px; background: var(--panel); border: 1px solid var(--mag); border-radius: 12px; padding: 26px; box-shadow: var(--glow-m); }
.gate-box h2 { color: var(--mag); text-transform: uppercase; letter-spacing: .14em; }
.gate-box p { margin: 0; color: var(--muted); }
[hidden] { display: none !important; }

/* ---------- responsive ---------- */
@media (max-width: 1280px) {
  .shell { grid-template-columns: 200px minmax(0, 1fr); }
  .dock { grid-column: 1 / -1; position: static; }
  .dock-card { display: grid; grid-template-columns: 220px 1fr 1fr; align-items: end; }
  .dock-stage { height: 180px; grid-row: span 3; }
  .dock-title, .dock-card > .btn, .dock-card > .hint, .swatch-row { grid-column: 2 / -1; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; padding: 12px; }
  .side { position: static; flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .side button { width: auto; white-space: nowrap; flex: none; }
  .wp-layout, .pv-layout, .pub-layout { grid-template-columns: 1fr; }
  .color-row { grid-template-columns: 80px 38px 1fr; } .rgbs { grid-column: 1 / -1; }
  .dock-card { display: flex; }
  .top { padding: 8px 12px; } .brand h1 { font-size: 15px; letter-spacing: .1em; }
  .wp-canvas { height: 360px; }
}
