/* ===================== WXCMG Enterprise Admin ===================== */
body.admin-body { background: #f4f7fc; overflow-x: hidden; }

.login-screen { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; background: #fff; }
.login-visual {
  position: relative; overflow: hidden; padding: 46px 54px; color: #fff;
  background: radial-gradient(1200px 700px at 80% -10%, #1d5bc4 0%, transparent 58%),
              radial-gradient(900px 500px at -10% 105%, #0c97bf 0%, transparent 56%),
              linear-gradient(145deg, #06132f 0%, #0a2456 55%, #0e3272 100%);
  display: flex; flex-direction: column;
}
.login-visual::before { pointer-events: none;
  content: ""; position: absolute; width: 720px; height: 720px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.09); right: -210px; top: 60px;
}
.login-visual::after { pointer-events: none;
  content: ""; position: absolute; width: 1040px; height: 1040px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.06); right: -370px; top: -90px;
}
.login-brand { display: flex; align-items: center; gap: 13px; position: relative; z-index: 2; }
.login-brand img { width: 46px; height: 46px; border-radius: 13px; object-fit: cover; box-shadow: 0 8px 26px rgba(0,0,0,.24); }
.login-brand .lg-name { font-size: 18px; font-weight: 750; letter-spacing: .3px; }
.login-brand .lg-sub { font-size: 10px; color: rgba(255,255,255,.55); letter-spacing: 2.4px; margin-top: 2px; }
.login-hero { margin: auto 0; position: relative; z-index: 2; max-width: 570px; }
.login-brand-large { font-size: clamp(64px, 8vw, 112px); line-height: .9; letter-spacing: -5px; font-weight: 800; color: rgba(255,255,255,.12); user-select: none; }
.login-brand-large span { display: block; margin-top: 22px; font-size: 11px; line-height: 1; letter-spacing: 8px; font-weight: 600; color: rgba(125,180,255,.45); }
.login-kicker {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 99px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.13);
  font-size: 11px; letter-spacing: 1px; color: #bcd7ff; text-transform: uppercase;
}
.login-hero h1 { margin: 24px 0 18px; font-size: clamp(34px, 3.5vw, 50px); line-height: 1.14; letter-spacing: -1.8px; font-weight: 750; }
.login-hero h1 .grad { background: linear-gradient(100deg, #7cc4ff, #54e2ef 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login-hero > p { font-size: 14px; line-height: 1.8; color: rgba(226,239,255,.7); max-width: 480px; }
.login-features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 34px; }
.login-feature {
  display: flex; align-items: flex-start; gap: 11px; padding: 14px; border-radius: 13px;
  background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.09);
}
.login-feature .lf-icon { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 10px; background: rgba(90,175,255,.16); color: #78bcff; display: flex; align-items: center; justify-content: center; }
.login-feature b { display: block; font-size: 12.5px; margin-bottom: 3px; }
.login-feature span { font-size: 10.5px; color: rgba(255,255,255,.52); line-height: 1.45; }
.login-foot { position: relative; z-index: 2; display: flex; justify-content: space-between; font-size: 10.5px; color: rgba(255,255,255,.35); }
.login-foot a:hover { color: #fff; }

.login-form-side { padding: 42px 9vw; display: flex; align-items: center; justify-content: center; background: #fff; position: relative; }
.login-form-box { width: 100%; max-width: 390px; }
.login-form-box .mobile-brand { display: none; }
.login-form-box h2 { font-size: 28px; letter-spacing: -1px; margin: 0 0 8px; color: var(--navy-900); }
.login-form-box .sub { font-size: 13px; color: var(--slate-500); margin-bottom: 30px; line-height: 1.7; }
.login-form-box .field { margin-bottom: 17px; }
.login-form-box .input { height: 48px; border-radius: 12px; background: #fbfcfe; }
.input-eye { position: relative; }
.input-eye .input { padding-right: 44px; }
.input-eye button { position: absolute; right: 5px; top: 5px; width: 38px; height: 38px; border: 0; background: transparent; color: var(--slate-400); border-radius: 9px; }
.input-eye button:hover { background: var(--slate-100); color: var(--slate-700); }
.login-options { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 22px; font-size: 12px; }
.login-options a { color: var(--blue-600); font-weight: 600; }
.login-submit { height: 48px; border-radius: 12px; font-size: 14px; width: 100%; }
.login-error { display: none; margin-bottom: 14px; }
.login-error.show { display: flex; }
.demo-box { margin-top: 24px; border: 1px dashed var(--slate-200); background: var(--slate-50); border-radius: 12px; padding: 14px 14px 12px; }
.demo-box .demo-title { font-size: 11px; font-weight: 700; color: var(--slate-500); letter-spacing: .5px; display: flex; align-items: center; gap: 6px; margin-bottom: 9px; }
.demo-row { display: flex; justify-content: space-between; gap: 10px; font-size: 11.5px; padding: 4px 0; color: var(--slate-600); }
.demo-row code { font-family: var(--mono); font-size: 10.5px; background: #fff; border: 1px solid var(--slate-200); padding: 2px 6px; border-radius: 5px; color: var(--navy-800); }
.login-copyright { position: absolute; bottom: 26px; left: 0; width: 100%; text-align: center; font-size: 10.5px; color: var(--slate-400); }

/* ------------------------------------------------------------------ */
.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); z-index: 60;
  background: linear-gradient(178deg, #081a3d 0%, #0a214c 58%, #071a3a 100%);
  color: #c7d8f4; display: flex; flex-direction: column; transition: transform .25s ease;
}
.sidebar::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(500px 200px at 20% 0%, rgba(59,137,255,.16), transparent 70%);
}
.sidebar-brand { height: 76px; display: flex; align-items: center; gap: 11px; padding: 0 20px; border-bottom: 1px solid rgba(255,255,255,.06); position: relative; z-index: 2; }
.sidebar-brand img { width: 38px; height: 38px; object-fit: cover; border-radius: 11px; }
.sidebar-brand .sb-name { font-size: 14px; font-weight: 750; color: #fff; letter-spacing: .2px; }
.sidebar-brand .sb-sub { font-size: 8.5px; color: rgba(182,207,243,.55); letter-spacing: 1.9px; margin-top: 2px; }
.sidebar-scroll { flex: 1; overflow-y: auto; padding: 16px 12px 10px; position: relative; z-index: 2; }
.sidebar-scroll::-webkit-scrollbar { width: 4px; }
.sidebar-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 99px; }
.nav-group { margin-bottom: 18px; }
.nav-group-title { padding: 0 10px; margin-bottom: 7px; font-size: 9.5px; font-weight: 650; letter-spacing: 1.4px; color: rgba(164,190,230,.45); text-transform: uppercase; }
.nav-item {
  display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; margin: 2px 0;
  border-radius: 9px; font-size: 12.5px; color: #aac3e8; transition: .15s ease; position: relative;
}
.nav-item .icon { width: 17px; height: 17px; opacity: .82; }
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active { background: linear-gradient(90deg, rgba(47,124,246,.28), rgba(47,124,246,.1)); color: #fff; }
.nav-item.active::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: #53a0ff; }
.nav-item .nav-badge { margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: #f04438; color: #fff; font-size: 9.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.sidebar-user { border-top: 1px solid rgba(255,255,255,.07); padding: 13px 14px; display: flex; align-items: center; gap: 10px; position: relative; z-index: 2; }
.sidebar-user .avatar { background: linear-gradient(135deg,#2c6cd2,#1d4b9c); color: #fff; }
.sidebar-user .su-name { font-size: 12px; color: #fff; font-weight: 650; }
.sidebar-user .su-role { font-size: 10px; color: rgba(180,203,238,.55); margin-top: 2px; }
.sidebar-user .logout { margin-left: auto; color: rgba(180,203,238,.55); border: 0; background: transparent; padding: 5px; border-radius: 6px; }
.sidebar-user .logout:hover { color: #fff; background: rgba(255,255,255,.08); }

.main-shell { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  height: var(--header-h); background: rgba(255,255,255,.88); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226,232,240,.8); display: flex; align-items: center; gap: 16px;
  padding: 0 26px; position: sticky; top: 0; z-index: 40;
}
.menu-toggle { display: none; }
.topbar-crumb { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--slate-400); }
.topbar-crumb b { color: var(--slate-800); font-weight: 650; }
.topbar-search { margin-left: auto; position: relative; width: 260px; }
.topbar-search input { width: 100%; height: 36px; border: 1px solid var(--slate-200); border-radius: 9px; background: #f8fafc; padding: 0 12px 0 34px; font-size: 12px; outline: none; }
.topbar-search input:focus { background: #fff; border-color: var(--blue-400); box-shadow: 0 0 0 3px rgba(47,124,246,.1); }
.topbar-search .icon { position: absolute; left: 10px; top: 10px; color: var(--slate-400); width: 16px; height: 16px; }
.topbar-actions { display: flex; align-items: center; gap: 5px; }
.top-icon { width: 36px; height: 36px; border-radius: 9px; border: 0; background: transparent; color: var(--slate-500); display: inline-flex; align-items: center; justify-content: center; position: relative; }
.top-icon:hover { background: var(--slate-100); color: var(--slate-800); }
.top-icon.menu-toggle { display: none; }
.top-icon .dot { position: absolute; top: 8px; right: 8px; width: 6px; height: 6px; border-radius: 50%; background: #f04438; border: 1.5px solid #fff; }
.top-user { display: flex; align-items: center; gap: 9px; margin-left: 9px; padding-left: 13px; border-left: 1px solid var(--slate-200); }
.top-user .tu-name { font-size: 12px; font-weight: 650; color: var(--slate-800); line-height: 1.2; }
.top-user .tu-role { font-size: 10px; color: var(--slate-500); margin-top: 2px; }
.content { padding: 26px 28px 42px; flex: 1; max-width: 1780px; width: 100%; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head .eyebrow { font-size: 10.5px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; color: var(--blue-600); margin-bottom: 7px; }
.page-head h1 { margin: 0; font-size: 24px; letter-spacing: -.8px; color: var(--navy-900); font-weight: 750; }
.page-head p { margin: 6px 0 0; font-size: 12.5px; color: var(--slate-500); }
.page-actions { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.content-narrow { max-width: 1120px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 26px 0 14px; }
.section-title h2 { font-size: 15px; margin: 0; letter-spacing: -.2px; color: var(--slate-900); }
.section-title a { font-size: 12px; color: var(--blue-600); font-weight: 600; }
.grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
.grid-2-even { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 > *, .grid-2-even > *, .grid-3 > * { min-width: 0; }
.dash-hero {
  position: relative; overflow: hidden; border-radius: 22px; padding: 28px 30px; color: #fff; margin-bottom: 18px;
  background: radial-gradient(800px 300px at 90% -20%, #307bea, transparent 65%),
              linear-gradient(120deg, #081c43, #0d2a5e 60%, #0b3a75);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.dash-hero::after { content: ""; position: absolute; width: 330px; height: 330px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; right: -60px; top: -150px; pointer-events: none; }
.dash-hero h2 { font-size: 25px; margin: 0 0 8px; letter-spacing: -.7px; }
.dash-hero h2 .grad { background: linear-gradient(100deg, #8ac9ff, #5fe3ed); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dash-hero p { margin: 0; font-size: 12.5px; color: rgba(220,235,255,.68); line-height: 1.7; }
.dash-hero .hero-actions { display: flex; gap: 9px; margin-top: 18px; }
.dash-hero .btn-outline { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff; }
.dash-hero .hero-metric { position: relative; z-index: 2; text-align: right; flex: 0 0 auto; }
.dash-hero .hero-metric .hm-num { font-size: 42px; font-weight: 750; letter-spacing: -2px; line-height: 1; }
.dash-hero .hero-metric .hm-label { font-size: 11px; color: rgba(220,235,255,.6); margin-top: 6px; }
.dash-hero .hero-metric .hm-chip { display: inline-flex; align-items: center; gap: 5px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); padding: 4px 9px; border-radius: 99px; font-size: 10px; margin-top: 11px; color: #b4f6d2; }

.chart-card .chart-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.chart-card .chart-head h3 { margin: 0; font-size: 14.5px; }
.chart-card .chart-head p { margin: 4px 0 0; font-size: 11.5px; color: var(--slate-500); }
.legend { display: flex; gap: 12px; font-size: 10.5px; color: var(--slate-500); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 7px; height: 7px; border-radius: 2px; display: inline-block; }
.bar-chart { height: 170px; display: flex; align-items: flex-end; gap: 12px; padding-top: 8px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; height: 100%; justify-content: flex-end; }
.bar-stack { width: 100%; max-width: 28px; display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; height: 100%; }
.bar-seg { border-radius: 4px 4px 2px 2px; min-height: 3px; transition: height .5s ease; }
.bar-seg.primary { background: linear-gradient(180deg, #4f9bff, #1f66dc); }
.bar-seg.cyan { background: #8be9f6; }
.bar-label { font-size: 9.5px; color: var(--slate-400); }
.funnel-list { display: flex; flex-direction: column; gap: 13px; }
.funnel-row { display: grid; grid-template-columns: 68px 1fr 34px; align-items: center; gap: 10px; font-size: 11.5px; color: var(--slate-600); }
.funnel-track { height: 9px; border-radius: 99px; background: var(--slate-100); overflow: hidden; }
.funnel-track span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #2f7cf6, #62c8ec); }
.funnel-row b { text-align: right; color: var(--slate-900); font-size: 11.5px; }
.donut-wrap { display: flex; align-items: center; gap: 24px; }
.donut { width: 150px; height: 150px; border-radius: 50%; position: relative; flex: 0 0 auto; }
.donut::after { content: ""; position: absolute; inset: 23px; border-radius: 50%; background: #fff; }
.donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 2; }
.donut-center b { font-size: 25px; letter-spacing: -1px; color: var(--slate-900); }
.donut-center span { font-size: 9px; color: var(--slate-400); }
.donut-legend { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.donut-legend .dl-row { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--slate-600); }
.donut-legend .dl-row i { width: 8px; height: 8px; border-radius: 3px; }
.donut-legend .dl-row b { margin-left: auto; color: var(--slate-800); }
.activity-list { display: flex; flex-direction: column; }
.activity-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--slate-100); }
.activity-item:last-child { border-bottom: 0; }
.activity-item .ai-icon { width: 32px; height: 32px; border-radius: 9px; background: var(--sky-100); color: var(--blue-600); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.activity-item .ai-main { min-width: 0; flex: 1; }
.activity-item .ai-title { font-size: 12px; font-weight: 600; color: var(--slate-800); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.activity-item .ai-sub { font-size: 10.5px; color: var(--slate-500); margin-top: 3px; }
.activity-item time { font-size: 10px; color: var(--slate-400); white-space: nowrap; }
.todo-card .todo-item { display: flex; align-items: center; gap: 11px; padding: 11px 0; border-bottom: 1px solid var(--slate-100); }
.todo-card .todo-item:last-child { border-bottom: 0; }
.todo-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.todo-main { flex: 1; min-width: 0; }
.todo-main b { display: block; font-size: 12px; font-weight: 600; color: var(--slate-700); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.todo-main span { font-size: 10px; color: var(--slate-400); }
.todo-count { font-size: 12px; font-weight: 700; color: var(--slate-900); }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.quick-item { border: 1px solid var(--slate-200); border-radius: 12px; padding: 14px 10px; text-align: center; transition: .16s; background: #fff; }
.quick-item:hover { border-color: var(--blue-400); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.quick-item .qi-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--sky-100); color: var(--blue-600); display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; }
.quick-item span { font-size: 11px; color: var(--slate-600); font-weight: 550; }

/* Forms and details */
.filter-bar { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.filter-bar .input, .filter-bar .select { height: 36px; font-size: 12px; width: auto; min-width: 130px; }
.filter-bar .search { min-width: 220px; }
.panel-title { font-size: 13px; font-weight: 700; color: var(--slate-900); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.detail-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; }
.profile-hero { display: flex; align-items: center; gap: 15px; padding-bottom: 18px; border-bottom: 1px solid var(--slate-100); margin-bottom: 18px; }
.profile-hero h3 { margin: 0 0 4px; font-size: 18px; }
.profile-hero p { margin: 0; font-size: 11.5px; color: var(--slate-500); }
.chip-row { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { background: var(--slate-100); color: var(--slate-600); font-size: 10.5px; padding: 3px 8px; border-radius: 6px; }
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 1.5px; background: var(--slate-200); }
.timeline-item { position: relative; padding-bottom: 17px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; left: -21px; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: #fff; border: 2px solid var(--blue-500); }
.timeline-item.success::before { border-color: var(--green-600); background: var(--green-600); }
.timeline-item.danger::before { border-color: var(--red-600); background: var(--red-600); }
.timeline-item b { font-size: 12px; color: var(--slate-800); font-weight: 650; }
.timeline-item p { margin: 3px 0; font-size: 11px; color: var(--slate-500); line-height: 1.55; }
.timeline-item time { font-size: 9.5px; color: var(--slate-400); }
.status-track { display: flex; align-items: flex-start; gap: 0; margin: 6px 0 22px; }
.track-step { flex: 1; text-align: center; position: relative; font-size: 10px; color: var(--slate-400); }
.track-step::before { content: ""; position: absolute; top: 10px; left: 0; width: 50%; height: 2px; background: var(--slate-200); }
.track-step:first-child::before { display: none; }
.track-step::after { content: ""; position: absolute; top: 10px; right: 0; width: 50%; height: 2px; background: var(--slate-200); }
.track-step:last-child::after { display: none; }
.track-step .ts-dot { position: relative; z-index: 2; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--slate-200); background: #fff; margin: 0 auto 7px; display: flex; align-items: center; justify-content: center; font-size: 9px; color: var(--slate-400); }
.track-step.done { color: var(--blue-600); font-weight: 600; }
.track-step.done .ts-dot { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.track-step.done::before, .track-step.done::after { background: var(--blue-600); }
.track-step.current .ts-dot { box-shadow: 0 0 0 4px rgba(47,124,246,.14); }
.stars { color: #f59e0b; letter-spacing: 1px; font-size: 12px; }
.score-big { font-size: 34px; font-weight: 750; letter-spacing: -1.5px; color: var(--navy-900); line-height: 1; }
.score-big small { font-size: 12px; color: var(--slate-400); font-weight: 500; }
.upload-zone { border: 1.5px dashed var(--slate-300); border-radius: 13px; padding: 22px; text-align: center; background: var(--slate-50); transition: .15s; cursor: pointer; }
.upload-zone:hover { border-color: var(--blue-500); background: var(--sky-50); }
.upload-zone .uz-icon { width: 42px; height: 42px; border-radius: 11px; background: var(--sky-100); color: var(--blue-600); display: flex; align-items: center; justify-content: center; margin: 0 auto 9px; }
.upload-zone b { display: block; font-size: 12px; color: var(--slate-700); }
.upload-zone span { font-size: 10.5px; color: var(--slate-400); }
.file-list { display: flex; flex-direction: column; gap: 7px; margin-top: 10px; }
.file-row { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border: 1px solid var(--slate-200); border-radius: 9px; font-size: 11.5px; background: #fff; }
.file-row .icon { color: var(--blue-600); }
.file-row span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-row small { color: var(--slate-400); }

/* Notifications panel */
.popover { position: absolute; right: 24px; top: 64px; width: 350px; background: #fff; border: 1px solid var(--slate-200); border-radius: 15px; box-shadow: var(--shadow-lg); z-index: 100; overflow: hidden; }
.popover-head { padding: 14px 16px; border-bottom: 1px solid var(--slate-100); display: flex; align-items: center; justify-content: space-between; }
.popover-head b { font-size: 13px; }
.popover-list { max-height: 360px; overflow-y: auto; }
.popover-item { padding: 12px 16px; border-bottom: 1px solid var(--slate-100); display: flex; gap: 10px; }
.popover-item:hover { background: var(--slate-50); }
.popover-item .pi-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue-500); margin-top: 6px; flex: 0 0 auto; }
.popover-item b { display: block; font-size: 11.5px; color: var(--slate-800); }
.popover-item p { margin: 3px 0; font-size: 10.5px; color: var(--slate-500); line-height: 1.5; }
.popover-item time { font-size: 9.5px; color: var(--slate-400); }
.popover-foot { padding: 10px; text-align: center; font-size: 11px; color: var(--blue-600); font-weight: 600; background: var(--slate-50); }

@media (max-width: 1100px) {
  :root { --sidebar-w: 224px; }
  .content { padding: 22px 20px 38px; }
  .grid-2, .detail-grid { grid-template-columns: 1fr; }
  .topbar-search { width: 190px; }
}
@media (max-width: 900px) {
  .login-screen { grid-template-columns: 1fr; }
  .login-visual { display: none; }
  .login-form-side { padding: 34px 24px; min-height: 100vh; }
  .login-form-box .mobile-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 32px; }
  .login-form-box .mobile-brand img { width: 38px; height: 38px; border-radius: 10px; }
  .login-form-box .mobile-brand b { font-size: 14px; color: var(--navy-900); }
  .login-form-box .mobile-brand span { display: block; font-size: 8px; letter-spacing: 1.6px; color: var(--slate-400); }
  .login-copyright { display: none; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); box-shadow: 20px 0 60px rgba(0,0,0,.25); }
  .main-shell { margin-left: 0; }
  .top-icon.menu-toggle { display: inline-flex; }
  .topbar-crumb > span:first-child, .topbar-crumb > span:nth-child(2) { display: none; }
  .topbar-crumb { font-size: 12px; white-space: nowrap; }
  #refreshBtn, .topbar-actions > a.top-icon { display: none; }
  .top-user { border-left: 0; padding-left: 0; margin-left: 2px; }
  .topbar-search { display: none; }
  .content { padding: 18px 15px 34px; }
  .topbar { padding: 0 15px; }
  .page-head h1 { font-size: 21px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2-even { grid-template-columns: 1fr; }
  .dash-hero { padding: 22px; }
  .dash-hero .hero-metric { display: none; }
  .quick-grid { grid-template-columns: repeat(2,1fr); }
  .sidebar-overlay { position: fixed; inset: 0; background: rgba(6,19,47,.45); z-index: 55; }
  .top-user .tu-name, .top-user .tu-role { display: none; }
  .popover { right: 12px; width: calc(100vw - 24px); }
  .table-wrap { margin: 0 -2px; }
}
@media (max-width: 520px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .page-actions { width: 100%; }
  .page-actions .btn { flex: 1; }
  .login-form-box h2 { font-size: 24px; }
  .dash-hero h2 { font-size: 21px; }
}