:root {
  --cream: #FFF6EB;
  --cream-2: #FBE8D4;
  --ink: #3D2914;
  --ink-soft: #6B4F35;
  --muted: #8A6A4E;
  --card: #FFFFFF;
  --line: #F0D9C2;
  --orange: #E85D04;
  --orange-dark: #C44D03;
  --orange-soft: #FFE0C7;
  --ok: #2F9E6B;
  --ok-soft: #E3F6EC;
  --danger: #C0392B;
  --danger-soft: #FDECEC;
  --shadow: 0 8px 24px rgba(91, 48, 12, 0.08);
  --radius: 20px;
  --tap: 52px;
  --costco: #E25C4A;
  --bjs: #D9940F;
  --fresh: #2F9E6B;
  --tashkent: #3C8D8A;
  --traderjoes: #B44A3C;
  --target: #E11D48;
  --anywhere: #7B5EA7;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; background: var(--cream); color: var(--ink); }
body {
  font-family: "Nunito", "Segoe UI", system-ui, sans-serif;
  font-weight: 600;
  min-height: 100dvh;
  line-height: 1.35;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
h1, h2, h3 { margin: 0; font-weight: 800; }

.app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Header */
.topbar {
  background: linear-gradient(180deg, #F16B14 0%, var(--orange) 100%);
  color: #fff;
  padding: calc(14px + var(--safe-top)) 16px 18px;
  box-shadow: 0 6px 18px rgba(232, 93, 4, 0.28);
}
.topbar h1 {
  font-size: 1.22rem;
  letter-spacing: -0.02em;
  text-align: center;
  line-height: 1.25;
}
.topbar .sub {
  margin-top: 4px;
  text-align: center;
  font-size: 0.88rem;
  opacity: 0.92;
  font-weight: 700;
}
.topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.topbar-row h1 { flex: 1; text-align: center; }
.topbar-titles { flex: 1; min-width: 0; text-align: center; }
.topbar-titles h1 { flex: none; }
.login-screen { display: flex; flex-direction: column; justify-content: center; padding-top: 28px; }
.login-screen .pin-wrap { margin-top: 8px; }
.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255,255,255,0.16);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.icon-btn svg { width: 22px; height: 22px; display: block; }
.ghost-space { width: 44px; flex-shrink: 0; }

/* Avatars */
.avatar {
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  flex-shrink: 0;
  letter-spacing: 0;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.12);
}
.avatar.sm { width: 28px; height: 28px; font-size: 0.85rem; }
.avatar.md { width: 36px; height: 36px; font-size: 1rem; }
.avatar.lg { width: 52px; height: 52px; font-size: 1.35rem; }
.avatar.xl { width: 64px; height: 64px; font-size: 1.6rem; }

/* Screens */
.screen { flex: 1; padding: 16px 16px calc(24px + var(--safe-bottom)); }
.hint { color: var(--ink-soft); text-align: center; margin: 4px 0 16px; }

/* Login */
.who-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.person-card {
  background: var(--card);
  border: 2px solid transparent;
  border-radius: 22px;
  padding: 16px 10px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow);
  min-height: 118px;
  color: var(--ink);
}
.person-card .name { font-weight: 800; font-size: 1.02rem; }
.person-card.selected {
  border-color: var(--orange);
  background: #FFF8F1;
  box-shadow: 0 0 0 3px var(--orange-soft), var(--shadow);
}
.pin-wrap { margin-top: 22px; }
.pin-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 8px 0 16px;
}
.pin-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--orange);
  background: transparent;
}
.pin-dot.filled { background: var(--orange); }
.pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 320px;
  margin: 0 auto;
}
.pad button {
  height: var(--tap);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow);
  font-size: 1.4rem;
  font-weight: 800;
}
.pad button:active { transform: scale(0.97); background: var(--orange-soft); }
.pad .pad-action { font-size: 0.95rem; color: var(--ink-soft); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 0 20px;
  border-radius: 16px;
  font-weight: 800;
  width: 100%;
}
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 6px 14px rgba(232, 93, 4, 0.28); }
.btn-primary:active { background: var(--orange-dark); }
.btn-secondary { background: var(--orange-soft); color: var(--orange-dark); }
.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn:disabled { opacity: 0.5; }

.add-bar {
  position: sticky;
  bottom: 0;
  padding: 12px 16px calc(16px + var(--safe-bottom));
  background: linear-gradient(180deg, rgba(255,246,235,0) 0%, var(--cream) 28%);
}
.add-bar .btn { font-size: 1.08rem; }

/* Store sections */
.section { margin: 0 0 18px; }
.section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 2px 10px;
}
.section-mark {
  width: 10px;
  height: 28px;
  border-radius: 8px;
}
.section-head h2 { font-size: 1.12rem; }
.section-head .count {
  margin-left: auto;
  background: var(--cream-2);
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 3px 9px;
}
.store-costco .section-mark { background: var(--costco); }
.store-costco h2 { color: #B83A2C; }
.store-bjs .section-mark { background: var(--bjs); }
.store-bjs h2 { color: #8A5E08; }
.store-superfresh .section-mark { background: var(--fresh); }
.store-superfresh h2 { color: #1D704B; }
.store-tashkent .section-mark { background: var(--tashkent); }
.store-tashkent h2 { color: #266663; }
.store-traderjoes .section-mark { background: var(--traderjoes); }
.store-traderjoes h2 { color: #8C3228; }
.store-target .section-mark { background: var(--target); }
.store-target h2 { color: #B01038; }
.store-anywhere .section-mark { background: var(--anywhere); }
.store-anywhere h2 { color: #5A3D86; }

/* Items */
.item {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px 12px 12px 10px;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 8px 8px;
  align-items: start;
  margin-bottom: 10px;
}
.check {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  align-self: start;
}
.check-box {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  border: 2.5px solid #D7B99A;
  background: #fff;
  display: grid;
  place-items: center;
}
.item.done .check-box {
  background: var(--ok);
  border-color: var(--ok);
  color: #fff;
}
.item-body { min-width: 0; padding-top: 2px; }
.item-title {
  font-weight: 800;
  font-size: 1.05rem;
  word-wrap: break-word;
}
.qty {
  display: inline-block;
  background: var(--orange-soft);
  color: var(--orange-dark);
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 0.85rem;
  font-weight: 800;
  margin-right: 6px;
}
.item-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.82rem;
}
.item-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tiny {
  min-height: 36px;
  padding: 0 10px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--ink-soft);
  background: var(--cream);
}
.tiny.danger { color: var(--danger); background: var(--danger-soft); }
.item.done { opacity: 0.96; }
.item.done .item-title { color: var(--ink-soft); }
.got-by { color: var(--ok); font-weight: 800; }
.store-chip {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 2px 8px;
  color: #fff;
}
.store-chip.costco { background: var(--costco); }
.store-chip.bjs { background: var(--bjs); }
.store-chip.superfresh { background: var(--fresh); }
.store-chip.tashkent { background: var(--tashkent); }
.store-chip.traderjoes { background: var(--traderjoes); }
.store-chip.target { background: var(--target); }
.store-chip.anywhere { background: var(--anywhere); }

/* Completed */
.completed-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #F4EEE6;
  border-radius: 16px;
  padding: 12px 14px;
  min-height: 52px;
  font-weight: 800;
  color: var(--ink-soft);
}
.completed-toggle .chevron { margin-left: auto; transition: transform 0.15s ease; }
.completed-toggle.open .chevron { transform: rotate(180deg); }
.completed-body { margin-top: 10px; }

/* Empty */
.empty {
  text-align: center;
  padding: 36px 16px;
  color: var(--ink-soft);
}
.empty p { margin: 8px 0 0; }

/* Sheets / forms */
.sheet {
  background: var(--card);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -8px 30px rgba(91, 48, 12, 0.12);
  padding: 18px 16px calc(20px + var(--safe-bottom));
  margin: 0 -16px -16px;
}
.sheet h2 { font-size: 1.35rem; margin-bottom: 14px; }
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.field input[type="text"],
.field textarea {
  width: 100%;
  border: 2px solid var(--line);
  background: #FFFCF8;
  border-radius: 16px;
  padding: 14px 14px;
  min-height: var(--tap);
  outline: none;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--orange); }
.stepper {
  display: flex;
  align-items: center;
  gap: 12px;
}
.stepper button {
  width: var(--tap);
  height: var(--tap);
  border-radius: 16px;
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-size: 1.6rem;
  font-weight: 800;
}
.stepper .qty-val {
  min-width: 48px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 800;
}
.store-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.store-pill {
  min-height: 56px;
  border-radius: 16px;
  border: 2px solid transparent;
  background: var(--cream);
  font-weight: 800;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.store-pill .dot { width: 12px; height: 12px; border-radius: 50%; }
.store-pill.selected { background: #fff; box-shadow: var(--shadow); }
.store-pill.costco.selected { border-color: var(--costco); }
.store-pill.bjs.selected { border-color: var(--bjs); }
.store-pill.superfresh.selected { border-color: var(--fresh); }
.store-pill.tashkent.selected { border-color: var(--tashkent); }
.store-pill.traderjoes.selected { border-color: var(--traderjoes); }
.store-pill.target.selected { border-color: var(--target); }
.store-pill.anywhere.selected { border-color: var(--anywhere); }

/* Admin */
.member-row {
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.member-row .who { flex: 1; font-weight: 800; }
.badge {
  font-size: 0.72rem;
  background: var(--orange-soft);
  color: var(--orange-dark);
  border-radius: 999px;
  padding: 2px 8px;
  font-weight: 800;
}
.row-actions { display: flex; flex-direction: column; gap: 6px; }

/* Misc */
.error {
  background: var(--danger-soft);
  color: var(--danger);
  border-radius: 14px;
  padding: 12px 14px;
  margin: 0 0 14px;
  font-weight: 700;
}
.banner {
  background: var(--ok-soft);
  color: #1D704B;
  border-radius: 14px;
  padding: 12px 14px;
  margin: 0 0 14px;
  font-weight: 700;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + var(--safe-bottom));
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: var(--shadow);
  z-index: 40;
  max-width: calc(100% - 32px);
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(61, 41, 20, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 30;
  padding: 16px;
}
.modal {
  background: var(--card);
  width: 100%;
  max-width: 480px;
  border-radius: 24px;
  padding: 20px 16px calc(16px + var(--safe-bottom));
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
}
.modal h2 { margin-bottom: 8px; }
.modal p { color: var(--ink-soft); margin: 0 0 16px; }
.pin-reveal {
  font-size: 2rem;
  letter-spacing: 0.35em;
  text-align: center;
  font-weight: 800;
  background: var(--cream);
  border-radius: 16px;
  padding: 14px;
  margin: 0 0 16px;
}
.stack { display: flex; flex-direction: column; gap: 8px; }
.back-row { margin-bottom: 8px; }
.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
}
@media (min-width: 500px) {
  .modal-backdrop { align-items: center; }
}

/* Store filters */
.filters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px 16px 8px;
  background: var(--cream);
  position: sticky;
  top: 0;
  z-index: 8;
}
.filter-btn {
  min-height: 44px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow);
  font-weight: 800;
  font-size: 0.86rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 8px;
  border: 2px solid transparent;
}
.filter-btn .filter-count {
  background: var(--cream-2);
  color: var(--ink-soft);
  border-radius: 999px;
  min-width: 20px;
  padding: 1px 6px;
  font-size: 0.75rem;
}
.filter-btn.selected { background: #fff; }
.filter-btn.all.selected { border-color: var(--orange); color: var(--orange-dark); }
.filter-btn.costco.selected { border-color: var(--costco); color: #B83A2C; }
.filter-btn.bjs.selected { border-color: var(--bjs); color: #8A5E08; }
.filter-btn.superfresh.selected { border-color: var(--fresh); color: #1D704B; }
.filter-btn.tashkent.selected { border-color: var(--tashkent); color: #266663; }
.filter-btn.traderjoes.selected { border-color: var(--traderjoes); color: #8C3228; }
.filter-btn.target.selected { border-color: var(--target); color: #B01038; }
.filter-btn.anywhere.selected { border-color: var(--anywhere); color: #5A3D86; }
.filter-btn.selected .filter-count { background: var(--orange-soft); color: var(--orange-dark); }

.item-meta { row-gap: 4px; }
.store-chip { margin-right: 2px; }
.anywhere-note {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  color: #5A3D86;
  background: #EFE8F6;
  border-radius: 999px;
  padding: 2px 8px;
}
.field-hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}


/* ===== Laundromats additions ===== */
.app { padding-bottom: 0; }
.screen.has-dock { padding-bottom: calc(150px + var(--safe-bottom)); }
.screen.has-nav { padding-bottom: calc(92px + var(--safe-bottom)); }
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; max-width: 480px; margin: 0 auto; }
.dock .add-bar { position: static; padding: 10px 16px 10px; }
.nav { display: flex; background: #fff; border-top: 1px solid var(--line); padding: 6px 6px calc(8px + var(--safe-bottom)); box-shadow: 0 -6px 18px rgba(91,48,12,0.08); }
.nav button { flex: 1; min-height: 52px; border-radius: 14px; font-weight: 800; font-size: 0.8rem; color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.nav button svg { width: 22px; height: 22px; }
.nav button.active { color: var(--orange-dark); background: var(--orange-soft); }
.nav .badge-dot { background: var(--danger); color: #fff; border-radius: 999px; font-size: 0.7rem; padding: 0 6px; margin-left: 4px; }
.topbar-titles .sub { margin-top: 2px; }
.avatar-btn { background: transparent; padding: 0; width: 44px; height: 44px; display: grid; place-items: center; flex-shrink: 0; }

.summary { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; margin-bottom: 16px; }
.sum-card { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 10px 6px 10px; text-align: center; border-bottom: 5px solid var(--c, var(--orange)); min-width: 0; }
.sum-card .n { font-size: 1.9rem; font-weight: 800; line-height: 1.05; color: var(--danger); }
.sum-card .n.zero { color: var(--ok); }
.sum-card .nm { font-size: 0.78rem; font-weight: 800; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sum-card .lbl { font-size: 0.7rem; color: var(--muted); }
.section-mark { background: var(--c, var(--orange)); }
.section-head h2 { color: var(--ink); }
.section-head .count.red { background: var(--danger-soft); color: var(--danger); }
.section-head .count.green { background: var(--ok-soft); color: #1D704B; }
.allgood { background: var(--ok-soft); color: #1D704B; border-radius: 16px; padding: 12px 14px; font-weight: 800; margin-bottom: 10px; }

.mcard { display: grid; grid-template-columns: 56px 1fr; gap: 10px; align-items: start; width: 100%; text-align: left; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; margin-bottom: 10px; border-left: 6px solid var(--danger); }
.mcard.waiting { border-left-color: var(--bjs); }
.mnum { height: 48px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; background: var(--danger-soft); color: var(--danger); }
.mcard.waiting .mnum { background: #FFF1CC; color: #8A5E08; }
.mcard .t { font-weight: 800; font-size: 1.02rem; word-wrap: break-word; }
.mcard .t.dim { color: var(--muted); font-weight: 700; }
.mcard .meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 6px; color: var(--muted); font-size: 0.82rem; }
.chip { display: inline-block; border-radius: 999px; padding: 2px 9px; font-size: 0.78rem; font-weight: 800; background: var(--cream-2); color: var(--ink-soft); }
.chip.red { background: var(--danger-soft); color: var(--danger); }
.chip.amber { background: #FFF1CC; color: #8A5E08; }
.chip.green { background: var(--ok-soft); color: #1D704B; }
.chip.blue { background: #E0EEF8; color: #25607F; }

.store-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; margin-bottom: 14px; }
.store-tabs button { min-height: 52px; border-radius: 16px; background: var(--cream-2); font-weight: 800; border: 2px solid transparent; padding: 0 6px; font-size: 0.88rem; }
.store-tabs button.selected { background: #fff; border-color: var(--orange); box-shadow: var(--shadow); }
.legend { display: flex; gap: 10px; flex-wrap: wrap; font-size: 0.78rem; color: var(--muted); margin: 0 2px 12px; font-weight: 800; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 4px; vertical-align: -1px; }
.grid-title { font-weight: 800; color: var(--ink-soft); margin: 14px 2px 8px; font-size: 0.92rem; }
.mgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.gcell { min-height: 54px; border-radius: 14px; font-weight: 800; font-size: 1.02rem; background: var(--ok-soft); color: #1D704B; border: 2px solid #BFE5D0; }
.gcell.out { background: var(--danger-soft); color: var(--danger); border-color: #F2B8B3; }
.gcell.waiting { background: #FFF1CC; color: #8A5E08; border-color: #F0D58A; }
.gcell:active { transform: scale(0.96); }

.picks { display: flex; flex-direction: column; gap: 8px; }
.pick { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 8px 12px; border-radius: 16px; background: #FFFCF8; border: 2px solid var(--line); text-align: left; font-weight: 800; }
.pick .box { width: 26px; height: 26px; border-radius: 8px; border: 2.5px solid #D7B99A; background: #fff; display: grid; place-items: center; flex-shrink: 0; color: #fff; }
.pick.on { border-color: var(--orange); background: #FFF8F1; }
.pick.on .box { background: var(--orange); border-color: var(--orange); }
.flat-sheet { background: var(--card); border-radius: 24px; box-shadow: var(--shadow); padding: 16px; }
.flat-sheet h2 { font-size: 1.25rem; margin-bottom: 12px; }
.field select, .field input[type="number"], .field input[type="date"], .field input[type="password"] { width: 100%; border: 2px solid var(--line); background: #FFFCF8; border-radius: 16px; padding: 14px; min-height: var(--tap); outline: none; }
.field select:focus, .field input:focus { border-color: var(--orange); }
.photo-row { display: flex; align-items: center; gap: 10px; }
.photo-row img { width: 72px; height: 72px; object-fit: cover; border-radius: 14px; }
.btn.sm { min-height: 44px; width: auto; padding: 0 14px; font-size: 0.9rem; }
.btn-ok { background: var(--ok); color: #fff; box-shadow: 0 6px 14px rgba(47,158,107,0.28); }
.stack { display: flex; flex-direction: column; gap: 10px; }
.row2 { display: flex; gap: 10px; }
.row2 > * { flex: 1; }

.mhead { background: var(--card); border-radius: 22px; box-shadow: var(--shadow); padding: 14px; margin-bottom: 14px; }
.mhead .big { font-size: 1.15rem; font-weight: 800; }
.mhead .details { color: var(--ink-soft); font-size: 0.9rem; margin-top: 8px; display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; }
.mhead .details b { color: var(--muted); font-weight: 800; }
.mhead .details .blank { color: #B9A38E; }
.tl { margin-top: 18px; }
.tl h3 { margin: 0 2px 10px; font-size: 1.05rem; }
.ev { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 12px; margin-bottom: 10px; border-left: 5px solid var(--line); }
.ev.report { border-left-color: var(--danger); }
.ev.fixed { border-left-color: var(--ok); }
.ev.tech { border-left-color: #3A7CA5; }
.ev.status { border-left-color: var(--bjs); }
.ev.comment { border-left-color: var(--orange); }
.ev-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.ev-head .who { font-weight: 800; }
.ev-head .when { margin-left: auto; color: var(--muted); font-size: 0.78rem; text-align: right; }
.ev-kind { font-size: 0.78rem; font-weight: 800; color: var(--ink-soft); margin-bottom: 4px; }
.ev p { margin: 4px 0; white-space: pre-wrap; word-wrap: break-word; }
.ev .lab { font-weight: 800; color: var(--muted); font-size: 0.8rem; }
.ev img.shot { width: 100%; max-height: 260px; object-fit: cover; border-radius: 14px; margin-top: 8px; display: block; }
.ev .chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; }
.ev .del { margin-top: 6px; color: var(--danger); font-size: 0.8rem; font-weight: 800; min-height: 32px; }
.composer { margin: 14px 0 0; }
.composer textarea { width: 100%; min-height: 76px; border: 2px solid var(--line); background: #FFFCF8; border-radius: 16px; padding: 12px; outline: none; }
.composer textarea:focus { border-color: var(--orange); }
.listrow { background: var(--card); border-radius: 16px; box-shadow: var(--shadow); padding: 12px; display: flex; align-items: center; gap: 10px; margin-bottom: 10px; width: 100%; text-align: left; }
.listrow .grow { flex: 1; min-width: 0; font-weight: 800; }
.listrow .sub { display: block; font-weight: 600; color: var(--muted); font-size: 0.82rem; }
.menu-card { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 16px; margin-bottom: 10px; font-weight: 800; font-size: 1.05rem; min-height: 64px; }
.menu-card .sub { display: block; font-weight: 600; color: var(--muted); font-size: 0.82rem; }
.menu-card .chev { margin-left: auto; color: var(--muted); }
.bill { border-left: 6px solid var(--line); }
.bill.overdue { border-left-color: var(--danger); }
.bill.paid { opacity: 0.65; border-left-color: var(--ok); }
.amt { font-weight: 800; font-size: 1.05rem; white-space: nowrap; }
.modal { max-height: 90dvh; overflow-y: auto; }
.modal h2 { margin-bottom: 12px; font-size: 1.25rem; }
.big-pin { font-size: 2.4rem; letter-spacing: 0.3em; text-align: center; font-weight: 800; margin: 10px 0; color: var(--orange-dark); }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.88); z-index: 50; display: grid; place-items: center; padding: 12px; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; }
.hidden-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
