:root {
  --bg:#f6f7fa; --bg-elevated:#fbfcfe; --surface:#fff; --surface-2:#f8f9fc; --surface-3:#eff0f7;
  --ink:#232636; --muted:#7c8295; --line:#e9ebf1; --line-strong:#dce0e9;
  --accent:#7358d9; --accent-strong:#5940b5; --accent-2:#9c88e5; --accent-soft:#f0ebfc;
  --ok:#288367; --ok-soft:#eaf6f0; --danger:#c24954; --danger-soft:#fceef0;
  --radius:14px; --font:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
}
body { font-size:14px; -webkit-font-smoothing:antialiased; }
html { scroll-padding-top:90px; }
button,a,input,select,textarea { -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; }
[hidden] { display:none !important; }
:focus-visible { outline:3px solid #b1a0eb; outline-offset:3px; }
.sr-only,.skip-link:not(:focus) { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.skip-link:focus { position:fixed; top:8px; left:8px; z-index:3000; background:#fff; padding:14px; border-radius:9px; }
.app { display:block; min-height:100vh; }
.workspace-body { min-width:0; }
.workspace-topbar { height:72px; display:flex; align-items:center; gap:22px; padding:0 36px; background:#fff; border-bottom:1px solid var(--line); position:sticky; top:0; z-index:40; }
.icon-btn { width:36px; min-width:36px; height:36px; display:inline-flex; align-items:center; justify-content:center; border:1px solid var(--line); background:#fff; color:var(--muted); border-radius:9px; font-size:23px; }
.icon-btn:hover { color:var(--accent); border-color:#d8cff2; background:#faf8ff; }
.icon-btn svg,.topbar-search svg,.search-field svg { width:17px; height:17px; flex-shrink:0; fill:none; stroke:currentColor; stroke-width:1.65; stroke-linecap:round; stroke-linejoin:round; }
.mobile-menu { display:inline-flex; }
.topbar-brand { display:flex; align-items:center; gap:9px; color:var(--ink); padding-right:24px; border-right:1px solid var(--line); }
.topbar-brand:hover { color:var(--ink); }
.topbar-brand img { width:25px; height:25px; }
.topbar-brand strong { display:flex; align-items:center; gap:7px; font-size:15px; letter-spacing:.035em; font-weight:700; }
.topbar-brand strong span { font-size:9px; font-weight:600; letter-spacing:.04em; color:var(--accent); background:var(--accent-soft); padding:4px 5px; border-radius:4px; }
.workspace-breadcrumb { color:var(--muted); display:flex; gap:12px; font-size:12px; margin-right:auto; }
.workspace-breadcrumb > span { display:none; }
.workspace-breadcrumb strong { font-weight:500; color:#697085; }
.topbar-search { display:flex; align-items:center; gap:10px; color:#9297a7; background:#f8f9fc; border:1px solid var(--line); min-height:36px; border-radius:8px; padding:0 12px; font-size:11px; width:300px; max-width:30vw; text-align:left; }
.topbar-search kbd { margin-left:auto; font:inherit; font-size:10px; white-space:nowrap; color:#a3a8b7; border:1px solid var(--line); border-radius:4px; padding:2px 4px; }
.workspace-topbar-actions { display:flex; align-items:center; gap:16px; color:#8b91a3; font-size:11px; }
.topbar-avatar,.sidebar-user-ava { width:33px; height:33px; display:grid; place-items:center; border-radius:50%; background:#eee9fa; color:var(--accent); font-size:12px; font-weight:600; }
.main { width:100%; max-width:1800px; margin:auto; padding:36px 40px 44px; background:var(--bg); min-width:0; }
.eyebrow { display:block; font-size:9px; font-weight:650; letter-spacing:.14em; color:#a0a5b4; margin-bottom:8px; }
.page-head,.overview-head { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:20px; margin:0 0 28px; padding:0; border:0; border-radius:0; background:none; box-shadow:none; }
.page-head-left,.overview-head-left { display:block; min-width:0; }
.page-head h1,.overview-head h1 { margin:0; font-size:29px; line-height:1.25; letter-spacing:-.04em; font-weight:650; color:var(--ink); white-space:normal; }
.page-head p,.overview-head p { margin:8px 0 0; font-size:12px; font-weight:400; color:var(--muted); white-space:normal; line-height:1.65; }
.page-head-sep,.overview-head-sep { display:none; }
.heading-count { display:inline-block; font-size:11px; font-weight:500; line-height:1.4; vertical-align:middle; letter-spacing:0; padding:3px 7px; margin-left:6px; color:#8a90a2; background:#eaeef4; border-radius:6px; }
.page-head-actions,.page-head-right { display:flex; align-items:center; gap:12px; flex-wrap:wrap; min-width:0; }
.page-tabs,.overview-tabs { border:1px solid var(--line); border-radius:9px; padding:4px; background:#fff; display:inline-flex; gap:3px; }
.page-tab,.overview-tab { min-height:32px; border-radius:6px; padding:0 15px; font-size:12px; font-weight:500; color:var(--muted); }
.page-tab.is-active,.overview-tab.is-active { color:var(--accent-strong); background:var(--accent-soft); box-shadow:none; }
.page-tab.is-active:hover,.overview-tab.is-active:hover { color:var(--accent-strong); background:#e9e1fa; }
.btn,.page-head-actions .btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:36px; padding:8px 13px; border-radius:8px; border:1px solid var(--line-strong); background:#fff; color:#626a7d; font-size:12px; font-weight:500; box-shadow:none; }
.btn:hover { border-color:#c7b9e9; color:var(--accent); background:#fdfcff; }
.btn.primary { color:#fff; background:var(--accent); border-color:var(--accent); }
.btn.primary:hover { background:var(--accent-strong); border-color:var(--accent-strong); }
.btn.danger { color:var(--danger); background:#fff7f8; border-color:#f2d2d7; }
.btn.sm { font-size:11px; min-height:30px; padding:6px 10px; }
.card { border:1px solid var(--line); background:#fff; border-radius:var(--radius); box-shadow:0 2px 5px #22253802; overflow:hidden; }
.card-h { padding:19px 22px; background:#fff; border-bottom:1px solid var(--line); gap:15px; }
.card-h h2,.card-h h3 { text-transform:none; letter-spacing:-.01em; font-size:14px; font-weight:600; color:var(--ink); }
.card-b { padding:22px; }
.text-link { font-size:11px; font-weight:500; }
.muted { color:var(--muted); font-size:12px; }
table { width:100%; border-collapse:collapse; }
th { background:#fafbfe; color:#9399a8; font-size:9px; font-weight:550; text-transform:uppercase; letter-spacing:.075em; }
th,td { padding:15px 20px; border-bottom:1px solid var(--line); }
td { font-size:12px; color:#667084; line-height:1.5; }
tbody tr:hover { background:#fcfbff; }
tbody tr:last-child td { border-bottom:0; }
.table-wrap { min-width:0; overflow:auto; }
.badge { font-size:10px; font-weight:500; padding:4px 8px; border-radius:5px; background:#f1f2f6; border-color:transparent; color:#798093; }
.badge.paid,.badge.info { color:#8065c8; background:#f0ebfc; }
.badge.ok { background:var(--ok-soft); color:var(--ok); border-color:transparent; }
.badge.warn { background:#fff4e7; color:#b48444; border-color:transparent; }
.filters { display:flex; align-items:center; flex-wrap:wrap; gap:12px; border:1px solid var(--line); background:#fff; padding:14px 18px; margin-bottom:18px; border-radius:12px; }
input:not([type=hidden]):not([type=range]),textarea,select[data-native] { background:#fff; border:1px solid var(--line-strong); border-radius:8px; color:var(--ink); min-height:38px; padding:9px 11px; font-size:12px; }
input::placeholder,textarea::placeholder { color:#a5aabb; }
.filters input { min-width:0; width:260px; max-width:100%; }
.filters input:focus,.field input:focus,.field textarea:focus { border-color:#b9a8e6; box-shadow:0 0 0 3px #b1a0eb16; outline:none; }
.pager { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; background:#fff; border-top:1px solid var(--line); font-size:11px; color:#9399a9; padding:16px 20px; }
.pager > div { display:flex; gap:8px; }
.empty { padding:45px 20px; text-align:center; font-size:12px; color:var(--muted); line-height:1.7; }
.empty strong { display:block; font-size:14px; font-weight:550; color:#515a71; margin-bottom:6px; }
.empty-state { padding:72px 20px; text-align:center; }
.empty-state-symbol { display:grid; place-items:center; width:56px; height:56px; border-radius:17px; margin:0 auto 20px; font-size:35px; color:#a68bdc; background:#f5f1fc; }
.empty-state h2 { font-size:17px; font-weight:600; letter-spacing:-.025em; margin:0 0 10px; }
.empty-state p { font-size:12px; color:var(--muted); line-height:1.8; margin:0 0 20px; }
.flash { border-radius:10px; font-size:12px; }
/* Navigation is a modal drawer at every screen width. */
.navigation-dialog { padding:0; margin:0; inset:0 auto 0 0; height:100dvh; max-height:100dvh; width:290px; max-width:88vw; border:0; background:white; overflow:visible; }
.navigation-dialog::backdrop,.users-filter-panel::backdrop { background:#1b203352; backdrop-filter:blur(2px); }
.sidebar { position:relative; top:auto; width:100%; min-width:0; max-width:none; height:100%; padding:30px 20px 20px; background:#fff; border:0; display:flex; flex-direction:column; gap:26px; overflow:hidden; }
.sidebar-close { position:absolute; right:14px; top:20px; }
.brand { padding:0 32px 0 8px; border:0; gap:10px; }
.brand-mark { background:var(--accent-soft); border:0; width:38px; height:38px; flex-basis:38px; border-radius:11px; }
.brand-logo { filter:none; width:23px; height:23px; }
.brand strong { color:var(--ink); font-size:17px; letter-spacing:.04em; }
.brand .brand-text > span { color:var(--muted); font-size:9px; letter-spacing:0; margin-top:3px; }
.workspace-search { display:flex; align-items:center; gap:10px; padding:11px; border:1px solid var(--line); border-radius:8px; background:#f8f9fc; font-size:12px; color:var(--muted); text-align:left; }
.workspace-search svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.6; }
.workspace-search kbd { font:inherit; font-size:10px; margin-left:auto; white-space:nowrap; }
.nav { gap:24px; overflow:auto; scrollbar-color:var(--line-strong) transparent; }
.nav-group { gap:4px; }
.nav-group-label { color:#a0a5b4; font-size:9px; letter-spacing:.1em; font-weight:600; margin-left:12px; }
.nav a { font-size:13px; font-weight:500; min-height:42px; border-radius:8px; color:#7c8295; }
.nav-ico,.nav a:hover .nav-ico { color:#9a9fb0; }
.nav-ico svg { width:17px; height:17px; }
.nav a:hover { background:#f8f9fc; color:var(--ink); }
.nav a.active { color:var(--accent); background:var(--accent-soft); box-shadow:none; }
.nav a.active::before { display:none; }
.nav a.active .nav-ico { color:var(--accent); }
.sidebar-foot { border-color:var(--line); padding-top:16px; gap:12px; }
.sidebar-user { border:0; background:transparent; padding:0; }
.sidebar-user-meta strong { color:var(--ink); font-size:12px; }
.sidebar-user-meta span { color:var(--muted); font-size:10px; }
.logout-btn { min-height:34px; border:1px solid var(--line); border-radius:7px; color:var(--muted); font-size:12px; background:#fff; }
.logout-btn:hover { color:var(--ink); background:#f8f9fc; border-color:var(--line-strong); }
body:has(.navigation-dialog:modal),body:has(.users-filter-panel:modal) { overflow:hidden; }
/* Users: one filter rail and a separate records workspace. */
.users-workspace { display:grid; grid-template-columns:252px minmax(0,1fr); align-items:start; gap:28px; }
.users-filter-panel { display:block; position:sticky; top:96px; margin:0; width:100%; max-width:100%; padding:0; border:1px solid var(--line); border-radius:13px; background:#fff; color:var(--ink); max-height:calc(100dvh - 120px); overflow:visible; }
.users-filter-panel:not([open]) { display:none; }
.filter-form { display:flex; flex-direction:column; max-height:inherit; }
.filter-panel-heading { display:flex; align-items:center; justify-content:space-between; padding:21px 20px 18px; border-bottom:1px solid var(--line); }
.filter-panel-heading .eyebrow { font-size:8px; margin-bottom:6px; }
.filter-panel-heading h2 { margin:0; font-size:16px; font-weight:600; letter-spacing:-.02em; }
.filter-close,.filter-open { display:none; }
.filter-panel-body { padding:20px; overflow:auto; min-height:0; scrollbar-width:thin; scrollbar-color:#e1deeb transparent; }
.filter-field { display:flex; flex-direction:column; gap:8px; min-width:0; margin:0 0 17px; }
.filter-field > label,.filter-field legend { font-size:10px; color:#8c92a3; font-weight:500; padding:0; }
.filter-field input { width:100%; min-width:0; font-size:11px !important; min-height:36px !important; }
.search-field { display:flex; align-items:center; position:relative; }
.search-field svg { position:absolute; left:10px; width:14px; height:14px; color:#9ba1b2; }
.search-field input { padding-left:31px !important; }
.filter-section { border-top:1px solid var(--line); margin-top:20px; padding-top:17px; }
.filter-section summary { list-style:none; font-size:11px; font-weight:600; color:#737b90; cursor:pointer; display:flex; justify-content:space-between; align-items:center; }
.filter-section summary::-webkit-details-marker { display:none; }
.filter-section summary::after { content:'+'; font-weight:400; color:#a7adba; font-size:16px; }
.filter-section[open] summary::after { content:'−'; }
.filter-section-body { padding-top:18px; }
.filter-section-body > :last-child { margin-bottom:0; }
.filter-age { border:0; padding:0; }
.filter-age legend { margin-bottom:8px; }
.filter-age > div { display:flex; align-items:center; gap:8px; color:#adb2c0; }
.filter-panel-footer { border-top:1px solid var(--line); padding:15px 20px; display:flex; flex-direction:column; align-items:center; gap:13px; background:#fff; border-radius:0 0 13px 13px; }
.filter-panel-footer .btn { width:100%; justify-content:space-between; font-size:11px; }
.filter-reset { color:#9ba1b0; font-size:10px; }
.users-results { min-width:0; }
.records-toolbar { display:flex; align-items:center; justify-content:space-between; gap:15px; border-bottom:1px solid var(--line); margin-bottom:18px; }
.record-views { display:flex; align-items:stretch; gap:24px; overflow:auto; min-width:0; scrollbar-width:none; }
.record-views a { color:#9399aa; font-size:11px; font-weight:500; padding:0 0 18px; border-bottom:2px solid transparent; white-space:nowrap; }
.record-views a.is-active { color:var(--accent); border-bottom-color:var(--accent); }
.records-tools { display:flex; align-items:center; gap:8px; padding-bottom:12px; }
.view-switch { display:flex; gap:3px; padding:3px; border:1px solid var(--line); border-radius:7px; background:#fff; }
.view-switch button { width:30px; height:27px; border:0; border-radius:4px; color:#b0b4c1; display:grid; place-items:center; background:transparent; }
.view-switch button[aria-pressed=true] { color:var(--accent); background:var(--accent-soft); }
.view-switch svg { width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; }
.results-meta { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:18px; font-size:10px; color:#9da3b3; }
.results-meta strong { color:#777e92; font-weight:500; }
.sort-form { display:flex; align-items:center; gap:10px; }
.sort-form > label { font-size:10px; color:#a6abba; }
.sort-form .smart-select { width:162px; }
.sort-form .smart-select-trigger { font-size:10px; min-height:31px; background:transparent; border-color:transparent; }
.active-filters { display:flex; flex-wrap:wrap; gap:7px; margin-bottom:18px; }
.filter-chip { display:flex; align-items:center; gap:9px; color:#8c7caf; background:#f0ebf8; border:1px solid #e7def4; padding:6px 9px; border-radius:6px; font-size:10px; max-width:100%; }
.filter-chip strong { font-weight:500; }
.filter-chip > span:first-child { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.users-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.person-record { background:#fff; border:1px solid var(--line); border-radius:12px; padding:22px; display:grid; grid-template-columns:1fr 1fr; gap:20px; min-width:0; }
.person-record:hover { border-color:#cfc2ed; }
.person-identity { display:flex; align-items:center; gap:13px; grid-column:1/-1; min-width:0; color:var(--ink); }
.person-identity > div:last-child { min-width:0; }
.person-avatar { position:relative; width:42px; height:42px; flex:0 0 42px; display:grid; place-items:center; border-radius:12px; background:#f0eafa; font-size:17px; color:#9a7bc7; }
.person-avatar img { width:100%; height:100%; object-fit:cover; border-radius:inherit; }
.presence-dot { position:absolute; width:9px; height:9px; border:2px solid #fff; border-radius:50%; background:#65b49d; bottom:-1px; right:-1px; }
.person-identity h2 { font-size:12px; font-weight:550; margin:0 0 5px; letter-spacing:-.01em; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.person-subline { display:block; color:#afb3c1; font-size:9px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.record-label { display:block; color:#aeb3c1; text-transform:uppercase; letter-spacing:.055em; font-size:8px; margin-bottom:8px; font-weight:500; }
.person-location strong { font-size:11px; color:#798195; font-weight:500; display:block; }
.person-location > span:last-child,.person-activity > span:last-child { display:block; color:#aab0bd; font-size:9px; margin-top:5px; }
.person-plan .badge { font-size:9px; }
.status-label { font-size:10px; color:#8f96a5; display:inline-flex; align-items:center; gap:6px; white-space:nowrap; }
.status-label i { width:5px; height:5px; border-radius:50%; background:#c3c8d3; }
.status-label.online { color:#73a793; }.status-label.online i { background:#66b69c; }
.status-label.blocked { color:#c27d88; }.status-label.blocked i { background:#dca1aa; }
.person-activity > span { font-size:10px; color:#a3a9b8; }.person-activity strong { font-weight:500; }
.person-open { display:flex; align-items:center; justify-content:space-between; grid-column:1/-1; color:#a794cd; font-size:10px; border-top:1px solid var(--line); padding-top:14px; }
.person-open svg { width:13px; height:13px; stroke:currentColor; stroke-width:1.5; fill:none; }
.users-grid.is-list { display:grid; grid-template-columns:1fr; gap:0; border:1px solid var(--line); border-radius:12px; overflow:hidden; background:#fff; }
.is-list .person-record { grid-template-columns:minmax(190px,1.6fr) minmax(105px,1fr) 90px 115px 105px 24px; align-items:center; gap:18px; padding:20px 22px; border:0; border-bottom:1px solid var(--line); border-radius:0; }
.is-list .person-record:last-child { border-bottom:0; }
.is-list .person-record:hover { background:#fdfcff; }
.is-list .person-identity,.is-list .person-open { grid-column:auto; }
.is-list .person-open { border:0; padding:0; justify-content:center; }.is-list .person-open span { display:none; }
.users-pager { background:none; border:0; padding:18px 0; }
/* Searchable selects, shared by filters, analytics and profile actions. */
.smart-select { position:relative; min-width:0; width:100%; }
.smart-native { position:absolute !important; width:1px !important; height:1px !important; min-height:0 !important; padding:0 !important; margin:0 !important; opacity:0; clip-path:inset(50%); pointer-events:none; }
.smart-select-trigger { width:100%; display:flex; align-items:center; justify-content:space-between; gap:10px; text-align:left; min-height:36px; padding:8px 11px; color:#9198a9; border:1px solid var(--line-strong); border-radius:7px; background:#fff; font-size:11px; }
.smart-select-trigger > span:first-child { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.smart-select.has-value .smart-select-trigger { color:#7e6ca7; background:#fdfbff; border-color:#dcd1ee; }
.smart-select.is-open .smart-select-trigger { border-color:#bfa8e6; box-shadow:0 0 0 3px #b1a0eb14; }
.smart-chevron { font-size:15px; line-height:1; color:#b0b5c3; }
.smart-menu { position:fixed; z-index:3000; display:flex; flex-direction:column; padding:5px; background:#fff; border:1px solid #e8e3f0; border-radius:10px; box-shadow:0 10px 40px #3f315c20,0 2px 6px #3f315c08; }
.smart-menu-search { width:calc(100% - 6px); min-height:33px !important; margin:3px 3px 7px; font-size:11px !important; border-color:var(--line) !important; }
.smart-options { overflow:auto; min-height:0; scrollbar-width:thin; scrollbar-color:#e3dceb transparent; }
.smart-option { padding:10px 11px; color:#8d91a0; font-size:11px; border-radius:6px; cursor:pointer; display:flex; align-items:center; justify-content:space-between; gap:10px; }
.smart-option[aria-selected=true] { color:#8c6dbb; background:#f6f1fc; }.smart-option[aria-selected=true]::after { content:'✓'; }
.smart-option.is-highlighted,.smart-option:hover { background:#f3eff9; color:#8064ae; }
.smart-option[aria-disabled=true] { opacity:.4; cursor:default; }
.smart-empty { padding:20px 12px; color:#a7acbb; text-align:center; font-size:11px; }
.filters > .smart-select { width:190px; max-width:100%; }
.page-head-filters > .smart-select { width:150px; min-width:130px; }
.page-head-period .smart-select { width:160px; }
.profile-crm-row .smart-select { flex:1; }
/* Overview and analytics. */
.grid.stats { grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; }
.stat { padding:24px; }.stat::before { display:none; }
.stat .label { font-size:11px; color:#9298aa; font-weight:500; text-transform:none; letter-spacing:0; }
.stat .value { font-family:var(--font); color:#41465b; margin-top:18px; font-size:33px; font-weight:550; letter-spacing:-.045em; font-variant-numeric:tabular-nums; }
.stat .hint { margin-top:14px; font-size:10px; color:#adb2c0; line-height:1.6; }
a.stat { color:inherit; transition:border-color .15s; }a.stat:hover { border-color:#cfbfea; }
.stat-top { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.stat-symbol { display:grid; place-items:center; width:30px; height:30px; border-radius:9px; background:#f1ecfa; color:#af95d7; }
.stat-symbol svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.stat-symbol.green { background:#edf8f4; color:#8dbdad; }.stat-symbol.blue { background:#edf3fb; color:#98b5d8; }.stat-symbol.orange { background:#fff6eb; color:#cfb28a; }
.metric-note { color:#6fa48f; background:#edf7f1; border-radius:4px; padding:3px 5px; margin-right:4px; }
.dashboard-columns { display:grid; grid-template-columns:minmax(0,1.7fr) minmax(280px,1fr); gap:24px; margin-top:24px; align-items:start; }
.dashboard-stack { display:grid; gap:24px; min-width:0; }
.attention-card { background:linear-gradient(135deg,#fdfbff,#fff); }
.attention-top { display:flex; justify-content:space-between; gap:10px; align-items:center; padding:22px 22px 0; }
.attention-top h2 { font-size:14px; margin:0; font-weight:600; }
.attention-total { display:flex; align-items:center; gap:17px; padding:25px 22px; }
.attention-total strong { font-size:42px; line-height:1; font-weight:550; letter-spacing:-.045em; color:#66547f; }
.attention-total p { font-size:11px; color:#aaa0b6; line-height:1.7; margin:0; }
.attention-links { margin:0 22px 20px; }.attention-links a { display:flex; justify-content:space-between; gap:12px; border-top:1px solid #f0edf5; padding:13px 0; color:#a59ab6; font-size:11px; }.attention-links strong { font-weight:500; color:#9b8cb2; }
.attention-card > .btn { margin:0 22px 22px; display:flex; }
.dashboard-person { display:flex; align-items:center; gap:12px; color:#7e8296; font-weight:500; }.dashboard-person small { display:block; color:#bbc0cc; font-size:9px; margin-top:4px; }
.initial-avatar { width:34px; height:34px; flex:0 0 34px; display:grid; place-items:center; border-radius:10px; background:#f0ebf8; color:#b09acb; font-size:12px; }
.breakdown-row { margin-bottom:19px; }.breakdown-row:last-child { margin-bottom:0; }
.breakdown-label { display:flex; justify-content:space-between; align-items:center; gap:14px; font-size:11px; margin-bottom:9px; color:#a0a5b5; }.breakdown-label strong { font-weight:500; color:#8c91a2; }.breakdown-label .muted { font-size:10px; }
.breakdown-track { height:5px; background:#f3f1f8; border-radius:8px; overflow:hidden; }.breakdown-track span { display:block; height:100%; background:#baa7df; border-radius:inherit; }
.dashboard-bottom { display:grid; grid-template-columns:1fr 1fr; gap:24px; margin-top:24px; }
.quick-links { display:grid; grid-template-columns:1fr 1fr; gap:12px; }.quick-links a { display:flex; justify-content:space-between; gap:10px; border:1px solid var(--line); background:#fcfcfe; border-radius:8px; padding:15px; font-size:11px; color:#a0a6b6; }.quick-links strong { font-weight:500; color:#8b8fa3; }
.analytics-card .card-h { flex-wrap:wrap; }.analytics-kpis { gap:14px; }.analytics-grid { gap:24px; margin-bottom:24px; }.analytics-kpi .value { font-size:28px; }
.page-head-period { display:flex; align-items:center; gap:10px; flex-wrap:wrap; min-width:0; }.period-custom { gap:8px; }.period-custom input[type=date] { border-radius:7px; }
/* User profile and detail panels. */
.profile { gap:24px; }.profile-hero { border:1px solid var(--line); background:#fff; border-radius:14px; padding:26px; box-shadow:none; }
.profile-ava { box-shadow:none; border:0; background:var(--accent-soft); border-radius:14px; }
.profile-identity h1 { color:#404458; font-size:26px; font-weight:600; }.profile-sub { font-size:12px; color:#a0a6b6; line-height:1.6; }
.profile-pill,.profile-btn,.profile-back,.profile-btn-ghost { border-radius:7px; border-color:var(--line); box-shadow:none; background:#fff; color:#8b8fa3; font-size:11px; font-weight:500; }
.profile-btn-danger { background:#fff9fa; border-color:#f0d9de; color:#c38491; }.profile-btn-danger:hover { background:#fff1f4; color:#b9697c; }
.profile-btn-dark { background:var(--accent); color:#fff; }
.profile-status { border-radius:5px; min-height:26px; font-size:10px; font-weight:500; background:#f4f2f8; color:#a095b2; }
.profile-status.is-ok,.profile-status.is-online { background:#eff7f2; color:#8bae9c; }.profile-status.is-danger { background:#fcf0f2; color:#cc98a3; }.profile-status.is-warn { background:#fcf5ec; color:#c9ae89; }
.profile-panel { border-radius:13px; box-shadow:none; padding:22px; }.profile-panel-h h2 { font-size:14px; font-weight:600; }.profile-panel-ico { width:28px; height:28px; border-radius:8px; background:#f2eef9; color:#b29bd5; }
.profile-fact { border:0; border-radius:0; background:transparent; padding:10px 0; border-bottom:1px solid var(--line); }.profile-fact span { text-transform:none; font-size:10px; font-weight:400; letter-spacing:0; color:#a8aebb; }.profile-fact strong { font-size:12px; font-weight:500; color:#7f8799; }
.profile-stats .profile-stat { border-radius:11px; box-shadow:none; }.profile-crm-row { align-items:center; }
.profile-layout { gap:24px; }.profile-main,.profile-aside { gap:20px; }
.profile-history-empty { padding:26px 12px; }.profile-history-empty strong { font-weight:550; font-size:14px; }
.meta-list dt { font-size:10px; text-transform:none; letter-spacing:0; font-weight:400; }.meta-list dd { font-size:13px; color:#737b8d; font-weight:500; }
.chat-thread { background:#fafbfd; }.thread-content { min-width:0; }.thread-text { font-size:13px; line-height:1.8; overflow-wrap:anywhere; }.thread-head { flex-wrap:wrap; }
/* Global command dialog and login. */
.command-dialog { width:min(560px,calc(100vw - 28px)); max-height:calc(100dvh - 48px); margin:8vh auto auto; padding:24px; border:1px solid var(--line); border-radius:16px; color:var(--ink); box-shadow:0 24px 100px #22253830; }
.command-dialog::backdrop { background:#1b203352; backdrop-filter:blur(3px); }
.command-heading { display:flex; align-items:center; justify-content:space-between; gap:15px; margin-bottom:20px; }.command-heading h2 { font-size:17px; font-weight:600; letter-spacing:-.025em; margin:0; }
.command-form { display:flex; gap:8px; }.command-form input { width:100%; min-width:0; }
.command-caption,.command-footer { font-size:10px; color:#a1a7b5; margin:22px 0 10px; }.command-links { display:grid; gap:2px; }.command-links a { display:flex; align-items:center; justify-content:space-between; border-radius:8px; padding:11px; color:#b4a5c9; }.command-links a:hover { background:#faf8fd; }.command-links strong { display:block; font-size:12px; font-weight:500; color:#858b9d; }.command-links small { display:block; font-size:10px; color:#b0b4c1; margin-top:4px; }.command-footer { padding-top:15px; border-top:1px solid var(--line); }
.login-page { background:radial-gradient(ellipse at 20% 20%,#f0eafb,transparent 60%),var(--bg); padding:24px; }.login-card { width:min(420px,100%); padding:38px; border:1px solid var(--line); border-radius:18px; box-shadow:0 24px 80px #33246608; }.login-brand { justify-content:flex-start; gap:12px; }.login-brand img { width:40px; height:40px; border-radius:11px; background:var(--accent-soft); padding:8px; }.login-brand h1 { font-size:21px; letter-spacing:-.03em; }.login-card > p { line-height:1.8; font-size:12px; color:#9da3b4; margin:22px 0 28px; }.login-card input { width:100%; min-width:0; min-height:44px !important; }.login-card .btn { min-height:44px; justify-content:center; width:100%; }.login-error { font-size:12px; border-radius:8px; }
@media (max-width:1350px) {
  .is-list .person-record { grid-template-columns:minmax(170px,1.5fr) minmax(100px,1fr) 85px 100px 20px; gap:14px; padding:20px; }.is-list .person-activity { display:none; }
  .users-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.users-grid.is-list { grid-template-columns:1fr; }
  .workspace-date { display:none; }
}
@media (max-width:1100px) {
  .main { padding:28px; }.workspace-topbar { padding:0 28px; gap:18px; }.topbar-search { width:240px; }.topbar-search > span { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
  .users-workspace { gap:20px; grid-template-columns:240px minmax(0,1fr); }.is-list .person-record { grid-template-columns:minmax(150px,1.5fr) 85px 90px 18px; }.is-list .person-location { display:none; }
  .grid.stats { grid-template-columns:repeat(2,minmax(0,1fr)); }.dashboard-columns { grid-template-columns:minmax(0,1.4fr) minmax(270px,1fr); gap:20px; }.dashboard-stack { gap:20px; }
}
@media (max-width:1023px) {
  .users-workspace { grid-template-columns:minmax(0,1fr); }.users-filter-panel { position:fixed; inset:0 auto 0 0; margin:0; width:300px; max-width:90vw; height:100dvh; max-height:100dvh; border:0; border-radius:0; }.users-filter-panel:not(:modal) { display:none; }.filter-form { height:100%; }.filter-panel-body { flex:1; }.filter-panel-heading { padding-top:25px; }.filter-panel-footer { border-radius:0; }.filter-close,.filter-open { display:inline-flex; }.filter-open { min-height:32px; font-size:10px; }.filter-open .heading-count { margin-left:0; }
  .is-list .person-record { grid-template-columns:minmax(190px,1.6fr) minmax(110px,1fr) 95px 115px 20px; }.is-list .person-location { display:block; }
  .records-tools { padding-bottom:10px; }
}
@media (max-width:820px) {
  .workspace-topbar { height:62px; padding:0 18px; gap:14px; }.topbar-brand { border:0; padding:0; }.topbar-brand strong { font-size:13px; }.topbar-brand strong span { display:none; }.topbar-brand img { width:22px; height:22px; }.workspace-breadcrumb { display:none; }.topbar-search { width:35px; height:35px; max-width:none; padding:0; justify-content:center; margin-left:auto; background:#fff; }.topbar-search span,.topbar-search kbd { display:none; }.workspace-topbar-actions { gap:10px; }.workspace-topbar-actions .icon-btn { display:none; }
  .main { padding:25px 18px 32px; }.page-head { margin-bottom:23px; gap:16px; }.page-head h1 { font-size:26px; }.page-head p { font-size:11px; }.page-head-right { width:100%; justify-content:flex-start; }.page-head-filters { width:100%; flex:1 1 100%; }.page-head-filters .page-head-search { width:100%; min-width:0; max-width:100%; }.page-head-filters .smart-select { flex:1; min-width:120px; }.page-tabs { width:auto; }.page-tab { flex:initial; font-size:11px; }
  .record-views { gap:18px; }.record-views a { font-size:10px; padding-bottom:17px; }.records-toolbar { gap:8px; flex-wrap:wrap; }.records-tools { margin-left:auto; }.results-meta { font-size:9px; }.sort-form { gap:0; }.sort-form > label { display:none; }.sort-form .smart-select { width:140px; }
  .is-list .person-record { grid-template-columns:minmax(170px,1.5fr) 90px 20px; gap:12px; padding:18px; }.is-list .person-location,.is-list .person-status { display:none; }
  .is-list .person-plan .record-label { display:none; }.is-list .person-identity h2 { font-size:12px; }.person-record { padding:18px; }.users-grid { gap:12px; }
  .dashboard-columns,.dashboard-bottom { grid-template-columns:1fr; gap:18px; margin-top:18px; }.dashboard-stack { gap:18px; }.card-h,.card-b { padding:18px; }.card-h { flex-wrap:wrap; }.stat { padding:18px; }.stat .value { font-size:30px; }.stat .label { font-size:10px; }.stat .hint { font-size:9px; }.grid.stats { gap:12px; }.stat-symbol { width:25px; height:25px; }
  .analytics-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }.analytics-grid,.analytics-grid.three { grid-template-columns:1fr; }.analytics-kpi .value { font-size:25px; }.period-custom { flex-wrap:wrap; }.period-custom input[type=date] { max-width:100%; }
  .profile-hero { padding:18px; border-radius:12px; }.profile-hero-left { gap:12px; }.profile-identity h1 { font-size:23px; overflow-wrap:anywhere; }.profile-sub { overflow-wrap:anywhere; }.profile-pill { height:auto; min-height:34px; max-width:100%; overflow-wrap:anywhere; }.profile-panel { padding:18px; }.profile-facts { grid-template-columns:repeat(2,minmax(0,1fr)); }.profile-layout { grid-template-columns:1fr; gap:18px; }.profile-fact { min-width:0; }
  .quick-links { gap:9px; }.quick-links a { font-size:10px; padding:13px; }.login-card { padding:28px; }
}
@media (max-width:480px) {
  .workspace-topbar { gap:11px; }.workspace-topbar-actions { gap:0; }
  .page-head-actions { width:100%; }.page-head-actions .btn { font-size:10px; }
  .records-toolbar { display:block; }.record-views { justify-content:space-between; gap:10px; }.records-tools { justify-content:space-between; padding-top:12px; }
  .is-list .person-record { grid-template-columns:minmax(0,1fr) 75px; gap:10px; padding:17px 14px; }.is-list .person-open { display:none; }.person-avatar { width:36px; height:36px; flex-basis:36px; border-radius:10px; }.person-identity { gap:10px; }.is-list .person-identity h2 { font-size:11px; }.person-subline { font-size:8px; }.person-plan .badge { font-size:8px; padding:4px 6px; }
  .users-grid:not(.is-list) { grid-template-columns:1fr; }.results-meta { gap:5px; }.sort-form .smart-select { width:125px; }.sort-form .smart-select-trigger { padding:7px 4px; }
  th,td { padding:13px 15px; }.attention-top,.attention-total { padding-left:18px; padding-right:18px; }.attention-links { margin-left:18px; margin-right:18px; }.attention-card > .btn { margin-left:18px; margin-right:18px; }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { transition:none !important; animation:none !important; scroll-behavior:auto !important; } }
/* Reading sizes and column headers stay consistent across the workspace. */
.eyebrow { font-size:10px; color:#8790a3; }
.page-head p { font-size:13px; }
.workspace-breadcrumb { font-size:13px; }
.topbar-search { font-size:12px; }
.filter-field > label,.filter-field legend { font-size:11px; color:#778195; }
.filter-section summary { font-size:12px; color:#667287; }
.filter-field input,.smart-select-trigger { font-size:12px !important; color:#69758b; }
.filter-field input { font-size:12px !important; }
.smart-option { font-size:12px; color:#6c7588; }
.smart-menu-search { font-size:12px !important; }
.smart-option[aria-selected=true],.smart-option.is-highlighted,.smart-option:hover { color:#7454ad; }
.person-identity h2 { font-size:14px; color:#31394c; }
.person-subline { font-size:11px; color:#8b94a6; }
.person-location strong { font-size:12px; color:#6c778d; }
.person-location > span:last-child,.person-activity > span:last-child { font-size:10px; color:#8e97a9; }
.person-activity > span,.status-label { font-size:11px; color:#7c879b; }
.record-label { font-size:9px; color:#8e98a9; }
.record-views a { font-size:12px; color:#7a8498; }
.results-meta,.sort-form > label { font-size:11px; color:#8792a6; }
.sort-form .smart-select { width:175px; }
.sort-form .smart-select-trigger { font-size:11px !important; }
.filter-panel-footer .btn { font-size:12px; }
.filter-reset { font-size:11px; color:#8b94a5; }
.filter-chip { font-size:11px; color:#7c669f; }
.records-column-head { display:grid; grid-template-columns:minmax(190px,1.6fr) minmax(105px,1fr) 90px 115px 105px 24px; gap:18px; padding:13px 23px; border:1px solid var(--line); border-bottom:0; border-radius:12px 12px 0 0; background:#fafbfe; font-size:10px; color:#8c97a9; }
.users-grid.is-list { border-radius:0 0 12px 12px; }
.is-list .record-label { display:none; }
.is-card-view .records-column-head { display:none; }
.is-list .person-record { padding-top:18px; padding-bottom:18px; }
.person-plan .badge { font-size:10px; }
.stat .label { font-size:12px; color:#7c879a; }.stat .value { color:#343f54; }.stat .hint { font-size:11px; color:#8993a5; }
.breakdown-label { font-size:12px; color:#78849a; }.breakdown-label strong { color:#66738a; }
.dashboard-person { color:#5d6b83; }.dashboard-person small { color:#939eaf; font-size:10px; }
.attention-total p { color:#91859f; font-size:12px; }.attention-links a { color:#8d7f9f; font-size:12px; }
.quick-links a { color:#7f8a9f; font-size:12px; }.quick-links strong { color:#64738b; }
@media (max-width:1350px) { .records-column-head { grid-template-columns:minmax(170px,1.5fr) minmax(100px,1fr) 85px 100px 20px; gap:14px; padding-left:21px; padding-right:21px; }.records-column-head span:nth-child(5) { display:none; } }
@media (max-width:1100px) { .records-column-head { grid-template-columns:minmax(150px,1.5fr) 85px 90px 18px; }.records-column-head span:nth-child(2) { display:none; } }
@media (max-width:1023px) { .records-column-head { grid-template-columns:minmax(190px,1.6fr) minmax(110px,1fr) 95px 115px 20px; }.records-column-head span:nth-child(2) { display:block; } }
@media (max-width:820px) { .records-column-head { grid-template-columns:minmax(170px,1.5fr) 90px 20px; }.records-column-head span:nth-child(2),.records-column-head span:nth-child(4) { display:none; }.person-identity h2,.is-list .person-identity h2 { font-size:13px; }.person-subline { font-size:10px; }.record-views a { font-size:11px; }.results-meta { font-size:10px; }.sort-form .smart-select { width:155px; } }
@media (max-width:480px) { .records-column-head { display:none; }.users-grid.is-list { border-radius:12px; }.is-list .person-plan .badge { font-size:9px; }.sort-form .smart-select { width:140px; }.is-list .person-identity h2 { font-size:12px; }.person-subline { font-size:9px; } }
@media (min-width:1024px) { .users-filter-panel { max-height:calc(100dvh - 250px); }.filter-panel-body { flex:1; } }
.moderation-workspace { display:grid; grid-template-columns:252px minmax(0,1fr); gap:28px; align-items:start; }
.moderation-sidebar { position:sticky; top:96px; }
.moderation-views { padding:12px; display:grid; gap:5px; }
.moderation-views a { display:flex; align-items:center; justify-content:space-between; gap:12px; border-radius:7px; padding:12px 10px; color:#778297; font-size:12px; }
.moderation-views a.is-active { background:var(--accent-soft); color:var(--accent); }
.moderation-views strong { font-size:11px; font-weight:500; background:#fff; padding:3px 7px; border-radius:4px; }
.moderation-status { padding:18px 22px; border-top:1px solid var(--line); }.moderation-status > label { display:block; font-size:11px; color:#8490a2; margin-bottom:10px; }
.moderation-note { margin:0; padding:0 22px 22px; color:#939dad; font-size:11px; line-height:1.7; }
.report-list { display:grid; gap:18px; min-width:0; }.section-caption { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:2px; }.section-caption h2 { font-size:14px; margin:0; font-weight:600; }.section-caption > span { font-size:11px; color:#8f99aa; }
.report-record { padding:24px; }.report-record-head { display:flex; align-items:center; justify-content:space-between; gap:16px; }.report-number { font-size:9px; color:#9aa4b5; letter-spacing:.055em; }.report-record h3 { font-size:16px; font-weight:550; margin:23px 0; color:#526078; line-height:1.6; overflow-wrap:anywhere; }
.report-people { display:grid; grid-template-columns:1fr 1fr; gap:22px; padding-bottom:22px; }.report-people .table-person { color:#64748b; font-size:12px; }.report-people .table-person-avatar { width:32px; height:32px; flex-basis:32px; font-size:12px; }
.report-context { display:flex; flex-wrap:wrap; gap:16px; color:#8490a3; font-size:12px; padding-bottom:22px; }
.report-actions { display:flex; flex-wrap:wrap; align-items:center; gap:9px; padding-top:18px; border-top:1px solid var(--line); }.report-actions form { margin:0; }
.detail-breadcrumb { display:flex; align-items:center; gap:12px; font-size:11px; color:#939dad; }.detail-breadcrumb a { color:#788399; }
.detail-sections { display:flex; gap:28px; border-bottom:1px solid var(--line); overflow:auto; }.detail-sections a { display:flex; align-items:center; gap:8px; padding:0 0 16px; color:#7d889b; font-size:12px; white-space:nowrap; }.detail-sections span { color:#a294b8; background:var(--accent-soft); padding:2px 5px; border-radius:4px; font-size:10px; }
@media (max-width:820px) { .moderation-workspace { grid-template-columns:1fr; gap:22px; }.moderation-sidebar { position:static; }.moderation-views { grid-template-columns:1fr 1fr; }.moderation-note { display:none; }.moderation-status { padding:15px 18px; }.moderation-sidebar .card-h { display:none; }.report-record { padding:18px; }.report-people { grid-template-columns:1fr; gap:18px; }.report-record-head { flex-wrap:wrap; }.section-caption { align-items:flex-start; flex-direction:column; }.detail-sections { gap:20px; }.detail-sections a { font-size:11px; } }
.table-person-note { margin:6px 0 0 46px; font-size:10px; color:#8d97a9; }
.filter-label { font-size:11px; color:#8490a3; }
.person-access-note { display:none; }
@media (max-width:820px) { .person-access-note { display:inline-block; color:#b46a7c; font-size:10px; margin-top:6px; } }
/* Muted text remains readable in dense records and status badges. */
th,.record-label,.profile-fact span,.results-meta,.sort-form > label { color:#748095; }
.person-subline,.person-location > span:last-child,.person-activity > span:last-child { color:#7b879c; }
.status-label.online { color:#358167; }.status-label.blocked { color:#b45b70; }
.profile-status.is-ok,.profile-status.is-online { color:#428367; }.profile-status.is-danger { color:#b45b70; }.profile-status.is-warn { color:#9c7744; }
.profile-fact strong { color:#637187; }.filter-reset { color:#748095; }
.places-map-shell { height:calc(100dvh - 270px); min-height:420px; border-radius:13px; border-color:var(--line); }
.place-sheet { border:1px solid var(--line); border-radius:13px; box-shadow:0 12px 45px #31364c1a; }
@media (max-width:820px) { .places-map-shell { height:65dvh; min-height:400px; } }
@media (max-width:820px) {
  .filter-field input,.smart-menu-search,.command-form input,.filters input,textarea { font-size:16px !important; }
}
