/* Vynrune: black glass */
:root {
  --bg: #060607;
  --bg-2: #0c0c0e;
  --glass: rgba(16, 16, 19, 0.58);
  --glass-2: rgba(28, 28, 32, 0.55);
  --glass-strong: rgba(10, 10, 12, 0.82);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f3f3f5;
  --muted: #8b8b95;
  --muted-2: #5d5d66;
  --accent: #ffffff;
  --accent-ink: #0a0a0c;
  --danger: #ff6b6b;
  --ok: #7ee2a8;
  --warn: #ffd166;
  --radius: 18px;
  --radius-s: 11px;
  --blur: blur(22px) saturate(140%);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.55), 0 1px 0 rgba(255, 255, 255, 0.05) inset;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Syne", var(--font);
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
::selection { background: rgba(255,255,255,.22); }
:focus-visible { outline: 2px solid rgba(255,255,255,.6); outline-offset: 2px; }

/* backdrop */
.bg {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(1200px 800px at 70% -10%, #1a1a1f 0%, var(--bg) 55%);
}
.bg .blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .22; background: #fff; animation: drift 26s ease-in-out infinite alternate; }
.bg .b1 { width: 520px; height: 520px; left: -160px; top: -120px; }
.bg .b2 { width: 640px; height: 640px; right: -220px; top: 30%; opacity: .12; animation-duration: 34s; }
.bg .b3 { width: 420px; height: 420px; left: 35%; bottom: -220px; opacity: .1; animation-duration: 40s; }
.bg .grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse at 50% 0%, #000 10%, transparent 70%); }
.bg .noise { position: absolute; inset: 0; opacity: .5; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes drift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(60px, 40px, 0) scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .bg .blob { animation: none; } }

/* glass primitives */
.glass { background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.glass-2 { background: var(--glass-2); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid var(--line); border-radius: var(--radius-s); }
.card { padding: 20px; }
.card h3 { margin: 0 0 10px; font-size: 15px; letter-spacing: .01em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.grow { flex: 1 1 auto; min-width: 0; }
.hide { display: none !important; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* nav */
.nav { position: sticky; top: 12px; z-index: 50; margin: 12px auto 0; max-width: 1240px; padding: 0 16px; }
.nav-inner { display: flex; align-items: center; gap: 6px; padding: 8px 10px 8px 14px; border-radius: 999px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; letter-spacing: .06em; font-size: 17px; margin-right: 10px; }
.brand .logo { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 2px; flex: 1; }
.nav-links a { padding: 8px 12px; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: 14px; transition: .15s; }
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.06); }
.nav-links a.active { color: var(--text); background: rgba(255,255,255,.1); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-user { display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.04); }
.nav-user .av { width: 28px; height: 28px; border-radius: 50%; overflow: hidden; background: #222; }
.nav-user b { font-size: 13px; font-weight: 600; }
.nav-user .lvl { font-size: 11px; color: var(--muted); }
.burger { display: none; }
.mobile-menu { display: none; }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .burger { display: inline-flex; }
  .mobile-menu { display: block; position: fixed; inset: 0; z-index: 60; background: var(--glass-strong); backdrop-filter: var(--blur); padding: 24px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .2s; }
  .mobile-menu.open { transform: none; opacity: 1; pointer-events: auto; }
  .mobile-menu a { display: block; padding: 14px 8px; font-size: 20px; font-family: var(--display); font-weight: 700; border-bottom: 1px solid var(--line); }
}

/* layout */
.page { max-width: 1240px; margin: 0 auto; padding: 28px 16px 80px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
h1, h2 { font-family: var(--display); letter-spacing: -.01em; margin: 0; }
h1 { font-size: 34px; font-weight: 800; line-height: 1.1; }
h2 { font-size: 22px; font-weight: 700; }
.eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.lead { color: var(--muted); font-size: 16px; max-width: 60ch; }
.section { margin-top: 36px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head a { color: var(--muted); font-size: 13px; }
.section-head a:hover { color: var(--text); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.06); color: var(--text); font-weight: 600; font-size: 14px; cursor: pointer; transition: .15s; white-space: nowrap; line-height: 1.2; }
.btn:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.22); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { background: #e9e9ec; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: rgba(255,255,255,.06); }
.btn.danger { color: var(--danger); border-color: rgba(255,107,107,.3); }
.btn.danger:hover { background: rgba(255,107,107,.1); }
.btn.sm { padding: 6px 11px; font-size: 13px; }
.btn.xs { padding: 4px 8px; font-size: 12px; gap: 5px; }
.btn.icon { padding: 8px; width: 36px; height: 36px; }
.btn.icon.sm { width: 30px; height: 30px; padding: 5px; }
.btn.on { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.3); }
.btn svg, .ic { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn.xs svg { width: 13px; height: 13px; }

/* inputs */
.input, select.input, textarea.input { width: 100%; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(0,0,0,.35); color: var(--text); outline: none; transition: .15s; }
.input:focus { border-color: rgba(255,255,255,.4); background: rgba(0,0,0,.5); }
.input::placeholder { color: var(--muted-2); }
textarea.input { resize: vertical; min-height: 84px; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b8b95' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.input.sm { padding: 7px 10px; font-size: 13px; border-radius: 9px; }
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
label.field > span { font-weight: 500; }
.search { position: relative; }
.search .ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search .input { padding-left: 38px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: #fff; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--muted); font-size: 13px; font-weight: 500; cursor: pointer; transition: .15s; }
.pill:hover { color: var(--text); border-color: var(--line-2); }
.pill.on { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.tag { display: inline-block; padding: 2px 8px; border-radius: 6px; background: rgba(255,255,255,.07); font-size: 12px; color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; border: 1px solid var(--line-2); background: rgba(255,255,255,.06); }
.badge.lvl { background: #fff; color: #000; border-color: #fff; }

/* skin cards */
.skin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; }
.skin-grid.compact { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; }
.skin-card { display: flex; flex-direction: column; padding: 12px; gap: 10px; transition: transform .2s, border-color .2s, background .2s; position: relative; }
.skin-card:hover { transform: translateY(-3px); border-color: var(--line-2); background: rgba(34,34,40,.6); }
.skin-art { aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; }
.skin-art svg { width: 78%; height: 78%; filter: drop-shadow(0 10px 24px rgba(0,0,0,.5)); }
.skin-name { font-weight: 600; font-size: 14px; }
.skin-by { font-size: 12px; color: var(--muted); }
.skin-stats { display: flex; gap: 10px; font-size: 12px; color: var(--muted); }
.skin-stats span { display: inline-flex; align-items: center; gap: 4px; }
.skin-stats svg { width: 12px; height: 12px; }
.skin-card .ribbon { position: absolute; top: 10px; right: 10px; }
.skeleton { background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.09), rgba(255,255,255,.04)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius); min-height: 220px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty b { display: block; color: var(--text); font-size: 17px; margin-bottom: 6px; }

/* home hero */
.hero { padding: 56px 36px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; align-items: center; overflow: hidden; position: relative; }
.hero h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1; }
.hero h1 span { color: var(--muted); }
.hero .lead { margin: 18px 0 26px; }
.hero-art { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hero-art .orb { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; animation: float 6s ease-in-out infinite; }
.hero-art .orb:nth-child(2n) { animation-delay: -2s; }
.hero-art .orb:nth-child(3n) { animation-delay: -4s; }
.hero-art svg { width: 100%; height: 100%; filter: drop-shadow(0 20px 40px rgba(0,0,0,.6)); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.stat { padding: 16px 18px; }
.stat b { font-family: var(--display); font-size: 26px; display: block; }
.stat span { color: var(--muted); font-size: 12.5px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature { padding: 22px; }
.feature .ic { width: 22px; height: 22px; margin-bottom: 12px; }
.feature b { display: block; margin-bottom: 4px; }
.feature p { margin: 0; color: var(--muted); font-size: 13.5px; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; padding: 36px 22px; } .stats-row, .features { grid-template-columns: repeat(2, 1fr); } }

/* tables */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); font-weight: 600; }
.table td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr.me td { background: rgba(255,255,255,.05); }
.table .rank { color: var(--muted); font-family: var(--display); font-weight: 700; width: 48px; }
.table .rank.top { color: #fff; }
.table a.name { font-weight: 600; }
.table a.name:hover { text-decoration: underline; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }
.online { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); margin-right: 6px; }
.offline { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--muted-2); margin-right: 6px; }

/* progress */
.progress { height: 10px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, #d9d9df, #fff); border-radius: 999px; transition: width .6s cubic-bezier(.2,.8,.2,1); }
.big-num { font-family: var(--display); font-size: 40px; font-weight: 800; line-height: 1; }

/* tabs */
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(0,0,0,.35); border: 1px solid var(--line); width: max-content; max-width: 100%; overflow-x: auto; }
.tabs button { padding: 8px 14px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap; }
.tabs button.on { background: rgba(255,255,255,.12); color: var(--text); }

/* modal */
.modal-root { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: .18s; }
.modal-root.open { opacity: 1; pointer-events: auto; }
.modal { width: min(520px, 100%); max-height: 90vh; overflow: auto; padding: 24px; transform: translateY(10px) scale(.98); transition: .18s; background: var(--glass-strong); }
.modal-root.open .modal { transform: none; }
.modal.wide { width: min(880px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.modal-head h2 { font-size: 19px; }

/* toasts */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 200; display: flex; flex-direction: column; gap: 8px; max-width: min(380px, calc(100vw - 32px)); }
.toast { padding: 12px 16px; border-radius: 12px; font-size: 14px; background: var(--glass-strong); border: 1px solid var(--line-2); box-shadow: var(--shadow); animation: toastin .2s; display: flex; gap: 10px; align-items: flex-start; }
.toast.ok { border-color: rgba(126,226,168,.4); }
.toast.err { border-color: rgba(255,107,107,.45); }
@keyframes toastin { from { opacity: 0; transform: translateY(8px); } }

/* skin detail */
.detail { display: grid; grid-template-columns: 360px 1fr; gap: 24px; }
.detail-art { padding: 28px; display: grid; place-items: center; }
.detail-art svg { width: 100%; max-width: 280px; filter: drop-shadow(0 30px 60px rgba(0,0,0,.6)); }
.detail h1 { font-size: 30px; }
.vote { display: inline-flex; border-radius: 999px; border: 1px solid var(--line-2); overflow: hidden; }
.vote button { padding: 8px 14px; border: 0; background: rgba(255,255,255,.04); color: var(--muted); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; font-weight: 600; }
.vote button:hover { background: rgba(255,255,255,.1); color: var(--text); }
.vote button.on { background: #fff; color: #000; }
.vote b { padding: 8px 12px; border-left: 1px solid var(--line-2); border-right: 1px solid var(--line-2); font-family: var(--display); }
.code-box { display: flex; gap: 8px; align-items: center; }
.code-box .input { font-family: var(--mono); font-size: 12px; }
.sizes { display: flex; gap: 16px; align-items: flex-end; }
.sizes svg { filter: drop-shadow(0 4px 10px rgba(0,0,0,.6)); }
@media (max-width: 860px) { .detail { grid-template-columns: 1fr; } }

/* profile */
.profile-head { display: grid; grid-template-columns: 120px 1fr auto; gap: 22px; align-items: center; padding: 26px; }
.profile-head .av { width: 120px; height: 120px; border-radius: 50%; }
.profile-head .av svg { width: 100%; height: 100%; filter: drop-shadow(0 16px 30px rgba(0,0,0,.6)); }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.kv div { padding: 12px 14px; }
.kv b { display: block; font-family: var(--display); font-size: 20px; }
.kv span { font-size: 12px; color: var(--muted); }
.slots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.slot { padding: 14px; text-align: center; position: relative; }
.slot svg { width: 100%; max-width: 110px; margin: 0 auto 8px; filter: drop-shadow(0 12px 24px rgba(0,0,0,.55)); }
.slot .n { font-size: 12px; color: var(--muted); }
.slot.active { border-color: rgba(255,255,255,.5); }
.slot.active::after { content: "active"; position: absolute; top: 8px; right: 8px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: #fff; color: #000; font-weight: 700; }
@media (max-width: 860px) { .profile-head { grid-template-columns: 80px 1fr; } .profile-head .av { width: 80px; height: 80px; } .slots { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .slots { grid-template-columns: repeat(2, 1fr); } }

/* dashboard */
.dash { display: grid; grid-template-columns: 220px 1fr; gap: 20px; }
.side { padding: 10px; position: sticky; top: 90px; align-self: start; }
.side a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--muted); font-weight: 500; font-size: 14px; }
.side a:hover { background: rgba(255,255,255,.05); color: var(--text); }
.side a.active { background: rgba(255,255,255,.1); color: var(--text); }
@media (max-width: 860px) { .dash { grid-template-columns: 1fr; } .side { position: static; display: flex; overflow-x: auto; gap: 4px; } .side a { white-space: nowrap; } }

/* editor */
.editor { display: grid; grid-template-columns: 250px minmax(0, 1fr) 300px; gap: 14px; min-height: calc(100vh - 160px); }
.ed-panel { padding: 12px; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.ed-panel h4 { margin: 2px 2px 4px; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.ed-stage { display: flex; flex-direction: column; gap: 12px; align-items: center; padding: 14px; }
.ed-toolbar { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.ed-canvas-wrap { position: relative; width: min(560px, 100%); aspect-ratio: 1; }
.ed-canvas { width: 100%; height: 100%; touch-action: none; user-select: none; border-radius: 50%; overflow: visible; }
.ed-canvas .layer { cursor: grab; }
.ed-canvas .layer.locked { cursor: default; }
.ed-canvas .sel-box { fill: none; stroke: #fff; stroke-width: .18; stroke-dasharray: .5 .35; pointer-events: none; }
.ed-canvas .handle { fill: #fff; stroke: #000; stroke-width: .12; cursor: nwse-resize; }
.ed-canvas .handle.rot { cursor: grab; }
.ed-canvas .outline { fill: none; stroke: rgba(255,255,255,.18); stroke-width: .12; pointer-events: none; }
.ed-previews { display: flex; gap: 14px; align-items: flex-end; }
.ed-previews div { text-align: center; color: var(--muted); font-size: 11px; }
.ed-previews svg { margin: 0 auto 4px; }
.layers { display: flex; flex-direction: column; gap: 4px; overflow: auto; max-height: 50vh; }
.layer-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 9px; border: 1px solid transparent; cursor: pointer; font-size: 13px; }
.layer-row:hover { background: rgba(255,255,255,.05); }
.layer-row.on { background: rgba(255,255,255,.1); border-color: var(--line-2); }
.layer-row .thumb { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 6px; background: rgba(0,0,0,.35); flex: none; }
.layer-row .thumb svg { width: 20px; height: 20px; }
.layer-row .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.layer-row .sw { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); flex: none; }
.layer-row .btn.xs { opacity: .5; }
.layer-row:hover .btn.xs, .layer-row.on .btn.xs { opacity: 1; }
.layer-row.hidden-layer { opacity: .45; }
.props { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.props label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.props input { width: 100%; }
.swatches { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.swatches button { aspect-ratio: 1; border-radius: 5px; border: 1px solid rgba(0,0,0,.4); cursor: pointer; padding: 0; }
.swatches button.on { outline: 2px solid #fff; outline-offset: 1px; }
.color-row { display: flex; gap: 8px; align-items: center; }
.color-row input[type=color] { width: 38px; height: 34px; border-radius: 8px; border: 1px solid var(--line-2); background: transparent; padding: 2px; cursor: pointer; }
.shape-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; max-height: 60vh; overflow: auto; padding: 2px; }
.shape-cell { aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: rgba(0,0,0,.3); cursor: pointer; position: relative; transition: .12s; }
.shape-cell:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.08); }
.shape-cell svg { width: 70%; height: 70%; fill: #fff; }
.shape-cell span { position: absolute; left: 6px; top: 4px; font-size: 10px; color: var(--muted); }
.kbd { display: inline-block; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line-2); background: rgba(255,255,255,.05); font-family: var(--mono); font-size: 11px; color: var(--muted); }
@media (max-width: 1100px) { .editor { grid-template-columns: 1fr; } .side-left { order: 2; } .side-right { order: 3; } .ed-stage { order: 1; } }

/* misc */
.footer { max-width: 1240px; margin: 40px auto 30px; padding: 0 16px; color: var(--muted-2); font-size: 12.5px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer a:hover { color: var(--text); }
.pager { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 22px; color: var(--muted); font-size: 13px; }
.notice { padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255,209,102,.3); background: rgba(255,209,102,.06); font-size: 13.5px; }
.notice.err { border-color: rgba(255,107,107,.35); background: rgba(255,107,107,.06); }
.hr { height: 1px; background: var(--line); margin: 14px 0; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.2); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.lb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .lb-grid { grid-template-columns: 1fr; } }
.room-row td .mode { font-size: 12px; color: var(--muted); }
.flag { width: 18px; height: 13px; border-radius: 2px; object-fit: cover; display: inline-block; vertical-align: middle; margin-right: 6px; }
.calc { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.about p { color: var(--muted); max-width: 70ch; }
