:root { color-scheme: dark; --line: rgba(255,255,255,.14); --muted: #9d9d9d; }
* { box-sizing: border-box; }
body { margin: 0; background: #050505; color: #f5f5f5; font-family: Manrope, sans-serif; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2 { font-family: Syne, sans-serif; letter-spacing: -0.04em; margin: 0; }
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.card { width: min(440px, 100%); background: #111; border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: grid; gap: 12px; }
.shell { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
aside { border-right: 1px solid var(--line); padding: 22px 16px; display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100vh; }
.brand { font-family: Syne, sans-serif; font-size: 1.5rem; padding: 6px 10px 18px; }
aside button, .ghost {
  text-align: left; background: transparent; border: 0; color: #cfcfcf; border-radius: 12px; padding: 10px 12px;
}
aside button.on, aside button:hover { background: #171717; color: #fff; }
aside .spacer { flex: 1; }
main { padding: 28px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0; }
.stat, .panel { background: #111; border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.stat span { color: var(--muted); display: block; font-size: .82rem; }
.stat strong { font-size: 1.6rem; }
.table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .92rem; }
th { color: var(--muted); font-weight: 500; }
.dot { width: 8px; height: 8px; border-radius: 99px; display: inline-block; background: #555; margin-right: 6px; }
.dot.on { background: #fff; }
.btn, .btn-ghost { border-radius: 999px; padding: 10px 14px; border: 1px solid #fff; background: #fff; color: #050505; font-weight: 700; }
.btn-ghost { background: transparent; color: #fff; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
input, textarea, select { width: 100%; background: #0c0c0c; border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; }
textarea { min-height: 90px; }
label { display: grid; gap: 6px; font-size: .82rem; color: #d0d0d0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form { display: grid; gap: 12px; max-width: 980px; }
.variant, .image-row { display: grid; grid-template-columns: 1.2fr .7fr .6fr .7fr .6fr .8fr auto; gap: 8px; align-items: center; }
.image-row { grid-template-columns: 1.4fr .8fr auto; }
.thumb { width: 54px; height: 68px; object-fit: cover; border-radius: 8px; background: #1a1a1a; }
.err { color: #ffb4b4; }
.top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-end; margin-bottom: 16px; }
.check { display: flex; gap: 8px; align-items: center; }
.check input { width: auto; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  aside { position: static; height: auto; }
  .stats, .grid-2, .variant, .image-row { grid-template-columns: 1fr; }
  main { padding: 16px; }
}
