/* Kitd staff editor look: OLED black, brand purple, big tap targets (>= 44 px), phone first. */
:root {
  --bg: #000; --card: #0e0b16; --line: #2a2240; --text: #f3f0fa; --muted: #9a93ad;
  --accent: #a77bff; --blue: #4d9dff; --fresh: #4dffa6; --bad: #ff5c8a; --r: 18px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif; -webkit-tap-highlight-color: transparent; }
body { padding: env(safe-area-inset-top) 16px calc(env(safe-area-inset-bottom) + 96px); max-width: 560px; margin: 0 auto; }
.top { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.logo { font-weight: 900; font-size: 28px; letter-spacing: -0.5px; }
.logo span { color: var(--accent); }
.who { color: var(--muted); font-size: 14px; display: flex; gap: 12px; align-items: center; }
h1 { font-size: 28px; letter-spacing: -0.5px; margin: 8px 0 4px; }
h2 { font-size: 13px; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; margin: 28px 0 8px; font-weight: 700; }
p.hint { color: var(--muted); margin: 0 0 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-bottom: 12px; }
.loadout { display: flex; align-items: center; gap: 12px; }
.loadout .num { width: 36px; height: 36px; border-radius: 18px; border: 1.5px solid var(--accent); color: var(--accent); display: grid; place-items: center; font-weight: 800; flex: none; }
.loadout .main { flex: 1; min-width: 0; }
.loadout .title { font-weight: 700; font-size: 18px; }
.loadout .guns { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.updated { color: var(--fresh); font-size: 12px; }
label { display: block; font-size: 12px; letter-spacing: 0.6px; text-transform: uppercase; color: var(--muted); margin: 14px 0 6px; font-weight: 600; }
input, select { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: #07050c; color: var(--text); font-size: 17px; }
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
button { min-height: 48px; padding: 0 18px; border-radius: 14px; border: 1px solid var(--line); background: #15111f; color: var(--text); font-size: 16px; font-weight: 600; cursor: pointer; }
button:active { transform: scale(0.97); }
button.primary { background: var(--accent); border-color: var(--accent); color: #0a0612; font-weight: 800; width: 100%; }
button.link { background: none; border: none; color: var(--muted); min-height: 44px; padding: 0 4px; text-decoration: underline; }
button.small { min-height: 44px; min-width: 44px; padding: 0 12px; }
button:disabled { opacity: 0.45; }
.row { display: flex; gap: 8px; align-items: center; }
.row > input { flex: 1; min-width: 0; }
.att { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 8px; margin-bottom: 8px; align-items: center; }
.att input { min-width: 0; }
.att .tools { display: flex; gap: 4px; }
.gunhead { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.tag { border: 1.5px solid var(--blue); color: var(--blue); border-radius: 99px; padding: 2px 10px; font-weight: 800; font-size: 13px; }
.savebar { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(env(safe-area-inset-bottom) + 12px); background: linear-gradient(to top, #000 70%, rgba(0,0,0,0)); }
.savebar .inner { max-width: 528px; margin: 0 auto; }
.msg { padding: 12px 14px; border-radius: 12px; margin: 12px 0; font-size: 15px; }
.msg.ok { background: rgba(77,255,166,0.1); color: var(--fresh); }
.msg.bad { background: rgba(255,92,138,0.12); color: var(--bad); }
.change { border-top: 1px solid var(--line); padding: 10px 0; font-size: 14px; }
.change b { color: var(--text); }
.change .when { color: var(--muted); }
.order { display: flex; flex-direction: column; gap: 4px; }
/* dropdown editor (2026-12-03): one row per slot, picked slots light up purple */
.slot { display: grid; grid-template-columns: 96px 1fr; gap: 4px 10px; align-items: center; margin-bottom: 8px; }
.slot > input, .slot > .row { grid-column: 2; }
.slotname { font-size: 14px; color: var(--muted); font-weight: 600; }
select.on { border-color: var(--accent); background-color: rgba(167,123,255,0.1); }
select { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
select:disabled { opacity: 0.45; }
.count { float: right; color: var(--accent); text-transform: none; letter-spacing: 0; }
.count.full { color: var(--fresh); }
#title { margin-bottom: 16px; }
