:root {
  --bg: #F3EEE4;
  --card: #FFFcf6;
  --ink: #241F18;
  --muted: #6E675C;
  --line: #E2D9C9;
  --navy: #1B4D6E;
  --navy-2: #E7F0F6;
  --red: #9B1C1C;
  --red-bg: #F8E4E2;
  --ok: #2F6B2F;
  --ok-bg: #E6F0E4;
  --warn: #8A5408;
  --warn-bg: #F7E9CF;
  --nav-h: calc(64px + env(safe-area-inset-bottom, 0px));
  --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: Vazirmatn, Tahoma, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font-family: inherit; font-size: 16px; }
button { cursor: pointer; }
img { max-width: 100%; }
.toast {
  position: fixed; top: 12px; left: 12px; right: 12px; z-index: 80;
  background: #2A261F; color: #fff; padding: 12px 16px; border-radius: 12px;
  text-align: center; font-size: 14px;
}
.screen { min-height: 100dvh; padding-bottom: var(--nav-h); }
.screen-archive { padding-bottom: var(--nav-h); }
.nav.nav-archive { justify-content: space-around; }
.nav.nav-archive > button { flex: 1 1 0; max-width: 160px; }
.site-foot {
  max-width: 560px; margin: 8px auto 0; padding: 16px 14px 8px;
  text-align: center; font-size: 11px; line-height: 1.7; color: #8A8680;
}
.screen .site-foot { margin-bottom: 8px; }
.site-foot a {
  color: var(--navy); text-decoration: none; font-weight: 700;
}
.site-foot a:hover { text-decoration: underline; }
.privacy-purge { border-color: color-mix(in srgb, var(--red, #B54A4A) 35%, var(--line)); }
.privacy-purge .btn.danger { width: 100%; margin-top: 8px; }
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, white);
  backdrop-filter: blur(10px);
  padding: 8px 14px 8px;
  border-bottom: 1px solid var(--line);
  overflow: visible;
}
.top-home-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
}
.top-home-row > div { min-width: 0; flex: 1; }
.top-home-row .top-avatar { margin-inline-start: 0; flex-shrink: 0; }
.dt-pair .dt-sep { opacity: 0.55; }
.compact-top h1 {
  margin: 0; font-size: 16px; font-weight: 800;
  cursor: help;
}
.top-title-row {
  display: flex; align-items: center; gap: 8px;
  margin-top: 4px; min-width: 0;
}
.top-title-row .page-title {
  flex: 0 0 auto; margin: 0; font-size: 16px; font-weight: 800;
}
.top-title-row .page-title > span { flex: 0 1 auto; white-space: nowrap; }
.top-title-row .search {
  flex: 1; min-width: 0; margin-top: 0; padding: 6px 10px;
}
.compact-top .search { margin-top: 0; }
.top h1 { margin: 0; font-size: 18px; font-weight: 800; }
.top .sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
.search {
  display: flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 8px 12px; margin-top: 10px;
}
.search input {
  border: 0; outline: 0; background: transparent; flex: 1; min-width: 0; color: inherit;
}
.chips,
.chips-row {
  display: flex; flex-direction: row; direction: rtl; align-items: center; justify-content: flex-start;
  gap: 8px; width: 100%; max-width: none; margin: 0;
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; flex-wrap: nowrap;
  padding: 6px 14px 4px; scroll-padding-inline: 14px;
}
.filters-bar {
  width: 100%;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 92%, white);
  padding: 8px 14px 10px;
  position: relative;
  z-index: 25;
  overflow: visible;
}
.filters-bar .chips-row { padding-top: 8px; padding-bottom: 0; }
.filters-bar .chips { padding: 6px 0 8px; }
.chips::-webkit-scrollbar,
.chips-row::-webkit-scrollbar { display: none; }
.chips > *,
.chips-row > * { flex: 0 0 auto; }
.room-add-btn {
  flex: 0 0 auto; border: 0; background: #B4532A; color: #fff;
  border-radius: 8px; padding: 9px 14px; font-size: 14px; font-weight: 800;
  box-shadow: 0 2px 0 rgba(90,32,12,.25);
  line-height: 1.2; min-height: 38px;
}
.room-add-btn.block { width: 100%; margin-top: 8px; }
.chip {
  flex: 0 0 auto; border: 1px solid var(--line); background: var(--card);
  color: var(--muted); border-radius: 999px; padding: 6px 12px; font-size: 13px;
  display: inline-flex; align-items: center; gap: 6px;
}
.chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip.dim { opacity: .45; }
.chip-add {
  background: var(--ok-bg); color: var(--ok); border-color: var(--ok);
  font-weight: 800;
}
.chip-add:not(.on) { background: var(--ok-bg); color: var(--ok); border-color: var(--ok); }
.chip-add-btn { border-color: var(--ok) !important; color: var(--ok) !important; }
.wrap { padding: 12px 14px 20px; max-width: 560px; margin: 0 auto; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.print-list-btn {
  width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  border: 1px solid var(--line); background: var(--card); color: var(--navy);
  border-radius: var(--radius); padding: 10px 12px; margin: 0 0 12px;
  text-align: right; font-weight: 800;
}
.print-list-btn small { color: var(--muted); font-size: 12px; font-weight: 500; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px;
}
.stat b { display: block; font-size: 20px; font-weight: 800; }
.stat span { font-size: 11px; color: var(--muted); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px; margin-bottom: 10px;
}
.box {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px; margin-bottom: 10px;
  border-right: 5px solid var(--line);
}
.box:active { transform: scale(.99); }
.num {
  width: 48px; height: 48px; border-radius: 12px; flex: 0 0 auto;
  display: grid; place-items: center; font-weight: 800; font-size: 16px;
  background: #EEE8DA; color: var(--ink);
}
.box .meta { flex: 1; min-width: 0; }
.box .meta strong {
  display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.box .meta small { color: var(--muted); font-size: 12px; }
.pill { font-size: 11px; padding: 4px 8px; border-radius: 999px; flex: 0 0 auto; white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--red-bg); color: var(--red); }
.pill.navy { background: var(--navy-2); color: var(--navy); }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.empty b { display: block; color: var(--ink); margin-bottom: 6px; }
.fab {
  position: fixed; left: 18px; bottom: calc(var(--nav-h) + 12px); z-index: 25;
  width: 58px; height: 58px; border-radius: 50%; border: 0;
  background: var(--navy); color: #fff; font-size: 30px; line-height: 1;
  box-shadow: 0 8px 20px rgba(27,77,110,.35);
}
.nav {
  position: fixed; right: 0; left: 0; bottom: 0; z-index: 30;
  height: var(--nav-h); padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--card); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.nav.nav-5 { grid-template-columns: repeat(5, 1fr); }
.nav.nav-6 { grid-template-columns: repeat(6, 1fr); }
.nav.nav-7 { grid-template-columns: none; }
.nav.nav-8 { grid-template-columns: none; }
.nav.nav-3 { justify-content: space-around; }
.nav.nav-flow {
  display: flex; align-items: stretch; justify-content: space-between;
  gap: 0; padding-inline: 2px;
  grid-template-columns: none;
}
.nav.nav-flow > button {
  flex: 1 1 0; min-width: 0; position: relative;
}
.nav.nav-7 button .nav-lbl { font-size: 9px; }
.nav-arrow {
  flex: 0 0 auto; align-self: center;
  width: 12px; margin-top: -10px;
  font-size: 14px; line-height: 1; font-weight: 800;
  text-align: center; pointer-events: none;
  color: #C4CCD3;
  transition: color .15s ease, transform .15s ease, opacity .15s ease;
}
.nav-arrow.is-todo { color: #D0D6DB; opacity: .7; }
.nav-arrow.is-done { color: var(--ok); opacity: 1; }
.nav-arrow.is-now {
  color: var(--navy); opacity: 1;
  transform: scale(1.25);
  text-shadow: 0 0 0.5px var(--navy);
}
.nav button {
  border: 0; background: transparent; color: var(--muted); font-size: 10px; padding: 8px 2px 6px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
}
.nav button.on { color: var(--navy); font-weight: 700; }
.nav button.stage-done { color: #4A7A56; }
.nav button.stage-done.on { color: var(--navy); }
.nav button .nav-ico { display: flex; align-items: center; justify-content: center; flex: 0 0 22px; width: 100%; line-height: 0; font-size: 18px; }
.nav button .nav-lbl { display: block; font-size: 10px; line-height: 1.2; }
.nav-ico img, .nav-ico svg, .nav-svg {
  display: block; height: 22px; width: 22px; object-fit: contain;
}
.nav-svg-flip { transform: scaleX(-1); }
.auth {
  min-height: 100dvh; display: flex; flex-direction: column; justify-content: center;
  padding: 28px 20px; max-width: 420px; margin: 0 auto;
}
.auth-landing {
  min-height: 100dvh; max-width: 480px; margin: 0 auto;
  padding: 12px 18px 36px;
}
.auth-top {
  position: sticky; top: 0; z-index: 5;
  background: var(--bg, #F4F1EA);
  padding: 8px 0 14px;
  margin: 0 -2px;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 16px rgba(40, 30, 10, .06);
}
.auth-brand-row {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.auth-brand-row img { flex: 0 0 52px; width: 52px; height: 52px; }
.auth-brand-row h1 { margin: 0; font-size: 22px; line-height: 1.2; }
.auth-tagline { margin: 4px 0 0; font-size: 13px; color: var(--ok); font-weight: 600; line-height: 1.55; }
.auth-login-card {
  background: var(--card, #fff); border: 1px solid var(--line);
  border-radius: 16px; padding: 14px 16px 6px;
  box-shadow: 0 4px 14px rgba(40, 30, 10, .05);
}
.auth-login-card h2 { margin: 0 0 10px; font-size: 16px; }
.auth-login-card .btn { margin-top: 10px; }
.auth-login-card .btn.ghost { margin-top: 8px; }
.auth-note {
  font-size: 12px; color: var(--navy); background: var(--navy-2, #e8f1f6);
  border-radius: 10px; padding: 8px 10px; margin: 0 0 10px; line-height: 1.5;
}
.auth-intro { padding-top: 20px; }
.auth-intro h2 { margin: 0 0 6px; font-size: 17px; }
.auth-intro > .muted { margin: 0 0 14px; font-size: 13px; line-height: 1.6; }
.auth-bullets {
  margin: 16px 0 0; padding: 0 18px 0 0; font-size: 13px; color: var(--muted); line-height: 1.65;
}
.auth-bullets li { margin-bottom: 8px; }
.auth-bullets strong { color: var(--ink); font-weight: 700; }
.flow-chart-compact .flow-step { padding: 10px 12px; }
.flow-chart-compact .flow-body strong { font-size: 14px; }
.flow-chart-compact .flow-body p { font-size: 12px; margin-top: 3px; line-height: 1.5; }
.flow-chart-compact .flow-n { flex: 0 0 26px; height: 26px; font-size: 12px; }
.flow-chart-compact .flow-arrow { padding: 2px 0; font-size: 16px; }
.brand { text-align: center; margin-bottom: 28px; }
.brand img { width: 72px; height: 72px; }
.brand h1 { margin: 12px 0 4px; font-size: 26px; }
.brand p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.lbl { display: block; font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.field {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--card); color: inherit;
}
.btn {
  width: 100%; border: 0; border-radius: 12px; padding: 13px 14px;
  background: var(--navy); color: #fff; font-weight: 700; margin-top: 12px;
}
.btn.ghost { background: transparent; color: var(--navy); border: 1px solid var(--line); }
.btn.danger { background: var(--red); }
.btn.ok { background: var(--ok); }
.btn.sm { width: auto; padding: 8px 12px; font-size: 13px; margin: 0; }
.hint { font-size: 12px; color: var(--muted); margin-top: 8px; }
.sheet-bg {
  position: fixed; inset: 0; background: rgba(30,24,16,.45); z-index: 50;
  display: flex; align-items: flex-end; justify-content: center;
}
.sheet {
  background: var(--card); width: 100%; max-width: 560px;
  border-radius: 18px 18px 0 0; padding: 16px 16px 28px;
  max-height: 92dvh; overflow: auto;
}
.sheet h2 { margin: 0 0 14px; font-size: 17px; display: flex; justify-content: space-between; align-items: center; }
.sheet h2 button { border: 0; background: none; font-size: 22px; color: var(--muted); }
.row { display: flex; gap: 8px; }
.row > * { flex: 1; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.item-row { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; }
.item-row input[type=number] { width: 58px; text-align: center; }
.item-row select { width: 92px; }
.item-row .x { border: 0; background: none; color: var(--red); font-size: 20px; width: 28px; }
.add-line {
  width: 100%; border: 1px dashed var(--line); background: transparent;
  color: var(--navy); border-radius: 10px; padding: 10px; margin: 4px 0 12px;
}
.types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.type {
  border: 1px solid var(--line); background: var(--bg); border-radius: 12px;
  padding: 10px 6px; font-size: 12px; text-align: center;
}
.type.on { border-color: var(--navy); background: var(--navy-2); color: var(--navy); font-weight: 700; }
.sticker { text-align: center; padding: 24px 8px; }
.sticker .giant { font-size: 92px; font-weight: 800; line-height: 1; }
.sticker p { color: var(--muted); }
.media-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.media-row img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.media-row audio { width: 160px; height: 36px; }
.truck {
  background: var(--card); border: 2px dashed var(--line); border-radius: var(--radius);
  padding: 12px; margin-bottom: 12px; min-height: 70px;
}
.truck.on { border-color: var(--navy); background: var(--navy-2); }
.truck h3 { margin: 0 0 8px; font-size: 14px; display: flex; justify-content: space-between; gap: 8px; }
.truck .box { margin-bottom: 8px; }
.pool { margin-bottom: 12px; }
.check-row {
  display: flex; align-items: center; gap: 10px; padding: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px;
}
.check-row .tick {
  width: 32px; height: 32px; border-radius: 8px; border: 2px solid var(--line);
  display: grid; place-items: center; flex: 0 0 auto; font-weight: 800;
}
.check-row.done .tick { background: var(--ok); border-color: var(--ok); color: #fff; }
.bar { height: 10px; background: #E7E1D4; border-radius: 99px; overflow: hidden; margin: 6px 0 14px; }
.bar i { display: block; height: 100%; background: var(--navy); }
.empty-line { color: var(--muted); font-size: 13px; padding: 8px 0; }
.icon-btns { display: flex; gap: 6px; }
.icon-btns button.wide, .icon-btns button[data-act="off-truck"] {
  width: auto; padding: 0 8px; font-size: 11px; font-weight: 700;
}
.lock-note {
  background: var(--warn-bg); color: var(--warn);
  border: 1px solid color-mix(in srgb, var(--warn) 25%, var(--line));
  border-radius: 12px; padding: 10px 12px; margin: 0 0 10px;
  font-size: 13px; line-height: 1.6; font-weight: 700;
}
.lock-note .btn { margin-top: 8px; }
.item-card.locked { opacity: .92; }
.item-card.locked .tag-check, .item-card.locked .priv { pointer-events: none; }
.login-otp { letter-spacing: 8px; text-align: center; font-size: 22px; font-weight: 700; }
.auth-links {
  display: flex; gap: 16px; justify-content: center; margin: 14px 0 6px; flex-wrap: wrap;
}
.auth-links .linkish {
  background: none; border: 0; color: var(--navy, #1B4D6E); font: inherit; font-weight: 700;
  cursor: pointer; text-decoration: underline; padding: 0;
}
.auth-login-card .hint { margin-top: 10px; font-size: 13px; line-height: 1.6; color: #667; }
.auth-test-otp {
  margin: 0 0 12px; padding: 10px 12px;
  font-size: 13px; line-height: 1.6;
  color: #7A4F00; background: #FFF8E6;
  border: 1px solid #E8C96A; border-radius: 10px;
}
.auth-test-otp strong { font-size: 20px; letter-spacing: 4px; color: #5C3D00; }
.auth-help { margin-top: 14px; }
.auth-help > .btn.sm { width: 100%; }
.auth-help-box {
  margin-top: 10px; padding: 12px; border-radius: 12px;
  background: #f4f8fb; border: 1px solid #d9e3ea;
}
.auth-help-box .muted { margin: 0 0 10px; font-size: 12px; line-height: 1.65; }
.auth-help-done {
  margin-top: 10px; padding: 10px; border-radius: 10px;
  background: #E8F5E9; border: 1px solid #C8E6C9; font-size: 13px;
}
.auth-help-done p { margin: 0 0 6px; }
.auth-help-sms {
  font-family: ui-monospace, monospace; font-size: 14px; font-weight: 700;
  letter-spacing: .5px; color: #163a54; margin: 0 !important;
}
.auth-help-code {
  font-size: 28px; font-weight: 800; letter-spacing: 6px; text-align: center;
  margin: 12px 0; color: #163a54;
}
.list-link {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 4px; border-bottom: 1px solid var(--line);
}
.muted { color: var(--muted); font-size: 13px; }
.star { color: #C9A227; }
.range { width: 100%; accent-color: var(--red); }
.cond { display: flex; gap: 6px; margin-top: 8px; }
.cond button {
  flex: 1; border: 1px solid var(--line); background: var(--bg);
  border-radius: 10px; padding: 8px; font-size: 12px;
}
.cond button.on.ok { background: var(--ok-bg); border-color: var(--ok); color: var(--ok); }
.cond button.on.bad { background: var(--red-bg); border-color: var(--red); color: var(--red); }
.cond button.on.warn { background: var(--warn-bg); border-color: var(--warn); color: var(--warn); }
.deliver-cond-pick { flex-wrap: wrap; }
.deliver-cond-pick button { margin-top: 0; }
.dest-deliver-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; margin-top: 6px; }
.deliver-note-read {
  display: block; font-size: 12px; color: var(--muted); line-height: 1.55;
  background: var(--bg); border-radius: 8px; padding: 6px 10px; flex: 1 1 100%;
}
.check-row.dest-readonly { cursor: pointer; }
.check-row.dest-readonly .cond { display: none; }
.move-card h3 { margin: 0 0 4px; }
.move-card-done { opacity: 0.96; border-style: dashed; }
.archive-head { background: transparent; box-shadow: none; border: none; padding: 8px 4px 0; }
.archive-head h3 { margin: 8px 0 4px; font-size: 15px; color: var(--muted); }
.archive-banner {
  margin: 0; padding: 10px 14px; font-size: 13px; line-height: 1.5;
  background: #E8F0F5; color: var(--navy); border-bottom: 1px solid var(--line);
  text-align: center;
}
.search-priority { border-color: var(--navy); box-shadow: 0 0 0 1px rgba(27, 77, 110, 0.12); }

.stage-rail {
  margin: 0 0 8px; padding: 8px 10px 10px;
  background: linear-gradient(180deg, #F7FBFD 0%, #EEF5F9 100%);
  border: 1px solid var(--line); border-radius: 12px;
}
.stage-now {
  font-size: 12px; color: var(--navy); font-weight: 700;
  margin-bottom: 8px; line-height: 1.4;
}
.stage-tip {
  margin: 0 0 8px; padding: 8px 10px;
  font-size: 12px; line-height: 1.65; color: #3A5566;
  background: #F3F8FB; border: 1px dashed #C5D6E2; border-radius: 10px;
}
.cheers-search-hint {
  color: #9B1C1C !important;
  background: #FFF5F5;
  border: 1px solid #E8A8A8;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.7;
  font-weight: 600;
}
.stage-steps {
  display: flex; align-items: center; gap: 0;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; padding-bottom: 2px;
}
.stage-steps::-webkit-scrollbar { display: none; }
.stage-step {
  flex: 1 1 0; min-width: 52px; max-width: 72px;
  border: 0; background: transparent; padding: 2px 2px 0;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  cursor: pointer; color: var(--muted); font-family: inherit;
}
.stage-mark {
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 800;
  border: 1.5px solid var(--line); background: var(--card); color: var(--muted);
}
.stage-lbl { font-size: 9px; line-height: 1.2; white-space: nowrap; }
.stage-line {
  flex: 0 0 8px; height: 2px; background: var(--line);
  margin: 0 1px 14px; border-radius: 2px;
}
.stage-step.is-done { color: var(--ok); }
.stage-step.is-done .stage-mark {
  background: var(--ok); border-color: var(--ok); color: #fff;
}
.stage-step.is-done + .stage-line,
.stage-step.is-now + .stage-line { background: color-mix(in srgb, var(--navy) 45%, var(--line)); }
.stage-step.is-now { color: var(--navy); font-weight: 700; }
.stage-step.is-now .stage-mark {
  background: var(--navy); border-color: var(--navy); color: #fff;
  box-shadow: 0 0 0 3px rgba(27, 77, 110, 0.18);
}
.stage-step.is-todo .stage-mark { opacity: 0.75; }
.nav button.stage-here:not(.on) { color: var(--navy); }
.nav button.stage-here:not(.on)::after {
  content: ''; display: block; width: 5px; height: 5px; border-radius: 50%;
  background: var(--navy); margin: 2px auto 0;
}
.flow-step.is-now {
  border-color: var(--navy);
  background: var(--navy-2);
  box-shadow: 0 0 0 1px rgba(27, 77, 110, 0.12);
}
.flow-step.is-done .flow-n { background: var(--ok); }
.flow-now-tag {
  display: inline-block; margin-right: 6px; font-size: 11px; font-weight: 800;
  color: #fff; background: var(--navy); border-radius: 999px; padding: 2px 8px;
  vertical-align: middle;
}
.mb { margin-bottom: 12px; }
.mt { margin-top: 12px; }
.hidden { display: none !important; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.prog-label { display: flex; justify-content: space-between; font-size: 13px; }
.danger-text { color: var(--red) !important; }
.room-pick {
  position: relative;
  margin: 0 0 4px;
}
.room-pick-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 6px;
}
.room-pick-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.room-select {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: #fff;
  color: var(--ink);
  direction: rtl;
  text-align: right;
  appearance: auto;
  -webkit-appearance: menulist;
  cursor: pointer;
}
.room-select.is-filtered {
  border-color: var(--red);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--red) 35%, transparent);
  background: #FFF8F8;
}
.room-del-x {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: #FCEBEB;
  color: var(--red);
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  line-height: 1;
}
.box-filters {
  display: grid;
  gap: 10px;
  align-items: end;
}
.box-filters-room,
.box-filters-traits { min-width: 0; }
.box-filters-clear {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  justify-self: start;
}
.filters-clear-btn {
  width: 36px; height: 36px; margin: 0; padding: 0;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); color: var(--muted);
  font-size: 20px; font-weight: 800; line-height: 1; cursor: pointer;
}
.filters-clear-btn.is-on {
  background: #FCEBEB; border-color: #E8A8A8; color: var(--red);
}
.filters-clear-btn:disabled {
  opacity: .35; cursor: default; pointer-events: none;
}
.filters-clear-lab {
  font-size: 10px; color: var(--muted); font-weight: 700; white-space: nowrap;
}
.trait-pick { position: relative; }
.trait-pick-btn {
  width: 100%; margin: 0; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink); font-weight: 700; font-size: 13px;
  padding: 10px 28px 10px 12px; text-align: right; line-height: 1.35;
  position: relative; cursor: pointer;
}
.trait-pick-btn::after {
  content: ''; position: absolute; left: 12px; top: 50%;
  width: 0; height: 0; margin-top: -3px;
  border-left: 5px solid transparent; border-right: 5px solid transparent;
  border-top: 6px solid var(--muted);
}
.trait-pick.open .trait-pick-btn { border-color: var(--navy); }
.trait-pick.is-filtered .trait-pick-btn {
  border-color: var(--red);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--red) 35%, transparent);
  background: #FFF8F8;
}
.trait-pick-menu {
  position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 4px);
  max-height: 260px; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0,0,0,.14); padding: 4px;
}
.trait-pick-opt {
  display: flex; align-items: center; gap: 8px; width: 100%; margin: 0;
  border: 0; background: transparent; color: var(--ink);
  text-align: right; padding: 10px 8px; border-radius: 8px;
  font-weight: 600; font-size: 13px; cursor: pointer;
}
.trait-pick-opt.on { background: var(--navy-2); color: var(--navy); }
.trait-pick-opt:hover, .trait-pick-opt:active { background: var(--bg); }
.trait-pick-check {
  flex: 0 0 18px; width: 18px; text-align: center; font-weight: 800; color: var(--ok);
}
.trait-pick-ico { flex: 0 0 auto; display: inline-flex; }
.trait-pick-ico .mark-svg, .trait-pick-ico svg { width: 18px; height: 18px; }
@media (min-width: 640px) {
  .box-filters {
    grid-template-columns: minmax(180px, 1.15fr) minmax(160px, 1fr) auto;
  }
  /* RTL: col1=right=room, col2=traits, col3=left=clear */
}
@media (max-width: 639px) {
  .box-filters {
    grid-template-columns: 1fr auto;
  }
  .box-filters-room { grid-column: 1 / -1; }
  .box-filters-traits { grid-column: 1; }
  .box-filters-clear {
    grid-column: 2;
    align-self: end;
    padding-bottom: 0;
  }
  .filters-clear-lab { display: none; }
}
.save-progress {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 12px 0;
  padding: 12px;
  background: #F5F1E8;
  border-radius: 12px;
}
.save-progress.hidden { display: none; }
.save-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #D8D0C0;
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: ak-spin .8s linear infinite;
}
@keyframes ak-spin { to { transform: rotate(360deg); } }
.save-progress-text { font-size: 14px; font-weight: 700; }
.btn.is-busy, .btn:disabled { opacity: .65; pointer-events: none; }
.danger-zone h3 {
  margin: 0 0 6px;
  font-size: 15px;
  color: var(--red);
}
.danger-zone .btn.danger { margin-top: 8px; width: 100%; }
.wipe-list {
  margin: 10px 0 14px;
  padding-right: 18px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink);
}
.admin-link { display: block; text-align: center; margin: 12px 0; color: var(--navy); font-weight: 700; }
.box.stacked {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
.box-main { display: flex; align-items: center; gap: 10px; }
.box-state {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 8px;
  display: grid; place-items: center;
}
.box-state svg { width: 22px; height: 22px; display: block; }
.box-marks { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.box-state.is-sealed { color: #2F6B2F; background: #E6F0E4; }
.box-state.is-open { color: #8A5408; background: #F7E9CF; }
.box-state.is-truck { color: #8A5408; background: #F7E9CF; }
.box-not-ready {
  background: #FBF3E4; border-color: #E8C98A;
  border-right-color: #C9892A !important;
}
.box-ready-load {
  background: #F3F8F1; border-color: #C5D9C2;
}
.box-unseal-btn {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  min-height: 36px; padding: 6px 10px;
  border: 1.5px solid #C9892A; border-radius: 10px;
  background: #FFF6E8; color: #8A5408;
  font-size: 12px; font-weight: 800; line-height: 1.2;
  box-shadow: 0 1px 0 rgba(138, 84, 8, .15);
  cursor: pointer;
}
.box-unseal-btn:hover, .box-unseal-btn:focus-visible {
  background: #FFE9C8; border-color: #A86F1E;
}
.box-unseal-btn:active { transform: translateY(1px); }
.box-seal-btn {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  min-height: 36px; padding: 6px 10px;
  border: 1.5px solid #5A8F4A; border-radius: 10px;
  background: #EAF4E3; color: #2F6B2F;
  font-size: 12px; font-weight: 800; line-height: 1.2;
  box-shadow: 0 1px 0 rgba(47, 107, 47, .15);
  cursor: pointer;
}
.box-seal-btn:hover, .box-seal-btn:focus-visible {
  background: #D8EDCF; border-color: #3F7A38;
}
.box-seal-btn:active { transform: translateY(1px); }
.box-unseal-ico { font-size: 16px; line-height: 1; }
.box-unseal-lab { white-space: nowrap; }
.truck-assign {
  width: 100%; margin: 0; font-size: 13px; font-weight: 700;
  color: var(--navy); background: var(--navy-2);
  border-color: color-mix(in srgb, var(--navy) 30%, var(--line));
  padding: 9px 12px;
}
.pool-left {
  background: #FBF3E4; border: 1px dashed #E8C98A;
  border-radius: 14px; padding: 10px; margin-bottom: 12px;
}
.donate-box {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px; margin: 12px 0; text-align: right;
}
.donate-box h3 { margin: 0 0 6px; font-size: 15px; }
.donate-box .btn { margin-top: 8px; }
.cheers-donate-msg { color: var(--ok) !important; font-weight: 600; }
.donate-pay-btn {
  display: block; text-align: center; text-decoration: none;
  color: #fff !important;
}
.donate-pay-btn.btn.ghost { color: var(--navy) !important; }
.donate-soft {
  border: 1px solid color-mix(in srgb, #C9A227 35%, var(--line));
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(232, 196, 90, 0.28), transparent 55%),
    linear-gradient(165deg, #FFF9EC 0%, #F7F1E4 55%, #F3EADF 100%);
  box-shadow: 0 8px 22px rgba(120, 90, 20, 0.08);
  overflow: hidden;
  position: relative;
}
.donate-soft::before {
  content: ''; position: absolute; inset: 0 auto 0 0; width: 4px;
  background: linear-gradient(180deg, #E8B923, #1B4D6E);
}
.donate-soft-head {
  display: flex; gap: 12px; align-items: flex-start; margin-bottom: 4px;
}
.donate-soft-ico {
  flex: 0 0 42px; width: 42px; height: 42px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px; background: #fff; border: 1px solid rgba(201, 162, 39, 0.35);
  box-shadow: 0 4px 12px rgba(201, 162, 39, 0.18);
}
.donate-soft-ico .nav-cake { width: 28px; height: 28px; }
.nav-gap { width: 4px; flex: 0 0 4px; }
.nav button .nav-ico .nav-cake { width: 22px; height: 22px; }
.donate-soft h3 {
  margin: 0 0 4px; font-size: 17px; color: #6B4E12; font-weight: 800;
}
.donate-soft-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; margin-top: 14px; width: 100%;
  border: 0; border-radius: 14px; padding: 14px 16px;
  background: linear-gradient(135deg, #2F6B2F 0%, #1B4D6E 100%);
  color: #fff !important; font-weight: 800; font-size: 15px;
  box-shadow: 0 10px 20px rgba(27, 77, 110, 0.25);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.donate-soft-btn:hover {
  filter: brightness(1.05);
  box-shadow: 0 12px 24px rgba(27, 77, 110, 0.3);
  transform: translateY(-1px);
}
.donate-soft-btn:active { transform: translateY(0); }
.gift-rows { display: grid; gap: 8px; margin: 12px 0 4px; }
.gift-row {
  display: grid; grid-template-columns: 36px 1fr auto; grid-template-rows: auto auto;
  gap: 2px 10px; width: 100%; text-align: right; cursor: pointer;
  border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.72);
  padding: 10px 12px; color: inherit; font: inherit;
}
.gift-row.is-ok {
  border-color: color-mix(in srgb, var(--ok) 45%, var(--line));
  background: color-mix(in srgb, var(--ok-bg, #e8f5e9) 70%, #fff);
}
.gift-row.is-corrected {
  border-color: #E2B86A;
  background: #FFF3E0;
}
.gift-row.is-rejected {
  border-color: color-mix(in srgb, var(--red, #B54A4A) 45%, var(--line));
  background: #FBEAEA;
}
.gift-n {
  grid-row: 1 / span 2; align-self: center; justify-self: center;
  width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--navy-2); color: var(--navy); font-weight: 800; font-size: 13px;
}
.gift-row.is-ok .gift-n { background: var(--ok); color: #fff; }
.gift-row.is-corrected .gift-n { background: #E39B2E; color: #fff; }
.gift-row.is-rejected .gift-n { background: var(--red, #B54A4A); color: #fff; }
.gift-date { font-weight: 700; font-size: 13px; }
.gift-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gift-who { font-size: 12px; color: var(--muted); font-weight: 600; }
.gift-amt { font-weight: 800; font-size: 13px; color: var(--navy); }
.gift-amt small { font-weight: 600; color: var(--muted); font-size: 11px; }
.gift-st {
  grid-column: 2 / span 2; font-size: 11px; color: var(--muted);
  white-space: pre-line; line-height: 1.45;
}
.gift-row.is-ok .gift-st { color: var(--ok); font-weight: 700; }
.gift-row.is-corrected .gift-st { color: #B77712; font-weight: 700; }
.gift-row.is-rejected .gift-st { color: var(--red, #B54A4A); font-weight: 700; }
.gift-receipt {
  margin-bottom: 12px; border-radius: 12px; padding: 8px 12px;
  border: 1px solid var(--line); background: var(--card);
}
.gift-receipt.is-ok {
  border-color: color-mix(in srgb, var(--ok) 40%, var(--line));
  background: color-mix(in srgb, var(--ok-bg, #e8f5e9) 55%, var(--card));
}
.gift-receipt.is-corrected {
  border-color: #E2B86A;
  background: #FFF3E0;
}
.gift-receipt.is-rejected {
  border-color: color-mix(in srgb, var(--red, #B54A4A) 45%, var(--line));
  background: #FBEAEA;
}
.pay-row { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; padding: 4px 0; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.hist-link {
  display: block; width: 100%; border: 0; background: transparent;
  color: var(--navy); font-weight: 700; font-size: 13px;
  text-align: right; padding: 0 0 10px; text-decoration: underline;
}
.popup-bg {
  position: fixed; inset: 0; background: rgba(30,24,16,.5); z-index: 70;
  display: flex; align-items: center; justify-content: center; padding: 18px;
}
.popup {
  background: var(--card); width: 100%; max-width: 420px;
  border-radius: 16px; padding: 14px 14px 18px; max-height: 80dvh; overflow: auto;
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
}
.popup h2 { margin: 0 0 12px; font-size: 16px; display: flex; justify-content: space-between; align-items: center; }
.popup h2 button { border: 0; background: none; font-size: 22px; color: var(--muted); }
.jalali-pick { display: grid; grid-template-columns: 1.05fr 1.45fr .9fr; gap: 8px; margin-bottom: 8px; }
.lock-note.top { margin: 0 0 12px; }
.trait-sum { display: flex; flex-wrap: wrap; gap: 6px; }
.ts {
  display: inline-flex; align-items: center; gap: 3px;
  background: var(--bg); border-radius: 999px; padding: 2px 8px;
  font-size: 13px; font-weight: 800;
}
.ts i { font-style: normal; font-size: 16px; }
.ts-warn { background: var(--warn-bg); color: var(--warn); }
.ts-gold { background: #F8F1D8; color: #8A6A12; }
.ts-navy { background: var(--navy-2); color: var(--navy); }
.ts-muted { background: #EEE8DA; color: var(--muted); }
.house-peek { margin-bottom: 10px; }
.num-img {
  width: 48px; height: 48px; object-fit: cover; border-radius: 12px; flex: 0 0 auto;
}
.mini-num { color: var(--muted); font-weight: 800; }
.item-card {
  position: relative;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 10px 10px; margin-bottom: 8px;
}
.item-row-num {
  position: absolute; top: 2px; right: 10px;
  font-size: 10px; font-weight: 800; color: var(--red);
  pointer-events: none; line-height: 1.2;
}
.item-acc-bar {
  display: flex; align-items: stretch; gap: 4px; margin-bottom: 0;
}
.item-acc-drag {
  flex: 0 0 28px; align-self: stretch;
  border: 1px solid var(--line); background: var(--card);
  border-radius: 10px; color: var(--muted);
  font-size: 14px; line-height: 1; cursor: grab;
  touch-action: none; user-select: none;
}
.item-acc-drag:active { cursor: grabbing; }
.item-card.dragging {
  opacity: .55;
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
}
.item-card.drag-over {
  border-color: var(--navy);
  box-shadow: 0 0 0 2px rgba(27, 77, 110, .2);
}
.item-acc-toggle {
  flex: 1; min-width: 0; text-align: right;
  border: 1px solid var(--line); background: var(--card);
  border-radius: 10px; padding: 8px 10px;
  display: flex; align-items: center; gap: 8px; color: var(--ink);
}
.item-acc-preview {
  flex: 1; min-width: 0; font-size: 13px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.item-acc-chevron {
  flex: 0 0 auto; color: var(--muted); font-size: 16px; font-weight: 800;
  transform: rotate(-90deg); transition: transform .15s ease;
}
.item-acc.open .item-acc-chevron { transform: rotate(90deg); }
.item-acc-del {
  flex: 0 0 36px; align-self: stretch;
  border: 1px solid var(--line); background: var(--card);
  border-radius: 10px; font-size: 20px;
}
.item-acc-add {
  flex: 0 0 36px; align-self: stretch;
  border: 1px solid var(--ok); background: var(--ok-bg);
  color: var(--ok); border-radius: 10px;
  font-size: 22px; font-weight: 800; line-height: 1;
}
.item-acc-body { display: none; padding-top: 10px; }
.item-acc.open .item-acc-body { display: block; }
.item-card.item-acc.open {
  background: #EAF4E3;
  border-color: #8FB87A;
  box-shadow: 0 0 0 1px rgba(143, 184, 122, 0.35);
}
.item-card.item-acc.open .item-acc-toggle {
  background: rgba(255, 255, 255, 0.45);
  border-color: #A8C99A;
}
.item-meta-row {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
.item-meta-row .iqty { width: 56px; flex: 0 0 56px; text-align: center; }
.item-meta-row .iunit { width: 72px; flex: 0 0 72px; }
.item-meta-row .icond { width: 72px; flex: 0 0 72px; }
.item-meta-row .iowner { flex: 1 1 120px; min-width: 100px; }
.item-meta-row .item-owner-add { flex: 0 0 auto; margin: 0; white-space: nowrap; padding-inline: 8px; }
.trait-picks-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 4px;
}
.trait-pick-chip { padding: 4px 8px; border-radius: 999px; font-size: 14px; line-height: 1; }
.trait-pick-chip i { font-style: normal; }
.trait-pick-btn { margin: 0 !important; }
.tags-hidden { display: none !important; }
.tags {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0;
}
.tags-pop {
  grid-template-columns: repeat(4, 1fr); gap: 6px; max-height: 240px; overflow-y: auto;
}
.tags-pop .tag-check { min-height: 58px; padding: 6px 2px; }
.tags-pop .tag-check .ico { font-size: 18px; }
.tags-pop .tag-check .lab { font-size: 10px; }
.tag-check {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; min-height: 72px;
  border: 2px solid var(--line); background: var(--card);
  border-radius: 12px; padding: 10px 4px 8px; color: var(--ink);
}
.tag-check .ico { font-size: 22px; line-height: 1; }
.tag-check .lab { font-size: 11px; font-weight: 700; }
.tag-check .tick {
  position: absolute; top: 4px; left: 6px;
  font-size: 14px; font-weight: 800; color: var(--ok);
  min-width: 14px;
}
.tag-check.on { border-color: var(--navy); background: var(--navy-2); }
.tag-check.tag-warn.on { border-color: var(--warn); background: var(--warn-bg); }
.tag-check.tag-gold.on { border-color: #C9A227; background: #F8F1D8; }
.tag-check.tag-navy.on { border-color: var(--navy); background: var(--navy-2); }
.tag-check.tag-muted.on { border-color: #8A8070; background: #EEE8DA; }
.owner-row { align-items: stretch; }
.owner-row .btn.sm { flex: 0 0 auto; margin-top: 0; white-space: nowrap; }
.custom-trait { margin-top: 8px; align-items: stretch; }
.custom-trait .btn.sm { flex: 0 0 48px; margin-top: 0; }
.tstat { margin-bottom: 8px; }
.tstat-h { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.tstat-h b { margin-right: auto; }
.tstat-ico { font-size: 18px; }
.mine-row { padding: 10px 0; border-bottom: 1px solid var(--line); }
.loc-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; cursor: pointer; }
.loc-row .pill { flex-shrink: 0; max-width: 52%; text-align: left; line-height: 1.35; white-space: normal; }
.share-code {
  font-size: 36px; font-weight: 800; letter-spacing: 8px;
  text-align: center; padding: 8px;
}
.cheers-bg {
  position: fixed; inset: 0; z-index: 60; background: rgba(20,16,10,.55);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.cheers {
  background: var(--card); border-radius: 16px; padding: 22px;
  max-width: 360px; width: 100%; text-align: center;
  max-height: 85dvh; overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.cheers h2 { margin: 0 0 8px; }
.worth .stats { margin: 10px 0; }
.worth .stat span { font-size: 10px; line-height: 1.4; }
.chip-hint { font-size: 11px; color: var(--muted); padding: 4px 14px 0; }
.house-invite {
  display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 8px; text-align: right;
  border: 1px dashed var(--line); background: var(--card); color: var(--navy);
  border-radius: 10px; padding: 8px 10px; font-size: 12px; font-weight: 700;
}
.back-btn {
  border: 0; background: none; color: var(--navy); font-weight: 800; font-size: 14px;
  padding: 0; display: inline-flex; align-items: center; gap: 4px;
}
.back-btn::before { content: "→"; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; overflow: hidden;
  flex: 0 0 auto; display: inline-flex; box-shadow: 0 0 0 2px var(--card);
}
.avatar.sm { width: 26px; height: 26px; box-shadow: 0 0 0 2px var(--navy-2); }
.avatar svg, .avatar .avatar-svg { width: 100%; height: 100%; display: block; }
.avatar-stack { display: inline-flex; flex-direction: row-reverse; }
.avatar-stack .avatar { margin-right: -8px; }
.avatar-stack .avatar:last-child { margin-right: 0; }
.avatar-pick {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 8px 0 12px;
}
.avatar-drop {
  margin: 8px 0 4px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--card); padding: 0 10px;
}
.avatar-drop > summary {
  list-style: none; display: flex; align-items: center; gap: 10px;
  padding: 10px 0; font-weight: 700; cursor: pointer;
}
.avatar-drop > summary small { margin-right: auto; color: var(--muted); font-weight: 600; font-size: 12px; }
.avatar-drop > summary::-webkit-details-marker { display: none; }
.avatar-drop[open] > summary { border-bottom: 1px solid var(--line); }
.avatar-drop .avatar-pick { margin-top: 8px; }
.profile-mobile {
  margin: 0 0 14px; text-align: center; font-size: 15px; font-weight: 700;
  color: var(--navy, #1B4D6E); letter-spacing: 0.5px;
}
.move-bar {
  display: flex; align-items: center; gap: 6px; flex-wrap: nowrap;
}
.top-avatar {
  flex: 0 0 auto;
  margin-inline-start: auto;
  width: 36px; height: 36px; padding: 0; border: 2px solid var(--navy);
  border-radius: 50%; background: var(--card); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  overflow: hidden; box-shadow: 0 0 0 2px var(--navy-2);
}
.top-avatar .avatar { width: 100%; height: 100%; box-shadow: none; }
.rooms-drop {
  border: 1px solid var(--line); border-radius: 14px; background: var(--card);
  padding: 0; margin-bottom: 12px; overflow: hidden;
}
.rooms-drop > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px;
  padding: 14px 14px; font-weight: 800; font-size: 15px; user-select: none;
}
.rooms-drop > summary::-webkit-details-marker { display: none; }
.rooms-drop > summary::after {
  content: '▾'; margin-right: auto; color: var(--muted); font-size: 14px;
  transition: transform .15s ease;
}
.rooms-drop[open] > summary::after { transform: rotate(180deg); }
.rooms-drop-body { padding: 0 14px 14px; border-top: 1px solid var(--line); }
.rooms-drop-body > .muted { margin-top: 10px; }
.share-join-card h3 { margin: 0 0 6px; font-size: 15px; }
.share-join-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 8px 0;
}
.share-join-row .share-code {
  flex: 1; min-width: 120px; margin: 0; font-size: 22px; padding: 8px 10px;
  letter-spacing: 4px;
}
.share-join-row .btn.sm { margin: 0; }
.join-inline {
  display: flex; gap: 8px; align-items: stretch; margin-top: 8px;
}
.join-inline .field { flex: 1; margin: 0; }
.join-inline .btn { width: auto; margin: 0; flex: 0 0 auto; padding: 10px 14px; }
.page-title {
  display: flex; align-items: center; gap: 8px; margin: 0; font-size: inherit;
}
.page-title > span { flex: 1; min-width: 0; }
.title-print {
  flex: 0 0 auto; width: 36px; height: 36px; padding: 6px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--card);
  color: var(--navy); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.title-print.sm { width: 32px; height: 32px; padding: 5px; border-radius: 8px; }
.title-print svg { width: 20px; height: 20px; display: block; }
.title-print.sm svg { width: 18px; height: 18px; }
.truck.is-locked, .hauler.is-locked {
  border-color: #8a5408; background: #fff9f0;
}
.check-row.truck-locked { opacity: 0.72; }
.warn-card { border-color: #f0d2a0; background: #fff6e8; }
.move-bar-pick {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px;
}
.move-bar-pick .move-pick,
.move-bar-pick select.move-pick,
.move-bar-pick .move-dd {
  flex: 1; min-width: 0; width: auto;
}
.move-pick {
  font-size: 12px; font-weight: 700;
  padding: 7px 8px; line-height: 1.35;
}
.move-tone-done { color: #8A8580 !important; }
.move-tone-active { color: #2F6B2F !important; }
.move-tone-overdue { color: #9B1C1C !important; }
.move-dd { position: relative; min-width: 0; }
.move-dd-btn {
  width: 100%; margin: 0; border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); font-weight: 800; font-size: 12px;
  padding: 7px 28px 7px 10px; text-align: right; line-height: 1.35;
  position: relative; cursor: pointer; font-family: inherit;
}
.move-dd-btn::after {
  content: ''; position: absolute; left: 10px; top: 50%;
  width: 0; height: 0; margin-top: -3px;
  border-left: 5px solid transparent; border-right: 5px solid transparent;
  border-top: 6px solid var(--muted);
}
.move-dd.open .move-dd-btn { border-color: var(--navy); }
.move-dd-lab {
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.move-dd-menu {
  position: absolute; z-index: 45; left: 0; right: 0; top: calc(100% + 4px);
  max-height: 280px; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0,0,0,.14); padding: 4px;
}
.move-dd-opt {
  display: block; width: 100%; margin: 0; border: 0; background: transparent;
  text-align: right; padding: 10px 8px; border-radius: 8px;
  font-weight: 700; font-size: 12px; line-height: 1.4; cursor: pointer;
  font-family: inherit;
}
.move-dd-opt.on { background: var(--navy-2); }
.move-dd-opt:hover, .move-dd-opt:active { background: var(--bg); }
select.move-pick.move-tone-done,
select.move-pick option.move-tone-done { color: #8A8580; }
select.move-pick.move-tone-active,
select.move-pick option.move-tone-active { color: #2F6B2F; }
select.move-pick.move-tone-overdue,
select.move-pick option.move-tone-overdue { color: #9B1C1C; }
.move-bar-ico {
  flex: 0 0 auto; width: 34px; height: 34px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--card); color: var(--navy);
  font-size: 16px; line-height: 1; cursor: pointer; padding: 0; font-family: inherit;
}
.move-bar-ico.danger { color: #9B1C1C; }
.move-card-acts { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.field-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px;
}
.field-row .field { margin-bottom: 0; }
.move-bar-title {
  flex: 1; min-width: 0; font-size: 12px; font-weight: 800; line-height: 1.35;
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
button.move-bar-title {
  border: 0; background: transparent; color: inherit; text-align: inherit;
  cursor: pointer; padding: 7px 8px; font-family: inherit;
}
button.move-bar-title:hover { color: var(--navy); }
.move-plus { flex: 0 0 auto; padding: 5px 10px; font-size: 15px; line-height: 1; }
.move-help {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card);
  font-size: 15px; font-weight: 800; color: var(--navy);
}
.move-help:hover { border-color: var(--navy); background: var(--navy-2); }
.move-bar .back-btn { flex: 0 0 auto; padding: 0; margin: 0; font-size: 13px; }
.imps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 12px; }
.imp {
  border: 1px solid var(--line); background: var(--bg); border-radius: 12px;
  padding: 10px 6px; font-size: 13px; text-align: center; font-weight: 700;
}
.imp.on { border-color: var(--navy); background: var(--navy-2); color: var(--navy); }
.seal-hist { background: var(--bg); border: 1px dashed var(--line); border-radius: 12px; padding: 10px; margin: 8px 0 12px; }
.seal-ev { font-size: 13px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.seal-ev:last-child { border-bottom: 0; }
.putter { margin: 0 0 8px; font-size: 12px; }
.cheers .btn { margin-top: 8px; }
.cheers a.btn { display: block; text-decoration: none; }
.auth a.btn { display: block; text-decoration: none; text-align: center; }
.avatar-opt {
  border: 2px solid var(--line); background: var(--bg); border-radius: 14px;
  padding: 8px 4px 6px; display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.avatar-opt svg, .avatar-opt .avatar-svg { width: 40px; height: 40px; }
.avatar-opt span { font-size: 10px; color: var(--muted); font-weight: 700; }
.avatar-opt.on { border-color: var(--navy); background: var(--navy-2); }
.person-row { display: flex; align-items: center; gap: 10px; text-align: right; }
.person-row > div { min-width: 0; }
.row-acts { display: flex; flex-direction: column; gap: 6px; flex: 0 0 auto; }
.invite-card { border-color: var(--navy); background: var(--navy-2); }
.household .list-link { align-items: center; gap: 8px; }
.priv-seg { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-bottom: 6px; }
.priv {
  border: 2px solid var(--line); background: var(--card); border-radius: 10px;
  padding: 10px 6px; font-size: 12px; font-weight: 700;
}
.priv.on { border-color: var(--navy); background: var(--navy-2); color: var(--navy); }
.item-card[data-privacy="private"] .priv-seg .priv.on { border-color: var(--warn); background: var(--warn-bg); color: var(--warn); }
.item-card[data-privacy="secret"] .priv-seg .priv.on { border-color: var(--red); background: var(--red-bg); color: var(--red); }
.priv-hint { font-size: 11px; line-height: 1.6; margin: 0 0 8px; }
.private-hits { border-color: var(--warn); }
.household h3.mt { font-size: 15px; }
.mark-svg {
  width: 1.15em; height: 1.15em;
  display: inline-block; vertical-align: -0.2em;
  flex: 0 0 auto;
}
.chip .mark-svg { width: 16px; height: 16px; }
.ts .mark-svg { width: 16px; height: 16px; }
.tag-check .ico { display: inline-flex; align-items: center; justify-content: center; }
.tag-check .ico .mark-svg { width: 26px; height: 26px; }
.handle-row {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 4px;
}
.handle-mark {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--navy);
}
.handle-mark .mark-svg { width: 28px; height: 28px; }
.chip-x {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  font-size: 15px; line-height: 1; font-weight: 800;
  background: rgba(0,0,0,.08); color: inherit;
}
.chip.on .chip-x { background: rgba(255,255,255,.22); }
.chk-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 12px; margin: 0 0 10px;
  font-size: 14px; font-weight: 700;
}
.chk-row input { width: 20px; height: 20px; accent-color: var(--navy); flex: 0 0 auto; }
.chk-ico { display: inline-flex; color: var(--navy); }
.chk-ico .mark-svg { width: 24px; height: 24px; }
.tstat-ico { display: inline-flex; align-items: center; }
.tstat-ico .mark-svg { width: 20px; height: 20px; }
.stat-mark { display: inline-flex; align-items: center; gap: 6px; }
.stat-mark .mark-svg { width: 22px; height: 22px; }
.truck-acts { display: flex; gap: 6px; flex: 0 0 auto; }
.pay-page { max-width: 420px; margin: 0 auto; padding: 20px 16px 40px; }
.pay-hero { text-align: center; margin-bottom: 16px; }
.pay-hero h1 { margin: 12px 0 8px; font-size: 22px; }
.pay-hero p { color: var(--muted); line-height: 1.7; }
.pay-hero .cheers-donate-msg { color: var(--ok); font-weight: 600; }
.pay-actions { display: grid; gap: 10px; margin-top: 12px; }
.pay-actions .btn { text-align: center; text-decoration: none; }
.pay-time-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pay-popup-bg {
  position: fixed; inset: 0; z-index: 70; background: rgba(20,16,10,.55);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 24px 18px; overflow-y: auto; -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.pay-popup-bg[hidden] { display: none !important; }
body.pay-track-open {
  overflow: hidden !important;
  overscroll-behavior: none;
}
.pay-popup {
  background: var(--card); border-radius: 16px; padding: 16px 14px 18px;
  width: 100%; max-width: 400px; margin: auto 0;
  box-shadow: 0 12px 40px rgba(0,0,0,.18); text-align: right;
  overflow: visible;
  position: relative;
}
.pay-popup h2 { margin: 0 0 12px; font-size: 16px; display: flex; justify-content: space-between; align-items: center; }
.pay-popup h2 button { border: 0; background: none; font-size: 22px; color: var(--muted); }
.pay-pick-row {
  display: grid; grid-template-columns: 1.05fr 1.45fr .9fr; gap: 8px; margin-bottom: 8px;
}
.pay-pick-row.is-time { grid-template-columns: 1fr 1fr; }
.pay-pick {
  position: relative; min-width: 0; z-index: 1;
}
.pay-pick.open { z-index: 90; }
.pay-pick-btn {
  width: 100%; margin: 0; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--ink); font-weight: 700; font-size: 14px;
  padding: 12px 28px 12px 10px; text-align: center; line-height: 1.3;
  position: relative; cursor: pointer;
}
.pay-pick-btn::after {
  content: ''; position: absolute; left: 10px; top: 50%;
  width: 0; height: 0; margin-top: -3px;
  border-left: 5px solid transparent; border-right: 5px solid transparent;
  border-top: 6px solid var(--muted);
}
.pay-pick-btn:focus-visible { outline: 2px solid var(--navy); outline-offset: 1px; }
.pay-pick.open .pay-pick-btn { border-color: var(--navy); }
.pay-pick-menu {
  display: none; position: absolute; z-index: 95; left: 0; right: 0; top: calc(100% + 4px);
  max-height: 220px; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0,0,0,.16); padding: 4px;
}
.pay-pick.open .pay-pick-menu { display: block; }
.pay-pick-opt {
  display: block; width: 100%; border: 0; background: transparent; color: var(--ink);
  text-align: center; padding: 10px 8px; border-radius: 8px; font-weight: 600; margin: 0;
  cursor: pointer;
}
.pay-pick-opt.on { background: var(--navy-2); color: var(--navy); font-weight: 800; }
.pay-pick-opt:active, .pay-pick-opt:hover { background: var(--bg); }
.pay-amt-wrap { display: flex; align-items: center; gap: 8px; }
.pay-amt-wrap .field { flex: 1; margin-bottom: 0; }
.toman-lbl { color: var(--red); font-weight: 800; flex: 0 0 auto; font-size: 14px; }
.pay-row { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.pay-amt { font-size: 22px; font-weight: 700; text-align: center; }
.print-presets {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 12px;
}
.print-presets button {
  border: 1px solid var(--line); background: var(--bg); border-radius: 12px;
  padding: 10px 8px; font-size: 13px; font-weight: 700; color: var(--ink); margin: 0;
}
.print-presets button.on { border-color: var(--navy); background: var(--navy-2); color: var(--navy); }
.nav.nav-5 button { font-size: 9px; }
.nav.nav-6 button { font-size: 9px; }
.nav.nav-7 button .nav-lbl,
.nav.nav-8 button .nav-lbl { font-size: 9px; }
.home-delivered { border-right: 4px solid var(--ok, #1a7f37); }
.scan-page { min-height: 100dvh; padding-bottom: 24px; }
.scan-page .top { padding-bottom: 8px; }
.scan-page a.back-btn { display: inline-flex; text-decoration: none; color: var(--navy); }
.scan-num { font-size: 64px; font-weight: 800; text-align: center; line-height: 1; margin: 4px 0 8px; }
.scan-marks { display: flex; gap: 12px; justify-content: center; margin-bottom: 12px; font-weight: 700; }
.scan-items { list-style: none; margin: 0; padding: 0; }
.scan-items li { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.scan-items.muted-list li { color: var(--muted); font-size: 14px; }
.guide-card { border: 0; background: transparent; padding: 0; }
.guide-card .muted { margin: 0 0 8px; }
.popup .guide-card .flow-chart { margin-top: 4px; }
.flow-chart { margin: 12px 0 8px; }
.flow-step {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px;
}
.flow-n {
  flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800;
}
.flow-body { flex: 1; min-width: 0; }
.flow-body strong { display: block; font-size: 15px; margin-bottom: 2px; }
.flow-tab {
  display: inline-block; font-size: 11px; background: var(--navy-2); color: var(--navy);
  padding: 2px 8px; border-radius: 8px; margin-bottom: 4px;
}
.flow-body p { margin: 4px 0 0; font-size: 13px; color: var(--muted); line-height: 1.65; }
.flow-arrow { text-align: center; color: var(--navy); font-size: 18px; line-height: 1; padding: 4px 0; opacity: .55; }
.home-empty { text-align: center; padding: 20px 16px; }
.home-new-btn { max-width: 280px; margin: 8px auto 0; display: block; font-size: 16px; }
.lbl .req { color: var(--red, #a32d2d); }
