:root {
  --bg: #f3f7ff;
  --card: #ffffff;
  --ink: #0f1f3d;
  --muted: #5d6b86;
  --faint: #8d99b0;
  --line: #e5ebf5;
  --pri: #2563eb;
  --pri-soft: #e8f0ff;
  --cyan: #06b6d4;
  --violet: #8b5cf6;
  --ok: #16a34a;   --ok-soft: #e7f8ee;
  --warn: #d97706; --warn-soft: #fff4e0;
  --bad: #e11d48;  --bad-soft: #ffe8ee;
  --info: #0891b2; --info-soft: #e2f7fb;
  --grad: linear-gradient(135deg, #06b6d4 0%, #3b82f6 48%, #8b5cf6 100%);
  --grad-in: linear-gradient(140deg, #10b981 0%, #06b6d4 100%);
  --grad-out: linear-gradient(140deg, #f97316 0%, #ec4899 100%);
  --panel: #f6f9ff; --soft: #eef2f9; --soft2: #e9eef7; --input: #fbfcfe; --hover: #fafcff; --empty: #f1f4f9;
  --vio-soft: #f1ebff; --note-ink: #1e40af; --note-warn-ink: #92400e; --glass: rgba(255, 255, 255, .78); --glass2: rgba(255, 255, 255, .92);
  --hl: #eef4ff; --hl2: #f5efff; --taxi: #d97706; --taxi-bg: #fff4e0; --meal: #e11d48; --meal-bg: #ffe8ee;
  --spot-bg: linear-gradient(135deg, #fff7ed, #ffe4e6);
  color-scheme: light;
  --r: 18px;
  --shadow: 0 1px 2px rgba(15, 31, 61, .05), 0 8px 24px rgba(37, 99, 235, .08);
  --shadow-lg: 0 20px 50px rgba(37, 99, 235, .18);
  --nav-h: 68px;
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); }
body { font-size: 15px; line-height: 1.45; overscroll-behavior-y: contain; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--pri); text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
h1 { font-size: 24px; font-weight: 800; }
h2 { font-size: 18px; font-weight: 750; }
h3 { font-size: 15px; font-weight: 700; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.tiny { font-size: 11.5px; }
.nowrap { white-space: nowrap; }
.hide { display: none !important; }

/* ---------- moving background ---------- */
.bg { position: fixed; inset: 0; overflow: hidden; z-index: -1; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .45; animation: float 22s ease-in-out infinite; }
.b1 { width: 420px; height: 420px; background: #7dd3fc; top: -120px; left: -100px; }
.b2 { width: 380px; height: 380px; background: #c4b5fd; top: 30%; right: -140px; animation-delay: -7s; animation-duration: 26s; }
.b3 { width: 340px; height: 340px; background: #6ee7b7; bottom: -140px; left: 20%; animation-delay: -13s; animation-duration: 30s; opacity: .32; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, 40px) scale(1.08); }
  66% { transform: translate(-40px, 70px) scale(.94); }
}
@media (prefers-reduced-motion: reduce) { .blob { animation: none; } }

/* ---------- top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px;
  padding: calc(env(safe-area-inset-top) + 10px) 16px 10px;
  background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(229, 235, 245, .8);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.brand img { height: 32px; width: auto; max-width: 130px; object-fit: contain; }
.mark { background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; }
.brand .mark { width: 36px; height: 36px; border-radius: 11px; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.brand .t { line-height: 1.1; min-width: 0; }
.brand .t b { display: block; white-space: nowrap; font-size: 14.5px; font-weight: 800; letter-spacing: -.01em; }
.brand .t span { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.iconbtn {
  position: relative; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card); display: grid; place-items: center; cursor: pointer; flex: none;
}
.iconbtn svg { width: 20px; height: 20px; }
.iconbtn .dot { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-weight: 750; font-size: 14px; color: #fff; background: var(--grad); overflow: hidden;
}
.avatar.sm { width: 34px; height: 34px; font-size: 12.5px; }
.demo-bar { background: linear-gradient(90deg, #fde68a, #fbcfe8); color: #7c2d12; font-size: 12.5px; text-align: center; padding: 5px 10px; font-weight: 600; }

/* ---------- layout ---------- */
.app { min-height: 100vh; padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 16px); }
.view { max-width: 1100px; margin: 0 auto; padding: 18px 16px 8px; animation: fadein .25s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.stack { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.stack > * { min-width: 0; }
.row-flex { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spacer { flex: 1; }
.head { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.head .sub { color: var(--muted); font-size: 13.5px; margin-top: 2px; }

.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px; border: 1px solid rgba(229, 235, 245, .7); }
.card.flat { box-shadow: none; }
.card.pad0 { padding: 0; overflow: hidden; }
.hero {
  color: #fff; background: var(--grad); border: 0; position: relative; overflow: hidden; padding: 20px;
  box-shadow: var(--shadow-lg);
}
.hero::after { content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%; right: -70px; top: -90px; background: rgba(255,255,255,.14); }
.hero .muted { color: rgba(255, 255, 255, .85); }
.hero .chip { background: rgba(255, 255, 255, .2); color: #fff; border-color: transparent; }

/* ---------- tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .tiles { grid-template-columns: repeat(6, 1fr); } }
.tile {
  background: var(--card); border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow); cursor: pointer; text-align: left;
  border: 2px solid transparent; transition: transform .12s, border-color .12s; position: relative; overflow: hidden;
}
.tile:active { transform: scale(.98); }
.tile.on { border-color: currentColor; }
.tile .n { font-size: 28px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.tile .l { font-size: 12.5px; font-weight: 650; color: var(--muted); }
.tile .ic { position: absolute; right: 10px; top: 10px; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; }
.tile .ic svg { width: 17px; height: 17px; }
.t-ok { color: var(--ok); }     .t-ok .ic { background: var(--ok-soft); }
.t-warn { color: var(--warn); } .t-warn .ic { background: var(--warn-soft); }
.t-bad { color: var(--bad); }   .t-bad .ic { background: var(--bad-soft); }
.t-info { color: var(--info); } .t-info .ic { background: var(--info-soft); }
.t-pri { color: var(--pri); }   .t-pri .ic { background: var(--pri-soft); }
.t-vio { color: var(--violet); } .t-vio .ic { background: var(--vio-soft); }
.tile .n, .tile .l { position: relative; }

/* ---------- buttons, chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  padding: 11px 18px; border-radius: 13px; font-weight: 700; font-size: 14.5px; background: var(--soft); color: var(--ink);
  transition: transform .1s, filter .1s; text-decoration: none; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; cursor: default; }
.btn svg { width: 18px; height: 18px; }
.btn.pri { background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(59, 130, 246, .3); }
.btn.ok { background: #16a34a; color: #fff; }
.btn.bad { background: #e11d48; color: #fff; }
.btn.wa { background: #22c55e; color: #fff; }
.btn.ghost { background: transparent; border: 1.5px solid var(--line); }
.btn.white { background: var(--card); color: var(--pri); }
.btn.sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn.xs { padding: 5px 9px; font-size: 12px; border-radius: 9px; gap: 5px; }
.btn.xs svg { width: 14px; height: 14px; }
.btn.wide { width: 100%; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 650; background: var(--soft); color: var(--muted); border: 1px solid var(--line); }
.chip svg { width: 14px; height: 14px; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.info { background: var(--info-soft); color: var(--info); }
.pill.pri { background: var(--pri-soft); color: var(--pri); }
.pill.muted { background: var(--soft); color: var(--muted); }

.seg { display: inline-flex; background: var(--soft2); border-radius: 13px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 8px 14px; border-radius: 10px; font-weight: 700; font-size: 13.5px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 2px 6px rgba(15, 31, 61, .08); }
.scroll-x { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.scroll-x::-webkit-scrollbar { display: none; }
.filters { display: flex; gap: 8px; }
.filters .chip { cursor: pointer; white-space: nowrap; }
.filters .chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- forms ---------- */
.field { display: grid; gap: 5px; }
.field > span { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.input, select.input, textarea.input {
  width: 100%; border: 1.5px solid var(--line); background: var(--input); border-radius: 12px; padding: 11px 12px; outline: none;
  transition: border-color .15s, box-shadow .15s; min-height: 44px;
}
.input:focus { border-color: #93b4fb; box-shadow: 0 0 0 4px rgba(59, 130, 246, .12); background: var(--card); }
textarea.input { min-height: 80px; resize: vertical; }
.input.sm { min-height: 36px; padding: 6px 10px; font-size: 13.5px; border-radius: 10px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 520px) { .grid3 { grid-template-columns: 1fr 1fr; } }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; }
.check input { width: 20px; height: 20px; accent-color: var(--pri); }
.days { display: flex; gap: 6px; flex-wrap: wrap; }
.days label { display: grid; place-items: center; width: 44px; height: 38px; border-radius: 10px; border: 1.5px solid var(--line); cursor: pointer; font-weight: 700; font-size: 13px; }
.days input { display: none; }
.days input:checked + span { color: #fff; }
.days label:has(input:checked) { background: #2563eb; border-color: #2563eb; color: #fff; }
.err { background: var(--bad-soft); color: var(--bad); padding: 10px 12px; border-radius: 12px; font-weight: 600; font-size: 13.5px; }
.note { background: var(--pri-soft); color: var(--note-ink); padding: 10px 12px; border-radius: 12px; font-size: 13.5px; }
.note.warn { background: var(--warn-soft); color: var(--note-warn-ink); }

/* ---------- lists ---------- */
.list { display: grid; grid-template-columns: minmax(0, 1fr); }
.list > * { min-width: 0; }
.item { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); cursor: default; }
.item:last-child { border-bottom: 0; }
.item.click { cursor: pointer; }
.item.click:hover { background: var(--hover); }
.item .main { flex: 1; min-width: 0; }
.item .name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .meta { font-size: 12.5px; color: var(--muted); display: flex; gap: 6px 10px; flex-wrap: wrap; align-items: center; margin-top: 2px; }
.item .side { text-align: right; display: grid; gap: 4px; justify-items: end; }
.item .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.empty { text-align: center; padding: 34px 16px; color: var(--faint); }
.empty svg { width: 40px; height: 40px; opacity: .5; }

.thumb { width: 44px; height: 54px; border-radius: 10px; object-fit: cover; background: var(--soft); flex: none; cursor: zoom-in; }
.photo-big { width: 100%; max-height: 60vh; object-fit: contain; border-radius: 14px; background: #0f172a; }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--faint); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--hover); white-space: nowrap; position: sticky; top: 0; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tfoot td { font-weight: 800; background: var(--hover); }
.tbl tr:hover td { background: var(--hover); }

/* ---------- bottom nav ---------- */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: space-around;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: var(--glass2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.tab { flex: 1; display: grid; place-items: center; align-content: center; gap: 3px; color: var(--faint); font-size: 11px; font-weight: 700; position: relative; }
.tab svg { width: 23px; height: 23px; }
.tab.on { color: var(--pri); }
.tab.on::before { content: ""; position: absolute; top: 0; width: 34px; height: 3px; border-radius: 0 0 3px 3px; background: var(--grad); }
.tab .dot { position: absolute; top: 8px; left: calc(50% + 6px); min-width: 17px; height: 17px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 10.5px; display: grid; place-items: center; padding: 0 4px; }
@media (min-width: 900px) {
  .app { padding-bottom: 20px; padding-left: 96px; }
  .tabs { top: 0; bottom: 0; right: auto; width: 96px; height: auto; flex-direction: column; justify-content: flex-start; padding-top: 90px; gap: 8px; border-top: 0; border-right: 1px solid var(--line); }
  .tab { flex: none; height: 64px; }
  .tab.on::before { top: 12px; left: 0; width: 3px; height: 40px; border-radius: 0 3px 3px 0; }
  .top { padding-left: 16px; }
}

/* ---------- big check-in button ---------- */
.big-wrap { display: grid; place-items: center; padding: 10px 0 4px; }
.big-btn {
  width: 196px; height: 196px; border-radius: 50%; border: 0; cursor: pointer; color: #fff; position: relative;
  display: grid; place-items: center; align-content: center; gap: 4px; font-weight: 800; font-size: 22px;
  background: var(--grad-in); box-shadow: 0 18px 40px rgba(16, 185, 129, .35), inset 0 -6px 0 rgba(0,0,0,.08);
  transition: transform .12s;
}
.big-btn.out { background: var(--grad-out); box-shadow: 0 18px 40px rgba(236, 72, 153, .3), inset 0 -6px 0 rgba(0,0,0,.08); }
.big-btn:active { transform: scale(.96); }
.big-btn svg { width: 46px; height: 46px; }
.big-btn small { font-size: 12.5px; font-weight: 600; opacity: .9; }
.big-btn::before, .big-btn::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 3px solid rgba(16, 185, 129, .35); animation: ring 2.2s ease-out infinite; }
.big-btn.out::before, .big-btn.out::after { border-color: rgba(236, 72, 153, .3); }
.big-btn::after { animation-delay: 1.1s; }
@keyframes ring { from { transform: scale(.92); opacity: 1; } to { transform: scale(1.18); opacity: 0; } }

.status-line { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--panel); }
.status-line .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.status-line .ic svg { width: 20px; height: 20px; }

.spot {
  display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: var(--r);
  background: var(--spot-bg); border: 1.5px solid #fdba74; animation: pulse-b 1.6s ease-in-out infinite;
}
@keyframes pulse-b { 50% { box-shadow: 0 0 0 6px rgba(251, 146, 60, .15); } }
.spot .ic { width: 44px; height: 44px; border-radius: 14px; background: #fb923c; color: #fff; display: grid; place-items: center; flex: none; }

.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick button { border: 0; background: var(--card); border-radius: 16px; padding: 14px; text-align: left; box-shadow: var(--shadow); cursor: pointer; display: flex; gap: 10px; align-items: center; font-weight: 700; }
.quick .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.quick .ic svg { width: 21px; height: 21px; }

/* ---------- modal + toast ---------- */
.modal-back { position: fixed; inset: 0; z-index: 50; background: rgba(15, 23, 42, .45); display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal {
  background: var(--card); width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; border-radius: 24px 24px 0 0;
  padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); animation: up .22s cubic-bezier(.2, .9, .3, 1.1);
}
@media (min-width: 640px) { .modal-back { align-items: center; } .modal { border-radius: 24px; } }
@keyframes up { from { transform: translateY(40px); opacity: .5; } }
.modal .mh { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.modal .mh h2 { flex: 1; }
.x { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--soft); cursor: pointer; display: grid; place-items: center; }
.x svg { width: 18px; height: 18px; }
.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 20px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 14px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow-lg); max-width: 90vw; animation: up .2s; }
.toast.bad { background: var(--bad); }
.toast.ok { background: var(--ok); }

.spin { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--pri-soft); border-top-color: var(--pri); animation: rot .8s linear infinite; margin: 10px auto; }
.spin.sm { width: 18px; height: 18px; border-width: 3px; margin: 0; }
@keyframes rot { to { transform: rotate(360deg); } }
.done-tick { width: 84px; height: 84px; border-radius: 50%; margin: 6px auto 10px; display: grid; place-items: center; color: #fff; background: var(--grad-in); animation: pop .4s cubic-bezier(.2, 1.6, .4, 1); }
.done-tick.warn { background: linear-gradient(140deg, #f59e0b, #ef4444); }
.done-tick svg { width: 44px; height: 44px; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
.center { text-align: center; }
.selfie-prev { width: 160px; height: 200px; object-fit: cover; border-radius: 18px; display: block; margin: 0 auto; box-shadow: var(--shadow); }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.login .card { width: 100%; max-width: 400px; padding: 26px 22px; }
.login .logo { display: flex; justify-content: center; margin-bottom: 6px; }
.login .logo img { height: 58px; max-width: 240px; object-fit: contain; }
.login .logo .mark { width: 64px; height: 64px; border-radius: 20px; font-size: 26px; }

.menu { position: absolute; right: 12px; top: calc(100% + 6px); background: var(--card); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 6px; min-width: 220px; border: 1px solid var(--line); z-index: 40; animation: up .15s; }
.menu button, .menu a { display: flex; width: 100%; gap: 10px; align-items: center; padding: 10px 12px; border: 0; background: none; border-radius: 10px; cursor: pointer; font-weight: 600; text-align: left; color: var(--ink); }
.menu button:hover { background: var(--hover); }
.menu svg { width: 18px; height: 18px; color: var(--muted); }
.menu .who { padding: 10px 12px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }

.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal div { aspect-ratio: 1; border-radius: 9px; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--empty); color: var(--faint); }
.cal .p { background: var(--ok-soft); color: var(--ok); }
.cal .l { background: var(--warn-soft); color: var(--warn); }
.cal .f { background: var(--bad-soft); color: var(--bad); }
.cal .v { background: var(--info-soft); color: var(--info); }
.cal .h { background: transparent; }
.cal .x0 { background: transparent; color: var(--faint); }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

/* team groups */
details.grp > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; border-bottom: 1px solid var(--line); }
details.grp > summary::-webkit-details-marker { display: none; }
details.grp:not([open]) > summary { border-bottom: 0; }
details.grp .gi { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--info-soft); color: var(--info); }
details.grp .gi svg { width: 20px; height: 20px; }
details.grp .chev svg { width: 18px; height: 18px; color: var(--faint); transition: transform .2s; }
details.grp[open] .chev svg { transform: rotate(45deg); }
.item.flash { animation: flash 1.8s ease; }
@keyframes flash { 0%, 40% { background: var(--ok-soft); } 100% { background: transparent; } }

img.avatar { object-fit: cover; background: var(--soft); }
.avatar.lg { width: 84px; height: 84px; font-size: 26px; }
.site-pic { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; flex: none; background: var(--soft); }
.site-pic.lg { width: 100%; height: 150px; border-radius: 14px; }
.map { height: 300px; border-radius: 14px; overflow: hidden; border: 1.5px solid var(--line); background: var(--soft); display: grid; place-items: center; }
.map.leaflet-container { display: block; }
