/* Admin pages: plain and dense, separate from the storefront styles. */
:root { --ink: #1c2228; --line: #d5d8dc; --muted: #5d6670; --accent: #2456a6; --bg: #f3f4f6; --ok: #2e7d4f; --warn: #9a6200; --bad: #b3261e; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--accent); }
h1 { font-size: 1.5rem; margin: 0; text-wrap: balance; }
h2 { font-size: 1.15rem; margin: 2rem 0 0.75rem; }
.bar { background: var(--ink); color: #fff; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem; padding: 0.6rem 1.25rem; }
.bar a { color: #fff; text-decoration: none; }
.bar__brand { font-weight: 600; }
.bar__brand span { font-weight: 400; opacity: 0.7; }
.bar__nav { display: flex; flex-wrap: wrap; gap: 0.25rem; flex: 1; }
.bar__nav a { padding: 0.3rem 0.7rem; border-radius: 6px; opacity: 0.85; }
.bar__nav a:hover, .bar__nav a[aria-current] { background: rgba(255, 255, 255, 0.14); opacity: 1; }
.bar__end { display: flex; gap: 1rem; align-items: center; }
.bar__end form { margin: 0; }
.main { max-width: 920px; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }
.head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 1.5rem; display: grid; gap: 1.1rem; }
.card--narrow { max-width: 360px; margin: 3rem auto; }
label { display: grid; gap: 0.3rem; font-weight: 600; font-size: 0.9rem; min-width: 0; }
.hint { font-weight: 400; color: var(--muted); font-size: 0.85rem; margin: 0; }
input[type="text"], input[type="password"], input[type="number"], input[type="file"], select, textarea {
  font: inherit; font-weight: 400; color: inherit; background: #fff; border: 1px solid #aab1b9; border-radius: 6px; padding: 0.5rem 0.65rem; width: 100%; min-width: 0;
}
textarea { resize: vertical; }
input.short { width: 8rem; }
input.tiny { width: 5rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 1rem; margin: 0; display: grid; gap: 0.9rem; min-width: 0; }
legend { font-weight: 600; padding: 0 0.4rem; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0.9rem; }
.check { display: flex; align-items: center; gap: 0.5rem; font-weight: 400; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0.4rem 1rem; }
.prefixed { display: flex; align-items: center; gap: 0.4rem; font-weight: 400; color: var(--muted); }
.btn { display: inline-block; background: var(--accent); color: #fff; border: 0; border-radius: 6px; padding: 0.55rem 1.2rem; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { filter: brightness(1.1); }
.actions { display: flex; align-items: center; gap: 1rem; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; }
.linkbtn--danger { color: var(--bad); }
.danger { margin-top: 1.5rem; text-align: right; }
.list { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.list th { text-align: left; font-size: 0.8rem; color: var(--muted); font-weight: 600; background: #fafafa; }
.list th, .list td { padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.list tr:last-child td { border-bottom: 0; }
.list--tight { border-radius: 6px; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tag { display: inline-block; font-size: 0.78rem; font-weight: 600; padding: 0.1rem 0.55rem; border-radius: 99px; background: #e3f1e8; color: var(--ok); }
.tag--off { background: #e9ebee; color: var(--muted); }
.tag--warn { background: #fbefd5; color: var(--warn); }
.thumb { width: 120px; height: 120px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.flash { background: #e3f1e8; border: 1px solid #b6dcc4; color: #1d5a37; border-radius: 8px; padding: 0.7rem 1rem; margin: 0 0 1rem; }
.flash--error { background: #fbe9e7; border-color: #f0b8b2; color: #8c1d18; }
@media (max-width: 640px) { .list th:nth-child(n+3), .list td:nth-child(n+3) { display: none; } .list--tight th:nth-child(n+3), .list--tight td:nth-child(n+3) { display: table-cell; } }
