/* ------------------------------------------------------------------
   Einkaufsliste – „Küchentafel“: Cremepapier, Terracotta, Salbei, Senf
   ------------------------------------------------------------------ */
:root {
  --font-body: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Cambria, Georgia, "Noto Serif", serif;

  --paper: #f5eee1;
  --paper-2: #ebe1cd;
  --card: #fffaf1;
  --ink: #2b2118;
  --ink-2: #6f5d4d;
  --line: #e0d3bc;
  --line-2: #cdbfa5;
  --tomato: #c8492c;
  --tomato-2: #a63a21;
  --tomato-soft: #f8ddd3;
  --leaf: #4f7a3a;
  --leaf-soft: #e0ead3;
  --sage: #8fa07f;
  --mustard: #dba63c;
  --mustard-ink: #3d2b06;
  --mustard-soft: #f7e8c3;
  --shadow: 0 1px 2px rgba(72, 45, 20, 0.07), 0 8px 20px rgba(72, 45, 20, 0.09);
  --shadow-sm: 0 1px 2px rgba(72, 45, 20, 0.08);
  --grain-opacity: 0.055;
  --radius: 18px;
  --tile-min: 106px;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1e1916;
    --paper-2: #282119;
    --card: #2c2520;
    --ink: #f1e8d8;
    --ink-2: #b5a58e;
    --line: #3f342b;
    --line-2: #55473b;
    --tomato: #e0684b;
    --tomato-2: #f08a6c;
    --tomato-soft: #4a2a21;
    --leaf: #8cbb72;
    --leaf-soft: #2b3a25;
    --sage: #93a486;
    --mustard: #e3b453;
    --mustard-ink: #2c1f04;
    --mustard-soft: #46361a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 8px 22px rgba(0, 0, 0, 0.35);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --grain-opacity: 0.07;
  }
}
:root[data-theme="dark"] {
  --paper: #1e1916; --paper-2: #282119; --card: #2c2520; --ink: #f1e8d8; --ink-2: #b5a58e;
  --line: #3f342b; --line-2: #55473b; --tomato: #e0684b; --tomato-2: #f08a6c; --tomato-soft: #4a2a21;
  --leaf: #8cbb72; --leaf-soft: #2b3a25; --sage: #93a486; --mustard: #e3b453; --mustard-ink: #2c1f04;
  --mustard-soft: #46361a; --shadow: 0 1px 2px rgba(0,0,0,.35), 0 8px 22px rgba(0,0,0,.35);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --grain-opacity: 0.07;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { height: 100%; }
body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.4;
  overscroll-behavior-y: contain;
  position: relative;
}
/* Papierkörnung – liegt über der Seite (auch über Kopf- und Suchleiste), damit der Hintergrund überall gleich wirkt */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
}
/* Kräuterzweig unten rechts (static/sprig.svg als Maske, damit die Farbe zum Thema passt) */
body::after {
  content: "";
  position: fixed; right: -26px; bottom: -34px; width: 200px; height: 352px; z-index: 0; pointer-events: none;
  background: var(--sage); opacity: 0.15; transform: rotate(-16deg); transform-origin: 60% 90%;
  -webkit-mask: url("/static/sprig.svg") no-repeat center / contain;
  mask: url("/static/sprig.svg") no-repeat center / contain;
}
#app { position: relative; z-index: 1; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
input, select, textarea { font-size: 16px; }
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.boot { padding: 48px 16px; text-align: center; color: var(--ink-2); font-family: var(--font-display); font-style: italic; }

/* ---------- Kopfzeile ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--paper);
  padding: calc(var(--sat) + 10px) 14px 8px;
  display: flex; align-items: center; gap: 10px;
}
.topbar::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 1px;
  background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 11px);
}
.titlebox { flex: 1; min-width: 0; }
.topbar h1 {
  margin: 0; font-family: var(--font-display); font-size: 23px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.15;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.topbar h1 button {
  background: none; border: 0; padding: 2px 6px; margin: -2px -6px; border-radius: 8px;
  font: inherit; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left;
}
.subtitle {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--sage);
  margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.iconbtn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--card); box-shadow: var(--shadow-sm);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; flex: none; color: var(--ink);
}
.iconbtn:active { transform: scale(0.94); }
.topbar h1 .status {
  display: inline-block; margin-left: 8px; font-family: var(--font-body); font-size: 15px; font-weight: 800;
  color: var(--leaf); vertical-align: 2px; line-height: 1;
}
.status.offline {
  color: var(--mustard-ink); background: var(--mustard); border-radius: 50%;
  width: 18px; height: 18px; font-size: 12px; text-align: center; line-height: 18px; vertical-align: 3px;
}
.status.pending { color: var(--tomato); animation: spin 1.2s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.countpill {
  flex: none; font-size: 11.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); white-space: nowrap;
}
.countpill.empty { color: var(--sage); }

/* ---------- Suche ---------- */
.searchbar {
  position: sticky; top: calc(var(--sat) + 62px); z-index: 19;
  background: var(--paper); padding: 10px 14px 8px;
}
.searchbox {
  position: relative; display: flex; align-items: center;
  background: var(--card); border-radius: 16px; box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--line-2);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.searchbox:focus-within { border-color: var(--tomato); box-shadow: 0 0 0 3px var(--tomato-soft); }
.searchbox .lupe { padding: 0 0 0 14px; font-size: 16px; color: var(--sage); }
.searchbox input {
  flex: 1; border: 0; background: transparent; padding: 13px 10px; min-width: 0; outline: none;
  font-family: var(--font-display); font-size: 17px;
}
.searchbox input::placeholder { color: var(--ink-2); opacity: 0.7; font-style: italic; }
.searchbox .clear { border: 0; background: transparent; padding: 0 12px; height: 46px; color: var(--ink-2); font-size: 20px; }
.searchbox .done {
  border: 0; background: var(--tomato); color: #fff6ee; font-weight: 700; font-size: 14px;
  padding: 0 14px; height: 36px; margin-right: 5px; border-radius: 11px; letter-spacing: 0.02em;
}
.qtyhint { margin: 8px 4px 0; font-size: 13px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.qtyhint:empty { display: none; }
.qtyhint b { color: var(--tomato-2); background: var(--tomato-soft); padding: 1px 8px; border-radius: 999px; font-weight: 700; }

/* ---------- Inhalt ---------- */
.content { padding: 6px 14px calc(var(--sab) + 100px); }
.section { margin: 18px 0 4px; }
.section-head {
  display: flex; align-items: center; gap: 8px; margin: 0 2px 10px;
  font-family: var(--font-display); font-style: italic; font-size: 16px; color: var(--ink-2);
}
.section-head .cat-ic {
  width: 28px; height: 28px; border-radius: 50%; background: var(--card); border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center; font-size: 15px; font-style: normal; flex: none;
}
.section-head .cat-nm { font-weight: 600; color: var(--ink); }
.section-head .cnt {
  font-family: var(--font-body); font-style: normal; font-size: 11px; font-weight: 700; color: var(--sage);
  background: var(--paper-2); padding: 1px 7px; border-radius: 999px;
}
.section-head .rule { flex: 1; height: 1px; background: repeating-linear-gradient(90deg, var(--line-2) 0 3px, transparent 3px 7px); margin-left: 4px; }
.section-head button.link {
  background: none; border: 0; color: var(--tomato-2); font-family: var(--font-body); font-style: normal;
  font-weight: 700; font-size: 13px; padding: 4px 6px;
}
.done-section { margin-top: 30px; padding-top: 6px; }
.grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(var(--tile-min), 1fr));
}
.tile {
  position: relative;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 12px 8px 10px; min-height: 104px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  touch-action: manipulation; cursor: pointer;
  transition: transform 0.12s ease, opacity 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.tile:active { transform: scale(0.95); }
.tile .ic { font-size: 32px; line-height: 1; margin-bottom: 7px; filter: drop-shadow(0 2px 2px rgba(60, 30, 10, 0.14)); display: flex; align-items: center; justify-content: center; height: 34px; }
/* Eigene Grafik-Symbole (svg:name) in Emoji-Größe */
.svgic { width: 1.1em; height: 1.1em; vertical-align: middle; object-fit: contain; pointer-events: none; }
.tile .ic .svgic { width: 36px; height: 36px; }
.iconrow button .svgic { width: 26px; height: 26px; }
.bigicon .svgic { width: 38px; height: 38px; }
.bigicon-inline { font-size: 34px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; }
.bigicon-inline .svgic { width: 40px; height: 40px; }
.section-head .cat-ic .svgic { width: 16px; height: 16px; }
.tile .nm {
  font-family: var(--font-display); font-size: 14px; font-weight: 600; line-height: 1.2; letter-spacing: -0.005em;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 8 4 4;
}
.tile .qt {
  margin-top: 5px; font-size: 11.5px; font-weight: 700; color: var(--tomato-2); background: var(--tomato-soft);
  padding: 1px 8px; border-radius: 999px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tile .nt { margin-top: 3px; font-size: 11px; color: var(--ink-2); font-style: italic; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile.unsure { border: 1.5px dashed var(--mustard); background: linear-gradient(180deg, var(--card), var(--mustard-soft) 160%); }
.tile.done { background: var(--paper-2); border-color: transparent; box-shadow: none; opacity: 0.72; }
.tile.done .ic { filter: grayscale(0.55) sepia(0.25); }
.tile.done .nm { color: var(--ink-2); }
.tile.done .qt { background: transparent; color: var(--ink-2); }
.tile.done::after {
  content: "✓"; position: absolute; top: 7px; right: 8px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--leaf); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.tile.onlist { border-color: var(--leaf); background: var(--leaf-soft); }
.tile.onlist::after {
  content: "✓"; position: absolute; top: 7px; right: 8px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--leaf); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.tile.new { border: 1.5px dashed var(--tomato); background: var(--card); }
.tile.new .nm::before { content: "+ "; color: var(--tomato); }

/* Fragezeichen-Sticker */
.badge-q {
  position: absolute; top: -8px; left: -8px; z-index: 2;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--mustard); color: var(--mustard-ink);
  font-family: var(--font-display); font-weight: 800; font-size: 19px; line-height: 1;
  border: 2px solid var(--card); box-shadow: 0 2px 6px rgba(60, 40, 10, 0.28);
  transform: rotate(-10deg);
  display: flex; align-items: center; justify-content: center; padding: 0; cursor: pointer;
}
button.badge-q:active { transform: rotate(-10deg) scale(0.9); }
.badge-q.inline {
  position: static; width: 22px; height: 22px; font-size: 14px; border-width: 1.5px;
  display: inline-flex; vertical-align: middle; transform: rotate(-8deg); flex: none;
}
.notice {
  display: flex; gap: 10px; align-items: center;
  background: var(--mustard-soft); border: 1px dashed var(--mustard); border-radius: 14px;
  padding: 10px 12px; font-size: 13.5px; color: var(--ink); margin: 10px 0 2px; line-height: 1.35;
}

.empty { text-align: center; color: var(--ink-2); padding: 44px 16px; font-family: var(--font-display); font-style: italic; font-size: 16px; }
.empty .big { font-size: 50px; margin-bottom: 8px; font-style: normal; filter: drop-shadow(0 3px 3px rgba(60, 30, 10, 0.15)); }

/* ---------- Listenübersicht ---------- */
.lists { display: flex; flex-direction: column; gap: 10px; padding: 14px 14px 6px; }
.listcard {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px 16px; text-align: left; width: 100%;
}
.listcard:active { transform: scale(0.99); }
.listcard .ic {
  font-size: 24px; width: 46px; height: 46px; border-radius: 50%; background: var(--leaf-soft);
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.listcard .body { flex: 1; min-width: 0; }
.listcard .title { font-family: var(--font-display); font-weight: 700; font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.listcard .sub { font-size: 12px; color: var(--sage); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 2px; }
.listcard .chev { color: var(--line-2); font-size: 22px; }
.home-actions { display: flex; gap: 10px; padding: 8px 14px 12px; }
.trash { padding: 18px 14px 24px; }
.trashrow {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 8px;
  background: var(--paper-2); border: 1px dashed var(--line-2); border-radius: 14px;
}
.trashrow .ic { font-size: 18px; flex: none; }
.trashrow .body { flex: 1; min-width: 0; }
.trashrow .title { font-family: var(--font-display); font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trashrow .sub { font-size: 12px; color: var(--ink-2); }
.btn.small { padding: 8px 12px; font-size: 13px; border-radius: 10px; }
.iconbtn.small { width: 32px; height: 32px; font-size: 16px; }
.btn {
  border: 1px solid var(--line-2); border-radius: 13px; padding: 12px 16px; font-weight: 700; font-size: 15px;
  background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm);
}
.btn.primary { background: var(--tomato); border-color: var(--tomato); color: #fff6ee; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.14), var(--shadow-sm); }
.btn.danger { background: transparent; border-color: var(--tomato); color: var(--tomato-2); box-shadow: none; }
.btn.block { width: 100%; }
.btn:disabled { opacity: 0.5; }
.btn:active { transform: scale(0.98); }
.home-hint { padding: 8px 20px 28px; font-size: 13px; color: var(--ink-2); text-align: center; font-family: var(--font-display); font-style: italic; }

/* ---------- Bottom Sheet ---------- */
.backdrop { position: fixed; inset: 0; background: rgba(43, 33, 24, 0.45); z-index: 40; animation: fade 0.15s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.sheet {
  position: fixed; left: 0; right: 0; bottom: var(--kb, 0px); z-index: 41;
  background: var(--card); border-radius: 24px 24px 0 0; border-top: 1px solid var(--line);
  padding: 10px 18px calc(var(--sab) + 18px);
  max-height: 92vh; max-height: 92dvh; overflow-y: auto;
  box-shadow: 0 -6px 30px rgba(43, 33, 24, 0.25);
  animation: up 0.2s ease;
}
@keyframes up { from { transform: translateY(30px); opacity: 0.6; } to { transform: none; opacity: 1; } }
.sheet .grip { width: 42px; height: 4px; border-radius: 2px; background: var(--line-2); margin: 0 auto 14px; }
.sheet h2 { margin: 4px 0 14px; font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.field label { font-size: 11.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--sage); }
.field input, .field select, .field textarea {
  border: 1.5px solid var(--line-2); border-radius: 12px; padding: 11px 12px; background: var(--paper);
  outline: none; width: 100%; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--tomato); box-shadow: 0 0 0 3px var(--tomato-soft); }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }
.iconrow { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.iconrow button {
  width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper);
  font-size: 22px; display: inline-flex; align-items: center; justify-content: center;
}
.iconrow button.sel { border-color: var(--tomato); background: var(--tomato-soft); }
.toggle {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 11px 12px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--paper); font-weight: 600;
}
.toggle::after { content: "aus"; margin-left: auto; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.toggle.on { border-color: var(--mustard); background: var(--mustard-soft); }
.toggle.on::after { content: "an"; color: var(--mustard-ink); }
.sheet .actions { display: flex; gap: 10px; margin-top: 16px; }
.sheet .actions .btn { flex: 1; }
.sheet .subtle { font-size: 13px; color: var(--ink-2); margin: -6px 0 12px; }

.orderlist { display: flex; flex-direction: column; gap: 6px; }
.orderrow { display: flex; align-items: center; gap: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 11px; padding: 7px 10px; }
.orderrow .nm { flex: 1; font-size: 14px; }
.orderrow button { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--card); }
.orderrow button:disabled { opacity: 0.3; }

.sharebox {
  display: flex; gap: 8px; align-items: center; background: var(--paper); border: 1px dashed var(--line-2); border-radius: 12px; padding: 10px 12px;
  font-size: 13px; word-break: break-all; margin-bottom: 12px;
}
.sharebox code { flex: 1; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--sab) + 24px + var(--kb, 0px)); transform: translateX(-50%);
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 14px; font-size: 14px;
  z-index: 60; max-width: 90vw; box-shadow: 0 6px 24px rgba(43, 33, 24, 0.35);
  display: flex; gap: 12px; align-items: center;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .toast { background: #f1e8d8; color: #2b2118; } }
.toast button { background: transparent; border: 0; color: var(--mustard); font-weight: 800; padding: 0; }
.toast[hidden] { display: none; }

/* ---------- Menü ---------- */
.menu {
  position: absolute; right: 14px; top: calc(var(--sat) + 58px); z-index: 30;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 30px rgba(43, 33, 24, 0.25);
  min-width: 236px; overflow: hidden; padding: 6px 0;
}
.menu button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 11px 16px; font-size: 15px; }
.menu button:active { background: var(--paper-2); }
.menu button:disabled { opacity: 0.45; }
.menu button.danger { color: var(--tomato-2); }
.menu hr { border: 0; border-top: 1px dashed var(--line-2); margin: 6px 12px; }

.helptext { font-size: 13px; color: var(--ink-2); margin: 10px 2px 0; font-family: var(--font-display); font-style: italic; line-height: 1.4; }

/* ---------- Schnell-Dialog nach dem Hinzufügen ---------- */
.quick-sheet { padding-top: 8px; }
.quick-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.quick-head .field { margin-bottom: 8px; }
.field.grow { flex: 1; min-width: 0; }
.bigicon {
  flex: none; width: 60px; height: 60px; border-radius: 18px; border: 1.5px dashed var(--line-2); background: var(--paper);
  font-size: 32px; line-height: 1; display: inline-flex; align-items: center; justify-content: center;
  filter: drop-shadow(0 2px 2px rgba(60, 30, 10, 0.12));
}
.bigicon:active { transform: scale(0.95); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip {
  border: 1.5px solid var(--line-2); background: var(--paper); color: var(--ink); border-radius: 999px;
  padding: 6px 11px; font-size: 13px; font-weight: 700;
}
.chip.sel { border-color: var(--tomato); background: var(--tomato-soft); color: var(--tomato-2); }
.linkbtn {
  background: none; border: 0; padding: 4px 2px 10px; color: var(--tomato-2); font-weight: 700; font-size: 14px; text-align: left;
}

@media (min-width: 700px) {
  .content, .lists, .home-actions, .home-hint, .trash, .searchbar, .topbar { max-width: 920px; margin-left: auto; margin-right: auto; }
  .sheet { max-width: 560px; left: 50%; transform: translateX(-50%); border-radius: 24px; bottom: 24px; border: 1px solid var(--line); }
  @keyframes up { from { transform: translate(-50%, 30px); opacity: 0.6; } to { transform: translateX(-50%); opacity: 1; } }
  :root { --tile-min: 124px; }
  .menu { right: calc(50% - 460px + 14px); }
}
@media (max-width: 699px) { .topbar h1 { font-size: 21px; } }
