/* ==========================================================================
   HomeNex Interactive Demo — styling
   Faithfully mirrors the real HomeNex dashboard design system.
   Green/white theme anchored on #166534.
   ========================================================================== */

:root {
  --ink: #16241c;
  --ink-soft: #4c5d53;
  --ink-faint: #8b988f;
  --cream: #faf7f1;
  --card: #ffffff;
  --line: #e9e4d9;
  --brand: #166534;          /* primary green (per brand spec) */
  --brand-deep: #0e4429;
  --brand-wash: #e8f4ec;
  --gold: #b45309;
  --amber: #d97706;
  --amber-wash: #fdf3e3;
  --hot: #c2410c;
  --chat-bg: #ece5dd;
  --buyer: #d9fdd3;

  --font-display: 'Fraunces', Georgia, serif;
  --font-sans: 'Albert Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --shadow-card: 0 1px 2px rgba(22,36,28,.05), 0 4px 16px rgba(22,36,28,.06);
  --shadow-float: 0 8px 30px rgba(22,36,28,.16);

  --page-bg: #10231a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1200px 600px at 15% -10%, #1c4a34 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #143626 0%, transparent 50%),
    var(--page-bg);
  min-height: 100dvh;
}

.font-display { font-family: var(--font-display); }
.tabnum { font-variant-numeric: tabular-nums; }

/* ---- Overall stage layout ------------------------------------------------ */
.stage {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr minmax(320px, 380px);
  gap: 40px;
  align-items: center;
  justify-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 32px 40px;
}

/* Left column holds the phone; right column the annotation panel. */
.phone-col { display: flex; flex-direction: column; align-items: center; gap: 18px; }

/* ---- Brand header above the phone --------------------------------------- */
.brandbar {
  display: flex; align-items: center; gap: 10px;
  color: #eaf3ec;
}
.brandbar .logo {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(140deg, #22a35c, #0e4429);
  display: grid; place-items: center; font-size: 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
}
.brandbar .name { font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: -.01em; }
.brandbar .tag { font-size: 11px; color: #9fc4ac; font-weight: 600; letter-spacing: .02em; }
.brandbar .demo-pill {
  margin-left: 4px; font-size: 10px; font-weight: 800; letter-spacing: .14em;
  color: #bfe6cd; border: 1px solid rgba(191,230,205,.4); border-radius: 999px; padding: 3px 8px;
}

/* ---- Phone device frame -------------------------------------------------- */
.device {
  width: 390px; max-width: 92vw;
  height: 780px; max-height: 82dvh;
  border-radius: 46px;
  background: #0b0f0d;
  padding: 12px;
  box-shadow: var(--shadow-float), 0 40px 80px rgba(0,0,0,.45), inset 0 0 0 2px #23302a;
  position: relative;
}
.device::after { /* side buttons */
  content: ''; position: absolute; right: -3px; top: 150px; width: 3px; height: 64px;
  background: #23302a; border-radius: 2px;
}
.screen {
  position: relative; height: 100%; width: 100%;
  border-radius: 36px; overflow: hidden;
  background: var(--cream);
  display: flex; flex-direction: column;
}
/* notch */
.notch {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 150px; height: 26px; background: #0b0f0d;
  border-bottom-left-radius: 16px; border-bottom-right-radius: 16px; z-index: 60;
}
.statusbar {
  height: 30px; flex: 0 0 30px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 22px; font-size: 12px; font-weight: 700; color: var(--ink);
  background: var(--cream);
}
.statusbar .dots { letter-spacing: 1px; }

/* Scrollable app body */
.appbody { flex: 1 1 auto; overflow-y: auto; scroll-behavior: smooth; position: relative; }
.appbody::-webkit-scrollbar { width: 0; display: none; }
.appbody { scrollbar-width: none; }

/* screen panels */
.panel { display: none; padding: 0 0 96px; }
.panel.active { display: block; animation: rise .4s cubic-bezier(.2,.7,.2,1) both; }

/* ---- Bottom nav ---------------------------------------------------------- */
.botnav {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
  padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
}
.botnav button {
  background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: var(--ink-faint); font-family: var(--font-sans); font-size: 10px; font-weight: 600;
  padding: 4px 0; position: relative;
}
.botnav button.active { color: var(--brand-deep); font-weight: 800; }
.botnav button svg { width: 22px; height: 22px; }
.botnav .fab {
  margin-top: -22px;
}
.botnav .fab .fab-circle {
  width: 54px; height: 54px; border-radius: 999px; background: var(--brand);
  display: grid; place-items: center; box-shadow: var(--shadow-float);
  transition: transform .1s;
}
.botnav .fab.active .fab-circle { background: var(--brand-deep); }
.botnav .fab .fab-circle svg { width: 26px; height: 26px; fill: #fff; stroke: none; }
.botnav .fab span { color: var(--brand); font-weight: 800; }
.botnav .badge {
  position: absolute; top: 0; right: 24%; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: var(--hot); color: #fff; font-size: 9.5px; font-weight: 800;
  display: grid; place-items: center;
}

/* ==========================================================================
   Shared app UI primitives
   ========================================================================== */
.px { padding-left: 20px; padding-right: 20px; }
.h1 { font-family: var(--font-display); font-size: 28px; font-weight: 600; color: var(--ink); line-height: 1.1; }
.h1.big { font-size: 30px; }
.eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint); }
.section-head { font-size: 11px; font-weight: 800; letter-spacing: .18em; color: var(--brand); }
.muted { color: var(--ink-soft); }
.faint { color: var(--ink-faint); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-card);
}
.rounded2 { border-radius: 16px; }

.count-pill {
  font-size: 10.5px; font-weight: 800; background: var(--amber-wash); color: var(--hot);
  border-radius: 999px; padding: 2px 8px;
}

/* KPI grid */
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kpi { border-radius: 18px; padding: 14px 16px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow-card); }
.kpi.accent { background: var(--amber-wash); border-color: rgba(217,119,6,.3); }
.kpi .num { font-family: var(--font-display); font-size: 26px; font-weight: 700; line-height: 1; color: var(--ink); }
.kpi.accent .num { color: var(--hot); }
.kpi .lbl { font-size: 11.5px; font-weight: 600; color: var(--ink-soft); margin-top: 6px; }

/* WhatsApp chip */
.wa-chip {
  display: flex; align-items: center; gap: 8px; background: var(--brand-wash);
  border: 1px solid rgba(22,101,52,.2); border-radius: 999px; padding: 7px 12px;
  font-size: 12px; font-weight: 700; color: var(--brand-deep);
}
.wa-chip .wa-ico { width: 18px; height: 18px; fill: var(--brand); }
.wa-chip .live-dot { width: 7px; height: 7px; border-radius: 999px; background: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,.18); }

/* onboarding complete banner */
.onb-done {
  display: flex; align-items: center; gap: 10px; background: var(--brand-wash);
  border: 1px solid rgba(22,101,52,.25); border-radius: 16px; padding: 12px 14px;
}
.onb-done .tick { width: 24px; height: 24px; border-radius: 999px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 800; flex: 0 0 24px; }

/* worklist item */
.work-item { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; }
.pri { flex: 0 0 auto; font-size: 9.5px; font-weight: 800; letter-spacing: .04em; border-radius: 999px; padding: 4px 8px; margin-top: 2px; }
.pri.critical { background: var(--hot); color: #fff; }
.pri.high { background: var(--amber-wash); color: var(--hot); }
.pri.medium { background: rgba(22,101,52,.1); color: var(--brand); }
.arrow { color: var(--brand); font-weight: 800; font-size: 15px; margin-top: 2px; }

/* generic list rows */
.divide > * + * { border-top: 1px solid var(--line); }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }

/* avatar */
.avatar {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 999px; background: var(--brand-wash);
  color: var(--brand-deep); font-family: var(--font-display); font-weight: 700; font-size: 15px;
  display: grid; place-items: center;
}
.avatar.sm { width: 36px; height: 36px; font-size: 13px; }

/* temperature pill */
.temp { font-size: 10px; font-weight: 800; border: 1px solid; border-radius: 999px; padding: 2px 8px; }
.temp.Hot { background: var(--amber-wash); color: var(--hot); border-color: rgba(217,119,6,.4); }
.temp.Warm { background: var(--brand-wash); color: var(--brand-deep); border-color: rgba(22,101,52,.3); }
.temp.Cold { background: var(--cream); color: var(--ink-faint); border-color: var(--line); }

/* chips row */
.chips { display: flex; gap: 8px; overflow-x: auto; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; font-size: 12.5px; font-weight: 700; border-radius: 999px; padding: 6px 14px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink-soft); cursor: pointer;
}
.chip.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.chip .c-badge { margin-left: 6px; font-size: 10.5px; background: rgba(22,36,28,.1); border-radius: 999px; padding: 1px 6px; }
.chip.active .c-badge { background: rgba(250,247,241,.25); color: var(--cream); }

/* ---- Kanban -------------------------------------------------------------- */
.board { display: flex; gap: 12px; overflow-x: auto; padding: 0 20px 16px; align-items: flex-start; }
.board::-webkit-scrollbar { display: none; }
.col { flex: 0 0 auto; width: 224px; }
.col-head { display: flex; align-items: center; gap: 8px; padding: 0 4px; margin-bottom: 8px; }
.col-head .st { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.col-head .cnt { font-size: 10.5px; font-weight: 800; color: var(--ink-faint); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 1px 7px; }
.lead-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-card); padding: 12px; cursor: pointer; margin-bottom: 8px; }
.lead-card .top { display: flex; align-items: center; gap: 10px; }
.lead-card .nm { font-weight: 700; font-size: 13.5px; color: var(--ink); }
.lead-card .sub { font-size: 11.5px; color: var(--ink-soft); margin-top: 2px; }
.lead-card .meta { display: flex; align-items: center; gap: 6px; margin-top: 8px; }

/* ---- Inbox / chat -------------------------------------------------------- */
.chat-header { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--cream); position: sticky; top: 0; z-index: 5; }
.chat-texture {
  background-color: var(--chat-bg);
  background-image: radial-gradient(rgba(22,101,52,.06) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  padding: 14px 12px; display: flex; flex-direction: column; gap: 8px;
}
.msg { max-width: 84%; border-radius: 14px; padding: 8px 11px; font-size: 12.5px; line-height: 1.4; box-shadow: 0 1px 1px rgba(0,0,0,.06); white-space: pre-wrap; }
.msg .t { font-size: 9.5px; color: var(--ink-faint); margin-top: 4px; text-align: right; }
.msg.buyer { align-self: flex-start; background: #fff; border-top-left-radius: 4px; }
.msg.out { align-self: flex-end; background: var(--buyer); border-top-right-radius: 4px; }
.msg-wrap { display: flex; flex-direction: column; max-width: 100%; }
.msg-wrap.out { align-items: flex-end; }
.mode-badge { font-size: 9.5px; font-weight: 800; letter-spacing: .04em; border-radius: 999px; padding: 2px 8px; margin-bottom: 3px; }
.mode-badge.ai { background: var(--brand-wash); color: var(--brand-deep); }
.mode-badge.you { background: var(--amber-wash); color: var(--gold); }
.msg .meta-ai { font-size: 9.5px; color: var(--brand-deep); font-weight: 700; margin-top: 3px; }

.typing { display: inline-flex; gap: 4px; padding: 10px 12px; background: #fff; border-radius: 14px; border-top-left-radius: 4px; align-self: flex-start; }
.typing i { width: 6px; height: 6px; border-radius: 999px; background: var(--ink-faint); display: block; animation: typing 1.2s ease-in-out infinite; }
.typing i:nth-child(2){ animation-delay: .15s; } .typing i:nth-child(3){ animation-delay: .3s; }

/* captured preferences card */
.captured { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; }
.captured dt { font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.captured dd { font-size: 12.5px; color: var(--ink); }

/* ---- Lead detail --------------------------------------------------------- */
.detail-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--cream); position: sticky; top: 0; z-index: 5; }
.score-ring { position: relative; width: 48px; height: 48px; flex: 0 0 48px; }
.score-ring .val { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 14px; }
.briefing-pt { font-size: 12.5px; line-height: 1.4; border-left: 2px solid; padding: 6px 0 6px 12px; border-radius: 0 6px 6px 0; margin-top: 8px; }
.briefing-pt.hot { border-color: var(--hot); background: var(--amber-wash); }
.briefing-pt.warm { border-color: var(--brand); background: var(--brand-wash); }
.briefing-pt.info { border-color: var(--ink-faint); background: var(--cream); }
.bar { height: 8px; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 999px; background: var(--brand); }
.bar > span.high { background: var(--amber); }
.check { width: 22px; height: 22px; border-radius: 999px; border: 2px solid rgba(22,101,52,.5); display: grid; place-items: center; font-size: 12px; color: transparent; flex: 0 0 22px; }
.check.done { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---- Properties ---------------------------------------------------------- */
.prop { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; }
.prop .thumb { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 12px; background: linear-gradient(140deg, var(--brand-wash), #cfe6d7); display: grid; place-items: center; font-size: 22px; }
.prop .p-title { font-weight: 700; font-size: 14px; color: var(--ink); }
.prop .p-sub { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.prop .p-status { font-size: 11px; color: var(--ink-faint); margin-top: 3px; }
.prop .p-price { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--brand-deep); text-align: right; white-space: nowrap; }
.match-pill { font-size: 9.5px; font-weight: 800; color: var(--brand-deep); background: var(--brand-wash); border-radius: 999px; padding: 2px 7px; }

/* ==========================================================================
   Highlight ring (tour focus)
   ========================================================================== */
.tour-focus {
  position: relative; z-index: 30;
  box-shadow: 0 0 0 3px var(--brand), 0 0 0 7px rgba(22,101,52,.28) !important;
  border-radius: 18px; animation: focuspulse 1.8s ease-in-out infinite;
}
@keyframes focuspulse {
  0%,100% { box-shadow: 0 0 0 3px var(--brand), 0 0 0 6px rgba(22,101,52,.28); }
  50%     { box-shadow: 0 0 0 3px var(--brand), 0 0 0 11px rgba(22,101,52,.10); }
}

/* ==========================================================================
   Annotation panel (right column on desktop)
   ========================================================================== */
.annot {
  width: 100%; max-width: 380px;
  background: rgba(255,255,255,.98); border-radius: 24px; padding: 26px 26px 22px;
  box-shadow: var(--shadow-float);
  position: relative;
}
.annot .step-of { font-size: 11px; font-weight: 800; letter-spacing: .14em; color: var(--brand); text-transform: uppercase; }
.annot h2 { font-family: var(--font-display); font-size: 23px; font-weight: 600; color: var(--ink); margin: 8px 0 0; line-height: 1.15; }
.annot .body { font-size: 14px; line-height: 1.55; color: var(--ink-soft); margin-top: 12px; }
.annot .ai-note {
  margin-top: 16px; background: var(--brand-wash); border: 1px solid rgba(22,101,52,.2);
  border-radius: 14px; padding: 12px 14px; font-size: 12.5px; line-height: 1.5; color: var(--brand-deep);
}
.annot .ai-note b { display: flex; align-items: center; gap: 6px; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 5px; }

.progress-track { height: 5px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: 20px; }
.progress-track > span { display: block; height: 100%; background: var(--brand); border-radius: 999px; transition: width .35s cubic-bezier(.2,.7,.2,1); }

.annot .nav { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.btn {
  font-family: var(--font-sans); font-weight: 800; font-size: 14px; border-radius: 999px;
  padding: 11px 20px; cursor: pointer; border: 1px solid transparent; transition: transform .08s, background .15s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--brand); color: #fff; flex: 1; }
.btn-primary:hover { background: var(--brand-deep); }
.btn-ghost { background: var(--card); color: var(--ink-soft); border-color: var(--line); }
.btn-ghost:disabled { opacity: .4; cursor: default; }

.dots-nav { display: flex; gap: 6px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.dots-nav i { width: 7px; height: 7px; border-radius: 999px; background: var(--line); cursor: pointer; transition: all .2s; }
.dots-nav i.on { background: var(--brand); width: 20px; }

/* CTA links under annotation */
.cta-links { display: flex; flex-direction: column; gap: 9px; margin-top: 18px; }
.cta {
  display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
  font-weight: 800; font-size: 13.5px; border-radius: 12px; padding: 11px 14px;
}
.cta.primary { background: linear-gradient(135deg, #1c8348, var(--brand-deep)); color: #fff; box-shadow: 0 8px 20px rgba(14,68,41,.35); }
.cta.secondary { background: var(--card); color: var(--brand-deep); border: 1px solid var(--line); }

/* Intro / outro overlay card inside phone */
.hero-overlay {
  position: absolute; inset: 0; z-index: 70; background:
    radial-gradient(600px 340px at 50% 12%, #1c8348 0%, transparent 60%),
    linear-gradient(180deg, #0e4429, #0a3320);
  color: #eaf3ec; display: flex; flex-direction: column; justify-content: center;
  align-items: center; text-align: center; padding: 40px 30px; gap: 14px;
}
.hero-overlay .badge2 { font-size: 10.5px; font-weight: 800; letter-spacing: .18em; color: #a7d8bb; border: 1px solid rgba(167,216,187,.4); border-radius: 999px; padding: 5px 12px; }
.hero-overlay h1 { font-family: var(--font-display); font-size: 34px; font-weight: 600; line-height: 1.08; }
.hero-overlay p { font-size: 14px; color: #bfe0cc; line-height: 1.5; max-width: 280px; }
.hero-overlay .big-emoji { font-size: 48px; }
.hero-overlay .stat-line { display: flex; gap: 20px; margin-top: 6px; }
.hero-overlay .stat-line div { text-align: center; }
.hero-overlay .stat-line .n { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: #fff; }
.hero-overlay .stat-line .l { font-size: 10px; color: #9fc4ac; letter-spacing: .05em; }
.hero-overlay .start-btn {
  margin-top: 8px; background: #fff; color: var(--brand-deep); font-weight: 800; font-size: 15px;
  border: none; border-radius: 999px; padding: 13px 30px; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.hero-overlay .mini { font-size: 11px; color: #8fb79f; }

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes rise { from { opacity: 0; transform: translateY(12px);} to { opacity: 1; transform: translateY(0);} }
@keyframes typing { 0%,60%,100% { transform: translateY(0); opacity: .4;} 30% { transform: translateY(-4px); opacity: 1;} }
@keyframes bubblein { from { opacity: 0; transform: translateY(8px) scale(.97);} to { opacity: 1; transform: translateY(0) scale(1);} }
.bubblein { animation: bubblein .3s cubic-bezier(.2,.7,.2,1) both; }

.mt4{margin-top:4px}.mt6{margin-top:6px}.mt8{margin-top:8px}.mt12{margin-top:12px}.mt14{margin-top:14px}
.mt16{margin-top:16px}.mt20{margin-top:20px}.mt24{margin-top:24px}.mt28{margin-top:28px}
.flex{display:flex}.between{justify-content:space-between}.items-center{align-items:center}
.gap6{gap:6px}.gap8{gap:8px}.gap10{gap:10px}.g1{flex:1}.wrap{flex-wrap:wrap}
.b{font-weight:700}.b8{font-weight:800}.tr{text-align:right}
.fs11{font-size:11px}.fs12{font-size:12px}.fs13{font-size:13px}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* ==========================================================================
   Responsive — phone becomes full-screen on small viewports
   ========================================================================== */
@media (max-width: 900px) {
  body { background: var(--page-bg); }
  .stage { display: block; padding: 0; max-width: none; }
  .brandbar { display: none; }
  .phone-col { gap: 0; }
  .device {
    width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh;
    border-radius: 0; padding: 0; box-shadow: none;
  }
  .device::after { display: none; }
  .screen { border-radius: 0; }
  .notch { display: none; }

  /* annotation becomes a bottom sheet */
  .annot {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; max-width: none;
    border-radius: 24px 24px 0 0; padding: 20px 20px calc(18px + env(safe-area-inset-bottom));
    max-height: 62dvh; overflow-y: auto;
    box-shadow: 0 -12px 40px rgba(0,0,0,.35);
    transform: translateY(0); transition: transform .3s cubic-bezier(.2,.7,.2,1);
  }
  .annot.collapsed { transform: translateY(calc(100% - 62px)); }
  .annot h2 { font-size: 20px; }
  .annot .body { font-size: 13.5px; margin-top: 8px; }
  .sheet-handle { display: block; width: 40px; height: 4px; border-radius: 999px; background: var(--line); margin: -6px auto 12px; cursor: pointer; }
  /* leave room so bottom nav isn't hidden behind the sheet when collapsed */
  .appbody .panel { padding-bottom: 120px; }
}
@media (min-width: 901px) { .sheet-handle { display: none; } }

/* subtle scrollbar hide on annotation */
.annot::-webkit-scrollbar { width: 0; }
