/* Meetlove Console. Layout: dark top navbar + dark grouped sidebar, white page header with breadcrumb, light content
   with 6px cards. Own styles; no third-party CSS. */
:root {
  --bg: #f1f4f9; --surface: #fff; --ink: #111827; --text: #1f2937; --muted: #6b7280; --faint: #9ca3af;
  --line2: #eef0f4; --row: #f9fafb;
  --primary: #0c83ff; --primary-soft: #e7f2ff; --brand: #f35c86; --brand-soft: #fdeef3;
  --ok: #059669; --ok-soft: #e6f6f0; --warn: #d97706; --warn-soft: #fef5e6; --bad: #ef4444; --bad-soft: #fdecec;
  --info-soft: #e7f2ff; --violet: #5c6bc0; --violet-soft: #eef0fa; --teal: #059669;
  --dark: #252b36; --dark-text: rgba(255, 255, 255, .9);
  --r: 6px; --shadow: 0 0 1px 1px rgba(0, 0, 0, .05), 0 1px 3px rgba(0, 0, 0, .1);
  --nav-h: 56px; --side-w: 272px;
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 14px/1.5715 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
img { display: block; }
.boot { min-height: 100vh; display: grid; place-items: center; }
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 3px solid #d6e6f8; border-top-color: var(--primary); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; place-items: center; align-content: center; background: var(--dark); padding: 20px; }
.login-card { width: 100%; max-width: 400px; background: #fff; border-radius: var(--r); box-shadow: 0 10px 40px rgba(0, 0, 0, .35); padding: 32px; }
.login-card .logo { display: flex; justify-content: center; margin-bottom: 14px; }
.login-card .logo span { width: 60px; height: 60px; border-radius: 50%; border: 2px solid var(--brand-soft); display: grid; place-items: center; }
.login-card h2 { text-align: center; font-size: 18px; margin: 0; color: var(--ink); font-weight: 600; }
.login-card .sub { text-align: center; color: var(--muted); margin: 2px 0 22px; }
.login-foot { color: rgba(255, 255, 255, .5); font-size: 12.5px; text-align: center; margin-top: 18px; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-weight: 500; margin-bottom: 6px; }
.input { width: 100%; height: 38px; border: 1px solid #d1d5db; border-radius: var(--r); padding: 0 12px; background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; }
.input:focus { border-color: #86c1ff; box-shadow: 0 0 0 3px rgba(12, 131, 255, .15); }
.err { color: var(--bad); font-size: 13px; min-height: 20px; margin: 2px 0 8px; }

/* ---------- navbar ---------- */
.navbar { position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); background: var(--dark); color: #fff; display: flex; align-items: center; gap: 12px; padding: 0 16px; z-index: 10; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.navbar .logo { display: flex; align-items: center; gap: 10px; width: calc(var(--side-w) - 70px); font-weight: 600; font-size: 16px; }
.navbar .logo img { width: 28px; height: 28px; }
.nb-btn { position: relative; width: 36px; height: 36px; border-radius: var(--r); border: 0; background: none; color: var(--dark-text); display: grid; place-items: center; }
.nb-btn:hover { background: rgba(255, 255, 255, .1); }
.nb-btn svg { width: 19px; height: 19px; }
.nb-btn .pip { position: absolute; top: 1px; right: -2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #ffd648; color: #000; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.nb-search { flex: 1; display: flex; justify-content: center; }
.nb-search label { position: relative; width: 100%; max-width: 440px; }
.nb-search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: rgba(255, 255, 255, .55); }
.nb-search input { width: 100%; height: 36px; border-radius: var(--r); border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .08); color: #fff; padding: 0 12px 0 34px; outline: none; }
.nb-search input::placeholder { color: rgba(255, 255, 255, .5); }
.nb-search input:focus { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .25); }
.nb-user { display: flex; align-items: center; gap: 9px; padding: 4px 8px; border-radius: var(--r); font-weight: 500; }
.nb-user .avatar { width: 30px; height: 30px; }

/* ---------- sidebar ---------- */
.side { position: fixed; top: var(--nav-h); left: 0; bottom: 0; width: var(--side-w); background: var(--dark); color: var(--dark-text); overflow-y: auto; z-index: 9; transition: width .2s; }
.side-h { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 10px; font-weight: 600; font-size: 16px; color: #fff; }
.side-h .nb-btn { width: 30px; height: 30px; border: 1px solid rgba(255, 255, 255, .15); border-radius: 50%; }
.side-h .nb-btn svg { width: 15px; height: 15px; }
.nav-label { font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: rgba(255, 255, 255, .5); padding: 14px 20px 8px; font-weight: 500; }
.nav a { display: flex; align-items: flex-start; gap: 14px; padding: 10px 20px; color: var(--dark-text); font-weight: 500; transition: background .15s; }
.nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.nav a.on { background: rgba(255, 255, 255, .15); color: #fff; }
.nav svg { width: 18px; height: 18px; flex: none; margin-top: 2px; opacity: .9; }
.nav .txt { flex: 1; min-width: 0; }
.nav .txt small { display: block; font-size: 12px; font-weight: 400; color: rgba(255, 255, 255, .5); }
.nav a:not(.on) .txt small { display: none; }
.nav .count { margin-left: auto; min-width: 26px; height: 20px; padding: 0 7px; border-radius: 10px; background: var(--primary); color: #fff; font-size: 11.5px; font-weight: 600; display: grid; place-items: center; margin-top: 1px; }
.nav .count.pink { background: var(--brand); }
.mini .side { width: 64px; }
.mini .side .side-h span, .mini .side .nav-label, .mini .side .nav .txt, .mini .side .nav .count { display: none; }
.mini .side .side-h { justify-content: center; padding: 14px 0; }
.mini .side .nav a { justify-content: center; padding: 12px 0; }
.mini .main { margin-left: 64px; }

/* ---------- main + page header ---------- */
.main { margin-left: var(--side-w); padding-top: var(--nav-h); min-width: 0; transition: margin-left .2s; }
.page-header { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .125); }
.ph-title { display: flex; align-items: center; gap: 12px; padding: 0 20px; min-height: 64px; }
.ph-title h4 { margin: 0; font-size: 18px; font-weight: 400; color: var(--ink); }
.ph-title h4 b { font-weight: 600; }
.ph-title h4 span { color: var(--muted); }
.ph-title .grow { flex: 1; }
.ph-crumb { display: flex; align-items: center; gap: 8px; padding: 0 20px; height: 42px; border-top: 1px solid var(--line2); font-size: 13.5px; color: var(--muted); }
.ph-crumb a:hover { color: var(--ink); }
.ph-crumb svg { width: 15px; height: 15px; }
.ph-crumb .sep { color: #c4c8cf; }
.ph-crumb .cur { color: var(--text); }
.ph-crumb .grow { flex: 1; }
.ph-crumb .lnk { display: inline-flex; align-items: center; gap: 6px; color: var(--text); background: none; border: 0; padding: 4px 6px; border-radius: var(--r); }
.ph-crumb .lnk:hover { background: var(--row); }
.page { padding: 20px; }

/* ---------- building blocks ---------- */
.card { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); }
.card-h { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line2); flex-wrap: wrap; }
.card-h h3 { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.card-h .hint { color: var(--muted); font-size: 13px; }
.card-h .grow { flex: 1; }
.card-b { padding: 20px; }
.grid { display: grid; gap: 20px; }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 1280px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g2, .g3 { grid-template-columns: 1fr; } }

/* coloured stat tiles with a sparkline */
.tile { border-radius: var(--r); color: #fff; padding: 18px 20px 0; position: relative; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; min-height: 140px; }
.tile.teal { background: #059669; } .tile.pink { background: #f35c86; } .tile.blue { background: #0c83ff; } .tile.indigo { background: #5c6bc0; }
.tile .row { display: flex; align-items: flex-start; gap: 8px; }
.tile .val { font-size: 26px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }
.tile .lbl { font-weight: 500; }
.tile .sub { font-size: 12.5px; opacity: .85; }
.tile .pill { margin-left: auto; background: rgba(0, 0, 0, .18); padding: 2px 8px; border-radius: 10px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.tile .ic { margin-left: auto; opacity: .85; }
.tile .ic svg { width: 22px; height: 22px; }
.tile .spark { margin: auto -20px 0; width: calc(100% + 40px); height: 46px; display: block; }

/* mini stat row inside a card */
.stat-row { display: flex; justify-content: space-around; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line2); flex-wrap: wrap; }
.stat { display: flex; align-items: center; gap: 12px; }
.stat .ic { width: 40px; height: 40px; border-radius: 50%; border: 2px solid; display: grid; place-items: center; }
.stat .ic svg { width: 18px; height: 18px; }
.stat b { display: block; font-size: 15px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat small { color: var(--muted); font-size: 12.5px; }

.delta { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; font-size: 12.5px; }
.delta svg { width: 13px; height: 13px; }
.delta.up { color: var(--ok); } .delta.down { color: var(--bad); } .delta.flat { color: var(--muted); }

.seg { display: inline-flex; border: 1px solid #d1d5db; border-radius: var(--r); overflow: hidden; background: #fff; }
.seg button { border: 0; background: none; height: 34px; padding: 0 14px; color: var(--text); font-size: 13.5px; border-left: 1px solid #d1d5db; }
.seg button:first-child { border-left: 0; }
.seg button:hover { background: var(--row); }
.seg button.on { background: var(--primary); color: #fff; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: var(--r); border: 1px solid #d1d5db; background: #fff; color: var(--text); white-space: nowrap; transition: background .15s, border-color .15s, opacity .15s; }
.btn:hover { background: var(--row); }
.btn:disabled { opacity: .5; cursor: default; }
.btn svg { width: 16px; height: 16px; }
.btn.sm { height: 31px; padding: 0 11px; font-size: 13px; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: #0a74e3; }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.danger:hover { background: #dc3434; }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.ok:hover { background: #04875c; }
.btn.ghost-bad { color: var(--bad); border-color: #f5b5b5; }
.btn.block { width: 100%; height: 40px; }

.badge { display: inline-flex; align-items: center; gap: 5px; height: 21px; padding: 0 7px; border-radius: 4px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge.gray { background: #f3f4f6; color: #4b5563; }
.badge.rose { background: var(--brand-soft); color: #d63b68; }
.badge.ok { background: var(--ok-soft); color: #047857; }
.badge.warn { background: var(--warn-soft); color: #b45309; }
.badge.bad { background: var(--bad-soft); color: #c62828; }
.badge.info { background: var(--info-soft); color: #0565c8; }
.badge.violet { background: var(--violet-soft); color: #3f4ea8; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #e5e7eb; flex: none; }
.avatar.lg { width: 84px; height: 84px; font-size: 28px; }
.avatar.ph { display: grid; place-items: center; color: #fff; background: #9aa5b8; font-weight: 600; }
.who-cell { display: flex; align-items: center; gap: 11px; min-width: 0; }
.who-cell b { display: block; color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who-cell small { display: block; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.on-dot { position: relative; flex: none; }
.on-dot::after { content: ""; position: absolute; right: 0; bottom: 0; width: 10px; height: 10px; border-radius: 50%; background: #10b981; border: 2px solid #fff; }

table.t { width: 100%; border-collapse: collapse; }
.t th { text-align: left; font-weight: 600; color: var(--ink); padding: 12px 20px; border-bottom: 1px solid #e5e7eb; white-space: nowrap; }
.t td { padding: 12px 20px; border-bottom: 1px solid var(--line2); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr { cursor: pointer; transition: background .12s; }
.t tbody tr:hover { background: var(--row); }
.t tr.group td { background: #f3f4f6; font-weight: 500; cursor: default; padding: 8px 20px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.search { position: relative; }
.search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--faint); }
.search input { width: 320px; height: 36px; border: 1px solid #d1d5db; border-radius: var(--r); padding: 0 12px 0 34px; background: #fff; outline: none; }
.search input:focus { border-color: #86c1ff; box-shadow: 0 0 0 3px rgba(12, 131, 255, .15); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.chip { height: 31px; padding: 0 12px; border-radius: var(--r); border: 1px solid #d1d5db; background: #fff; color: var(--text); font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.chip:hover { background: var(--row); }
.chip.on { background: var(--dark); border-color: var(--dark); color: #fff; }
.chip .n { font-size: 11px; padding: 0 6px; border-radius: 8px; background: var(--brand); color: #fff; font-weight: 600; }
.empty { text-align: center; padding: 56px 20px; color: var(--muted); }
.empty .ic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; border: 2px solid var(--primary-soft); color: var(--primary); }
.empty .ic svg { width: 24px; height: 24px; }
.empty b { display: block; color: var(--ink); font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.pager { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; border-top: 1px solid var(--line2); color: var(--muted); font-size: 13px; }

/* ---------- charts ---------- */
.chart { width: 100%; height: 280px; display: block; }
.chart text { font: 11.5px var(--font); fill: var(--faint); }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.tip { position: fixed; pointer-events: none; z-index: 50; background: #1f2937; color: #fff; font-size: 12.5px; padding: 7px 10px; border-radius: var(--r); box-shadow: 0 6px 20px rgba(0, 0, 0, .2); white-space: nowrap; transform: translate(-50%, calc(-100% - 12px)); }
.tip b { font-size: 13.5px; font-weight: 600; }
.bars-h { display: grid; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 120px 1fr 52px; align-items: center; gap: 10px; font-size: 13px; }
.bar-row .track { height: 8px; border-radius: 4px; background: #eef0f4; overflow: hidden; }
.bar-row .fill { height: 100%; border-radius: 4px; background: var(--primary); }
.bars-h.pink .fill { background: var(--brand); }
.bars-h.teal .fill { background: var(--teal); }
.donut-wrap { display: flex; align-items: center; gap: 24px; }
.donut-legend { display: grid; gap: 10px; font-size: 13px; flex: 1; }
.donut-legend div { display: flex; align-items: center; gap: 8px; }
.donut-legend i { width: 10px; height: 10px; border-radius: 2px; }
.donut-legend b { margin-left: auto; padding-left: 16px; color: var(--ink); font-weight: 600; }
.mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mini > div { background: var(--row); border-radius: var(--r); padding: 10px 12px; border: 1px solid var(--line2); }
.mini small { color: var(--muted); font-size: 12px; }
.mini b { display: block; font-size: 18px; font-weight: 600; color: var(--ink); margin-top: 2px; }
.todo { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line2); }
.todo:last-child { border-bottom: 0; }
.todo:hover { background: var(--row); }
.todo .ic { width: 38px; height: 38px; border-radius: 50%; border: 2px solid; display: grid; place-items: center; flex: none; }
.todo .ic svg { width: 17px; height: 17px; }
.todo b { display: block; color: var(--ink); font-weight: 600; }

/* ---------- reports ---------- */
.rep { display: grid; grid-template-columns: minmax(0, 1fr) 290px; overflow: hidden; }
.rep + .rep { margin-top: 20px; }
.rep-main { padding: 18px 20px; min-width: 0; }
.rep-side { padding: 18px 20px; border-left: 1px solid var(--line2); background: var(--row); display: flex; flex-direction: column; gap: 10px; }
.rep-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.rep-head .time { margin-left: auto; color: var(--muted); font-size: 12.5px; }
.evidence { border: 1px solid #e5e7eb; border-radius: var(--r); padding: 14px; background: #fff; }
.evidence .txt { white-space: pre-wrap; word-break: break-word; color: var(--ink); }
.evidence .txt.title { font-weight: 600; margin-bottom: 4px; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.thumb { width: 96px; height: 96px; border-radius: var(--r); object-fit: cover; cursor: zoom-in; background: #eef0f4; }
.note { margin-top: 10px; padding: 10px 12px; border-radius: var(--r); background: var(--warn-soft); color: #7c3d06; font-size: 13px; border-left: 3px solid var(--warn); }
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.person { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid #e5e7eb; border-radius: var(--r); cursor: pointer; }
.person:hover { background: var(--row); }
.person .r { font-size: 11.5px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 600; }
.person b { font-weight: 600; color: var(--ink); }
.lbl-up { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
@media (max-width: 1100px) { .rep { grid-template-columns: 1fr; } .rep-side { border-left: 0; border-top: 1px solid var(--line2); } }

/* ---------- face checks ---------- */
.face { display: grid; grid-template-columns: 300px minmax(0, 1fr) 290px; overflow: hidden; }
.face + .face { margin-top: 20px; }
.face video { width: 100%; height: 100%; min-height: 420px; max-height: 560px; object-fit: cover; background: #000; display: block; }
.face .novid { background: var(--row); height: 100%; min-height: 260px; display: grid; place-items: center; }
.face .ref { padding: 18px 20px; min-width: 0; }
.face .ref-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 160px)); gap: 8px; margin-top: 14px; }
.face .ref-grid img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--r); cursor: zoom-in; background: #eef0f4; }
.face .ref-grid img:first-child { grid-column: span 2; grid-row: span 2; }
.face .act { padding: 18px 20px; border-left: 1px solid var(--line2); background: var(--row); display: flex; flex-direction: column; gap: 10px; }
.check-list { display: grid; gap: 8px; font-size: 13px; margin: 2px 0 4px; }
.check-list label { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.check-list input { margin-top: 3px; accent-color: var(--primary); }
textarea.input { height: 76px; padding: 9px 12px; resize: vertical; }
@media (max-width: 1280px) { .face { grid-template-columns: 1fr; } .face .act { border-left: 0; border-top: 1px solid var(--line2); } }

/* ---------- photos ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }
.ph { position: relative; border-radius: var(--r); overflow: hidden; background: #e5e7eb; aspect-ratio: 4/5; cursor: zoom-in; box-shadow: var(--shadow); }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: filter .2s; }
.blur .ph img { filter: blur(18px) saturate(.8); }
.blur .ph:hover img { filter: none; }
.ph .tag { position: absolute; left: 8px; top: 8px; }
.ph .who { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 10px 9px; background: linear-gradient(transparent, rgba(0, 0, 0, .72)); color: #fff; font-size: 12.5px; font-weight: 500; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.ph .who span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); cursor: pointer; user-select: none; }
.switch input { appearance: none; width: 34px; height: 20px; border-radius: 10px; background: #d1d5db; position: relative; cursor: pointer; transition: background .15s; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.switch input:checked { background: var(--primary); }
.switch input:checked::after { transform: translateX(14px); }

/* ---------- drawer, modal, lightbox, toast ---------- */
.veil { position: fixed; inset: 0; background: rgba(17, 24, 39, .45); z-index: 20; animation: fade .18s ease; }
@keyframes fade { from { opacity: 0; } }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(720px, 100vw); background: var(--bg); z-index: 21; box-shadow: -10px 0 40px rgba(0, 0, 0, .2); display: flex; flex-direction: column; animation: slide .22s cubic-bezier(.2, .8, .2, 1); }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.drawer-h { display: flex; align-items: center; gap: 12px; padding: 0 20px; height: var(--nav-h); background: var(--dark); color: #fff; flex: none; }
.drawer-h b { font-weight: 600; }
.drawer-h .grow { flex: 1; }
.drawer-b { overflow: auto; padding: 20px 20px 40px; }
.icon-btn { width: 34px; height: 34px; border-radius: var(--r); border: 0; background: rgba(255, 255, 255, .1); display: grid; place-items: center; color: #fff; }
.icon-btn:hover { background: rgba(255, 255, 255, .2); }
.icon-btn svg { width: 18px; height: 18px; }
.profile-head { display: flex; gap: 18px; align-items: center; }
.profile-head h2 { margin: 0 0 2px; font-size: 20px; font-weight: 600; color: var(--ink); }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 9px 14px; font-size: 13.5px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink); word-break: break-word; }
.sec-t { font-size: 14px; font-weight: 600; color: var(--ink); margin: 22px 0 10px; }
.photo-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.post-mini { border-radius: var(--r); padding: 12px; background: #fff; display: flex; gap: 12px; box-shadow: var(--shadow); }
.post-mini + .post-mini { margin-top: 10px; }
.post-mini img { width: 64px; height: 64px; border-radius: var(--r); object-fit: cover; cursor: zoom-in; }
.post-mini .txt { flex: 1; min-width: 0; font-size: 13px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.danger-zone { display: flex; gap: 8px; flex-wrap: wrap; }

.modal { position: fixed; inset: 0; display: grid; place-items: center; z-index: 30; padding: 20px; }
.modal-box { background: #fff; border-radius: var(--r); width: 100%; max-width: 460px; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); animation: pop .18s ease; overflow: hidden; }
@keyframes pop { from { transform: scale(.97); opacity: 0; } }
.modal-box h3 { margin: 0; font-size: 16px; font-weight: 600; color: var(--ink); padding: 16px 20px; border-bottom: 1px solid var(--line2); }
.modal-box .mb { padding: 18px 20px; }
.modal-box .mb:empty { display: none; }
.modal-box p { margin: 0 0 14px; color: var(--muted); }
.modal-box p:last-child { margin: 0; }
.modal-box .row { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px; background: var(--row); border-top: 1px solid var(--line2); }
.light { position: fixed; inset: 0; z-index: 40; background: rgba(10, 12, 16, .92); display: grid; grid-template-rows: 1fr auto; animation: fade .15s ease; }
.light img, .light video { max-width: 92vw; max-height: 82vh; margin: auto; border-radius: var(--r); object-fit: contain; }
.light .bar { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px; color: #fff; flex-wrap: wrap; }
.light .close { position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; }
.light .close svg { width: 22px; height: 22px; }
.toast { position: fixed; top: 72px; right: 20px; background: #1f2937; color: #fff; padding: 11px 16px; border-radius: var(--r); z-index: 60; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); animation: pop .18s ease; display: flex; align-items: center; gap: 8px; border-left: 4px solid #10b981; }
.toast.bad { border-left-color: var(--bad); }
.toast svg { width: 16px; height: 16px; color: #34d399; }
