/* Brand tokens the base stylesheet expects, in a neutral default a shop can change
   in Settings. base.css is the desktop Labeler's stylesheet, lifted as is. */
:root {
  --accent: #4f46a5;
  --accent-ink: #ffffff;
  --gold: #b7791f;
  --light-blue: #bfdbfe;
  --blue: #2563eb;
  --pink: #db2777;
  --green: #86efac;
  --good: #166534;
  --warn: #b7791f;
  --bad: #b91c1c;
  --paper-2: color-mix(in srgb, var(--accent) 6%, #f7f7fa);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --paper-2: color-mix(in srgb, var(--accent) 12%, #1d1c26); --green: #14532d; --good: #86efac; }
}
/* The base sets display on main, .pill and others, which beats the hidden attribute's
   own display:none. Say it once, with force, so hidden means hidden everywhere. */
[hidden] { display: none !important; }
/* app extras on top of the base */
header nav button {
  padding: .3rem .7rem; border-radius: 999px; font-size: .88rem; font-weight: 500;
  color: var(--ink-2); background: transparent; border: 1px solid transparent; cursor: pointer;
}
header nav button:hover { background: var(--rule-2); color: var(--ink); filter: none; }
header nav button[aria-current] { background: var(--accent); color: var(--accent-ink); }
.drop {
  border: 2px dashed var(--rule); border-radius: var(--radius); padding: 1.4rem; text-align: center;
  color: var(--ink-2);
}
.drop.over { border-color: var(--accent); background: var(--rule-2); }
.receipt { border: 2px solid var(--good); border-radius: 8px; padding: .6rem .8rem; font-size: .9rem; }
.receipt.err { border-color: var(--bad); }
.editor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr)); gap: .5rem; }
label.field { display: grid; gap: .2rem; font-size: .8rem; color: var(--ink-2); }
.elpills { display: flex; gap: .35rem; flex-wrap: wrap; }
.elpills button { padding: .3rem .7rem; font-size: .82rem; border-radius: 999px; }
.elpills button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.elpills button[aria-pressed="false"] { background: transparent; color: var(--ink-2); border-color: var(--rule); }
.preview-sheet svg { border: 1px solid var(--rule); background: #fff; box-shadow: var(--shadow); }
.btn.ghost { background: transparent; color: var(--ink-2); border: 1px solid var(--rule); border-radius: 8px; padding: .62rem 1rem; font-size: .92rem; cursor: pointer; display: inline-flex; align-items: center; }
#print-area { display: none; }
input[type=checkbox] { width: auto; min-height: 0; }
input[type=color] { min-height: 44px; width: 5rem; padding: .2rem; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); }
input[type=file] { font-size: .9rem; }
