/* ================== Design-Tokens ================== */
:root {
  --bg: #f5f2ea;
  --surface: #ffffff;
  --surface-2: #efebe1;
  --text: #1d2a21;
  --muted: #66705f;
  --line: #e2dccd;
  --primary: #2f6b43;
  --primary-ink: #ffffff;
  --primary-soft: #e3efe5;
  --forest: #1f4a2e;
  --accent: #e3a23b;
  --danger: #c2412d;
  --danger-soft: #fbe9e5;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(30, 40, 20, .06), 0 8px 24px rgba(30, 40, 20, .08);
  --shadow-lg: 0 20px 60px rgba(10, 20, 10, .25);
  --nav-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111612;
    --surface: #1a211b;
    --surface-2: #232c24;
    --text: #e8ece4;
    --muted: #9aa596;
    --line: #2d382e;
    --primary: #6fbf86;
    --primary-ink: #0c1a10;
    --primary-soft: #1f3324;
    --forest: #0f2416;
    --danger: #ef7a66;
    --danger-soft: #3a1f1a;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.3);
    color-scheme: dark;
  }
}

/* ================== Basis ================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
svg:not([class*=leaflet]) { width: 20px; height: 20px; flex: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
a { color: var(--primary); }

/* ================== Buttons ================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border: 0; border-radius: 999px;
  background: var(--surface-2); font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: transform .12s, background .15s, opacity .15s;
}
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--primary); color: var(--primary-ink); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.ghost { background: transparent; }
.btn.danger.ghost { color: var(--danger); }
.btn.block { width: 100%; }
.btn[disabled], .btn.busy { opacity: .6; pointer-events: none; }
.btn.busy::after {
  content: ""; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: transparent;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn.soft { background: var(--surface-2); border-radius: var(--radius-sm); width: 48px; height: 48px; }
.icon-btn.on-dark { color: #fff; background: rgba(0,0,0,.2); backdrop-filter: blur(6px); }
.link { background: none; border: 0; padding: 0; color: var(--primary); font-weight: 600; text-decoration: underline; }
.link.small { font-size: 14px; margin: -4px 0 8px; }

/* ================== Formular ================== */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field > span { font-size: 13px; font-weight: 600; color: var(--muted); }
.field input, .field textarea, .quick-add input, .search input {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 88px; }
.field input:focus, .field textarea:focus, .quick-add input:focus, .search input:focus {
  border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft);
}
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.input-row { display: flex; gap: 8px; }
.hint { color: var(--muted); font-size: 13px; min-height: 1em; }
.hint.ok { color: var(--primary); }
.hint.warn { color: var(--danger); }
.form-error { color: var(--danger); font-size: 14px; min-height: 1.2em; margin: 0 0 8px; }

.switch { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; user-select: none; }
.switch input {
  appearance: none; width: 44px; height: 26px; border-radius: 999px; margin: 0;
  background: var(--line); position: relative; transition: background .2s; cursor: pointer;
}
.switch input::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s;
}
.switch input:checked { background: var(--primary); }
.switch input:checked::after { transform: translateX(18px); }

/* ================== Login ================== */
.login {
  min-height: 100dvh; display: grid; place-items: center; padding: 20px;
  background: linear-gradient(180deg, rgba(15,36,22,.35), rgba(15,36,22,.75)), url(camping.jpg) center/cover;
}
.login-card {
  width: min(400px, 100%); padding: 28px; border-radius: 24px;
  background: var(--surface); box-shadow: var(--shadow-lg);
}
.login-card .brand { margin-bottom: 24px; color: var(--text); }
.login-card .brand p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand h1 { font-size: 26px; font-weight: 800; }
.brand-mark {
  width: 44px; height: 44px; padding: 9px; border-radius: 14px;
  background: var(--accent); color: var(--forest);
}

/* ================== Hero ================== */
.hero {
  position: relative; color: #fff;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 20px 22px;
  background:
    linear-gradient(180deg, rgba(15,36,22,.15) 0%, rgba(15,36,22,.85) 100%),
    url(camping.jpg) center 40%/cover;
  min-height: 190px; display: flex; flex-direction: column; justify-content: space-between;
}
.hero-top { display: flex; justify-content: space-between; align-items: center; }
.hero .brand-mark { width: 38px; height: 38px; padding: 8px; border-radius: 12px; }
.hero-stats { display: flex; gap: 6px; margin: 24px -10px 0; overflow-x: auto; scrollbar-width: none; }
.hero-stats::-webkit-scrollbar { display: none; }
.hero-stats button { display: flex; flex-direction: column; align-items: flex-start; border: 0; background: none; color: #fff; padding: 6px 10px; border-radius: 12px; text-align: left; flex: none; }
.hero-stats button:hover { background: rgba(255,255,255,.12); }
.hero-stats b { font-size: 24px; font-weight: 800; line-height: 1; }
.hero-stats span { font-size: 12px; opacity: .85; margin-top: 4px; white-space: nowrap; }

.banner {
  margin: 12px 16px 0; padding: 12px 14px; border-radius: var(--radius-sm);
  background: #fff4dc; color: #6b4a0f; font-size: 14px;
}
.banner .link { color: inherit; margin-left: 4px; }
@media (prefers-color-scheme: dark) { .banner { background: #3a2f17; color: #f3d9a4; } }

/* ================== Tabs ================== */
.tabs {
  position: fixed; inset: auto 0 0 0; z-index: 30;
  display: flex; height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.tabs button {
  flex: 1; border: 0; background: none; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 12px; font-weight: 600;
}
.tabs button svg { width: 24px; height: 24px; padding: 2px 14px; box-sizing: content-box; border-radius: 999px; transition: background .2s; }
.tabs button[aria-selected="true"] { color: var(--primary); }
.tabs button[aria-selected="true"] svg { background: var(--primary-soft); }

main { padding: 16px 16px calc(var(--nav-h) + var(--safe-b) + 90px); max-width: 1200px; margin: 0 auto; }
.tab { display: none; }
.tab.active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }

@media (min-width: 860px) {
  .tabs {
    position: sticky; top: 0; inset: auto; height: auto; padding: 10px 16px;
    justify-content: center; gap: 6px; border-top: 0; border-bottom: 1px solid var(--line);
  }
  .tabs button { flex: none; flex-direction: row; gap: 8px; padding: 8px 18px; border-radius: 999px; font-size: 15px; }
  .tabs button svg { padding: 0; background: none !important; width: 20px; height: 20px; }
  .tabs button[aria-selected="true"] { background: var(--primary-soft); }
  main { padding-bottom: 100px; }
  .hero { min-height: 230px; padding-left: max(20px, calc(50% - 584px)); padding-right: max(20px, calc(50% - 584px)); }
}

/* ================== Toolbar ================== */
.toolbar { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.search { position: relative; display: block; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { padding-left: 44px; border-radius: 999px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--surface); font-size: 14px; font-weight: 600; color: var(--muted);
}
.chip svg { width: 16px; height: 16px; }
.chip.active { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }

/* ================== Karten (Campingplätze) ================== */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }
.place {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.place-img {
  position: relative; aspect-ratio: 16 / 10; background: var(--surface-2);
  display: grid; place-items: center; color: var(--muted); border: 0; padding: 0; width: 100%;
}
.place-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.place-img > svg { width: 48px; height: 48px; opacity: .35; }
.badges { position: absolute; top: 10px; left: 10px; right: 50%; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; }
.badges.right { left: auto; right: 10px; justify-content: flex-end; }
.badge {
  display: inline-flex; align-items: center; gap: 4px; background: rgba(255,255,255,.93); color: #1d2a21;
  border-radius: 999px; padding: 4px 10px; font-size: 12.5px; font-weight: 700; white-space: nowrap;
}
.badge svg { width: 14px; height: 14px; }
.badge.wish { background: var(--accent); color: #3b2a07; }
.badge.here { background: #2b7cff; color: #fff; }
.place-body { padding: 14px 16px 6px; flex: 1; cursor: pointer; }
.place.wish { outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: -2px; }
.place h3 { font-size: 18px; font-weight: 700; }
.place .addr {
  display: flex; gap: 4px; align-items: flex-start; margin-top: 4px;
  background: none; border: 0; padding: 0; text-align: left; color: var(--muted); font-size: 14px;
}
.place .addr svg { width: 16px; height: 16px; margin-top: 2px; }
.place .addr:hover { color: var(--primary); }
.meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px;
  background: var(--surface-2); font-size: 13px; font-weight: 600;
}
.tag svg { width: 15px; height: 15px; }
.tag.good { background: var(--primary-soft); color: var(--primary); }
.stars { display: inline-flex; color: var(--accent); }
.stars svg { width: 15px; height: 15px; }
.stars .off { color: var(--line); }
.note {
  margin: 12px 0 0; color: var(--muted); font-size: 14px; white-space: pre-line;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.note.open { -webkit-line-clamp: unset; }
.contact { margin-top: 10px; font-size: 14px; word-break: break-word; }
.contact a { font-weight: 600; }
.place-actions { display: flex; gap: 4px; padding: 8px 10px 12px; border-top: 1px solid var(--line); margin-top: 12px; }
.place-actions .btn { text-decoration: none; min-height: 38px; padding: 0 12px; font-size: 14px; background: transparent; }
.place-actions .btn:hover { background: var(--surface-2); }
.place-actions .btn.go { color: var(--primary); }

.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty svg { width: 56px; height: 56px; opacity: .4; margin-bottom: 8px; }

.skeleton { border-radius: var(--radius); height: 320px; background: linear-gradient(90deg, var(--surface-2), var(--surface), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ================== FAB ================== */
.fab {
  position: fixed; right: 20px; bottom: calc(var(--nav-h) + var(--safe-b) + 18px); z-index: 25;
  width: 60px; height: 60px; border-radius: 20px; border: 0;
  background: var(--accent); color: var(--forest); display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(227,162,59,.45); transition: transform .15s;
}
.fab svg { width: 28px; height: 28px; }
.fab:active { transform: scale(.94); }
@media (min-width: 860px) { .fab { bottom: 28px; right: 28px; } }

/* ================== Packliste ================== */
.quick-add { display: grid; grid-template-columns: 1fr 9.5rem 48px; gap: 8px; margin-bottom: 14px; }
.quick-add .btn { padding: 0; width: 48px; min-height: 48px; border-radius: var(--radius-sm); }
@media (max-width: 520px) {
  .quick-add { grid-template-columns: 1fr 48px; }
  .quick-add input[name=item] { grid-column: 1 / -1; }
}
.pack-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.pack-head .progress { flex: 1 1 140px; }
.pack-head #packCount { font-weight: 700; font-size: 14px; }
.pack-head .switch { font-size: 14px; }
.progress { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progress.big { height: 10px; }
.progress > div { height: 100%; width: 0; background: var(--primary); border-radius: inherit; transition: width .35s ease; }

.group { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 14px; overflow: hidden; }
.group-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 10px; }
.group-head h3 { font-size: 16px; flex: 1; }
.group-head .count { font-size: 13px; color: var(--muted); font-weight: 600; }
.group-head .icon-btn { width: 34px; height: 34px; color: var(--muted); }
.group-head .icon-btn svg { width: 18px; height: 18px; }
.group .progress { margin: 0 16px 6px; height: 4px; }
.group.done .group-head h3::after { content: " ✓"; color: var(--primary); }
.item {
  display: flex; align-items: center; gap: 12px; padding: 10px 8px 10px 16px;
  border-top: 1px solid var(--line);
}
.item input[type=checkbox] {
  appearance: none; flex: none; width: 24px; height: 24px; margin: 0; border-radius: 8px;
  border: 2px solid var(--line); background: var(--surface); cursor: pointer;
  display: grid; place-items: center; transition: background .15s, border-color .15s;
}
.item input[type=checkbox]::after {
  content: ""; width: 6px; height: 11px; border: solid var(--primary-ink); border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) scale(0); margin-top: -3px; transition: transform .15s;
}
.item input:checked { background: var(--primary); border-color: var(--primary); }
.item input:checked::after { transform: rotate(45deg) scale(1); }
.item .text { flex: 1; min-width: 0; cursor: pointer; }
.item.done .text { color: var(--muted); text-decoration: line-through; }
.item .icon-btn { width: 36px; height: 36px; color: var(--muted); opacity: .7; }
.item .icon-btn svg { width: 18px; height: 18px; }

/* ================== Karte ================== */
#tab-karte.active { position: relative; margin: -16px -16px 0; }
#map { height: calc(100dvh - var(--nav-h) - var(--safe-b) - 190px); min-height: 360px; background: var(--surface-2); }
@media (min-width: 860px) { #map { height: calc(100dvh - 300px); border-radius: var(--radius); } #tab-karte.active { margin: 0; } }
.map-locate { position: absolute; right: 12px; top: 12px; z-index: 500; background: var(--surface); box-shadow: var(--shadow); width: 44px; height: 44px; }
.leaflet-popup-content-wrapper { border-radius: 14px; }
.leaflet-popup-content { margin: 0; width: 240px !important; }
.pop img { width: 100%; height: 120px; object-fit: cover; border-radius: 14px 14px 0 0; display: block; }
.pop div { padding: 10px 12px 12px; font: 14px/1.4 system-ui, sans-serif; }
.pop b { display: block; font-size: 15px; margin-bottom: 2px; }
.pop .muted { color: #66705f; font-size: 13px; }
.pop a { display: inline-block; margin-top: 8px; font-weight: 700; color: #2f6b43; }
.me-dot { width: 18px; height: 18px; border-radius: 50%; background: #2b7cff; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(43,124,255,.25); }
.camp-pin {
  width: 34px; height: 34px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--forest); border: 2px solid #fff; box-shadow: 0 3px 8px rgba(0,0,0,.35);
  display: grid; place-items: center;
}
.camp-pin svg { transform: rotate(45deg); color: var(--accent); width: 18px; height: 18px; }
.camp-pin.wish { background: var(--accent); }
.camp-pin.wish svg { color: #3b2a07; }
.camp-pin.here { background: #2b7cff; }
.camp-pin.here svg { color: #fff; }
.sc-pin { width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 3px solid #2b7cff; display: grid; place-items: center; color: #2b7cff; box-shadow: 0 3px 10px rgba(0,0,0,.3); }
.sc-pin svg { width: 20px; height: 20px; }
.step-pin { width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; border: 2px solid #fff; display: grid; place-items: center; font: 700 13px/1 system-ui, sans-serif; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.pop-btns { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.pop-btns a { margin-top: 0 !important; }
.pop-btns button { border: 0; background: #e3efe5; color: #2f6b43; font-weight: 700; padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.trip-banner { position: absolute; left: 12px; right: 68px; top: 12px; z-index: 500; display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px;
  background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); font-weight: 600; font-size: 14px; }
.trip-banner span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trip-banner svg:first-child { color: var(--primary); }

/* ================== Dialoge / Sheets ================== */
dialog.sheet {
  border: 0; padding: 0; color: var(--text); background: var(--surface);
  width: min(560px, 100%); max-height: min(92dvh, 900px);
  border-radius: 24px; box-shadow: var(--shadow-lg);
}
dialog.sheet.small { width: min(420px, 100%); }
dialog.sheet::backdrop { background: rgba(10, 20, 12, .5); backdrop-filter: blur(3px); }
dialog.sheet[open] { animation: pop .22s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
dialog.sheet > form { display: flex; flex-direction: column; max-height: inherit; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 16px 8px 22px; }
.sheet-head h2 { font-size: 20px; }
.sheet-body { padding: 8px 22px; overflow-y: auto; }
.sheet-foot { display: flex; gap: 8px; align-items: center; padding: 12px 16px 16px; border-top: 1px solid var(--line); }
.spacer { flex: 1; }
.confirm .sheet-body { padding-top: 22px; font-size: 17px; }
.confirm .sheet-foot { border: 0; }

@media (max-width: 600px) {
  dialog.sheet:not(.confirm) {
    margin: auto 0 0; width: 100%; max-width: 100%;
    border-radius: 24px 24px 0 0; padding-bottom: var(--safe-b);
  }
  dialog.sheet:not(.confirm)[open] { animation: slideup .28s cubic-bezier(.2,.8,.2,1); }
}
@keyframes slideup { from { transform: translateY(100%); } }
@media (max-width: 600px) {
  .sheet-foot [data-close] { display: none; }   /* Schließen-X oben reicht auf dem Handy */
  .sheet-foot .btn { padding: 0 14px; }
}

.stars-input { display: flex; gap: 2px; min-height: 48px; align-items: center; }
.stars-input button { border: 0; background: none; padding: 4px; color: var(--line); }
.stars-input button svg { width: 26px; height: 26px; }
.stars-input button.on { color: var(--accent); }

/* ================== Menü, Lightbox, Toasts ================== */
.menu {
  position: fixed; z-index: 60; top: calc(60px + env(safe-area-inset-top, 0px)); right: 16px;
  background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; min-width: 200px;
}
.menu button { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 11px 14px; border: 0; background: none; border-radius: 10px; font-weight: 500; }
.menu button svg { color: var(--muted); }
.menu button:hover { background: var(--surface-2); }

dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100dvh; width: 100vw; height: 100dvh; display: grid; place-items: center; }
dialog.lightbox:not([open]) { display: none; }
dialog.lightbox::backdrop { background: rgba(0,0,0,.94); }
dialog.lightbox img { display: block; max-width: 100vw; max-height: calc(100dvh - 80px); object-fit: contain; }
.lb-bar { position: fixed; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; align-items: center; padding: 12px 16px calc(12px + var(--safe-b)); color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.lb-bar .btn { background: rgba(255,255,255,.15); color: #fff; }
.lb-bar .btn.danger { background: var(--danger); }
.lb-tag { font-size: 13px; opacity: .8; }
.lb-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 48px; height: 72px; border: 0; border-radius: 12px; background: rgba(255,255,255,.12); color: #fff; font-size: 36px; }
.lb-nav.prev { left: 8px; } .lb-nav.next { right: 8px; }

.toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + var(--safe-b) + 90px); z-index: 100; display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); }
.toast {
  background: #1d2a21; color: #fff; padding: 12px 16px; border-radius: 14px; box-shadow: var(--shadow-lg);
  font-weight: 500; animation: toast .25s ease;
}
.toast.error { background: var(--danger); }
@keyframes toast { from { opacity: 0; transform: translateY(10px); } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ================== Automatisch ausfüllen ================== */
.soft-btn { background: var(--surface-2); border-radius: var(--radius-sm); min-height: 48px; padding: 0 14px; flex: none; }
.soft-btn.busy svg { display: none; }
.lookup { display: grid; gap: 6px; margin-top: 4px; }
.lookup-head { font-size: 13px; font-weight: 600; color: var(--muted); display: flex; justify-content: space-between; align-items: center; }
.lookup-item {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; width: 100%;
  padding: 10px 12px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--surface);
}
.lookup-item:hover, .lookup-item:focus-visible { border-color: var(--primary); background: var(--primary-soft); outline: none; }
.lookup-item b { font-size: 15px; }
.lookup-item small { color: var(--muted); font-size: 13px; }
.lookup-item .kind { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--primary); }
.lookup-empty { font-size: 14px; color: var(--muted); padding: 6px 2px; }
.muted-text { color: var(--muted); margin: 4px 0 14px; font-size: 14px; }
.filled { animation: filled 1.2s ease; }
@keyframes filled { 0% { background: var(--primary-soft); border-color: var(--primary); } }

/* =====================================================================
   Version 5: Wunschliste, Detailansicht, Aufenthalte, Touren, Statistik,
   Vorlagen, SmartCamp, Teilen, Benutzer
   ===================================================================== */
.btn.small { min-height: 34px; padding: 0 12px; font-size: 14px; gap: 6px; }
.btn.small svg { width: 16px; height: 16px; }
.btn.small.primary { background: var(--primary); }
.empty .btn { margin-top: 14px; }
.warn-text { color: var(--danger); font-size: 13px; display: block; }
.muted-text { color: var(--muted); font-size: 14px; margin: 4px 0 12px; }
.skeleton.small { height: 80px; border-radius: var(--radius-sm); }
.spacer { flex: 1; }
h3 { font-size: 16px; }
section > h3, .sec-head h3 { margin: 22px 0 10px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sec-head h3 { margin: 0; }
section > .sec-head { margin: 22px 0 10px; }

/* Segment-Schalter (Buttons mit aria-pressed oder Radio-Labels) */
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--surface-2); }
.seg.wide { display: flex; }
.seg > button, .seg > label { flex: 1; display: inline-flex; }
.seg button, .seg label span {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; background: none;
  padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap;
}
.seg svg { width: 16px; height: 16px; }
.seg label input { position: absolute; opacity: 0; pointer-events: none; }
.seg button[aria-pressed="true"], .seg label input:checked + span { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.seg [data-status="wunsch"][aria-pressed="true"], .seg input[value="wunsch"]:checked + span { color: #a06a10; }
#placeForm .seg { margin-bottom: 16px; }

/* Neue Fotos im Formular */
.new-photos { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
#newPhotos { display: contents; }
.new-photos figure { position: relative; margin: 0; flex: none; width: 88px; height: 88px; }
.new-photos figure img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.new-photos figure .icon-btn { position: absolute; top: 2px; right: 2px; width: 26px; height: 26px; background: rgba(0,0,0,.6); color: #fff; }
.new-photos figure .icon-btn svg { width: 14px; height: 14px; }
.photo-add { flex: none; width: 88px; height: 88px; border: 2px dashed var(--line); border-radius: 12px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px; color: var(--muted); font-size: 12px; font-weight: 600; cursor: pointer; background: var(--surface-2); }

/* SmartCamp-Karte */
.sc-card { background: linear-gradient(135deg, var(--forest), #2a5d3c); color: #fff; border-radius: var(--radius); padding: 14px 16px; margin-bottom: 16px; box-shadow: var(--shadow); }
.sc-card.stale { filter: saturate(.3); opacity: .85; }
.sc-head { display: flex; align-items: center; gap: 8px; }
.sc-head svg { color: var(--accent); }
.sc-head span { opacity: .75; font-size: 13px; flex: 1; }
.sc-head .icon-btn { color: #fff; width: 34px; height: 34px; }
.sc-head .icon-btn:hover { background: rgba(255,255,255,.12); }
.sc-vals { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; margin-top: 10px; }
.sc-vals > div { background: rgba(255,255,255,.1); border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; }
.sc-vals > div.warn { background: rgba(239,122,102,.35); }
.sc-vals span { font-size: 12px; opacity: .8; }
.sc-vals b { font-size: 19px; line-height: 1.2; }
.sc-vals small { font-size: 12px; opacity: .75; }
.sc-place { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 8px 8px 8px 12px; border-radius: 12px; background: rgba(255,255,255,.12); font-size: 14px; }
.sc-place span { flex: 1; }
.sc-place.warn { background: rgba(227,162,59,.3); }
.sc-place .btn { background: #fff; color: var(--forest); }
.sc-place .btn.primary { background: var(--accent); color: #3b2a07; }
.alert { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: var(--radius-sm); background: #fff1e0; color: #6b3d0b; margin-bottom: 14px; font-size: 14px; }
.alert span { flex: 1; }
@media (prefers-color-scheme: dark) { .alert { background: #3a2a17; color: #f3d9a4; } }

/* Packliste */
.pack-head { margin-bottom: 8px; }
.pack-tools { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.group-toggle { display: flex; align-items: center; gap: 6px; border: 0; background: none; padding: 0; flex: 1; text-align: left; }
.group-toggle svg { width: 16px; height: 16px; transform: rotate(90deg); transition: transform .2s; color: var(--muted); }
.group.closed .group-toggle svg { transform: none; }
.group.closed { padding-bottom: 6px; }
.action-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 6px; border: 0; background: none; border-bottom: 1px solid var(--line); text-align: left; font-weight: 600; }
.action-row:last-child { border-bottom: 0; }
.action-row svg { color: var(--muted); }
.action-row small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.action-row.danger, .action-row.danger svg { color: var(--danger); }
.tpl-list { display: grid; gap: 8px; }
.tpl { display: flex; align-items: center; gap: 4px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding-right: 4px; }
.tpl-main { flex: 1; display: flex; align-items: center; gap: 12px; border: 0; background: none; padding: 12px; text-align: left; }
.tpl-main svg { color: var(--primary); }
.tpl-main small { display: block; color: var(--muted); font-size: 13px; }
.tpl:hover { border-color: var(--primary); }

/* Große Sheets (Detail, Touren, Statistik) */
dialog.sheet.large { width: min(760px, 100%); }
@media (max-width: 600px) {
  dialog.sheet.large { max-height: 100dvh; height: 100dvh; border-radius: 0; }
  dialog.sheet.large > form { height: 100%; max-height: 100dvh; }
  dialog.sheet.large .sheet-head { padding-top: calc(14px + env(safe-area-inset-top, 0px)); }
}
dialog.sheet.large .sheet-body { flex: 1; }

/* Detailansicht */
.detail .sheet-body { padding-top: 0; }
.gallery { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -22px 16px; padding: 0 22px; scrollbar-width: thin; }
.g-img { flex: none; width: min(78%, 420px); aspect-ratio: 4 / 3; border: 0; padding: 0; border-radius: var(--radius); overflow: hidden; scroll-snap-align: start; background: var(--surface-2); }
.g-img:only-of-type { width: 100%; }
.g-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.g-add { flex: none; width: 120px; aspect-ratio: 3 / 4; max-height: 180px; border: 2px dashed var(--line); border-radius: var(--radius); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px; text-align: center; color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; scroll-snap-align: start; }
.g-add:only-child { width: 100%; aspect-ratio: 16 / 6; flex-direction: row; }
.g-add.busy { opacity: .5; pointer-events: none; }
.d-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.stars.big svg { width: 20px; height: 20px; }
.addr.big { display: flex; gap: 6px; align-items: flex-start; border: 0; background: none; padding: 0; margin: 12px 0 0; color: var(--muted); text-align: left; font-size: 15px; }
.addr.big svg { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.d-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin: 16px 0 4px; }
.d-actions .btn { text-decoration: none; }
.here-box { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 12px 12px 16px; border-radius: var(--radius-sm); background: #e6f0ff; color: #12366e; }
.here-box div { flex: 1; display: flex; flex-direction: column; }
.here-box span { font-size: 14px; opacity: .8; }
@media (prefers-color-scheme: dark) { .here-box { background: #17263d; color: #cfe0ff; } }
.weather .w-days { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.w-day { display: flex; flex-direction: column; align-items: center; padding: 8px 2px; border-radius: 12px; background: var(--surface-2); font-size: 13px; }
.w-icon { font-size: 22px; line-height: 1.3; }
.w-name { color: var(--muted); font-weight: 600; }
.w-min { color: var(--muted); }
.w-rain { color: #2b7cff; font-size: 11.5px; }
.facts { margin: 0; display: grid; gap: 0; }
.facts div { display: grid; grid-template-columns: 130px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 14px; }
.facts dd { margin: 0; word-break: break-word; }
.note-box { display: flex; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--primary-soft); }
.note-box svg { color: var(--primary); flex: none; margin-top: 2px; }
.note-box p { margin: 2px 0 0; white-space: pre-line; }
.d-note { white-space: pre-line; margin: 14px 0 0; }
.stays { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.stays li { display: flex; gap: 8px; padding: 12px 8px 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); }
.st-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.st-main span { color: var(--muted); font-size: 14px; }
.st-main p { margin: 6px 0 0; font-size: 14px; white-space: pre-line; }
.st-btns { display: flex; align-items: flex-start; }
.st-fotos { display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; }
.st-fotos img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; cursor: pointer; }
.sc-mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 6px; margin-top: 10px; }
.sc-mini div { background: var(--surface); border-radius: 10px; padding: 6px 10px; display: flex; flex-direction: column; font-size: 13px; }
.sc-mini span { color: var(--muted); }

/* Kennzahlen (Touren, Statistik) */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.kpis div { background: var(--surface-2); border-radius: var(--radius-sm); padding: 12px 14px; display: flex; flex-direction: column; }
.kpis b { font-size: 22px; line-height: 1.2; }
.kpis span { color: var(--muted); font-size: 13px; }

/* Touren */
.trip { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 14px; overflow: hidden; }
.trip-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 14px 16px 4px; cursor: pointer; }
.trip-head h3 { font-size: 18px; margin: 0 0 2px; }
.trip-head .muted-text { margin: 0; }
.pill { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.pill.live { background: #2b7cff; color: #fff; }
.pill.plan { background: var(--accent); color: #3b2a07; }
.trip-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 16px; margin: 0; cursor: pointer; }
.trip-steps li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--primary-soft); font-size: 13.5px; font-weight: 600; }
.trip-steps li small { color: var(--muted); font-weight: 600; }
.trip-steps li + li::before { content: "→"; margin: 0 4px 0 -2px; color: var(--muted); }
.trip-steps li.home { background: var(--surface-2); }
.trip-foot { display: flex; align-items: center; gap: 12px; padding: 8px 10px 12px 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.trip-km { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--text); }
.trip-km svg { width: 16px; height: 16px; color: var(--primary); }
.timeline { list-style: none; margin: 18px 0 0; padding: 0; }
.timeline li { display: flex; gap: 12px; align-items: flex-start; }
.timeline li[data-place] { cursor: pointer; }
.timeline li > div:last-child { display: flex; flex-direction: column; padding: 4px 0 6px; }
.timeline li span { color: var(--muted); font-size: 14px; }
.tl-dot { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: var(--primary-ink); display: grid; place-items: center; font-weight: 800; }
.tl-home .tl-dot { background: var(--surface-2); color: var(--text); }
.tl-drive { margin-left: 15px; padding: 6px 0 6px 28px; border-left: 2px dashed var(--line); color: var(--muted); font-size: 13.5px; align-items: center !important; gap: 6px !important; }
.tl-drive svg { width: 16px; height: 16px; }
.stage-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.stage-list li { display: grid; grid-template-columns: 26px 1fr 74px auto; gap: 6px; align-items: center; }
.stage-no { width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: var(--primary-ink); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.stage-list select, .stage-list input { min-height: 44px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); padding: 0 10px; width: 100%; min-width: 0; }
.nights { position: relative; }
.nights span { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13px; pointer-events: none; }
.nights input { padding-right: 24px; }
.stage-btns { display: flex; }
.stage-btns .icon-btn { width: 32px; height: 36px; border-radius: 8px; }
.stage-btns .icon-btn[disabled] { opacity: .25; }
@media (max-width: 520px) {
  .stage-list li { grid-template-columns: 26px 1fr 70px; }
  .stage-btns { grid-column: 2 / -1; justify-content: flex-end; margin-top: -4px; }
}

/* Statistik */
.stats .chips { margin: 0 0 14px; padding: 0; }
.bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; height: 160px; align-items: end; }
.bar { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 2px; }
.bar-fill { width: 100%; max-width: 32px; min-height: 2px; background: var(--primary); border-radius: 6px 6px 2px 2px; }
.bar-n { font-size: 11px; font-weight: 700; color: var(--muted); }
.bar-l { font-size: 11px; color: var(--muted); }
.stats-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 24px; }
.rank { margin: 0; padding: 0; list-style: none; counter-reset: r; }
.rank li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); counter-increment: r; }
.rank li[data-place] { cursor: pointer; }
.rank li span::before { content: counter(r) ". "; color: var(--muted); }

/* SmartCamp-Einstellungen, Teilen, Benutzer */
.switch { margin: 6px 0; }
.switch.big { font-size: 17px; font-weight: 700; }
.field.inline { flex-direction: row; align-items: center; gap: 10px; margin: 4px 0 10px 54px; }
.field.inline > span { flex: 1; font-size: 14px; }
.field.inline input { width: 96px; min-height: 40px; text-align: right; }
.field.inline em { font-style: normal; color: var(--muted); width: 34px; font-size: 14px; }
.sc-status { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.sc-opts h3 { margin: 22px 0 8px; }
.token-box { background: var(--surface-2); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; }
.token-box p { margin: 0 0 8px; }
.copy-field { flex: 1; min-width: 0; min-height: 44px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 0 12px; background: var(--surface); font-size: 14px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em; }
.steps { padding-left: 20px; margin: 0 0 14px; font-size: 14px; }
.steps li { margin-bottom: 6px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; background: var(--surface-2); padding: 1px 5px; border-radius: 5px; }
.code-wrap { position: relative; }
.code-wrap .btn { position: absolute; top: 8px; right: 8px; background: var(--surface); }
.code-wrap pre { margin: 0; padding: 14px; padding-top: 48px; border-radius: var(--radius-sm); background: #10170f; color: #d7e6d2; overflow: auto; font-size: 12.5px; line-height: 1.5; max-height: 60dvh; }
.code-wrap pre code { background: none; padding: 0; }
.users { display: grid; gap: 6px; margin-bottom: 8px; }
.user-row { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; border-radius: var(--radius-sm); background: var(--surface-2); }
.user-row span { flex: 1; display: flex; gap: 8px; align-items: center; }
.user-row small { font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); }
dialog.actions .sheet-body { padding-bottom: 14px; }

/* Tabs: 4 Einträge */
@media (max-width: 400px) { .tabs button svg { padding: 2px 10px; } .tabs button { font-size: 11px; } }
.pack-tools .switch { font-size: 14px; white-space: nowrap; }
.trip-foot .btn { color: var(--text); }
.d-actions { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 520px) {
  .d-actions .btn { flex-direction: column; gap: 2px; min-height: 58px; padding: 6px 4px; border-radius: 14px; font-size: 13px; }
}
.nav-opts { display: grid; gap: 8px; margin-bottom: 12px; }
.nav-opt { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; font-weight: 600; }
.nav-opt:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.nav-opt input { width: 20px; height: 20px; accent-color: var(--primary); margin: 0; }

/* ================== Google-Daten ================== */
#confirmText { white-space: pre-line; }
.g-logo { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: #fff; border: 1px solid var(--line); flex: none; }
.g-logo b { font: 800 14px/1 Arial, sans-serif; background: conic-gradient(from -45deg, #ea4335 0 25%, #4285f4 0 50%, #34a853 0 75%, #fbbc05 0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.g-logo.small { width: 16px; height: 16px; border-radius: 4px; vertical-align: -3px; }
.g-logo.small b { font-size: 11px; }
.sec-head h3 { display: flex; align-items: center; gap: 8px; }
.g-section { margin-top: 4px; }
.g-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.g-rating { display: flex; align-items: center; gap: 8px; }
.g-rating b { font-size: 28px; line-height: 1; }
.g-rating span:last-child { color: var(--muted); font-size: 14px; }
.g-stars { color: #fbbc05; }
.g-stars svg { width: 17px; height: 17px; }
.g-stars .half { color: color-mix(in srgb, #fbbc05 45%, var(--line)); }
.pill.open { background: #e3f4e6; color: #1e7b34; }
@media (prefers-color-scheme: dark) { .pill.open { background: #1f3a25; color: #8fd49d; } }
.g-summary { margin: 10px 0 0; }
.g-links { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.g-photos { display: flex; gap: 6px; overflow-x: auto; margin: 0 -22px; padding: 0 22px; scroll-snap-type: x mandatory; }
.g-photos a { flex: none; scroll-snap-align: start; }
.g-photos img { height: 130px; width: auto; min-width: 100px; max-width: 220px; object-fit: cover; border-radius: 12px; display: block; background: var(--surface-2); }
.g-attr { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.g-hours { margin: 12px 0; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 14px; }
.g-hours summary { font-weight: 600; cursor: pointer; }
.g-hours ul { margin: 8px 0 0; padding-left: 18px; font-size: 14px; }
.g-foot { display: flex; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.g-foot .link { margin: 0; }
.g-howto { margin-top: 16px; }
.g-howto summary { font-weight: 600; cursor: pointer; margin-bottom: 8px; }
.menu .g-logo { width: 20px; height: 20px; }
.hint.dup { color: #a06a10; font-weight: 600; }
.hint { white-space: pre-line; }
.g-diag { margin-top: 16px; }
.g-diag .facts { margin-top: 8px; font-size: 13px; }
.facts.small div { grid-template-columns: 120px 1fr; padding: 6px 0; }
.facts.small dt { font-size: 13px; }

/* Schnellsuche / Touren */
.stage-add { display: flex; gap: 8px; flex-wrap: wrap; }
.lookup-item.known { border-style: dashed; }
.known-tag { color: var(--primary); }
.lookup-item.busy { opacity: .6; pointer-events: none; }
.sheet-body .input-row > input:not(.copy-field) {
  flex: 1; min-width: 0; min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); outline: none; font-size: 16px;
}
.sheet-body .input-row > input:not(.copy-field):focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.sheet-body .input-row > .btn { min-height: 48px; border-radius: var(--radius-sm); }
.share-opts { display: grid; gap: 4px; }
.share-opts .switch { margin: 4px 0; }
