.small { font-size: 13px; } .muted { color: var(--muted); }
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px;
  background: radial-gradient(1000px 500px at 80% -10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent), var(--bg); }
.login-card { width: min(400px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 32px;
  display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); }
.login-card img { width: 170px; margin: 0 auto 4px; }
.login-card h1 { margin: 0; text-align: center; font-size: 22px; }
.tabs { display: flex; gap: 4px; margin-left: 20px; overflow-x: auto; }
.tabs button { border: 0; background: transparent; padding: 9px 14px; border-radius: 10px; cursor: pointer; font-weight: 700; color: var(--muted);
  display: flex; gap: 6px; align-items: center; white-space: nowrap; }
.tabs button:hover { background: var(--surface-2); color: var(--text); }
.tabs button.active { background: var(--text); color: var(--bg); }
.admin-main { padding-top: calc(var(--header-h) + 26px); padding-bottom: 60px; max-width: none; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar h2 { margin: 0 auto 0 0; font-size: 24px; }
.toolbar .input { width: auto; min-width: 200px; }
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700;
  padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
table.data td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
table.data img.th { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: var(--surface-2); }
.pill { display: inline-block; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--muted); }
.pill.on { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.pill.ds { background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent-ink); }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.drawer.wide { width: min(760px, 100vw); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 14px 0; }
.form-grid .full { grid-column: 1 / -1; }
.fieldset { grid-column: 1 / -1; border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.fieldset > .legend { font-weight: 800; display: flex; align-items: center; gap: 8px; justify-content: space-between; flex-wrap: wrap; }
.fieldset .sub { font-size: 13px; color: var(--muted); margin: -6px 0 0; }
.dropzone { border: 2px dashed var(--line); border-radius: 12px; padding: 16px; text-align: center; cursor: pointer; color: var(--muted);
  transition: border-color .2s, background .2s; display: flex; align-items: center; gap: 14px; justify-content: center; flex-wrap: wrap; }
.dropzone:hover, .dropzone.over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent); }
.dropzone img, .dropzone video { max-height: 120px; border-radius: 8px; }
.spec-rows { display: flex; flex-direction: column; gap: 8px; }
.spec-row { display: grid; grid-template-columns: 1fr 1.4fr 36px; gap: 8px; }
.spec-row .input { padding: 8px 10px; }
.spec-row button { border: 1px solid var(--line); border-radius: 8px; background: transparent; cursor: pointer; color: var(--muted); }
.spec-row button:hover { color: var(--danger); border-color: var(--danger); }
.status-msg { font-size: 13px; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); }
.status-msg.ok { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.status-msg.warn { background: color-mix(in srgb, #f0a020 18%, transparent); color: #b36b00; }
[data-theme="dark"] .status-msg.warn { color: #f5b649; }
.switch { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; font-weight: 600; }
.switch input { width: 18px; height: 18px; accent-color: var(--accent); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg button { border: 0; background: transparent; padding: 8px 14px; cursor: pointer; font-weight: 600; }
.seg button.on { background: var(--text); color: var(--bg); }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.stat .l { font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.stat .v { font-size: 24px; font-weight: 800; }
details.order-items summary { cursor: pointer; color: var(--accent-ink); font-weight: 600; }
details.order-items ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); }
@media (max-width: 820px) {
  .tabs { margin-left: 0; } .brand .name { display: none; }
  .form-grid { grid-template-columns: 1fr; }
}
