:root {
  --bg: #f6f7f9; --card: #fff; --ink: #1d2330; --muted: #667085; --line: #e4e7ec;
  --brand: #4f46e5; --brand-ink: #fff; --ok: #067647; --ok-bg: #ecfdf3; --err: #b42318; --err-bg: #fef3f2;
  --warn: #93370d; --warn-bg: #fffaeb; --chip: #f2f4f7;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1218; --card: #181c25; --ink: #e6e8ee; --muted: #98a2b3; --line: #2a303c;
    --brand: #8b85ff; --brand-ink: #0f1218; --ok: #75e0a7; --ok-bg: #0b2a1c; --err: #fda29b; --err-bg: #3a1311;
    --warn: #fec84b; --warn-bg: #2e2208; --chip: #232835;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
header { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
header .in { max-width: 1180px; margin: 0 auto; padding: 10px 16px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.logo { font-family: "Unbounded", system-ui, sans-serif; font-weight: 800; letter-spacing: .14em; color: var(--ink);
  background: linear-gradient(100deg, #6d5dfc 0%, #2a78d6 45%, #19b5c9 100%); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; }
header .logo { font-size: 24px; text-decoration: none; margin-right: 6px; }
header .logo:hover { text-decoration: none; filter: brightness(1.15); }
.logo.big { font-size: 40px; text-align: center; margin: 6px 0 18px; }
header nav { display: flex; gap: 14px; flex-wrap: wrap; flex: 1; }
header nav a { color: var(--muted); font-weight: 600; }
header nav a.on { color: var(--ink); }
main { max-width: 1180px; margin: 0 auto; padding: 20px 16px 60px; }
h1 { font-size: 24px; margin: 4px 0 16px; }
h2 { font-size: 17px; margin: 0 0 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin-bottom: 16px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.two { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
label { display: block; font-weight: 600; font-size: 13px; margin: 12px 0 5px; }
label .muted { font-weight: 400; }
input[type=text], input[type=password], input[type=email], input[type=url], input:not([type]), select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line);
  border-radius: 9px; padding: 9px 11px; }
textarea { min-height: 84px; resize: vertical; }
input[type=color] { width: 52px; height: 38px; border: 1px solid var(--line); border-radius: 9px; background: none; padding: 2px; }
.btn, button { font: inherit; font-weight: 650; border: 1px solid var(--line); background: var(--card); color: var(--ink);
  border-radius: 9px; padding: 8px 14px; cursor: pointer; display: inline-block; }
.btn.primary, button.primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.btn.danger, button.danger { color: var(--err); }
button.link { border: 0; background: none; padding: 0; color: var(--brand); font-weight: 600; }
form.inline { display: inline; }
.flash { border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; }
.flash.ok { background: var(--ok-bg); color: var(--ok); }
.flash.error { background: var(--err-bg); color: var(--err); }
.warn { background: var(--warn-bg); color: var(--warn); border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; }
.chip { display: inline-block; background: var(--chip); border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 650; }
.chip.live { background: var(--ok-bg); color: var(--ok); }
.chip.pending { background: var(--warn-bg); color: var(--warn); }
.chip.failed { background: var(--err-bg); color: var(--err); }
.chip.unused { background: var(--ok-bg); color: var(--ok); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.scroll { overflow-x: auto; }
.model-card { display: flex; gap: 12px; align-items: center; color: var(--ink); }
.model-card:hover { text-decoration: none; }
.model-card img, .model-card .ph { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--chip); flex: none; }
.photos { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.photo { position: relative; }
.photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 10px; display: block; }
.photo .tools { display: flex; justify-content: space-between; margin-top: 4px; font-size: 13px; }
.photo .star { position: absolute; top: 6px; left: 6px; }
.phone { width: 100%; max-width: 400px; height: 760px; border: 1px solid var(--line); border-radius: 22px; background: #fff; display: block; margin: 0 auto; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 6px 12px; }
.kv div:nth-child(odd) { color: var(--muted); }
code { background: var(--chip); padding: 1px 6px; border-radius: 6px; }
