/* Rue Pinard Tasting notes — licht, schreeftitels, wijnrood voor de cameraknop. */
:root { --wine: #6b1230; --wine-d: #4e0d23; --bg: #F8F5F0; --card: #fff; --ink: #2a1f30; --ink2: #5a4d60;
  --line: #ddd3c4; --gold: #c8a96e; --ok: #2f6b4f; --err: #a3412b;
  --serif: "Cormorant Garamond", Georgia, serif; --sans: Jost, "Helvetica Neue", system-ui, -apple-system, sans-serif; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--sans); min-height: 100vh;
  display: flex; flex-direction: column; }
a { color: var(--wine); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; line-height: 1.15; }
h1 { font-size: 34px; } h2 { font-size: 24px; }
img { max-width: 100%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink2); } .small { font-size: 13px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: var(--card); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font: 600 22px var(--serif); }
.brand img { border-radius: 8px; }
.top nav { display: flex; gap: 14px; font-size: 14px; flex-wrap: wrap; justify-content: flex-end; }
.beta { font: 600 11px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--wine); border: 1px solid var(--wine); border-radius: 10px; padding: 1px 7px; margin-left: 2px; }
.betabar { background: #f3e7eb; color: var(--wine-d); font-size: 13px; text-align: center; padding: 6px 16px; }
.proto { background: #fbefc9; color: #5b4300; font-size: 13px; text-align: center; padding: 6px 16px; }
.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 20px 16px 120px; flex: 1; }
.narrow { max-width: 560px; margin: 0 auto; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.foot { text-align: center; font-size: 13px; color: var(--ink2); padding: 20px 16px calc(90px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.foot p { margin: 4px 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 22px;
  background: var(--wine); color: #fff; border: 0; font: 600 15px var(--sans); cursor: pointer; text-decoration: none !important; }
.btn:hover { background: var(--wine-d); color: #fff; }
.btn.ghost { background: transparent; color: var(--wine); border: 1.5px solid var(--wine); }
.btn.small { min-height: 34px; font-size: 13px; }
.link { background: none; border: 0; color: var(--wine); cursor: pointer; font: inherit; padding: 6px 0; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 500; }
.field small { font-weight: 400; color: var(--ink2); }
input[type=text], input[type=email], input[type=number], input[type=search], input[type=date], input:not([type]), select, textarea {
  font: inherit; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-height: 44px; width: 100%; }
textarea { resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; } legend { font-weight: 600; margin-bottom: 6px; }
.chk { display: flex; gap: 10px; align-items: flex-start; } .chk input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.consent { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.notice { background: #eef4ee; border-left: 4px solid var(--ok); padding: 10px 14px; border-radius: 6px; margin: 0 0 14px; }
.notice.err { background: #fbeeea; border-color: var(--err); } .notice ul { margin: 0; padding-left: 18px; }
.pill { display: inline-block; font-size: 12px; padding: 2px 10px; border-radius: 12px; background: #efe8dc; color: var(--ink2); font-weight: 600; }
.pill.ok { background: #e3efe7; color: var(--ok); } .pill.err { background: #f6e3de; color: var(--err); } .pill.warn { background: #fbefc9; color: #5b4300; }
.stars { color: #cfc6b8; letter-spacing: 1px; font-size: 18px; white-space: nowrap; } .stars .on { color: var(--gold); }
.intro { margin-bottom: 16px; } .intro p { margin: 6px 0 0; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 12px; overflow-x: auto; }
.tabs a { padding: 10px 14px; color: var(--ink2); border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs a.on { color: var(--wine); border-color: var(--wine); font-weight: 600; text-decoration: none; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.filters select { width: auto; min-width: 140px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--card); border-radius: 14px; overflow: hidden; box-shadow: 0 1px 3px rgba(40,20,30,.08); display: flex; flex-direction: column; }
.card .ph { display: block; aspect-ratio: 4/5; background: #eee6da; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.card .bn { color: var(--ink); font-weight: 600; } .card .tx { margin: 0; color: var(--ink2); font-size: 14px; }
.card .meta { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: 13px; flex-wrap: wrap; }
@media (min-width: 720px) { .card.big { grid-column: span 2; grid-row: span 2; } .card.big .ph { aspect-ratio: 1/1; } }
.wall { columns: 3 220px; column-gap: 10px; } .wall a { display: block; margin-bottom: 10px; } .wall img { width: 100%; border-radius: 10px; display: block; }
.empty { color: var(--ink2); padding: 30px 0; }
.note { display: grid; gap: 24px; } @media (min-width: 860px) { .note { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.photos { display: grid; gap: 8px; } .photos.n2, .photos.n3, .photos.n4 { grid-template-columns: 1fr 1fr; } .photos.n3 figure:first-child { grid-column: span 2; }
.photos figure { margin: 0; } .photos img { width: 100%; height: auto; border-radius: 12px; display: block; }
.note .txt { display: flex; flex-direction: column; gap: 12px; } .note .body p { margin: 0 0 10px; }
.byline { margin: 0; color: var(--ink2); } .byline a { display: inline-flex; align-items: center; gap: 6px; }
.av { border-radius: 50%; object-fit: cover; } .avbig { border-radius: 50%; width: 96px; height: 96px; object-fit: cover; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; } .tags span { background: #efe8dc; border-radius: 12px; padding: 2px 10px; font-size: 13px; }
.bottle { background: var(--card); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 8px; } .bottle p { margin: 0; }
.share { display: flex; gap: 10px; flex-wrap: wrap; }
.rep { margin: 0; } .rep summary { cursor: pointer; color: var(--ink2); } .rep .field { margin: 8px 0; }
.profile { display: flex; gap: 18px; align-items: center; margin-bottom: 20px; } .profile p { margin: 4px 0; }
.dropzone { display: flex; flex-direction: column; gap: 4px; align-items: center; justify-content: center; text-align: center; min-height: 140px;
  border: 2px dashed var(--line); border-radius: 14px; background: #fff; padding: 18px; cursor: pointer; }
.dropzone.over { border-color: var(--wine); background: #fbf3f5; }
.previews { display: flex; gap: 8px; flex-wrap: wrap; } .previews img { width: 76px; height: 76px; object-fit: cover; border-radius: 8px; }
.suggest { list-style: none; margin: -6px 0 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.suggest li a, .suggest li button { display: block; width: 100%; text-align: left; padding: 10px 12px; border: 0; background: none; font: inherit; color: var(--ink); cursor: pointer; }
.suggest li + li { border-top: 1px solid var(--line); } .suggest small { color: var(--ink2); }
.score legend { margin-bottom: 2px; }
.rating { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rating input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating label { font-size: 36px; color: #cfc6b8; cursor: pointer; line-height: 1; padding: 2px; }
.rating input:checked ~ label, .rating label:hover, .rating label:hover ~ label { color: var(--gold); }
.rating input:focus-visible + label { outline: 2px solid var(--wine); border-radius: 4px; }
.tagpick { display: flex; flex-wrap: wrap; gap: 8px; } .tagpick input { position: absolute; opacity: 0; }
.tagpick span { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 16px; background: #fff; cursor: pointer; font-size: 14px; }
.tagpick input:checked + span { background: var(--wine); color: #fff; border-color: var(--wine); } .tagpick input:focus-visible + span { outline: 2px solid var(--wine); }
.chosen { margin: 0; } .scanhead { display: flex; gap: 14px; align-items: center; } .scanhead img { border-radius: 8px; }
.pick { background: var(--card); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; } .pick select { width: auto; }
.mine { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.mine li { display: flex; gap: 12px; align-items: center; background: var(--card); border-radius: 12px; padding: 10px; }
.mine img { border-radius: 8px; object-fit: cover; } .mine small { display: block; }
.adm { display: flex; gap: 14px; background: var(--card); border-radius: 12px; padding: 12px; flex-wrap: wrap; } .adm p { margin: 0; } .adm input { width: auto; flex: 1; min-width: 200px; }
.thumbs { display: flex; gap: 6px; } .thumbs img { border-radius: 6px; }
/* Cameraknop linksonder, 56 px, wijnrood */
.cam { position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); width: 56px; height: 56px; border-radius: 50%;
  background: var(--wine); color: #fff; border: 0; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(60,10,25,.35); cursor: pointer; z-index: 50; }
.cam:hover { background: var(--wine-d); } .cam:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.sheet-bg { position: fixed; inset: 0; background: rgba(20,10,15,.4); z-index: 60; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; background: #fff; border-radius: 18px 18px 0 0; padding: 14px 16px calc(16px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 4px; max-width: 520px; margin: 0 auto; box-shadow: 0 -6px 24px rgba(0,0,0,.15); }
@media (min-width: 720px) { .sheet { left: 16px; right: auto; bottom: 84px; width: 380px; border-radius: 16px; } }
.sheet .opt { display: flex; gap: 14px; align-items: center; padding: 12px 8px; border-radius: 10px; color: var(--ink); cursor: pointer; text-decoration: none; }
.sheet .opt:hover, .sheet .opt:focus-within { background: #f6f0f2; }
.sheet .ic { width: 40px; height: 40px; border-radius: 50%; background: #f3e7eb; color: var(--wine); display: flex; align-items: center; justify-content: center; font-size: 20px; flex: none; }
.sheet small { display: block; color: var(--ink2); font-size: 13px; } .sheet form { margin: 0; }
.busy { position: fixed; inset: 0; background: rgba(248,245,240,.92); z-index: 70; display: flex; align-items: center; justify-content: center; text-align: center; }
.busy div { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.spin { width: 36px; height: 36px; border: 3px solid #e8dce0; border-top-color: var(--wine); border-radius: 50%; animation: sp 1s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }
.install { position: fixed; left: 16px; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 55; background: #fff; border-radius: 16px;
  padding: 16px; box-shadow: 0 6px 24px rgba(0,0,0,.18); max-width: 420px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.install p { margin: 0; }

/* Fotovakjes (1 tot 4) */
legend .count { font-weight: 500; color: var(--ink2); font-size: 14px; margin-left: 6px; }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slot { position: relative; aspect-ratio: 1/1; border-radius: 12px; overflow: hidden; background: #fff; border: 2px dashed var(--line); }
.slot.filled { border: 0; background: #eee6da; }
.slots.over .slot:not(.filled) { border-color: var(--wine); background: #fbf3f5; }
.slot-add { width: 100%; height: 100%; border: 0; background: none; color: var(--wine); font: 300 34px/1 var(--sans); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.slot-add small { font: 500 11px var(--sans); color: var(--ink2); }
.slot-add:disabled { color: #cfc6b8; cursor: default; }
.slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slot .noprev { display: flex; height: 100%; align-items: center; justify-content: center; text-align: center; font-size: 11px; padding: 4px; color: var(--ink2); word-break: break-all; }
.slot .main { position: absolute; left: 4px; bottom: 4px; background: var(--wine); color: #fff; font: 600 10px var(--sans); padding: 2px 6px; border-radius: 8px; }
.slot .del { position: absolute; right: 4px; top: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(20,10,15,.65); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.slot .wait { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.7); }
.busy progress { width: 220px; accent-color: var(--wine); }
/* Zwevende knop nooit over invoer: weg tijdens typen; ruimte onderaan */
body.typing .cam { display: none; }
.wrap { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
/* Labels wie schreef / gekocht (principes Hakan) en NIX18 */
.labels { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.pill.role-team, .pill.role-partner { background: #e8e1f0; color: #3d2a5a; }
.nix18 { font-size: 12px; color: var(--ink2); margin-top: 6px; }
.prose ul { padding-left: 1.2em; } .prose li { margin: 4px 0; }
/* Etiket lezen in het formulier */
.ocr { border: 1px solid #e6dccb; border-radius: 12px; padding: 10px; background: #fffaf2; }
.ocr .reading { display: flex; align-items: center; gap: 8px; margin: 0; }
.ocr-card { display: flex; gap: 12px; align-items: flex-start; }
.ocr-card img { width: 64px; height: 84px; object-fit: contain; background: #fff; border-radius: 8px; }
.ocr-card small { display: block; color: var(--ink2); }
.ocr-card .q { margin: 8px 0 4px; font-weight: 600; }

/* Talen: taalkiezer in de voet, 'Vertaald uit het …' en Toon origineel */
.foot .langs{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 12px;margin:8px 0}
.foot .langs a{text-decoration:none;opacity:.8}
.foot .langs a.on{font-weight:600;opacity:1;text-decoration:underline}
.trfrom{display:block;color:var(--muted,#5a4d60);font-size:13px;margin-top:2px}
.trnote{margin:6px 0 12px}
.trnote details.orig summary{cursor:pointer;font-size:14px;color:var(--wine,#6b1230);margin-top:4px}
.trnote details.orig div{border-left:3px solid #e6dccf;padding-left:12px;margin-top:6px;color:var(--muted,#5a4d60)}
