body.admin { background: #101010; }
.admin-bar { background: #0a0a0a; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.admin-bar .container { display: flex; align-items: center; gap: 24px; min-height: 60px; flex-wrap: wrap; }
.admin-bar .logo img { height: 34px; }
.admin-nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.admin-nav a { color: var(--muted); padding: 8px 14px; border-radius: 8px; font-weight: 500; font-size: 15px; }
.admin-nav a:hover { color: var(--text); background: #1c1c1c; text-decoration: none; }
.admin-nav a.active { color: var(--text); background: #222; }
.admin-nav .count { background: var(--accent); color: #0d0d0d; border-radius: 999px; padding: 0 7px; font-size: 12px; font-weight: 700; margin-left: 4px; }
.admin-bar form { margin: 0; }
.link-btn { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; font-size: 14px; padding: 0; }
.link-btn:hover { color: var(--text); }
.admin-main { padding: 34px 0 80px; }
.admin-main h1 { font-size: 32px; text-transform: uppercase; margin-bottom: 4px; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.page-head p { color: var(--muted); margin: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 26px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.stat .n { font-family: var(--font-title); font-size: 38px; color: var(--accent); line-height: 1; }
.stat .l { color: var(--muted); font-size: 14px; margin-top: 6px; }
.panel h2 { font-size: 19px; }

table.list { width: 100%; border-collapse: collapse; font-size: 15px; }
table.list th { text-align: left; font-weight: 600; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; padding: 10px 12px; border-bottom: 1px solid var(--line); }
table.list td { padding: 12px; border-bottom: 1px solid #222; vertical-align: middle; }
table.list tr:hover td { background: #171717; }
table.list .muted, .muted { color: var(--muted); font-size: 14px; }
table.list .thumb { width: 54px; height: 44px; border-radius: 8px; background: #222 center / cover; }
table.list .actions { text-align: right; white-space: nowrap; }
table.list .actions form { display: inline; }
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }

.status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.status-blue { background: rgba(90,150,255,.15); color: #9cc0ff; }
.status-orange { background: rgba(255,255,255,.12); color: var(--accent); }
.status-green { background: rgba(124,196,154,.15); color: var(--ok); }
.status-gray { background: #2a2a2a; color: #aaa; }
.status-red { background: rgba(229,101,91,.15); color: #ff9e96; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; background: #262626; color: #ccc; }
.pill.on { background: rgba(124,196,154,.15); color: var(--ok); }
.pill.off { background: rgba(229,101,91,.12); color: #ff9e96; }
button.pill { border: 0; cursor: pointer; font: inherit; font-size: 12px; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; align-items: end; }
.filters > * { width: auto; }
.filters input, .filters select { padding: 9px 12px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.tabs a.active { background: var(--accent); border-color: var(--accent); color: #0d0d0d; }
.tabs a:hover { text-decoration: none; color: var(--text); }
.tabs a.active:hover { color: #0d0d0d; }

.form-actions { display: flex; gap: 12px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.form-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: start; }
.img-preview { width: 100%; aspect-ratio: 4/3; border-radius: 10px; background: #111 center / cover; border: 1px solid var(--line); margin-bottom: 12px; display: grid; place-items: center; color: #555; }
.days { display: flex; gap: 8px; flex-wrap: wrap; }
.days label { display: flex; gap: 6px; align-items: center; background: #151515; border: 1px solid #333; padding: 6px 12px; border-radius: 8px; font-weight: 500; cursor: pointer; }
.prod-day { padding: 12px 0; border-bottom: 1px solid var(--line); }
.prod-day:last-child { border-bottom: 0; }
.prod-day .d { font-weight: 600; text-transform: capitalize; display: flex; justify-content: space-between; }
.prod-day ul { margin: 6px 0 0; padding-left: 18px; color: #d8d2cb; }
.inline-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.inline-form select { width: auto; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-card { width: min(380px, 100%); }
dl.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; margin: 0; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; }

@media (max-width: 860px) {
  .grid-2, .form-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  dl.kv { grid-template-columns: 1fr; }
}
