/* Нейро.Art — «цифровой» интерфейс: тёмный неон по умолчанию, стекло, сетка, свечение. Светлая тема — по выбору. */
:root, :root[data-theme="dark"] {
  --bg: #090613; --bg2: #120b24; --surface: rgba(30, 21, 56, .66); --surface2: rgba(255, 255, 255, .045);
  --ink: #ece6ff; --muted: #9a8fc2; --line: rgba(156, 124, 255, .22); --line-strong: rgba(156, 124, 255, .5);
  --primary: #a77bff; --primary-ink: #0b0518; --primary-soft: rgba(167, 123, 255, .16);
  --grad: linear-gradient(115deg, #7c4dff 0%, #c04dff 52%, #ff5fa2 100%);
  --accent: #ff8a4c; --accent-soft: rgba(255, 138, 76, .15); --cyan: #3fe6ff; --cyan-soft: rgba(63, 230, 255, .13);
  --mint: #4be0b0; --mint-soft: rgba(75, 224, 176, .13);
  --danger: #ff7b8a; --danger-soft: rgba(255, 90, 110, .13); --warn-soft: rgba(255, 190, 80, .13);
  --glow: 0 0 22px rgba(167, 123, 255, .45); --shadow: 0 14px 44px rgba(0, 0, 0, .45);
  --grid: rgba(167, 123, 255, .07); --glass-blur: blur(16px);
  --radius: 16px; --tab-h: 64px; --head-h: 58px;
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f1eeff; --bg2: #e6e0fa; --surface: rgba(255, 255, 255, .78); --surface2: rgba(110, 70, 220, .05);
  --ink: #19102f; --muted: #6f6592; --line: rgba(110, 70, 220, .2); --line-strong: rgba(110, 70, 220, .45);
  --primary: #6a35e0; --primary-ink: #fff; --primary-soft: rgba(106, 53, 224, .1);
  --grad: linear-gradient(115deg, #5b2fd6 0%, #9a3fe0 52%, #ee4f93 100%);
  --accent: #e8581c; --accent-soft: rgba(232, 88, 28, .1); --cyan: #0a8fb0; --cyan-soft: rgba(10, 143, 176, .1);
  --mint: #1f9d78; --mint-soft: rgba(31, 157, 120, .1);
  --danger: #c0283f; --danger-soft: rgba(192, 40, 63, .09); --warn-soft: rgba(224, 150, 20, .12);
  --glow: 0 0 18px rgba(106, 53, 224, .25); --shadow: 0 10px 34px rgba(60, 30, 130, .14);
  --grid: rgba(106, 53, 224, .06);
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body {
  color: var(--ink); font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; overscroll-behavior-y: none; -webkit-text-size-adjust: 100%;
  background:
    radial-gradient(900px 520px at 88% -8%, rgba(124, 77, 255, .30), transparent 62%),
    radial-gradient(760px 460px at -8% 8%, rgba(255, 95, 162, .15), transparent 60%),
    radial-gradient(600px 400px at 50% 110%, rgba(63, 230, 255, .08), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
/* цифровая сетка поверх фона */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 25%, transparent 78%);
}
a { color: var(--cyan); }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.spacer { height: 12px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- каркас ---------- */
#app { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: calc(var(--sat) + 8px) 16px 8px;
  min-height: calc(var(--head-h) + var(--sat)); background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border-bottom: 1px solid var(--line);
}
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent); opacity: .55; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.3px; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: 32px; object-fit: contain; filter: drop-shadow(0 0 9px rgba(167, 123, 255, .6)); }
.brand i { font-style: normal; color: var(--accent); text-shadow: 0 0 12px var(--accent); }
.pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; min-height: 36px; border: 1px solid var(--line-strong);
  background: var(--primary-soft); color: var(--ink); font: 700 14px var(--mono); font-variant-numeric: tabular-nums; box-shadow: inset 0 0 14px rgba(167, 123, 255, .12);
}
.pill b, .pill .g { color: var(--cyan); text-shadow: 0 0 10px var(--cyan); font-weight: 700; }
.iconbtn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface2); display: grid; place-items: center; font-size: 18px; }
.iconbtn svg { width: 20px; height: 20px; }
main#view { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 16px 16px calc(var(--tab-h) + var(--sab) + 96px); }
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; padding-bottom: var(--sab);
  background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border-top: 1px solid var(--line);
}
.tab { position: relative; flex: 1; min-height: var(--tab-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: none; color: var(--muted); font: 600 11px var(--mono); letter-spacing: .04em; text-transform: uppercase; text-decoration: none; }
.tab .ic { width: 24px; height: 24px; display: block; }
.tab .ic svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tab.active { color: var(--primary); text-shadow: 0 0 14px var(--primary); }
.tab.active::before { content: ""; position: absolute; top: -1px; left: 22%; right: 22%; height: 2px; background: var(--grad); box-shadow: 0 0 12px var(--primary); border-radius: 2px; }
@media (min-width: 900px) {
  :root { --tab-h: 0px; }
  .tabbar { position: sticky; top: calc(var(--head-h) + var(--sat)); bottom: auto; border-top: 0; border-bottom: 1px solid var(--line); justify-content: center; z-index: 29; padding: 0; }
  .tab { flex: 0 0 auto; flex-direction: row; gap: 9px; padding: 0 24px; min-height: 48px; font-size: 12px; }
  .tab .ic { width: 18px; height: 18px; }
  .tab.active::before { top: auto; bottom: -1px; left: 18%; right: 18%; }
  main#view { padding-bottom: 60px; }
}

/* ---------- элементы ---------- */
.card {
  position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px;
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.card::before { content: ""; position: absolute; left: 12%; right: 12%; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--primary), transparent); opacity: .7; }
.card + .card { margin-top: 14px; }
.card h2 { font-size: 17px; margin-bottom: 4px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.card h2 .idx { font: 700 12px var(--mono); color: var(--cyan); letter-spacing: .08em; text-shadow: 0 0 10px var(--cyan); }
.card .hint { color: var(--muted); font-size: 13.5px; margin-bottom: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 13px;
  border: 1px solid var(--line-strong); background: var(--surface2); font-weight: 650; text-decoration: none; color: var(--ink);
  transition: box-shadow .18s, border-color .18s, transform .08s;
}
.btn:hover { box-shadow: 0 0 18px rgba(167, 123, 255, .28); border-color: var(--primary); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--grad); border-color: transparent; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .25); box-shadow: 0 6px 24px rgba(160, 80, 255, .45), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn.primary:hover { box-shadow: 0 8px 32px rgba(190, 80, 255, .65), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn.mint { background: var(--mint); border-color: var(--mint); color: #04231a; }
.btn.ghost { background: transparent; border-color: var(--line); }
.btn.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, transparent); }
.btn.sm { min-height: 36px; padding: 0 12px; border-radius: 10px; font-size: 14px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
label.lbl { display: block; font: 600 11.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 7px; }
.input, textarea.input, select.input {
  width: 100%; border: 1px solid var(--line); background: rgba(0, 0, 0, .22); border-radius: 12px; padding: 12px 14px; min-height: 46px; outline: none; font-size: 16px;
  transition: border-color .15s, box-shadow .15s;
}
:root[data-theme="light"] .input, :root[data-theme="light"] textarea.input, :root[data-theme="light"] select.input { background: rgba(255, 255, 255, .7); }
.input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px var(--cyan-soft), 0 0 18px var(--cyan-soft); }
.input::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
textarea.input { resize: vertical; min-height: 110px; line-height: 1.5; }
select.input option { background: #1a1230; color: #ece6ff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--surface2); border-radius: 999px; padding: 8px 14px; min-height: 38px; font: 600 14px var(--mono); transition: all .15s; }
.chip:hover { border-color: var(--primary); }
.chip.on { background: var(--primary-soft); color: var(--ink); border-color: var(--primary); box-shadow: 0 0 14px rgba(167, 123, 255, .35), inset 0 0 12px rgba(167, 123, 255, .15); }
.badge { display: inline-block; font: 700 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 7px; background: var(--cyan-soft); color: var(--cyan); border: 1px solid color-mix(in srgb, var(--cyan) 35%, transparent); }
.badge.pink { background: var(--accent-soft); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.alert { padding: 12px 14px; border-radius: 12px; font-size: 14.5px; background: var(--warn-soft); border: 1px solid color-mix(in srgb, #ffbe50 30%, transparent); }
.alert.err { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 50%, transparent); }
.alert.ok { background: var(--mint-soft); border-color: color-mix(in srgb, var(--mint) 40%, transparent); }
pre.raw { white-space: pre-wrap; word-break: break-word; background: rgba(0, 0, 0, .3); border: 1px dashed var(--line-strong); border-radius: 10px; padding: 10px 12px; font: 12.5px/1.4 var(--mono); margin: 8px 0 0; max-height: 220px; overflow: auto; color: var(--ink); }

/* ---------- студия ---------- */
.studio { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 980px) { .studio { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; } .studio .side { position: sticky; top: 112px; } }
.models { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.model { text-align: left; border: 1px solid var(--line); background: var(--surface2); border-radius: 13px; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; min-height: 72px; transition: all .15s; }
.model:hover { border-color: var(--primary); }
.model.on { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 20px rgba(167, 123, 255, .35), inset 0 0 18px rgba(167, 123, 255, .12); }
.model b { font-size: 14px; line-height: 1.2; }
.model small { color: var(--muted); font: 11.5px var(--mono); }
.mgroup { font: 700 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); margin: 14px 0 7px; opacity: .85; }
.mgroup:first-child { margin-top: 0; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ph { border: 1px solid var(--line); border-radius: 14px; background: var(--surface2); overflow: hidden; display: flex; flex-direction: column; }
.ph .img { position: relative; aspect-ratio: 1; background: rgba(0, 0, 0, .25); }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph .num { position: absolute; left: 8px; top: 8px; background: rgba(8, 4, 20, .78); color: var(--cyan); font: 700 11px var(--mono); letter-spacing: .06em; padding: 3px 8px; border-radius: 7px; border: 1px solid color-mix(in srgb, var(--cyan) 35%, transparent); }
.ph .acts { position: absolute; right: 6px; top: 6px; display: flex; gap: 4px; }
.ph .acts button { width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line-strong); background: rgba(8, 4, 20, .72); color: #fff; font-size: 13px; }
.ph input { border: 0; border-top: 1px solid var(--line); background: transparent; padding: 9px 10px; font-size: 14px; outline: none; width: 100%; }
.ph input:focus { background: var(--cyan-soft); }
.add { border: 1.5px dashed var(--line-strong); border-radius: 14px; min-height: 150px; display: grid; place-items: center; text-align: center; color: var(--muted); background: transparent; padding: 10px; transition: all .15s; }
.add:hover, .add.drag { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 22px var(--cyan-soft), inset 0 0 22px var(--cyan-soft); }
.add .plus { font-size: 30px; line-height: 1; }
.genbar { position: fixed; left: 0; right: 0; bottom: calc(var(--tab-h) + var(--sab)); z-index: 35; padding: 10px 16px; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border-top: 1px solid var(--line); }
.genbar .inner { max-width: 1180px; margin: 0 auto; display: flex; gap: 10px; align-items: center; }
.genbar .btn.primary { flex: 1; min-height: 52px; font-size: 17px; letter-spacing: .01em; }
@media (min-width: 900px) { .genbar { bottom: 0; } }
.result { min-height: 220px; display: grid; place-items: center; text-align: center; }
.result img.out { max-width: 100%; max-height: 70vh; border-radius: 14px; display: block; margin: 0 auto; background: repeating-conic-gradient(#2a2145 0 25%, #1b1432 0 50%) 0 0 / 16px 16px; box-shadow: 0 0 34px rgba(167, 123, 255, .3); border: 1px solid var(--line-strong); }
.spinner { width: 58px; height: 58px; border-radius: 50%; margin: 0 auto 16px; background: conic-gradient(from 0deg, transparent 0 30%, var(--primary) 70%, var(--cyan) 100%); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px)); animation: spin .9s linear infinite; filter: drop-shadow(0 0 10px var(--primary)); }
@keyframes spin { to { transform: rotate(360deg); } }
.scan { height: 3px; width: 100%; max-width: 280px; margin: 14px auto 0; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--cyan), transparent) 0 0 / 50% 100% no-repeat, var(--line); animation: scan 1.6s ease-in-out infinite; }
@keyframes scan { 0% { background-position: -60% 0; } 100% { background-position: 160% 0; } }
.preview-prompt { white-space: pre-wrap; font: 13px/1.5 var(--mono); background: rgba(0, 0, 0, .28); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; max-height: 260px; overflow: auto; margin: 8px 0 0; }

/* ---------- окна ---------- */
.overlay { position: fixed; inset: 0; z-index: 80; background: rgba(4, 2, 12, .7); backdrop-filter: blur(6px); display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: color-mix(in srgb, var(--bg2) 94%, transparent); border: 1px solid var(--line-strong); width: 100%; max-width: 640px; max-height: 88vh; overflow: auto; border-radius: 22px 22px 0 0; padding: 18px 16px calc(18px + var(--sab)); box-shadow: 0 -10px 60px rgba(124, 77, 255, .25); }
@media (min-width: 700px) { .overlay { align-items: center; } .sheet { border-radius: 22px; } }
.sheet h2 { font-size: 19px; margin-bottom: 12px; }
.sheet .close { float: right; }
.tpl { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; border: 1px solid var(--line); background: var(--surface2); border-radius: 13px; padding: 12px; margin-bottom: 8px; transition: all .15s; }
.tpl:hover { border-color: var(--primary); box-shadow: 0 0 16px rgba(167, 123, 255, .25); }
.tpl .em { font-size: 26px; line-height: 1; }
.tpl b { display: block; font-size: 15px; }
.tpl small { color: var(--muted); }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tab-h) + var(--sab) + 90px); z-index: 99; background: rgba(14, 8, 30, .95); color: #fff; padding: 11px 16px; border-radius: 12px; font-size: 14.5px; max-width: 90vw; border: 1px solid var(--primary); box-shadow: 0 0 26px rgba(167, 123, 255, .45); }

/* ---------- галерея ---------- */
.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.gal button { padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: rgba(0, 0, 0, .25); aspect-ratio: 1; transition: all .15s; }
.gal button:hover { border-color: var(--primary); box-shadow: 0 0 20px rgba(167, 123, 255, .35); }
.gal img { width: 100%; height: 100%; object-fit: cover; display: block; }
.viewer img { max-width: 100%; max-height: 62vh; display: block; margin: 0 auto 12px; border-radius: 12px; border: 1px solid var(--line-strong); }

/* ---------- вход ---------- */
.authwrap { max-width: 440px; margin: 4vh auto 0; }
.authwrap .logo { width: 140px; height: 112px; object-fit: contain; display: block; margin: 0 auto 8px; filter: drop-shadow(0 0 22px rgba(167, 123, 255, .65)); }
.authwrap h1 { text-align: center; font-size: 28px; margin-bottom: 4px; }
.authwrap h1 i { font-style: normal; color: var(--accent); text-shadow: 0 0 14px var(--accent); }
.authwrap .sub { text-align: center; color: var(--muted); margin-bottom: 18px; font-family: var(--mono); font-size: 13px; letter-spacing: .02em; }
.seg { display: flex; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); border-radius: 12px; padding: 4px; margin-bottom: 14px; }
.seg button { flex: 1; border: 0; background: transparent; border-radius: 9px; padding: 10px; font-weight: 700; color: var(--muted); }
.seg button.on { background: var(--primary-soft); color: var(--ink); box-shadow: 0 0 14px rgba(167, 123, 255, .35), inset 0 0 0 1px var(--primary); }
.field { margin-bottom: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 12px 0; }
.check input { width: 22px; height: 22px; margin-top: 1px; accent-color: #a77bff; flex: none; }
.codein { text-align: center; font: 800 28px var(--mono); letter-spacing: 10px; }

/* ---------- баланс ---------- */
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.pack { border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: var(--surface2); text-align: center; transition: all .15s; }
.pack:hover { border-color: var(--primary); box-shadow: 0 0 22px rgba(167, 123, 255, .3); }
.pack.best { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 26px rgba(255, 138, 76, .25); }
.pack .n { font: 800 38px var(--mono); line-height: 1; color: var(--cyan); text-shadow: 0 0 18px var(--cyan); }
.pack .p { font: 800 20px var(--mono); margin: 8px 0 2px; }
.bal-big { font: 800 40px var(--mono); color: var(--cyan); text-shadow: 0 0 22px var(--cyan); font-variant-numeric: tabular-nums; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th, table.t td { text-align: left; padding: 9px 6px; border-bottom: 1px solid var(--line); }
table.t th { color: var(--muted); font: 600 11.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
table.t td:last-child { font-family: var(--mono); }
.tip { display: flex; gap: 10px; align-items: center; background: var(--cyan-soft); border: 1px solid color-mix(in srgb, var(--cyan) 30%, transparent); border-radius: 14px; padding: 12px 14px; font-size: 14px; margin-bottom: 14px; }
.tip button { margin-left: auto; border: 0; background: none; font-size: 18px; }
.build-grid { display: grid; gap: 12px; }
@media (min-width: 760px) { .build-grid { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) { .spinner, .scan { animation-duration: 4s; } .btn, .chip, .model { transition: none; } }

/* ---------- композиции: явная связь «номер на сайте = номер у модели» ---------- */
.ph .num { display: inline-flex; align-items: baseline; gap: 5px; padding: 4px 10px 4px 8px; background: rgba(8, 4, 20, .85); border-color: var(--cyan); box-shadow: 0 0 14px var(--cyan-soft); }
.ph .num b { font: 800 22px/1 var(--mono); color: var(--cyan); text-shadow: 0 0 12px var(--cyan); }
.ph .num { font-size: 10px; letter-spacing: .12em; }
.mapnote { margin-top: 12px; padding: 10px 12px; border-radius: 12px; font-size: 13.5px; background: var(--cyan-soft); border: 1px solid color-mix(in srgb, var(--cyan) 30%, transparent); }
.mapnote.warn { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.inserts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.chip.sm { min-height: 32px; padding: 4px 11px; font-size: 13px; }
.chip.sm b { color: var(--cyan); font-family: var(--mono); text-shadow: 0 0 8px var(--cyan); }
.warns { display: grid; gap: 6px; margin-top: 8px; }
.warnline { font-size: 13.5px; padding: 8px 11px; border-radius: 10px; background: var(--warn-soft); border: 1px solid color-mix(in srgb, #ffbe50 30%, transparent); }
.warnline.over { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 45%, transparent); }
mark.imgref { background: var(--cyan-soft); color: var(--cyan); border: 1px solid color-mix(in srgb, var(--cyan) 40%, transparent); border-radius: 5px; padding: 0 4px; font-weight: 700; text-shadow: 0 0 8px var(--cyan); }
.usedrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.used { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--muted); max-width: 72px; }
.used img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line-strong); }
.used b { position: absolute; top: -6px; left: -6px; min-width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px; background: #090613; color: var(--cyan); border: 1px solid var(--cyan); font-size: 12px; box-shadow: 0 0 10px var(--cyan-soft); }
