/* Home Inventory – mobil zuerst, hell/dunkel */
:root {
  --bg: #f6f3ec;
  --surface: #ffffff;
  --surface-2: #f0ece2;
  --text: #1f2a24;
  --muted: #6b746e;
  --border: #e2ddd1;
  --accent: #2f6f4f;
  --accent-ink: #ffffff;
  --accent-soft: #e3efe7;
  --warn: #b26b00;
  --warn-soft: #fbefd9;
  --danger: #b3261e;
  --danger-soft: #fbe3e1;
  --ok: #2f6f4f;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 2px 8px rgba(0,0,0,.04);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141917;
    --surface: #1c2320;
    --surface-2: #232c28;
    --text: #e7ece9;
    --muted: #94a09a;
    --border: #2e3833;
    --accent: #5fb38a;
    --accent-ink: #0d1411;
    --accent-soft: #1f3529;
    --warn: #f0b04d;
    --warn-soft: #3a2c13;
    --danger: #f2877f;
    --danger-soft: #3d1c1a;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.5rem; margin: 0; line-height: 1.2; }
h2 { font-size: 1.1rem; margin: 0 0 .75rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.pre { white-space: pre-wrap; }
.num { text-align: right; white-space: nowrap; }

/* ---------- Layout ---------- */
.container { max-width: 960px; margin: 0 auto; padding: 16px; }
.topbar {
  display: flex; align-items: center; gap: 16px;
  padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); }
.topnav { display: none; gap: 4px; flex: 1; }
.topnav a, .usermenu a { padding: 6px 10px; border-radius: 8px; color: var(--text); }
.topnav a.active, .usermenu a.active { background: var(--accent-soft); color: var(--accent); }
.usermenu { display: flex; align-items: center; gap: 4px; margin-left: auto; font-size: .9rem; }
.usermenu form { margin: 0; }

.bottombar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--surface); border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottombar a {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 2px; font-size: .72rem; color: var(--muted);
}
.bottombar a.active { color: var(--accent); }
.bottombar .ico { font-size: 1.25rem; line-height: 1; }
.bottombar .scanbtn .ico {
  background: var(--accent); color: var(--accent-ink);
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; margin-top: -18px; box-shadow: var(--shadow);
}

@media (min-width: 800px) {
  body { padding-bottom: 0; }
  .topnav { display: flex; }
  .bottombar { display: none; }
}

.pagehead { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 4px 0 16px; }
.sectionhead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; margin-bottom: 16px; box-shadow: var(--shadow);
}
.stack { display: flex; flex-direction: column; gap: 12px; }
.row2, .row3 { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) {
  .row2 { grid-template-columns: 1fr 1fr; }
  .row3 { grid-template-columns: 1fr 1fr 1.4fr; }
}
.btnrow { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inline { display: inline; margin: 0; }
.inlineform { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 12px 0 0; }
.inlineform input[type=text], .inlineform input[type=password] { flex: 1 1 140px; }

/* ---------- Formulare ---------- */
label, .field { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; font-weight: 500; }
label.check { flex-direction: row; align-items: center; gap: 6px; font-weight: 400; }
input[type=text], input[type=search], input[type=password], input[type=date], input[type=number], select, textarea {
  font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; width: 100%;
  min-height: 44px;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
input[type=file] { font-size: .9rem; }
.inputgroup { display: flex; gap: 6px; }
.inputgroup input { flex: 1; min-width: 0; }
fieldset { border: 0; padding: 0; margin: 0; }
.segmented { display: flex; gap: 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; width: fit-content; }
.segmented label { flex-direction: row; align-items: center; gap: 6px; padding: 8px 14px; cursor: pointer; font-weight: 400; }
.segmented label:has(input:checked) { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.segmented input { accent-color: var(--accent); }
details.sub { border-top: 1px solid var(--border); padding-top: 12px; }
details.sub > summary { cursor: pointer; font-weight: 600; margin-bottom: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none !important;
  padding: 9px 14px; min-height: 44px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
}
.btn:hover { filter: brightness(.97); }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.btn-warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.btn-small { padding: 4px 10px; min-height: 34px; font-size: .85rem; }
.btn-large { padding: 12px 20px; font-size: 1.05rem; }
.linkbtn { background: none; border: 0; color: var(--accent); cursor: pointer; font: inherit; padding: 4px; }

.flash, .alert, .info { border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; }
.flash { background: var(--accent-soft); color: var(--accent); }
.alert { background: var(--danger-soft); color: var(--danger); }
.info { background: var(--warn-soft); color: var(--warn); margin: 0; }
.htmx-indicator { display: none; }
.htmx-request .htmx-indicator, .htmx-request.htmx-indicator { display: inline; }

.danger-zone { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 24px 0; }

/* ---------- Übersicht ---------- */
.quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
@media (min-width: 640px) { .quick { grid-template-columns: repeat(4, 1fr); } }
.tile {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 8px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); font-weight: 600; text-decoration: none !important; box-shadow: var(--shadow);
}
.tile .big { font-size: 1.6rem; line-height: 1; }
.tile-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.stat { background: var(--surface-2); border-radius: 10px; padding: 10px; text-align: center; }
.stat b { display: block; font-size: 1.35rem; }
.stat span { font-size: .75rem; color: var(--muted); }
.stat-warn { background: var(--danger-soft); color: var(--danger); }
.stat-warn span { color: var(--danger); }

/* ---------- Listen ---------- */
.filters { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 16px; }
@media (min-width: 700px) { .filters { grid-template-columns: 2fr 1fr 1fr auto; align-items: center; } }

.plist, .lotlist, .tree, .chips { list-style: none; margin: 0; padding: 0; }
.plist li a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 8px; color: var(--text); text-decoration: none;
}
.plist li a:hover { border-color: var(--accent); }
.pinfo { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.pinfo b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pmeta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }

.thumb { width: 52px; height: 52px; border-radius: 8px; object-fit: contain; background: #fff; flex: none; border: 1px solid var(--border); }
.thumb-empty { display: grid; place-items: center; color: var(--muted); background: var(--surface-2); font-weight: 700; }
.thumb-empty.big { width: 160px; height: 160px; border-radius: var(--radius); font-size: 2rem; }

.lotlist li {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.lotlist li:last-child { border-bottom: 0; }
.lotmain { display: flex; align-items: center; gap: 12px; flex: 1 1 220px; min-width: 0; color: var(--text); text-decoration: none !important; }
.qtybig { font-size: 1.3rem; font-weight: 700; min-width: 70px; }
.qtybig small { font-size: .8rem; font-weight: 500; color: var(--muted); }
.lot-actions { display: flex; gap: 6px; align-items: flex-start; position: relative; }
.more > summary { list-style: none; }
.more > summary::-webkit-details-marker { display: none; }
.more[open] .more-body {
  position: absolute; right: 0; top: 40px; z-index: 5; width: min(320px, 85vw);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.15); display: flex; flex-direction: column; gap: 14px;
}
.more-body .row2 { grid-template-columns: 1fr; }

.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.badge-stock { background: var(--accent-soft); color: var(--accent); }
.badge-empty { background: var(--surface-2); color: var(--muted); }
.bbd-ok { background: var(--surface-2); color: var(--muted); }
.bbd-near { background: var(--warn-soft); color: var(--warn); }
.bbd-soon { background: var(--warn); color: #fff; }
.bbd-expired { background: var(--danger); color: #fff; }

.tree li a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 8px; border-radius: 8px; color: var(--text); }
.tree li a:hover { background: var(--surface-2); text-decoration: none; }
.tree .d0 .tname { font-weight: 700; }
.tree .d1 { padding-left: 1.25rem; } .tree .d2 { padding-left: 2.5rem; } .tree .d3 { padding-left: 3.75rem; }
.tree .d4 { padding-left: 5rem; } .tree .d5 { padding-left: 6.25rem; } .tree .d6 { padding-left: 7.5rem; } .tree .d7 { padding-left: 8.75rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { display: flex; align-items: center; gap: 4px; background: var(--surface-2); border-radius: 999px; padding: 6px 12px; }
.chips li a { color: var(--text); }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 4px; }

/* ---------- Produkt ---------- */
.product-head { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .product-head { grid-template-columns: 200px 1fr; } }
.product-img { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.product-img img { width: 100%; max-width: 240px; max-height: 240px; object-fit: contain; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.facts dt { color: var(--muted); font-size: .9rem; }
.facts dd { margin: 0; }
.imagefield { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.imgpreview { width: 120px; height: 120px; border: 1px dashed var(--border); border-radius: var(--radius); display: grid; place-items: center; overflow: hidden; background: var(--surface-2); }
.imgpreview img { width: 100%; height: 100%; object-fit: contain; background: #fff; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table th { font-size: .8rem; color: var(--muted); font-weight: 600; }
.card:has(.table) { overflow-x: auto; }

/* ---------- Login ---------- */
.login { max-width: 360px; margin: 10vh auto 0; text-align: center; }
.login h1 { margin: 8px 0 20px; }
.login form { text-align: left; }

/* ---------- Scanner ---------- */
.scan-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.92); display: none; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 16px; }
.scan-overlay.open { display: flex; }
.scan-box { position: relative; width: min(92vw, 520px); aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: #000; }
.scan-box video { width: 100%; height: 100%; object-fit: cover; }
.scan-line { position: absolute; left: 10%; right: 10%; top: 50%; height: 2px; background: #ff4d4d; box-shadow: 0 0 12px #ff4d4d; animation: scan 1.6s ease-in-out infinite; }
@keyframes scan { 0%, 100% { transform: translateY(-40px); } 50% { transform: translateY(40px); } }
.scan-hint { color: #fff; margin: 0; }
@media (prefers-reduced-motion: reduce) { .scan-line { animation: none; } }

/* ---------- Kompaktere Zeilen ---------- */
.row2.tight { grid-template-columns: 1fr 1fr; }
label.check.strong { font-weight: 600; }
.stockbox { display: flex; flex-direction: column; gap: 12px; }
.more-body hr { border: 0; border-top: 1px solid var(--border); margin: 0; width: 100%; }
body.noscroll { overflow: hidden; }

/* ---------- Datumsfeld ---------- */
.datefield { display: flex; flex-direction: column; gap: 6px; }
.datefield > label { font-size: .9rem; font-weight: 500; }
.datefield input { font-size: 1.1rem; letter-spacing: .03em; }
.df-hint { min-height: 1.2em; color: var(--muted); }
.datefield.df-past .df-hint { color: var(--warn); }
.datefield.df-bad .df-hint { color: var(--danger); }
.datefield.df-bad input { border-color: var(--danger); }
.df-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.df-chips button, .chip {
  font: inherit; font-size: .85rem; cursor: pointer;
  padding: 6px 10px; min-height: 36px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
}
.df-chips button:active, .chip:active { background: var(--accent-soft); }

/* ---------- Lagerort-Wähler ---------- */
.placepicker { display: flex; flex-direction: column; gap: 4px; }
.pp-title { font-size: .9rem; font-weight: 500; }
.pp-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%;
  font: inherit; text-align: left; cursor: pointer; min-height: 48px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text);
}
.placepicker.pp-empty .pp-label { color: var(--muted); }
.placepicker.pp-missing .pp-btn { border-color: var(--danger); outline: 2px solid var(--danger-soft); }
.pp-caret { color: var(--muted); }
.pp-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.45); display: none; }
.pp-overlay.open { display: flex; align-items: flex-end; justify-content: center; }
.pp-panel {
  background: var(--surface); width: 100%; max-width: 560px; height: 85vh;
  border-radius: 16px 16px 0 0; display: flex; flex-direction: column; overflow: hidden;
}
@media (min-width: 800px) {
  .pp-overlay.open { align-items: center; }
  .pp-panel { height: 75vh; border-radius: 16px; }
}
.pp-head { display: flex; gap: 8px; padding: 12px; border-bottom: 1px solid var(--border); }
.pp-head input { flex: 1; min-width: 0; }
.pp-body { overflow-y: auto; padding: 8px 12px 24px; flex: 1; -webkit-overflow-scrolling: touch; }
.pp-sub { font-size: .8rem; color: var(--muted); font-weight: 600; margin: 4px 0 6px; text-transform: uppercase; letter-spacing: .04em; }
.pp-recent { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.pp-recent .chip { background: var(--accent-soft); color: var(--accent); border-color: transparent; font-weight: 600; }
.pp-list { list-style: none; margin: 0; padding: 0; }
.pp-item {
  display: block; width: 100%; text-align: left; font: inherit; color: var(--text); cursor: pointer;
  background: none; border: 0; border-bottom: 1px solid var(--border); padding: 12px 8px; min-height: 48px;
}
.pp-item:active, .pp-item:hover { background: var(--surface-2); }
.pp-item.d0 { font-weight: 700; }
.pp-item.pp-slot { color: var(--muted); }
.pp-item.pp-slot b { color: var(--text); }
.pp-item.d1 { padding-left: 1.5rem; } .pp-item.d2 { padding-left: 2.75rem; } .pp-item.d3 { padding-left: 4rem; }
.pp-item.d4 { padding-left: 5.25rem; } .pp-item.d5 { padding-left: 6.5rem; } .pp-item.d6 { padding-left: 7.75rem; } .pp-item.d7 { padding-left: 9rem; }
.pp-none { padding: 16px 8px; }

/* ---------- Lagerliste ---------- */
@media (min-width: 900px) { .filters-stock { grid-template-columns: 2fr 1.5fr 1fr 1fr auto; } }
.stockgroup h2 a { color: var(--text); }
.stocktable td { vertical-align: top; }
.stocktable .lot-actions { justify-content: flex-end; }
.printonly { display: none; }

@media print {
  body { background: #fff; color: #000; padding: 0; font-size: 11pt; }
  .topbar, .bottombar, .noprint, .flash, .alert, .lot-actions { display: none !important; }
  .printonly { display: inline; }
  .container { max-width: none; padding: 0; }
  .card { border: 0; box-shadow: none; padding: 0; margin: 0 0 12pt; break-inside: avoid-page; }
  .stockgroup h2 { font-size: 13pt; border-bottom: 1pt solid #000; padding-bottom: 2pt; }
  .table th, .table td { padding: 3pt 4pt; border-bottom: .5pt solid #999; }
  a { color: #000; }
  .badge { border: .5pt solid #666; background: none !important; color: #000 !important; }
}

/* ---------- Geräte ---------- */
.devlist { list-style: none; margin: 0; padding: 0; }
.devlist li { border-top: 1px solid var(--border); padding: 14px 0; display: flex; flex-direction: column; gap: 10px; }
.devlist li:first-child { border-top: 0; }
.devlist li.inactive { opacity: .6; }
.tokenbox { border-color: var(--warn); background: var(--warn-soft); }
.tokenbox input { font-size: .95rem; }
.qrrow { display: flex; gap: 32px; flex-wrap: wrap; }
.qrrow figure { margin: 0; text-align: center; }
.qr { width: 160px; height: 160px; background: #fff; display: grid; place-items: center; border-radius: 8px; padding: 6px; font-family: ui-monospace, monospace; color: #000; }
.qr svg { width: 100%; height: 100%; }
@media print { .devlist, .tokenbox { display: none !important; } }

/* ---------- Wein ---------- */
.h1sub { font-weight: 500; }
.chipselect { display: flex; flex-wrap: wrap; gap: 6px; }
.chipselect legend { font-size: .9rem; font-weight: 500; margin-bottom: 6px; padding: 0; }
.chipselect label { flex-direction: row; align-items: center; gap: 6px; font-weight: 400; cursor: pointer;
  padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2); }
.chipselect label:has(input:checked) { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); font-weight: 600; }
.chipselect input { accent-color: var(--accent); margin: 0; }
.row3.wine3 { grid-template-columns: 1fr 1fr 1fr; }
.winemeta { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.vintage { font-variant-numeric: tabular-nums; font-weight: 700; }
.drink-store { background: #e3ecfa; color: #2457a6; }
.drink-ready { background: var(--accent-soft); color: var(--accent); }
.drink-soon  { background: var(--warn); color: #fff; }
.drink-past  { background: var(--danger); color: #fff; }
@media (prefers-color-scheme: dark) { .drink-store { background: #1d2c44; color: #8fb4ee; } }
.winecolor { display: inline-block; width: .75em; height: .75em; border-radius: 50%; margin-right: 6px; vertical-align: baseline; border: 1px solid rgba(0,0,0,.15); }
.wc-red { background: #7b1e2b; } .wc-white { background: #f1e3a0; } .wc-rose { background: #f4a6b8; }
.wc-sparkling { background: #e9e1b8; box-shadow: inset 0 0 0 2px #fff; } .wc-sweet { background: #d9a13b; } .wc-other { background: #999; }
span.winecolor.wc-red, span.winecolor.wc-white { }
dd .winecolor { width: auto; height: auto; border: 0; border-radius: 0; background: none; margin: 0; box-shadow: none; }
.stars { color: #d49a00; letter-spacing: 1px; white-space: nowrap; }
.winestats { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .winestats { grid-template-columns: repeat(4, 1fr); } }
.stat-link { color: inherit; text-decoration: none !important; }
.filters-wine { grid-template-columns: 1fr 1fr; }
.filters-wine input[type=search] { grid-column: 1 / -1; }
@media (min-width: 900px) { .filters-wine { grid-template-columns: repeat(4, 1fr); } .filters-wine input[type=search] { grid-column: span 2; } }
.winetable td { vertical-align: top; }
.winetable td.vintage { font-weight: 700; font-variant-numeric: tabular-nums; }
.winetable .lot-actions { justify-content: flex-end; }
@media (max-width: 640px) {
  .winetable thead { display: none; }
  .winetable tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 10px 0; border-bottom: 1px solid var(--border); }
  .winetable td { border: 0; padding: 0; }
  .winetable td:first-child { grid-column: 1 / -1; }
}
.winenow { display: flex; flex-direction: column; gap: 2px; border-color: var(--warn); background: var(--warn-soft); color: var(--text); text-decoration: none !important; }
.notes { list-style: none; margin: 0; padding: 0; }
.notes li { border-bottom: 1px solid var(--border); padding: 10px 0; }
.notes li:last-child { border-bottom: 0; }
.notehead { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.notes p { margin: 6px 0 0; }
/* Sterne-Eingabe: DOM 5…1, Anzeige 1…5 */
.starinput { border: 0; padding: 0; margin: 0; }
.starinput legend { font-size: .9rem; font-weight: 500; padding: 0; margin-bottom: 4px; }
.stars-r { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; }
.stars-r input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars-r label { font-size: 2rem; line-height: 1; color: var(--border); cursor: pointer; padding: 0 3px; font-weight: 400; }
.stars-r input:checked ~ label, .stars-r label:hover, .stars-r label:hover ~ label { color: #d49a00; }
.stars-r input:focus-visible + label { outline: 2px solid var(--accent); border-radius: 4px; }
@media print { .winegroup h2 { font-size: 13pt; border-bottom: 1pt solid #000; } .winecolor { print-color-adjust: exact; -webkit-print-color-adjust: exact; } }
.importbox { padding: 12px; border: 1px dashed var(--border); border-radius: 10px; background: var(--surface-2); }
