:root {
  --ink: #17251d;
  --muted: #718077;
  --line: #e5e9e5;
  --canvas: #f6f8f5;
  --panel: #ffffff;
  --green: #176b4b;
  --green-dark: #10563a;
  --mint: #dff3e6;
  --orange: #d77533;
  --blue: #3970cc;
  --gold: #ba8617;
  --shadow: 0 12px 30px rgba(33, 54, 41, .06);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--canvas); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: 252px; min-height: 100vh; display: flex; flex-direction: column; flex: 0 0 auto; padding: 28px 15px 17px; border-right: 1px solid var(--line); background: #fbfcfa; }
.brand { display: inline-flex; align-items: center; gap: 10px; margin: 0 13px 42px; color: #183b2b; font-size: 23px; font-weight: 800; letter-spacing: -.9px; }
.brand > span:last-child span { color: #4bb275; }
.brand-mark { position: relative; display: flex; align-items: end; gap: 2px; width: 26px; height: 27px; padding: 5px 4px; border-radius: 8px; background: #e1f2e6; }
.brand-mark i { display: block; width: 5px; border-radius: 4px; background: var(--green); }
.brand-mark i:nth-child(1) { height: 8px; }.brand-mark i:nth-child(2) { height: 13px; background: #3c9b65; }.brand-mark i:nth-child(3) { height: 18px; background: #72c58e; }
.nav-menu { display: grid; gap: 5px; }
.nav-link { min-height: 44px; display: flex; align-items: center; gap: 12px; padding: 0 12px; border-radius: 9px; color: #5a685f; font-size: 14px; font-weight: 600; transition: background .16s, color .16s; }
.nav-link:hover { background: #eff5f0; color: var(--green); }
.nav-link.active { color: #176b4b; background: #e7f3e9; }
.nav-link b { width: 18px; color: currentColor; font-size: 20px; line-height: 1; font-weight: 500; text-align: center; }
.nav-link em { min-width: 21px; height: 20px; display: inline-grid; place-items: center; margin-left: auto; padding: 0 5px; border-radius: 99px; background: #eaf0ec; color: #6a796f; font-size: 11px; font-style: normal; }
.nav-link.active em { background: #cbe7d2; color: var(--green); }
.sidebar-foot { margin-top: auto; }
.workspace-card { display: flex; align-items: center; gap: 9px; margin: 17px 7px 0; padding: 14px 5px 0; border-top: 1px solid var(--line); }
.workspace-avatar, .lead-avatar { width: 33px; height: 33px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #e7cfbb; color: #75482d; font-size: 11px; font-weight: 800; }
.workspace-card span:nth-child(2) { display: grid; gap: 2px; min-width: 0; }.workspace-card strong { font-size: 12px; }.workspace-card small { color: var(--muted); font-size: 11px; }.workspace-card button { margin-left: auto; border: 0; background: transparent; color: #7e8a82; }

.main-content { width: calc(100% - 252px); min-width: 0; }
.topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 0 42px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.72); }
.topbar > p { margin: 0; color: #7b887f; font-size: 13px; }.topbar > p span { padding: 0 8px; color: #b2bbb4; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.help-button, .notification-button { position: relative; width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: #738078; background: #fff; font-weight: 700; }
.notification-button span { font-size: 18px; transform: rotate(45deg); }.notification-button i { position: absolute; width: 7px; height: 7px; right: 0; top: 0; border: 1px solid #fff; border-radius: 50%; background: #e17c38; }
.primary-button, .secondary-button, .date-range { min-height: 38px; border: 0; border-radius: 8px; padding: 0 15px; font-size: 13px; font-weight: 700; transition: transform .16s, background .16s; }
.primary-button { color: #fff; background: var(--green); box-shadow: 0 4px 10px rgba(23, 107, 75, .16); }.primary-button:hover { background: var(--green-dark); transform: translateY(-1px); }.top-create { min-width: 146px; }
.secondary-button { color: #54625a; border: 1px solid #d9dfda; background: #fff; }.secondary-button:hover { background: #f4f6f4; }
.facebook-connect { min-height: 38px; display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; border: 1px solid #cbd8f1; border-radius: 8px; color: #2f63ba; background: #f4f7ff; font-size: 12px; font-weight: 800; }.facebook-connect:hover { background: #eaf0ff; }.facebook-connect span { display: grid; width: 17px; height: 17px; place-items: end center; border-radius: 50%; color: #fff; background: #3970cc; font-family: Arial, sans-serif; font-size: 14px; font-weight: 800; line-height: 17px; }
.facebook-connect.connected { border-color: #b7dabb; color: #1c6b42; background: #edf8ef; }.facebook-connect.connected span { place-items: center; background: #54a66d; font-size: 10px; }

#view-root { padding: 34px 42px 52px; }.page { max-width: 1320px; margin: auto; }
.page-head, .greeting { display: flex; align-items: start; justify-content: space-between; gap: 18px; margin-bottom: 27px; }.page-head h1, .greeting h1 { margin: 0; font-size: 26px; letter-spacing: -.7px; line-height: 1.2; }.page-head p, .greeting p { margin: 7px 0 0; color: var(--muted); font-size: 14px; }.greeting { align-items: center; }.greeting h1 span { color: #edb139; }.greeting time { padding: 8px 11px; border-radius: 7px; color: #7b887f; background: #eff2ef; font-size: 12px; white-space: nowrap; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin-bottom: 18px; }.metric-card { min-height: 132px; padding: 19px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); box-shadow: 0 2px 4px rgba(37,55,44,.018); }.metric-label { color: var(--muted); font-size: 12px; font-weight: 600; }.metric-value { display: flex; align-items: baseline; gap: 8px; margin-top: 9px; }.metric-value strong { font-size: 27px; letter-spacing: -.8px; }.metric-value small { padding: 3px 6px; border-radius: 5px; color: var(--green); background: #e6f5ea; font-size: 10px; font-weight: 800; }.metric-detail { margin-top: 6px; color: #929d96; font-size: 11px; }
.dashboard-grid, .report-grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(280px,.82fr); gap: 18px; }.panel { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); box-shadow: var(--shadow); }.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 19px 20px; }.panel-head h2 { margin: 0; font-size: 14px; letter-spacing: -.1px; }.panel-head a, .text-button { color: var(--green); border: 0; background: transparent; font-size: 12px; font-weight: 700; }
.activity-list { padding: 0 20px; }.activity { min-height: 72px; display: grid; grid-template-columns: 33px minmax(0,1fr) auto; align-items: center; gap: 11px; border-top: 1px solid #edf0ed; }.activity-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 8px; color: #597267; background: #edf1ee; font-size: 15px; }.activity-icon.orange { color: #ca6b29; background: #fff0e3; }.activity-icon.green { color: var(--green); background: #e6f4e9; }.activity strong { display: block; font-size: 12px; font-weight: 700; }.activity small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }.activity time { color: #8b968f; font-size: 11px; white-space: nowrap; }
.quick-actions { display: grid; gap: 7px; padding: 0 20px 15px; }.quick-action { height: 39px; display: flex; align-items: center; gap: 9px; padding: 0 10px; border: 1px solid #e6ebe7; border-radius: 7px; color: #536159; background: #fff; text-align: left; font-size: 12px; font-weight: 700; }.quick-action:hover { border-color: #aad3b6; background: #f5fbf6; color: var(--green); }.quick-action span { color: var(--green); font-size: 18px; font-weight: 500; }.progress-wrap { display: grid; gap: 14px; padding: 0 20px 20px; }.progress-row { display: grid; gap: 7px; }.progress-meta { display: flex; justify-content: space-between; gap: 10px; color: #66736b; font-size: 11px; }.progress-meta strong { color: #34483c; font-size: 11px; }.bar { height: 7px; overflow: hidden; border-radius: 99px; background: #eaf0eb; }.bar i { display: block; height: 100%; border-radius: inherit; background: #61aa79; }

.back-link { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 14px; color: #59665e; font-size: 12px; font-weight: 700; }.back-link:hover { color: var(--green); }.page-head p .status { margin-left: 8px; vertical-align: middle; }
.toolbar { display: flex; gap: 10px; margin: -7px 0 20px; }.search { width: min(360px,100%); height: 40px; padding: 0 13px; border: 1px solid #dce2dd; border-radius: 7px; outline: none; background: #fff; font-size: 13px; }.search:focus { border-color: #63aa79; box-shadow: 0 0 0 3px #dcf0e2; }.filter-button { height: 40px; padding: 0 12px; border: 1px solid #dce2dd; border-radius: 7px; color: #59665e; background: #fff; font-size: 12px; font-weight: 600; }
.groups-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }.group-card { min-height: 237px; display: flex; flex-direction: column; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: var(--shadow); }.group-card-top { display: flex; justify-content: space-between; }.group-icon { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 12px; font-size: 13px; font-weight: 800; }.group-icon.green { color: #176b4b; background: #dff2e4; }.group-icon.coral { color: #b85d42; background: #fce7df; }.group-icon.blue { color: #3267ba; background: #e5edfd; }.group-icon.gold { color: #a77712; background: #faf0d9; }.status { align-self: start; padding: 5px 8px; border-radius: 99px; color: #217044; background: #e5f4e8; font-size: 10px; font-weight: 800; }.status.draft { color: #a96f16; background: #fff3df; }.group-card h3 { margin: 15px 0 5px; font-size: 14px; line-height: 1.35; }.group-card p { margin: 0; color: var(--muted); font-size: 11px; }.group-stat-line { display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; margin: 19px 0 15px; }.group-stat-line span { display: grid; gap: 3px; color: #89948d; font-size: 10px; }.group-stat-line strong { color: #34473c; font-size: 13px; }.group-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid #edf0ed; color: #69776e; font-size: 10px; }.status-dot { width: 7px; height: 7px; display: inline-block; margin-right: 5px; border-radius: 50%; background: #80bc91; }.status-dot.yellow { background: #e0aa43; }.card-link { border: 0; padding: 0; color: var(--green); background: transparent; font-size: 11px; font-weight: 800; }

.calendar-layout { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 18px; }.calendar-side { padding: 20px; }.calendar-side h3 { margin: 0 0 15px; font-size: 13px; }.calendar-group { display: flex; align-items: start; gap: 7px; margin: 11px 0; color: #506058; font-size: 11px; line-height: 1.35; }.calendar-group input { accent-color: var(--green); }.calendar-group .status-dot { margin-top: 4px; }.calendar { overflow-x: auto; padding: 0 16px 16px; }.calendar-grid { min-width: 660px; display: grid; grid-template-columns: repeat(7,1fr); }.calendar-day-name { padding: 15px 8px 11px; color: #849087; font-size: 10px; font-weight: 700; text-align: center; text-transform: uppercase; }.calendar-cell { min-height: 89px; padding: 7px; border-top: 1px solid #edf0ed; border-right: 1px solid #edf0ed; }.calendar-cell:nth-child(7n) { border-right: 0; }.calendar-cell.today { background: #fbfdfb; }.calendar-date { display: grid; width: 21px; height: 21px; place-items: center; margin-bottom: 5px; border-radius: 50%; color: #748077; font-size: 10px; }.today .calendar-date { color: #fff; background: var(--green); }.event { overflow: hidden; padding: 4px 5px; border-radius: 4px; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; font-weight: 700; }.event.blue { color: #2f64b6; background: #e9effe; }.event.orange { color: #b75f27; background: #fff0e4; }.event.green { color: #246c42; background: #e4f3e7; }

.table-wrap { overflow-x: auto; }.queue-table, .lead-table { width: 100%; min-width: 760px; border-collapse: collapse; text-align: left; }.queue-table th, .lead-table th { padding: 13px 18px; border-bottom: 1px solid #e9edeb; color: #8a958e; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }.queue-table td, .lead-table td { padding: 15px 18px; border-bottom: 1px solid #eef1ee; color: #536159; font-size: 12px; vertical-align: middle; }.queue-title { display: block; color: #263a2e; font-weight: 700; }.queue-sub { display: block; margin-top: 4px; color: #929d96; font-size: 10px; }.action-menu { display: flex; gap: 6px; }.tiny-button { height: 29px; padding: 0 9px; border: 1px solid #dce2dd; border-radius: 5px; color: #607066; background: #fff; font-size: 10px; font-weight: 800; }.tiny-button.approve { border-color: #b2d8bd; color: #176b4b; background: #f2faf4; }.tiny-button:hover { filter: brightness(.97); }.chip { display: inline-block; padding: 4px 7px; border-radius: 99px; color: #68766d; background: #eef2ef; font-size: 10px; font-weight: 700; }.chip.blue { color: #3467ba; background: #e7efff; }.lead-name { display: flex; align-items: center; gap: 9px; color: #2d4034; font-weight: 700; }.lead-avatar { width: 27px; height: 27px; color: #35655c; background: #daf0ea; font-size: 9px; }.consent { color: #257044; font-size: 11px; font-weight: 700; }

.chart-area { padding: 6px 20px 22px; }.chart { height: 210px; display: flex; align-items: end; gap: 10px; padding: 0 4px 19px; border-bottom: 1px solid #e8ece9; background: repeating-linear-gradient(to bottom, transparent 0, transparent 48px, #f0f2f0 49px, transparent 50px); }.chart-col { height: 100%; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: end; gap: 6px; }.chart-col i { display: block; width: 58%; min-height: 7px; border-radius: 4px 4px 1px 1px; background: #75b889; }.chart-col small { position: absolute; transform: translateY(22px); color: #8a958e; font-size: 9px; }.report-grid .progress-wrap { padding-top: 6px; }
.date-range { color: #536159; border: 1px solid #dce2dd; background: #fff; box-shadow: none; }.empty { grid-column: 1 / -1; padding: 40px; color: #88948c; border: 1px dashed #ccd6ce; border-radius: 9px; text-align: center; font-size: 13px; }.empty strong { display: block; margin-bottom: 6px; color: #4f5d55; }

.modal-backdrop { position: fixed; z-index: 10; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(16,30,22,.42); opacity: 0; pointer-events: none; transition: opacity .18s; }.modal-backdrop.open { opacity: 1; pointer-events: auto; }.modal { width: min(520px,100%); padding: 25px; border-radius: 14px; background: #fff; box-shadow: 0 22px 70px rgba(0,0,0,.22); transform: translateY(8px); transition: transform .18s; }.open .modal { transform: translateY(0); }.modal-head { display: flex; justify-content: space-between; align-items: start; margin-bottom: 20px; }.modal-head h2 { margin: 4px 0 0; font-size: 20px; letter-spacing: -.4px; }.eyebrow { margin: 0; color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .1em; }.close-button { width: 29px; height: 29px; border: 0; border-radius: 50%; color: #637067; background: #f0f3f0; font-size: 23px; line-height: 1; }.modal form { display: grid; gap: 13px; }.modal label { display: grid; gap: 6px; color: #45554b; font-size: 12px; font-weight: 700; }.modal input, .modal select, .modal textarea { width: 100%; padding: 10px; border: 1px solid #dce3de; border-radius: 7px; outline: none; color: #2d3f34; background: #fff; font-size: 13px; font-weight: 500; }.modal textarea { resize: vertical; }.modal input:focus, .modal select:focus, .modal textarea:focus { border-color: #66a97a; box-shadow: 0 0 0 3px #ddf0e2; }.form-note { margin: -1px 0 0; color: #829087; font-size: 11px; line-height: 1.45; }.modal-actions { display: flex; justify-content: end; gap: 10px; margin-top: 5px; }.toast { position: fixed; z-index: 20; bottom: 26px; left: 50%; max-width: min(440px,calc(100vw - 32px)); padding: 11px 15px; border-radius: 8px; color: #fff; background: #203a2b; box-shadow: 0 8px 26px rgba(0,0,0,.2); font-size: 12px; font-weight: 600; text-align: center; opacity: 0; pointer-events: none; transform: translate(-50%,12px); transition: opacity .18s, transform .18s; }.toast.show { opacity: 1; transform: translate(-50%,0); }

@media (max-width: 1020px) { .sidebar { width: 210px; }.main-content { width: calc(100% - 210px); }.topbar, #view-root { padding-left: 25px; padding-right: 25px; }.metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.groups-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 730px) { .app-shell { display: block; }.sidebar { position: sticky; top: 0; z-index: 5; width: 100%; min-height: auto; display: flex; flex-direction: row; align-items: center; padding: 11px 15px; border-right: 0; border-bottom: 1px solid var(--line); }.brand { margin: 0; font-size: 20px; }.nav-menu { display: flex; flex: 1; justify-content: end; overflow-x: auto; margin-left: 14px; gap: 2px; }.nav-link { min-height: 34px; padding: 0 8px; font-size: 0; }.nav-link b { font-size: 18px; }.nav-link em { position: absolute; transform: translate(8px,-12px); }.sidebar-foot { display: none; }.main-content { width: 100%; }.topbar { height: 62px; padding: 0 15px; }.topbar > p, .help-button, .notification-button { display: none; }.topbar-actions { margin-left: auto; }.top-create { min-width: 133px; }.page-head, .greeting { display: block; }.page-head > .primary-button, .page-head > .date-range { margin-top: 16px; }.greeting time { display: inline-block; margin-top: 14px; } #view-root { padding: 24px 15px 38px; }.metric-grid, .dashboard-grid, .report-grid, .calendar-layout, .groups-grid { grid-template-columns: 1fr; }.toolbar { flex-direction: column; }.filter-button { width: max-content; }.calendar-side { display: none; }.panel-head { padding-left: 15px; padding-right: 15px; }.activity-list { padding: 0 15px; }.activity { grid-template-columns: 32px 1fr; }.activity time { display: none; } }
