* { box-sizing: border-box; }
:root { --ink: #26343b; --muted: #849198; --line: #e8eeed; --paper: #f7f9f8; --white: #fff; --coral: #ef8069; --teal: #39a99d; --yellow: #e7b64f; --blue: #5685d8; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: 'DM Sans', 'Noto Sans SC', sans-serif; font-size: 14px; }
button { border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.sidebar { width: 228px; position: fixed; inset: 0 auto 0 0; padding: 27px 16px 18px; display: flex; flex-direction: column; background: #f0f5f3; border-right: 1px solid #e2eae7; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 11px 30px; font-size: 16px; font-weight: 700; letter-spacing: .2px; }.brand b { font-weight: 400; color: #65747a; }.brand-mark { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; color: #fff; background: var(--coral); font-weight: 800; }
.workspace-switcher { display: flex; align-items: center; gap: 9px; margin-bottom: 32px; padding: 11px; border: 1px solid #dce6e2; border-radius: 9px; color: #53636a; font-size: 12px; }.workspace-switcher svg { width: 15px; margin-left: auto; color: #95a29f; }.workspace-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px #d7eeea; }
.nav-label { padding: 0 12px; color: #a7b2b0; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; }.nav-label.second { margin-top: 34px; }.nav-item { display: flex; align-items: center; gap: 12px; min-height: 43px; padding: 0 12px; margin: 3px 0; border-radius: 8px; color: #748186; text-decoration: none; font-size: 13px; transition: .2s; }.nav-item svg { width: 17px; height: 17px; }.nav-item:hover, .nav-item.active { color: #d96551; background: #fff; box-shadow: 0 2px 10px rgba(41, 68, 66, .04); }.count { margin-left: auto; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--coral); font-size: 10px; }.sidebar-bottom { margin-top: auto; }.user-mini { display: flex; align-items: center; gap: 9px; margin: 24px 5px 0; padding: 14px 7px 0; border-top: 1px solid #dce6e2; }.user-mini strong, .user-mini small { display: block; }.user-mini strong { font-size: 12px; }.user-mini small { margin-top: 2px; color: #9aa5a6; font-size: 10px; }.user-mini > svg { width: 17px; margin-left: auto; color: #9aa5a6; }
.avatar { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #e29b72; font-weight: 700; }.main-content { margin-left: 228px; min-height: 100vh; }.topbar { height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 42px; background: #fff; border-bottom: 1px solid var(--line); }.breadcrumb { display: flex; align-items: center; gap: 9px; color: #9ba5a7; font-size: 12px; }.breadcrumb svg { width: 14px; }.breadcrumb strong { color: #46565c; font-weight: 600; }.top-actions { display: flex; align-items: center; gap: 21px; }.icon-button { position: relative; color: #738086; }.icon-button svg { width: 18px; }.notify span { position: absolute; top: -3px; right: -3px; width: 5px; height: 5px; border-radius: 50%; background: var(--coral); }.avatar-top { width: 32px; height: 32px; font-size: 12px; }
.page-body { max-width: 1440px; margin: 0 auto; padding: 35px 42px 48px; }.hero-row, .panel-heading, .metric-head, .metric-foot, .date-controls, .donut-row { display: flex; align-items: center; justify-content: space-between; }.eyebrow { display: flex; align-items: center; gap: 8px; color: #8a989a; font-size: 11px; font-weight: 600; letter-spacing: .2px; }.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px #d6efeb; }.hero-row h1 { margin: 13px 0 7px; font-size: 29px; letter-spacing: -.8px; }.hero-row h1 span { font-size: 24px; }.hero-row p { margin: 0; color: #91a0a3; font-size: 13px; }.date-controls { gap: 10px; }.date-select, .primary-button { height: 38px; display: flex; align-items: center; gap: 9px; padding: 0 13px; border-radius: 7px; font-size: 12px; }.date-select { color: #69777b; border: 1px solid #dfe7e4; background: #fff; }.date-select svg { width: 15px; }.primary-button { color: #fff; background: var(--coral); box-shadow: 0 5px 13px rgba(239, 128, 105, .2); }.primary-button svg { width: 15px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }.metric-card { min-height: 136px; padding: 19px 20px 12px; background: #fff; border: 1px solid var(--line); border-top: 3px solid; border-radius: 10px; box-shadow: 0 4px 16px rgba(44, 68, 64, .025); }.accent-coral { border-top-color: var(--coral); }.accent-teal { border-top-color: var(--teal); }.accent-yellow { border-top-color: var(--yellow); }.accent-blue { border-top-color: var(--blue); }.metric-head { color: #7c898b; font-size: 12px; }.metric-head button { color: #b5bfbe; }.metric-head svg { width: 15px; }.metric-value { margin: 14px 0 12px; color: #324147; font-size: 24px; font-weight: 700; letter-spacing: -.8px; }.unit { margin-left: 3px; font-size: 15px; }.metric-foot { justify-content: flex-start; gap: 8px; color: #a0abad; font-size: 10px; }.up { display: flex; align-items: center; gap: 2px; color: var(--teal); font-weight: 700; }.up svg { width: 13px; }.sparkline { display: flex; align-items: end; gap: 2px; height: 20px; margin-left: auto; }.sparkline i { width: 3px; border-radius: 2px; background: currentColor; opacity: .55; }.sparkline i:nth-child(1) { height: 7px; }.sparkline i:nth-child(2) { height: 11px; }.sparkline i:nth-child(3) { height: 8px; }.sparkline i:nth-child(4) { height: 15px; }.sparkline i:nth-child(5) { height: 12px; }.sparkline i:nth-child(6) { height: 17px; }.sparkline i:nth-child(7) { height: 20px; }.coral { color: var(--coral); }.teal { color: var(--teal); }.yellow { color: var(--yellow); }.blue { color: var(--blue); }
.dashboard-grid, .bottom-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 16px; margin-top: 16px; }.panel { padding: 22px 23px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }.panel h2 { margin: 0 0 5px; color: #3c4b51; font-size: 15px; }.panel-heading p { margin: 0; color: #a0abad; font-size: 11px; }.segmented { display: flex; padding: 3px; border-radius: 6px; background: #f3f6f5; }.segmented button { padding: 6px 10px; border-radius: 4px; color: #98a3a3; font-size: 11px; }.segmented button.active { color: #536266; background: #fff; box-shadow: 0 2px 5px rgba(57, 74, 72, .08); }.chart-wrap { display: flex; gap: 12px; height: 215px; margin-top: 23px; }.axis { width: 35px; display: flex; flex-direction: column; justify-content: space-between; padding-bottom: 22px; color: #b0bab9; font-size: 9px; text-align: right; }.chart { position: relative; flex: 1; }.grid-lines { position: absolute; inset: 0 0 22px; display: flex; flex-direction: column; justify-content: space-between; }.grid-lines i { width: 100%; border-top: 1px dashed #ebf0ef; }.chart svg { position: absolute; inset: 0 0 22px; width: 100%; height: calc(100% - 22px); overflow: visible; }.area { fill: url(#area); }.line { fill: none; stroke: var(--coral); stroke-width: 3; vector-effect: non-scaling-stroke; }.chart circle { fill: #fff; stroke: var(--coral); stroke-width: 3; vector-effect: non-scaling-stroke; }.x-axis { position: absolute; bottom: 0; left: 0; right: 0; display: flex; justify-content: space-between; color: #b0bab9; font-size: 9px; }.more-button { display: flex; align-items: center; gap: 5px; color: #d67460; font-size: 11px; }.more-button svg { width: 13px; }.donut-row { gap: 22px; justify-content: center; margin: 22px 0 18px; }.donut { width: 142px; height: 142px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--coral) 0 42.6%, var(--teal) 42.6% 71%, var(--yellow) 71% 89.7%, var(--blue) 89.7% 100%); }.donut::before { content: ''; position: absolute; width: 96px; height: 96px; border-radius: 50%; background: #fff; }.donut-center { z-index: 1; text-align: center; }.donut-center strong, .donut-center span { display: block; }.donut-center strong { color: #3e4e54; font-size: 17px; }.donut-center span { margin-top: 4px; color: #9da8a8; font-size: 10px; }.legend { min-width: 130px; }.legend div { display: flex; align-items: center; gap: 7px; margin: 11px 0; color: #788589; font-size: 11px; }.legend b { margin-left: auto; color: #46555a; font-size: 11px; }.dot { width: 7px; height: 7px; border-radius: 50%; }.coral-dot { background: var(--coral); }.teal-dot { background: var(--teal); }.yellow-dot { background: var(--yellow); }.blue-dot { background: var(--blue); }.channel-insight { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 6px; color: #738386; background: #f6f8f7; font-size: 10px; }.channel-insight svg { width: 14px; color: var(--yellow); }.channel-insight b { color: #4f6265; }
.ranking-panel, .alert-panel { min-height: 300px; }.ranking-list { margin-top: 18px; }.rank-row { display: grid; grid-template-columns: 28px 1fr 80px; align-items: center; gap: 8px; min-height: 51px; }.rank { color: #a5b0b0; font-size: 11px; font-weight: 700; }.rank.top { color: var(--coral); }.rank-name { display: flex; align-items: center; gap: 9px; }.region-icon { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 7px; font-size: 11px; font-weight: 700; }.shanghai { color: #d36b5b; background: #fff0eb; }.jiangsu { color: #3a9d94; background: #e5f5f2; }.zhejiang { color: #bd8e33; background: #fbf2db; }.anhui { color: #557bc1; background: #e9effc; }.rank-name strong, .rank-name small { display: block; }.rank-name strong { color: #526166; font-size: 12px; }.rank-name small { margin-top: 3px; color: #a4aeae; font-size: 10px; }.rank-row > b { color: #4b5a5f; font-size: 11px; text-align: right; }.progress { grid-column: 2 / 4; height: 4px; margin: -4px 0 4px; overflow: hidden; border-radius: 4px; background: #edf1f0; }.progress i { display: block; height: 100%; border-radius: 4px; background: var(--coral); }.rank-row:nth-child(n+2) .progress i { background: #9ec7c1; }.alert-total { color: #d56d58; font-size: 10px; }.alert-list { margin-top: 14px; }.alert-item { display: grid; grid-template-columns: 30px 1fr 18px; align-items: center; gap: 10px; min-height: 68px; border-bottom: 1px solid #f0f3f2; }.alert-item:last-child { border: 0; }.alert-icon { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 7px; }.alert-icon svg { width: 15px; }.warning { color: #d79432; background: #fff3db; }.info { color: #5d83cb; background: #eaf0fd; }.success { color: #48a190; background: #e4f5f0; }.alert-item strong, .alert-item small { display: block; }.alert-item strong { color: #526166; font-size: 11px; font-weight: 600; }.alert-item small { margin-top: 4px; color: #a4aeae; font-size: 10px; }.alert-item button { color: #b0bbba; }.alert-item button svg { width: 15px; }
.toast { position: fixed; right: 28px; bottom: 24px; display: flex; align-items: center; gap: 9px; padding: 12px 16px; color: #fff; background: #35494d; border-radius: 7px; box-shadow: 0 8px 25px #27404430; opacity: 0; transform: translateY(10px); pointer-events: none; transition: .25s; font-size: 12px; }.toast.visible { opacity: 1; transform: translateY(0); }.toast svg { width: 16px; color: #7bd5bd; }
.scope-tabs { display: flex; align-items: center; gap: 4px; margin-top: 28px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }.scope-tabs button { padding: 9px 20px; border-radius: 6px; color: #8d999b; font-size: 12px; }.scope-tabs button.active { color: #d96551; background: #fff0eb; font-weight: 700; }.scope-tabs span { display: flex; align-items: center; gap: 5px; margin-left: auto; color: #8b9997; font-size: 11px; }.scope-tabs svg { width: 14px; color: var(--teal); }.activity-stat { margin-top: 26px; }.activity-stat strong { display: block; color: #3e4f55; font-size: 35px; }.activity-stat strong span { margin-left: 2px; font-size: 18px; }.activity-stat small { color: #9ba7a7; font-size: 11px; }.activity-bar { height: 8px; margin: 18px 0 9px; overflow: hidden; border-radius: 8px; background: #edf1f0; }.activity-bar i { display: block; width: 78.6%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--coral), #f4b077); }.activity-meta { display: flex; justify-content: space-between; color: #9ba7a7; font-size: 10px; }.activity-meta b { margin-left: 5px; color: #4e5e62; }.activity-list { margin-top: 21px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }.activity-list div { display: grid; grid-template-columns: 8px 1fr; align-items: center; gap: 5px; color: #879497; font-size: 10px; }.activity-list b { grid-column: 2; color: #536266; font-size: 12px; }
@media (max-width: 1050px) { .metric-grid { grid-template-columns: repeat(2, 1fr); }.dashboard-grid, .bottom-grid { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .sidebar { position: static; width: 100%; height: auto; padding: 15px; }.brand { padding-bottom: 15px; }.workspace-switcher, .nav-label, .sidebar-bottom { display: none; }.primary-nav { display: flex; overflow-x: auto; gap: 4px; }.nav-item { min-width: max-content; }.nav-item:not(.active) { display: none; }.main-content { margin-left: 0; }.topbar { height: 58px; padding: 0 18px; }.page-body { padding: 25px 18px 35px; }.hero-row { display: block; }.date-controls { margin-top: 21px; }.metric-grid { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }.metric-card { padding: 15px 13px; }.metric-value { font-size: 18px; }.metric-foot .sparkline { display: none; }.panel { padding: 18px 15px; }.panel-heading { align-items: flex-start; gap: 10px; }.segmented button { padding: 5px 7px; }.donut-row { gap: 11px; }.donut { width: 124px; height: 124px; }.donut::before { width: 83px; height: 83px; }.donut-center strong { font-size: 14px; }.legend { min-width: 120px; }.hero-row h1 { font-size: 25px; } }
@media (max-width: 380px) { .metric-grid { grid-template-columns: 1fr; }.donut-row { justify-content: space-around; }.donut { width: 112px; height: 112px; }.donut::before { width: 75px; height: 75px; } }

/* Operations dashboard layout overrides */
.eyebrow { display: none; }
.date-range { position: relative; height: 38px; display: flex; align-items: center; gap: 9px; padding: 0 13px; color: #69777b; border: 1px solid #dfe7e4; border-radius: 7px; background: #fff; font-size: 12px; }
.date-range svg { width: 15px; }.date-range input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.scope-tabs { display: none; }
.metric-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric-card { cursor: pointer; }.metric-card:hover, .metric-card.selected { box-shadow: 0 0 0 2px #f2c1b4, 0 6px 18px rgba(44, 68, 64, .06); }
.metric-foot { display: none; }.metric-value { margin-top: 22px; }
.trend-panel { grid-column: 3 / 5; grid-row: 1 / 3; min-height: 288px; }
.dashboard-grid { display: none; }
.activity-panel { grid-column: 1 / 3; }.activity-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }.activity-section + .activity-section { border-left: 1px solid var(--line); padding-left: 32px; }
.mini-tabs { display: flex; padding: 3px; background: #f3f6f5; border-radius: 6px; }.mini-tabs button { padding: 5px 9px; color: #98a3a3; border-radius: 4px; font-size: 10px; }.mini-tabs button.active { color: #536266; background: #fff; box-shadow: 0 2px 5px rgba(57, 74, 72, .08); }
.activity-total { margin: 22px 0 13px; }.activity-total strong { display: block; color: #3e4f55; font-size: 29px; }.activity-total strong span { font-size: 16px; }.activity-total small { color: #9ba7a7; font-size: 10px; }.activity-bar { height: 7px; margin-top: 12px; overflow: hidden; border-radius: 8px; background: #edf1f0; }.activity-bar i { display: block; width: 78.6%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--coral), #f4b077); }
.institution-list, .report-list { margin-top: 14px; }.activity-row { display: grid; grid-template-columns: 24px 1fr 54px; gap: 7px; align-items: center; min-height: 35px; color: #5d6c70; font-size: 10px; }.activity-row > span:nth-child(2) small { display: block; margin-top: 2px; color: #a4aeae; font-size: 9px; }.activity-row > b { text-align: right; font-size: 10px; }.activity-row > i { grid-column: 2 / 4; height: 3px; overflow: hidden; border-radius: 3px; background: #edf1f0; }.activity-row > i em { display: block; height: 100%; border-radius: inherit; background: #9ec7c1; }.report-section .activity-row > i em { background: var(--coral); }
@media (max-width: 1050px) { .metric-grid { grid-template-columns: repeat(2, 1fr); }.trend-panel { grid-column: 1 / -1; grid-row: auto; }.activity-panel { grid-column: auto; } }
.metric-grid .trend-panel { grid-column: 3 / 5; grid-row: 1 / 3; min-width: 0; }
.metric-grid .alert-panel { grid-column: 4; grid-row: 1 / 3; min-width: 0; padding: 20px 17px; }
.metric-grid .alert-panel .panel-heading { align-items: flex-start; gap: 8px; }
.metric-grid .alert-panel .panel-heading > div { min-width: 0; }
.metric-grid .alert-panel h2 { white-space: nowrap; }
.metric-grid .alert-panel .alert-total { flex: 0 0 auto; line-height: 1.45; text-align: right; }
.metric-grid .alert-panel .alert-item { grid-template-columns: 28px minmax(0, 1fr) 14px; gap: 7px; }
.metric-grid .alert-panel .alert-item strong { line-height: 1.45; }
.metric-grid .alert-panel .alert-item small { line-height: 1.45; }
@media (max-width: 1050px) { .metric-grid .trend-panel, .metric-grid .alert-panel { grid-column: 1 / -1; grid-row: auto; } }
.metric-grid { grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) minmax(270px, 1.55fr) minmax(190px, 1.1fr); grid-template-rows: 1fr 1fr; align-items: stretch; }
.metric-grid .metric-card:nth-child(1) { grid-column: 1; grid-row: 1; }
.metric-grid .metric-card:nth-child(2) { grid-column: 2; grid-row: 1; }
.metric-grid .metric-card:nth-child(3) { grid-column: 2; grid-row: 2; }
.metric-grid .metric-card:nth-child(4) { grid-column: 1; grid-row: 2; }
.metric-grid .trend-panel { grid-column: 3 / 5; grid-row: 1 / 3; min-height: 100%; }
.metric-grid .trend-panel .chart-wrap { height: 300px; margin-top: 28px; }
.metric-grid .alert-panel { grid-column: 4; grid-row: 1 / 3; min-height: 100%; }
@media (max-width: 1050px) { .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; }.metric-grid .metric-card:nth-child(n), .metric-grid .trend-panel, .metric-grid .alert-panel { grid-column: 1 / -1; grid-row: auto; }.metric-grid .trend-panel .chart-wrap { height: 215px; } }
.metric-grid .alert-panel { grid-column: 4; grid-row: 1 / 3; min-height: 288px; }
.bottom-grid.activity-only { display: flex; flex-direction: column; gap: 16px; }
.bottom-grid.activity-only .alert-panel, .bottom-grid.activity-only .activity-panel { width: 100%; }
.bottom-grid.activity-only .alert-panel { min-height: 0; }
.bottom-grid.activity-only .alert-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 14px; }
.bottom-grid.activity-only .alert-item { padding: 0 10px; border: 1px solid #f0f3f2; border-radius: 7px; }
@media (max-width: 1050px) { .metric-grid .alert-panel { grid-column: 1 / -1; grid-row: auto; } }
.dimension-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }.dimension-panel + .dimension-panel { border-left: 1px solid var(--line); padding-left: 32px; }.dimension-heading { display: flex; align-items: flex-start; justify-content: space-between; }.dimension-kicker { color: #a6b1b0; font-size: 9px; font-weight: 700; letter-spacing: 1.2px; }.dimension-heading h2 { margin: 5px 0 5px; }.dimension-heading p { margin: 0; color: #9ba7a7; font-size: 11px; }.dimension-badge { padding: 5px 9px; border-radius: 5px; color: #d56d58; background: #fff0eb; font-size: 10px; font-weight: 700; }.branch-badge { color: #338e85; background: #e5f5f2; }.dimension-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }.activity-block { padding: 14px; border: 1px solid #edf1f0; border-radius: 8px; background: #fbfcfc; }.block-title { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 8px; }.block-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 7px; }.block-icon svg { width: 14px; }.coral-bg { color: #d56d58; background: #fff0eb; }.teal-bg { color: #338e85; background: #e5f5f2; }.blue-bg { color: #557bc1; background: #e9effc; }.block-title h3 { margin: 0; color: #56666a; font-size: 11px; }.block-title small { display: block; margin-top: 3px; color: #a4aeae; font-size: 9px; }.block-title > b { color: #43555a; font-size: 15px; }.activity-block .activity-bar { margin: 16px 0 8px; }.teal-bar i { background: var(--teal); }.blue-bar i { background: var(--blue); }.block-foot { display: flex; justify-content: space-between; color: #9ba7a7; font-size: 9px; }.block-foot b { margin-left: 3px; color: #56666a; font-size: 10px; }
@media (max-width: 1050px) { .dimension-columns { grid-template-columns: 1fr; gap: 22px; }.dimension-panel + .dimension-panel { border-left: 0; border-top: 1px solid var(--line); padding: 22px 0 0; } }
.activity-stack { display: flex; flex-direction: column; gap: 18px; margin-top: 24px; }.activity-list-block { min-width: 0; }.list-heading { display: flex; align-items: center; gap: 8px; padding-bottom: 11px; border-bottom: 1px solid var(--line); }.list-heading h3 { margin: 0; color: #56666a; font-size: 11px; }.list-heading small { display: block; margin-top: 3px; color: #a4aeae; font-size: 9px; }.top-five-list { margin-top: 6px; }.top-five-row { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 6px; min-height: 29px; color: #667579; border-bottom: 1px solid #f2f4f3; font-size: 10px; }.top-five-row:last-child { border-bottom: 0; }.top-five-row b { color: #4d5d62; font-size: 10px; }.top-five-row .rank { color: #a5b0b0; font-size: 10px; font-weight: 700; }.top-five-row .rank.top { color: var(--coral); }
.frequency-tabs { display: flex; margin-left: auto; padding: 2px; border-radius: 5px; background: #f3f6f5; }.frequency-tabs button { padding: 4px 7px; border-radius: 4px; color: #99a5a4; font-size: 9px; }.frequency-tabs button.active { color: #536266; background: #fff; box-shadow: 0 1px 4px rgba(57, 74, 72, .08); }
@media (max-width: 1050px) { .activity-stack { gap: 14px; } }
@media (max-width: 720px) { .activity-stack { grid-template-columns: 1fr; gap: 20px; }.activity-section + .activity-section { border: 0; padding-left: 0; } }

/* ============================================================
   Modern Operations Dashboard Design System
   (FineBI / Tableau / DataV inspired UI polish layer)
   ============================================================ */
:root {
  --brand: #4f6ef7;
  --brand-deep: #3b52d6;
  --brand-soft: #eef1fe;
  --surface: #ffffff;
  --bg: #f4f6fb;
  --ink-strong: #1f2733;
  --ink-body: #39424e;
  --ink-muted: #8a94a3;
  --line-soft: #eef1f6;
  --shadow-card: 0 1px 2px rgba(30, 41, 59, .04), 0 8px 24px -8px rgba(30, 41, 59, .08);
  --shadow-hover: 0 4px 10px rgba(30, 41, 59, .06), 0 16px 40px -12px rgba(79, 110, 247, .22);
  --radius-md: 12px;
  --radius-lg: 16px;
}

body { background: linear-gradient(180deg, #f7f9fd 0%, #f2f5fb 100%); font-feature-settings: 'tnum'; }

/* ---------- Sidebar & brand ---------- */
.sidebar { background: linear-gradient(180deg, #fbfcff 0%, #f1f4fc 100%); border-right: 1px solid #e8ecf5; width: 236px; padding: 26px 18px 18px; }
.brand { padding-bottom: 22px; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--brand) 0%, #7a90ff 100%); box-shadow: 0 6px 14px -4px rgba(79, 110, 247, .5); font-size: 13px; }
.brand span:last-child { font-weight: 800; letter-spacing: .2px; color: var(--ink-strong); font-size: 15px; }
.workspace-switcher { margin-bottom: 26px; background: #fff; border-color: #e4e9f4; box-shadow: 0 1px 3px rgba(30, 41, 59, .05); }
.nav-label { font-weight: 800; color: #b3bccb; }
.nav-item { border-radius: 10px; color: #6b7586; }
.nav-item svg { width: 18px; height: 18px; stroke-width: 2; }
.nav-item:hover, .nav-item.active { background: linear-gradient(90deg, #eef1fe 0%, #fff 100%); color: var(--brand); box-shadow: inset 3px 0 0 var(--brand), 0 2px 8px rgba(79, 110, 247, .08); }
.count { background: linear-gradient(135deg, #f87171, #ef4444); box-shadow: 0 2px 6px rgba(239, 68, 68, .35); }
.user-mini { border-top-color: #e6eaf4; }
.avatar { background: linear-gradient(135deg, #7a90ff, var(--brand-deep)); box-shadow: 0 3px 8px rgba(79, 110, 247, .3); }

/* ---------- Top hero & controls ---------- */
.topbar { height: 64px; background: rgba(255,255,255,.85); backdrop-filter: blur(8px); border-bottom: 1px solid #edf0f7; }
.page-body { max-width: 1480px; padding: 18px 42px 56px; }
.hero-row h1 { font-size: 26px; font-weight: 800; letter-spacing: -.5px; margin: 16px 0 8px; }
.hero-row p { font-size: 13px; }
.date-range { border-radius: 9px; border-color: #e3e8f4; box-shadow: 0 1px 3px rgba(30,41,59,.04); height: 40px; padding: 0 14px; }
.date-range:hover { border-color: var(--brand); }
.primary-button { border-radius: 9px; height: 40px; padding: 0 16px; background: linear-gradient(135deg, var(--brand), var(--brand-deep)); box-shadow: 0 8px 18px -6px rgba(79, 110, 247, .55); transition: transform .15s, box-shadow .15s; }
.primary-button:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -8px rgba(79, 110, 247, .65); }

/* ---------- Metric cards ---------- */
.metric-grid { gap: 18px; }
.metric-card { border-radius: var(--radius-lg); border-color: #edf0f7; background: var(--surface); box-shadow: var(--shadow-card); transition: transform .18s, box-shadow .18s, border-color .18s; overflow: hidden; }
.metric-card:hover, .metric-card.selected { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: #cfd8ff; }
.metric-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--accent, #4f6ef7), transparent 80%); border-radius: 0; }
.metric-card.accent-coral { --accent: #f87171; }
.metric-card.accent-teal { --accent: #2dd4bf; }
.metric-card.accent-yellow { --accent: #fbbf24; }
.metric-card.accent-blue { --accent: #60a5fa; }
.metric-card { position: relative; }
.metric-head { align-items: center; gap: 10px; }
.metric-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; flex: 0 0 auto; }
.metric-icon svg { width: 16px; height: 16px; stroke-width: 2.2; }
.metric-card.accent-coral .metric-icon { color: #ef4444; background: #fef2f2; }
.metric-card.accent-teal .metric-icon { color: #0d9488; background: #f0fdfa; }
.metric-card.accent-yellow .metric-icon { color: #d97706; background: #fffbeb; }
.metric-card.accent-blue .metric-icon { color: #2563eb; background: #eff6ff; }
.metric-title { font-weight: 700; color: var(--ink-body); font-size: 13px; line-height: 1.4; min-height: 2.7em; display: flex; align-items: center; }
.metric-head button { display: none; }
.metric-head button { margin-left: auto; }
.metric-value { font-size: 27px; font-weight: 800; color: var(--ink-strong); letter-spacing: -1px; margin-top: 18px; }

/* ---------- Trend panel ---------- */
.trend-panel { border-radius: var(--radius-lg); border-color: #edf0f7; box-shadow: var(--shadow-card); }
.trend-panel .panel-heading { align-items: flex-start; }
.trend-panel h2 { font-size: 16px; font-weight: 800; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.trend-panel .trend-note { font-size: 11px; font-weight: 500; color: var(--ink-muted); letter-spacing: .2px; }
.trend-panel p { font-size: 11px; color: var(--ink-muted); margin-top: 4px; }
.segmented { border-radius: 9px; background: #f2f4fa; }
.segmented button { border-radius: 7px; font-weight: 600; }
.segmented button.active { background: var(--brand); color: #fff; box-shadow: 0 4px 10px -2px rgba(79, 110, 247, .5); }
.grid-lines i { border-top-color: #eef1f6; }
.line { stroke: var(--brand); stroke-width: 2.5; }
.area { fill: url(#area); }
.chart circle { stroke: var(--brand); }
.x-axis, .axis { color: #9aa5b5; font-weight: 500; }

/* ---------- Alerts (运营异常与待办事项) ---------- */
.bottom-grid.activity-only .alert-panel { border-radius: var(--radius-lg); border-color: #edf0f7; box-shadow: var(--shadow-card); padding: 22px 24px; }
.bottom-grid.activity-only .alert-panel h2 { font-size: 16px; font-weight: 800; display: flex; align-items: baseline; gap: 8px; }
.bottom-grid.activity-only .alert-panel .alert-note { font-size: 11.5px; font-weight: 500; color: var(--ink-muted); letter-spacing: .2px; }
.bottom-grid.activity-only .alert-list { gap: 18px; }
.bottom-grid.activity-only .alert-item { border: 1px solid #eef1f6; border-radius: 12px; background: #fafbfe; padding: 14px 14px; transition: transform .15s, box-shadow .15s, border-color .15s; min-height: 64px; }
.bottom-grid.activity-only .alert-item:hover { transform: translateY(-2px); box-shadow: 0 8px 20px -8px rgba(30,41,59,.14); border-color: #dce3f5; }
.bottom-grid.activity-only .alert-icon { width: 32px; height: 32px; border-radius: 9px; }
.bottom-grid.activity-only .alert-icon svg { width: 16px; height: 16px; }
.bottom-grid.activity-only .alert-item strong { font-size: 12px; font-weight: 700; color: var(--ink-body); }
.bottom-grid.activity-only .alert-item small { font-size: 11px; color: var(--ink-muted); }

/* ---------- Dimension panels & Top5 lists ---------- */
.activity-panel { border-radius: var(--radius-lg); border-color: #edf0f7; box-shadow: var(--shadow-card); padding: 26px 28px; }
.dimension-heading h2 { font-size: 17px; font-weight: 800; color: var(--ink-strong); }
.dimension-heading p { font-size: 12px; color: var(--ink-muted); }
.dimension-kicker { font-weight: 800; color: var(--brand); letter-spacing: 1.6px; font-size: 10px; visibility: hidden; height: 0; margin: 0; }
.dimension-badge { border-radius: 999px; padding: 6px 12px; font-size: 11px; font-weight: 700; letter-spacing: .3px; }
.dimension-badge { color: var(--brand); background: var(--brand-soft); }
.dimension-badge.branch-badge { color: #0d9488; background: #f0fdfa; }
.dimension-panel + .dimension-panel { border-left-color: #edf0f7; }
.activity-list-block { background: #fff; border: 1px solid #eef1f6; border-radius: 12px; padding: 16px 16px 8px; transition: box-shadow .15s; }
.activity-list-block:hover { box-shadow: 0 10px 24px -12px rgba(30,41,59,.16); }
.list-heading { border-bottom-color: #eef1f6; padding-bottom: 12px; }
.list-heading h3 { font-size: 13px; font-weight: 700; color: var(--ink-body); }
/* Distinct accent per activity module */
.activity-list-block[data-activity="institution"] .list-heading h3 { color: #e2554f; }
.activity-list-block[data-activity="report"] .list-heading h3 { color: #0d9488; }
.activity-list-block[data-activity="user"] .list-heading h3 { color: #2563eb; }
.activity-list-block .list-heading { position: relative; padding-left: 10px; }
.activity-list-block .list-heading::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 18px;
  border-radius: 999px;
  background: #cfd6e2;
}
.activity-list-block[data-activity="institution"] .list-heading::before { background: #e2554f; }
.activity-list-block[data-activity="report"] .list-heading::before { background: #0d9488; }
.activity-list-block[data-activity="user"] .list-heading::before { background: #2563eb; }
.list-heading small { font-size: 10px; color: var(--ink-muted); }
.block-icon { width: 32px; height: 32px; border-radius: 9px; }
.block-icon svg { width: 15px; height: 15px; stroke-width: 2.2; }
.frequency-tabs { border-radius: 999px; background: #f2f4fa; padding: 3px; }
.frequency-tabs button { border-radius: 999px; padding: 4px 10px; font-size: 10px; font-weight: 600; }
.frequency-tabs button.active { background: var(--brand); color: #fff; box-shadow: 0 3px 8px -2px rgba(79,110,247,.5); }
.top-five-list { margin-top: 4px; }
.top-five-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 4px 8px; min-height: 34px; padding: 4px 0; border-bottom: 1px dashed #f0f3f8; }
.top-five-row:last-child { border-bottom: 0; }
.top-five-row > .rank { grid-column: 1; grid-row: 1; }
.top-five-row > .row-main { grid-column: 2; grid-row: 1; font-weight: 500; color: #46505f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.top-five-row > .row-main small { display: block; margin-top: 2px; color: #a4aeae; font-size: 9px; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-five-row > b { grid-column: 3; grid-row: 1; justify-self: end; font-weight: 700; color: var(--ink-strong); text-align: right; }
.top-five-row .rank { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; font-size: 10px; font-weight: 700; background: #f1f3f9; color: #9aa5b5; }
.top-five-row .rank.top { background: linear-gradient(135deg, var(--brand), #7a90ff); color: #fff; box-shadow: 0 3px 8px -2px rgba(79,110,247,.45); }
.data-bar { grid-column: 1 / -1; grid-row: 2; height: 5px; border-radius: 999px; background: #eef1f6; overflow: hidden; }
.data-bar em { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), #7a90ff); }
.activity-list-block[data-activity="report"] .data-bar em { background: linear-gradient(90deg, #2dd4bf, #5eead4); }
.activity-list-block[data-activity="user"] .data-bar em { background: linear-gradient(90deg, #60a5fa, #93c5fd); }

/* ---------- Toast ---------- */
.toast { border-radius: 12px; background: rgba(31, 39, 51, .92); backdrop-filter: blur(8px); box-shadow: 0 16px 40px -12px rgba(30,41,59,.4); }

/* ---------- Responsive tweaks ---------- */
@media (max-width: 1240px) {
  .top-five-row { grid-template-columns: 24px minmax(0, 1fr) auto; grid-template-rows: auto auto; }
  .data-bar { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .page-body { padding: 22px 18px 40px; }
  .metric-value { font-size: 20px; }
}

/* Metric card last-month & MoM values */
.metric-card .metric-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 34px; }
.metric-card .metric-col { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.metric-card .metric-col em { font-style: normal; color: var(--ink-muted); font-size: 11px; }
.metric-card .metric-col b { color: var(--ink-body); font-weight: 700; font-size: 11px; white-space: nowrap; }
.metric-card .metric-col .mom-value { display: inline-flex; align-items: center; gap: 4px; color: #0d9488; }
.metric-card .metric-col .mom-value svg { width: 13px; height: 13px; flex: 0 0 auto; }

/* ============================================================
   UI polish pass (consistent with current design language)
   ============================================================ */
/* Panel titles: brand accent bar */
.trend-panel h2, .bottom-grid.activity-only .alert-panel h2, .dimension-heading h2 {
  position: relative;
  padding-left: 12px;
}
.trend-panel h2::before, .bottom-grid.activity-only .alert-panel h2::before, .dimension-heading h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--brand), #7a90ff);
  box-shadow: 0 2px 6px -1px rgba(79,110,247,.45);
}

/* Hero title badge */
.hero-row h1 .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 19.2px;
  font-weight: 700;
  letter-spacing: .3px;
  vertical-align: middle;
  box-shadow: inset 0 0 0 1px #dbe3ff;
}
.hero-row h1 .hero-badge svg { width: 13px; height: 13px; }

/* Metric card top accent bar refinement */
.metric-card::before {
  background: linear-gradient(90deg, var(--accent, #4f6ef7) 0%, rgba(127,141,255,.55) 55%, transparent 100%);
  height: 3px;
}

/* Metric value emphasis */
.metric-value { font-variant-numeric: tabular-nums; }

/* Segmented subtle transition */
.segmented button, .frequency-tabs button { transition: background .15s, color .15s, box-shadow .15s, transform .1s; }
.segmented button:active, .frequency-tabs button:active { transform: scale(.96); }

/* Alert item left emphasis on hover */
.bottom-grid.activity-only .alert-item { position: relative; }
.bottom-grid.activity-only .alert-item::before {
  content: '';
  position: absolute;
  left: 0; top: 12px; bottom: 12px;
  width: 3px;
  border-radius: 999px;
  background: transparent;
  transition: background .15s;
}
.bottom-grid.activity-only .alert-item:hover::before { background: var(--brand); }

/* Dimension panel header separator */
.dimension-heading { padding-bottom: 14px; border-bottom: 1px solid #eef1f6; margin-bottom: 22px; }
.dimension-heading p { margin-bottom: 0; }

/* Top5 rows: hover highlight */
.top-five-row { transition: background .15s; border-radius: 8px; padding-left: 4px; padding-right: 4px; }
.top-five-row:hover { background: #f7f9ff; }

/* Chart axis tick labels: keep crisp */
.axis, .x-axis { letter-spacing: .2px; }

/* Subtle entrance animation for panels */
.panel { animation: panelIn .4s ease both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.trend-panel { animation-delay: .05s; }
.activity-panel { animation-delay: .1s; }

/* ============================================================
   Senior design pass — refined workbench polish
   ============================================================ */

/* Global: subtle top glow + refined page background */
body {
  background:
    radial-gradient(1100px 380px at 30% -60px, rgba(79,110,247,.06), transparent 60%),
    linear-gradient(180deg, #f7f9fd 0%, #f2f5fb 100%);
}

/* ---------- Sidebar polish ---------- */
.sidebar { backdrop-filter: blur(6px); }
.brand { gap: 12px; padding-bottom: 26px; }
.brand-mark {
  background: linear-gradient(135deg, #5b7bff 0%, #7a90ff 55%, #9aa6ff 100%);
  box-shadow: 0 8px 18px -6px rgba(79,110,247,.55), inset 0 1px 0 rgba(255,255,255,.35);
  position: relative;
}
.brand-mark::after {
  content: '';
  position: absolute; inset: 1px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,.28), transparent 45%);
  pointer-events: none;
}
.brand span:last-child { font-size: 15px; letter-spacing: .3px; }
.nav-item { position: relative; }
.nav-item::after {
  content: '';
  position: absolute; left: 0; top: 50%; transform: translateY(-50%) scaleY(0);
  width: 3px; height: 18px; border-radius: 999px;
  background: var(--brand);
  transition: transform .2s ease;
}
.nav-item:hover::after, .nav-item.active::after { transform: translateY(-50%) scaleY(1); }
.nav-item.active { background: linear-gradient(90deg, #eef1fe 0%, #fbfcff 100%); }

/* ---------- Hero refinements ---------- */
.hero-row h1 { letter-spacing: -.4px; }
.hero-row p { color: var(--ink-muted); max-width: 640px; line-height: 1.6; }
.hero-meta { display: flex; align-items: center; gap: 20px; margin-top: 18px; }
.hm-item { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-muted); font-size: 11.5px; background: #fff; border: 1px solid #e7ebf5; border-radius: 999px; padding: 5px 12px; box-shadow: 0 1px 2px rgba(30,41,59,.03); }
.hm-item svg { width: 13px; height: 13px; color: var(--brand); }
.date-range { transition: border-color .15s, box-shadow .15s, transform .15s; }
.date-range:active { transform: scale(.98); }
.primary-button { letter-spacing: .2px; }

/* ---------- Metric card hover dynamics ---------- */
.metric-card { will-change: transform; }
.metric-card .metric-icon { transition: transform .2s ease, box-shadow .2s ease; }
.metric-card:hover .metric-icon { transform: translateY(-2px) scale(1.06); }
.metric-card.selected .metric-value { color: var(--brand); }
.metric-card.selected .metric-icon { box-shadow: 0 6px 14px -6px rgba(79,110,247,.45); }
.metric-value { transition: color .2s ease; }
.metric-card .metric-col b { transition: color .2s ease; }

/* ---------- Trend chart visual ---------- */
.trend-panel .chart { border: 1px solid #f0f2f9; border-radius: 12px; background: linear-gradient(180deg, #fbfcff 0%, #fff 100%); padding: 10px 8px 4px; }
.line { stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 3px 4px rgba(79,110,247,.22)); }
.chart circle { r: 5px; transition: r .15s; }
.grid-lines i { border-top-style: solid; border-top-color: #eef1f7; }
.x-axis, .axis { font-size: 10px; }

/* ---------- Alert cards ---------- */
.bottom-grid.activity-only .alert-item { box-shadow: 0 1px 2px rgba(30,41,59,.03); }
.bottom-grid.activity-only .alert-icon { transition: transform .18s ease, box-shadow .18s ease; }
.bottom-grid.activity-only .alert-item:hover .alert-icon { transform: scale(1.08); }
.bottom-grid.activity-only .alert-item:hover strong { color: var(--brand); }
.bottom-grid.activity-only .alert-item strong { transition: color .15s; }

/* ---------- Top5 rows ---------- */
.top-five-row .rank { transition: transform .15s ease; }
.top-five-row:hover .rank { transform: scale(1.1); }
.top-five-row:hover .row-main { color: var(--brand); }
.top-five-row .row-main { transition: color .15s; }
.data-bar em { transition: width .5s ease; }

/* ---------- Dimension panels ---------- */
.dimension-heading h2 { letter-spacing: -.2px; }
.list-heading .block-icon { box-shadow: inset 0 0 0 1px rgba(79,110,247,.06); }
.frequency-tabs button.active { background: linear-gradient(135deg, var(--brand), #6f87ff); }

/* ---------- Buttons & controls ---------- */
button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ============================================================
   Senior UX polish — readability & rhythm
   ============================================================ */

/* ---------- Sidebar: readable icon nav ---------- */
.primary-nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; margin: 3px 0; border-radius: 12px; }
.nav-item svg { width: 19px; height: 19px; }
.nav-item:hover, .nav-item.active { transform: translateX(0); }
.nav-item:not(.active):hover { background: rgba(79, 110, 247, .08); color: var(--brand); }
.nav-item.active { background: linear-gradient(135deg, var(--brand) 0%, #6f87ff 100%); color: #fff; box-shadow: 0 8px 16px -6px rgba(79,110,247,.5); }
.nav-item.active::after, .nav-item:hover::after { display: none; }
.sidebar-bottom .nav-item { margin-bottom: 10px; }
/* ---------- Hero: refined title area ---------- */
.hero-row h1 { font-size: 28px; }
.hero-row p { margin-top: 6px; }
.date-controls { align-items: center; }

/* ---------- Metric cards: micro polish ---------- */
.metric-card { border-top-width: 0; }
.metric-card::before { border-radius: 0 0 0 0; }
.metric-icon { box-shadow: 0 2px 6px -2px rgba(30,41,59,.12); }
.metric-card .metric-foot { margin-top: 22px; }

/* ---------- Trend chart: axis & tooltip readiness ---------- */
.x-axis { font-size: 10px; }
.trend-panel .chart { position: relative; }
.trend-panel .chart:hover { border-color: #dce3f5; }
.trend-panel .chart circle { r: 5px; }

/* ---------- Alert cards: clearer semantics ---------- */
.bottom-grid.activity-only .alert-item { min-height: 70px; }
.bottom-grid.activity-only .alert-item strong { line-height: 1.5; }

/* ---------- Top5: denser, easier scanning ---------- */
.top-five-row { min-height: 36px; }

/* ---------- Toast: refined ---------- */
.toast { font-weight: 500; }

/* ---------- Scrollbar polish (WebKit) ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #cdd6e5; border-radius: 999px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #b3bfd4; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- Selection color ---------- */
::selection { background: rgba(79, 110, 247, .18); }

/* ============================================================
   Date range picker popup
   ============================================================ */
.date-range { cursor: pointer; }
.date-range > svg:last-child { width: 14px; color: #a5afbd; }

.dp-pop { position: fixed; top: 0; left: 0; z-index: 1000; width: 360px; max-width: calc(100vw - 24px); background: #fff; border: 1px solid #e7ebf5; border-radius: 14px; box-shadow: 0 16px 48px -12px rgba(30, 41, 59, .3); padding: 14px 16px 14px; opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .16s ease, transform .16s ease; }
.dp-pop.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.dp-inputs { display: flex; align-items: flex-end; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid #eef1f6; }
.dp-inputs label { flex: 1; display: flex; flex-direction: column; gap: 5px; font-size: 11px; color: var(--ink-muted); font-weight: 600; min-width: 0; }
.dp-inputs input { width: 100%; height: 32px; padding: 0 8px; border: 1px solid #dfe5f2; border-radius: 8px; font-size: 12px; color: var(--ink-body); background: #fbfcff; transition: border-color .15s, box-shadow .15s; }
.dp-inputs input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79,110,247,.12); }
.dp-dash { padding-bottom: 8px; color: #a5afbd; font-size: 12px; }

/* ============================================================
   Section distinction — zone-based visual layering
   ============================================================ */
.metric-grid {
  background: linear-gradient(180deg, #eef2ff 0%, #f3f6ff 60%, #f0f4ff 100%);
  border: 1px solid #e2e8fb;
  border-radius: 18px;
  padding: 22px 0;
  box-shadow: 0 10px 28px -20px rgba(79, 110, 247, .35);
}
.metric-grid .metric-card,
.metric-grid .trend-panel {
  background: #fff;
  box-shadow: 0 1px 2px rgba(30, 41, 59, .05), 0 10px 24px -14px rgba(30, 41, 59, .18);
}
.bottom-grid.activity-only { display: flex; flex-direction: column; gap: 22px; margin-top: 20px; }
.bottom-grid.activity-only .alert-panel {
  background: linear-gradient(180deg, #fff7f4 0%, #fff4ef 60%, #fdf2ed 100%);
  border: 1px solid #fbe3da;
  border-radius: 18px;
  box-shadow: 0 10px 28px -20px rgba(239, 108, 86, .3);
}
.bottom-grid.activity-only .activity-panel {
  background: linear-gradient(180deg, #eef2ff 0%, #f3f6ff 60%, #f0f4ff 100%);
  border: 1px solid #e2e8fb;
  border-radius: 18px;
  box-shadow: 0 10px 28px -20px rgba(79, 110, 247, .35);
}
.bottom-grid.activity-only .alert-list,
.bottom-grid.activity-only .dimension-columns {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #f0f2f9;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(30, 41, 59, .04), 0 10px 24px -14px rgba(30, 41, 59, .16);
}
@media (max-width: 1050px) {
  .metric-grid { padding: 14px 0; }
}
.dp-pop.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.dp-presets { display: flex; gap: 6px; padding-bottom: 12px; border-bottom: 1px solid #eef1f6; }
.dp-presets button { flex: 1; padding: 6px 4px; border-radius: 8px; background: #f2f4fa; color: #5f6b7a; font-size: 11.5px; font-weight: 600; transition: background .15s, color .15s; white-space: nowrap; }
.dp-presets button:hover { background: #e7ecff; color: var(--brand); }
.dp-seg { display: flex; gap: 4px; padding: 12px 0 4px; }
.dp-seg button { flex: 1; padding: 7px 0; border-radius: 8px; background: #f2f4fa; color: #6b7686; font-size: 12px; font-weight: 600; transition: background .15s, color .15s; }
.dp-seg button.active { background: var(--brand); color: #fff; box-shadow: 0 4px 10px -2px rgba(79, 110, 247, .45); }
.dp-cal { padding: 8px 2px 2px; }
.dp-cal-head { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 10px; }
.dp-cal-title { font-size: 13px; font-weight: 700; color: var(--ink-body); }
.dp-nav { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; color: var(--ink-muted); transition: background .15s, color .15s; }
.dp-nav:hover { background: #eef1fe; color: var(--brand); }
.dp-nav svg { width: 15px; height: 15px; }
.dp-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; padding-bottom: 6px; }
.dp-week span { text-align: center; font-size: 11px; color: var(--ink-muted); font-weight: 600; }
.dp-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp-empty { height: 32px; }
.dp-day { position: relative; height: 32px; border-radius: 8px; font-size: 12px; color: var(--ink-body); transition: background .12s, color .12s; }
.dp-day:hover { background: #eef1fe; color: var(--brand); }
.dp-day.in-range { background: #f0f3ff; color: var(--brand); border-radius: 0; }
.dp-day.active-start, .dp-day.active-end { background: var(--brand); color: #fff; font-weight: 700; box-shadow: 0 4px 10px -2px rgba(79, 110, 247, .45); }
.dp-day.active-start { border-radius: 8px 2px 2px 8px; }
.dp-day.active-end { border-radius: 2px 8px 8px 2px; }
.dp-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid #eef1f6; margin-top: 8px; }
.dp-range-label { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-muted); min-width: 0; }
.dp-range-label svg { width: 14px; height: 14px; color: var(--brand); flex: 0 0 auto; }
.dp-range-label b { color: var(--ink-strong); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.dp-cancel, .dp-apply { padding: 7px 14px; border-radius: 8px; font-size: 12px; font-weight: 600; transition: background .15s, transform .1s; }
.dp-cancel { background: #f2f4fa; color: #5f6b7a; }
.dp-cancel:hover { background: #e9ecf4; }
.dp-apply { background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff; box-shadow: 0 6px 14px -4px rgba(79, 110, 247, .5); }
.dp-apply:hover { transform: translateY(-1px); }
