@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  --ink: #17233d;
  --muted: #74809a;
  --line: #e8edf5;
  --soft: #f5f7fb;
  --panel: #ffffff;
  --navy: #141f3a;
  --primary: #635bff;
  --primary-soft: #f0efff;
  --green: #18a674;
  --green-soft: #e7f8f0;
  --yellow: #e9a324;
  --yellow-soft: #fff7df;
  --red: #e76172;
  --red-soft: #fff0f2;
  --shadow: 0 10px 32px rgba(25, 39, 70, .07);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: #f5f7fb; }
body { margin: 0; color: var(--ink); background: #f5f7fb; font-family: 'DM Sans', system-ui, sans-serif; font-size: 14px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
svg { display: block; }
.hidden { display: none !important; }

.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(330px, .94fr) 1.06fr; background: #fff; }
.login-aside { position: relative; overflow: hidden; min-height: 630px; padding: clamp(32px, 6vw, 88px); color: #fff; background: linear-gradient(143deg, #111b35 2%, #24275a 73%, #645bf7); }
.login-aside::before, .login-aside::after { content: ''; position: absolute; border-radius: 999px; filter: blur(1px); opacity: .65; }
.login-aside::before { width: 510px; height: 510px; right: -170px; bottom: -220px; background: radial-gradient(circle at 38% 38%, #92efdb 0 2%, #4f78e8 28%, transparent 67%); }
.login-aside::after { width: 290px; height: 290px; left: -120px; top: 26%; background: #7d66f7; opacity: .26; }
.login-brand, .login-copy, .login-proof { position: relative; z-index: 1; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 19px; letter-spacing: -.7px; }
.brand-mark { width: 33px; height: 33px; display: grid; place-items: center; color: #fff; border-radius: 10px; background: linear-gradient(135deg, #827afa, #4fb4da); box-shadow: 0 8px 18px rgba(104, 98, 251, .4); }
.login-copy { max-width: 500px; padding-top: clamp(90px, 16vh, 170px); }
.eyebrow { margin: 0 0 13px; text-transform: uppercase; font-size: 11px; font-weight: 800; letter-spacing: 1.3px; color: #8c91ff; }
.login-copy .eyebrow { color: #9ee6d4; }
.login-copy h1 { margin: 0; max-width: 520px; font: 800 clamp(35px, 4vw, 58px)/1.12 'Plus Jakarta Sans', sans-serif; letter-spacing: -2.5px; }
.login-copy p:not(.eyebrow) { margin: 24px 0 0; max-width: 430px; color: #c5cae7; font-size: 16px; line-height: 1.7; }
.login-proof { display: flex; gap: 27px; margin-top: 55px; }
.login-proof strong { display: block; font: 800 23px 'Plus Jakarta Sans', sans-serif; }
.login-proof span { color: #bbc3e1; font-size: 12px; }
.login-card-wrap { display: grid; place-items: center; padding: 34px; background: #fbfcff; }
.login-card { width: min(100%, 420px); }
.login-card .brand { color: var(--ink); display: none; }
.login-card h2 { margin: 0; font: 800 30px 'Plus Jakarta Sans', sans-serif; letter-spacing: -1.2px; }
.login-card > p { margin: 10px 0 33px; color: var(--muted); line-height: 1.6; }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { color: #52607b; font-size: 12px; font-weight: 700; }
.field input, .field select, .field textarea, .filter-control select, .filter-control input { width: 100%; border: 1px solid var(--line); color: var(--ink); border-radius: 10px; outline: none; background: #fff; transition: border-color .15s, box-shadow .15s; }
.field input { height: 46px; padding: 0 13px; }
.field textarea { min-height: 77px; padding: 11px 13px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .filter-control select:focus, .filter-control input:focus { border-color: #918af9; box-shadow: 0 0 0 4px rgba(99, 91, 255, .1); }
.login-hint { display: flex; align-items: center; gap: 9px; padding: 13px; margin-top: 23px; border: 1px solid #e6e4ff; border-radius: 11px; color: #5e5a9b; background: #f5f4ff; font-size: 12px; line-height: 1.5; }
.login-hint code { display: inline-block; padding: 1px 5px; color: #494286; border-radius: 4px; background: #e8e6ff; font-size: 11px; }

.app-shell { display: grid; min-height: 100vh; grid-template-columns: 250px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 25px 15px 16px; color: #b9c1d7; background: var(--navy); }
.sidebar .brand { padding: 0 12px; color: #fff; }
.sidebar .brand-mark { width: 30px; height: 30px; border-radius: 9px; }
.workspace-chip { display: flex; align-items: center; gap: 10px; padding: 18px 11px 21px; margin-top: 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
.team-stack { display: flex; }
.team-stack span { width: 22px; height: 22px; display: grid; place-items: center; margin-left: -5px; border: 2px solid var(--navy); border-radius: 50%; color: #fff; background: #7068f2; font-size: 7px; font-weight: 800; }
.team-stack span:first-child { margin-left: 0; background: #20ad96; }
.team-stack span:nth-child(3) { background: #df7a50; }
.workspace-chip small { display: block; margin-top: 2px; color: #7e89a7; font-size: 10px; }
.workspace-chip strong { color: #e7eafa; font-size: 12px; }
.nav-section { padding: 27px 8px 9px; color: #6f7b99; font-size: 10px; font-weight: 800; letter-spacing: .95px; text-transform: uppercase; }
.nav-list { display: grid; gap: 3px; }
.nav-link { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 43px; padding: 0 11px; border: 0; border-radius: 9px; color: #aeb8d1; text-align: left; background: transparent; font-size: 13px; font-weight: 600; transition: .15s ease; }
.nav-link svg { width: 18px; height: 18px; opacity: .85; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-link.active { color: #fff; background: linear-gradient(100deg, #5e57e9, #6b63ec); box-shadow: 0 8px 18px rgba(61, 55, 186, .35); }
.nav-link .nav-pill { min-width: 19px; height: 19px; display: grid; place-items: center; margin-left: auto; border-radius: 7px; color: #ffdc92; background: rgba(255, 205, 103, .16); font-size: 10px; }
.sidebar-foot { display: flex; align-items: center; gap: 10px; padding: 13px 9px 6px; margin-top: auto; border-top: 1px solid rgba(255,255,255,.08); }
.avatar { width: 31px; height: 31px; display: grid; flex: 0 0 auto; place-items: center; color: #fff; border-radius: 10px; background: #908aef; font-size: 10px; font-weight: 800; }
.avatar.green { background: #15a192; }
.avatar.orange { background: #df875c; }
.avatar.pink { background: #d66d9e; }
.avatar.blue { background: #4d87db; }
.profile-meta { min-width: 0; }
.profile-meta strong, .profile-meta span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-meta strong { color: #fff; font-size: 11px; }
.profile-meta span { margin-top: 2px; color: #7f8ca9; font-size: 10px; }
.more-btn { width: 30px; height: 30px; display: grid; place-items: center; margin-left: auto; border: 0; border-radius: 7px; color: #9ba8c3; background: transparent; }
.more-btn:hover { color: #fff; background: rgba(255,255,255,.07); }

.page { min-width: 0; padding: 0 clamp(18px, 3.2vw, 46px) 40px; }
.topbar { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.page-title h1 { margin: 0; color: #18233b; font: 800 21px 'Plus Jakarta Sans', sans-serif; letter-spacing: -.8px; }
.page-title p { margin: 5px 0 0; color: #8490a8; font-size: 12px; }
.top-actions { display: flex; align-items: center; gap: 11px; }
.icon-btn { width: 37px; height: 37px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: #66738e; background: #fff; }
.icon-btn:hover { color: var(--primary); border-color: #d8d5ff; }
.user-summary { display: flex; align-items: center; gap: 9px; padding-left: 3px; }
.user-summary .avatar { width: 36px; height: 36px; }
.user-summary .profile-meta strong { color: #314059; font-size: 12px; }
.user-summary .profile-meta span { color: #8a96ad; }

.welcome { display: flex; align-items: end; justify-content: space-between; gap: 25px; padding: 25px 27px; overflow: hidden; border: 1px solid #e7e8fa; border-radius: 15px; background: linear-gradient(110deg, #f6f5ff, #fff 74%); }
.welcome h2 { margin: 5px 0 0; font: 800 24px 'Plus Jakarta Sans', sans-serif; letter-spacing: -1.2px; }
.welcome p { margin: 8px 0 0; color: #78849c; font-size: 13px; }
.welcome .eyebrow { margin: 0; color: #675ffa; }
.welcome-metric { position: relative; padding: 11px 5px 11px 54px; color: #65728c; font-size: 11px; }
.welcome-metric::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 41px; border-radius: 11px; background: #dbf6ec; }
.welcome-metric svg { position: absolute; top: 12px; left: 11px; color: #16a375; }
.welcome-metric strong { display: block; margin-top: 3px; color: #1e2a45; font: 800 20px 'Plus Jakarta Sans', sans-serif; }

.filterbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 11px 13px; margin-top: 20px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: 0 4px 14px rgba(30, 46, 78, .025); }
.filterbar > svg { margin-left: 2px; color: #8290aa; }
.filter-control { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 8px; border-right: 1px solid var(--line); }
.filter-control label { color: #8390a7; font-size: 10px; font-weight: 700; }
.filter-control select, .filter-control input { width: auto; height: 28px; padding: 0 3px; border: 0; color: #34425c; background: transparent; font-size: 11px; font-weight: 700; box-shadow: none !important; }
.filter-control input { width: 103px; }
.filter-control select { max-width: 135px; }
.quick-filters { display: flex; align-items: center; gap: 3px; margin-left: auto; }
.quick-filters button { padding: 7px 9px; border: 0; border-radius: 7px; color: #8b96ac; background: transparent; font-size: 11px; font-weight: 700; }
.quick-filters button:hover { color: #554eeb; background: #f2f1ff; }
.quick-filters button.active { color: #574ff0; background: #eeeefe; }

.kpi-grid { display: grid; grid-template-columns: repeat(6, minmax(140px, 1fr)); gap: 14px; margin-top: 20px; }
.kpi-card { min-width: 0; padding: 17px; border: 1px solid #ecf0f5; border-radius: 13px; background: #fff; box-shadow: 0 4px 13px rgba(26, 40, 68, .025); }
.kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.kpi-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; }
.kpi-icon.purple { color: #655dff; background: #efefff; }
.kpi-icon.teal { color: #0a9d8f; background: #e4f8f4; }
.kpi-icon.orange { color: #dd7e2d; background: #fff2e4; }
.kpi-icon.blue { color: #417fe6; background: #eaf2ff; }
.kpi-icon.yellow { color: #d59721; background: #fff7df; }
.kpi-icon.green { color: #159969; background: #e5f8ee; }
.kpi-delta { display: inline-flex; align-items: center; gap: 3px; color: var(--green); font-size: 10px; font-weight: 800; white-space: nowrap; }
.kpi-delta.down { color: var(--red); }
.kpi-card h3 { margin: 14px 0 2px; overflow: hidden; color: #7a879e; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 700; }
.kpi-card strong { display: block; color: #1d2942; font: 800 23px 'Plus Jakarta Sans', sans-serif; letter-spacing: -.8px; }
.kpi-card small { display: block; margin-top: 7px; color: #a0a9b9; font-size: 10px; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(290px, .92fr); gap: 17px; margin-top: 18px; }
.card { min-width: 0; padding: 20px; border: 1px solid #eaf0f5; border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 13px; margin-bottom: 18px; }
.card-head h3 { margin: 0; color: #26324a; font: 800 14px 'Plus Jakarta Sans', sans-serif; letter-spacing: -.35px; }
.card-head p { margin: 5px 0 0; color: #8b96ab; font-size: 11px; }
.text-button { padding: 3px 0; border: 0; color: #625af1; background: none; font-size: 11px; font-weight: 800; }
.text-button:hover { color: #3f37d6; }
.funnel-list { display: grid; gap: 11px; }
.funnel-row { display: grid; grid-template-columns: 106px minmax(50px, 1fr) 43px; align-items: center; gap: 10px; }
.funnel-label { color: #66738d; font-size: 11px; font-weight: 700; }
.funnel-label b { display: inline-block; width: 19px; color: #2c3953; font-size: 11px; }
.funnel-track { height: 9px; overflow: hidden; border-radius: 99px; background: #f0f2f6; }
.funnel-value { height: 100%; min-width: 4px; border-radius: inherit; background: linear-gradient(90deg, #7972ff, #5e57ef); }
.funnel-row:nth-child(2) .funnel-value { background: linear-gradient(90deg, #6d85f2, #5773df); }
.funnel-row:nth-child(3) .funnel-value { background: linear-gradient(90deg, #5ca1e9, #4a87d6); }
.funnel-row:nth-child(4) .funnel-value { background: linear-gradient(90deg, #41b3be, #20a59d); }
.funnel-row:nth-child(5) .funnel-value { background: linear-gradient(90deg, #7cbe88, #4dab6d); }
.funnel-row:nth-child(6) .funnel-value { background: linear-gradient(90deg, #e8b653, #da8b35); }
.funnel-rate { color: #748099; text-align: right; font-size: 10px; font-weight: 700; }
.funnel-foot { display: flex; align-items: center; gap: 8px; padding: 11px 12px; margin-top: 18px; border: 1px solid #fff0d2; border-radius: 9px; color: #9a6c1f; background: #fffaf0; font-size: 11px; line-height: 1.45; }
.funnel-foot strong { color: #806021; }
.ring-insight { display: grid; grid-template-columns: 135px 1fr; align-items: center; gap: 12px; min-height: 190px; }
.ring { width: 132px; height: 132px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(#655df4 var(--score), #e9ecf3 0); }
.ring::before { content: ''; width: 99px; height: 99px; border-radius: 50%; background: #fff; }
.ring-content { position: absolute; display: grid; place-items: center; text-align: center; }
.ring-content strong { color: #28344d; font: 800 23px 'Plus Jakarta Sans', sans-serif; letter-spacing: -1px; }
.ring-content span { margin-top: 2px; color: #8a95a9; font-size: 10px; }
.rate-list { display: grid; gap: 11px; }
.rate-list div { display: flex; justify-content: space-between; gap: 10px; color: #7a869d; font-size: 10px; }
.rate-list strong { color: #33405b; font-size: 11px; }
.rate-list .accent { color: #655df4; }

.wide-card { margin-top: 17px; }
.chart-wrap { height: 200px; position: relative; }
.line-chart { width: 100%; height: 100%; overflow: visible; }
.chart-labels { display: flex; justify-content: space-between; padding: 0 4px; color: #9ca5b7; font-size: 10px; }
.chart-stats { display: flex; align-items: center; gap: 17px; }
.chart-stat { display: flex; align-items: center; gap: 6px; color: #7a869c; font-size: 10px; font-weight: 700; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #625bf5; }
.dot.teal { background: #1daf9e; }

.lower-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(290px, .65fr); gap: 17px; margin-top: 17px; }
.table-card { padding: 0; overflow: hidden; }
.table-card .card-head { padding: 19px 20px 9px; margin-bottom: 0; }
.data-table-wrap { overflow-x: auto; }
.data-table { width: 100%; min-width: 645px; border-spacing: 0; border-collapse: collapse; }
.data-table th { padding: 11px 13px; border-top: 1px solid #edf0f4; border-bottom: 1px solid #edf0f4; color: #92a0b5; text-align: left; background: #fbfcfe; font-size: 10px; font-weight: 800; white-space: nowrap; }
.data-table td { padding: 12px 13px; border-bottom: 1px solid #f0f2f6; color: #58657e; font-size: 11px; white-space: nowrap; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover td { background: #fbfbff; }
.rep-cell { display: flex; align-items: center; gap: 8px; }
.rep-cell .avatar { width: 25px; height: 25px; border-radius: 8px; font-size: 8px; }
.rep-cell strong { display: block; color: #34415a; font-size: 11px; }
.rep-cell small { display: block; margin-top: 2px; color: #a0a9b8; font-size: 9px; }
.rank { width: 20px; color: #8c97ab; font-size: 12px; font-weight: 800; }
.rank.top { color: #e5a528; }
.badge { display: inline-flex; align-items: center; min-height: 20px; padding: 3px 7px; border-radius: 5px; font-size: 9px; font-weight: 800; }
.badge.good { color: #11845e; background: #e8f8f1; }
.badge.warn { color: #b77912; background: #fff5db; }
.badge.low { color: #cb5264; background: #fff0f2; }
.trend { color: var(--green); font-size: 10px; font-weight: 800; }
.trend.down { color: var(--red); }
.table-footer { display: flex; justify-content: space-between; padding: 12px 19px; color: #9aa4b7; border-top: 1px solid #eef1f5; font-size: 10px; }

.insight-list { display: grid; gap: 11px; }
.insight { display: flex; gap: 10px; padding: 10px; border-radius: 10px; background: #fafbfe; }
.insight-icon { width: 27px; height: 27px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 8px; color: #6159ee; background: #efefff; }
.insight-icon.green { color: #149b6c; background: #e7f8f0; }
.insight-icon.yellow { color: #c88a17; background: #fff6df; }
.insight h4 { margin: 1px 0 4px; color: #45516a; font-size: 11px; }
.insight p { margin: 0; color: #8c97a9; font-size: 10px; line-height: 1.5; }

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 25px 0 14px; }
.section-head h2 { margin: 0; font: 800 17px 'Plus Jakarta Sans', sans-serif; letter-spacing: -.6px; }
.section-head p { margin: 5px 0 0; color: #8793aa; font-size: 11px; }
.button { min-height: 37px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 13px; border: 1px solid transparent; border-radius: 9px; color: #fff; background: #615af0; box-shadow: 0 5px 12px rgba(99,91,255,.17); font-size: 11px; font-weight: 800; transition: .15s ease; }
.button:hover { background: #5149e5; transform: translateY(-1px); }
.button.secondary { color: #58657f; border-color: #e3e8f0; background: #fff; box-shadow: none; }
.button.secondary:hover { color: #5650dc; border-color: #c9c7fb; background: #fafaff; }
.button.danger { color: #d95668; border-color: #f6d9df; background: #fff7f8; box-shadow: none; }
.button.full { width: 100%; }
.toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.search-box { position: relative; min-width: min(100%, 230px); }
.search-box svg { position: absolute; top: 10px; left: 10px; color: #95a0b2; }
.search-box input { height: 36px; width: 100%; padding: 0 11px 0 33px; border: 1px solid #e5eaf1; border-radius: 9px; outline: none; color: #3a4861; background: #fff; font-size: 11px; }
.search-box input:focus { border-color: #aaa5ff; }
.sort-button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px; border: 1px solid #e5eaf1; border-radius: 9px; color: #6d7991; background: #fff; font-size: 11px; font-weight: 700; }
.sort-button.active { color: #5d55e9; border-color: #d3d0ff; background: #f7f6ff; }
.daily-table td, .daily-table th { padding-left: 17px; padding-right: 17px; }
.row-actions { display: flex; gap: 5px; }
.mini-action { width: 26px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 7px; color: #7c879a; background: transparent; }
.mini-action:hover { color: #584fea; background: #f1f0ff; }
.mini-action.delete:hover { color: #d65365; background: #fff0f2; }
.empty-state { padding: 50px 20px; color: #8c97a9; text-align: center; }
.empty-state svg { margin: 0 auto 12px; color: #a5aec2; }
.empty-state strong { display: block; color: #47546c; font-size: 13px; }
.empty-state p { margin: 6px 0 0; font-size: 11px; }

.team-grid { display: grid; grid-template-columns: repeat(3, minmax(230px, 1fr)); gap: 15px; }
.rep-profile-card { position: relative; padding: 18px; overflow: hidden; border: 1px solid #e9edf4; border-radius: 13px; background: #fff; box-shadow: 0 6px 17px rgba(34,48,72,.035); }
.rep-profile-card::after { content: ''; position: absolute; width: 110px; height: 110px; top: -56px; right: -50px; border-radius: 50%; background: #f6f5ff; }
.rep-top { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; }
.rep-top .avatar { width: 42px; height: 42px; border-radius: 12px; font-size: 11px; }
.rep-top h3 { margin: 0; color: #2c3850; font-size: 13px; }
.rep-top p { margin: 3px 0 0; color: #929caf; font-size: 10px; }
.score-pill { margin-left: auto; padding: 5px 7px; border-radius: 7px; color: #18885f; background: #e8f8f0; font-size: 10px; font-weight: 800; }
.score-pill.warn { color: #b57813; background: #fff5dc; }
.rep-numbers { display: grid; grid-template-columns: repeat(3, 1fr); padding: 17px 0; margin-top: 13px; border-top: 1px solid #f0f2f5; border-bottom: 1px solid #f0f2f5; }
.rep-numbers div { padding-left: 10px; border-left: 1px solid #eff1f5; }
.rep-numbers div:first-child { padding-left: 0; border: 0; }
.rep-numbers span { display: block; color: #99a4b6; font-size: 9px; }
.rep-numbers strong { display: block; margin-top: 4px; color: #31405b; font: 800 15px 'Plus Jakarta Sans', sans-serif; }
.rep-card-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; color: #7d8a9e; font-size: 10px; }
.rep-card-foot strong { color: #5e55ed; }

.analytics-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 17px; }
.chart-tabs { display: flex; gap: 3px; padding: 3px; border-radius: 8px; background: #f4f5f9; }
.chart-tabs button { padding: 5px 8px; border: 0; border-radius: 6px; color: #8993a6; background: transparent; font-size: 10px; font-weight: 700; }
.chart-tabs button.active { color: #5a52e9; background: #fff; box-shadow: 0 2px 5px rgba(31,41,66,.08); }
.bar-list { display: grid; gap: 16px; padding: 7px 0 4px; }
.bar-row { display: grid; grid-template-columns: 89px minmax(50px,1fr) 26px; align-items: center; gap: 10px; }
.bar-row label { overflow: hidden; color: #69768d; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; font-weight: 700; }
.bar-track { height: 12px; overflow: hidden; border-radius: 4px; background: #f0f2f6; }
.bar-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#6a61f2,#948dfd); }
.bar-row:nth-child(2) i { background: linear-gradient(90deg,#2caa9c,#55cdbf); }
.bar-row:nth-child(3) i { background: linear-gradient(90deg,#eb9c57,#f4bc7b); }
.bar-row:nth-child(4) i { background: linear-gradient(90deg,#5185db,#79a7f1); }
.bar-row:nth-child(5) i { background: linear-gradient(90deg,#d26899,#e99cc2); }
.bar-row strong { color: #526079; text-align: right; font-size: 10px; }
.funnel-visual { display: grid; gap: 3px; align-items: center; padding: 10px 0 3px; }
.funnel-shape { height: 27px; display: flex; align-items: center; justify-content: space-between; padding: 0 11px; margin: auto; border-radius: 5px; color: #fff; font-size: 10px; font-weight: 800; }
.funnel-shape span { opacity: .85; font-weight: 600; }
.funnel-shape:nth-child(1) { width: 100%; background: #6a63f0; }
.funnel-shape:nth-child(2) { width: 87%; background: #5783e1; }
.funnel-shape:nth-child(3) { width: 73%; background: #43a2bd; }
.funnel-shape:nth-child(4) { width: 61%; background: #34aa91; }
.funnel-shape:nth-child(5) { width: 48%; background: #85af6c; }
.funnel-shape:nth-child(6) { width: 37%; background: #dea252; }

.target-list { display: grid; gap: 14px; }
.target-row { padding: 14px; border: 1px solid #edf0f5; border-radius: 11px; }
.target-row-top { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.target-row-top h4 { margin: 0; color: #41506a; font-size: 12px; }
.target-row-top span { color: #8995aa; font-size: 10px; }
.target-prog { height: 7px; overflow: hidden; margin-top: 11px; border-radius: 50px; background: #eef1f5; }
.target-prog i { display: block; height: 100%; border-radius: inherit; background: #20ad79; }
.target-prog.warn i { background: #e7a52c; }
.target-prog.low i { background: #de6672; }
.target-values { display: flex; justify-content: space-between; margin-top: 7px; color: #8895a9; font-size: 10px; }
.target-values strong { color: #40506a; }
.report-hero { display: grid; grid-template-columns: 1fr auto; gap: 25px; padding: 26px; border-radius: 14px; color: #fff; background: linear-gradient(110deg,#1a2745,#293a6d); box-shadow: 0 12px 25px rgba(22,35,62,.16); }
.report-hero h2 { margin: 6px 0 0; font: 800 23px 'Plus Jakarta Sans', sans-serif; letter-spacing: -.9px; }
.report-hero p { max-width: 560px; margin: 9px 0 0; color: #bbc6df; font-size: 12px; line-height: 1.6; }
.report-hero .eyebrow { color: #9ce5d1; }
.report-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; min-width: 300px; overflow: hidden; align-self: center; border-radius: 9px; background: rgba(255,255,255,.12); }
.report-summary div { padding: 13px; background: rgba(255,255,255,.04); }
.report-summary span { display: block; color: #aeb9d4; font-size: 10px; }
.report-summary strong { display: block; margin-top: 5px; color: #fff; font: 800 17px 'Plus Jakarta Sans', sans-serif; }
.report-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; margin-top: 17px; }
.recommendation { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid #eef1f5; color: #65728b; font-size: 11px; line-height: 1.5; }
.recommendation:last-child { border-bottom: 0; }
.recommendation i { width: 21px; height: 21px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 7px; color: #5d55ed; background: #eeedff; font-style: normal; font-weight: 800; }
.settings-card { max-width: 680px; }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 0; border-bottom: 1px solid #eef1f5; }
.settings-row:last-child { border-bottom: 0; }
.settings-row h4 { margin: 0; color: #405069; font-size: 12px; }
.settings-row p { margin: 4px 0 0; color: #8f99aa; font-size: 10px; }
.toggle { width: 35px; height: 20px; position: relative; border: 0; border-radius: 50px; background: #dfe3ea; }
.toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: .15s; }
.toggle.on { background: #655df4; }
.toggle.on::after { left: 18px; }

.modal-backdrop { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(17, 27, 53, .46); backdrop-filter: blur(3px); }
.modal { width: min(100%, 570px); max-height: min(760px, calc(100vh - 36px)); overflow: auto; border-radius: 15px; background: #fff; box-shadow: 0 24px 80px rgba(12,22,47,.32); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 19px 21px; border-bottom: 1px solid #edf0f4; }
.modal-head h2 { margin: 0; font: 800 16px 'Plus Jakarta Sans', sans-serif; letter-spacing: -.5px; }
.modal-head p { margin: 4px 0 0; color: #8b96a8; font-size: 10px; }
.close-modal { width: 29px; height: 29px; display: grid; place-items: center; border: 0; border-radius: 7px; color: #8894a8; background: #f4f5f8; }
.close-modal:hover { color: #e15768; background: #fff0f2; }
.modal-form { padding: 20px 21px 21px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 15px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 4px; margin-top: 2px; }
.profile-modal { width: min(100%, 720px); }
.profile-banner { display: flex; align-items: center; gap: 13px; padding: 20px 21px; color: #fff; background: linear-gradient(114deg,#1b294a,#374b80); }
.profile-banner .avatar { width: 48px; height: 48px; border-radius: 13px; font-size: 13px; }
.profile-banner h3 { margin: 0; font: 800 17px 'Plus Jakarta Sans', sans-serif; }
.profile-banner p { margin: 4px 0 0; color: #c2cbe3; font-size: 11px; }
.profile-banner .score-pill { margin-left: auto; }
.profile-body { padding: 20px 21px; }
.profile-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.profile-kpis div { padding: 12px; border: 1px solid #edf0f5; border-radius: 10px; }
.profile-kpis span { color: #98a3b6; font-size: 10px; }
.profile-kpis strong { display: block; margin-top: 4px; color: #2c3a53; font: 800 18px 'Plus Jakarta Sans', sans-serif; }
.profile-chart { height: 190px; margin-top: 18px; }

#toast-area { position: fixed; z-index: 40; right: 18px; bottom: 18px; display: grid; gap: 8px; width: min(360px, calc(100vw - 36px)); }
.toast { display: flex; align-items: center; gap: 9px; padding: 12px 13px; border: 1px solid #dcefe6; border-radius: 10px; color: #277d62; background: #fff; box-shadow: 0 12px 30px rgba(19,36,66,.14); font-size: 12px; font-weight: 700; animation: toast-in .22s ease both; }
.toast.error { border-color: #f7d9df; color: #bd4e61; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1300px) { .kpi-grid { grid-template-columns: repeat(3, 1fr); } .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 1050px) { .app-shell { grid-template-columns: 68px minmax(0,1fr); } .sidebar { padding: 22px 9px 13px; } .sidebar .brand { padding: 0 10px; } .sidebar .brand > span, .workspace-chip > div, .nav-section, .nav-link > span, .nav-link .nav-pill, .profile-meta, .sidebar-foot .more-btn { display: none; } .workspace-chip { justify-content: center; padding: 21px 0; } .nav-link { justify-content: center; padding: 0; } .sidebar-foot { justify-content: center; padding: 15px 0 4px; } .content-grid, .lower-grid, .analytics-grid { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .login-shell { grid-template-columns: 1fr; } .login-aside { display: none; } .login-card-wrap { min-height: 100vh; } .login-card .brand { display: inline-flex; margin-bottom: 52px; } .app-shell { display: block; } .sidebar { position: fixed; z-index: 10; bottom: 0; top: auto; width: 100%; height: 62px; flex-direction: row; padding: 7px; } .sidebar .brand, .workspace-chip, .nav-section, .sidebar-foot { display: none; } .nav-list { width: 100%; display: flex; justify-content: space-around; gap: 0; } .nav-link { min-width: 0; min-height: 46px; flex: 1; } .nav-link > span { display: none; } .page { padding: 0 14px 85px; } .topbar { min-height: 67px; } .page-title p, .top-actions .icon-btn, .user-summary .profile-meta { display: none; } .welcome { align-items: start; padding: 18px; } .welcome h2 { font-size: 19px; } .welcome p { font-size: 11px; } .welcome-metric { display: none; } .filterbar { gap: 6px; padding: 8px; } .filterbar > svg { display: none; } .filter-control { max-width: 48%; padding: 0 5px; border: 0; } .filter-control label { display: none; } .quick-filters { width: 100%; justify-content: space-between; margin: 0; border-top: 1px solid #eef0f4; padding-top: 5px; } .kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; margin-top: 12px; } .kpi-card { padding: 13px; } .kpi-card strong { font-size: 20px; } .kpi-card h3 { margin-top: 10px; } .content-grid { gap: 12px; margin-top: 12px; } .card { padding: 16px; } .ring-insight { grid-template-columns: 118px 1fr; } .ring { width: 112px; height: 112px; } .ring::before { width: 83px; height: 83px; } .lower-grid { gap: 12px; margin-top: 12px; } .section-head { align-items: flex-start; margin-top: 18px; } .team-grid { grid-template-columns: 1fr; } .report-hero { grid-template-columns: 1fr; padding: 20px; } .report-summary { min-width: 0; } .report-columns { grid-template-columns: 1fr; } .profile-kpis { grid-template-columns: repeat(2, 1fr); } .toolbar { align-items: stretch; } .search-box { flex: 1; } .toolbar .button { flex: 1; } }
@media print { .sidebar, .topbar, .filterbar, .toolbar, .section-head .button, .top-actions, .report-hero .button, #toast-area { display: none !important; } .app-shell { display: block; } .page { padding: 0; } .card, .report-hero { box-shadow: none; } body { background: #fff; } }
