/* VitalPortal – Gesundheitsportal
   Schrift: Verdana, volle Breite, Farben medizinisch Blau/Rot */

:root {
  --blue: #1b5fa8;
  --blue-dark: #134a85;
  --blue-light: #e8f1fb;
  --red: #c8102e;
  --red-dark: #a00d25;
  --red-light: #fdecee;
  --green: #2e7d32;
  --green-light: #e8f5e9;
  --orange: #e07b00;
  --orange-light: #fff4e5;
  --text: #1e2a36;
  --muted: #5d6b7a;
  --line: #d9e1ea;
  --bg: #f2f5f9;
  --card: #ffffff;
  --radius: 8px;
  --sidebar: 240px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 14px;
  line-height: 1.55;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-weight: bold; margin: 0 0 12px; line-height: 1.3; }
h1 { font-size: 22px; }
h2 { font-size: 17px; }
h3 { font-size: 15px; }
p { margin: 0 0 10px; }
small, .muted { color: var(--muted); }

/* ---------- Kopfzeile ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  height: 62px;
  padding: 0 20px;
  background: #fff;
  border-top: 4px solid var(--red);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 18px;
  font-weight: bold;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand svg { width: 32px; height: 32px; flex: 0 0 auto; }
.brand span b { color: var(--red); }
.topbar .spacer { flex: 1; }
.topbar .who {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}
.topbar .who form { margin: 0; }
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue);
  font-weight: bold;
  font-size: 13px;
}
.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  font-family: inherit;
}

/* ---------- Grundlayout ---------- */
.layout {
  display: flex;
  width: 100%;
  min-height: calc(100vh - 62px);
}
.sidebar {
  flex: 0 0 var(--sidebar);
  width: var(--sidebar);
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 18px 0;
}
.sidebar .group {
  padding: 14px 20px 6px;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.sidebar a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 20px;
  color: var(--text);
  border-left: 4px solid transparent;
}
.sidebar a:hover { background: var(--bg); text-decoration: none; }
.sidebar a.active {
  background: var(--blue-light);
  border-left-color: var(--blue);
  color: var(--blue-dark);
  font-weight: bold;
}
.sidebar svg { width: 18px; height: 18px; flex: 0 0 auto; }
.sidebar .patient-box {
  margin: 0 14px 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  font-size: 13px;
}
.sidebar .patient-box b { display: block; font-size: 14px; margin-bottom: 8px; }
.sidebar .patient-box .btn { display: flex; width: 100%; padding: 6px 10px; border-left-width: 1px; }

.content {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 24px 28px 40px;
}

.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.page-head h1 { margin: 0; }
.page-head .sub { color: var(--muted); font-size: 13px; margin-top: 3px; }
.page-head .actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Karten / Raster ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}
.card > h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr); }
.grid > .card { margin-bottom: 0; }
.mb { margin-bottom: 20px; }

/* ---------- Kennzahlen ---------- */
.stat {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  border-left: 5px solid var(--blue);
}
.stat.red { border-left-color: var(--red); }
.stat.green { border-left-color: var(--green); }
.stat.orange { border-left-color: var(--orange); }
.stat .label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.stat .value { font-size: 28px; font-weight: bold; margin: 4px 0 2px; white-space: nowrap; }
.stat .value small { font-size: 13px; font-weight: normal; color: var(--muted); }
.stat .hint { font-size: 12px; color: var(--muted); }

/* ---------- Kategorie-Badges ---------- */
.badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  white-space: nowrap;
  background: var(--bg);
  color: var(--muted);
}
.cat-low { background: #e3f2fd; color: #0d47a1; }
.cat-optimal { background: var(--green-light); color: #1b5e20; }
.cat-normal { background: #f1f8e9; color: #33691e; }
.cat-highnormal { background: #fffde7; color: #7a6000; }
.cat-g1 { background: var(--orange-light); color: #8a4b00; }
.cat-g2 { background: #ffe0d6; color: #a12a00; }
.cat-g3 { background: var(--red-light); color: var(--red-dark); }
.badge.role-admin { background: var(--red-light); color: var(--red-dark); }
.badge.role-user { background: var(--blue-light); color: var(--blue-dark); }
.badge.on { background: var(--green-light); color: #1b5e20; }
.badge.off { background: #eceff1; color: #546e7a; }

/* ---------- Diagramme ---------- */
.chart-box { position: relative; width: 100%; height: 340px; }
.chart-box.small { height: 220px; }
.chart-box canvas { display: block; width: 100% !important; }
.chart-note { margin: 8px 0 0; }
.filterbar + form, .filterbar + .chart-box, .filterbar + .empty { margin-top: 16px; }
.legend-bands { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

/* ---------- Tabellen ---------- */
.table-wrap { width: 100%; overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; }
table.data th, table.data td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
table.data th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  background: #f7f9fc;
  white-space: nowrap;
}
table.data tbody tr:hover { background: #f7faff; }
table.data td.num, table.data th.num { text-align: right; white-space: nowrap; }
table.data td.actions { text-align: right; white-space: nowrap; }
table.data td.actions form { display: inline; margin: 0; }
.empty { padding: 26px; text-align: center; color: var(--muted); }

/* ---------- Formulare ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.form-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 13px; font-weight: bold; color: #364554; }
.field .help { font-size: 12px; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=number],
input[type=date], input[type=time], input[type=datetime-local], input[type=tel],
input[type=search], select, textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid #c3cedb;
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 14px;
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(27, 95, 168, .15);
}
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.check input { width: 17px; height: 17px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 16px; margin: 0 0 18px; }
legend { padding: 0 6px; font-weight: bold; color: var(--blue-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 16px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 13px;
  font-weight: bold;
  line-height: 1.3;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); text-decoration: none; color: #fff; }
.btn svg { width: 16px; height: 16px; }
.btn.red { background: var(--red); border-color: var(--red); }
.btn.red:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn.light { background: #fff; color: var(--blue); border-color: #b9cbe0; }
.btn.light:hover { background: var(--blue-light); color: var(--blue-dark); }
.btn.ghost { background: transparent; color: var(--muted); border-color: transparent; }
.btn.ghost:hover { background: var(--bg); color: var(--text); }
.btn.small { padding: 5px 10px; font-size: 12px; }
.btn.icon { padding: 6px 8px; }
.btn.danger-link { background: transparent; border-color: transparent; color: var(--red); }
.btn.danger-link:hover { background: var(--red-light); color: var(--red-dark); }

/* ---------- Filterleiste ---------- */
.filterbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.filterbar .seg { display: inline-flex; border: 1px solid #b9cbe0; border-radius: 6px; overflow: hidden; }
.filterbar .seg a { padding: 8px 13px; font-size: 13px; color: var(--blue); border-right: 1px solid #b9cbe0; background: #fff; }
.filterbar .seg a:last-child { border-right: 0; }
.filterbar .seg a.active { background: var(--blue); color: #fff; font-weight: bold; }
.filterbar .seg a:hover { text-decoration: none; }
.filterbar form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin: 0; }
.filterbar form input { width: auto; }

/* ---------- Meldungen ---------- */
.alert { padding: 12px 16px; border-radius: 6px; margin-bottom: 18px; border: 1px solid; }
.alert.success { background: var(--green-light); border-color: #a5d6a7; color: #1b5e20; }
.alert.error { background: var(--red-light); border-color: #f4b4bd; color: var(--red-dark); }
.alert.info { background: var(--blue-light); border-color: #b7d0ec; color: var(--blue-dark); }
.alert.warn { background: var(--orange-light); border-color: #ffd28a; color: #7a4300; }
.alert ul { margin: 6px 0 0 18px; padding: 0; }

/* ---------- Detail-Liste ---------- */
dl.details { display: grid; grid-template-columns: 200px 1fr; gap: 8px 16px; margin: 0; }
dl.details dt { color: var(--muted); font-size: 13px; }
dl.details dd { margin: 0; font-weight: bold; word-break: break-word; }

/* ---------- Login ---------- */
.login-page {
  display: flex;
  min-height: 100vh;
  width: 100%;
}
.login-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px;
  background: var(--blue);
  color: #fff;
  border-top: 6px solid var(--red);
}
.login-side h1 { font-size: 30px; margin-bottom: 14px; }
.login-side p { font-size: 15px; max-width: 520px; opacity: .92; }
.login-side ul { list-style: none; padding: 0; margin: 26px 0 0; }
.login-side li { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 14px; }
.login-side li svg { width: 20px; height: 20px; }
.login-form {
  flex: 0 0 480px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 50px 56px;
  background: #fff;
}
.login-form .brand { margin-bottom: 30px; }
.login-form h2 { font-size: 20px; }
.login-form .field { margin-bottom: 14px; }
.login-form .btn { width: 100%; padding: 12px; font-size: 14px; }
.login-form form + p { margin-top: 16px; }
.login-side { position: relative; overflow: hidden; }
.login-side > * { position: relative; z-index: 1; }
.login-side .ecg { position: absolute; left: 0; right: 0; bottom: 8%; width: 100%; height: 160px; z-index: 0; opacity: .18; }
.login-side .note { margin-top: 34px; font-size: 13px; opacity: .8; }

/* ---------- Sonstiges ---------- */
.inline-form { display: inline; margin: 0; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.qr-box { display: inline-block; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.qr-box img, .qr-box svg { display: block; }
.secret { font-family: Verdana, Geneva, Tahoma, sans-serif; letter-spacing: .12em; font-weight: bold; font-size: 15px; word-break: break-all; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.footer { padding: 16px 28px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); background: #fff; }
.hidden { display: none !important; }

/* ---------- Druck ---------- */
.print-only { display: none; }
@media print {
  @page { size: A4; margin: 14mm; }
  body { background: #fff; font-size: 11px; }
  .topbar, .sidebar, .footer, .no-print, .page-head .actions, .filterbar { display: none !important; }
  .print-only { display: block; }
  .layout { display: block; min-height: 0; }
  .content { padding: 0; }
  .card { border: 1px solid #bbb; break-inside: avoid; padding: 12px; margin-bottom: 12px; }
  .chart-box { height: 260px; }
  table.data th, table.data td { padding: 5px 7px; }
  table.data tr { break-inside: avoid; }
  a { color: var(--text); }
}

/* ---------- Responsiv ---------- */
@media (max-width: 1280px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-main { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .menu-toggle { display: inline-block; }
  .sidebar {
    position: fixed;
    top: 62px;
    left: 0;
    bottom: 0;
    z-index: 40;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform .2s ease;
  }
  body.nav-open .sidebar { transform: translateX(0); box-shadow: 4px 0 18px rgba(0,0,0,.12); }
  .content { padding: 18px 16px 30px; }
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .form-grid, .form-grid.cols-3, .form-grid.cols-4 { grid-template-columns: minmax(0, 1fr); }
  .topbar .who .name { display: none; }
  .login-page { flex-direction: column; }
  .login-side { padding: 34px 24px; flex: 0 0 auto; }
  .login-form { flex: 1 1 auto; padding: 30px 24px; }
  dl.details { grid-template-columns: 1fr; gap: 2px 0; }
  dl.details dd { margin-bottom: 8px; }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .brand span { font-size: 15px; }
  .topbar { padding: 0 12px; gap: 10px; }
  .stat .value { font-size: 24px; }
}

/* ---------- Ernährungsprotokoll ---------- */
.form-grid .cols-span-2 { grid-column: span 2; }
.food-search { position: relative; }
.food-suggest {
  position: absolute;
  top: 66px;
  left: 0;
  right: 0;
  z-index: 30;
  max-height: 360px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #b9cbe0;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(20, 40, 70, .14);
}
.food-opt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  text-align: left;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
}
.food-opt:last-child { border-bottom: 0; }
.food-opt:hover, .food-opt.active { background: var(--blue-light); }
.food-opt .n { font-weight: bold; }
.food-opt .m { font-size: 12px; color: var(--muted); }
.food-preview-box { justify-content: flex-end; }
.food-preview-box .label { font-size: 13px; font-weight: bold; color: #364554; }
.food-preview {
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--green-light);
  color: #1b5e20;
  font-weight: bold;
  font-size: 15px;
}
.food-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 16px; }
.chip {
  padding: 5px 11px;
  border: 1px solid #b9cbe0;
  border-radius: 20px;
  background: #fff;
  color: var(--blue);
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 12px;
  cursor: pointer;
}
.chip:hover { background: var(--blue-light); }

table.food-week { width: 100%; border-collapse: collapse; table-layout: fixed; }
table.food-week th, table.food-week td { border: 1px solid var(--line); padding: 8px; vertical-align: top; text-align: left; }
table.food-week thead th { background: #f7f9fc; font-size: 13px; }
table.food-week thead th span { display: block; }
table.food-week thead th small { font-weight: normal; }
table.food-week .meal-col { width: 128px; background: #f7f9fc; font-size: 13px; }
table.food-week td.today, table.food-week th.today { background: #f3f8fe; }
table.food-week tfoot td, table.food-week tfoot th { background: #f7f9fc; }
table.food-week tfoot small { display: block; color: var(--muted); }
.fe {
  position: relative;
  margin-bottom: 6px;
  padding: 5px 26px 5px 8px;
  border-left: 3px solid var(--blue);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
  font-size: 12px;
  line-height: 1.4;
  word-break: break-word;
}
.fe.unknown { border-left-color: var(--orange); }
.fe-name { display: block; font-weight: bold; color: var(--text); }
.fe-meta, .fe-note { display: block; color: var(--muted); font-size: 11px; }
.fe-note { font-style: italic; }
.fe-del { position: absolute; top: 2px; right: 0; margin: 0; }
.fe-del .btn.icon { padding: 3px 4px; }
.fe-del .btn svg { width: 13px; height: 13px; }
.fe-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 22px;
  border: 1px dashed #b9cbe0;
  border-radius: 4px;
  color: var(--blue);
}
.fe-add:hover { background: var(--blue-light); text-decoration: none; }
.fe-add svg { width: 14px; height: 14px; }

.food-days { display: none; }
.food-day { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
.food-day.today { border-color: var(--blue); }
.food-day-head { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; background: #f7f9fc; border-bottom: 1px solid var(--line); }
.food-day-meal { padding: 8px 12px; border-bottom: 1px solid var(--line); }
.food-day-meal:last-child { border-bottom: 0; }
.food-day-meal-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-weight: bold; font-size: 13px; }
.food-day-meal-head small { font-weight: normal; }
.food-day-meal-head .fe-add { margin-left: auto; }

@media (max-width: 1100px) {
  .food-week-wrap { display: none; }
  .food-days { display: block; }
}
@media (max-width: 960px) {
  .form-grid .cols-span-2 { grid-column: auto; }
}

/* Lebensmittelliste */
.food-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin-bottom: 16px; }
.food-filter input[type=search], .food-filter select { width: auto; min-width: 220px; }
.food-filter .check input { width: 18px; height: 18px; min-width: 0; }
#eintrag, #woche, .food-day { scroll-margin-top: 76px; }
.food-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 10px; }
.food-bulk .btn[disabled] { opacity: .45; cursor: not-allowed; }
.food-purge { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 14px; }
.food-purge span { flex: 1 1 320px; }
th.col-check, td.col-check { width: 34px; text-align: center; }
td.col-check input, .food-bulk input[type=checkbox] { width: 18px; height: 18px; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Nährwert-Ringdiagramm */
.food-top { align-items: start; }
.food-chart { text-align: center; }
.food-chart h2 { text-align: left; }
.donut { display: block; width: 100%; max-width: 320px; height: auto; margin: 0 auto; overflow: visible; }
.donut-value { font-family: Verdana, Geneva, Tahoma, sans-serif; font-size: 52px; font-weight: bold; fill: #1e2a36; }
.donut-unit { font-family: Verdana, Geneva, Tahoma, sans-serif; font-size: 18px; fill: #7a8794; }
.donut-goal { font-family: Verdana, Geneva, Tahoma, sans-serif; font-size: 13px; fill: #1b5fa8; }
.donut-bubble { font-family: Verdana, Geneva, Tahoma, sans-serif; font-size: 16px; font-weight: bold; fill: #1e2a36; }
.donut-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; list-style: none; margin: 14px 0 6px; padding: 0; font-size: 13px; }
.donut-legend li { display: inline-flex; align-items: center; gap: 6px; }
.donut-legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.dot-carbs { background: #7c7cf6; }
.dot-protein { background: #f06bab; }
.dot-fat { background: #fdae6b; }
.food-goal-line { margin: 6px 0; }
.food-goal-form { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; }
.food-goal-form label { font-weight: bold; font-size: 13px; }
.food-goal-form input { width: 110px; }
table.food-week thead th a { display: block; color: inherit; text-decoration: none; }
table.food-week thead th a:hover { text-decoration: underline; }
table.food-week thead th.chartday { box-shadow: inset 0 -3px 0 var(--blue); }
.ean-row { display: flex; gap: 8px; }
.ean-row input { flex: 1; min-width: 0; }
.ean-row .btn { white-space: nowrap; }
.target-box { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.target-box h3 { margin: 0 0 8px; font-size: 15px; }
.target-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.target-form input { width: 120px; }
