:root {
  --bg: #f3f1ec;
  --bg-2: #e7e3da;
  --ink: #141816;
  --muted: #66716a;
  --card: #ffffff;
  --edge: rgba(20, 24, 22, 0.08);
  --green: #1f6a45;
  --green-2: #2f8c5a;
  --green-soft: #e8f5ee;
  --terracotta: #d45b38;
  --gold: #c9a227;
  --danger: #b42318;
  --btn: #1f6a45;
  --btn-ink: #ffffff;
  --btn-2: #d7e4db;
  --btn-2-ink: #141816;
  --btn-edge: #1a3d2c;
  --shadow: 0 8px 24px rgba(20, 24, 22, 0.07);
  --radius: 1.25rem;
  --nav-h: 4.35rem;
  --side-w: 15.25rem;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --font: "SF Pro Text", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
body {
  min-height: 100dvh;
  min-height: 100svh;
  font-family: var(--font);
  background:
    radial-gradient(1200px 500px at 10% -10%, #dceadf 0%, transparent 55%),
    var(--bg);
  color: var(--ink);
  padding-bottom: calc(var(--nav-h) + var(--safe-b) + 1.1rem);
  letter-spacing: -0.011em;
  overscroll-behavior-y: none;
}
a, button, input, select, textarea, summary, .tile {
  touch-action: manipulation;
}
body.auth { padding-top: var(--safe-t); padding-bottom: var(--safe-b); }
html.family-standalone body { background: var(--bg); }

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: none; color: var(--green-2); }
button, input, select, textarea { font: inherit; }

.wrap { width: min(720px, calc(100% - 1.5rem)); margin: 0 auto; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .7rem 0 .35rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: var(--ink);
  min-width: 0;
}
.brand img {
  width: 40px; height: 40px; border-radius: 12px;
  box-shadow: 0 6px 16px rgba(31, 106, 69, .18);
}
.brand-meta { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-meta strong { font-size: 1.02rem; letter-spacing: -0.03em; }
.brand-meta small {
  color: var(--muted);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .62rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 14rem;
}

.who { display: flex; align-items: center; gap: .45rem; }
.who-chip {
  appearance: none; border: 0; background: var(--card);
  border-radius: 999px; padding: .35rem .55rem;
  display: flex; align-items: center; gap: .4rem;
  box-shadow: var(--shadow); color: var(--ink); cursor: pointer;
}
.who-chip .avatar {
  width: 1.7rem; height: 1.7rem; border-radius: 999px;
  background: var(--green-soft); color: var(--green);
  display: grid; place-items: center;
  font-weight: 800; font-size: .75rem;
}
.who-menu {
  position: relative;
}
.who-menu .sheet {
  display: none;
  position: absolute; right: 0; top: calc(100% + .4rem);
  min-width: 12.5rem;
  background: var(--card); border-radius: 1rem;
  box-shadow: 0 16px 40px rgba(20,24,22,.16);
  padding: .4rem;
  z-index: 30;
}
.who-menu.open .sheet { display: block; }
.who-menu .sheet a, .who-menu .sheet button {
  display: block; width: 100%; text-align: left;
  background: none; border: 0; padding: .7rem .75rem;
  border-radius: .75rem; color: var(--ink); cursor: pointer;
  font-weight: 600; font-size: .92rem;
}
.who-menu .sheet a:hover, .who-menu .sheet button:hover { background: var(--green-soft); }

.flash {
  margin: .55rem 0;
  padding: .8rem 1rem;
  border-radius: 1rem;
  background: var(--card);
  box-shadow: var(--shadow);
  font-weight: 600;
  font-size: .92rem;
}
.flash.success { background: var(--green-soft); color: var(--green); }
.flash.danger, .flash.error { background: #fdecea; color: var(--danger); }
.flash.warning { background: #fff4e0; color: #9a5b12; }
.flash.info { background: #eef4ff; color: #244a7a; }

.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: .75rem; margin: .35rem 0 1rem;
}
.page-head h1 { margin: 0; font-size: 1.7rem; letter-spacing: -0.04em; font-weight: 800; }
.page-head p { margin: .25rem 0 0; color: var(--muted); font-size: .92rem; }
h1 { font-size: 1.7rem; margin: .2rem 0 .8rem; letter-spacing: -0.04em; }
h2 { font-size: 1.02rem; margin: 1.15rem 0 .55rem; letter-spacing: -0.02em; }

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}
.sys-menu { margin: 0 0 1rem; }
.sys-menu .tile {
  appearance: none;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.tile {
  display: flex;
  flex-direction: column;
  min-height: 7.4rem;
  padding: 1rem;
  background: var(--card);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease;
}
.tile:active { transform: scale(.985); }
.tile .ico {
  width: 2.35rem; height: 2.35rem; border-radius: .85rem;
  display: grid; place-items: center;
  background: var(--green-soft); color: var(--green);
  margin-bottom: .65rem;
}
.tile .ico svg { width: 1.2rem; height: 1.2rem; }
.tile .kicker { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.tile .label { font-size: 1.12rem; font-weight: 800; margin-top: .15rem; letter-spacing: -0.03em; }
.tile .count { font-size: .82rem; color: var(--muted); font-weight: 600; margin-top: auto; padding-top: .55rem; }

.tile-scan {
  grid-column: 1 / -1;
  min-height: 7.6rem;
  background: linear-gradient(135deg, #1f6a45 0%, #163d2a 100%);
  color: #f7f3ea;
  border: 0;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.2rem;
}
.tile-scan .ico { background: rgba(255,255,255,.14); color: #fff; width: 3.1rem; height: 3.1rem; margin: 0; }
.tile-scan .ico svg { width: 1.5rem; height: 1.5rem; }
.tile-scan .kicker { color: #cfe8d7; }
.tile-scan .label { font-size: 1.55rem; color: #fff; }
.tile-scan .count { color: #d9eadc; padding-top: .15rem; }

.card {
  background: var(--card);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  padding: 1.05rem 1rem;
  box-shadow: var(--shadow);
  margin: .7rem 0;
}
.list { padding: .2rem 0; }
.row {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .85rem .15rem;
  border-bottom: 1px solid var(--edge);
  color: inherit;
}
.row:last-child { border-bottom: 0; }
.row strong { font-size: 1rem; letter-spacing: -0.02em; }
.row > div { min-width: 0; flex: 1; }
.row-pic {
  position: relative;
  flex: 0 0 2.55rem;
  width: 2.55rem; height: 2.55rem;
  border-radius: .8rem;
  background: var(--green-soft);
  color: var(--green);
  display: grid; place-items: center;
  font-weight: 800; font-size: 1.05rem;
  overflow: hidden;
}
.row-pic span { line-height: 1; }
.row-pic svg {
  position: relative;
  z-index: 1;
  width: 62%;
  height: 62%;
  color: var(--green);
}
.row-pic:has(img) svg { display: none; }
.row-pic:has(svg) > span { display: none; }
.part-icon.lg {
  width: 3.6rem;
  height: 3.6rem;
  flex-basis: 3.6rem;
  border-radius: 1rem;
}
.row-pic img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  background: var(--bg-2);
}
.row.key-line { align-items: flex-start; flex-wrap: wrap; }
.row.key-line .btn-row { margin: 0; }
.row.key-line form { margin: 0; }
.dash-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: .45rem .7rem;
  margin: .35rem 0 1rem;
}
.dash-tiles label {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-weight: 650;
  font-size: .92rem;
}
.home-fold { padding: .55rem .9rem .7rem; }
.home-fold > summary,
.add-fold > summary {
  list-style: none;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  background: var(--btn);
  color: var(--btn-ink);
  border-radius: .85rem;
  padding: .7rem 1rem;
  min-height: 2.75rem;
}
.home-fold > summary::-webkit-details-marker,
.add-fold > summary::-webkit-details-marker { display: none; }
.home-fold > summary::after,
.add-fold > summary::after {
  content: "Open";
  font-size: .78rem;
  font-weight: 700;
  color: var(--btn-ink);
  opacity: .85;
}
.home-fold[open] > summary::after,
.add-fold[open] > summary::after { content: "Hide"; }
.home-fold[open] > summary,
.add-fold[open] > summary { margin-bottom: .65rem; }
.home-cal-btn {
  width: 100%;
  margin: 0 0 1rem;
  background: var(--btn-2);
  color: var(--btn-2-ink);
  border: 1.5px solid var(--btn-edge);
  font-weight: 800;
}
.home-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(5.5rem, 1fr));
  gap: .45rem;
  margin: 0 0 1rem;
}
.home-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: .08rem;
  min-width: 0;
  min-height: 4.4rem;
  margin: 0;
  padding: .6rem .65rem;
  border-radius: 1rem;
  border: 1.5px solid var(--btn-edge);
  background: var(--btn-2);
  color: var(--btn-2-ink);
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}
.home-chip .kicker {
  font-size: .62rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
}
.home-chip strong {
  font-size: .92rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.home-chip .muted {
  font-size: .72rem;
  font-weight: 650;
  line-height: 1.2;
}
.home-chip.is-low {
  background: #fff4e0;
  color: var(--ink);
  border-color: #e2c98a;
}
.item-desk-row { margin: 0 0 .75rem; }
.item-desk-row .home-chip strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ai-key { margin: 0 0 .65rem; }
.ai-key .badge { margin-left: .35rem; }
.ai-key .btn-row { margin-top: .45rem; }
.ai-key .btn-row .btn { flex: 1 1 5.5rem; }
.sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(12, 14, 13, .45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
.sheet-overlay[hidden] { display: none; }
.sheet-panel {
  width: min(28rem, 100%);
  height: min(42rem, 88dvh);
  background: var(--card);
  border-radius: 1.15rem 1.15rem .6rem .6rem;
  box-shadow: 0 -12px 40px rgba(20, 24, 22, .18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .18s ease;
}
.sheet-top {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
}
.sheet-title { display: none; }
.sheet-grab {
  flex: 0 0 auto;
  width: 2.5rem;
  height: .32rem;
  margin: .55rem auto .1rem;
  border-radius: 99px;
  background: var(--muted);
  opacity: .38;
}
.sheet-close {
  align-self: flex-end;
  margin: .15rem .7rem .15rem;
  border: 0;
  background: var(--bg-2);
  color: var(--ink);
  font-weight: 700;
  font-size: .88rem;
  border-radius: 999px;
  padding: .5rem 1rem;
  min-height: 2.5rem;
  cursor: pointer;
}
.sheet-frame {
  flex: 1;
  width: 100%;
  border: 0;
  background: var(--bg);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
body.sheet-open { overflow: hidden; overscroll-behavior: none; }
.sheet-overlay.sheet-full {
  align-items: stretch;
  background: var(--bg);
}
.sheet-overlay.sheet-full .sheet-panel {
  width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  border-radius: 0;
  box-shadow: none;
}
.sheet-overlay.sheet-full .sheet-top {
  flex-direction: row;
  align-items: center;
  gap: .75rem;
  padding: calc(.45rem + var(--safe-t)) .75rem .45rem .95rem;
  background: var(--card);
  border-bottom: 1px solid var(--edge);
}
.sheet-overlay.sheet-full .sheet-grab { display: none; }
.sheet-overlay.sheet-full .sheet-title {
  display: block;
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.2;
}
.sheet-overlay.sheet-full .sheet-close {
  align-self: center;
  margin: 0;
  min-height: 2.75rem;
  font-size: 1rem;
}
body.sheet-body {
  min-height: 0;
  padding: .55rem 1rem calc(1.5rem + var(--safe-b));
  background: var(--bg);
}
body.sheet-room {
  max-width: 42rem;
  margin: 0 auto;
  padding: .9rem 1.1rem calc(2.25rem + var(--safe-b));
}
body.sheet-room h1 { font-size: 1.45rem; }
body.sheet-room input,
body.sheet-room select,
body.sheet-room textarea {
  font-size: 1rem;
  min-height: 2.75rem;
}
body.sheet-room .btn-row { flex-wrap: wrap; }
body.sheet-room .btn-row > .btn,
body.sheet-room .btn-row > input,
body.sheet-room .btn-row > select {
  flex: 1 1 12rem;
}
.fold-menu > summary {
  display: block;
  cursor: pointer;
  list-style: none;
  min-height: 3.25rem;
  padding: .15rem 1.2rem .15rem 0;
}
.fold-menu > summary::-webkit-details-marker { display: none; }
.fold-menu > summary::after {
  content: "";
  float: right;
  width: .55rem;
  height: .55rem;
  margin-top: .45rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
}
.fold-menu[open] > summary { margin-bottom: .7rem; }
.fold-menu[open] > summary::after { transform: rotate(225deg); margin-top: .7rem; }
.sheet-exit {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 .7rem;
}
body.sheet-body .cal-connect { margin: 0; box-shadow: none; }
.cal-embed {
  width: 100%;
  min-height: 18rem;
  border: 0;
  border-radius: .8rem;
  margin-top: .75rem;
  background: var(--card);
}
@media (min-width: 720px) {
  .sheet-overlay { align-items: center; }
  .sheet-panel { border-radius: 1.1rem; }
}
.muted { color: var(--muted); }
.badge {
  display: inline-flex; align-items: center;
  padding: .18rem .55rem;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: var(--green-soft);
  color: var(--green);
  white-space: nowrap;
}
.badge.low { background: #fde8d8; color: var(--terracotta); }
.badge.out { background: #fdecea; color: var(--danger); }
.btn.danger {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}
.btn.danger:hover { filter: brightness(1.05); }
.danger-card { border-color: rgba(180, 35, 24, .28); }
.danger-inline { margin-top: .85rem; padding-top: .75rem; border-top: 1px solid var(--edge); }
.badge.want { background: #eef4ff; color: #244a7a; }

label { display: block; font-weight: 700; font-size: .78rem; margin: .75rem 0 .3rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
input, select, textarea {
  width: 100%;
  padding: .85rem .9rem;
  border-radius: .9rem;
  border: 1px solid var(--edge);
  background: #fafaf7;
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(31,106,69,.28);
  border-color: var(--green-2);
  background: #fff;
}
textarea { min-height: 5rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  border: 1.5px solid transparent; cursor: pointer;
  background: var(--btn); color: var(--btn-ink);
  font-weight: 750; font-size: .95rem;
  padding: .85rem 1.1rem;
  border-radius: .95rem;
  text-decoration: none;
  min-height: 2.75rem;
}
.btn:hover { color: var(--btn-ink); filter: brightness(1.05); }
.btn.secondary {
  background: var(--btn-2);
  color: var(--btn-2-ink);
  border-color: var(--btn-edge);
}
.btn.secondary:hover { color: var(--btn-2-ink); filter: brightness(0.97); }
.btn.terracotta { background: var(--terracotta); color: #fff; border-color: var(--terracotta); }
.btn.terracotta:hover { color: #fff; }
.btn.warn { background: var(--gold); color: #1a1710; border-color: #8a7018; }
.btn.warn:hover { color: #1a1710; }
.btn.ghost {
  background: var(--btn-2);
  color: var(--green);
  border-color: var(--green);
}
.btn.ghost:hover { color: var(--green); }
.btn.block { width: 100%; }
.btn.outline {
  background: transparent;
  color: var(--btn);
  border: 1.5px solid var(--btn);
}
.btn.outline:hover { color: var(--btn); filter: none; background: var(--btn-2); }
.btn-row { display: flex; gap: .55rem; flex-wrap: wrap; margin-top: .9rem; align-items: center; }
.btn.sm { padding: .45rem .75rem; min-height: 0; font-size: .82rem; border-radius: .7rem; }
a.btn:hover { text-decoration: none; }

.nav {
  position: fixed; left: 0; right: 0; bottom: 0;
  height: calc(var(--nav-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-top: 1px solid var(--edge);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  z-index: 40;
}
.nav a,
.nav .nav-more,
.nav .scan-fab {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--muted); font-size: .62rem; font-weight: 700; gap: .12rem;
  letter-spacing: .02em;
  appearance: none; border: 0; background: transparent; font-family: inherit;
  cursor: pointer;
}
.nav a svg { width: 1.35rem; height: 1.35rem; }
.nav a.active { color: var(--green); }
.nav a.active svg { stroke-width: 2.2; }
.nav .scan-fab {
  width: 3.35rem; height: 3.35rem; border-radius: 999px;
  background: var(--green); color: #fff !important;
  margin-top: -1.15rem;
  box-shadow: 0 10px 22px rgba(31, 106, 69, .38);
  font-size: 0;
  gap: 0;
}
.nav .scan-fab svg { width: 1.45rem; height: 1.45rem; stroke: #fff; }
.scan-live {
  position: fixed !important;
  inset: 0;
  z-index: 100;
  background: #0b0c0d;
  display: flex;
  flex-direction: column;
  padding-bottom: var(--safe-b);
}
.scan-live[hidden] { display: none !important; }
.scan-live-bar {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: calc(.45rem + var(--safe-t)) .7rem .55rem;
  color: #f3f1ec;
  font-weight: 700;
  font-size: .92rem;
}
.scan-jobs { display: flex; gap: .3rem; flex: 1; justify-content: center; flex-wrap: wrap; }
.scan-jobs .chip {
  min-height: 2.4rem;
  padding: .35rem .85rem;
  border-radius: 999px;
  border: 1.5px solid #f3f1ec;
  background: transparent;
  color: #f3f1ec;
  font-weight: 800;
}
.scan-jobs .chip.on {
  background: #f3f1ec;
  color: #0b0c0d;
}
.scan-jobs[hidden] { display: none; }
.scan-host-banner {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex: 1;
  flex-wrap: wrap;
  color: #f3f1ec;
}
.scan-host-banner[hidden] { display: none; }
.scan-host-banner strong {
  font-size: .7rem;
  letter-spacing: .07em;
  font-weight: 800;
}
.scan-host-banner .chip {
  min-height: 2.2rem;
  padding: .25rem .7rem;
  border-radius: 999px;
  border: 1.5px solid #f3f1ec;
  background: transparent;
  color: #f3f1ec;
  font-weight: 800;
  font-size: .78rem;
}
.scan-host-notice {
  margin: 0 0 .75rem;
  padding: .65rem .85rem;
  border-radius: .9rem;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 700;
  font-size: .88rem;
}
.scan-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  background: #000;
}
#scan-live-reader {
  position: absolute;
  inset: 0;
  background: #000;
}
#scan-live-reader #qr-shaded-region {
  display: none !important;
}
.scan-slot {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  left: 4%;
  right: 4%;
  top: 32%;
  height: 32%;
  width: auto;
  transform: none;
  border: 2.5px solid #3ecf7a;
  border-radius: .7rem;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, .42);
}
@media (orientation: landscape) {
  .scan-slot {
    left: 16%;
    right: 16%;
    top: 36%;
    height: 24%;
  }
}
#scan-live-reader video,
#scan-live-reader canvas {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  background: #000;
}
#scan-freeze {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.scan-hud {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  padding: .7rem .8rem calc(.85rem + var(--safe-b));
  background: linear-gradient(transparent, rgba(8, 10, 9, .72) 28%);
  pointer-events: none;
}
.scan-hud p,
.scan-hud .scan-toast,
.scan-hud button,
.scan-hud .chip {
  pointer-events: auto;
}
#scan-live-status {
  margin: 0 0 .45rem;
  color: #fff;
  font-weight: 700;
  text-shadow: 0 1px 3px #000;
}
#scan-live-result {
  margin: 0;
  max-height: none;
  overflow: visible;
  background: transparent;
  color: #fff;
  position: static;
  box-shadow: none;
  border-radius: 0;
}
.scan-toast {
  display: flex;
  align-items: center;
  gap: .45rem;
  flex-wrap: wrap;
  padding: .75rem .8rem;
  border-radius: 1rem;
  background: rgba(12, 14, 13, .38);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
  text-shadow: 0 1px 2px #000;
}
.scan-toast strong { width: 100%; font-size: 1.05rem; }
.scan-toast .chip {
  min-height: 2.75rem;
  min-width: 2.75rem;
  border: 1.5px solid #fff;
  background: rgba(0, 0, 0, .28);
  color: #fff;
  font-weight: 800;
  border-radius: .8rem;
  pointer-events: auto;
}
.scan-enter {
  display: flex;
  gap: .35rem;
  align-items: center;
  pointer-events: auto;
}
.scan-enter [data-qty-enter] {
  width: 4.2rem;
  min-height: 2.75rem;
  border: 1.5px solid #fff;
  border-radius: .8rem;
  background: rgba(0, 0, 0, .35);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  text-align: center;
}
.scan-live-bar .sheet-close { color: var(--ink); }
.nav .scan-fab {
  position: relative;
  z-index: 41;
  font-size: 1rem;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}
.scan-qty {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  align-items: center;
  margin: 0 0 .55rem;
}
.scan-qty .chip {
  min-height: 2.6rem;
  min-width: 2.6rem;
  padding: .4rem .7rem;
  border-radius: .8rem;
  border: 1.5px solid var(--btn-edge);
  background: var(--btn-2);
  color: var(--btn-2-ink);
  font-weight: 800;
  cursor: pointer;
}
.scan-qty .chip.on,
.scan-qty .chip:active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.ai-report {
  margin: .65rem 0 .35rem;
  padding: .7rem .8rem;
  border-radius: .85rem;
  background: var(--green-soft);
  color: var(--ink);
  font-size: .9rem;
}
.ai-report p { margin: .35rem 0 0; }
.scan-qty [data-scan-qty] {
  width: 4.6rem;
  min-height: 2.6rem;
  text-align: center;
  font-weight: 800;
}
html.scan-live-open,
html.scan-live-open body,
body.scan-live-open {
  overflow: hidden;
  overscroll-behavior: none;
}
html.scan-live-open #scan-live {
  inset: 0;
  width: 100%;
  height: 100%;
}
@media (orientation: landscape) {
  .scan-live-bar {
    padding-top: calc(.3rem + var(--safe-t));
    padding-bottom: .3rem;
  }
  #scan-live-reader video,
  #scan-live-reader canvas {
    object-fit: contain;
  }
}

.side-nav,
.desk-links,
.auth-desk-bar,
.landing-top-links { display: none; }

.tabs { display: flex; gap: .4rem; overflow-x: auto; margin: .15rem 0 1rem; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  padding: .45rem .85rem; border-radius: 999px; background: var(--btn-2);
  border: 1.5px solid var(--btn-edge); color: var(--btn-2-ink); font-weight: 700; font-size: .82rem;
  white-space: nowrap;
}
.tabs a.active { background: var(--green); color: #fff; border-color: var(--green); }

.auth-page {
  min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 1.5rem 1rem calc(2rem + var(--safe-b));
}
.auth-page .wrap { width: min(400px, 100%); }

.landing-body { padding-bottom: var(--safe-b); }
.landing {
  width: min(26rem, calc(100% - 1.5rem));
  margin: 0 auto;
  min-height: 100dvh;
  padding: max(1rem, var(--safe-t)) 0 calc(1.4rem + var(--safe-b));
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
}
.landing-top {
  display: flex; align-items: center; gap: .75rem;
  padding-top: .15rem;
}
.landing-top img {
  width: 48px; height: 48px; border-radius: 14px;
  box-shadow: 0 8px 20px rgba(31,106,69,.22);
}
.landing-top strong { display: block; font-size: 1.05rem; letter-spacing: -0.03em; }
.landing-top small {
  color: var(--muted); font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; font-size: .62rem;
}
.landing-hero h1 {
  margin: .2rem 0 .45rem;
  font-size: clamp(1.7rem, 8.4vw, 2.25rem);
  letter-spacing: -0.045em;
  line-height: 1.12;
  font-weight: 800;
}
.landing-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.4;
  font-weight: 600;
}
.landing-cta { display: flex; flex-direction: column; gap: .55rem; }
.landing-cta .btn { min-height: 3.2rem; font-size: 1.05rem; }
.landing-keys h2 {
  margin: .2rem 0 .65rem;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.key-card {
  background: var(--card);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  padding: 1rem .95rem 1.05rem;
  box-shadow: var(--shadow);
  margin: 0 0 .7rem;
}
.key-card h3 { margin: .35rem 0 .35rem; font-size: 1.15rem; letter-spacing: -0.03em; }
.key-card p, .key-card .muted { font-size: .9rem; line-height: 1.4; }
.key-card.vital { border-color: rgba(31,106,69,.35); box-shadow: 0 8px 24px rgba(31,106,69,.12); }
.key-tag {
  display: inline-flex; align-items: center;
  padding: .18rem .55rem; border-radius: 999px;
  font-size: .64rem; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; white-space: nowrap;
}
.key-tag.fam { background: #eef4ff; color: #244a7a; }
.key-tag.srv { background: #e8f5ee; color: var(--green); }
.key-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .04em; }
.key-copy-row {
  display: flex; gap: .5rem; align-items: stretch; margin: .85rem 0 1rem;
}
.key-copy-row input {
  flex: 1; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.15rem; font-weight: 800; letter-spacing: .06em;
  min-height: 3.1rem;
}
.key-modal-backdrop {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(12, 18, 16, .45);
  display: flex; align-items: center; justify-content: center;
  padding: 1.2rem;
}
.key-modal {
  width: min(26rem, 100%);
  background: var(--card);
  border-radius: 1.2rem;
  padding: 1.15rem 1.1rem 1.2rem;
  box-shadow: 0 18px 50px rgba(0,0,0,.28);
}
.key-modal h2 { margin: 0 0 .35rem; font-size: 1.25rem; }
.key-legend {
  display: flex; flex-direction: column; gap: .65rem;
  margin: 0 0 .75rem;
}
.key-legend > div {
  background: var(--card); border-radius: 1rem; padding: .75rem .85rem;
  border: 1px solid var(--edge);
}
.key-legend p { margin: .35rem 0 0; color: var(--muted); font-size: .82rem; font-weight: 600; }
.key-block { margin-top: .85rem; padding-top: .15rem; }
.key-block.vital { padding: .75rem .8rem .85rem; border-radius: 1rem; background: var(--green-soft); }
.landing-foot { text-align: left; font-size: .85rem; margin: 0; }
.landing-install { margin-top: auto; }

@media (max-width: 720px) {
  input, select, textarea { font-size: 16px; min-height: 3rem; }
  .btn { min-height: 3rem; }
  .btn.sm { min-height: 2.6rem; padding: .55rem .9rem; }
  .btn-row .btn { flex: 1 1 8rem; }
}

.sys-jump {
  display: flex; flex-wrap: wrap; gap: .4rem;
  margin: 0 0 1rem;
}
.sys-jump a {
  padding: .4rem .7rem; border-radius: 999px;
  background: var(--card); border: 1px solid var(--edge);
  color: var(--ink); font-weight: 700; font-size: .78rem;
}
.sys-jump a.has { background: var(--green-soft); color: var(--green); }
.receipt-chip {
  display: inline-flex; align-items: center;
  height: 5.6rem; padding: 0 .85rem;
  border-radius: .85rem; background: var(--green-soft);
  color: var(--green); font-weight: 800; font-size: .78rem;
  flex: 0 0 auto;
}
.part-edit { margin-top: .55rem; }
.sort-card {
  border-top: 1px solid var(--edge);
  padding: 1rem 0 .35rem;
}
.sort-card:first-of-type { border-top: 0; padding-top: 0; }
.sort-keep {
  display: flex; align-items: center; gap: .45rem;
  font-weight: 800; text-transform: none; letter-spacing: 0;
  font-size: 1rem; color: var(--ink); margin: 0 0 .55rem;
}
.sort-keep input { width: auto; accent-color: var(--green); }
.sys-card {
  background: var(--card);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  padding: 1rem .95rem 1.05rem;
  box-shadow: var(--shadow);
  margin: .7rem 0;
}
.sys-card > header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: .6rem;
  margin-bottom: .55rem;
}
.sys-card > header h2 { margin: 0; font-size: 1.08rem; }
.sys-card > header p { margin: .15rem 0 0; }
.part-row {
  display: flex; justify-content: space-between; gap: .75rem;
  padding: .7rem 0;
  border-top: 1px solid var(--edge);
}
.part-row strong { display: block; letter-spacing: -0.02em; }
.part-side { display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; flex: 0 0 auto; }
.slot-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .55rem; }
.chip {
  appearance: none; border: 1.5px solid var(--btn-edge); background: var(--btn-2);
  border-radius: 999px; padding: .4rem .7rem; font-weight: 700; font-size: .82rem;
  color: var(--btn-2-ink); cursor: pointer;
}
.chip:hover { border-color: var(--green-2); background: var(--green-soft); }
.auth-hero { text-align: center; margin-bottom: 1.2rem; }
.auth-hero img { width: 84px; height: 84px; border-radius: 22px; box-shadow: 0 14px 30px rgba(31,106,69,.22); }
.auth-hero h1 { margin: .85rem 0 .25rem; font-size: 1.85rem; }
.seg {
  display: grid; grid-template-columns: 1fr 1fr; gap: .35rem;
  background: var(--bg-2); padding: .3rem; border-radius: 999px; margin-bottom: .4rem;
}
.seg a {
  text-align: center; padding: .55rem; border-radius: 999px; color: var(--muted); font-weight: 700;
}
.seg a.on { background: #fff; color: var(--ink); box-shadow: var(--shadow); }

.and-or {
  display: flex; align-items: center; gap: .75rem;
  margin: .35rem 0 .15rem;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: .68rem;
}
.and-or::before, .and-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--edge);
}
.scan-shell { display: flex; flex-direction: column; gap: .75rem; }
.scan-shell.compact #reader { min-height: 220px; }
.scan-kid-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .55rem;
  margin-top: .85rem;
}
.scan-kid-actions .btn {
  min-height: 3.15rem;
  font-size: 1.02rem;
  margin-top: 0;
}
.scan-kid-actions .btn.warn {
  background: var(--gold);
  color: #1a1710;
}
.scan-kid-actions .btn:last-child {
  grid-column: 1 / -1;
}
#reader {
  width: 100%; min-height: 320px; border-radius: 1.3rem; overflow: hidden;
  background: #101411; box-shadow: var(--shadow);
}
#reader video, #reader canvas { border-radius: 1.3rem !important; }
.scan-result {
  margin-top: .2rem; padding: 1rem 1.05rem; border-radius: 1.15rem;
  background: var(--green-soft); color: var(--ink);
}
.scan-result.ok { background: var(--green-soft); }
.scan-result.low { background: #fff4e0; }
.scan-result.out { background: #fdecea; }
.scan-result.want { background: #eef4ff; }
.scan-result .btn { margin-top: 0; }
.scan-status-card h2 { margin: .4rem 0 0; font-size: 1.4rem; }
.qty {
  font-size: 1.55rem; font-weight: 800; margin: .35rem 0 .15rem;
  letter-spacing: -0.04em;
}
.qty .muted { font-size: 1rem; font-weight: 600; }

.attention {
  display: block;
  margin: 0 0 .85rem;
  padding: .9rem 1.05rem;
  border-radius: 1.15rem;
  background: #fff4e0;
  color: var(--ink);
  font-weight: 700;
  box-shadow: var(--shadow);
}
.attention.is-out { background: #fdecea; }
.attention strong { font-weight: 800; }
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.photo-grid img { width: 100%; height: 150px; object-fit: cover; border-radius: 1rem; }
.photo-strip {
  display: flex; gap: .45rem; overflow-x: auto; margin: .65rem 0 .2rem;
  scrollbar-width: none;
}
.photo-strip::-webkit-scrollbar { display: none; }
.photo-strip img {
  width: 5.6rem; height: 5.6rem; object-fit: cover; border-radius: .85rem;
  flex: 0 0 auto; background: #fff;
}
.photo-quick { margin-top: .75rem; }
.photo-btn { position: relative; overflow: hidden; }
.photo-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
details.more { margin: .85rem 0 .2rem; }
details.more > summary {
  cursor: pointer;
  font-weight: 800;
  background: var(--btn-2);
  color: var(--btn-2-ink);
  border: 1.5px solid var(--btn-edge);
  border-radius: .75rem;
  padding: .55rem .85rem;
  list-style: none;
}
details.more > summary::-webkit-details-marker { display: none; }
.choice-grid .btn:last-child { grid-column: auto; }
.choice-grid { grid-template-columns: 1fr 1fr; }
.choice-grid .btn, .choice-grid a.btn, .choice-grid label.btn { width: 100%; }

.empty {
  text-align: center; padding: 1.4rem .8rem; color: var(--muted);
}
.empty strong { display: block; color: var(--ink); margin-bottom: .25rem; }

.detail-photo {
  display: block;
  max-width: 220px;
  max-height: 220px;
  object-fit: contain;
  border-radius: 0.85rem;
  margin: 0.6rem 0;
  background: var(--bg-2);
}
.facts {
  display: grid;
  gap: 0.45rem 1rem;
  margin: 0;
}
.facts > div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 0.4rem; }
.facts dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.facts dd { margin: 0; font-weight: 600; }

.install-card { display: flex; flex-direction: column; gap: .45rem; }
.install-card .hint { color: var(--muted); font-size: .88rem; }

body.platform { padding-bottom: 1.5rem; }
.wrap.plat { width: min(920px, calc(100% - 1.5rem)); }
.plat-nav {
  display: flex; gap: .4rem; flex-wrap: wrap;
  margin: .15rem 0 1rem;
}
.plat-nav a {
  padding: .45rem .85rem; border-radius: 999px;
  background: var(--card); border: 1px solid var(--edge);
  color: var(--ink); font-weight: 700; font-size: .82rem;
}
.plat-nav a.on { background: var(--green); color: #fff; border-color: var(--green); }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: .75rem;
  margin-bottom: .4rem;
}
.stat-grid .tile { min-height: 6.2rem; }
.btn-row select { width: auto; min-width: 7.5rem; }
.leader-add .btn-row { align-items: stretch; }
.leader-add input { width: auto; flex: 1; min-width: 12rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.find-box { flex: 1; min-width: 0; max-width: 14rem; }
@media (max-width: 420px) { .find-box { max-width: 6.8rem; } }
.find-box input {
  width: 100%; padding: .55rem .8rem; border-radius: 999px;
  font-size: .9rem;
}
.needs-stack { display: grid; gap: .55rem; margin: 0 0 .95rem; }
.need-card {
  display: flex; flex-direction: column; gap: .15rem;
  padding: .9rem 1.05rem; border-radius: 1.15rem;
  background: #fff4e0; color: var(--ink); box-shadow: var(--shadow);
  text-decoration: none;
}
.need-card.is-out { background: #fdecea; }
.need-card.is-low { background: #fff4e0; }
.need-card .kicker {
  font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); font-weight: 800;
}
.need-card strong { font-size: 1.05rem; letter-spacing: -0.02em; }
.activity-strip h2 { margin: .65rem 1rem .2rem; }
.basket-row {
  display: flex; align-items: center; gap: .85rem;
  padding: .95rem .85rem; border-bottom: 1px solid var(--edge);
  min-height: 3.6rem;
}
.basket-row:last-child { border-bottom: 0; }
.basket-row strong { display: block; }
.basket-copy { min-width: 0; flex: 1; }
.basket-check-wrap { display: flex; margin: 0; }
.basket-check {
  width: 1.55rem; height: 1.55rem; flex-shrink: 0; accent-color: var(--green);
}
.basket-drop { flex: 0 0 auto; }
.basket-row.picked { background: var(--green-soft); }
.basket-bulk { margin: 0 0 .85rem; }
.room-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  margin: .35rem 0;
  font-weight: 700;
}
.room-split input { max-width: 5.5rem; text-align: center; }
.basket-row.got { opacity: .45; text-decoration: line-through; }
.more-sheet {
  position: fixed;
  left: .65rem; right: .65rem;
  bottom: calc(var(--nav-h) + var(--safe-b) + .55rem);
  z-index: 45;
  background: var(--card);
  border-radius: 1.15rem;
  box-shadow: 0 18px 50px rgba(20,24,22,.22);
  padding: .5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .15rem;
  max-height: min(70dvh, 28rem);
  overflow: auto;
}
.more-sheet[hidden] { display: none; }
.more-sheet a {
  display: flex; align-items: center;
  padding: .75rem .85rem;
  border-radius: .85rem;
  color: var(--ink);
  font-weight: 700;
  min-height: 2.7rem;
}
.more-sheet a:hover { background: var(--green-soft); }
.nav .nav-more svg { width: 1.35rem; height: 1.35rem; }
.vin-diff-row {
  display: flex; align-items: flex-start; gap: .55rem;
  padding: .4rem 0;
  color: inherit;
  font-weight: 650;
  text-transform: none;
  letter-spacing: 0;
}
.vin-diff-row span { display: flex; flex-direction: column; gap: .1rem; }
.scan-status-card .row-pic { margin: 0 0 .55rem; width: 3.2rem; height: 3.2rem; flex-basis: 3.2rem; }
.scan-toast { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.scan-toast .row-pic { width: 2.2rem; height: 2.2rem; flex-basis: 2.2rem; font-size: .9rem; }
.inv-search {
  display: flex;
  gap: .4rem;
  margin: 0 0 .85rem;
}
.inv-search input { flex: 1; min-width: 0; }
.inv-item {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: .75rem;
  align-items: start;
  padding: .9rem 1rem;
  border-bottom: 1px solid var(--edge);
}
.inv-item:last-child { border-bottom: 0; }
.inv-pic { display: block; }
.inv-pic .row-pic,
.inv-item .row-pic {
  width: 3.5rem;
  height: 3.5rem;
  flex-basis: 3.5rem;
  border-radius: .9rem;
}
.inv-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.inv-top { display: block; min-width: 0; color: inherit; }
.inv-top strong {
  display: block;
  font-size: 1.12rem;
  line-height: 1.25;
  font-weight: 800;
}
.inv-top p {
  margin: .2rem 0 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.35;
}
.inv-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem .55rem;
}
.inv-link {
  border: 0;
  background: transparent;
  color: var(--green);
  font: inherit;
  font-size: .88rem;
  font-weight: 800;
  padding: .2rem .1rem;
  cursor: pointer;
}
.inv-room { padding: 0; overflow: hidden; }
.inv-room-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .75rem;
  padding: .75rem 1rem .4rem;
  color: inherit;
  background: var(--card);
}
.inv-room-head h2 { margin: 0; font-size: 1.08rem; }
.inv-room-head span { color: var(--muted); font-weight: 700; }
.place-chips {
  display: flex; gap: .4rem; overflow-x: auto; margin: 0 0 .85rem;
  scrollbar-width: none;
}
.place-chips a {
  padding: .4rem .75rem; border-radius: 999px; background: var(--btn-2);
  border: 1.5px solid var(--btn-edge); color: var(--btn-2-ink); font-weight: 700;
  font-size: .78rem; white-space: nowrap;
}
.place-chips a.on { background: var(--green); color: #fff; border-color: var(--green); }
.onhand-row { align-items: center; gap: .55rem; }
.row-main {
  display: flex;
  align-items: center;
  gap: .85rem;
  min-width: 0;
  flex: 1;
  color: inherit;
}
.row-main > div { min-width: 0; flex: 1; }
.qty-stepper {
  display: flex;
  align-items: center;
  gap: .2rem;
  flex: 0 0 auto;
}
.qty-stepper .qty-btn {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: .75rem;
  border: 1.5px solid var(--btn-edge);
  background: var(--btn-2);
  color: var(--btn-2-ink);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  padding: 0;
}
.qty-stepper .qty-btn:active { background: var(--green-soft); }
.qty-stepper.busy { opacity: .55; pointer-events: none; }
.qty-stepper.detail-qty {
  margin: .35rem 0 .55rem;
  gap: .45rem;
}
.qty-stepper.detail-qty .qty { margin: 0; }
.exp-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .15rem;
  width: 100%;
  margin: .55rem 0;
  padding: .75rem .85rem;
  text-align: left;
  background: var(--btn-2);
  border: 1.5px solid var(--btn-edge);
  border-radius: .9rem;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.exp-card .kicker {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.exp-card strong { font-size: 1.02rem; }
.exp-card:hover { background: var(--green-soft); }
.lot-form .lot-row {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: .55rem;
  margin: .85rem 0;
  align-items: start;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--edge);
}
.lot-form .lot-row:last-child { border-bottom: 0; }
.lot-form .lot-row label { margin: 0; }
.lot-form .lot-row .lot-date { grid-column: 1 / -1; }
.lot-form .lot-hint { display: block; margin-top: .2rem; font-size: .78rem; }
.room-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .75rem;
  padding: .15rem 0 .5rem;
  color: inherit;
}
.room-head h2 { margin: 0; font-size: 1.15rem; }
.onhand-qty {
  flex: 0 0 2.6rem;
  min-width: 2.6rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--green);
  text-align: center;
}
#family-intro{display:none;position:fixed;inset:0;z-index:2147483000;background:#1c1814;align-items:stretch;justify-content:center;overflow:hidden}
html.family-intro-on #family-intro{display:flex}
html.family-intro-on,html.family-intro-on body{overflow:hidden}
#family-intro video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
#family-intro .family-intro-veil{position:absolute;inset:0;background:linear-gradient(180deg,rgba(28,24,20,.12) 0%,rgba(28,24,20,.55) 100%);pointer-events:none}
#family-intro .family-intro-scan{position:absolute;left:10%;right:10%;height:2px;top:44%;background:#2f8c5a;box-shadow:0 0 14px #2f8c5a;opacity:0;pointer-events:none}
html.family-intro-on #family-intro .family-intro-scan{animation:familyIntroScan 1.55s ease-in-out .15s 1}
@keyframes familyIntroScan{0%{opacity:0;transform:translateY(-80px)}14%{opacity:.95}78%{opacity:.8}100%{opacity:0;transform:translateY(100px)}}
#family-intro .family-intro-mark{position:relative;z-index:2;margin-top:auto;margin-bottom:max(3.5rem,12vh);display:flex;flex-direction:column;align-items:center;gap:.35rem;color:#f3f1ec;text-align:center;opacity:0;transform:translateY(8px);transition:opacity .45s ease,transform .45s ease;pointer-events:none}
html.family-intro-brand #family-intro .family-intro-mark{opacity:1;transform:none}
#family-intro .family-intro-mark img{width:52px;height:52px;border-radius:14px;box-shadow:0 8px 24px rgba(0,0,0,.35)}
#family-intro .family-intro-mark strong{font:700 1.15rem/1.2 system-ui,-apple-system,sans-serif;letter-spacing:-.03em}
#family-intro .family-intro-mark span{font:600 .72rem/1.2 system-ui,-apple-system,sans-serif;letter-spacing:.14em;text-transform:uppercase;color:#b7ebc6}
#family-intro .family-intro-skip{position:absolute;top:calc(.7rem + env(safe-area-inset-top,0px));right:.8rem;z-index:3;border:0;background:rgba(20,24,22,.42);color:#f3f1ec;border-radius:999px;padding:.35rem .75rem;font:600 .8rem system-ui,sans-serif;cursor:pointer}
html.family-intro-out #family-intro{opacity:0;transition:opacity .4s ease}
@media (prefers-reduced-motion: reduce){html.family-intro-on #family-intro .family-intro-scan{animation:none}}

.cal-connect { min-width: 0; overflow: hidden; }
.cal-connect fieldset { min-width: 0; }
.cal-target {
  margin: 0 0 .55rem;
  font-weight: 600;
  font-size: .88rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.cal-email { font-weight: 800; }
.cal-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 7.6rem;
  gap: .4rem;
  margin: 0 0 .55rem;
}
.cal-row input, .cal-row select {
  width: 100%;
  min-width: 0;
  padding: .65rem .7rem;
}
.cal-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .4rem;
  margin: 0 0 .5rem;
}
.cal-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: .62rem .45rem;
  border: 1.5px solid var(--ink);
  border-radius: .9rem;
  background: var(--card);
  text-transform: none;
  letter-spacing: 0;
  font-size: .88rem;
  font-weight: 750;
  color: var(--ink);
  cursor: pointer;
}
.cal-chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.cal-chip:has(input:checked) {
  background: var(--green-soft);
  border-color: var(--green);
  color: var(--green);
}
.cal-check {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin: 0 0 .55rem;
  text-transform: none;
  letter-spacing: 0;
  font-size: .88rem;
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
}
.cal-check input { width: auto; margin: 0; accent-color: var(--green); flex-shrink: 0; }
.cal-apps { display: flex; flex-wrap: wrap; gap: .45rem; margin: .55rem 0 .35rem; }
.cal-apps .btn { flex: 1 1 5.5rem; }
.cal-manual { margin-top: .65rem; }
.cal-manual summary { cursor: pointer; font-weight: 700; font-size: .82rem; color: var(--muted); }
@media (max-width: 420px) {
  .cal-row { grid-template-columns: 1fr; }
}

@media (max-width: 959px) {
  .has-nav .topbar.wrap {
    position: sticky;
    top: 0;
    z-index: 50;
    width: auto;
    max-width: none;
    margin: 0;
    padding: calc(.4rem + var(--safe-t)) .85rem .45rem;
    background: color-mix(in srgb, var(--bg) 78%, transparent);
    backdrop-filter: blur(22px) saturate(1.6);
    -webkit-backdrop-filter: blur(22px) saturate(1.6);
    border-bottom: 1px solid var(--edge);
  }
  .has-nav .brand img { width: 32px; height: 32px; border-radius: 9px; }
  .has-nav .brand-meta strong { font-size: .95rem; }
  .has-nav main.wrap {
    width: min(720px, calc(100% - 1.15rem));
    padding-top: .45rem;
  }
  .page-head { margin: .15rem 0 .85rem; align-items: flex-start; }
  .page-head h1 { font-size: 1.42rem; }
  .page-head p { font-size: .88rem; }
  .grid { gap: .55rem; }
  .tile { min-height: 6.5rem; padding: .85rem .9rem; border-radius: 1.1rem; }
  .tile .label { font-size: 1.02rem; }
  .nav {
    height: calc(3.9rem + var(--safe-b));
    padding-top: .15rem;
    background: color-mix(in srgb, var(--card) 88%, transparent);
  }
  .nav a {
    min-height: 2.7rem;
    font-size: .58rem;
    letter-spacing: .04em;
    text-transform: uppercase;
  }
  .nav a svg { width: 1.42rem; height: 1.42rem; }
  .nav .scan-fab {
    width: 3.55rem;
    height: 3.55rem;
    margin-top: -1.35rem;
  }
  .sheet-overlay { padding: 0; }
  .sheet-panel {
    width: 100%;
    height: min(94dvh, calc(100dvh - var(--safe-t) - .35rem));
    max-height: calc(100svh - var(--safe-t));
    border-radius: 1.2rem 1.2rem 0 0;
  }
  .who-menu .sheet {
    position: fixed;
    left: .65rem;
    right: .65rem;
    top: auto;
    bottom: calc(var(--nav-h) + var(--safe-b) + .55rem);
    min-width: 0;
    max-height: min(70dvh, 28rem);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 1.15rem;
    padding: .5rem;
    box-shadow: 0 18px 50px rgba(20, 24, 22, .22);
  }
  .who-menu .sheet a,
  .who-menu .sheet button {
    min-height: 2.7rem;
    padding: .75rem .85rem;
    font-size: 1rem;
  }
  .who-chip { min-height: 2.55rem; }
  .find-box { max-width: 9.5rem; }
  .find-box input { min-height: 2.55rem; padding: .45rem .75rem; border-radius: 999px; }
  .tabs { gap: .35rem; margin-bottom: .85rem; }
  .tabs a {
    min-height: 2.45rem;
    display: inline-flex;
    align-items: center;
    padding: .45rem .9rem;
  }
  .card { padding: 1rem 1rem 1.05rem; }
  html.family-standalone body.has-nav {
    padding-bottom: calc(var(--nav-h) + var(--safe-b) + .85rem);
  }
  [data-theme="dark"] .has-nav .topbar.wrap {
    background: color-mix(in srgb, #0c0d0e 78%, transparent);
  }
  [data-theme="dark"] .nav {
    background: color-mix(in srgb, #16181b 88%, transparent);
  }
}
.label-sheet {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .85rem;
}
.qr-label {
  margin: 0; padding: .7rem; background: #fff; border: 1px solid var(--edge);
  border-radius: 1rem; text-align: center;
}
.qr-label img { width: 7.5rem; height: 7.5rem; }
.qr-label figcaption { display: flex; flex-direction: column; gap: .1rem; margin-top: .35rem; }
.qr-label span { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
@media print {
  .no-print, .topbar, .nav, .side-nav, .find-box, .desk-links, .ask-root { display: none !important; }
  body, body.has-nav { padding: 0; background: #fff; }
  .label-sheet { grid-template-columns: repeat(3, 1fr); }
  .wrap { width: auto; margin: 0; }
}

.add-fold { padding: .9rem 1rem; }
.desk-form { display: grid; gap: 0 1rem; }
.desk-form .span-2 { grid-column: 1 / -1; }
.rec-stats { margin: 0 0 .85rem; }
.rec-table { display: grid; gap: .55rem; margin: .7rem 0 1.2rem; }
.rec-row {
  display: grid;
  gap: .15rem;
  padding: .95rem 1rem;
  background: var(--card);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
}
.rec-row strong { display: block; letter-spacing: -0.02em; }
.rec-kind { display: block; font-size: .82rem; }
.rec-head { display: none; }
.rec-pdf {
  display: flex; flex-direction: column; justify-content: center;
  min-height: 8rem; padding: 1rem;
  background: var(--green-soft); border-radius: 1rem; color: var(--ink);
}
.rec-files a img { width: 100%; height: 150px; object-fit: cover; border-radius: 1rem; }
.note-files { margin-top: .55rem; }
.followup {
  padding: .85rem 0;
  border-bottom: 1px solid var(--edge);
}
.followup:last-child { border-bottom: 0; }
.followup strong { display: block; margin: .15rem 0 0; }
.log-totals .qty { margin: 0 0 .2rem; }
.part-open-row {
  width: 100%;
  text-align: left;
  background: var(--btn-2);
  border: 1.5px solid var(--btn-edge);
  border-radius: .9rem;
  color: var(--btn-2-ink);
  font: inherit;
  cursor: pointer;
  margin: .4rem 0;
  padding: .75rem .85rem;
}
.part-open-row:hover { background: var(--green-soft); }
.sheet-add {
  margin-top: 1rem;
  padding: .7rem .85rem;
}
.sheet-add > summary {
  list-style: none;
  cursor: pointer;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--btn);
  border: 1.5px solid var(--btn);
  border-radius: .85rem;
  padding: .7rem 1rem;
  min-height: 2.75rem;
}
.sheet-add > summary::-webkit-details-marker { display: none; }
.sheet-add[open] > summary { margin-bottom: .65rem; }
.landing-brand {
  display: flex; align-items: center; gap: .75rem; color: var(--ink); min-width: 0;
}
.landing-points { display: none; }

@media (min-width: 960px) {
  body.has-nav {
    padding-top: 0;
    padding-bottom: 1.6rem;
    padding-left: var(--side-w);
  }
  body.has-nav .nav { display: none; }
  .more-sheet, .nav-more { display: none !important; }
  .side-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0; top: 0; bottom: 0;
    width: var(--side-w);
    padding: 1.15rem 1rem 1.2rem;
    background: var(--card);
    border-right: 1px solid var(--edge);
    z-index: 40;
    overflow-y: auto;
  }
  .side-brand {
    display: flex; align-items: center; gap: .7rem;
    color: var(--ink); margin: 0 .15rem 1.1rem;
  }
  .side-brand img {
    width: 40px; height: 40px; border-radius: 12px;
    box-shadow: 0 6px 16px rgba(31, 106, 69, .18);
  }
  .side-brand strong { display: block; font-size: 1.02rem; letter-spacing: -0.03em; }
  .side-brand small {
    display: block; color: var(--muted); font-weight: 600;
    letter-spacing: .06em; text-transform: uppercase; font-size: .62rem;
    max-width: 9.5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .side-links { display: flex; flex-direction: column; gap: .12rem; }
  .side-links a,
  .side-links .side-scan {
    padding: .55rem .7rem;
    border-radius: .75rem;
    color: var(--ink);
    font-weight: 700;
    font-size: .92rem;
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    font-family: inherit;
    cursor: pointer;
  }
  .side-links a:hover { background: var(--green-soft); color: var(--ink); }
  .side-links a.active { background: var(--green); color: #fff; }
  .side-foot { margin-top: auto; padding: 1.1rem .7rem 0; font-size: .75rem; }
  .has-nav .topbar.wrap {
    width: auto;
    max-width: none;
    margin: 0;
    padding: .85rem 1.5rem .55rem;
    background: rgba(255,255,255,.72);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--edge);
    position: sticky; top: 0; z-index: 30;
  }
  [data-theme="dark"] .has-nav .topbar.wrap { background: rgba(12,13,14,.82); }
  .has-nav .brand { display: none; }
  .desk-links {
    display: flex; align-items: center; gap: .9rem;
    font-weight: 700; font-size: .9rem;
  }
  .desk-links a { color: var(--ink); }
  .has-nav .wrap {
    width: min(1120px, calc(100% - 2.6rem));
    margin: 0 auto;
  }
  .has-nav main.wrap { padding-top: .5rem; }
  .find-box { max-width: 22rem; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .tile { min-height: 8rem; }
  .tile:hover { box-shadow: 0 12px 28px rgba(20,24,22,.1); }
  .page-head h1 { font-size: 2rem; }
  .desk-form {
    grid-template-columns: 1fr 1fr;
  }
  .sys-jump {
    position: sticky;
    top: 3.6rem;
    z-index: 20;
    padding: .45rem 0 .55rem;
    background: var(--bg);
  }
  .sys-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .85rem;
  }
  .sys-list .sys-card { margin: 0; }
  .rec-table {
    gap: 0;
    border: 1px solid var(--edge);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--card);
    box-shadow: var(--shadow);
  }
  .rec-row {
    grid-template-columns: 7.2rem 1.4fr 1fr 6.2rem 6.4rem;
    align-items: center;
    gap: .75rem;
    padding: .8rem 1.05rem;
    margin: 0;
    border: 0;
    border-bottom: 1px solid var(--edge);
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }
  .rec-row:last-child { border-bottom: 0; }
  .rec-row:hover { background: var(--green-soft); }
  .rec-head {
    display: grid;
    font-size: .68rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 800;
    background: var(--bg-2);
  }
  .rec-head:hover { background: var(--bg-2); }
  .rec-kind { display: block; }

  .landing {
    width: min(1080px, calc(100% - 3rem));
    padding: 1.6rem 0 2.4rem;
    gap: 1.4rem;
  }
  .landing-top { justify-content: space-between; }
  .landing-top-links {
    display: flex; align-items: center; gap: 1rem;
    font-weight: 700;
  }
  .landing-top-links a { color: var(--ink); }
  .landing-hero { max-width: 38rem; padding: 1.4rem 0 .2rem; }
  .landing-hero h1 { font-size: clamp(2.2rem, 4.2vw, 3.15rem); }
  .landing-cta {
    flex-direction: row;
    max-width: 28rem;
  }
  .landing-cta .btn { width: auto; min-width: 10rem; }
  .landing-keys {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: start;
  }
  .landing-keys h2 { grid-column: 1 / -1; }
  .landing-keys .key-card { margin: 0; }
  .landing-points {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
  }
  .landing-points article {
    background: var(--card);
    border: 1px solid var(--edge);
    border-radius: var(--radius);
    padding: 1.05rem 1rem;
    box-shadow: var(--shadow);
  }
  .landing-points p { margin: .35rem 0 0; color: var(--muted); font-weight: 600; line-height: 1.4; }
  .landing-install { max-width: 26rem; }

  .auth-desk-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1080px, calc(100% - 3rem));
    margin: 0 auto;
    padding: 1.1rem 0 0;
    font-weight: 700;
  }
  .auth-desk-bar a { color: var(--ink); }
  .auth-page { justify-content: flex-start; padding-top: 1.4rem; }
  .auth-page .wrap { width: min(440px, 100%); }
  #family-pwa-install { max-width: 22rem; left: auto; right: 1.5rem; }
}

.vault-lock { margin-bottom: 1rem; }
.vault-open-note { margin: -.35rem 0 .85rem; }
.vault-find { margin-bottom: .85rem; }
.vault-card { margin: 0 0 .85rem; }
.vault-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  margin: 0 0 .65rem;
}
.vault-card-head h2 { margin: 0; font-size: 1.15rem; }
.vault-card-head .btn { flex: 0 0 auto; }
.vault-secrets .secret-row {
  display: grid;
  gap: .25rem;
  padding: .65rem 0;
  border-bottom: 1px solid var(--edge);
}
.vault-secrets .secret-row:last-child { border-bottom: 0; }
.vault-secrets .secret-row .kicker { margin: 0; }
.secret-plain { margin: 0; font-weight: 650; word-break: break-word; }
.secret-line {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  align-items: center;
}
.secret-line input {
  flex: 1 1 10rem;
  margin: 0;
  font-weight: 650;
  min-width: 0;
}
.secret-line .btn { flex: 0 0 auto; }
.people-pick {
  display: grid;
  gap: .45rem;
  margin: .35rem 0 .7rem;
}
.person-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  font-weight: 650;
}
.person-row select { width: auto; min-width: 8rem; margin: 0; }
.access-now,
.access-list,
.access-ended,
.access-log {
  list-style: none;
  margin: .35rem 0 .85rem;
  padding: 0;
  display: grid;
  gap: .55rem;
}
.access-person {
  display: grid;
  gap: .55rem;
  padding: .7rem .8rem;
  border: 1.5px solid var(--edge);
  border-radius: 12px;
  background: var(--card);
}
.access-person .access-remain {
  margin: .15rem 0 0;
  font-weight: 800;
}
.access-person .muted { margin: .15rem 0 0; }
.access-actions {
  display: grid;
  gap: .4rem;
}
.access-actions form {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  align-items: center;
  margin: 0;
}
.access-actions select { margin: 0; flex: 1 1 8rem; }
.give-access { margin: .5rem 0 1rem; }
.access-ended li,
.access-list li,
.access-log li {
  display: grid;
  gap: .1rem;
  padding: .35rem 0;
  border-bottom: 1px solid var(--edge);
  font-size: .92rem;
}
.access-ended li:last-child,
.access-list li:last-child,
.access-log li:last-child { border-bottom: 0; }
.ask-fab {
  position: fixed;
  right: .85rem;
  bottom: calc(var(--nav-h) + var(--safe-b) + .7rem);
  z-index: 45;
  min-width: 3.1rem;
  height: 3.1rem;
  padding: 0 .95rem;
  border-radius: 999px;
  border: 0;
  background: #1f6a45;
  color: #fff;
  font-weight: 800;
  font-size: .92rem;
  font-family: inherit;
  box-shadow: 0 10px 24px rgba(0,0,0,.28);
  cursor: pointer;
}
.ask-fab[hidden] { display: none !important; }
.ask-panel {
  position: fixed;
  left: .55rem;
  right: .55rem;
  top: calc(var(--safe-t) + .45rem);
  bottom: calc(var(--nav-h) + var(--safe-b) + .4rem);
  z-index: 55;
  display: none;
  flex-direction: column;
  background: #171b18;
  color: #f4f1e8;
  border: 1.5px solid #0c0f0d;
  border-radius: 1.1rem;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  overflow: hidden;
}
.ask-panel.is-open { display: flex; }
.ask-panel[hidden] { display: none !important; }
.ask-head {
  display: flex;
  flex-direction: column;
  gap: .28rem;
  flex: 0 0 auto;
  padding: .7rem .85rem .65rem;
  border-bottom: 1px solid #2c332e;
  color: #f4f1e8;
}
.ask-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .6rem;
}
.ask-head strong { font-size: 1.05rem; color: #f4f1e8; line-height: 1.1; }
.ask-actions { display: flex; gap: .35rem; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; }
.ask-actions .btn { flex: 0 0 auto; }
.ask-hint {
  margin: 0;
  color: #e6e2d6;
  font-size: .84rem;
  font-weight: 600;
  line-height: 1.35;
}
.ask-mine {
  display: grid;
  gap: .35rem;
  flex: 0 0 auto;
  padding: .65rem .85rem .75rem;
  border-bottom: 1px solid #2c332e;
  background: #171b18;
  color: #f4f1e8;
}
.ask-mine[hidden] { display: none !important; }
.ask-mine label {
  margin: 0;
  color: #e6e2d6;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}
.ask-mine input,
.ask-mine textarea {
  width: 100%;
  margin: 0;
  padding: .45rem .55rem;
  border: 1px solid #2c332e;
  border-radius: .55rem;
  background: #121512;
  color: #f4f1e8;
  font: inherit;
  font-size: .9rem;
  font-weight: 600;
}
.ask-mine textarea { min-height: 4.2rem; resize: vertical; }
.ask-mine .btn { justify-self: start; margin: .15rem 0 0; }
.ask-mine-rules,
.ask-mine-status {
  margin: 0;
  color: #e6e2d6;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.35;
}
.ask-mine-status { color: #d7c27a; }
.ask-panel .btn.secondary {
  background: #f3efe4;
  color: #141814;
  border-color: #2a2f2c;
}
.ask-log {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: .75rem .9rem;
  display: grid;
  gap: .55rem;
  align-content: start;
  background: #121512;
}
.ask-bubble {
  max-width: 92%;
  padding: .55rem .7rem;
  border-radius: .85rem;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.ask-bubble.me {
  justify-self: end;
  background: #2d6a45;
  color: #fff;
}
.ask-bubble.them {
  justify-self: start;
  background: #f3efe4;
  color: #141814;
}
.ask-bubble.pending { opacity: .85; font-weight: 500; }
.ask-bubble.err { background: #f4d0c8; color: #5c1810; }
.ask-retry {
  display: inline-flex;
  margin-top: .45rem;
  padding: .35rem .7rem;
  border: 0;
  border-radius: .65rem;
  background: #5c1810;
  color: #fff;
  font: inherit;
  font-size: .82rem;
  font-weight: 800;
  cursor: pointer;
}
.ask-confirm {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .5rem;
}
.ask-confirm-btn {
  display: inline-flex;
  padding: .35rem .7rem;
  border: 0;
  border-radius: .65rem;
  background: #2d6a45;
  color: #fff;
  font: inherit;
  font-size: .82rem;
  font-weight: 800;
  cursor: pointer;
}
.ask-confirm-btn:nth-child(2) { background: #5c1810; }
.ask-confirm-btn:nth-child(3) { background: #2c332e; }
.ask-bubble a { font-weight: 800; color: inherit; }
.ask-form {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: .45rem;
  flex: 0 0 auto;
  padding: .6rem .7rem .7rem;
  border-top: 1px solid #2c332e;
  align-items: end;
  background: #171b18;
}
.ask-cam {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  min-height: 2.6rem;
  padding: 0 .7rem;
  border-radius: .7rem;
  background: #f3efe4;
  color: #141814;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}
.ask-mic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  min-height: 2.6rem;
  padding: 0 .7rem;
  border: 1px solid #2a2f2c;
  border-radius: .7rem;
  background: #f3efe4;
  color: #141814;
  font: inherit;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}
.ask-mic[hidden] { display: none !important; }
.ask-mic.is-listening { background: #5c1810; color: #fff; }
.ask-preview {
  display: none;
  grid-column: 1 / -1;
  align-items: center;
  gap: .55rem;
  color: #f4f1e8;
}
.ask-preview.is-on { display: flex; }
.ask-preview[hidden] { display: none !important; }
.ask-preview img,
.ask-shot-img {
  width: 3rem;
  height: 3rem;
  object-fit: cover;
  border-radius: .45rem;
  background: #0e110f;
}
.ask-shot-img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 9rem;
  margin-top: .4rem;
}
.ask-preview span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}
.ask-form textarea {
  margin: 0;
  min-height: 2.6rem;
  max-height: 7rem;
  resize: none;
  background: #f3efe4;
  color: #141814;
  border: 1px solid #2a2f2c;
}
.ask-form .btn { margin: 0; background: #2d6a45; color: #fff; }
.ask-form .btn.secondary { background: #f3efe4; color: #141814; }
@media (min-width: 960px) {
  .ask-fab {
    right: 1.25rem;
    bottom: 1.25rem;
  }
  .ask-panel {
    top: auto;
    left: auto;
    right: 1.25rem;
    bottom: 1.25rem;
    width: min(26rem, calc(100vw - 2.5rem));
    height: min(36rem, calc(100dvh - 2.5rem));
  }
}
.ask-rooms {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 0 0 1rem;
}
.ask-rooms a {
  display: inline-flex;
  align-items: center;
  min-height: 2.1rem;
  padding: .25rem .75rem;
  border-radius: 999px;
  background: var(--card, #f3efe4);
  color: inherit;
  font-weight: 800;
  font-size: .88rem;
  text-decoration: none;
  border: 1.5px solid #141814;
}
.ask-rooms a.active {
  background: #1f6a45;
  color: #fff;
  border-color: #0c0f0d;
}
.ask-desk-root {
  margin: 0 0 1.5rem;
}
.ask-desk-root .ask-panel {
  position: relative;
  inset: auto;
  display: flex;
  width: 100%;
  height: min(70dvh, 42rem);
  max-height: none;
  border-radius: 1.1rem;
}
.ask-desk-root .ask-fab,
.ask-page .ask-fab { display: none !important; }
.ask-help-card { overflow: auto; }
.ask-help-body {
  margin: 0;
  white-space: pre-wrap;
  font-family: inherit;
  font-weight: 600;
  line-height: 1.45;
  font-size: .95rem;
}

.vault-more { margin: .7rem 0 0; }
.vault-more > summary {
  cursor: pointer;
  font-weight: 800;
  padding: .45rem 0;
}
.vault-activity { margin-top: .85rem; }
.vault-activity > summary { font-size: .95rem; }
