@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --page: #f0f2ed;
  --surface: #fff;
  --surface-muted: #f7f8f5;
  --ink: #17241f;
  --ink-soft: #66716b;
  --ink-faint: #8d9690;
  --line: #e7eae5;
  --forest: #102a22;
  --forest-soft: #1c3b31;
  --orange: #d84f25;
  --orange-dark: #bc3d1a;
  --orange-wash: #fff0e9;
  --green: #27765b;
  --green-wash: #e6f3eb;
  --red: #bd443c;
  --red-wash: #fbeae7;
  --shadow: 0 2px 6px rgba(27, 38, 31, .035), 0 12px 30px rgba(27, 38, 31, .035);
  --sidebar-width: 248px;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--page); scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--page); font-family: "Bricolage Grotesque", sans-serif; font-size: 14px; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
[data-icon] { display: inline-flex; width: 16px; height: 16px; align-items: center; justify-content: center; flex: 0 0 auto; }
[data-icon] > .bi { font-size: calc(1em + 1px); line-height: 1; }

.app-frame { min-height: 100vh; }
.sidebar { position: fixed; z-index: 20; inset: 12px auto 12px 12px; display: flex; width: calc(var(--sidebar-width) - 12px); flex-direction: column; padding: 22px 14px 14px; overflow: auto; color: #e6eee9; background: var(--forest); border: 1px solid rgba(255,255,255,.07); border-radius: 22px; box-shadow: 0 16px 38px rgba(12, 31, 24, .12); }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 5px 20px; }
.brand-mark { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; color: #122820; background: #e4d7b8; font-family: "Bricolage Grotesque", sans-serif; font-size: 26px; font-weight: 700; line-height: 1; }
.brand-copy { display: flex; flex-direction: column; gap: 2px; }
.brand-copy strong { color: #fff; font-family: "Bricolage Grotesque", sans-serif; font-size: 18px; font-weight: 500; letter-spacing: -.5px; }
.brand-copy span { color: #83988e; font-size: 9px; font-weight: 700; letter-spacing: 1.15px; }
.workspace-switcher { display: flex; align-items: center; gap: 9px; margin: 0 0 21px; padding: 11px 10px; color: #bdcdc4; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; font-size: 12px; }
.workspace-dot, .status-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #6ca88b; box-shadow: 0 0 0 3px rgba(108,168,139,.14); }
.workspace-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-chevron { width: 13px; height: 13px; color: #93a69c; }
.sidebar-nav { display: flex; flex-direction: column; gap: 3px; }
.nav-caption { padding: 0 10px 7px; color: #81958c; font-size: 9px; font-weight: 700; letter-spacing: 1.15px; }
.nav-caption-spaced { margin-top: 21px; }
.side-link { position: relative; display: flex; min-height: 37px; align-items: center; gap: 10px; padding: 0 10px; color: #bac9c1; border-radius: 8px; font-size: 12px; transition: background .16s ease, color .16s ease; }
.side-link > [data-icon] { width: 15px; height: 15px; color: #9eb4a8; }
.side-link:hover, .side-link.is-active { color: #fff; background: rgba(255,255,255,.085); }
.side-link.is-active::before { position: absolute; inset: 8px auto 8px -15px; width: 3px; border-radius: 0 3px 3px 0; background: #e55c30; content: ""; }
.side-link.is-active > [data-icon] { color: #f2a080; }
.nav-count { display: grid; min-width: 18px; height: 18px; place-items: center; margin-inline-start: auto; padding: 0 5px; color: #eaf3ed; background: rgba(255,255,255,.11); border-radius: 50px; font-size: 10px; }
.nav-dropdown > summary { list-style: none; }
.nav-dropdown > summary::-webkit-details-marker { display: none; }
.nav-dropdown > summary { cursor: pointer; }
.nav-dropdown > summary > span:nth-child(2) { flex: 1; }
.nav-caret { width: 12px; height: 12px; color: #82978b; transition: transform .16s ease; }
.nav-dropdown[open] .nav-caret { transform: rotate(180deg); }
.nav-submenu { display: flex; flex-direction: column; gap: 2px; margin: 2px 0 5px 17px; padding: 3px 0 3px 10px; border-left: 1px solid rgba(255,255,255,.12); }
.sub-link { min-height: 27px; padding: 7px 9px; color: #97aaa0; border-radius: 6px; font-size: 10px; line-height: 1.4; }
.sub-link:hover, .sub-link.is-active { color: #f5f7f4; background: rgba(255,255,255,.075); }
.sub-link.is-active { color: #f1a181; }
.sidebar-bottom { margin-top: auto; padding-top: 20px; }
.revenue-card { padding: 13px 12px 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: rgba(255,255,255,.055); }
.revenue-top { display: flex; align-items: center; justify-content: space-between; color: #a7b9af; font-size: 10px; }
.revenue-top > span:first-child { display: flex; align-items: center; gap: 6px; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: #e95732; box-shadow: 0 0 0 3px rgba(233,87,50,.12); }
.revenue-pill { padding: 3px 6px; color: #c8d8cf; background: rgba(255,255,255,.09); border-radius: 20px; font-size: 9px; }
.revenue-card > strong { display: inline-block; margin-top: 12px; color: #f7faf7; font-size: 23px; letter-spacing: -.7px; }
.revenue-goal { margin-left: 5px; color: #92a59b; font-size: 11px; }
.revenue-track { height: 5px; margin: 8px 0 8px; overflow: hidden; border-radius: 4px; background: rgba(255,255,255,.11); }
.revenue-track span { display: block; width: 85%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #dd5730 0 96%, #efbd82 96%); }
.revenue-card small { color: #e0a37e; font-size: 10px; }
.profile-button { display: flex; width: 100%; align-items: center; gap: 9px; margin-top: 12px; padding: 8px 3px 2px; color: #fff; text-align: left; background: transparent; border: 0; }
.profile-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 3px; }
.profile-copy strong { font-size: 11px; font-weight: 600; }
.profile-copy small { color: #9db0a6; font-size: 10px; }
.profile-more { width: 14px; height: 14px; color: #8ea498; }
.avatar { display: grid; width: 25px; height: 25px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(22,38,30,.05); border-radius: 50%; color: #24352e; font-size: 9px; font-weight: 700; }
.avatar-peach { background: #f3c7ac; }
.avatar-pink { background: #f5c2cf; }
.avatar-rose { background: #edc3cb; }
.avatar-apricot { background: #efd0b5; }
.avatar-teal { background: #b6e2dc; }
.avatar-sage { background: #d6e8b6; }
.avatar-yellow { background: #efdca5; }
.avatar-blue { background: #c6d9eb; }

.main-shell { min-height: 100vh; margin-left: var(--sidebar-width); }
.topbar { position: relative; z-index: 1100; display: flex; height: 68px; align-items: center; justify-content: space-between; gap: 20px; padding: 0 30px; background: color-mix(in srgb, var(--page) 93%, transparent); backdrop-filter: blur(14px); }
.breadcrumb-line { display: flex; align-items: center; gap: 9px; color: #7d8881; font-size: 11px; }
.breadcrumb-line [data-icon] { width: 14px; height: 14px; }
.breadcrumb-current { color: #35423b; font-weight: 600; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.global-search { display: flex; width: clamp(185px, 23vw, 310px); height: 38px; align-items: center; gap: 8px; padding: 0 9px 0 11px; color: #828c85; border: 1px solid #e6e9e4; border-radius: 10px; background: var(--surface); }
.global-search [data-icon] { width: 15px; height: 15px; }
.global-search input { width: 100%; min-width: 0; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: 11px; }
.global-search input::placeholder { color: #89938d; }
kbd { flex: 0 0 auto; padding: 3px 4px; color: #79837d; background: #f4f6f2; border: 1px solid #e6e9e4; border-radius: 4px; font-family: inherit; font-size: 9px; }
.topbar-date { display: flex; height: 38px; align-items: center; gap: 8px; padding: 0 11px; color: #4a5750; background: var(--surface); border-radius: 10px; font-size: 10px; white-space: nowrap; }
.topbar-date b { color: #a4aca7; font-weight: 400; }
.status-dot { width: 6px; height: 6px; }
.icon-button { display: inline-grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; color: #56645c; background: transparent; border: 1px solid #dde2dc; border-radius: 10px; transition: background .15s, border-color .15s; }
.icon-button:hover { background: var(--surface); border-color: #cdd4ce; }
.icon-button [data-icon] { width: 16px; height: 16px; }
.notification-button { position: relative; }
.notification-button > i { position: absolute; top: 8px; right: 8px; width: 5px; height: 5px; border: 1px solid var(--page); border-radius: 50%; background: var(--orange); }
.button { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; gap: 8px; padding: 0 13px; border: 1px solid transparent; border-radius: 9px; font-size: 11px; font-weight: 600; white-space: nowrap; transition: transform .15s, background .15s, box-shadow .15s; }
.button:active { transform: translateY(1px); }
.button [data-icon] { width: 14px; height: 14px; }
.button-primary { color: #fff; background: var(--orange); border-color: var(--orange); box-shadow: 0 4px 10px rgba(216,79,37,.15); }
.button-primary:hover { color: #fff; background: var(--orange-dark); border-color: var(--orange-dark); }
.button-secondary { color: #44524a; background: var(--surface); border-color: #dfe4de; }
.button-secondary:hover { color: var(--ink); background: var(--surface-muted); }
.button-danger { color: #fff; background: #bd3f39; border-color: #bd3f39; }
.button-small { min-height: 32px; }
.top-create { min-width: 77px; }
.menu-toggle, .sidebar-close { display: none; }

.page-content { max-width: 1640px; margin: 0 auto; padding: 17px 30px 42px; }
.view-panel { display: none; animation: appear .2s ease-out; }
.view-panel.is-visible { display: block; }
@keyframes appear { from { opacity: .6; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.page-heading { display: flex; min-height: 77px; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.eyebrow { margin: 0 0 6px; color: #77837b; font-size: 9px; font-weight: 700; letter-spacing: 1.05px; }
h1 { margin: 0; color: #17251f; font-family: "Bricolage Grotesque", sans-serif; font-size: clamp(26px, 2.3vw, 33px); font-weight: 500; letter-spacing: -.75px; line-height: 1.12; }
.heading-period { color: var(--orange); }
.page-subtitle { margin: 8px 0 0; color: #748078; font-size: 12px; line-height: 1.5; }
.page-subtitle a { color: var(--orange); font-weight: 600; }
.page-subtitle strong { color: #48564e; font-weight: 600; }
.subtitle-divider { padding: 0 4px; color: #a5ada7; }
.heading-actions { display: flex; align-items: center; gap: 8px; }
.surface { min-width: 0; background: var(--surface); border: 1px solid rgba(31,50,39,.045); border-radius: 15px; box-shadow: var(--shadow); }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; margin-bottom: 12px; }
.stat-card { position: relative; min-width: 0; min-height: 112px; padding: 13px 14px; overflow: hidden; background: var(--surface); border: 1px solid rgba(31,50,39,.045); border-radius: 13px; box-shadow: var(--shadow); }
.stat-heading { display: flex; align-items: center; gap: 8px; }
.stat-icon { display: inline-grid; width: 23px; height: 23px; flex: 0 0 auto; place-items: center; border-radius: 7px; }
.stat-icon [data-icon] { width: 13px; height: 13px; }
.stat-icon-orange { color: #d95831; background: #fff0e9; }
.stat-icon-sage { color: #40815d; background: #eaf4e9; }
.stat-icon-lilac { color: #826daf; background: #f0ebf8; }
.stat-icon-blue { color: #557fa1; background: #e9f1f7; }
.stat-icon-yellow { color: #a98032; background: #f8f0db; }
.stat-label { color: #707c74; font-size: 11px; }
.stat-menu { width: 14px; height: 14px; margin-inline-start: auto; color: #a4aca6; }
.stat-value { margin-top: 9px; color: #18251f; font-size: 23px; font-weight: 650; letter-spacing: -.75px; line-height: 1; }
.stat-foot { display: flex; min-height: 17px; align-items: center; gap: 6px; margin-top: 7px; color: #849088; font-size: 10px; }
.stat-period { margin-inline-start: auto; color: #a1aaa4; font-size: 8px; letter-spacing: .55px; }
.trend { display: inline-flex; align-items: center; gap: 2px; padding: 2px 5px; border-radius: 4px; font-size: 9px; font-weight: 700; }
.trend [data-icon] { width: 9px; height: 9px; }
.trend-up { color: #277a57; background: #eaf5ec; }
.trend-down { color: #b84942; background: #fcece8; }
.dashboard-grid { display: grid; gap: 12px; margin-bottom: 12px; }
.dashboard-grid-main { grid-template-columns: minmax(0, 1.85fr) minmax(295px, .92fr); }
.dashboard-grid-middle { grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); }
.dashboard-grid-bottom { grid-template-columns: minmax(0, 1.05fr) minmax(260px, .9fr) minmax(290px, 1.12fr); }
.performance-card, .source-card, .running-card, .funnel-card, .lead-preview-card, .budget-card, .activity-card, .report-insights { padding: 15px; }
.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card-heading h2 { margin: 0; color: #24312a; font-size: 13px; font-weight: 650; letter-spacing: -.1px; }
.card-heading p { margin: 4px 0 0; color: #88928c; font-size: 10px; }
.segmented-control { display: flex; gap: 2px; padding: 3px; border-radius: 8px; background: #f2f4f0; }
.segment-button { min-height: 24px; padding: 0 8px; color: #77827a; background: transparent; border: 0; border-radius: 6px; font-size: 9px; }
.segment-button.is-current { color: #2b3931; background: #fff; box-shadow: 0 1px 3px rgba(29,40,33,.1); }
.performance-summary { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 13px; padding: 9px 5px; border: 1px solid #edf0eb; border-radius: 10px; background: #fafbf9; }
.summary-metric { display: flex; min-width: 0; flex-direction: column; gap: 4px; padding: 0 9px; border-right: 1px solid #e9ece7; }
.summary-metric:last-child { border-right: 0; }
.summary-label { overflow: hidden; color: #7d8880; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.summary-metric strong { color: #26332c; font-size: 15px; font-weight: 650; letter-spacing: -.4px; }
.summary-metric .trend { align-self: flex-start; font-size: 8px; }
.chart-wrap { position: relative; height: 157px; margin: 10px 0 0; }
.chart-wrap canvas, .channel-chart canvas, .funnel-chart canvas, .budget-chart canvas, .spend-track canvas { display: block; width: 100% !important; height: 100% !important; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4px; color: #7e8981; font-size: 9px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend-dot { width: 6px; height: 6px; border-radius: 50%; }.legend-orange { background: #e25d32; }
.legend-dash { width: 13px; border-top: 1px dashed #697b70; }
.legend-ring { width: 7px; height: 7px; border: 1px solid #d85b71; border-radius: 50%; }
.text-action { display: inline-flex; align-items: center; gap: 4px; color: var(--orange); background: transparent; border: 0; font-size: 9px; font-weight: 600; white-space: nowrap; }
.text-action [data-icon] { width: 11px; height: 11px; }
.channel-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 14px; padding: 3px; border-radius: 7px; background: #f1f3f0; }
.channel-tab { height: 24px; color: #727d76; background: transparent; border: 0; border-radius: 5px; font-size: 9px; }
.channel-tab.is-current { color: #29362f; background: #fff; box-shadow: 0 1px 3px rgba(29,40,33,.08); }
.channel-chart { height: 34px; margin: 7px 0 5px; }
.source-list { display: flex; flex-direction: column; }
.source-row { display: grid; grid-template-columns: minmax(84px, 1fr) 64px 65px 25px; align-items: center; column-gap: 5px; padding: 6px 0 2px; color: #435149; font-size: 9px; }
.source-row > span { display: flex; align-items: center; gap: 5px; font-size: 10px; }
.source-row small { color: #98a19b; font-size: 8px; }
.source-row strong { text-align: right; font-size: 9px; font-weight: 600; }
.source-row b { color: #7a867e; text-align: right; font-size: 8px; font-weight: 500; }
.source-dot { display: inline-block; width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; }
.dot-paid { background: #d9a13a; }.dot-organic { background: #6d9d4d; }.dot-email { background: #19978d; }.dot-social { background: #438dca; }.dot-referral { background: #7d929d; }.dot-creators { background: #df5b7d; }
.source-note { margin: 10px 0 0; padding-top: 8px; color: #808b83; border-top: 1px dashed #e6eae4; font-size: 9px; line-height: 1.5; }
.source-note strong { color: #52635a; }
.running-list { margin-top: 9px; }
.running-row { display: grid; grid-template-columns: 26px minmax(120px, 1.25fr) minmax(88px, .9fr) 37px 60px 36px; align-items: center; gap: 8px; min-height: 49px; border-top: 1px solid #f0f2ef; }
.campaign-symbol { display: grid; width: 23px; height: 23px; place-items: center; border: 1px solid #e3e7e1; border-radius: 8px; }
.campaign-symbol [data-icon] { width: 12px; height: 12px; }
.symbol-yellow { color: #87913a; background: #f5f3df; }.symbol-teal { color: #37867e; background: #e3f2ef; }.symbol-sage { color: #668f52; background: #e9f0e2; }.symbol-blue { color: #4b7ca4; background: #e6eff5; }
.running-info, .running-revenue { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.running-info strong { overflow: hidden; color: #3b4941; font-size: 9px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.running-info small, .running-revenue small { color: #939d96; font-size: 8px; }
.spend-info { min-width: 0; color: #738078; font-size: 8px; }
.spend-info > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spend-track { height: 6px; margin-top: 5px; overflow: hidden; border-radius: 3px; }
.return-number { color: #47574d; text-align: right; font-size: 10px; font-weight: 650; }
.running-revenue { align-items: flex-end; color: #435248; font-size: 9px; font-weight: 600; }
.switch { position: relative; display: inline-flex; width: 34px; height: 20px; flex: 0 0 34px; align-items: center; justify-self: end; padding: 0; border: 1px solid #cbd3cc; border-radius: 999px; background: #dfe4df; cursor: pointer; transition: background-color .16s, border-color .16s; }
.switch::after { position: absolute; inset-block-start: 2px; inset-inline-start: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.16); content: ""; transition: transform .16s ease; }
.switch.is-on { background: #fff; border-color: var(--orange); }
.switch.is-on::after { background: var(--orange); transform: translateX(14px); }
.switch:focus-visible { outline: 2px solid color-mix(in srgb, var(--orange) 65%, white); outline-offset: 2px; }
:dir(rtl) .switch.is-on::after { transform: translateX(-14px); }
.funnel-filter { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.filter-chip { display: inline-flex; min-height: 25px; align-items: center; gap: 5px; padding: 0 8px; color: #647169; background: #fff; border: 1px solid #e6eae4; border-radius: 20px; font-size: 9px; white-space: nowrap; }
.filter-chip:hover { background: #f8f9f7; }
.filter-chip.is-current { color: #fff; background: #192b23; border-color: #192b23; }
.filter-chip [data-icon] { width: 11px; height: 11px; }
.funnel-chart { height: 158px; margin-top: 10px; }
.lead-preview-list { display: flex; flex-direction: column; margin-top: 8px; }
.lead-preview-list > div { display: grid; grid-template-columns: 25px minmax(0,1fr) 55px 25px; align-items: center; gap: 7px; min-height: 45px; border-top: 1px solid #f0f2ef; }
.lead-preview-list > div > span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.lead-preview-list strong { overflow: hidden; color: #445149; font-size: 9px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.lead-preview-list small { overflow: hidden; color: #919b94; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.lead-preview-list b { color: #46534b; text-align: right; font-size: 9px; font-weight: 600; }
.lead-preview-list i { display: grid; width: 21px; height: 21px; place-items: center; border: 2px solid #559270; border-radius: 50%; color: #41564a; font-size: 8px; font-style: normal; font-weight: 600; }
.budget-gauge { display: flex; flex-direction: column; align-items: center; margin-top: 8px; }
.budget-chart { position: relative; width: min(154px, 100%); height: 132px; }
.budget-chart-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-top: 1px; pointer-events: none; }
.budget-chart-center strong { color: #28372f; font-size: 18px; letter-spacing: -.5px; }
.budget-chart-center span { margin-top: 2px; color: #829087; font-size: 9px; }
.budget-alert { display: grid; grid-template-columns: 1fr auto; row-gap: 6px; margin-top: 11px; padding-top: 9px; border-top: 1px solid #eef0ed; font-size: 9px; }
.budget-status { display: flex; align-items: center; gap: 6px; color: #738078; }.budget-status i { width: 6px; height: 6px; border-radius: 50%; background: #438dc4; }.budget-status:nth-of-type(2) i { background: #dfa23c; }.budget-status:nth-of-type(3) i { background: #dc5a7a; }
.budget-alert strong { color: #4c7756; text-align: right; font-size: 8px; font-weight: 600; }.budget-alert .alert-text { color: #bd6e47; }
.small-icon-button { width: 27px; height: 27px; border: 0; }
.small-icon-button [data-icon] { width: 14px; height: 14px; }
.activity-list { margin-top: 8px; }
.activity-list > div { display: flex; gap: 8px; padding: 9px 0; border-top: 1px solid #f0f2ef; }
.activity-list p { min-width: 0; margin: 0; color: #87928a; font-size: 9px; line-height: 1.45; }
.activity-list p strong, .activity-list p b { color: #4a584f; font-weight: 600; }
.activity-list p b { display: block; }
.activity-list p small { display: block; margin-top: 3px; color: #a0a9a2; font-size: 8px; }

.page-tabs { display: flex; gap: 22px; margin: 5px 0 14px; border-bottom: 1px solid #dfe4de; }
.page-tab { position: relative; display: inline-flex; min-height: 34px; align-items: center; gap: 6px; padding: 0 2px; color: #77827a; background: transparent; border: 0; font-size: 10px; }
.page-tab.is-current { color: #26342c; font-weight: 650; }
.page-tab.is-current::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; border-radius: 2px 2px 0 0; background: var(--orange); content: ""; }
.page-tab > span { display: inline-grid; min-width: 16px; height: 16px; place-items: center; padding: 0 4px; color: #b54d2e; background: #fcece6; border-radius: 20px; font-size: 9px; }
.page-tab .tab-count { color: #65756a; background: #e5eae5; }
.stats-grid-compact .stat-card { min-height: 95px; }
.stats-grid-compact .stat-value { margin-top: 7px; font-size: 21px; }
.stats-grid-compact .stat-foot { margin-top: 5px; }
.data-surface { overflow: hidden; }
.table-toolbar { display: flex; min-height: 60px; align-items: center; gap: 10px; padding: 11px 13px; border-bottom: 1px solid #edf0eb; }
.table-search { display: flex; width: min(250px, 28vw); min-width: 165px; height: 34px; align-items: center; gap: 7px; padding: 0 9px; color: #8c9790; border: 1px solid #e5e9e3; border-radius: 8px; background: var(--surface); }
.table-search [data-icon] { width: 14px; height: 14px; }
.table-search input { width: 100%; min-width: 0; padding: 0; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: 10px; }
.table-search input::placeholder { color: #97a099; }
.filter-chips { display: flex; align-items: center; gap: 5px; overflow-x: auto; scrollbar-width: none; }
.filter-chips::-webkit-scrollbar { display: none; }
.filter-chip span { color: inherit; opacity: .7; }
.compact-select { width: 130px; min-width: 115px; height: 32px; padding: 0 25px 0 9px; color: #58665d; border: 1px solid #e6eae4; border-radius: 8px; background-color: var(--surface); font-size: 10px; }
.table-toolbar > .compact-select { margin-inline-start: auto; }
.table-toolbar-stacked { flex-wrap: wrap; }
.table-toolbar-stacked .table-search { width: 225px; }
.table-toolbar-end { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.data-table { width: 100%; margin: 0; border-collapse: separate; border-spacing: 0; color: #435148; font-size: 10px; }
.data-table thead th { height: 35px; padding: 0 11px; color: #78847b; background: #f7f8f6; border-bottom: 1px solid #edf0eb; font-size: 9px; font-weight: 600; text-align: left; white-space: nowrap; }
.data-table thead th:first-child { padding-left: 15px; border-top-left-radius: 7px; }
.data-table thead th:last-child { border-top-right-radius: 7px; }
.data-table tbody td { height: 48px; padding: 6px 11px; border-bottom: 1px dashed #e8ece7; vertical-align: middle; white-space: nowrap; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fbfcfa; }
.data-table td:first-child { padding-left: 15px; }
.data-table .cell-primary { display: flex; min-width: 150px; align-items: center; gap: 8px; }
.cell-copy { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.cell-copy strong { overflow: hidden; color: #35443b; font-size: 10px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.cell-copy small { color: #929c95; font-size: 9px; }
.campaign-icon-cell { display: grid; width: 26px; height: 26px; flex: 0 0 auto; place-items: center; color: #718b79; background: #eaf0e9; border-radius: 8px; }
.campaign-icon-cell [data-icon] { width: 13px; height: 13px; }
.status-badge { display: inline-flex; min-height: 18px; align-items: center; gap: 5px; padding: 0 7px; border-radius: 5px; font-size: 9px; font-weight: 550; }
.status-badge::before { width: 5px; height: 5px; border-radius: 50%; background: currentColor; content: ""; opacity: .7; }
.badge-paid, .badge-qualified, .badge-live { color: #397551; background: #e5f1e7; }
.badge-pending, .badge-proposal, .badge-scheduled { color: #9c7228; background: #f8f0d9; }
.badge-overdue, .badge-lost { color: #ac4d43; background: #fae9e5; }
.badge-new, .badge-contacted { color: #4c7592; background: #e7f0f6; }
.badge-draft, .badge-ended, .badge-neutral { color: #63726a; background: #ebefec; }
.badge-won { color: #397551; background: #e5f1e7; }
.table-channel { display: inline-flex; align-items: center; gap: 6px; color: #5c6961; }
.value-cell strong { display: block; color: #3d4c43; font-size: 10px; font-weight: 600; }
.value-cell small { display: block; margin-top: 2px; color: #9aa39d; font-size: 8px; }
.score-ring { display: inline-grid; width: 23px; height: 23px; place-items: center; border: 2px solid #5b9c76; border-radius: 50%; color: #42584a; font-size: 9px; }
.score-ring.score-mid { border-color: #e3a342; }.score-ring.score-low { border-color: #899991; }
.owner-avatar { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; color: #405047; font-size: 8px; font-weight: 650; }
.owner-avatar.owner-green { background: #d7e8b9; }.owner-avatar.owner-peach { background: #f4c9ae; }.owner-avatar.owner-blue { background: #bee5e1; }
.last-touch { color: #77847c; font-size: 9px; }.last-touch.is-late { color: #bf5144; }
.row-action { display: inline-flex; height: 23px; align-items: center; gap: 4px; padding: 0 7px; color: #c34f31; background: #fff0e9; border: 0; border-radius: 6px; font-size: 9px; }
.row-action [data-icon] { width: 10px; height: 10px; }
.row-more { width: 25px; height: 26px; padding: 0; color: #89958d; background: transparent; border: 0; }
.row-more [data-icon] { width: 14px; height: 14px; }
.row-actions { display: flex; align-items: center; gap: 2px; }
.row-more:hover { color: #405349; background: #f0f3ef; border-radius: 6px; }
.row-delete:hover { color: #bb4f43; background: #fbece8; }
.table-footer { display: flex; min-height: 48px; align-items: center; justify-content: space-between; padding: 0 14px; color: #87928a; border-top: 1px solid #edf0eb; font-size: 9px; }
.pagination { display: flex; align-items: center; gap: 3px; }
.pagination button { display: grid; min-width: 25px; height: 25px; place-items: center; padding: 0 6px; color: #6f7a73; background: transparent; border: 0; border-radius: 6px; font-size: 10px; }
.pagination button.is-current { color: #fff; background: #1c3228; }
.pagination button:disabled { color: #c1c8c2; }
.customer-type { color: #65736b; font-size: 9px; }
.customer-activity { color: #7f8a82; font-size: 9px; }

.report-chart-card { min-height: 330px; }
.chart-wrap-large { height: 245px; margin-top: 18px; }
.report-insights { min-height: 330px; }
.report-rank { display: grid; grid-template-columns: 24px minmax(0,1fr) auto; align-items: center; gap: 9px; min-height: 58px; border-bottom: 1px solid #eff1ed; }
.report-rank > span { color: #a3aca5; font-size: 10px; }
.report-rank > div { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.report-rank strong { overflow: hidden; color: #435148; font-size: 10px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.report-rank small { color: #929c95; font-size: 9px; }
.report-rank b { color: #425047; font-size: 10px; font-weight: 600; }
.report-table { padding: 15px; }
.report-table .table-responsive { margin-top: 12px; }
.report-table .data-table tbody td { height: 42px; }
.report-table .source-dot { margin-inline-end: 7px; }
.text-success { color: #43815a !important; }.text-danger { color: #ba554a !important; }

.crud-summary { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 11px; padding: 15px 16px; background: #e9eee8; border: 1px solid #e0e7e0; border-radius: 12px; }
.crud-summary-copy { display: flex; align-items: center; gap: 10px; }
.crud-summary-copy .stat-icon { width: 34px; height: 34px; }
.crud-summary-copy > div { display: flex; flex-direction: column; gap: 4px; }
.crud-summary-copy strong { color: #34443a; font-size: 12px; }.crud-summary-copy small { color: #7e8981; font-size: 9px; }
.crud-total { color: #7b877e; font-size: 10px; }.crud-total strong { color: #334139; font-size: 15px; }

.form-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(250px, .72fr); align-items: start; gap: 13px; }
.form-card, .form-aside, .settings-card { padding: 19px; }
.form-card .card-heading { margin-bottom: 22px; }
.step-label { padding: 5px 7px; color: #8a948d; background: #f3f5f2; border-radius: 5px; font-size: 8px; font-weight: 700; letter-spacing: .6px; }
.form-section-label { margin-bottom: 12px; color: #8b968e; font-size: 9px; font-weight: 700; letter-spacing: .8px; }
.form-grid, .settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 13px; }
.form-field { display: flex; min-width: 0; flex-direction: column; gap: 6px; }
.form-field-wide { grid-column: 1 / -1; }
.form-field label, .form-field > span { color: #4e5c53; font-size: 10px; font-weight: 600; }
.form-field label > span { color: #cc5836; }
.form-control, .form-select { min-height: 38px; padding: 0 10px; color: #344239; background-color: var(--surface); border: 1px solid #dfe5de; border-radius: 8px; box-shadow: none; font-size: 11px; }
.form-control:focus, .form-select:focus { color: #344239; border-color: #82a38e; box-shadow: 0 0 0 3px rgba(67,132,91,.12); outline: 0; }
.form-control::placeholder { color: #a2aaa4; }
textarea.form-control { min-height: 82px; padding-top: 9px; resize: vertical; }
.form-field small { color: #929c95; font-size: 9px; line-height: 1.45; }
.input-with-prefix { position: relative; }
.input-with-prefix > span { position: absolute; top: 11px; left: 11px; color: #7b867e; font-size: 11px; }
.input-with-prefix .form-control { padding-left: 25px; }
.form-divider { height: 1px; margin: 19px 0; border-top: 1px dashed #e0e5df; }
.check-row { display: flex; align-items: center; gap: 9px; }
.form-check-input { width: 15px; height: 15px; flex: 0 0 auto; margin: 0; accent-color: var(--orange); border: 1px solid #cbd4cc; }
.check-row > span { display: flex; flex-direction: column; gap: 3px; }
.check-row strong { color: #46544b; font-size: 10px; font-weight: 550; }
.check-row small { color: #909a93; font-size: 9px; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; padding-top: 14px; border-top: 1px solid #edf0eb; }
.form-aside { position: sticky; top: 88px; background: #19372c; color: #edf4ee; }
.form-aside-icon { display: grid; width: 35px; height: 35px; place-items: center; margin-bottom: 20px; color: #e4a178; background: rgba(255,255,255,.08); border-radius: 10px; }
.form-aside-icon [data-icon] { width: 17px; height: 17px; }
.form-aside .eyebrow { color: #9fb6a8; }
.form-aside h2 { margin: 8px 0; color: #fff; font-family: "Bricolage Grotesque", sans-serif; font-size: 22px; font-weight: 400; }
.form-aside > p { margin: 0; color: #c1d0c6; font-size: 11px; line-height: 1.7; }
.aside-tip { display: flex; gap: 8px; margin-top: 15px; color: #c7d4cb; font-size: 10px; line-height: 1.55; }
.aside-tip [data-icon] { width: 13px; height: 13px; color: #e9a378; }

.component-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.component-card { min-height: 160px; padding: 16px; }
.component-card-wide { grid-column: 1 / -1; }
.component-demo { display: flex; min-height: 63px; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 12px; padding: 10px 0; }
.component-caption { padding-top: 10px; color: #8a958d; border-top: 1px solid #eef1ed; font-size: 9px; }
.action-dropdown { position: relative; }
.action-dropdown summary { list-style: none; cursor: pointer; }.action-dropdown summary::-webkit-details-marker { display: none; }
.action-dropdown summary [data-icon] { width: 12px; height: 12px; }
.dropdown-menu-custom { position: absolute; z-index: 5; top: calc(100% + 6px); left: 0; min-width: 150px; padding: 5px; background: var(--surface); border: 1px solid #e7ebe5; border-radius: 9px; box-shadow: 0 10px 24px rgba(28,43,33,.12); }
.dropdown-menu-custom button { display: block; width: 100%; padding: 8px; color: #526057; text-align: left; background: transparent; border: 0; border-radius: 5px; font-size: 10px; }.dropdown-menu-custom button:hover { background: var(--surface-muted); }.dropdown-menu-custom button.danger-action { color: #ba5145; }.dropdown-menu-custom hr { margin: 4px 0; border-color: #e9ede8; opacity: 1; }
.component-demo-controls { align-items: flex-end; }.component-demo-controls .form-field { width: min(270px, 100%); }.compact-check { padding: 0 0 10px 5px; }
.alert-soft { display: flex; align-items: center; gap: 10px; margin: 10px 0; padding: 11px 12px; color: #3e6e4c; background: #eef7ef; border: 1px solid #dceee0; border-radius: 8px; }
.alert-icon { width: 16px; height: 16px; }.alert-soft > div { display: flex; flex: 1; flex-direction: column; gap: 3px; }.alert-soft strong { font-size: 10px; }.alert-soft span { color: #6e8a75; font-size: 9px; }.alert-soft > button { display: grid; width: 25px; height: 25px; place-items: center; color: #75847a; background: transparent; border: 0; }.alert-soft > button [data-icon] { width: 13px; height: 13px; }
.alert-soft-warn { color: #a3682f; background: #fbf5e9; border-color: #f1e5c9; }.alert-soft-warn span { color: #9d825e; }
.switch-demo { justify-content: space-between; }.switch-demo > span { display: flex; flex-direction: column; gap: 4px; }.switch-demo strong { color: #47554d; font-size: 10px; }.switch-demo small { color: #929b95; font-size: 9px; }

.settings-tabs { gap: 25px; }
.settings-card .card-heading { margin-bottom: 18px; }
.settings-grid { gap: 15px 12px; }
.settings-goals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.settings-footer { display: flex; min-height: 48px; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 19px; }
.save-state { color: #43815a; font-size: 10px; }
.reset-card { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 12px; padding: 14px 17px; }
.reset-card strong { color: #bf443b; font-size: 11px; }.reset-card p { margin: 4px 0 0; color: #87928a; font-size: 9px; line-height: 1.5; }

.record-dialog { width: min(420px, calc(100vw - 28px)); max-width: none; padding: 22px; color: var(--ink); background: var(--surface); border: 1px solid #e6eae4; border-radius: 15px; box-shadow: 0 24px 80px rgba(16,35,25,.22); }
.record-dialog::backdrop { background: rgba(16,31,24,.4); backdrop-filter: blur(3px); }
.dialog-close-form { display: flex; justify-content: flex-end; margin: -9px -9px 6px; }
.dialog-close-form .icon-button { width: 29px; height: 29px; border: 0; }
.dialog-close-form .icon-button [data-icon] { width: 14px; height: 14px; }
.dialog-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 19px; }
.dialog-mark { display: grid; width: 35px; height: 35px; place-items: center; color: var(--orange); background: var(--orange-wash); border-radius: 10px; }
.dialog-mark [data-icon] { width: 17px; height: 17px; }
.dialog-heading h2 { margin: 0; color: #26342c; font-size: 16px; font-weight: 650; }.dialog-heading p { margin: 4px 0 0; color: #88928b; font-size: 10px; }
.record-dialog #record-form { display: flex; flex-direction: column; gap: 13px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 7px; margin-top: 7px; padding-top: 13px; border-top: 1px solid #edf0eb; }
.toast-region { position: fixed; z-index: 50; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.toast-message { display: flex; min-width: 235px; align-items: center; gap: 9px; padding: 12px 14px; color: #eaf4ec; background: #19372c; border-radius: 10px; box-shadow: 0 12px 32px rgba(18,42,30,.2); font-size: 11px; animation: appear .2s ease-out; }
.toast-message [data-icon] { width: 15px; height: 15px; color: #88c99d; }
.toast-message.is-error [data-icon] { color: #ed9b82; }
.sidebar-backdrop { display: none; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

html[data-theme="dark"] {
  color-scheme: dark;
  --page: #18221d;
  --surface: #202c25;
  --surface-muted: #26342c;
  --ink: #e5ece6;
  --ink-soft: #a9b7ad;
  --ink-faint: #87958a;
  --line: #344239;
  --forest: #0c211a;
  --shadow: 0 2px 8px rgba(0,0,0,.12), 0 12px 30px rgba(0,0,0,.08);
}
html[data-theme="dark"] .topbar { background: color-mix(in srgb, var(--page) 93%, transparent); }
html[data-theme="dark"] h1, html[data-theme="dark"] .stat-value, html[data-theme="dark"] .card-heading h2, html[data-theme="dark"] .page-tab.is-current { color: #e6ede7; }
html[data-theme="dark"] .breadcrumb-current, html[data-theme="dark"] .stat-label, html[data-theme="dark"] .page-subtitle, html[data-theme="dark"] .card-heading p { color: #a7b5aa; }
html[data-theme="dark"] .topbar-date, html[data-theme="dark"] .global-search, html[data-theme="dark"] .icon-button, html[data-theme="dark"] .button-secondary, html[data-theme="dark"] .table-search, html[data-theme="dark"] .compact-select, html[data-theme="dark"] .form-control, html[data-theme="dark"] .form-select { color: #d7e1d9; background-color: #25322a; border-color: #3a493e; }
html[data-theme="dark"] .global-search input, html[data-theme="dark"] .form-control:focus, html[data-theme="dark"] .form-select:focus { color: #e6ede7; }
html[data-theme="dark"] .performance-summary, html[data-theme="dark"] .segmented-control, html[data-theme="dark"] .channel-tabs, html[data-theme="dark"] .filter-chip { color: #bbc8be; background-color: #29372e; border-color: #3a493e; }
html[data-theme="dark"] .segment-button.is-current, html[data-theme="dark"] .channel-tab.is-current { color: #e5ece6; background: #34443a; }
html[data-theme="dark"] .data-table thead th { color: #aebbb1; background: #29372e; border-color: #38463c; }
html[data-theme="dark"] .data-table tbody td, html[data-theme="dark"] .report-rank, html[data-theme="dark"] .running-row, html[data-theme="dark"] .activity-list > div, html[data-theme="dark"] .lead-preview-list > div { color: #c0ccc3; border-color: #344239; }
html[data-theme="dark"] .data-table tbody tr:hover, html[data-theme="dark"] .data-table tbody tr:hover > * { --bs-table-bg-state: #2b3a31; --bs-table-color-state: #e6ede7; color: #e6ede7; background-color: #2b3a31; }
html[data-theme="dark"] .cell-copy strong, html[data-theme="dark"] .value-cell strong, html[data-theme="dark"] .report-rank strong, html[data-theme="dark"] .running-info strong, html[data-theme="dark"] .lead-preview-list strong, html[data-theme="dark"] .summary-metric strong, html[data-theme="dark"] .budget-chart-center strong, html[data-theme="dark"] .running-revenue, html[data-theme="dark"] .lead-preview-list b { color: #dce5dd; }
html[data-theme="dark"] .table-footer, html[data-theme="dark"] .table-toolbar, html[data-theme="dark"] .report-table .table-responsive { border-color: #344239; }
html[data-theme="dark"] .crud-summary { background: #26352c; border-color: #36483b; }
html[data-theme="dark"] .crud-summary-copy strong, html[data-theme="dark"] .crud-total strong { color: #dce5dd; }
html[data-theme="dark"] .form-divider, html[data-theme="dark"] .form-actions, html[data-theme="dark"] .settings-footer, html[data-theme="dark"] .component-caption { border-color: #39473d; }
html[data-theme="dark"] .form-field label, html[data-theme="dark"] .form-field > span, html[data-theme="dark"] .check-row strong, html[data-theme="dark"] .dialog-heading h2, html[data-theme="dark"] .component-demo-controls .form-field > span, html[data-theme="dark"] .switch-demo strong { color: #d1ddd4; }
html[data-theme="dark"] .dropdown-menu-custom { background: #26342c; border-color: #3a493e; }
html[data-theme="dark"] .dropdown-menu-custom button { color: #d1ddd4; }
html[data-theme="dark"] .dropdown-menu-custom button:hover { background: #34443a; }
html[data-theme="dark"] .switch { background: #34443a; border-color: #4b5c50; }
html[data-theme="dark"] .switch::after { background: #aebbb1; }
html[data-theme="dark"] .switch.is-on { background: #26342c; border-color: var(--orange); }
html[data-theme="dark"] .switch.is-on::after { background: var(--orange); }
html[data-theme="dark"] .reset-card p, html[data-theme="dark"] .stat-foot, html[data-theme="dark"] .summary-label { color: #a0ada3; }
html[data-theme="dark"] .page-tabs { border-color: #38463c; }
html[data-theme="dark"] .page-tab { color: #a5b2a8; }
html[data-theme="dark"] .source-note, html[data-theme="dark"] .budget-alert { border-color: #38463c; }
html[data-theme="dark"] .budget-chart-center strong { color: #dce5dd; }
html[data-theme="dark"] .budget-chart-center span { color: #a0ada3; }

@media (min-width: 1500px) {
  :root { --sidebar-width: 268px; }
  .page-content { padding-right: 38px; padding-left: 38px; }
  .topbar { padding-right: 38px; padding-left: 38px; }
}
@media (max-width: 1180px) {
  :root { --sidebar-width: 220px; }
  .sidebar { width: calc(var(--sidebar-width) - 12px); }
  .page-content { padding-right: 22px; padding-left: 22px; }
  .topbar { padding-right: 22px; padding-left: 22px; }
  .dashboard-grid-main { grid-template-columns: minmax(0, 1.5fr) minmax(270px, .9fr); }
  .dashboard-grid-bottom { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .activity-card { grid-column: 1 / -1; }
  .activity-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); column-gap: 16px; }
  .source-row { grid-template-columns: minmax(75px, 1fr) 48px 56px 23px; }
  .running-row { grid-template-columns: 24px minmax(105px, 1.2fr) minmax(70px, .8fr) 32px 55px 36px; gap: 6px; }
}
@media (max-width: 991.98px) {
  :root { --sidebar-width: 0px; }
  .sidebar { z-index: 1210; inset: 10px auto 10px 10px; width: 250px; transform: translateX(calc(-100% - 20px)); transition: transform .22s ease; }
  body.sidebar-open .sidebar { transform: translateX(0); }
  .sidebar-backdrop { position: fixed; z-index: 1200; inset: 0; background: rgba(11,26,19,.38); }
  body.sidebar-open .sidebar-backdrop { display: block; }
  .sidebar-close { display: inline-grid; margin-inline-start: auto; color: #d9e6dd; border-color: rgba(255,255,255,.13); }
  .main-shell { margin-left: 0; }
  .topbar { height: 62px; }
  .menu-toggle { display: inline-grid; }
  .breadcrumb-line { display: none !important; }
  .topbar-actions { margin-inline-start: auto; }
  .dashboard-grid-main { grid-template-columns: minmax(0, 1.45fr) minmax(260px, .9fr); }
}
@media (max-width: 720px) {
  .topbar { gap: 10px; padding: 0 16px; }
  .topbar-actions { gap: 6px; }
  .global-search { width: min(35vw, 225px); min-width: 38px; padding: 0 9px; }
  .global-search input, .global-search kbd, .topbar-date { display: none; }
  .global-search { justify-content: center; }
  .theme-toggle, .notification-button { width: 34px; height: 34px; }
  .top-create { min-width: 38px; padding: 0 10px; }
  .top-create > span:last-child { display: none; }
  .page-content { padding: 14px 16px 30px; }
  .page-heading { min-height: auto; align-items: flex-start; flex-direction: column; gap: 13px; margin-bottom: 16px; }
  .heading-actions { width: 100%; }
  .heading-actions .button { flex: 1; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .stat-card { min-height: 103px; padding: 11px; }
  .stat-value { font-size: 21px; }
  .stat-period { display: none; }
  .dashboard-grid-main, .dashboard-grid-middle { grid-template-columns: minmax(0, 1fr); }
  .dashboard-grid-bottom { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .activity-card { grid-column: 1 / -1; }
  .source-card { min-height: 365px; }
  .running-row { grid-template-columns: 25px minmax(0,1fr) minmax(85px,.8fr) 35px 53px 36px; }
  .table-toolbar { align-items: stretch; flex-wrap: wrap; }
  .table-search { width: 100%; }
  .filter-chips { width: 100%; padding-bottom: 2px; }
  .table-toolbar > .compact-select { margin-inline-start: 0; }
  .table-toolbar-end { margin-inline-start: 0; }
  .table-toolbar-stacked .table-search { width: 100%; }
  .data-table { min-width: 740px; }
  .data-table thead th, .data-table tbody td { padding-right: 9px; padding-left: 9px; }
  .form-layout { grid-template-columns: minmax(0, 1fr); }
  .form-aside { position: static; }
  .form-aside-icon { margin-bottom: 12px; }
  .form-aside h2 { font-size: 19px; }
  .settings-goals { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .settings-tabs { gap: 18px; overflow-x: auto; scrollbar-width: none; }
  .settings-tabs::-webkit-scrollbar { display: none; }
  .page-tabs { gap: 17px; }
  .page-tab { flex: 0 0 auto; }
}
@media (max-width: 480px) {
  .topbar { height: 58px; padding: 0 12px; }
  .topbar-date { display: none; }
  .breadcrumb-line { font-size: 11px; }
  .topbar-actions { gap: 5px; }
  .global-search { width: 34px; height: 34px; }
  .global-search [data-icon] { width: 14px; height: 14px; }
  .page-content { padding: 12px 12px 26px; }
  .eyebrow { margin-bottom: 5px; }
  h1 { font-size: 28px; }
  .page-subtitle { max-width: 340px; font-size: 12px; }
  .heading-actions .button { min-height: 36px; padding: 0 8px; font-size: 11px; }
  .stats-grid-compact .stat-card { min-height: 90px; }
  .stat-label { font-size: 11px; }
  .dashboard-grid-bottom { grid-template-columns: minmax(0,1fr); }
  .activity-card { grid-column: auto; }
  .activity-list { display: block; }
  .performance-card, .source-card, .running-card, .funnel-card, .lead-preview-card, .budget-card, .activity-card, .report-insights { padding: 12px; }
  .performance-card .card-heading { align-items: flex-start; flex-direction: column; }
  .performance-summary { grid-template-columns: repeat(2, 1fr); row-gap: 9px; }
  .summary-metric:nth-child(2) { border-right: 0; }
  .summary-metric:nth-child(3), .summary-metric:nth-child(4) { padding-top: 7px; border-top: 1px solid #e9ece7; }
  .chart-wrap { height: 143px; }
  .running-row { grid-template-columns: 25px minmax(0,1fr) 33px 36px; gap: 7px; padding: 7px 0; }
  .running-row .spend-info, .running-row .running-revenue { display: none; }
  .running-info strong { font-size: 10px; }
  .running-card .card-heading { align-items: flex-start; }
  .table-footer { padding: 0 10px; }
  .table-footer > span { max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .form-card, .form-aside, .settings-card { padding: 14px; }
  .form-grid, .settings-grid { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .form-field-wide { grid-column: auto; }
  .settings-goals { grid-template-columns: minmax(0, 1fr); }
  .component-grid { grid-template-columns: minmax(0, 1fr); }
  .component-card-wide { grid-column: auto; }
  .component-card { min-height: 145px; }
  .reset-card { align-items: flex-start; flex-direction: column; padding: 13px; }
  .reset-card .button { align-self: flex-end; }
  .settings-tabs { gap: 16px; }
  .settings-tabs .page-tab { font-size: 10px; }
  .crud-summary { padding: 12px; }
}
.notification-button > [data-icon] { position: static; display: inline-flex; width: 16px; height: 16px; margin: 0; border: 0; background: transparent; transform: none; }
.row-actions { min-width: 64px; }
.row-actions .row-action { min-height: 28px; height: 28px; padding: 0 7px; }
.row-actions .row-more { width: 28px; height: 28px; }
.row-action [data-icon] { width: 12px; height: 12px; }
.data-table th .visually-hidden { position: fixed !important; inset: 0 auto auto 0; }

body { font-size: 15px; }
.side-link { font-size: 13px; }
.sub-link { font-size: 11px; }
.revenue-top, .revenue-card small, .profile-copy small { font-size: 11px; }
.profile-copy strong, .breadcrumb-line { font-size: 12px; }
.global-search input, .topbar-date { font-size: 11px; }
.button { font-size: 12px; }
.eyebrow { font-size: 10px; }
.page-subtitle { font-size: 13px; }
.card-heading h2 { font-size: 14px; }
.card-heading p { font-size: 11px; }
.stat-label { font-size: 12px; }
.stat-foot { font-size: 11px; }
.summary-label, .source-row small { font-size: 10px; }
.chart-legend { font-size: 10px; }
.text-action { font-size: 10px; }
.source-row { font-size: 10px; }
.source-row > span { font-size: 11px; }
.source-row strong, .running-info strong, .running-revenue, .lead-preview-list strong, .lead-preview-list b { font-size: 10px; }
.source-row small, .source-row b, .running-info small, .running-revenue small, .lead-preview-list small { font-size: 9px; }
.activity-list p { font-size: 10px; }
.activity-list p small { font-size: 9px; }
.page-tab { font-size: 11px; }
.filter-chip { font-size: 10px; }
.table-search input, .compact-select { font-size: 12px; }
.filter-chip { font-size: 11px; }
.data-table { font-size: 12px; }
.data-table thead th { font-size: 11px; }
.data-table tbody td { height: 52px; }
.data-table tbody td small { font-size: 11px; }
.data-table .form-control, .data-table .form-select { font-size: 13px; }
.data-table .status-pill { font-size: 11px; }
.cell-copy strong { font-size: 12px; }
.cell-copy small { font-size: 11px; }
.status-badge { min-height: 20px; font-size: 11px; }
.value-cell strong { font-size: 12px; }
.value-cell small, .score-ring, .owner-avatar, .last-touch, .customer-type, .customer-activity { font-size: 11px; }
.row-action { font-size: 11px; }
.table-footer { font-size: 11px; }
.pagination button { font-size: 12px; }
.report-rank strong, .report-rank b { font-size: 11px; }
.report-rank small { font-size: 10px; }
.crud-summary-copy strong { font-size: 13px; }
.crud-summary-copy small, .crud-total { font-size: 10px; }
.form-field label, .form-field > span, .check-row strong { font-size: 11px; }
.form-control, .form-select { font-size: 12px; }
.form-field small, .check-row small, .component-caption { font-size: 10px; }
.form-section-label, .step-label { font-size: 10px; }
.form-aside > p { font-size: 12px; }
.aside-tip { font-size: 11px; }
.component-demo-controls .form-field > span, .switch-demo strong { font-size: 11px; }
.switch-demo small { font-size: 10px; }
.reset-card strong { font-size: 12px; }
.reset-card p { font-size: 10px; }
.dialog-heading h2 { font-size: 17px; }
.dialog-heading p { font-size: 11px; }
.toast-message { font-size: 12px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
