/* === NewLabel — наследует визуал dm-buyer (forseo.su) === */
:root {
  --bg: #f5f6f8;
  --surface: #fff;
  --surface-2: #f8fafc;
  --border: #e0e0e0;
  --border-strong: #cbd5e1;
  --text: #1a1a1a;
  --muted: #6b7280;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: #93c5fd;
  --success-bg: #d1fae5;
  --success-fg: #065f46;
  --warn-bg: #fef3c7;
  --warn-fg: #92400e;
  --error-bg: #fee2e2;
  --error-fg: #991b1b;
  --info-bg: #dbeafe;
  --info-fg: #1e3a8a;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  margin: 0;
  padding: 24px;
  max-width: 1100px;
  background: var(--bg);
  color: var(--text);
}

h1 { font-size: 1.4rem; margin: 0 0 16px; color: #111; }
h2 { font-size: 1rem; margin: 0 0 14px; color: #333; }
h3 { font-size: .95rem; margin: 0 0 10px; color: #1f2937; }

a { color: var(--primary); }
a:hover { color: var(--primary-hover); }

.muted { color: var(--muted); }

/* === Брендинг Macaronshop NewLabel (тот же макет, что у TrueLabel) === */
.brand-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  line-height: 1;
  user-select: none;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: opacity .15s;
}
a.brand-logo:hover { opacity: .8; }
a.brand-logo:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
  border-radius: 4px;
}
.brand-maron  { font-size: 1.45rem; font-weight: 800; letter-spacing: -.5px; color: var(--primary); }
.brand-shop   { font-size: 1.45rem; font-weight: 400; letter-spacing: -.5px; color: var(--primary); opacity: .65; }
.brand-sep    {
  display: inline-block;
  width: 1px;
  height: 1.1rem;
  background: var(--border-strong);
  margin: 0 10px 0 11px;
  vertical-align: middle;
  align-self: center;
}
.brand-new    { font-size: 1.45rem; font-weight: 700; letter-spacing: -.3px; color: var(--text); }
.brand-label  { font-size: 1.45rem; font-weight: 300; letter-spacing: -.3px; color: var(--muted); }

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}
.app-header .meta {
  font-size: .85rem;
  color: var(--muted);
}

section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}

.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

button, .btn {
  -webkit-appearance: none;
  appearance: none;
  font: inherit;
  border: 0;
  background: var(--primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background .15s;
}
button:hover, .btn:hover { background: var(--primary-hover); }
button.secondary, .btn.secondary {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border-strong);
}
button.secondary:hover, .btn.secondary:hover { background: #eef2f7; }
button:disabled { opacity: .5; cursor: not-allowed; }

.tag {
  display: inline-block;
  font-size: .78rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--info-bg);
  color: var(--info-fg);
  font-weight: 600;
}
.tag.success { background: var(--success-bg); color: var(--success-fg); }
.tag.warn    { background: var(--warn-bg);    color: var(--warn-fg); }
.tag.error   { background: var(--error-bg);   color: var(--error-fg); }
.tag.info    { background: #dbeafe;           color: #1e3a8a; }
.tag.muted   { background: #e5e7eb;           color: #374151; }

.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-weight: 500; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.small { font-size: .85rem; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
}
th, td {
  border-bottom: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
th { background: var(--surface-2); font-weight: 600; }

.scan-banner {
  border-radius: 12px;
  padding: 24px;
  font-weight: 700;
  text-align: center;
  font-size: 1.4rem;
  letter-spacing: .02em;
  border: 2px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  transition: background .15s, color .15s, border-color .15s;
}
.scan-banner.ok    { background: var(--success-bg); color: var(--success-fg); border-color: #6ee7b7; }
.scan-banner.error { background: var(--error-bg);   color: var(--error-fg);   border-color: #fca5a5; }

.progress {
  height: 8px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}
.progress > div {
  height: 100%;
  background: var(--primary);
  transition: width .2s;
}

.kbd {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: #f1f5f9;
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 0 6px;
  font-size: .85rem;
}

.footer {
  margin-top: 28px;
  font-size: .8rem;
  color: var(--muted);
  text-align: center;
}
