:root { --bg: #f7f8fc; --surface: #fff; --ink: #182230; --muted: #7c8797; --line: #e8ebf2; --purple: #6d5dfc; --purple-soft: #eeecff; --blue: #3979f6; --green: #21a179; --amber: #d99116; --rose: #e46a82; --teal: #1b9aaa; --shadow: 0 8px 24px rgba(27, 39, 73, .04); font-family: "DM Sans", sans-serif; color: var(--ink); background: var(--bg); }
* { box-sizing: border-box; } body { margin: 0; min-width: 320px; background: var(--bg); } button, input, select { font: inherit; } button, a { -webkit-tap-highlight-color: transparent; } a { color: inherit; text-decoration: none; }
.app-shell { display: flex; min-height: 100vh; } .sidebar { width: 246px; flex: 0 0 246px; display: flex; flex-direction: column; background: #fff; border-right: 1px solid var(--line); padding: 26px 16px 18px; } .brand { display: flex; align-items: center; gap: 11px; padding: 0 10px 28px; } .brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: #fff; font: 700 14px "Space Grotesk", sans-serif; background: linear-gradient(135deg, #7a6cff, #5041d9); box-shadow: 0 8px 18px rgba(109, 93, 252, .22); } .brand strong, .brand small, .user-chip strong, .user-chip small, .demo-badge strong, .demo-badge small { display: block; } .brand strong { font: 700 17px "Space Grotesk", sans-serif; letter-spacing: -.02em; } .brand small { color: var(--muted); font-size: 11px; margin-top: 3px; }
.workspace-switcher { display: flex; align-items: center; gap: 9px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; color: #4e5b6c; font-size: 12px; margin-bottom: 24px; } .workspace-switcher .muted { margin-left: auto; } .workspace-dot { width: 8px; height: 8px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 4px #e9f8f1; } .nav { display: grid; gap: 5px; } .nav-item { display: flex; align-items: center; gap: 13px; padding: 11px 13px; border-radius: 10px; color: #7b8695; font-size: 13px; font-weight: 600; transition: .2s ease; } .nav-item:hover { color: var(--ink); background: #fafaff; } .nav-item.active { color: var(--purple); background: var(--purple-soft); } .nav-item .icon { width: 18px; text-align: center; font-size: 18px; } .nav-count { margin-left: auto; padding: 2px 7px; border-radius: 20px; color: var(--purple); background: #fff; font-size: 10px; } .sidebar-footer { margin-top: auto; } .demo-badge { display: flex; gap: 9px; padding: 13px 11px; margin: 12px 0 14px; border-radius: 11px; background: #fafaff; } .demo-badge > span { width: 7px; height: 7px; margin-top: 4px; border-radius: 50%; background: var(--purple); } .demo-badge strong { font-size: 11px; } .demo-badge small { color: var(--muted); font-size: 10px; margin-top: 3px; } .user-chip { display: flex; align-items: center; gap: 9px; padding: 10px; border-top: 1px solid var(--line); } .user-chip strong { font-size: 11px; } .user-chip small { color: var(--muted); font-size: 10px; margin-top: 3px; } .user-chip .muted { margin-left: auto; }
.main-content { min-width: 0; flex: 1; } .topbar { height: 74px; display: flex; align-items: center; justify-content: space-between; padding: 0 42px; background: rgba(255,255,255,.78); border-bottom: 1px solid var(--line); } .breadcrumb { display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: 12px; } .breadcrumb strong { color: var(--ink); } .topbar-actions { display: flex; align-items: center; gap: 17px; } .data-mode { color: var(--green); background: #edf9f4; border-radius: 20px; padding: 5px 10px; font-size: 10px; font-weight: 700; } .icon-button { position: relative; display: grid; place-items: center; width: 32px; height: 32px; border: 0; color: #758195; background: transparent; border-radius: 8px; cursor: pointer; font-size: 20px; } .icon-button:hover { background: #f2f3f8; } .icon-button i { position: absolute; top: 6px; right: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--rose); } .mobile-menu { display: none; border: 0; background: transparent; color: var(--ink); font-size: 20px; }
.page-wrap { max-width: 1440px; margin: 0 auto; padding: 39px 42px 60px; } .page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 29px; } .eyebrow { color: var(--purple); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; } h1, h2, h3, p { margin: 0; } h1 { margin-top: 7px; font: 700 30px "Space Grotesk", sans-serif; letter-spacing: -.045em; } .page-header p { margin-top: 8px; color: var(--muted); font-size: 13px; } h2 { font: 700 15px "Space Grotesk", sans-serif; letter-spacing: -.02em; } h3 { font: 700 13px "Space Grotesk", sans-serif; } .card-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; } .card-heading p { margin-top: 5px; color: var(--muted); font-size: 11px; } .text-link { color: var(--purple); font-size: 11px; font-weight: 700; white-space: nowrap; } .text-link .icon { font-size: 13px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 0 15px; border-radius: 9px; border: 1px solid transparent; font-size: 12px; font-weight: 700; cursor: pointer; transition: .2s ease; } .button.primary { color: #fff; background: var(--purple); box-shadow: 0 7px 17px rgba(109, 93, 252, .18); } .button.primary:hover { background: #5b4de4; transform: translateY(-1px); } .button.ghost { color: #667387; background: #fff; border-color: var(--line); } .button.ghost:hover { color: var(--purple); border-color: #d8d3ff; } .button .icon { font-size: 16px; }
.metric-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; } .metric-card, .card { background: var(--surface); border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow); } .metric-card { padding: 16px; min-height: 126px; } .metric-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11px; font-weight: 600; } .metric-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; } .metric-icon .icon { font-size: 16px; } .tone-blue { color: var(--blue); background: #ecf3ff; } .tone-amber { color: var(--amber); background: #fff5df; } .tone-green { color: var(--green); background: #eaf8f1; } .tone-purple { color: var(--purple); background: var(--purple-soft); } .tone-rose { color: var(--rose); background: #fff0f3; } .tone-teal { color: var(--teal); background: #e9f8fa; } .metric-value { margin-top: 12px; font: 700 23px "Space Grotesk", sans-serif; letter-spacing: -.04em; } .metric-hint { margin-top: 8px; color: var(--muted); font-size: 10px; } .trend-up { color: var(--green); font-weight: 700; margin-right: 3px; }
.dashboard-grid { display: grid; gap: 18px; margin-bottom: 18px; } .top-grid { grid-template-columns: 1.65fr 1fr; } .middle-grid { grid-template-columns: 1fr 1.35fr; } .bottom-grid { grid-template-columns: 1.35fr 1fr; } .card { padding: 20px; min-width: 0; } .revenue-card { min-height: 300px; } .select-like { padding: 6px 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); font-size: 10px; white-space: nowrap; } .chart-value { margin-top: 20px; font: 700 26px "Space Grotesk", sans-serif; } .chart-value span { margin-left: 5px; color: var(--muted); font: 400 11px "DM Sans", sans-serif; } .line-chart { height: 170px; margin-top: 13px; } .line-chart svg { width: 100%; height: 145px; overflow: visible; } .chart-area { fill: url(#area); } .chart-line { fill: none; stroke: var(--purple); stroke-linecap: round; stroke-width: 3; } .chart-dot { fill: #fff; stroke: var(--purple); stroke-width: 3; } .chart-labels { display: flex; justify-content: space-between; padding: 0 2px; color: #a0a8b5; font-size: 9px; } .pipeline-card { min-height: 300px; } .pipeline-list { display: grid; gap: 18px; margin-top: 28px; } .pipeline-label { display: flex; justify-content: space-between; margin-bottom: 7px; color: #687486; font-size: 11px; } .pipeline-label strong { color: var(--ink); } .progress { height: 7px; overflow: hidden; border-radius: 10px; background: #f0f1f5; } .progress span { display: block; height: 100%; border-radius: inherit; } .progress-new { background: var(--blue); } .progress-ongoing { background: var(--purple); } .progress-qualified { background: var(--green); } .progress-done { background: #9aa4b5; } .progress-cancelled { background: var(--rose); }
.source-card, .followup-card { min-height: 260px; } .source-body { display: flex; align-items: center; gap: 32px; margin-top: 28px; } .donut { display: grid; place-items: center; width: 142px; height: 142px; flex: 0 0 142px; border-radius: 50%; background: conic-gradient(var(--blue) 0 var(--p1), var(--purple) var(--p1) calc(var(--p1) + var(--p2)), #f1a44a calc(var(--p1) + var(--p2)) 82%, #e9ebf1 82% 100%); } .donut:after { content: ""; position: absolute; width: 95px; height: 95px; border-radius: 50%; background: white; } .donut > div { z-index: 1; text-align: center; } .donut strong, .donut small { display: block; } .donut strong { font: 700 25px "Space Grotesk", sans-serif; } .donut small { margin-top: 4px; color: var(--muted); font-size: 10px; } .legend { display: grid; flex: 1; gap: 12px; } .legend div { display: grid; grid-template-columns: 9px 1fr auto; gap: 8px; align-items: center; color: #718092; font-size: 10px; } .legend strong { color: var(--ink); } .legend-dot { width: 8px; height: 8px; border-radius: 50%; } .dot-0 { background: var(--blue); } .dot-1 { background: var(--purple); } .dot-2 { background: #f1a44a; } .dot-3 { background: #5bb9aa; } .dot-4 { background: #bac0cc; } .compact-list, .sales-list { display: grid; gap: 3px; margin-top: 18px; } .list-row, .sales-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 4px; text-align: left; border: 0; border-bottom: 1px solid #f0f1f5; background: transparent; cursor: pointer; } .list-row:last-child, .sales-row:last-child { border-bottom: 0; } .list-row:hover { background: #fafaff; } .list-main { min-width: 0; flex: 1; } .list-main strong, .list-main span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .list-main strong { color: var(--ink); font-size: 11px; } .list-main span { margin-top: 3px; color: var(--muted); font-size: 10px; } .list-meta { display: grid; gap: 3px; text-align: right; } .list-meta span { font-size: 10px; font-weight: 700; } .list-meta small { color: var(--muted); font-size: 9px; } .avatar { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 28px; border-radius: 9px; color: #3b56ad; background: #e8efff; font-size: 9px; font-weight: 700; } .avatar-purple { color: #5c4ed4; background: #eeeaff; } .avatar-0 { color: #258f85; background: #e4f7f3; } .avatar-1 { color: #ba6d1c; background: #fff1dc; } .avatar-2 { color: #ba5270; background: #ffebf0; } .avatar-large { width: 43px; height: 43px; flex-basis: 43px; font-size: 13px; }
.table-wrap { width: 100%; overflow-x: auto; } table { width: 100%; border-collapse: collapse; } th { padding: 14px 10px; color: #a0a8b5; font-size: 9px; font-weight: 700; letter-spacing: .04em; text-align: left; text-transform: uppercase; white-space: nowrap; } td { padding: 13px 10px; color: #536073; border-top: 1px solid #f0f1f5; font-size: 11px; white-space: nowrap; } td strong, td small { display: block; } td strong { color: var(--ink); font-size: 11px; } td small { margin-top: 4px; color: var(--muted); font-size: 9px; } tr.clickable { cursor: pointer; } tr.clickable:hover td { background: #fbfaff; } .numeric { text-align: right; } .person-cell { display: flex; align-items: center; gap: 9px; } .person-cell .avatar { border-radius: 8px; } .table-toolbar { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin: 18px 0; } .search-box { position: relative; min-width: 220px; flex: 1; } .search-box .icon { position: absolute; left: 11px; top: 8px; color: #9aa3b2; font-size: 18px; } .search-box input, select { min-height: 35px; border: 1px solid var(--line); border-radius: 8px; outline: 0; color: #677487; background: #fff; font-size: 11px; } .search-box input { width: 100%; padding: 0 12px 0 34px; } select { padding: 0 28px 0 10px; } .search-box input:focus, select:focus { border-color: #c8c2ff; box-shadow: 0 0 0 3px #f0eeff; } .full-card { min-height: 420px; } .table-footer { display: flex; justify-content: space-between; padding-top: 16px; color: var(--muted); font-size: 10px; } .status { display: inline-flex; align-items: center; min-height: 21px; padding: 3px 8px; border-radius: 20px; font-size: 9px; font-weight: 700; } .status-new, .status-pending { color: #a16810; background: #fff4df; } .status-ongoing, .status-partial { color: #604ee4; background: #efedff; } .status-qualified, .status-paid, .status-installed, .status-contacted { color: #198562; background: #e6f7f0; } .status-done, .status-scheduled { color: #2865c6; background: #e9f1ff; } .status-cancelled, .status-not-interested { color: #c55870; background: #ffedf1; } .status-no-answer, .status-not-contacted { color: #7b8697; background: #f0f2f6; } .danger-text { color: #d45b70 !important; font-weight: 700; } .amber-text { color: #c17b12 !important; font-weight: 700; } .success-text { color: var(--green) !important; font-weight: 700; } .receipt-link, .map-link { color: var(--purple); font-weight: 700; } .issue-cell { max-width: 250px; overflow: hidden; text-overflow: ellipsis; } .audit-meta { color: var(--muted); font-size: 11px; }
.activity-dot { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--purple); } .details-cell { max-width: 340px; overflow: hidden; text-overflow: ellipsis; } .empty-state { padding: 50px; color: var(--muted); text-align: center; } .error-screen { display: grid; place-items: center; align-content: center; min-height: 100vh; gap: 12px; text-align: center; color: var(--muted); } .error-screen h1 { color: var(--ink); }
.drawer-backdrop { position: fixed; z-index: 5; inset: 0; display: flex; justify-content: flex-end; background: rgba(22, 28, 42, .22); animation: fade-in .2s ease; } .drawer { width: min(470px, 100%); height: 100%; overflow-y: auto; padding: 30px; background: #fff; box-shadow: -12px 0 35px rgba(20, 30, 55, .1); animation: slide-in .25s ease; } .drawer-header { display: flex; justify-content: space-between; gap: 15px; } .drawer-header h2 { margin-top: 8px; font-size: 24px; } .drawer-header p { margin-top: 5px; color: var(--muted); font-size: 11px; } .drawer-actions { display: flex; gap: 8px; padding: 22px 0; border-bottom: 1px solid var(--line); } .profile-summary { display: flex; align-items: center; gap: 12px; padding: 22px 0; } .profile-summary > div:nth-child(2) { flex: 1; } .profile-summary strong, .profile-summary span { display: block; } .profile-summary strong { font-size: 13px; } .profile-summary > div span { margin-top: 4px; color: var(--muted); font-size: 10px; } .detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); } .detail-grid label, .detail-grid strong { display: block; } .detail-grid label { color: var(--muted); font-size: 10px; } .detail-grid strong { margin-top: 5px; font-size: 11px; } .drawer-section { padding: 22px 0 0; } .section-title { display: flex; align-items: center; justify-content: space-between; gap: 15px; } .section-title h3 { font-size: 12px; } .section-title span, .section-title a { color: var(--muted); font-size: 10px; } .section-title a { color: var(--purple); font-weight: 700; } .note-box { margin-top: 11px; padding: 12px; border-radius: 9px; color: #657286; background: #f8f9fc; font-size: 11px; line-height: 1.55; } .deal-mini { display: flex; justify-content: space-between; gap: 10px; margin-top: 11px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; } .deal-mini strong, .deal-mini span { display: block; } .deal-mini strong { font-size: 11px; } .deal-mini span { margin-top: 4px; color: var(--muted); font-size: 9px; } .deal-mini-values { text-align: right; } .deal-mini-values strong { color: var(--green); } .timeline { display: grid; gap: 0; margin-top: 14px; } .timeline-row { position: relative; display: flex; gap: 12px; padding: 0 0 18px 1px; } .timeline-row:not(:last-child):before { content: ""; position: absolute; top: 9px; bottom: 0; left: 4px; width: 1px; background: #e6e8ef; } .timeline-dot { z-index: 1; width: 8px; height: 8px; flex: 0 0 8px; margin-top: 4px; border: 2px solid #fff; border-radius: 50%; background: var(--purple); box-shadow: 0 0 0 2px #dcd9ff; } .timeline-row strong { font-size: 11px; } .timeline-row p { margin-top: 5px; color: #677487; font-size: 10px; line-height: 1.4; } .timeline-row small { display: block; margin-top: 6px; color: var(--muted); font-size: 9px; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } } @keyframes slide-in { from { transform: translateX(20px); opacity: .7; } to { transform: translateX(0); opacity: 1; } }
@media (max-width: 1180px) { .metric-grid { grid-template-columns: repeat(3, 1fr); } .top-grid, .middle-grid, .bottom-grid { grid-template-columns: 1fr; } }
@media (max-width: 820px) { .sidebar { position: fixed; z-index: 10; top: 0; bottom: 0; left: 0; transform: translateX(-100%); transition: transform .2s ease; } .sidebar.mobile-open { transform: translateX(0); } .mobile-menu { display: block; } .topbar { height: 62px; padding: 0 20px; } .topbar .breadcrumb { margin-left: 8px; flex: 1; } .data-mode { display: none; } .page-wrap { padding: 28px 20px 50px; } }
@media (max-width: 560px) { .page-header { align-items: flex-start; flex-direction: column; } .page-header .button { width: 100%; } .metric-grid { grid-template-columns: 1fr 1fr; } .metric-card { min-height: 115px; padding: 12px; } .metric-value { font-size: 20px; } .card { padding: 15px; } .source-body { gap: 15px; } .donut { width: 115px; height: 115px; flex-basis: 115px; } .donut:after { width: 78px; height: 78px; } .table-toolbar { align-items: stretch; } .table-toolbar select, .table-toolbar .button, .search-box { flex: 1 1 100%; } .table-footer { gap: 10px; flex-direction: column; } .drawer { padding: 22px; } }

/* P1.5 visual polish: preserve the approved structure while improving scanability. */
:root { --muted: #687588; --line: #e3e7ef; --shadow: 0 10px 28px rgba(27, 39, 73, .045); }
.brand small { font-size: 12px; }
.workspace-switcher { font-size: 13px; padding: 12px 13px; margin-bottom: 25px; }
.nav { gap: 6px; }
.nav-item { padding: 12px 13px; font-size: 14px; line-height: 1.3; }
.nav-count { font-size: 11px; }
.demo-badge strong { font-size: 12px; }
.demo-badge small, .user-chip small { font-size: 11px; }
.user-chip strong { font-size: 12px; }
.topbar { padding-left: 46px; padding-right: 46px; }
.breadcrumb { font-size: 13px; }
.page-wrap { padding: 42px 46px 68px; }
.page-header { margin-bottom: 32px; }
.page-header p { font-size: 14px; line-height: 1.5; }
h1 { font-size: 32px; }
h2 { font-size: 16px; }
.card-heading p { font-size: 12px; line-height: 1.45; }
.text-link { font-size: 12px; }
.button { min-height: 40px; padding: 0 16px; font-size: 13px; }
.metric-grid { gap: 16px; margin-bottom: 20px; }
.metric-card { padding: 18px; min-height: 132px; }
.metric-top { font-size: 12px; }
.metric-value { margin-top: 13px; font-size: 25px; }
.metric-hint { margin-top: 9px; font-size: 11px; line-height: 1.35; }
.dashboard-grid { gap: 20px; margin-bottom: 20px; }
.card { padding: 22px; }
.chart-labels { font-size: 10px; }
.legend div { font-size: 11px; }
.list-main strong { font-size: 12px; }
.list-main span { font-size: 11px; line-height: 1.35; }
.list-meta span { font-size: 11px; }
.list-meta small { font-size: 10px; }
.table-toolbar { gap: 10px; margin: 20px 0; }
.search-box input, select { min-height: 38px; font-size: 12px; }
th { padding: 15px 12px; font-size: 10px; letter-spacing: .055em; }
td { padding: 15px 12px; font-size: 12px; line-height: 1.35; vertical-align: middle; }
td strong { font-size: 12px; }
td small { font-size: 10px; line-height: 1.35; }
.status { min-height: 23px; padding: 4px 9px; font-size: 10px; line-height: 1.2; }
.table-footer { font-size: 11px; }
.drawer-header p, .section-title span, .section-title a { font-size: 11px; }
.profile-summary strong { font-size: 14px; }
.profile-summary > div span { font-size: 11px; }
.detail-grid { gap: 17px; }
.detail-grid label { font-size: 11px; }
.detail-grid strong { font-size: 12px; line-height: 1.35; }
.note-box { font-size: 12px; line-height: 1.6; }
.deal-mini strong { font-size: 12px; }
.deal-mini span { font-size: 10px; }
.timeline-row p { font-size: 11px; line-height: 1.5; }
.timeline-row small { font-size: 10px; }
@media (max-width: 1180px) { .page-wrap { padding-left: 34px; padding-right: 34px; } }
@media (max-width: 820px) { .topbar { padding-left: 20px; padding-right: 20px; } .page-wrap { padding: 32px 22px 54px; } }
@media (max-width: 560px) { .page-wrap { padding: 28px 16px 46px; } .card { padding: 18px; } .metric-card { padding: 15px; } .metric-value { font-size: 22px; } th { padding: 13px 10px; } td { padding: 14px 10px; } }

/* P1.5B interaction polish: restrained feedback with an accessible motion fallback. */
:where(a, button, input, select, [tabindex="0"]):focus-visible { outline: 3px solid rgba(109, 93, 252, .28); outline-offset: 2px; }
.nav-item, .nav-count, .button, .icon-button, .text-link, .data-mode, .metric-card, .metric-icon, .list-row, tr.clickable td, .status, .search-box input, select { transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease, opacity .18s ease, transform .18s ease; }
.nav-item:hover .nav-count, .nav-item.active .nav-count { background: #fff; box-shadow: 0 2px 8px rgba(109, 93, 252, .12); }
.nav-item:focus-visible { outline-offset: -2px; }
.button:active, .icon-button:active { transform: translateY(1px); }
.button:disabled, .icon-button:disabled { cursor: not-allowed; opacity: .55; }
.metric-card:hover { border-color: #d9d5ff; box-shadow: 0 13px 30px rgba(27, 39, 73, .08); transform: translateY(-2px); }
.metric-card:hover .metric-icon { transform: translateY(-1px); }
.list-row:hover, .list-row:focus-visible { background: #fafaff; }
tr.clickable:focus-visible { outline: 2px solid var(--purple); outline-offset: -2px; }
tr.clickable:focus-visible td, tr.clickable:hover td { background: #fbfaff; }
.receipt-link, .map-link, .text-link, .section-title a { transition: color .18s ease, opacity .18s ease; }
.receipt-link:hover, .map-link:hover, .text-link:hover, .section-title a:hover { color: #5142df; opacity: .82; }
.status:hover { box-shadow: 0 2px 8px rgba(27, 39, 73, .08); }
.page-enter { animation: page-enter .18s ease-out both; }
.page-enter .line-chart { animation: chart-reveal .22s ease-out .03s both; }
.drawer-backdrop { animation: backdrop-in .18s ease-out both; }
.drawer { will-change: transform, opacity; animation: drawer-in .22s cubic-bezier(.22, .8, .24, 1) both; }
.drawer-backdrop.is-closing { pointer-events: none; animation: backdrop-out .16s ease-in both; }
.drawer-backdrop.is-closing .drawer { animation: drawer-out .16s ease-in both; }
@keyframes page-enter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes chart-reveal { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes backdrop-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes drawer-in { from { transform: translateX(18px); opacity: .72; } to { transform: translateX(0); opacity: 1; } }
@keyframes drawer-out { from { transform: translateX(0); opacity: 1; } to { transform: translateX(18px); opacity: .72; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* P1.5C motion visibility: make the existing system easier to perceive without adding spectacle. */
:root { --motion-fast: .14s; --motion-control: .18s; --motion-entry: .24s; --motion-drawer: .24s; --motion-chart: .42s; --motion-ease: cubic-bezier(.22, .8, .24, 1); }
.page-enter { animation: page-enter var(--motion-entry) var(--motion-ease) both; }
.page-enter .metric-card { animation: kpi-enter .22s var(--motion-ease) both; }
.page-enter .metric-card:nth-child(1) { animation-delay: 0ms; }
.page-enter .metric-card:nth-child(2) { animation-delay: 35ms; }
.page-enter .metric-card:nth-child(3) { animation-delay: 70ms; }
.page-enter .metric-card:nth-child(4) { animation-delay: 105ms; }
.page-enter .metric-card:nth-child(5) { animation-delay: 140ms; }
.page-enter .metric-card:nth-child(6) { animation-delay: 175ms; }
.page-enter .dashboard-grid .card { animation: panel-enter .2s var(--motion-ease) both; }
.page-enter .top-grid .card:nth-child(1) { animation-delay: 180ms; }
.page-enter .top-grid .card:nth-child(2) { animation-delay: 220ms; }
.page-enter .middle-grid .card:nth-child(1) { animation-delay: 260ms; }
.page-enter .middle-grid .card:nth-child(2) { animation-delay: 300ms; }
.page-enter .bottom-grid .card:nth-child(1) { animation-delay: 340ms; }
.page-enter .bottom-grid .card:nth-child(2) { animation-delay: 380ms; }
.page-enter .line-chart { animation: chart-reveal var(--motion-chart) var(--motion-ease) 80ms both; }
.page-enter .progress span { animation: bar-reveal .42s var(--motion-ease) both; transform-origin: left center; }
.page-enter .pipeline-row:nth-child(1) .progress span { animation-delay: 220ms; }
.page-enter .pipeline-row:nth-child(2) .progress span { animation-delay: 260ms; }
.page-enter .pipeline-row:nth-child(3) .progress span { animation-delay: 300ms; }
.page-enter .pipeline-row:nth-child(4) .progress span { animation-delay: 340ms; }
.page-enter .pipeline-row:nth-child(5) .progress span { animation-delay: 380ms; }
.drawer-backdrop { animation: backdrop-in .22s var(--motion-ease) both; }
.drawer { animation: drawer-in var(--motion-drawer) var(--motion-ease) both; }
.drawer-backdrop.is-closing { animation: backdrop-out .2s ease-in both; }
.drawer-backdrop.is-closing .drawer { animation: drawer-out .2s ease-in both; }
.button { transition-duration: var(--motion-control); }
.button.primary:hover { box-shadow: 0 10px 22px rgba(109, 93, 252, .26); transform: translateY(-2px); }
.button.primary:active { transform: translateY(0); transition-duration: var(--motion-fast); }
.metric-card { transition-duration: .2s; }
.data-mode { animation: state-enter .22s var(--motion-ease) both; }
.nav-item { position: relative; }
.nav-item.active::before { content: ""; position: absolute; left: 4px; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: var(--purple); opacity: .8; }
@keyframes page-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes kpi-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes panel-enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes chart-reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bar-reveal { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes drawer-in { from { transform: translateX(28px); opacity: .62; } to { transform: translateX(0); opacity: 1; } }
@keyframes drawer-out { from { transform: translateX(0); opacity: 1; } to { transform: translateX(28px); opacity: .62; } }
@keyframes state-enter { from { opacity: .35; transform: translateY(-2px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-delay: 0s !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .page-enter, .page-enter .metric-card, .page-enter .dashboard-grid .card, .page-enter .line-chart, .page-enter .progress span, .drawer, .drawer-backdrop { transform: none !important; }
}
