:root {
  color-scheme: light;
  --ink: #202a31;
  --ink-soft: #657278;
  --ink-faint: #96a0a3;
  --surface: #fff;
  --canvas: #f7f8fa;
  --line: #e9edef;
  --line-strong: #dde4e6;
  --teal: #145f57;
  --teal-dark: #104e48;
  --teal-light: #e8f4f1;
  --mint: #b9e8d8;
  --lime: #d8ed92;
  --rose: #fbebee;
  --red: #c65d6c;
  --amber: #f4d78c;
  --shadow: 0 12px 40px rgba(25, 42, 46, .07);
  --radius: 16px;
  font-family: "DM Sans", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-size: 13px; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; display: flex; width: 245px; padding: 25px 16px 14px; flex-direction: column; background: #fff; border-right: 1px solid #eef0f1; }
.brand { display: inline-flex; align-items: center; gap: 10px; padding: 3px 10px 30px; width: fit-content; }
.brand-mark { width: 29px; height: 29px; display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); gap: 3px; transform: rotate(-8deg); }
.brand-mark span { background: var(--teal); border-radius: 7px 7px 2px 7px; }
.brand-mark span:nth-child(2) { background: #75b5a1; border-radius: 7px 7px 7px 2px; }
.brand-mark span:nth-child(3) { background: #a3d0bd; border-radius: 7px 2px 7px 7px; }
.brand-mark span:nth-child(4) { background: #d1e7c2; border-radius: 2px 7px 7px 7px; }
.brand-name { font-family: "Manrope", sans-serif; font-size: 19px; font-weight: 800; letter-spacing: -.9px; }
.brand-name span { color: var(--teal); font-weight: 600; }
.workspace-label, .eyebrow { color: #9ba5a8; font-size: 9px; font-weight: 700; letter-spacing: 1.2px; }
.workspace-label { padding: 0 12px 11px; }
.primary-nav { display: flex; flex-direction: column; gap: 3px; }
.nav-link { display: flex; height: 40px; align-items: center; gap: 11px; padding: 0 12px; border-radius: 9px; color: #68757a; font-size: 12px; font-weight: 500; transition: background .16s, color .16s; }
.nav-link svg { width: 16px; height: 16px; color: #8e9a9d; }
.nav-link:hover, .nav-link.active { background: #edf5f2; color: var(--teal); }
.nav-link.active { font-weight: 700; }
.nav-link.active svg { color: var(--teal); }
.nav-section-heading { display: flex; justify-content: space-between; align-items: center; margin: 21px 4px 7px 12px; color: #9ba5a8; font-size: 9px; font-weight: 700; letter-spacing: .9px; text-transform: uppercase; }
.icon-button { display: inline-flex; flex: 0 0 auto; width: 36px; height: 36px; align-items: center; justify-content: center; padding: 0; border: 1px solid transparent; border-radius: 10px; background: transparent; color: #728084; cursor: pointer; transition: background .16s, color .16s, border-color .16s; }
.icon-button svg { width: 17px; height: 17px; }
.icon-button:hover { background: #f0f5f3; color: var(--teal); }
.icon-button.tiny { width: 26px; height: 26px; border-radius: 7px; }
.icon-button.tiny svg { width: 14px; height: 14px; }
.model-nav-list { display: grid; gap: 3px; }
.model-nav-entry { display: grid; grid-template-columns: 29px minmax(0,1fr) 26px; align-items: center; gap: 8px; min-height: 41px; padding: 4px 5px 4px 8px; border-radius: 9px; }
.model-nav-entry:hover { background: #f7f8f8; }
.model-nav-entry.active { background: #edf5f2; }
.model-nav-link { min-width: 0; overflow: hidden; color: #556267; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.model-nav-entry.active .model-nav-link { color: var(--teal); }
.model-avatar { display: inline-flex; width: 29px; height: 29px; flex: 0 0 auto; align-items: center; justify-content: center; border-radius: 9px; font-size: 9px; font-weight: 700; }
.model-avatar.large { width: 46px; height: 46px; border-radius: 14px; font-size: 14px; }
.avatar-peach { background: #f9e5d9; color: #a25b42; }
.avatar-lilac { background: #ece7f8; color: #77609e; }
.avatar-mint { background: #e1f0e8; color: #477a63; }
.avatar-blue { background: #e2edf6; color: #527592; }
.model-expand { width: 26px; height: 26px; border: 0; background: transparent; color: #9aa4a6; cursor: pointer; }
.model-expand svg { width: 14px; height: 14px; transition: transform .16s; }
.model-nav-entry.open .model-expand svg { transform: rotate(180deg); }
.traffic-nav-list { display: grid; gap: 2px; margin: 1px 0 5px 22px; padding-left: 15px; border-left: 1px solid #e5ebeb; }
.traffic-nav-link { display: flex; align-items: center; gap: 7px; min-height: 27px; padding: 4px 8px; border-radius: 7px; color: #829094; font-size: 10px; }
.traffic-nav-link::before { width: 4px; height: 4px; border-radius: 50%; background: #c5cfce; content: ""; }
.traffic-nav-link:hover, .traffic-nav-link.active { color: var(--teal); background: #f3f8f6; }
.traffic-nav-link.active::before { background: #4f9a7d; }
.sidebar-bottom { margin-top: auto; }
.plan-card { display: flex; align-items: center; gap: 9px; margin: 12px 2px 13px; padding: 11px; border: 1px solid #e8efeb; border-radius: 12px; background: #f9fbfa; }
.plan-icon { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; background: #edf4d9; color: #71934d; }
.plan-icon svg { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.plan-card strong { display: block; font-size: 10px; font-weight: 700; }
.plan-card p { margin: 3px 0 0; color: #99a3a5; font-size: 9px; }
.live-dot { width: 6px; height: 6px; flex: 0 0 auto; margin-left: auto; border-radius: 50%; background: #75bf92; box-shadow: 0 0 0 3px #e8f5eb; }
.user-card { display: flex; width: 100%; align-items: center; gap: 9px; padding: 9px 6px 3px; border: 0; border-top: 1px solid #eef0f1; background: transparent; text-align: left; cursor: pointer; }
.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #dcece7; color: #326b5e; font-family: "Manrope", sans-serif; font-weight: 800; }
.avatar-small { width: 31px; height: 31px; flex: 0 0 auto; font-size: 10px; }
.user-card-info { display: grid; min-width: 0; gap: 3px; }
.user-card-info strong { overflow: hidden; font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.user-card-info small { color: #9ba5a8; font-size: 9px; }
.user-chevron { width: 14px; height: 14px; margin-left: auto; color: #a9b1b3; }

.main-column { min-height: 100vh; margin-left: 245px; background: var(--teal-light); }
.topbar { position: sticky; z-index: 10; top: 0; display: flex; height: 63px; align-items: center; justify-content: space-between; padding: 0 32px; border-bottom: 1px solid #eef0f1; background: rgba(255,255,255,.91); backdrop-filter: blur(12px); }
.breadcrumbs { display: flex; align-items: center; gap: 10px; color: #a0a9ab; font-size: 10px; }
.breadcrumbs strong { color: #58656a; font-weight: 600; }
.crumb-separator { color: #c9d0d0; }
.topbar-actions { display: flex; align-items: center; gap: 15px; }
.date-picker { position: relative; display: flex; height: 33px; align-items: center; gap: 7px; padding: 0 9px; border: 1px solid #e7ebed; border-radius: 8px; background: #fff; color: #809092; }
.date-picker svg { width: 14px; height: 14px; }
.date-picker select { appearance: none; max-width: 122px; border: 0; outline: 0; background: transparent; color: #59666a; font-size: 10px; cursor: pointer; }
.date-picker .select-arrow { width: 12px; height: 12px; color: #9ca7aa; }
.notification-button { position: relative; width: 30px; height: 32px; }
.notification-button svg { width: 16px; height: 16px; }
.notification-button i { position: absolute; top: 7px; right: 8px; width: 5px; height: 5px; border: 1px solid #fff; border-radius: 50%; background: #e78284; }
.topbar-profile { display: flex; align-items: center; gap: 8px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.topbar-profile-name { color: #526065; font-size: 10px; font-weight: 600; }
.topbar-profile > svg { width: 12px; height: 12px; color: #9ca7aa; }
.mobile-menu { display: none; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 287px; gap: 25px; max-width: 1640px; margin: 0 auto; padding: 28px 32px 44px; }
.page-content { min-width: 0; }
.right-rail { position: sticky; top: 87px; align-self: start; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 23px; }
.heading-copy { min-width: 0; }
.eyebrow { display: block; margin-bottom: 6px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 5px; font-family: "Manrope", sans-serif; font-size: 24px; font-weight: 700; letter-spacing: -.8px; }
.page-description { margin-bottom: 0; color: #8a9699; font-size: 11px; }
.heading-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 0 13px; border: 1px solid transparent; border-radius: 9px; font-size: 10px; font-weight: 700; cursor: pointer; transition: transform .14s, background .14s, border-color .14s; }
.button:hover { transform: translateY(-1px); }
.button svg { width: 14px; height: 14px; }
.button-primary { background: var(--teal); color: white; }
.button-primary:hover { background: var(--teal-dark); }
.button-secondary { border-color: #e4e9ea; background: white; color: #627074; }
.button-secondary:hover { border-color: #b7ccc5; color: var(--teal); }
.button-small { min-height: 29px; padding: 0 10px; border-radius: 7px; font-size: 9px; }
.button-danger { border-color: #f4dcdf; background: #fff7f8; color: #bf6572; }

.stats-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 9px; }
.stat-card { position: relative; min-width: 0; padding: 13px 11px 12px; overflow: hidden; border: 1px solid #edf0f1; border-radius: 13px; background: var(--surface); }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 5px; }
.stat-card-revenue .stat-top { align-items: flex-start; flex-direction: column; gap: 4px; }
.stat-card-revenue .stat-value { margin-top: 8px; }
.stat-label { color: #879396; font-size: 9px; font-weight: 600; }
.revenue-mode-toggle { display: inline-flex; padding: 2px; gap: 2px; border: 1px solid #e8eeeb; border-radius: 7px; background: #f7f9f8; }
.revenue-mode-toggle button { min-height: 21px; padding: 0 6px; border: 0; border-radius: 5px; background: transparent; color: #879396; font: inherit; font-size: 8px; font-weight: 700; cursor: pointer; }
.revenue-mode-toggle button.selected { background: white; color: var(--teal); box-shadow: 0 1px 3px rgba(35,72,58,.12); }
.stat-icon { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 8px; background: #f1f6f3; color: #45866f; }
.stat-icon svg { width: 13px; height: 13px; }
.stat-value { display: block; margin: 12px 0 6px; font-family: "Manrope", sans-serif; font-size: 19px; font-weight: 700; letter-spacing: -.8px; line-height: 1; white-space: nowrap; }
.stat-foot { display: flex; align-items: center; gap: 5px; color: #98a2a5; font-size: 8px; }
.stat-source { color: #4b8c71; font-weight: 600; }
.stat-source.demo { color: #a28b61; }
.stat-card:hover { border-color: #dfe8e5; box-shadow: 0 5px 18px rgba(35,72,58,.04); }
.overview-callout { display: flex; align-items: center; gap: 10px; margin: 21px 0 13px; }
.overview-callout h2 { margin: 0; font-family: "Manrope", sans-serif; font-size: 14px; font-weight: 700; letter-spacing: -.3px; }
.overview-callout p { margin: 3px 0 0; color: #9aa4a6; font-size: 10px; }
.callout-dot { width: 8px; height: 8px; border-radius: 50%; background: #6fb397; box-shadow: 0 0 0 4px #e7f2ed; }
.model-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.model-card { min-width: 0; padding: 15px; border: 1px solid #edf0f1; border-radius: 13px; background: white; transition: transform .16s, box-shadow .16s, border-color .16s; }
.model-card:hover { transform: translateY(-2px); border-color: #dce7e2; box-shadow: var(--shadow); }
.model-card-top { display: flex; align-items: center; gap: 10px; }
.model-card-info { min-width: 0; }
.model-card-info h3 { margin: 0 0 3px; overflow: hidden; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.model-card-info p { margin: 0; color: #9ca5a7; font-size: 9px; }
.model-card-menu { width: 28px; height: 28px; margin-left: auto; border: 0; border-radius: 8px; background: transparent; color: #a2acad; cursor: pointer; }
.model-card-menu:hover { background: #f5f7f6; color: #526b62; }
.model-card-menu svg { width: 15px; height: 15px; }
.model-card-stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 7px; margin: 15px 0 13px; padding: 11px 0; border-top: 1px solid #f0f2f2; border-bottom: 1px solid #f0f2f2; }
.mini-stat-label { display: block; margin-bottom: 5px; color: #a0a9ab; font-size: 8px; }
.mini-stat-value { display: block; overflow: hidden; font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.model-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.channel-pills { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.channel-pill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 7px; border-radius: 6px; background: #f5f7f7; color: #758285; font-size: 8px; }
.channel-pill .channel-color { width: 5px; height: 5px; border-radius: 50%; background: #4c98bf; }
.channel-pill.instagram .channel-color { background: #cd7794; }
.channel-pill.telegram .channel-color { background: #73afc9; }
.channel-pill.reddit .channel-color { background: #df815f; }
.text-link { display: inline-flex; align-items: center; gap: 4px; border: 0; background: transparent; color: var(--teal); font-size: 9px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.text-link svg { width: 12px; height: 12px; }

.rail-section { margin-bottom: 17px; padding: 16px; border: 1px solid #edf0f1; border-radius: 13px; background: white; }
.rail-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.rail-heading .eyebrow { margin-bottom: 4px; }
.rail-heading h2 { margin: 0; font-family: "Manrope", sans-serif; font-size: 13px; font-weight: 700; letter-spacing: -.4px; }
.rail-count { display: inline-flex; min-width: 21px; height: 21px; align-items: center; justify-content: center; padding: 0 5px; border-radius: 7px; background: #f3f6f5; color: #74827e; font-size: 9px; font-weight: 700; }
.update-form { margin-bottom: 14px; padding: 9px; border: 1px solid #e9eded; border-radius: 9px; background: #fbfcfc; }
.update-form textarea { display: block; width: 100%; min-height: 46px; resize: vertical; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 10px; line-height: 1.5; }
.update-form textarea::placeholder, .note-input-wrap input::placeholder { color: #b1babb; }
.form-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 7px; border-top: 1px solid #edf0ef; }
.form-footer > span { color: #a5aeaf; font-size: 8px; }
.update-list { display: grid; }
.update-item { display: grid; grid-template-columns: 24px minmax(0,1fr); gap: 8px; padding: 10px 0; border-top: 1px solid #f0f2f2; }
.update-item:first-child { padding-top: 0; border-top: 0; }
.update-initials { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 8px; background: #eaf2ee; color: #54826c; font-size: 8px; font-weight: 800; }
.update-item-body { min-width: 0; }
.update-item-body p { margin: 0 0 5px; color: #6f7c80; font-size: 9px; line-height: 1.5; overflow-wrap: anywhere; }
.update-item-meta { display: flex; gap: 6px; color: #acb4b5; font-size: 8px; }
.empty-rail { padding: 6px 0 2px; color: #a3adaf; font-size: 9px; text-align: center; }
.notes-section { padding-bottom: 12px; }
.note-input-wrap { display: flex; height: 34px; align-items: center; gap: 7px; padding: 0 8px; border: 1px solid #e9eded; border-radius: 8px; background: #fbfcfc; }
.note-input-wrap > svg { width: 13px; height: 13px; flex: 0 0 auto; color: #aab4b5; }
.note-input-wrap input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 9px; }
.note-input-wrap button { display: grid; width: 23px; height: 23px; flex: 0 0 auto; place-items: center; border: 0; border-radius: 6px; background: transparent; color: #568e78; cursor: pointer; }
.note-input-wrap button:hover { background: #eaf3ef; }
.note-input-wrap button svg { width: 13px; height: 13px; }
.note-list { display: grid; gap: 6px; margin-top: 10px; }
.note-item { display: flex; align-items: flex-start; gap: 8px; padding: 8px 8px 8px 10px; border-left: 2px solid #dae6c4; border-radius: 4px 7px 7px 4px; background: #fafbf6; }
.note-item > span { flex: 1; color: #697577; font-size: 9px; line-height: 1.45; overflow-wrap: anywhere; }
.note-delete { display: grid; width: 20px; height: 20px; flex: 0 0 auto; place-items: center; border: 0; border-radius: 5px; background: transparent; color: #b6c0bf; cursor: pointer; }
.note-delete:hover { background: #f8ebec; color: #bc6570; }
.note-delete svg { width: 12px; height: 12px; }
.rail-footer { display: flex; align-items: center; gap: 7px; padding: 5px 4px; color: #9ba7a6; font-size: 8px; }
.rail-footer .live-dot { width: 5px; height: 5px; margin-left: 0; box-shadow: none; }
.rail-footer a { margin-left: auto; color: #6e8d81; }
.footer-separator { color: #ccd2d1; }

.detail-summary { margin-bottom: 22px; }
.expense-breakdown { margin: 0 0 12px; padding: 12px; }
.expense-breakdown .rail-heading { margin-bottom: 8px; }
.expense-breakdown-note { margin: 0 0 7px; color: #99a4a6; font-size: 8px; }
.expense-breakdown-grid { display: grid; gap: 0; }
.expense-breakdown-card { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 2px 8px; min-width: 0; padding: 7px 2px; border: 0; border-top: 1px solid #f0f2f2; border-radius: 0; background: transparent; }
.expense-breakdown-card > span { overflow: hidden; color: #75817f; font-size: 9px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.expense-breakdown-card > strong { grid-column: 2; grid-row: 1 / span 2; color: #3e6255; font-family: "Manrope", sans-serif; font-size: 13px; letter-spacing: -.3px; white-space: nowrap; }
.expense-breakdown-card > small { grid-column: 1; color: #98a3a2; font-size: 8px; }
.expense-breakdown-total { border-top: 0; border-left: 2px solid #cfe3d6; padding-left: 8px; background: #f7faf8; }
.expense-breakdown-total > span, .expense-breakdown-total > strong { color: #397354; }
.expense-entry-heading { margin: 10px 0 6px; color: #536560; font-size: 9px; font-weight: 700; }
.expense-entry-form { margin-bottom: 7px; padding: 7px; border: 1px solid #e9eded; border-radius: 8px; background: #fbfcfc; }
.expense-entry-fields { display: grid; gap: 5px; }
.expense-entry-fields input, .expense-entry-fields textarea { display: block; width: 100%; min-height: 30px; padding: 6px 8px; border: 1px solid #e9eded; border-radius: 6px; outline: 0; background: #fff; color: var(--ink); font: inherit; font-size: 9px; }
.expense-entry-fields textarea { min-height: 38px; resize: vertical; line-height: 1.4; }
.expense-entry-fields input:focus, .expense-entry-fields textarea:focus { border-color: #9bbdb0; box-shadow: 0 0 0 3px #eaf3ef; }
.expense-entry-form .form-footer { gap: 6px; margin-top: 5px; }
.expense-entry-form .form-footer > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.expense-entry-list { display: grid; }
.expense-entry { grid-template-columns: 24px minmax(0,1fr); }
.expense-entry-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 3px; }
.expense-entry-top strong { color: #3e6255; font-size: 9px; }
.expense-entry-top time { color: #a4adae; font-size: 8px; white-space: nowrap; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 25px 0 12px; }
.section-heading h2 { margin: 0; font-family: "Manrope", sans-serif; font-size: 14px; font-weight: 700; letter-spacing: -.4px; }
.section-heading p { margin: 4px 0 0; color: #9ba5a8; font-size: 9px; }
.traffic-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.traffic-card { min-width: 0; padding: 15px; border: 1px solid #edf0f1; border-radius: 13px; background: white; cursor: pointer; transition: transform .16s, box-shadow .16s, border-color .16s; }
.traffic-card:hover { transform: translateY(-2px); border-color: #c9ddd5; box-shadow: var(--shadow); }
.traffic-card-top { display: flex; align-items: center; gap: 9px; }
.traffic-icon { width: 34px; height: 34px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 10px; background: #edf3f0; color: #4c7868; font-family: "Manrope", sans-serif; font-size: 11px; font-weight: 800; }
.traffic-icon.twitter { background: #eaf2f8; color: #3987a8; }
.traffic-icon.instagram { background: #f8edf1; color: #be7090; }
.traffic-icon.telegram { background: #ebf4f7; color: #5791a5; }
.traffic-icon.reddit { background: #faeeea; color: #c97652; }
.traffic-card-title { min-width: 0; }
.traffic-card-title h3 { margin: 0 0 3px; font-size: 11px; font-weight: 700; }
.traffic-card-title p { margin: 0; color: #9da7a8; font-size: 8px; }
.traffic-card-status { margin-left: auto; padding: 4px 7px; border-radius: 6px; background: #edf6f0; color: #579270; font-size: 8px; font-weight: 700; }
.traffic-card-actions { display: flex; flex: 0 0 auto; gap: 2px; margin-left: 3px; }
.traffic-card-archived { opacity: .82; }
.traffic-card-data { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; margin: 14px 0 11px; padding: 11px 0; border-top: 1px solid #f0f2f2; border-bottom: 1px solid #f0f2f2; }
.traffic-card-footer { display: flex; align-items: center; justify-content: space-between; color: #96a1a3; font-size: 8px; }
.traffic-card-footer strong { color: #758285; font-weight: 600; }
.traffic-card-footer .text-link { font-size: 8px; }
.empty-card { display: grid; min-height: 136px; place-items: center; padding: 20px; border: 1px dashed #dbe4e0; border-radius: 13px; background: rgba(255,255,255,.55); color: #99a5a3; text-align: center; }
.empty-card svg { width: 23px; height: 23px; margin-bottom: 8px; color: #8ead9e; }
.empty-card p { margin: 0 0 10px; font-size: 10px; }
.empty-card .button { min-height: 28px; }

.chart-card { margin-top: 18px; padding: 20px 22px 16px; border: 1px solid #e8eeeb; border-radius: 15px; background: linear-gradient(145deg, #fff 0%, #fcfdfc 100%); box-shadow: 0 8px 24px rgba(38,66,55,.045); }
.chart-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.chart-card-heading h2 { margin: 0 0 4px; font-family: "Manrope", sans-serif; font-size: 13px; font-weight: 700; letter-spacing: -.3px; }
.chart-card-heading p { margin: 0; color: #9da7a8; font-size: 9px; }
.chart-legend { display: flex; align-items: center; gap: 7px; color: #687773; font-size: 9px; }
.chart-legend span { display: flex; align-items: center; gap: 6px; padding: 6px 9px; border: 1px solid #edf1ef; border-radius: 20px; background: #fff; }
.chart-period-controls { display: inline-flex; flex: 0 0 auto; flex-wrap: nowrap; gap: 6px; }
.chart-period-controls button { display: inline-flex; width: 138px; height: 40px; flex: 0 0 138px; align-items: center; justify-content: center; padding: 0 10px; border: 1px solid #e4eae7; border-radius: 9px; background: #fff; color: #788683; font-size: 10px; font-weight: 500; white-space: nowrap; cursor: pointer; transition: background .16s, color .16s, box-shadow .16s; }
.chart-period-controls button:hover { color: #476e5e; background: rgba(255,255,255,.65); }
.chart-period-controls button.selected { background: #e2f2e9; color: #176b4b; box-shadow: inset 0 0 0 1px #bfdfcc, 0 1px 3px rgba(35,85,62,.08); font-weight: 700; }
.legend-swatch { width: 8px; height: 8px; border-radius: 50%; background: #55997f; box-shadow: 0 0 0 3px #eaf3ef; }
.legend-swatch.fans { background: #d8e99e; }
.legend-swatch.chart-legend-revenue { background: #d3a24e; box-shadow: 0 0 0 3px #f8f1e4; }
.chart-wrap { margin-top: 17px; }
.chart-wrap svg { display: block; width: 100%; height: auto; aspect-ratio: 800 / 270; overflow: visible; }
.chart-gridline { stroke: #e9efec; stroke-width: 1; stroke-dasharray: 3 5; }
.chart-gridline-zero { stroke: #dce5e1; stroke-dasharray: none; }
.chart-axis-label { font-family: "DM Sans",sans-serif; font-size: 10px; font-weight: 600; }
.chart-axis-fans { fill: #4e8e75; }
.chart-axis-revenue { fill: #b28237; }
.chart-label { fill: #73817d; font-family: "DM Sans",sans-serif; font-size: 10px; font-weight: 600; }
.chart-clicks { fill: none; stroke: #55997f; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.chart-fans { fill: none; stroke: #4e967a; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart-revenue { fill: none; stroke: #d0a04e; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart-area { fill: url(#chart-fill); }
.chart-area-fans { fill: url(#chart-fans-fill); }
.chart-area-revenue { fill: url(#chart-revenue-fill); }
.chart-marker { fill: #fff; stroke-width: 2.5; }
.chart-marker-fans { stroke: #4e967a; }
.chart-marker-revenue { stroke: #d0a04e; }
.chart-empty { display: grid; height: 155px; place-items: center; color: #a0acab; font-size: 10px; }
.chart-scale-note { display: flex; justify-content: space-between; margin: -2px 2px 0; color: #7f8c88; font-size: 9px; font-weight: 600; }
.chart-scale-note span:first-child { color: #4e8e75; }
.chart-scale-note span:last-child { color: #b28237; }
.period-filter { display: flex; align-items: center; gap: 12px; margin: 13px 0 15px; padding: 10px 12px; overflow-x: auto; border: 1px solid #e9efec; border-radius: 13px; background: linear-gradient(135deg, #fff 0%, #f8fbf9 100%); box-shadow: 0 3px 12px rgba(32,54,47,.035); scrollbar-width: thin; scrollbar-color: #cddbd4 transparent; }
.period-filter-heading { display: flex; height: 40px; flex: 0 0 auto; align-items: center; white-space: nowrap; }
.period-filter-heading strong { color: #344440; font-size: 11px; font-weight: 700; }
.period-filter-heading span { color: #9aa6a2; font-size: 9px; }
.period-filter-controls { display: flex; height: 40px; flex: 0 0 auto; align-items: center; flex-wrap: nowrap; gap: 6px; }
.period-custom-toggle { display: inline-flex; width: 138px; height: 40px; flex: 0 0 138px; align-items: center; justify-content: center; gap: 7px; padding: 0 10px; border: 1px solid #e4eae7; border-radius: 9px; background: #fff; color: #6f7d78; font-size: 10px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: border-color .16s, background .16s, color .16s, box-shadow .16s; }
.period-custom-toggle svg { width: 14px; height: 14px; }
.period-custom-toggle:hover, .period-custom-toggle.selected { border-color: #c5d9d0; background: #f2f8f5; color: var(--teal); }
.period-custom-toggle:focus-visible, .chart-period-controls button:focus-visible { outline: 2px solid #84b4a0; outline-offset: 2px; }
.period-date-range { display: flex; height: 40px; width: fit-content; flex: 0 0 auto; align-items: center; gap: 6px; padding: 0; border: 0; border-radius: 0; background: transparent; animation: fade-in .16s ease-out; }
.period-date-range input { width: 138px; height: 40px; padding: 0 8px; border: 1px solid #e4eae7; border-radius: 9px; outline: 0; background: #fff; color: #43534d; font: inherit; font-size: 10px; }
.period-date-range input:focus { border-color: #93b9a8; box-shadow: 0 0 0 3px #e5f1eb; }
.period-date-separator { color: #9aa8a1; font-size: 13px; }
.period-date-range .button { width: 138px; height: 40px; min-height: 40px; padding: 0 10px; border-radius: 9px; font-size: 10px; }
.period-warning { margin: 8px 0; color: #ad7841; font-size: 9px; }
.campaigns-table-wrap { overflow-x: auto; border: 1px solid #edf0f1; border-radius: 12px; background: white; }
.campaigns-table { width: 100%; border-collapse: collapse; text-align: left; }
.campaigns-table th { padding: 12px 13px; border-bottom: 1px solid #edf0f1; color: #a0aaac; font-size: 8px; font-weight: 600; white-space: nowrap; }
.campaigns-table td { padding: 11px 13px; border-bottom: 1px solid #f1f3f3; color: #687578; font-size: 9px; white-space: nowrap; }
.campaigns-table tr:last-child td { border-bottom: 0; }
.campaign-name { color: #344145; font-weight: 700; }
.campaign-subtitle { display: block; margin-top: 3px; color: #a4adae; font-size: 8px; font-weight: 400; }
.reply-rate-error { color: #b55252; cursor: help; }
.status-badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; border-radius: 6px; font-size: 8px; font-weight: 700; }
.status-badge::before { width: 5px; height: 5px; border-radius: 50%; background: currentColor; content: ""; }
.status-active { background: #edf6ef; color: #588b67; }
.status-paused { background: #fff6e9; color: #b58a48; }
.status-archived { background: #f2f4f4; color: #879294; }
.campaign-action { width: 27px; height: 27px; border: 0; border-radius: 7px; background: transparent; color: #98a3a5; cursor: pointer; }
.campaign-action:hover { background: #f3f6f5; color: #527666; }
.campaign-action.campaign-delete:hover { background: #fff0f1; color: #bd5967; }
.campaign-action svg { width: 14px; height: 14px; }
.campaign-refresh { margin-right: 5px; padding: 5px 7px; border: 1px solid #e2ece7; border-radius: 6px; background: white; color: #4f816d; font-size: 8px; cursor: pointer; }
.campaign-refresh:hover { border-color: #bdd5c9; background: #f5faf7; }
.campaign-refresh:disabled { opacity: .55; cursor: wait; }
.table-empty { padding: 30px 12px !important; color: #9ca8a7 !important; text-align: center; white-space: normal !important; }
.archive-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 14px; padding: 11px 13px; border: 1px solid #edf0f1; border-radius: 10px; background: white; color: #687578; font-size: 10px; font-weight: 600; cursor: pointer; }
.archive-toggle:hover { border-color: #dce7e2; }
.archive-toggle span { display: flex; align-items: center; gap: 7px; }
.archive-toggle svg { width: 14px; height: 14px; color: #9ca7a8; transition: transform .15s; }
.archive-toggle.open > svg { transform: rotate(180deg); }
.archive-content[hidden] { display: none; }
.archive-content { margin-top: 8px; }

.settings-grid { display: grid; gap: 13px; }
.settings-card { padding: 17px; border: 1px solid #edf0f1; border-radius: 13px; background: white; }
.settings-card-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.settings-card-heading .traffic-icon { width: 33px; height: 33px; }
.settings-card-heading h2 { margin: 0 0 3px; font-family: "Manrope", sans-serif; font-size: 12px; font-weight: 700; }
.settings-card-heading p { margin: 0; color: #99a4a5; font-size: 9px; }
.settings-card-heading .button { margin-left: auto; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.campaign-api-preview { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; padding: 11px; border: 1px solid #e7eeea; border-radius: 9px; background: #f8faf8; }
.campaign-api-preview > div { min-width: 0; }
.campaign-api-preview > div span { display: block; margin-bottom: 5px; color: #8b9996; font-size: 8px; }
.campaign-api-preview > div strong { color: #3e6255; font-size: 11px; }
.campaign-api-preview > small { grid-column: 1 / -1; color: #899592; font-size: 8px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { color: #738084; font-size: 9px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; min-height: 36px; padding: 0 10px; border: 1px solid #e7ebed; border-radius: 8px; outline: 0; background: #fff; color: #536165; font-size: 10px; }
.field textarea { min-height: 74px; padding: 10px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #9bbdb0; box-shadow: 0 0 0 3px #eaf3ef; }
.field-hint { color: #9ca7a8; font-size: 8px; line-height: 1.5; }
.expense-editor { display: grid; gap: 10px; padding: 12px; border: 1px solid #edf0f1; border-radius: 10px; background: #fafcfb; }
.expense-editor-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.expense-editor-heading > div { display: grid; gap: 4px; }
.expense-editor-heading strong { color: #536560; font-size: 10px; }
.expense-editor-heading span { color: #98a3a2; font-size: 8px; }
.expense-input-list { display: grid; gap: 7px; }
.expense-input-row { display: grid; grid-template-columns: minmax(0,1fr) 125px 28px; align-items: center; gap: 6px; }
.expense-input-row input { width: 100%; min-width: 0; min-height: 34px; padding: 0 9px; border: 1px solid #e7ebed; border-radius: 7px; outline: 0; background: #fff; color: #536165; font-size: 9px; }
.expense-input-row input:focus { border-color: #9bbdb0; box-shadow: 0 0 0 3px #eaf3ef; }
.expense-recorded-heading { margin-top: 4px; color: #82908d; font-size: 8px; font-weight: 700; }
.expense-input-row.expense-recorded-row { grid-template-columns: minmax(0,1fr) 28px; padding: 7px 8px; border: 1px solid #edf0f1; border-radius: 7px; background: #fff; }
.expense-recorded-description { display: grid; gap: 4px; min-width: 0; }
.expense-recorded-description strong { overflow: hidden; color: #536165; font-size: 9px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.expense-recorded-description span { color: #98a3a2; font-size: 8px; }
.integration-status { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 9px 10px; border-radius: 8px; background: #f7f9f8; color: #7b8988; font-size: 9px; }
.integration-status.success { background: #eff7f0; color: #4d8261; }
.integration-status.error { background: #fff1f2; color: #b45462; }
.integration-status .live-dot { margin-left: 0; }
.manager-only { display: none !important; }
.profile-list { display: grid; gap: 8px; }
.profile-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid #f0f2f2; border-radius: 9px; }
.profile-row-info { display: grid; gap: 3px; }
.profile-row-info strong { font-size: 10px; }
.profile-row-info small { color: #9da7a8; font-size: 8px; }
.role-chip { margin-left: auto; padding: 5px 7px; border-radius: 6px; background: #f2f5f3; color: #75837e; font-size: 8px; }
.user-actions { display: flex; align-items: center; gap: 2px; }
.user-inactive { opacity: .62; }

.modal-backdrop { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 16px; background: rgba(23,38,38,.42); backdrop-filter: blur(4px); animation: fade-in .15s ease-out; }
.modal { width: min(100%, 490px); max-height: min(92vh, 760px); overflow: auto; border: 1px solid rgba(255,255,255,.7); border-radius: 16px; background: white; box-shadow: 0 24px 80px rgba(14,32,32,.2); animation: modal-in .18s ease-out; }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 20px 21px 13px; }
.modal-header h2 { margin: 0 0 4px; font-family: "Manrope", sans-serif; font-size: 17px; font-weight: 700; letter-spacing: -.5px; }
.modal-header p { margin: 0; color: #9aa4a6; font-size: 10px; }
.modal-close { width: 29px; height: 29px; border: 0; border-radius: 8px; background: #f5f7f6; color: #798587; cursor: pointer; }
.modal-close:hover { background: #edf3f0; color: var(--teal); }
.modal-close svg { width: 15px; height: 15px; }
.modal-body { display: grid; gap: 12px; padding: 8px 21px 18px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 13px 21px 19px; border-top: 1px solid #f0f2f2; }
.modal-note { padding: 9px 10px; border-radius: 8px; background: #f6f8f7; color: #82908f; font-size: 9px; line-height: 1.5; }
.menu-popover { position: fixed; z-index: 30; right: 24px; bottom: 72px; width: 215px; padding: 6px; border: 1px solid #e9eded; border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.menu-popover button { display: flex; width: 100%; align-items: center; gap: 9px; padding: 9px; border: 0; border-radius: 7px; background: transparent; color: #687679; font-size: 10px; text-align: left; cursor: pointer; }
.menu-popover button:hover { background: #f2f6f4; color: var(--teal); }
.menu-popover button svg { width: 14px; height: 14px; }
.menu-role-label { padding: 6px 9px 3px; color: #a0aaac; font-size: 8px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.menu-popover .menu-divider { height: 1px; margin: 4px 3px; background: #eef0f0; }
.toast-root { position: fixed; z-index: 80; right: 22px; bottom: 20px; display: grid; gap: 8px; }
.toast { display: flex; max-width: min(360px, calc(100vw - 32px)); align-items: center; gap: 9px; padding: 11px 14px; border: 1px solid #dcebe3; border-radius: 10px; background: #fff; color: #526b60; box-shadow: 0 9px 32px rgba(22,46,39,.13); font-size: 10px; animation: slide-in .2s ease-out; }
.toast.error { border-color: #f1dbde; color: #ad5966; }
.toast svg { width: 15px; height: 15px; flex: 0 0 auto; }
.login-backdrop { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(19,42,38,.48); backdrop-filter: blur(6px); }
.login-card { width: min(100%, 400px); padding: 28px; border-radius: 18px; background: #fff; box-shadow: 0 25px 80px rgba(14,32,32,.25); }
.login-card .brand { padding: 0 0 24px; }
.login-card h1 { font-size: 21px; }
.login-card > p { margin-bottom: 20px; color: #869293; font-size: 10px; line-height: 1.55; }
.login-card .field { margin-bottom: 12px; }
.login-card .button { width: 100%; margin-top: 4px; }
.demo-hint { margin-top: 13px; padding: 10px; border-radius: 8px; background: #f5f8f6; color: #879390; font-size: 8px; line-height: 1.6; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); border: 0; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in { from { transform: translateY(5px) scale(.985); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes slide-in { from { transform: translateX(12px); opacity: 0; } to { transform: none; opacity: 1; } }

@media (max-width: 1200px) {
  .sidebar { width: 220px; }
  .main-column { margin-left: 220px; }
  .content-layout { grid-template-columns: minmax(0,1fr) 260px; gap: 17px; padding-right: 20px; padding-left: 20px; }
  .topbar { padding-right: 20px; padding-left: 20px; }
  .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .stat-value { font-size: 18px; }
}
@media (max-width: 980px) {
  .content-layout { grid-template-columns: minmax(0,1fr); }
  .right-rail { position: static; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 12px; }
  .rail-footer { grid-column: 1 / -1; }
  .rail-section { margin-bottom: 0; }
}
@media (max-width: 720px) {
  .sidebar { width: 245px; transform: translateX(-100%); transition: transform .2s; box-shadow: 8px 0 25px rgba(20,36,36,.08); }
  .sidebar.open { transform: translateX(0); }
  .main-column { margin-left: 0; }
  .topbar { height: 57px; gap: 8px; padding: 0 14px; }
  .mobile-menu { display: inline-flex; width: 30px; height: 30px; }
  .breadcrumbs { margin-right: auto; font-size: 9px; }
  .topbar-actions { gap: 7px; }
  .topbar-profile-name, .topbar-profile > svg { display: none; }
  .date-picker { height: 30px; gap: 5px; padding: 0 6px; }
  .date-picker select { max-width: 88px; font-size: 9px; }
  .date-picker svg { width: 12px; height: 12px; }
  .content-layout { gap: 18px; padding: 22px 14px 32px; }
  .page-heading { align-items: flex-start; margin-bottom: 17px; }
  h1 { font-size: 21px; }
  .heading-actions { gap: 5px; }
  .heading-actions .button { min-height: 32px; padding: 0 9px; font-size: 9px; }
  .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .stat-card:last-child { grid-column: span 2; }
  .stat-value { margin-top: 9px; font-size: 20px; }
  .model-grid, .traffic-grid { grid-template-columns: minmax(0,1fr); }
  .right-rail { grid-template-columns: minmax(0,1fr); }
  .rail-footer { grid-column: auto; }
  .chart-card { padding: 14px; }
  .chart-wrap svg { aspect-ratio: 800 / 270; }
  .chart-legend { gap: 5px; }
  .chart-legend span { padding: 5px 7px; }
  .period-filter { gap: 9px; padding: 8px 10px; }
  .period-filter-heading { gap: 6px; }
  .period-filter-heading span { font-size: 8px; }
  .period-filter-controls { gap: 6px; }
  .chart-period-controls { gap: 6px; }
  .chart-period-controls button, .period-custom-toggle { width: 126px; flex-basis: 126px; height: 40px; padding: 0 7px; font-size: 9px; }
  .period-date-range { width: fit-content; flex-wrap: nowrap; gap: 6px; }
  .period-date-range input { width: 126px; height: 40px; }
  .period-date-range .button { width: 126px; height: 40px; }
  .form-grid { grid-template-columns: minmax(0,1fr); }
  .field.full { grid-column: auto; }
  .expense-editor-heading { align-items: flex-start; flex-direction: column; }
  .expense-input-row { grid-template-columns: minmax(0,1fr) 90px 28px; }
  .campaign-api-preview { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .campaign-api-preview > small { grid-column: 1 / -1; }
  .settings-card { padding: 14px; }
  .topbar-profile { gap: 0; }
}
@media (max-width: 390px) {
  .breadcrumbs > span:first-child, .crumb-separator { display: none; }
  .topbar { padding: 0 9px; }
  .content-layout { padding-right: 10px; padding-left: 10px; }
  .stat-card { padding-right: 9px; padding-left: 9px; }
  .stat-label { font-size: 8px; }
  .stat-value { font-size: 18px; }
  .model-card-stats { grid-template-columns: repeat(2,minmax(0,1fr)); row-gap: 10px; }
  .heading-actions .button-secondary { display: none; }
}
