/* Handle — v4.1 «papir» (hybrid-v2-A). Light + dark. Fonts bundled (OFL 1.1, vendor/fonts): Inter (UI), Yrsa (serif headings). */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(vendor/fonts/inter-latin-wght.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(vendor/fonts/inter-latin-ext-wght.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Yrsa"; font-style: normal; font-weight: 700; font-display: swap; src: url(vendor/fonts/yrsa-latin-bold.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212; }
@font-face { font-family: "Yrsa"; font-style: normal; font-weight: 600; font-display: swap; src: url(vendor/fonts/yrsa-latin-semibold.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --bg: #f3eee4; --card: #fbf8f1; --ink: #1e1b17; --mute: #635c52; --line: #dcd3c3; --soft: #e9e2d4;
  --acc: #b3361d; --acc-ink: #fff; --ok: #3f6b2f; --ok-ink: #fff; --warn: #9a560c; --err: #a12a18; --shadow: 0 10px 34px rgba(40,30,15,.18);
  --r: 10px; --tabs: 64px;
  --route: #b3361d; --here: #2a62c4; --bar: #1e1b17; --bar-ink: #f3eee4;
  --serif: "Yrsa", Georgia, "Times New Roman", serif;
  --z-produce: #4c7a2a; --z-bakery: #98681a; --z-dairy: #3a6896; --z-meat: #a33a2a; --z-fish: #2c7a80;
  --z-frozen: #5868a3; --z-pantry: #87592f; --z-drinks: #6c4a86; --z-household: #6a6862; --z-other: #7a756c;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161411; --card: #1f1c18; --ink: #ede5d8; --mute: #a69d8f; --line: #36312a; --soft: #2a2620;
    --acc: #e5664a; --acc-ink: #1a0b06; --ok: #86b85c; --ok-ink: #10200a; --warn: #e0a24a; --err: #f08470; --shadow: 0 10px 34px rgba(0,0,0,.6);
    --route: #e5664a; --here: #6ea2ff; --bar: #2c2822; --bar-ink: #ede5d8;
    --z-produce: #5d8f38; --z-bakery: #ad7b24; --z-dairy: #4a7cb2; --z-meat: #b44a3b; --z-fish: #2f8a90;
    --z-frozen: #6a79b9; --z-pantry: #9a6a3c; --z-drinks: #82609f; --z-household: #7a7871; --z-other: #7f7a70;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #161411; --card: #1f1c18; --ink: #ede5d8; --mute: #a69d8f; --line: #36312a; --soft: #2a2620;
  --acc: #e5664a; --acc-ink: #1a0b06; --ok: #86b85c; --ok-ink: #10200a; --warn: #e0a24a; --err: #f08470; --shadow: 0 10px 34px rgba(0,0,0,.6);
  --route: #e5664a; --here: #6ea2ff; --bar: #2c2822; --bar-ink: #ede5d8;
  --z-produce: #5d8f38; --z-bakery: #ad7b24; --z-dairy: #4a7cb2; --z-meat: #b44a3b; --z-fish: #2f8a90;
  --z-frozen: #6a79b9; --z-pantry: #9a6a3c; --z-drinks: #82609f; --z-household: #7a7871; --z-other: #7f7a70;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--ink);
  font: 1rem/1.4 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--acc) 60%, transparent); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.app { max-width: 560px; margin: 0 auto; min-height: 100%; }
.screen { padding: calc(env(safe-area-inset-top) + 12px) 0 calc(var(--tabs) + env(safe-area-inset-bottom) + 24px); }
.pad { padding: 0 20px; }

/* tab bar */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  height: calc(var(--tabs) + env(safe-area-inset-bottom)); padding: 6px 0 env(safe-area-inset-bottom);
  display: flex; justify-content: center; gap: 0;
  background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.tab {
  flex: 0 1 120px; border: 0; background: none; color: var(--mute);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 0.6875rem; font-weight: 600; min-height: 48px;
}
.tab[aria-current="page"] { color: var(--acc); }

/* header */
.chip {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
  background: var(--soft); border: 0; border-radius: 999px; padding: 5px 12px 5px 5px; min-height: 40px;
  font-size: 0.9375rem; font-weight: 600;
}
.chip .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.titlerow { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 12px; }
h1 { font-family: var(--serif); font-size: 2rem; font-weight: 750; letter-spacing: -.6px; margin: 0; }
h2 { font-family: var(--serif); font-size: 1.3125rem; font-weight: 700; margin: 0 0 12px; }
.meta { color: var(--mute); font-size: 0.875rem; }
.mute { color: var(--mute); }
.link { border: 0; background: none; color: var(--acc); font-weight: 650; padding: 8px 0; min-height: 40px; }
.prog { height: 4px; border-radius: 4px; background: var(--line); margin: 10px 20px 0; overflow: hidden; }
.prog b { display: block; height: 100%; background: var(--acc); border-radius: 4px; transition: width .25s; }

/* chain badge */
.badge {
  flex: none; width: 30px; height: 30px; border-radius: 9px; overflow: hidden; display: grid; place-items: center;
  background: #fff; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); font-weight: 800; font-size: 0.8125rem; letter-spacing: -.3px;
}
.badge img { width: 100%; height: 100%; object-fit: contain; display: block; }
.badge.lg { width: 44px; height: 44px; border-radius: 12px; font-size: 1.0625rem; }
.chip .badge { border-radius: 50%; }

/* add field */
.add {
  margin: 14px 20px 4px; display: flex; align-items: flex-end; gap: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 6px 6px 6px 14px;
}
.add svg { flex: none; color: var(--mute); margin-bottom: 11px; }
.add textarea {
  flex: 1; border: 0; background: none; resize: none; outline: none; padding: 9px 0; min-height: 40px; max-height: 180px;
  font-size: 1rem; line-height: 22px;
}
.add textarea::placeholder { color: var(--mute); }
.add .go { border: 0; background: var(--acc); color: var(--acc-ink); border-radius: 10px; height: 40px; padding: 0 14px; font-weight: 700; }
.add .paste { border: 0; background: var(--soft); border-radius: 10px; height: 40px; width: 40px; display: grid; place-items: center; color: var(--mute); }
.hint { margin: 2px 20px 0; font-size: 0.8125rem; color: var(--mute); min-height: 18px; }

/* sections + items */
.sec {
  display: flex; align-items: center; gap: 8px; padding: 18px 20px 6px;
  font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--mute);
}
.sec .n { margin-left: auto; font-weight: 600; text-transform: none; letter-spacing: 0; }
.sec .act { margin-left: auto; text-transform: none; letter-spacing: 0; font-size: 0.875rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.grp { border-top: 1px solid var(--line); }
.item { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 8px 6px 14px; background: var(--card); border-bottom: 1px solid var(--line); }
.cb {
  flex: none; width: 44px; height: 44px; border: 0; background: none; padding: 0; display: grid; place-items: center;
}
.cb i { width: 28px; height: 28px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--mute) 45%, var(--line)); display: grid; place-items: center; color: var(--acc-ink); font-style: normal; }
.cb[aria-checked="true"] i { background: var(--acc); border-color: var(--acc); }
.item .txt { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.item.done .txt > span:first-child { text-decoration: line-through; color: var(--mute); }
.clean { display: block; font-size: 0.8125rem; color: var(--mute); margin-top: 1px; }
.mv { flex: none; border: 0; background: none; color: var(--mute); width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; }
.item.ask .mv { width: auto; padding: 0 12px; background: color-mix(in srgb, var(--warn) 14%, var(--card)); color: var(--warn); font-weight: 650; font-size: 0.875rem; }
.empty { text-align: center; padding: 48px 24px; color: var(--mute); }
.empty b { display: block; color: var(--ink); font-size: 1.125rem; margin-bottom: 6px; }
.note { margin: 12px 20px 0; padding: 12px 14px; border-radius: var(--r); background: var(--soft); font-size: 0.875rem; display: flex; gap: 12px; align-items: flex-start; }
.note.warn { background: color-mix(in srgb, var(--warn) 12%, var(--card)); }
.note svg { flex: none; margin-top: 1px; }
.alldone { margin: 16px 20px 0; padding: 14px; border-radius: var(--r); background: color-mix(in srgb, var(--acc) 14%, var(--card)); font-weight: 650; text-align: center; }

/* buttons */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 16px;
  border: 0; border-radius: 12px; font-weight: 650; font-size: 1rem; background: var(--soft); color: var(--ink); width: 100%;
}
.btn.pri { background: var(--acc); color: var(--acc-ink); }
.btn.danger { color: var(--err); }
.btns { display: flex; gap: 10px; margin: 14px 20px 0; }
.btns > * { flex: 1; }

/* map */
.mapcard { margin: 14px 16px 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 8px; }
.map { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; }
.map .c {
  position: relative; aspect-ratio: 1 / 1.05; border-radius: 9px; border: 0; padding: 2px; background: color-mix(in srgb, var(--soft) 70%, transparent);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; font-size: 0.5938rem; font-weight: 650; line-height: 1.1;
  text-align: center; overflow: hidden; color: var(--ink); z-index: 1;
}
.map .c.z { background: color-mix(in srgb, var(--zc) 16%, var(--card)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--zc) 70%, transparent); }
.map .c.z.dim { background: color-mix(in srgb, var(--zc) 7%, var(--card)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--zc) 30%, transparent); color: var(--mute); }
.map .c .lb { hyphens: auto; -webkit-hyphens: auto; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; padding-bottom: 3px; }
.map .c .no { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -78%); width: 22px; height: 22px; border-radius: 50%; background: var(--zc); color: #fff; display: grid; place-items: center; font-size: 0.75rem; font-weight: 750; }
.map .c .no.ok { background: var(--acc); color: var(--acc-ink); }
.map .c.pin { background: #334155; color: #fff; justify-content: center; font-size: 0.6562rem; font-weight: 750; border-radius: 999px; aspect-ratio: auto; height: 60%; align-self: center; }
.map .c.sel { outline: 3px solid var(--acc); outline-offset: 1px; }
.map button.c:not(.z):not(.pin):hover { background: var(--soft); }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.zchips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 20px 0; }
.zchip { border: 1.5px solid var(--line); background: var(--card); border-radius: 999px; min-height: 40px; padding: 0 12px; display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 0.875rem; }
.zchip[aria-pressed="true"] { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 12%, var(--card)); }
.zchip.placed { color: var(--mute); }
.status { margin: 10px 20px 0; font-size: 0.875rem; color: var(--mute); min-height: 20px; }

/* store list */
.srow { display: flex; align-items: center; gap: 12px; padding: 10px 8px 10px 16px; background: var(--card); border-bottom: 1px solid var(--line); min-height: 68px; }
.srow .pick { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; border: 0; background: none; text-align: left; padding: 0; min-height: 48px; }
.srow .who { flex: 1; min-width: 0; }
.srow .who b { display: block; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srow .who small { display: block; color: var(--mute); font-size: 0.8125rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srow .st { font-size: 0.75rem; font-weight: 650; color: var(--mute); white-space: nowrap; }
.srow .st.warn { color: var(--warn); }
.srow .on { color: var(--acc); }
.iconbtn { flex: none; border: 0; background: none; color: var(--mute); width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; }

/* walk */
.stats { display: flex; gap: 10px; margin: 16px 20px 0; }
.stats > div { flex: 1; min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; }
.stats small { display: block; color: var(--mute); font-size: 0.75rem; }
.stats b { display: block; font-size: 1.375rem; font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stats b.s { font-size: 1rem; margin-top: 5px; }
.wgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 20px 0; }
.wbtn {
  min-height: 58px; border-radius: 12px; background: var(--card); border: 1.5px solid var(--line);
  display: flex; align-items: center; gap: 10px; padding: 0 12px; font-weight: 600; font-size: 0.9375rem; text-align: left;
}
.wbtn.on { border-color: var(--zc); background: color-mix(in srgb, var(--zc) 8%, var(--card)); }
.wbtn .k { margin-left: auto; background: var(--zc); color: #fff; border-radius: 999px; font-size: 0.75rem; padding: 2px 8px; font-weight: 700; }
.wbtn.kasse { grid-column: span 2; justify-content: center; border-style: dashed; }
.wbtn.kasse.on { border-style: solid; border-color: var(--acc); color: var(--acc); }
.card { margin: 16px 20px 0; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.card ol { margin: 8px 0; padding-left: 20px; }
.card li { margin: 4px 0; }

/* sheet */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.35); display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
.sheet {
  width: 100%; max-width: 560px; max-height: 88vh; overflow: auto; background: var(--bg); border-radius: 22px 22px 0 0;
  padding: 10px 20px calc(20px + env(safe-area-inset-bottom)); box-shadow: var(--shadow); animation: up .2s ease-out;
}
.sheet:focus { outline: none; }
.grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 12px; }
@keyframes up { from { transform: translateY(40px); opacity: .5; } }
@keyframes fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sheet, .sheet-wrap { animation: none; } }
.f { display: block; font-size: 0.8125rem; font-weight: 650; color: var(--mute); margin: 14px 0 6px; }
.in { width: 100%; min-height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); padding: 0 14px; font-size: 1rem; }
.err { color: var(--err); font-size: 0.875rem; margin: 6px 0 0; min-height: 0; }
.err:empty { display: none; }
.opts { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.opt { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 14px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; width: 100%; }
.opt:last-child { border-bottom: 0; }
.opt .grow { flex: 1; min-width: 0; }
.opt small { display: block; color: var(--mute); font-size: 0.8125rem; }
.opt[aria-checked="true"], .opt[aria-current="true"] { background: color-mix(in srgb, var(--acc) 10%, var(--card)); }
.opt .tick { color: var(--acc); }
.chains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.chainbtn { border: 1.5px solid var(--line); background: var(--card); border-radius: 12px; min-height: 72px; padding: 8px 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 0.75rem; font-weight: 650; text-align: center; }
.chainbtn[aria-checked="true"] { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 10%, var(--card)); }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 0.9375rem; }
.check input { width: 22px; height: 22px; accent-color: var(--acc); }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.seg { display: flex; background: var(--soft); border-radius: 12px; padding: 4px; gap: 4px; }
.seg button { flex: 1; border: 0; background: none; border-radius: 9px; min-height: 40px; font-weight: 600; font-size: 0.875rem; color: var(--mute); }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.group { margin: 18px 20px 0; }
.group > .f { margin-top: 0; }

/* toast */
.toast {
  position: fixed; left: 12px; right: 12px; bottom: calc(var(--tabs) + env(safe-area-inset-bottom) + 12px); z-index: 40; max-width: 536px; margin: 0 auto;
  background: #2b2b2e; color: #fff; border-radius: 14px; padding: 10px 10px 10px 16px; display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow); font-size: 0.9375rem; animation: up .2s ease-out;
}
.toast span { flex: 1; }
.toast .e { color: #ffb4ab; }
.toast button { border: 0; background: none; color: #86efac; font-weight: 700; min-height: 40px; padding: 0 10px; }

/* ---------- v3: brand row + tiles (mockup 01/05) ---------- */
.brandrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { font-family: var(--serif); color: var(--acc); font-weight: 800; letter-spacing: -.2px; font-size: 1.375rem; }
h1.big { font-size: 2.125rem; margin-top: 12px; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 0 20px; }
@media (min-width: 520px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tw { position: relative; --zc: #8a8f98; }
.tile {
  width: 100%; aspect-ratio: 1 / 1; border: 0; border-radius: 16px; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 8px 6px;
  background: color-mix(in srgb, var(--zc) 20%, var(--card)); color: var(--ink);
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: manipulation;
  transition: transform .08s, opacity .2s;
}
.tile:active { transform: scale(.96); }
.tile .em { display: grid; place-items: center; height: 40px; color: color-mix(in srgb, var(--zc) 78%, var(--ink)); }
.tile .nm { font-weight: 700; font-size: 0.875rem; line-height: 1.15; text-align: center; max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
.tile .nt { font-size: 0.7188rem; color: var(--mute); text-align: center; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .q { position: absolute; top: 7px; right: 9px; font-size: 0.75rem; font-weight: 750; color: color-mix(in srgb, var(--ink) 70%, transparent); }
.tile.done { opacity: .42; background: var(--soft); }
.tile.done .em { color: var(--mute); }
.tile.done .nm { text-decoration: line-through; }
.tile.ask { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--warn) 55%, transparent); }
.tile.sug { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); border: 1.5px dashed color-mix(in srgb, var(--mute) 45%, transparent); }
.tile.sug .nt { color: var(--ink); font-weight: 600; white-space: normal; }
.tile.sug .em { color: var(--mute); height: 34px; }
.tmv {
  position: absolute; top: 4px; left: 4px; min-width: 30px; height: 30px; border: 0; border-radius: 10px; padding: 0 6px;
  display: grid; place-items: center; background: transparent; color: color-mix(in srgb, var(--ink) 45%, transparent);
}
.tmv.ask { top: auto; bottom: 6px; left: 50%; transform: translateX(-50%); background: var(--warn); color: #fff; font-size: 0.6875rem; font-weight: 750; height: 24px; white-space: nowrap; }
.tw:has(.tmv.ask) .tile { padding-bottom: 28px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tile { background: color-mix(in srgb, var(--zc) 30%, var(--card)); } :root:not([data-theme="light"]) .tile.done { background: var(--soft); } :root:not([data-theme="light"]) .tile.sug { background: transparent; } }
:root[data-theme="dark"] .tile { background: color-mix(in srgb, var(--zc) 30%, var(--card)); }
:root[data-theme="dark"] .tile.done { background: var(--soft); }
:root[data-theme="dark"] .tile.sug { background: transparent; }

/* ---------- v3: store finder (mockup 02) ---------- */
.in.search { margin-top: 14px; border-radius: var(--r); min-height: 52px; }
.mapwrap { position: relative; margin: 14px 20px 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--soft); }
.regmap { height: 260px; width: 100%; background: var(--soft); }
.nearbtn {
  position: absolute; top: 10px; right: 10px; z-index: 500; border: 0; border-radius: 12px; min-height: 40px; padding: 0 14px;
  background: var(--card); color: var(--ink); font-weight: 700; font-size: 0.875rem; box-shadow: 0 2px 10px rgba(0,0,0,.18); display: inline-flex; gap: 6px; align-items: center;
}
.attr { font-size: 0.7188rem; color: var(--mute); margin: 6px 0 0; }
.lpin span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-weight: 800; font-size: 0.75rem; box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(0,0,0,.3); }
.leaflet-container { font: inherit; background: var(--soft); }
.leaflet-control-attribution { font-size: 0.6562rem; }
.rrow { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 16px; min-height: 68px; border: 0; border-bottom: 1px solid var(--line); background: var(--card); text-align: left; }
.rrow .who { flex: 1; min-width: 0; }
.rrow .who b { display: block; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rrow .who small { display: block; color: var(--mute); font-size: 0.8125rem; line-height: 1.3; }
.rrow .st { flex: none; font-size: 0.75rem; font-weight: 700; padding: 5px 9px; border-radius: 999px; background: var(--soft); color: var(--mute); display: inline-flex; align-items: center; gap: 3px; }
.rrow .st.on { background: color-mix(in srgb, var(--acc) 18%, var(--card)); color: var(--acc); }
.rrow .st.add { background: color-mix(in srgb, var(--acc) 14%, var(--card)); color: var(--acc); }
.group a { color: var(--acc); font-weight: 650; }

/* ---------- v3: privacy / «Mine data» ---------- */
.evrow { display: block; padding: 9px 16px; border-bottom: 1px solid var(--line); background: var(--card); }
.evrow b { font-weight: 650; }
.evrow small { display: block; color: var(--mute); font-size: 0.7812rem; }
.check small { font-size: 0.8125rem; }
select.in { appearance: auto; }

/* ---------- v3 F4: shared list ---------- */
.titlerow h1.big { margin-top: 12px; }
.sharebtn { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; min-height: 38px; padding: 0 14px;
  background: var(--soft); color: var(--ink); font-weight: 700; font-size: 0.875rem; align-self: center; margin-top: 12px; }
.sharebtn.on { background: color-mix(in srgb, var(--acc) 16%, var(--card)); color: var(--acc); }
.sharemeta { color: var(--acc); font-weight: 600; }
.tile .by { font-size: 0.6875rem; font-weight: 650; color: color-mix(in srgb, var(--zc) 60%, var(--ink)); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile.done .by { color: var(--mute); }

/* ---------- v3 F2/F3: add store, shared maps ---------- */
.pinwrap { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.pinmap { height: 220px; width: 100%; background: var(--soft); }
.pinwrap .pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); font-size: 1.875rem; z-index: 500; pointer-events: none; filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); }
.lrow { padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--card); }
.lrow b { display: block; font-weight: 700; margin-top: 4px; }
.lrow small { display: block; color: var(--mute); font-size: 0.8125rem; }
.lhead { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 0.7188rem; font-weight: 750; padding: 3px 8px; border-radius: 999px; background: var(--soft); color: var(--mute); }
.tag.acc { background: color-mix(in srgb, var(--acc) 16%, var(--card)); color: var(--acc); }
.lbtns { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.btn.sm { min-height: 38px; padding: 0 12px; font-size: 0.875rem; flex: 0 0 auto; }
.btn.sm[aria-pressed="true"] { background: color-mix(in srgb, var(--acc) 18%, var(--card)); }
.btn.sm { width: auto; }

/* ---------- consent gate ---------- */
.gate { padding: calc(env(safe-area-inset-top) + 20px) 20px 40px; max-width: 520px; margin: 0 auto; }
.gate-logo { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; background: color-mix(in srgb, var(--acc) 16%, var(--card)); color: var(--acc); }
.gate .lead { font-size: 1.0625rem; color: var(--mute); margin: 6px 0 16px; }
.gate-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 6px 16px 10px; margin-bottom: 14px; }
.gate-card h3, .gate-card h2.gh, .legal h3 { font-family: var(--serif); font-size: 1rem; margin: 12px 0 2px; }
.gate-card p { margin: 0; font-size: 0.9375rem; color: var(--ink); }
.gate-links { margin-top: 12px !important; }
.legal { max-height: 60vh; overflow: auto; font-size: 0.9062rem; }
.legal h2 { font-size: 1.1875rem; } .legal .mdrow { font-size: 0.8438rem; color: var(--mute); }

/* ---------- wayfinding ---------- */
.next { margin: 14px 20px 0; padding: 14px 14px 12px; border-radius: 18px; background: color-mix(in srgb, var(--zc, var(--acc)) 14%, var(--card)); border: 1.5px solid color-mix(in srgb, var(--zc, var(--acc)) 45%, transparent); }
.next.done { --zc: var(--acc); }
.nx-top { display: flex; gap: 12px; align-items: center; }
.nx-no { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--zc, var(--acc)); color: #fff; font-weight: 800; font-size: 1.1875rem; }
.nx-top small { display: block; color: var(--mute); font-size: 0.7812rem; font-weight: 650; text-transform: uppercase; letter-spacing: .4px; }
.nx-top b { display: block; font-family: var(--serif); font-size: 1.3125rem; line-height: 1.15; }
.nx-items { margin: 8px 0 0; font-size: 0.9375rem; }
.nx-hint { display: flex; gap: 6px; align-items: flex-start; margin: 6px 0 0; color: var(--mute); font-size: 0.875rem; }
.nx-hint svg { flex: none; margin-top: 2px; }
.nx-btns { display: flex; gap: 8px; margin-top: 10px; justify-content: flex-end; flex-wrap: wrap; }
.map .c .lb { -webkit-line-clamp: 3; font-size: 0.625rem; line-height: 1.1; }
.map .c.cur { box-shadow: inset 0 0 0 3px var(--zc), 0 0 0 3px color-mix(in srgb, var(--zc) 35%, transparent); z-index: 2; }
.map .c.cur .no { transform: translate(-50%, -78%) scale(1.25); box-shadow: 0 0 0 3px var(--card); }
.map .c.z.done { opacity: .5; }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0 20px; margin: 10px 0 0; font-size: 0.7812rem; }
.legend li { padding: 3px 8px; border-radius: 999px; background: var(--soft); }
.legend li b { color: var(--acc); } .legend li.cur { background: color-mix(in srgb, var(--acc) 18%, var(--card)); font-weight: 700; }
.legend li.done { opacity: .5; text-decoration: line-through; } .legend .pinl { background: #334155; color: #fff; font-weight: 750; }
.tabs[hidden] { display: none; }

/* ---------- v4 «Kort over kartet»: store map (SVG) ---------- */
.smapw { display: flex; justify-content: center; }
.smap { display: block; font-family: "Inter", sans-serif; -webkit-user-select: none; user-select: none; }
.sm-bg { fill: color-mix(in srgb, var(--soft) 75%, var(--bg)); }
.sm-grid { stroke: var(--line); stroke-width: 1; }
.sm-route { fill: none; stroke: var(--route); stroke-width: 5; stroke-dasharray: 1 12; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.sm-trail { fill: none; stroke: var(--here); stroke-width: 4.5; stroke-dasharray: 1 11; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.sm-z .box { fill: color-mix(in srgb, var(--zc) 13%, var(--card)); stroke: var(--zc); stroke-width: 2.5; }
.sm-z .bar { fill: var(--zc); }
.sm-z .lb { font-size: 1.1875rem; font-weight: 750; text-anchor: middle; fill: var(--ink); }
.sm-z .nb { fill: var(--ink); }
.sm-z .nt { fill: var(--bg); font-size: 1.1875rem; font-weight: 800; text-anchor: middle; }
.sm-z .ck { fill: none; stroke: var(--bg); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.sm-z.off .box, .sm-z.done .box { fill: var(--card); stroke: color-mix(in srgb, var(--zc) 38%, var(--card)); }
.sm-z.off .bar, .sm-z.done .bar { fill: color-mix(in srgb, var(--zc) 38%, var(--card)); }
.sm-z.off .lb, .sm-z.done .lb { fill: var(--mute); font-weight: 650; }
.sm-z.done .nb { fill: var(--mute); }
.sm-z.next .box { fill: var(--zc); stroke: none; }
.sm-z.next .lb, .sm-z.next .nb { fill: #fff; }
.sm-z.next .nt { fill: var(--zc); }
.sm-ring { fill: none; stroke: var(--route); stroke-width: 5; opacity: .55; }
.sm-pin { fill: var(--ink); }
.sm-pint { fill: var(--bg); font-size: 1.0625rem; font-weight: 800; text-anchor: middle; letter-spacing: .5px; }
.sm-seg { fill: none; stroke: var(--route); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.sm-arrh { fill: var(--route); }
.sm-halo { fill: var(--here); opacity: .2; }
.sm-here { fill: var(--here); stroke: #fff; stroke-width: 5; }
.sm-heret { fill: var(--here); font-size: 1.1875rem; font-weight: 800; paint-order: stroke; stroke: var(--bg); stroke-width: 5px; stroke-linejoin: round; }
.sm-tip { fill: var(--bar); }
.sm-tipt { fill: var(--bar-ink); font-size: 1.25rem; font-weight: 700; }

/* ---------- v4 home: map on top, list in a drawer ---------- */
body[data-view="liste"], body[data-view="tur"] { overflow: hidden; overscroll-behavior: none; }
.screen.v-liste, .screen.v-tur { padding: calc(env(safe-area-inset-top) + 10px) 0 0; height: 100vh; height: 100dvh; overflow: hidden; display: flex; flex-direction: column; }
.hm-top { padding: 0 16px; flex: none; }
.hm-find { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1.5px solid var(--line); border-radius: 22px; padding: 0 14px; min-height: 46px; color: var(--mute); }
.hm-find:focus-within { border-color: var(--acc); }
.hm-q { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 1rem; color: var(--ink); min-height: 42px; }
.hm-q::placeholder { color: var(--mute); }
.hm-res { padding: 0 16px; flex: none; }
.hm-hit { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 6px 6px 6px 12px; background: var(--card); border-radius: 12px; border: 1px solid var(--line); font-size: 0.875rem; }
.hm-hit .grow { flex: 1; min-width: 0; }
.hm-hit .btn.sm { min-height: 36px; }
.hm-map { flex: 1 1 auto; min-height: 0; padding: 10px 16px calc(var(--tabs) + 232px + env(safe-area-inset-bottom) + 4px); position: relative; }
.hm-map > .smapw { height: 100%; }
.hm-map > .smapw svg { height: 100%; width: auto; max-width: 100%; }
.drawer { position: fixed; left: 0; right: 0; bottom: calc(var(--tabs) + env(safe-area-inset-bottom)); max-width: 560px; margin: 0 auto; z-index: 15; height: 232px;
  background: var(--card); border-radius: 22px 22px 0 0; box-shadow: 0 -6px 28px rgba(0,0,0,.13), 0 -1px 0 var(--line); display: flex; flex-direction: column;
  transition: height .28s cubic-bezier(.2,.8,.2,1); }
.drawer.drag { transition: none; }
.dr-grab { flex: none; border: 0; background: none; height: 24px; width: 100%; display: grid; place-items: center; touch-action: none; cursor: grab; }
.dr-grab i { width: 40px; height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--mute) 40%, var(--line)); display: block; }
.dr-head { flex: none; padding: 0 16px 6px; touch-action: none; }
.dr-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.dr-meta { margin: 1px 0 0; font-size: 0.8125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dr-title h1 { font-size: 1.4375rem; letter-spacing: -.3px; }
.dr-title .meta { margin: 0; font-size: 0.8125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dr-tools { display: flex; gap: 6px; align-items: center; min-width: 0; flex: none; }
.dr-tools .chip { min-height: 34px; font-size: 0.8438rem; max-width: 136px; padding: 3px 8px 3px 3px; gap: 6px; }
.dr-tools .chip .badge { width: 26px; height: 26px; }
.dr-tools .sharebtn { margin-top: 0; min-height: 34px; padding: 0 10px; font-size: 0.8125rem; }
.dr-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 14px; }
.dr-body .add { margin-top: 6px; }
.dr-body .prog { margin-top: 2px; }
.dr-foot { flex: none; padding: 8px 16px 8px; border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: stretch; gap: 0; background: var(--card); }
.dr-foot .btn { min-height: 48px; }
.dr-foot .link.sm { min-height: 30px; padding: 4px 0 0; font-size: 0.8438rem; align-self: center; }

/* first visit (no map yet) */
.fv { height: 100%; overflow-y: auto; padding-bottom: 8px; }
.fv-card { display: flex; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
.fv-sketch { width: 60px; flex: none; color: var(--here); background: var(--soft); border-radius: 12px; padding: 6px; align-self: flex-start; }
.fv-sketch svg { display: block; width: 100%; height: auto; }
.fv-card h2 { font-size: 1.3125rem; margin: 2px 0 6px; line-height: 1.15; }
.fv-card p { margin: 0 0 6px; font-size: 0.9062rem; }
.fv-card .meta { font-size: 0.7812rem; margin: 0; }
.kick { display: block; font-size: 0.75rem; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--mute); margin: 16px 0 6px; }
.fv-card .kick { color: var(--route); margin: 0; }
.kick.acc { color: var(--acc); }
.kick.err-k { color: var(--err); }
.fv .note { margin: 10px 0 0; }
.fv-groups { margin-top: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.fv-groups .kick { margin: 10px 14px 6px; }
.fv-g { display: flex; gap: 10px; align-items: center; padding: 9px 14px; border-top: 1px solid var(--line); box-shadow: inset 4px 0 0 var(--zc); }
.fv-g .grow { flex: 1; min-width: 0; }
.fv-g b { display: block; font-weight: 650; font-size: 0.9375rem; }
.fv-g small { display: block; color: var(--mute); font-size: 0.7812rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fv-empty { position: absolute; left: 0; right: 0; top: 34%; text-align: center; color: var(--mute); font-size: 0.875rem; padding: 0 50px; margin: 0; }

/* ---------- v4 in-store: guide bar, map, card stack ---------- */
.tur { position: relative; height: 100%; display: flex; flex-direction: column; }
.guide { flex: none; margin: 0 12px; display: flex; align-items: center; gap: 12px; background: var(--bar); color: var(--bar-ink); border-radius: 14px; padding: 9px 8px 9px 14px; min-height: 60px; }
.guide .gi { flex: none; display: grid; }
.guide .gt { flex: 1; min-width: 0; }
.guide .gt b { display: block; font-weight: 750; font-size: 1.0312rem; line-height: 1.2; }
.guide .gt small { display: block; opacity: .82; font-size: 0.8438rem; }
.gmenu { flex: none; border: 0; background: rgba(255,255,255,.12); color: inherit; width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; margin-left: auto; }
.guide.gmap { background: none; color: var(--ink); padding: 0; gap: 8px; min-height: 48px; }
.guide.gmap .gmenu { background: var(--soft); }
.guide.gmap .chip { min-height: 36px; font-size: 0.8438rem; min-width: 0; }
.rec { flex: none; display: inline-flex; align-items: center; gap: 8px; background: var(--bar); color: var(--bar-ink); border-radius: 10px; padding: 8px 12px; font-weight: 700; font-size: 0.875rem; }
.rec i { width: 9px; height: 9px; border-radius: 50%; background: #e5484d; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.tur-map { flex: none; padding: 8px 12px 0; position: relative; transition: transform .3s ease; }
@media (prefers-reduced-motion: reduce) { .tur-map { transition: none; } }
.tur-map .smap { width: 100%; height: auto; max-height: calc(100dvh - 90px); }
.stackbox { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 16px calc(8px + env(safe-area-inset-bottom)); z-index: 5; pointer-events: none; }
.stackbox > * { pointer-events: auto; }
.stack-top { display: flex; justify-content: space-between; align-items: flex-end; margin: 0 6px 8px; gap: 8px; }
.cnt { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; font-size: 0.7812rem; font-weight: 700; box-shadow: 0 2px 8px rgba(0,0,0,.08); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.addfab { flex: none; border: 0; background: var(--bar); color: var(--bar-ink); border-radius: 12px; min-height: 44px; padding: 0 14px 0 12px; font-weight: 700; display: inline-flex; gap: 6px; align-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.stack { position: relative; height: 228px; margin: 0 6px; }
.card3 { position: absolute; inset: 0; background: var(--card); border-radius: 20px; box-shadow: 0 12px 34px rgba(0,0,0,.18), 0 0 0 1px var(--line); padding: 16px 18px 14px;
  display: flex; flex-direction: column; touch-action: none; -webkit-user-select: none; user-select: none; transition: transform .26s cubic-bezier(.2,.8,.2,1), opacity .2s;
  will-change: transform; overflow: hidden; cursor: grab; }
.card3:focus-visible { outline: 3px solid var(--here); outline-offset: 3px; }
.card3.drag { transition: none; cursor: grabbing; }
.card3.fly { transition: transform .22s cubic-bezier(.4,0,1,1), opacity .22s; }
.card3.fade { opacity: 0 !important; transition: opacity .15s; }
.card3.u1 { transform: translateY(10px) scale(.95); }
.card3.u2 { transform: translateY(20px) scale(.9); opacity: .8; }
.card3.u2 > * { visibility: hidden; }
.c-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.c-ic { width: 62px; height: 62px; border-radius: 15px; background: var(--zc); color: #fff; display: grid; place-items: center; flex: none; }
.c-ic.sm { width: 40px; height: 40px; border-radius: 11px; }
.c-by { display: inline-flex; align-items: center; gap: 6px; background: var(--soft); border-radius: 8px; padding: 4px 9px; font-size: 0.7812rem; font-weight: 650; }
.c-by b { width: 20px; height: 20px; margin-left: -5px; border-radius: 50%; background: var(--here); color: #fff; display: grid; place-items: center; font-size: 0.6875rem; }
.c-nm { font-family: var(--serif); font-size: 1.9375rem; font-weight: 750; letter-spacing: -.5px; margin-top: 12px; line-height: 1.05; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-qn { color: var(--mute); font-size: 1rem; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-loc { margin-top: auto; display: flex; gap: 6px; align-items: center; color: color-mix(in srgb, var(--zc) 72%, var(--ink)); font-weight: 650; font-size: 0.875rem; padding-top: 8px; border-top: 1px solid var(--line); }
.stamp { position: absolute; top: 20px; padding: 3px 12px; border: 3.5px solid; border-radius: 10px; font-weight: 850; font-size: 1.375rem; text-transform: uppercase; letter-spacing: 1.5px; opacity: 0; pointer-events: none; background: color-mix(in srgb, var(--card) 80%, transparent); }
.stamp.ok { left: 16px; color: var(--acc); transform: rotate(-12deg); }
.stamp.missing { right: 16px; color: var(--err); transform: rotate(12deg); }
.stamp.later { left: 50%; top: 38%; transform: translateX(-50%); color: var(--here); }
.acts { display: flex; justify-content: center; gap: 34px; margin-top: 14px; align-items: flex-end; }
.act { border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 0.75rem; font-weight: 650; color: var(--mute); min-width: 64px; padding: 0; }
.act .ab { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--card); box-shadow: 0 4px 14px rgba(0,0,0,.12), 0 0 0 1px var(--line); font-size: 1.5rem; font-weight: 700; }
.act.missing .ab { color: var(--err); }
.act.later .ab { width: 44px; height: 44px; font-size: 1.1875rem; color: var(--ink); }
.act.ok .ab { background: var(--acc); color: var(--acc-ink); width: 60px; height: 60px; }
.act:active .ab { transform: scale(.94); }
.stands { display: flex; gap: 6px; overflow-x: auto; align-items: center; padding: 8px 22px 10px; margin: 0 -16px; scrollbar-width: none; background: linear-gradient(transparent, color-mix(in srgb, var(--bg) 85%, transparent) 35%); }
.stands::-webkit-scrollbar { display: none; }
.stands .meta { flex: none; font-size: 0.8125rem; font-weight: 650; }
.stand { flex: none; border: 1.5px solid var(--line); background: var(--card); border-radius: 999px; min-height: 36px; padding: 0 12px; display: inline-flex; gap: 6px; align-items: center; font-weight: 650; font-size: 0.8438rem; box-shadow: 0 2px 6px rgba(0,0,0,.06); }
.stand i { width: 9px; height: 9px; border-radius: 50%; }
.stand.on { border-color: var(--zc); }
.stand.placed { background: color-mix(in srgb, var(--zc) 14%, var(--card)); }
body[data-view="tur"] .toast { bottom: calc(112px + env(safe-area-inset-bottom)); }
.tadd-prev { margin: 10px 0 0; display: flex; flex-direction: column; gap: 6px; }
.tadd-prev .tp { padding: 8px 12px; border-radius: 10px; background: var(--card); box-shadow: inset 4px 0 0 var(--zc); }
.tadd-prev b { display: block; font-weight: 700; }
.tadd-prev small { display: block; color: var(--mute); font-size: 0.8125rem; }
.tadd-btns { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
/* HA · TripAdd: multi-line field + parsed preview with × per line */
.tadd-lbl { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 6px; }
.tadd-paste { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
textarea.tadd-in { width: 100%; min-height: 48px; padding: 12px 14px; resize: none; line-height: 1.35; font: inherit; display: block; }
.tadd-prev { max-height: 38vh; overflow-y: auto; overscroll-behavior: contain; }
.tadd-prev .tp { display: flex; align-items: center; gap: 8px; }
.tadd-prev .tp .grow { flex: 1; min-width: 0; }
.tadd-prev .tp-q { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--soft); font-size: 0.8125rem; font-weight: 600; vertical-align: 1px; }
.tadd-prev .tp-x { flex: none; width: 44px; height: 44px; margin: -6px -8px -6px 0; border: 0; background: none; color: var(--mute); display: grid; place-items: center; border-radius: 10px; }
.tadd-prev .tp-x:active { background: var(--soft); }
.tadd-n { display: flex; justify-content: space-between; align-items: center; font-size: 0.8125rem; color: var(--mute); font-weight: 600; }

/* ---------- v4 Kasse ---------- */
.kasse { height: 100%; overflow-y: auto; padding: 4px 0 120px; }
.kasse h1.big { margin-top: 2px; font-size: 2rem; }
.kasse .kick.pad { padding: 0 20px; margin-top: 18px; }
.krow, .nrow { display: flex; gap: 12px; align-items: center; padding: 10px 16px; background: var(--card); border-bottom: 1px solid var(--line); min-height: 62px; }
.krow .grow, .nrow .grow { flex: 1; min-width: 0; }
.krow b, .nrow b { display: block; font-weight: 650; }
.krow small, .nrow small { display: block; color: var(--mute); font-size: 0.8125rem; }
.nrow .btn.sm { text-decoration: none; flex: none; color: var(--ink); }
.kbtns { position: fixed; left: 0; right: 0; bottom: 0; max-width: 560px; margin: 0 auto; display: flex; gap: 10px; padding: 18px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 28%); z-index: 6; }
.kbtns .btn { flex: 1; }
.btn.dark { background: var(--bar); color: var(--bar-ink); }
.kmap { padding: 12px 16px 0; }
.kmap .smap { width: 100%; height: auto; }
.kshare { margin-top: 10px; }
@media (prefers-reduced-motion: reduce) {
  .card3, .card3.fly, .drawer { transition: opacity .15s; }
  .rec i { animation: none; }
}
.tur > .guide { position: relative; z-index: 6; }

/* ---------- v4.1 «papir» — visual identity from hybrid-v2-A (tokens above; overrides only, no layout logic) ---------- */
h1, h2, .brand, .c-nm, .nx-top b, .fv-card h2, .gate-card h3, .gate-card h2.gh, .legal h3 { font-family: var(--serif); font-weight: 700; letter-spacing: 0; }
h1 { font-size: 2.125rem; line-height: 1.05; }
h2 { font-size: 1.4375rem; }
.brand { color: var(--ink); font-size: 1.5625rem; }
.brand::after { content: "."; color: var(--acc); }
.kick, .sec { letter-spacing: .7px; font-size: 0.7188rem; font-weight: 750; }
.btn { border-radius: 8px; font-weight: 700; }
.btn.pri { background: var(--acc); color: var(--acc-ink); }
.btn.dark { background: var(--bar); color: var(--bar-ink); }
.btn.sm { border-radius: 7px; }
.link { color: var(--acc); }
.chip { border-radius: 7px; background: var(--soft); }
.chip .badge, .dr-tools .chip .badge { border-radius: 50%; }
.tab[aria-current="page"] { color: var(--ink); }
.tab[aria-current="page"] svg { color: var(--acc); }
.tabs { background: color-mix(in srgb, var(--card) 92%, transparent); }
.prog b { background: var(--ok); }
.alldone { background: color-mix(in srgb, var(--ok) 14%, var(--card)); }
.map .c .no.ok { background: var(--ok); color: var(--ok-ink); }
.toast { background: var(--bar); color: var(--bar-ink); border-radius: 10px; }
.toast button { color: var(--bar-ink); text-decoration: underline; text-underline-offset: 3px; }
.toast .e { color: #f3a08c; }
.sheet { border-radius: 18px 18px 0 0; }
.in, .opts, .add { border-radius: 8px; }
.add .go, .add .paste { border-radius: 7px; }
.sharebtn { border-radius: 7px; }
.sharebtn.on, .sharemeta { color: var(--ok); }
.sharebtn.on { background: color-mix(in srgb, var(--ok) 14%, var(--card)); }
.gate-logo { background: color-mix(in srgb, var(--acc) 14%, var(--card)); }

/* search + drawer */
.hm-find { border-radius: 10px; border-width: 1px; background: var(--card); box-shadow: 0 1px 2px rgba(40,30,15,.06); }
.drawer { border-radius: 18px 18px 0 0; box-shadow: 0 -6px 24px rgba(40,30,15,.15), 0 -1px 0 var(--line); }
.dr-grab i { background: var(--line); }
.dr-title h1 { font-size: 1.6875rem; letter-spacing: 0; }
.dr-foot { border-top: 0; }
.dr-foot .btn { min-height: 50px; }

/* list rows (mockup: department bar · round check · «Avdeling · stopp N» · qty · pin) */
.dr-body .zsec { display: none; }
.tiles { display: block; padding: 0; border-top: 1px solid var(--line); }
.tiles + .tiles { border-top: 0; }
@media (min-width: 520px) { .tiles { display: block; } }
.tw { display: flex; align-items: stretch; background: var(--card); border-bottom: 1px solid var(--line); position: relative; }
.tw::before { content: ""; position: absolute; left: 16px; top: 9px; bottom: 9px; width: 4px; border-radius: 2px; background: var(--zc); }
.tile {
  aspect-ratio: auto; flex: 1; min-width: 0; min-height: 56px; border-radius: 0; background: none; padding: 8px 6px 8px 32px;
  flex-direction: row; justify-content: flex-start; align-items: center; gap: 12px; text-align: left;
}
.tile:active { transform: none; background: var(--soft); }
.tile .ck { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--mute) 55%, var(--line)); display: grid; place-items: center; color: var(--bg); }
.tile .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tile .nm { font-weight: 600; font-size: 1rem; text-align: left; display: block; white-space: nowrap; -webkit-line-clamp: unset; }
.tile .nt { font-size: 0.7812rem; text-align: left; color: var(--mute); }
.tile .q { position: static; flex: none; font-size: 0.8125rem; font-weight: 500; color: var(--mute); }
.tile .by { display: inline; font-size: 0.7812rem; color: var(--mute); }
.tile.done { opacity: 1; background: none; }
.tile.done .nm { text-decoration: line-through; color: var(--mute); }
.tile.done .ck { background: var(--ink); border-color: var(--ink); }
.tw:has(.tile.done)::before { opacity: .35; }
.tile.ask { box-shadow: none; }
.tile.ask .ck { border-color: var(--warn); }
.tile.sug { box-shadow: none; border: 0; background: none; }
.tile.sug .ck { border: 1.5px dashed color-mix(in srgb, var(--mute) 60%, transparent); color: var(--mute); }
.tile.sug .nm { color: var(--mute); }
.tw:has(.tile.sug)::before { background: var(--line); }
.tmv { position: static; flex: none; width: 44px; min-height: 44px; height: auto; border-radius: 0; background: none; color: var(--mute); display: grid; place-items: center; }
.tmv.ask { position: static; transform: none; align-self: center; height: 30px; margin-right: 10px; border-radius: 7px; padding: 0 10px; width: auto; }
.tw:has(.tmv.ask) .tile { padding-bottom: 8px; }
.sec { padding-top: 16px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tile, :root:not([data-theme="light"]) .tile.done, :root:not([data-theme="light"]) .tile.sug { background: none; } }
:root[data-theme="dark"] .tile, :root[data-theme="dark"] .tile.done, :root[data-theme="dark"] .tile.sug { background: none; }

/* store map: paper grid, ink number badges, next stop lit in department colour */
.sm-bg { fill: var(--soft); }
.sm-grid { stroke: var(--line); stroke-width: .8; }
.sm-z .box { fill: var(--card); stroke: var(--zc); stroke-width: 1.8; }
.sm-z.off .box, .sm-z.done .box { fill: var(--card); stroke: color-mix(in srgb, var(--zc) 45%, var(--card)); }
.sm-z.off, .sm-z.done { opacity: .62; }
.sm-z.next .box { fill: var(--zc); }
.sm-ring { stroke: var(--acc); opacity: .5; }
.sm-route { stroke: var(--mute); stroke-width: 3.5; stroke-dasharray: 6 9; opacity: .7; }

/* in-store: dark «Neste» banner, cards, buttons, stamp */
.guide { border-radius: 10px; background: var(--bar); color: var(--bar-ink); }
.guide .gt b { font-weight: 700; }
.gmenu { border-radius: 8px; background: color-mix(in srgb, var(--bar-ink) 12%, transparent); }
.rec { border-radius: 8px; }
.cnt { border-radius: 7px; background: var(--card); }
.addfab { border-radius: 10px; }
.card3 { border-radius: 14px; background: var(--card); box-shadow: 0 10px 30px rgba(40,30,15,.18), 0 0 0 1px var(--line); padding: 16px 16px 14px; }
.c-ic { border-radius: 12px; width: 66px; height: 66px; }
.c-nm { font-size: 2.375rem; line-height: 1; margin-top: 16px; letter-spacing: 0; }
.c-qn { font-size: 1.0625rem; font-weight: 600; }
.c-by { border-radius: 7px; background: var(--soft); }
.c-by b { background: var(--zc); }
.c-loc { border-top: 0; color: color-mix(in srgb, var(--zc) 78%, var(--ink)); }
.stamp { font-family: "Inter", sans-serif; font-weight: 900; border-width: 4px; border-radius: 8px; background: color-mix(in srgb, var(--card) 70%, transparent); }
.stamp.ok { color: var(--ok); }
.act .ab { background: var(--card); box-shadow: 0 4px 12px rgba(40,30,15,.12); border: 1.5px solid var(--line); }
.act .ab { box-shadow: 0 4px 12px rgba(40,30,15,.12), 0 0 0 0 transparent; }
.act.missing .ab { color: var(--err); }
.act.ok .ab { background: var(--ok); color: var(--ok-ink); border-color: var(--ok); }
.act { font-size: 0.7188rem; font-weight: 700; }
.stand { border-radius: 7px; border-width: 1px; }

/* first visit + kasse */
.fv-card { border-radius: 10px; }
.fv-card .kick { color: var(--acc); }
.fv-groups { border-radius: 10px; }
.fv-g { box-shadow: none; position: relative; padding-left: 28px; }
.fv-g::before { content: ""; position: absolute; left: 14px; top: 8px; bottom: 8px; width: 4px; border-radius: 2px; background: var(--zc); }
.kasse h1.big { font-size: 2.125rem; margin-top: 4px; }
.kick.err-k { color: var(--err); }
.kick.acc { color: var(--acc); }
.krow .c-ic.sm { border-radius: 8px; }
.krow, .nrow { background: var(--card); }
.nrow .btn.sm { background: var(--soft); }
.next { border-radius: 10px; }

/* ---------- v4.2 fixes from QA + UX test (08.11) ---------- */
/* QA M2: every touch target ≥ 44 px */
.btn.sm, .chip, .link, .seg button, .nearbtn, .hm-q, .sharebtn, .dr-tools .chip, .hm-hit .btn.sm, .dr-foot .link.sm { min-height: 44px; }
.add .go, .add .paste { height: 44px; }
.add .paste { width: 44px; }
/* QA M6: visible focus on the add field and the first-visit card */
.add:focus-within { border-color: var(--acc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 28%, transparent); }
.fv-card:focus-visible, .fv:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; }
/* drawer: 44 px grab area (visual bar unchanged), title + share icon, store chip on its own row (UX-2, QA M5/H2) */
.dr-grab { height: 44px; width: 160px; margin: 0 auto -16px; position: relative; z-index: 1; align-items: start; padding-top: 9px; }
.dr-title { flex-wrap: wrap; row-gap: 4px; }
.dr-title h1 { min-width: 0; overflow-wrap: anywhere; }
.sharebtn.icon { width: 44px; height: 44px; min-height: 44px; padding: 0; justify-content: center; position: relative; flex: none; }
.sharebtn .shdot { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.dr-tools { display: flex; flex-wrap: wrap; margin-top: 2px; }
.dr-tools .chip { max-width: 100%; }
.dr-tools .chip .nm, .dr-tools .chip span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-map { padding-bottom: calc(var(--tabs) + var(--drh, 232px) + env(safe-area-inset-bottom) + 4px); }

/* in-store (QA H3/M1, UX-8): the map has its own space between the banner and the card stack — nothing floats over it */
.tur { overflow: hidden; }
.tur-map { flex: 1 1 auto; min-height: 0; display: flex; justify-content: center; padding-bottom: 6px; }
.tur-map .smap { width: auto; height: 100%; max-width: 100%; max-height: none; }
.stackbox { position: relative; flex: none; left: auto; right: auto; bottom: auto; }
.stack { height: clamp(150px, 30dvh, 228px); }
.c-nm { font-size: clamp(1.375rem, 4.6dvh, 1.9375rem); margin-top: 8px; }
.c-loc .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-cnt { flex: none; color: var(--mute); font-weight: 650; font-size: 0.8125rem; }
.guide .gt b { font-size: 1.125rem; }
.guide .gt small { font-size: 1rem; opacity: .9; } /* UX-6: hint 16 px */
.guide .gt b, .guide .gt small { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.acts { justify-content: space-between; gap: 2px; margin-top: 12px; padding: 0 2px; }
.act { flex: 1 1 0; min-width: 0; max-width: 80px; font-size: 0.875rem; color: var(--ink); line-height: 1.15; text-align: center; } /* UX-7: 14 px, full contrast */
.act small { font-size: 0.875rem; }
.act.later .ab { width: 52px; height: 52px; }
.act.side .ab { width: 44px; height: 44px; box-shadow: none; background: var(--soft); color: var(--ink); }
.act.addfab { background: none; color: var(--ink); box-shadow: none; border-radius: 0; padding: 0; min-height: 0; display: flex; }
.act.addfab .ab { background: var(--bar); color: var(--bar-ink); }
.act .ab { margin-bottom: 2px; }
body[data-view="tur"] .toast { bottom: calc(118px + env(safe-area-inset-bottom)); }
/* UX-5: «Jeg står ved» = one button → sheet with a 2-column grid of 44 px buttons */
.standbtn { width: 100%; margin: 0 0 8px; min-height: 44px; background: var(--card); border: 1.5px solid var(--line); color: var(--ink); }
.standgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.standgrid .stand { min-height: 48px; border-radius: 10px; justify-content: flex-start; text-align: left; font-size: 0.9375rem; padding: 0 12px; white-space: normal; }
.standgrid .stand span { min-width: 0; overflow-wrap: anywhere; }

/* QA H1 / QA-2: phones in landscape — map left, list/cards right */
@media (orientation: landscape) and (max-height: 520px) {
  .drawer { left: auto; right: 0; width: min(50vw, 460px); max-width: none; margin: 0; top: env(safe-area-inset-top); height: auto !important; border-radius: 0; }
  .dr-grab { display: none; }
  .hm-top, .hm-res { margin-right: min(50vw, 460px); }
  .hm-map { padding: 6px min(50vw, 460px) calc(var(--tabs) + env(safe-area-inset-bottom) + 6px) 16px; }
  .screen:has(.tur) { padding-top: 6px; padding-bottom: 6px; }
  .tur { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 46vw); grid-template-rows: auto minmax(0, 1fr); column-gap: 8px; }
  .tur > .guide { grid-column: 1; grid-row: 1; }
  .tur-map { grid-column: 1; grid-row: 2; }
  .stackbox { grid-column: 2; grid-row: 1 / 3; align-self: end; padding-bottom: 6px; }
  .stack { height: clamp(120px, calc(100dvh - 150px), 228px); }
  .c-ic { width: 44px; height: 44px; } .c-ic svg { width: 28px; height: 28px; }
  .acts { margin-top: 8px; }
  body[data-view="tur"] .toast { left: auto; right: 12px; width: min(44vw, 420px); }
  body[data-view="liste"] .app, body[data-view="tur"] .app { max-width: none; }
  .kbtns { left: auto; right: 0; top: 0; width: 200px; max-width: none; margin: 0; flex-direction: column; justify-content: flex-end; background: var(--bg); border-left: 1px solid var(--line); }
  .kbtns .btn { flex: none; }
  .kasse { padding-right: 200px; padding-bottom: 16px; }
}
/* QA H2 / QA-3: 200 % zoom / large text (≈ 200–300 CSS px wide) */
@media (max-width: 340px) {
  .guide .gi { display: none; }
  .guide { padding-left: 10px; }
  .guide .gt b { font-size: 1rem; }
  .guide .gt small { font-size: 0.875rem; }
  .seg { flex-wrap: wrap; }
  .seg button { flex: 1 1 40%; }
  .acts { flex-wrap: wrap; row-gap: 6px; margin-top: 8px; }
  .act .ab, .act.ok .ab, .act.later .ab { width: 44px; height: 44px; font-size: 1.1875rem; }
  .act small { font-size: 0.8125rem; overflow-wrap: anywhere; }
  .act:not(.side) { flex: 1 1 28%; max-width: none; }
  .c-ic { width: 40px; height: 40px; } .c-ic svg { width: 26px; height: 26px; }
  .act.side { order: 2; flex: 1 1 40%; max-width: none; flex-direction: row; justify-content: center; gap: 6px; }
  .stackbox { padding-left: 8px; padding-right: 8px; }
  .go-trip { font-size: 1rem; }
  .dr-title h1 { font-size: 1.375rem; }
  .btns { flex-wrap: wrap; }
  .btn { min-width: 0; white-space: normal; text-align: center; }
}
/* UX-10 store picker: full-width «Nærmest meg» under search, results above a lower map; closed stores greyed */
.nearbtn.wide { position: static; width: 100%; margin-top: 10px; box-shadow: none; justify-content: center; border: 1.5px solid var(--line); background: var(--card); font-size: 0.9375rem; }
.mapwrap.low { margin-top: 16px; }
.mapwrap.low .regmap { height: 170px; }
.rrow.closed .who b, .rrow.closed .who small { color: var(--mute); }
/* remaining small targets (QA M2): inline links get a 44 px hit area without changing the layout */
.leaflet-control-attribution a { display: inline; padding: 16px 2px; }
p.meta a, .attr a { padding: 14px 0; }
.gate .link { min-width: 44px; }
.add textarea { min-height: 44px; }

/* HA-icons: one icon size per control type (24-grid, 2 px stroke), icon + label spacing, icons never shrink */
.btn > span[aria-hidden] svg { width: 20px; height: 20px; }
.btn.sm > span[aria-hidden] svg, .nearbtn > span[aria-hidden] svg { width: 18px; height: 18px; }
.btn.sm { gap: 6px; }
.btn > span[aria-hidden], .link > span[aria-hidden], .opt > span[aria-hidden] { flex: none; }
.link.ic { display: inline-flex; align-items: center; gap: 6px; }
.opt > span[aria-hidden] { color: var(--mute); }
.act .ab > span { display: grid; }

/* ---------- HA trip-fix (09.11) ---------- */
/* T2: at 200 % text / very short screens the map keeps a usable size; the trip view scrolls instead of squashing it */
.tur { overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
.tur-map { min-height: min(180px, 46vh); }
@media (orientation: landscape) and (max-height: 300px) { /* 200 % in landscape: map full height left (stays put), banner + cards scroll right */
  .tur { grid-template-columns: minmax(0, 40%) minmax(0, 1fr); grid-template-rows: auto auto; align-content: start; }
  .tur > .guide { grid-column: 2; grid-row: 1; margin: 0; }
  .tur-map { grid-column: 1; grid-row: 1 / 3; position: sticky; top: 0; height: calc(100dvh - 12px); min-height: 0; padding: 0 4px 0 8px; }
  .stackbox { grid-column: 2; grid-row: 2; align-self: start; padding: 8px 0 6px; }
  .stack { height: 150px; }
  .acts { flex-wrap: wrap; row-gap: 6px; margin-top: 8px; }
  .act .ab, .act.ok .ab, .act.later .ab { width: 44px; height: 44px; font-size: 1.1875rem; }
  .act:not(.side) { flex: 1 1 28%; max-width: none; }
  .act.side { order: 2; flex: 1 1 40%; max-width: none; flex-direction: row; justify-content: center; gap: 6px; }
  .act small { overflow-wrap: anywhere; }
  .guide .gi { display: none; }
  body[data-view="tur"] .toast { left: auto; right: 8px; width: 56vw; }
}
/* T9: small maps (short phones, landscape) — bigger department names and numbers; the toast goes over the banner, not the card */
@media (max-height: 720px), (max-width: 340px) {
  .tur-map .sm-z .lb { font-size: 1.625rem; }
  .tur-map .sm-z .nt { font-size: 1.375rem; }
  .tur-map .sm-heret { font-size: 1.5rem; }
}
@media (max-height: 720px) and (orientation: portrait) { /* T9: the card gives its empty middle to the map */
  .stack { height: clamp(150px, 24dvh, 228px); }
  .tur .c-ic { width: 40px; height: 40px; border-radius: 11px; } .tur .c-ic svg { width: 26px; height: 26px; }
  .tur .card3 { padding-top: 12px; padding-bottom: 10px; }
  .tur .c-nm { margin-top: 4px; }
}
body[data-view="tur"] .toast { top: calc(8px + env(safe-area-inset-top)); bottom: auto; }
/* data sources: recipe import (docs/DATA-SOURCES.md) */
.ri-list { max-height: 52vh; overflow-y: auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ri-list .check { border-bottom: 1px solid var(--line); }
.ri-list .check:last-child { border-bottom: 0; }
.add .go span { margin-right: 4px; vertical-align: -3px; }
.add .paste[hidden] { display: none; }
.pricebtn span { margin-right: 4px; }
.pr-list { margin-top: 12px; }
.pr-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.pr-row:last-child { border-bottom: 0; }
.pr-row small { display: block; color: var(--mute); font-size: 0.8125rem; }
.pr-p { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* Leaflet panes (z-index 400+) must not paint over bottom sheets opened from the store finder map */
.leaflet-container { isolation: isolate; }

/* ---------- «Tøm lista» (clear the active list) ---------- */
.dr-acts { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.dr-acts .sharebtn { align-self: auto; }
.clearbtn { color: var(--mute); }
.clearbtn:hover, .clearbtn:focus-visible { color: var(--err); }
.opt[disabled] { opacity: .5; }
.btn.pri.danger-pri { background: var(--err); color: var(--acc-ink); }

/* ---------- HA trip-map (09.11): the store's map stays reachable during a trip ---------- */
.tur-map { flex-direction: column; align-items: stretch; }
.tm-svg { flex: 1 1 auto; min-height: 0; display: flex; justify-content: center; position: relative; cursor: zoom-in; }
.tur.big .tm-svg { cursor: default; }
.tm-bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 6px; min-height: 36px; }
.tm-bar .grow { flex: 1; }
.tm-toggle { flex: none; min-height: 36px; padding: 0 12px; gap: 6px; font-size: 0.875rem; }
.tm-src { display: inline-flex; background: var(--soft); border-radius: 999px; padding: 3px; gap: 2px; min-width: 0; }
.tm-s { min-height: 30px; padding: 0 12px; border-radius: 999px; font-size: 0.8125rem; font-weight: 650; color: var(--mute); background: none; white-space: nowrap; }
.tm-s.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.tm-now { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.9375rem; color: var(--ink); }
.sm-z.focus .box { fill: var(--zc); stroke: none; }
.sm-z.focus .lb, .sm-z.focus .nb { fill: #fff; }
.sm-z.focus .nt { fill: var(--zc); }
.sm-ring.focus { stroke-dasharray: 10 7; }
.tur.big .tur-map { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
@media (orientation: landscape) and (max-height: 520px) { .tur.big .tur-map { grid-column: 1 / 3; } }
@media (max-width: 340px) { .tm-s { padding: 0 8px; } .tm-toggle { padding: 0 8px; } }
.tm-s { border: 0; }
/* Basket price chip (docs/PRODUCT-IDENTITY.md): unobtrusive «ca. 412 kr · 14 av 17 varer»; on a trip «Igjen ca. …» on the map */
.pricebtn { white-space: nowrap; }
.pricebtn .bk-sum { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pricebtn .bk-n { opacity: .72; font-weight: 500; white-space: nowrap; }
.turprice { position: absolute; top: 14px; right: 18px; z-index: 5; display: inline-flex; align-items: center; gap: 5px; min-height: 44px; padding: 0 12px;
  border: 0; border-radius: 999px; background: color-mix(in srgb, var(--card) 92%, transparent); color: var(--ink); font: inherit; font-size: 0.8125rem;
  box-shadow: 0 1px 4px rgb(0 0 0 / .14); cursor: pointer; }
.turprice .bk-sum { font-weight: 700; font-variant-numeric: tabular-nums; }
.turprice .bk-n { display: none; }
.turprice[hidden] { display: none; }
@media (max-width: 360px) { .pricebtn .bk-n { display: none; } }
/* in trip-map's bar («Stort kart»): a plain pill in the row, not floating over the map */
.tm-price { flex: none; display: flex; justify-content: flex-end; margin: -2px 0 6px; }
.tm-bar .turprice, .tm-price .turprice { position: static; flex: none; box-shadow: none; background: var(--soft); min-height: 36px; padding: 0 10px; }
@media (max-width: 400px) { .tm-bar .turprice .bk-pre { display: none; } }
.tm-price .turprice[hidden] { display: none; }

/* HA · Quantity: the count is part of the name — «Meierismør  2 stk» on the swipe card, a pill on the list tile */
.c-nr { display: flex; align-items: flex-end; gap: 10px; min-width: 0; }
.c-nr .c-nm { flex: 0 1 auto; min-width: 0; }
.c-qty { flex: none; margin-bottom: 3px; padding: 3px 11px; border-radius: 999px; font-size: 1.25rem; font-weight: 800; line-height: 1.2; white-space: nowrap;
  color: var(--ink); background: color-mix(in srgb, var(--zc, var(--mute)) 22%, var(--bg)); border: 1.5px solid color-mix(in srgb, var(--zc, var(--mute)) 60%, transparent); }
.tile .q { padding: 2px 8px; border-radius: 999px; font-size: 0.875rem; font-weight: 750; color: var(--ink); background: color-mix(in srgb, var(--zc, var(--mute)) 18%, var(--bg)); }
.tile.done .q { background: none; color: var(--mute); font-weight: 500; }
/* ---------- HA learn-map (09.11): learned spots ---------- */
.sm-spot .halo { fill: var(--here); opacity: .16; }
.sm-spot .dot { fill: var(--here); stroke: var(--card); stroke-width: 3; }
.sm-spot.cur .halo { opacity: .24; }
.sm-spot.heat .halo { fill: var(--ok); }
.sm-spot.heat .dot { fill: var(--ok); }
.learn-note { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; margin: 8px 12px 0; font-size: 0.875rem; color: var(--mute); }
.learn-card { margin: 10px 0 0; } .learn-card summary { cursor: pointer; font-weight: 650; padding: 8px 0; }
.sm-spot:not(.cur):not(.heat) { opacity: .55; }
.sm-spot.cur .dot { stroke-width: 4; }
.sm-spot.cur .halo { opacity: .3; }
.sm-tag .pin path { fill: var(--route); stroke: var(--card); stroke-width: 3; }
.sm-tag .pin circle { fill: var(--card); }
.sm-tag .pin { animation: sm-drop .45s cubic-bezier(.3,1.6,.6,1) both; }
@keyframes sm-drop { from { transform: translateY(-40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sm-tag .pin { animation: none; } }

/* HA · CardPrice (09.11): «Henter priser …» on the basket chip while prices load, the sum eases in after; price row on the swipe card */
.bk-spin { flex: none; display: inline-block; width: 15px; height: 15px; margin-right: 6px; vertical-align: -2px; border-radius: 50%;
  border: 2px solid color-mix(in srgb, currentColor 22%, transparent); border-top-color: currentColor; animation: bkspin .9s linear infinite; }
@keyframes bkspin { to { transform: rotate(360deg); } }
.pricebtn.loading .bk-load { color: var(--mute); font-weight: 600; background: linear-gradient(90deg, var(--mute) 0 40%, var(--ink) 50%, var(--mute) 60% 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: bkshim 1.6s ease-in-out infinite; }
@keyframes bkshim { from { background-position: 100% 0; } to { background-position: 0 0; } }
.pricebtn.loading .bk-sum, .turprice.loading .bk-sum { opacity: .65; }
.bk-in .bk-sum, .bk-in .bk-n { animation: bkin .45s cubic-bezier(.2,.8,.2,1) both; }
.bk-in .bk-n { animation-delay: .08s; }
@keyframes bkin { from { opacity: 0; transform: translateY(5px); } }
.c-pr { margin-top: 10px; display: flex; flex-direction: column; gap: 3px; font-variant-numeric: tabular-nums; min-width: 0; }
.c-pr[hidden] { display: none; }
.c-pm { font-size: 1.0625rem; font-weight: 650; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-pm b { font-weight: 800; }
.c-pm.mine { align-self: flex-start; max-width: 100%; padding: 3px 10px; border-radius: 8px; background: color-mix(in srgb, var(--ok, var(--acc)) 14%, var(--card));
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ok, var(--acc)) 45%, transparent); }
.c-po { color: var(--mute); font-size: 0.875rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-pc { display: inline-block; padding: 0 6px; border-radius: 6px; font-size: 0.6875rem; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; vertical-align: 1px;
  color: var(--ok, var(--acc)); background: color-mix(in srgb, var(--ok, var(--acc)) 13%, transparent); }
.c-po .cheap { color: var(--ink); }
.c-pr.loading { flex-direction: row; align-items: center; color: var(--mute); font-size: 0.875rem; font-weight: 600; }
@media (prefers-reduced-motion: reduce) {
  .bk-spin { animation: none; border-top-color: color-mix(in srgb, currentColor 22%, transparent); border-style: dotted; border-color: currentColor; }
  .pricebtn.loading .bk-load { animation: none; -webkit-text-fill-color: currentColor; background: none; }
  .bk-in .bk-sum, .bk-in .bk-n { animation: none; }
}
.tile .tpr { font-variant-numeric: tabular-nums; }
.tile .nt:has(> .tpr:not([data-sep]):empty) { display: none; } /* price was the only thing on the sub line */

/* HA · ListHistory (history.js): «Lister» hub, «Lagre som …», weekday nudge */
.hl-ideas { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.hl-chip { min-height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); font-size: 0.875rem; }
.hl-pick .hl-box { flex: none; width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--line); display: inline-grid; place-items: center; color: var(--card); }
.hl-pick .opt[aria-checked="true"] .hl-box { background: var(--acc); border-color: var(--acc); }
.hl-pick .opt[aria-checked="true"] { background: none; }
.hl-pick .opt[aria-checked="false"] .grow { color: var(--mute); }
.hl-entry b { display: block; font-weight: 650; }
.hl-nudge { position: relative; margin: 12px 0 0; }
.hl-nudge-go { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 44px 8px 14px; text-align: left;
  border: 1px dashed color-mix(in srgb, var(--acc) 55%, var(--line)); border-radius: var(--r); background: color-mix(in srgb, var(--acc) 7%, var(--card)); color: inherit; }
.hl-nudge-go > span:first-child { color: var(--acc); }
.hl-nudge-go .grow { flex: 1; min-width: 0; }
.hl-nudge-go b { display: block; font-weight: 650; }
.hl-nudge-go small { display: block; color: var(--mute); font-size: 0.8125rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hl-nudge-add { flex: none; font-size: 0.8125rem; font-weight: 650; color: var(--acc); }
.hl-nudge-x { position: absolute; top: 50%; right: 4px; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: none; color: var(--mute); display: grid; place-items: center; border-radius: 50%; }
.hl-del { color: var(--err); }
.dr-head .hl-nudge, .hl-nudge { margin: 10px 0 2px; }
/* HA · analytics: «Om deg» (gender + age band) in the gate and under Mine data */
.gseg { flex-wrap: wrap; }
.gseg .gopt { flex: 1 1 40%; display: grid; position: relative; }
.gseg .gopt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; z-index: 1; cursor: pointer; }
.gseg .gopt span { display: grid; place-items: center; min-height: 44px; border-radius: 9px; font-weight: 600; font-size: 0.875rem; color: var(--mute); cursor: pointer; padding: 0 8px; text-align: center; }
.gseg .gopt input:checked + span { background: var(--card); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.gseg .gopt input:focus-visible + span { outline: 2px solid var(--acc); outline-offset: 2px; }
.gate-me { margin-top: 14px; }

/* ---------- HA align (owner 09.11, iPhone): the add field lines up with the store chip and the meta line ---------- */
.dr-body .add, .dr-body .prog, .dr-body .hint { margin-left: 16px; margin-right: 16px; } /* same 16 px gutter as .dr-head */
.add { align-items: flex-end; gap: 8px; padding: 6px 6px 6px 12px; }
.add .add-ic { flex: none; height: 44px; width: 22px; display: grid; place-items: center; color: var(--mute); }
.add .add-ic svg { margin: 0; }
.add textarea { padding: 11px 0; line-height: 22px; min-height: 44px; height: 44px; } /* one line = 44 px, text centred like «+» and the paste button */
.add textarea::placeholder { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.add .paste, .add .go { flex: none; height: 44px; }
.add .paste { width: 44px; }
/* tralla rebrand (09.11): header wordmark is an inline SVG (concept 3 «Kartnål + t»), coloured by --acc/--ink. */
.brand { display: inline-flex; line-height: 0; }
.brand::after { content: none; }
.brand svg { display: block; height: 30px; width: auto; }
.gate-logo.gate-icon { display: block; background: none; box-shadow: 0 6px 18px rgba(40,30,15,.18); }
.brand-om { margin: 4px 0 10px; }
/* ---------- HA hotfix-map (09.11, owner on iPhone: «hvor blir kartet av?») ----------
   Safari/WebKit collapsed the trip map to 0 px wide: the SVG had width:auto + height:100% inside a wrapper with no height,
   and WebKit does not derive the width from the viewBox there. The wrapper now has the map's own 3:4 shape and the SVG
   fills it — same result in Chromium, visible in WebKit. */
.tur-map .tm-svg > .smapw { height: 100%; max-width: 100%; aspect-ratio: 3 / 4; flex: none; }
.tur-map .tm-svg > .smapw > svg.smap { display: block; width: 100%; height: 100%; max-height: none; }

/* ---------- HA · Tall (stats.js) ---------- */
.st-hero { margin: -4px 0 12px; }
.st-big { font-family: var(--serif); font-weight: 700; font-size: 2.3rem; line-height: 1.1; letter-spacing: -.01em; }
.st-hero p { margin: 4px 0 0; }
.st-seg { margin: 4px 0 6px; }
.st-h { font-size: 1rem; margin: 18px 0 4px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.st-h small { font-weight: 400; color: var(--mute); font-size: .82rem; }
.st-chartbox { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 8px 8px 2px; }
.st-chart { display: block; width: 100%; height: auto; overflow: visible; }
.st-chart.kcal { --stc: var(--z-produce); }
.st-chart.kr { --stc: var(--z-dairy); }
.st-axis { stroke: var(--line); stroke-width: 1; }
.st-fill { fill: var(--stc); opacity: .55; transition: opacity .15s; }
.st-bar.now .st-fill, .st-bar.sel .st-fill { opacity: 1; }
.st-hit { fill: transparent; }
.st-bar { cursor: pointer; outline: none; }
.st-bar:focus-visible .st-hit { stroke: var(--ink); stroke-width: 1.5; rx: 6; }
.st-tick { font-size: 11px; fill: var(--mute); }
.st-val { font-size: 11px; font-weight: 600; fill: var(--ink); }
.st-read { margin: 2px 4px 6px; min-height: 1.3em; font-size: .85rem; color: var(--mute); }
.st-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.st-tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; }
.st-tile b { display: block; font-family: var(--serif); font-size: 1.5rem; line-height: 1.15; }
.st-tile small { color: var(--mute); font-size: .82rem; }
.st-top { margin: 10px 0 0; }
.st-list { display: grid; }
.st-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 2px; border-bottom: 1px solid var(--line); }
.st-row:last-child { border-bottom: 0; }
.st-row small { display: block; color: var(--mute); font-size: .8rem; }
.st-num { text-align: right; font-variant-numeric: tabular-nums; }
.st-src { margin: 14px 0 0; }
@media (prefers-reduced-motion: reduce) { .st-fill { transition: none; } }
.sm-aisle { fill: var(--card); opacity: .55; }

/* ---------- tralla · avdekk kartet (owner 09.11): fog of paper over the unknown store, uncovered as you put things in the basket ---------- */
.rv-paper { fill: color-mix(in srgb, var(--mute) 42%, var(--soft)); }
.rv-fiber { stroke: color-mix(in srgb, var(--mute) 55%, transparent); stroke-width: 1.4; stroke-linecap: round; fill: none; }
.rv-fleck { fill: color-mix(in srgb, var(--mute) 35%, transparent); }
.rv-fog { pointer-events: none; }
.rv-new { transform-box: fill-box; transform-origin: center; animation: rv-open .7s cubic-bezier(.2,.8,.2,1) both; }
@keyframes rv-open { from { transform: scale(0); } to { transform: scale(1); } }
.rv-empty { width: 100%; height: 100%; display: grid; place-items: center; }
.rv-empty svg { width: auto; height: 100%; max-width: 100%; max-height: 100%; aspect-ratio: 360 / 420; }
.rec .rv-of { font-weight: 500; opacity: .8; }
.sm-z.lit .box { animation: rv-lit 1.6s ease-out both; }
@keyframes rv-lit { 0% { filter: drop-shadow(0 0 0 var(--ok)); } 35% { filter: drop-shadow(0 0 14px var(--ok)); } 100% { filter: drop-shadow(0 0 0 transparent); } }
.sm-tag .spark path { stroke: var(--acc); stroke-width: 4; stroke-linecap: round; fill: none; opacity: 0; animation: rv-spark .7s .25s ease-out both; }
@keyframes rv-spark { 0% { opacity: 0; transform: scale(.6); } 40% { opacity: 1; } 100% { opacity: 0; transform: scale(1.25); } }
.rv-badge { position: fixed; left: 50%; top: calc(env(safe-area-inset-top) + 86px); transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: var(--card); color: var(--ink); border-radius: 16px; padding: 12px 18px 14px; box-shadow: var(--shadow); text-align: center; max-width: calc(100vw - 32px); animation: rv-pop .55s cubic-bezier(.3,1.6,.6,1) both; }
.rv-badge .rv-art svg { width: 150px; height: auto; display: block; }
.rv-badge b { font-size: 1rem; }
@keyframes rv-pop { 0% { transform: translateX(-50%) scale(.6); opacity: 0; } 70% { transform: translateX(-50%) scale(1.05); opacity: 1; } 100% { transform: translateX(-50%) scale(1); } }
@media (prefers-reduced-motion: reduce) { .rv-new, .sm-z.lit .box, .sm-tag .spark path, .rv-badge { animation: none; } .sm-tag .spark { display: none; } }

.rv-fog { opacity: .92; }
@media (max-width: 430px) { .rec .rv-of { display: none; } }
.fresh-link { margin: 6px auto 0; font-size: 0.875rem; }

/* ---------- PDR v2 (owner field test 09.11): «Her står jeg» anchor, «lærer …» spots ---------- */
.tm-here { flex: none; min-height: 36px; padding: 0 12px; gap: 6px; font-size: 0.875rem; }
.tm-here.on { background: var(--here); color: #fff; }
.tm-svg.tapping { cursor: crosshair; outline: 3px dashed var(--here); outline-offset: -3px; border-radius: 16px; }
.sm-spot.prov .halo { fill: none; stroke: var(--here); stroke-width: 3; stroke-dasharray: 6 6; opacity: .7; }
.sm-spot.prov .dot { fill: var(--card); stroke: var(--here); }

/* ---------- HA · ListRedesign: the list gets the whole height (option 1 «Ren liste» + option 2's note field) ---------- */
.screen.v-liste { padding-bottom: calc(var(--tabs) + env(safe-area-inset-bottom)); }
.lst { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ls-head { flex: none; padding: 0 16px 6px; }
.ls-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ls-top .brand { flex: none; display: inline-flex; width: 74px; height: 27px; }
.ls-top .brand svg { width: 100%; height: 100%; }
.ls-top .chip { flex: 0 1 auto; min-width: 0; min-height: 40px; margin: 0; }
.ls-top .dr-acts { margin-left: auto; display: flex; gap: 6px; flex: none; }
.ls-top .sharebtn.icon { width: 44px; height: 44px; min-height: 44px; padding: 0; justify-content: center; position: relative; }
.ls-meta { display: flex; align-items: center; gap: 8px; min-width: 0; margin-top: 4px; }
.ls-meta .dr-meta { flex: 1; min-width: 0; margin: 0; }
.ls-meta .sharebtn { flex: none; margin: 0; min-height: 32px; padding: 0 10px; font-size: 0.8125rem; }
.ls-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 18px; -webkit-overflow-scrolling: touch; }
.ls-foot { flex: none; padding: 8px 16px 10px; background: linear-gradient(to bottom, transparent, var(--bg) 30%); }
.go-trip { width: 100%; min-height: 58px; border-radius: 16px; display: flex; align-items: center; gap: 12px; padding: 0 16px; text-align: left; box-shadow: 0 8px 22px color-mix(in srgb, var(--acc) 30%, transparent); }
.go-trip .gt-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.go-trip .gt-tx b { font-size: 1.0625rem; }
.go-trip .gt-tx small { font-size: 0.8125rem; font-weight: 500; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.go-trip:disabled { box-shadow: none; background: var(--soft); color: var(--mute); opacity: 1; }

/* the note «Hva trenger du?»: a lined card; recognised pieces are tinted behind the text (an overlay that mirrors the textarea) */
.add.note { display: block; margin: 8px 16px 4px; padding: 0; border-radius: 16px; border: 1.5px solid var(--line); background: var(--card); box-shadow: 0 2px 10px rgba(40,30,15,.06); overflow: hidden; }
.add.note:focus-within { border-color: var(--acc); }
.note-box { position: relative; }
.note-hl, .add.note textarea {
  margin: 0; padding: 6px 16px 0; font: inherit; font-size: 1.0625rem; line-height: 32px; letter-spacing: normal; word-spacing: normal;
  white-space: pre-wrap; overflow-wrap: break-word; word-break: normal; tab-size: 4; border: 0; box-sizing: border-box; width: 100%;
}
.note-hl { position: absolute; inset: 0; color: transparent; overflow: hidden; pointer-events: none; min-height: 70px;
  background-image: linear-gradient(to bottom, transparent 30px, color-mix(in srgb, var(--line) 80%, transparent) 30px 31px, transparent 31px);
  background-position: 0 6px; background-size: 100% 32px; background-repeat: repeat-y; background-attachment: local; }
.note-hl mark { color: transparent; border-radius: 5px; padding: 1px 0; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.note-hl mark.ok { background: color-mix(in srgb, var(--ok) 20%, transparent); }
.note-hl mark.unk { background: transparent; box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--warn) 55%, transparent); }
.add.note textarea { position: relative; display: block; background: transparent; resize: none; outline: none; min-height: 70px; max-height: 200px; overflow-y: auto; scrollbar-width: none; color: var(--ink); caret-color: var(--acc); }
.add.note textarea::-webkit-scrollbar { display: none; }
.add.note textarea::placeholder { color: var(--mute); font-family: var(--serif); font-weight: 700; font-size: 1.375rem; }
.note-bar { display: flex; align-items: center; gap: 8px; padding: 4px 8px 8px 16px; }
.note-st { flex: 1; min-width: 0; margin: 0; min-height: 0; font-size: 0.8125rem; color: var(--mute); line-height: 1.3; }
.note-st.ok { color: var(--ok); font-weight: 650; }
.note-btns { display: flex; gap: 6px; flex: none; }
.add.note .paste, .add.note .mic, .add.note .go { height: 44px; min-width: 44px; border-radius: 12px; }
.add.note .paste { width: auto; padding: 0 12px; display: inline-flex; gap: 6px; align-items: center; color: var(--ink); font-weight: 650; font-size: 0.875rem; }
.add.note .paste.slim .lbl { display: none; }
.add.note .mic { border: 0; background: var(--soft); color: var(--ink); display: grid; place-items: center; }
.add.note .mic[aria-pressed="true"] { background: var(--acc); color: var(--acc-ink); }
.add.note .go { display: inline-flex; align-items: center; gap: 6px; }
.add.note svg { margin: 0; color: currentColor; }

/* quick chips */
.qchips { display: flex; gap: 8px; overflow-x: auto; padding: 8px 16px 2px; scrollbar-width: none; }
.qchips::-webkit-scrollbar { display: none; }
.qc { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); font-weight: 650; font-size: 0.875rem; white-space: nowrap; }
.qc.sug { border-style: dashed; background: transparent; color: var(--mute); }

/* rows grouped per department */
.lgrp .sec { padding: 16px 16px 6px; }
.lgrp .sec .sn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lgrp .sec .n { margin-left: auto; white-space: nowrap; }
.rows { background: var(--card); border-top: 1px solid var(--line); }
.lr { display: flex; align-items: center; gap: 4px; min-height: 56px; padding: 0 4px 0 0; border-bottom: 1px solid var(--line); }
.lr.tw::before { display: none; }
.add.note [hidden] { display: none; }
.lr .tile { all: unset; box-sizing: border-box; flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 6px 4px 6px 14px; cursor: pointer; border-radius: 0; }
.lr .tile:focus-visible { outline: 3px solid color-mix(in srgb, var(--acc) 60%, transparent); outline-offset: -3px; }
.lr .tile .ck { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--mute) 45%, var(--line)); display: grid; place-items: center; color: var(--acc-ink); }
.lr .tile.done .ck { background: var(--ok); border-color: var(--ok); }
.lr .tile .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lr .tile .nm { font-weight: 650; font-size: 1rem; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; display: block; }
.lr .tile .nt { font-size: 0.8125rem; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.lr .tile .by { font-size: 0.75rem; font-weight: 650; color: color-mix(in srgb, var(--zc) 60%, var(--ink)); }
.lr.done .tile .nm { text-decoration: line-through; color: var(--mute); }
.lr .tile.ask .nt { color: var(--warn); font-weight: 600; }
.qs { flex: none; display: flex; align-items: center; background: var(--soft); border-radius: 999px; height: 36px; }
.qs button { border: 0; background: none; width: 36px; height: 44px; display: grid; place-items: center; color: var(--ink); border-radius: 999px; }
.qs .qm { color: var(--mute); }
.qs .qn { min-width: 18px; text-align: center; font-weight: 750; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.qs .qn.u { font-size: 0.75rem; white-space: nowrap; }
.lr-pr { flex: none; min-width: 52px; text-align: right; font-size: 0.875rem; color: var(--mute); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lr-pr:empty { min-width: 0; }
.lr .tmv { position: static; flex: none; width: 36px; height: 44px; border: 0; background: none; color: var(--mute); display: grid; place-items: center; border-radius: 10px; box-shadow: none; }
.lr .tmv.ask { width: auto; padding: 0 10px; background: color-mix(in srgb, var(--warn) 14%, var(--card)); color: var(--warn); font-weight: 650; font-size: 0.8125rem; height: 36px; }
.ls-empty { padding: 28px 24px 8px; }
.ls-empty b { font-family: var(--serif); font-size: 1.375rem; }

/* «Klar for <butikk>?» */
.ss-map { border-radius: 14px; overflow: hidden; background: var(--soft); max-height: 42vh; display: grid; place-items: center; }
.ss-map .smapw, .ss-map svg { max-height: 42vh; width: 100%; }
.ss-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: 8px; margin: 12px 0; }
.ss-tile { background: var(--soft); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; }
.ss-tile b { font-size: 1.125rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ss-tile small { color: var(--mute); font-size: 0.75rem; }
.start-go { width: 100%; min-height: 54px; font-size: 1.0625rem; }
.ss-note { text-align: center; margin: 10px 0 0; }
.ss-links { text-align: center; margin: 6px 0 0; }
.ss .fv { padding: 0; }

/* Lister / Tall pages */
.pg-h { margin: 8px 0 6px; }
.lp-acts { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 4px; }
.lp-acts .btn { width: 100%; }
.lp-h { font-size: 1.0625rem; margin: 22px 0 8px; }
.lp-empty { margin: 8px 0 0; }

@media (max-width: 370px) {
  .ls-top .brand { width: 60px; height: 22px; }
  .lr-pr { min-width: 44px; font-size: 0.8125rem; }
  .qs button { width: 32px; }
  .add.note .paste .lbl { display: none; }
}
@media (min-width: 700px) {
  .screen.v-liste .ls-foot { padding-bottom: 14px; }
  .lr:hover .tile .nm { text-decoration: underline; text-decoration-color: var(--line); }
}
@media (prefers-reduced-motion: reduce) { .go-trip, .qc, .lr .tile { transition: none; } }

/* ---------- «Fikk bare 2?» (owner 09.11) ---------- */
.toast.multi button.num { min-width: 44px; min-height: 40px; font-weight: 800; text-decoration: none; background: var(--card); color: var(--ink); border-radius: 999px; padding: 0 12px; }
button.c-qty { cursor: pointer; font: inherit; font-size: 1.25rem; font-weight: 800; }
.qsheet { display: flex; align-items: center; justify-content: center; gap: 24px; margin: 6px 0; }
.qs-b { min-width: 64px; min-height: 64px; font-size: 1.75rem; font-weight: 800; }
.qs-n { min-width: 2.5ch; text-align: center; font-size: 2rem; }
