:root {
  color-scheme: light;
  --canvas: #f5f6f2;
  --surface: #ffffff;
  --sidebar: #fbfbf8;
  --ink: #29372f;
  --body: #435148;
  --muted: #6f796b;
  --faint: #a0a59e;
  --line: #e5e8df;
  --line-dark: #d3d9cd;
  --green: #3e6a57;
  --green-hover: #315844;
  --sage: #eaf1e7;
  --sage-dark: #48674a;
  --lilac: #f0ebf7;
  --lilac-dark: #7c659c;
  --peach: #fbede3;
  --peach-dark: #a37752;
  --blue: #e8eff5;
  --blue-dark: #50738a;
  --danger: #a34f4f;
  --danger-bg: #fbefee;
  --amber: #a37f39;
  --amber-bg: #faf3e5;
  --shadow: 0 5px 20px rgb(42 58 38 / 3%);
  --radius: 16px;
  --sidebar-width: 234px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Arial, sans-serif;
  font-size: 14px;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
button, input, select, textarea { outline: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #b8cbbb; outline-offset: 3px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 1px; border-color: var(--green); }
a { color: var(--green); text-underline-offset: 3px; }
button { color: inherit; }
svg { display: inline-block; flex-shrink: 0; vertical-align: middle; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-weight: 620; }
button, input, textarea, select { border-radius: 9px; }
::selection { background: #dce8d7; color: #243b2f; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -70px; left: 20px; z-index: 100; padding: 12px 18px; background: var(--green); color: white; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.icon { width: 19px; height: 19px; stroke: currentColor; stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 25px; height: 25px; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; display: flex; flex-direction: column; width: var(--sidebar-width); padding: 28px 16px 18px; background: var(--sidebar); border-right: 1px solid var(--line); overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 0 9px; width: fit-content; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 38px; border-radius: 11px; color: #fff; background: var(--green); font-size: 23px; font-weight: 400; line-height: 1; letter-spacing: -3px; padding-right: 2px; }
.brand-mark svg { width: 23px; height: 25px; }
.brand-name { display: block; font-size: 18px; font-weight: 670; letter-spacing: 3.1px; color: var(--ink); line-height: 1.15; }
.brand-caption { display: block; font-size: 9px; font-weight: 600; letter-spacing: 2.25px; color: var(--muted); margin-top: 5px; }
.workspace-switch { display: flex; align-items: center; gap: 10px; margin: 30px 4px 27px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.workspace-monogram { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 8px; background: var(--sage); color: var(--green); font-size: 13px; font-weight: 650; flex-shrink: 0; }
.workspace-copy { min-width: 0; }
.workspace-copy strong { display: block; font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 142px; }
.workspace-copy span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.nav-section-label { color: var(--faint); text-transform: uppercase; letter-spacing: 1.3px; font-size: 9px; font-weight: 650; padding: 0 15px; margin-bottom: 10px; }
.nav-list { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav-link { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 43px; color: #6b756b; border-radius: 9px; text-decoration: none; font-size: 12px; font-weight: 500; transition: background .15s, color .15s; }
.nav-link .icon { width: 18px; height: 18px; }
.nav-link:hover { background: #f0f2ec; color: var(--ink); }
.nav-link.active { background: #e8eee3; color: #375540; font-weight: 600; }
.nav-link.active .icon { stroke-width: 2; }
.nav-count { margin-left: auto; padding: 2px 6px; min-width: 20px; border-radius: 5px; background: #e9ece4; color: var(--muted); text-align: center; font-size: 10px; line-height: 1.5; }
.nav-link.active .nav-count { background: #d9e4d1; color: var(--green); }
.sidebar-bottom { margin-top: auto; padding: 26px 6px 0; }
.connection-box { padding: 12px 10px 17px; color: var(--muted); font-size: 10px; border-bottom: 1px solid var(--line); }
.connection-box span { display: flex; align-items: center; gap: 6px; }
.connection-box small { display: block; margin-top: 5px; margin-left: 12px; font-size: 9px; color: var(--faint); }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #77936a; flex-shrink: 0; }
.status-dot.amber { background: #c6a66b; }
.account-row { display: flex; gap: 9px; align-items: center; padding-top: 17px; }
.account-avatar { display: grid; place-items: center; width: 31px; height: 31px; background: #ece8df; color: #8e8069; border: 1px solid #e2dbcf; border-radius: 50%; font-size: 11px; font-weight: 600; flex-shrink: 0; }
.account-copy { min-width: 0; flex: 1; }
.account-copy strong { display: block; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 124px; }
.account-copy span { display: block; margin-top: 3px; color: var(--faint); font-size: 9px; }
.sidebar .icon-button { width: 28px; height: 28px; }
.main-area { margin-left: var(--sidebar-width); width: calc(100% - var(--sidebar-width)); min-width: 0; }
.topbar { height: 75px; padding: 0 38px; display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); background: #fbfcf9; }
.breadcrumb { display: flex; gap: 11px; align-items: center; font-size: 11px; color: var(--muted); }
.breadcrumb .icon { width: 15px; height: 15px; color: #b6bdb0; }
.breadcrumb strong { color: var(--body); font-weight: 500; }
.topbar-actions { display: flex; gap: 15px; align-items: center; }
.mail-status { display: flex; align-items: center; gap: 7px; color: #91846a; background: #f4f1e9; border: 1px solid #eee8dc; padding: 7px 10px; font-size: 10px; border-radius: 6px; text-decoration: none; }
.mail-status .icon { width: 13px; height: 13px; }
.topbar-divider { height: 22px; width: 1px; background: var(--line); }
.topbar-meta { color: var(--muted); font-size: 10px; }
.mobile-menu, .mobile-close, .sidebar-backdrop { display: none; }
.content { max-width: 1536px; margin: 0 auto; padding: 35px 38px 54px; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 28px; }
.eyebrow { font-size: 9px; text-transform: uppercase; letter-spacing: 1.6px; color: var(--muted); font-weight: 650; margin-bottom: 10px; }
.page-heading h1 { font-size: 28px; line-height: 1.25; letter-spacing: -.65px; }
.page-subtitle { margin-top: 10px; font-size: 12px; line-height: 1.65; color: var(--muted); max-width: 640px; }
.heading-actions { display: flex; align-items: center; gap: 9px; padding-top: 16px; flex-shrink: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 39px; padding: 10px 15px; border: 1px solid transparent; border-radius: 8px; font-size: 11px; font-weight: 580; text-decoration: none; line-height: 1.35; transition: background .15s, border-color .15s, box-shadow .15s; white-space: nowrap; }
.button-primary { color: #fff; background: var(--green); border-color: var(--green); box-shadow: 0 2px 3px rgb(29 61 39 / 5%); }
.button-primary:hover { background: var(--green-hover); border-color: var(--green-hover); }
.button-secondary { background: #fff; border-color: var(--line-dark); color: var(--body); }
.button-secondary:hover { background: #f6f8f2; border-color: #bdc8b4; }
.button-subtle { background: transparent; border-color: var(--line); color: var(--body); }
.button-subtle:hover { background: #f0f3eb; }
.button-ghost { color: var(--muted); background: transparent; border-color: transparent; }
.button-ghost:hover { color: var(--ink); background: #f0f2eb; }
.button-danger { color: #a9504d; background: #fff6f4; border-color: #efdad5; }
.button-danger:hover { background: #fbe9e5; }
.button-small { min-height: 32px; padding: 7px 11px; font-size: 10px; gap: 6px; }
.button:disabled { opacity: .55; box-shadow: none; }
.button .icon { width: 16px; height: 16px; }
.button-block { width: 100%; }
.icon-button { display: inline-grid; place-items: center; background: transparent; border: 1px solid transparent; color: var(--muted); width: 34px; height: 34px; padding: 0; border-radius: 8px; flex-shrink: 0; }
.icon-button:hover { color: var(--ink); background: #edf0e8; border-color: #e4e8dc; }
.icon-button .icon { width: 17px; height: 17px; }
.text-button { border: 0; background: none; padding: 0; color: var(--green); font-size: 11px; font-weight: 550; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.text-button:hover { color: #244833; text-decoration: underline; }
.text-button .icon { width: 14px; height: 14px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.panel-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 24px 20px; }
.panel-header h2 { font-size: 14px; letter-spacing: -.15px; }
.panel-header p { margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.panel-body { padding: 0 24px 24px; }
.panel-footer { border-top: 1px solid var(--line); padding: 14px 23px; color: var(--muted); font-size: 10px; background: #fdfdfa; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 23px; }
.metric-card { padding: 20px 21px 18px; background: white; border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow); }
.metric-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--muted); }
.metric-icon { display: grid; place-items: center; width: 28px; height: 28px; background: #f4f5f0; border-radius: 8px; color: #8e9a86; }
.metric-icon .icon { width: 15px; height: 15px; }
.metric-value { display: block; margin-top: 13px; font-size: 31px; line-height: 1; font-weight: 550; letter-spacing: -1.2px; }
.metric-note { display: flex; align-items: center; gap: 5px; margin-top: 11px; font-size: 9px; color: #9a9f95; }
.metric-note .icon { width: 11px; height: 11px; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.53fr) minmax(286px, 1fr); gap: 23px; align-items: start; }
.overview-column { display: grid; gap: 23px; min-width: 0; }
.welcome-panel { position: relative; overflow: hidden; padding: 26px; border: 1px solid #dce5d5; border-radius: var(--radius); background: #eaf0e3; min-height: 189px; }
.welcome-label { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 13px; padding: 5px 8px; color: #728268; font-size: 9px; line-height: 1; background: rgb(255 255 255 / 53%); border: 1px solid rgb(255 255 255 / 70%); border-radius: 5px; }
.welcome-label .icon { width: 12px; height: 12px; }
.welcome-panel h2 { position: relative; z-index: 1; max-width: 400px; font-size: 22px; font-weight: 550; letter-spacing: -.45px; line-height: 1.3; }
.welcome-panel p { position: relative; z-index: 1; max-width: 355px; margin: 10px 0 19px; color: #7a8571; font-size: 11px; line-height: 1.7; }
.welcome-panel .text-button { position: relative; z-index: 1; color: #4b6544; }
.growth-art { position: absolute; right: -14px; bottom: -28px; width: 190px; height: 195px; color: #cbd9bf; opacity: .7; pointer-events: none; }
.start-steps { list-style: none; margin: 0; padding: 0; }
.start-step { display: flex; align-items: center; gap: 12px; padding: 15px 0; border-bottom: 1px solid #edf0e8; }
.start-step:first-child { padding-top: 0; }
.start-step:last-child { padding-bottom: 0; border-bottom: 0; }
.step-number { display: grid; place-items: center; height: 30px; width: 30px; border-radius: 9px; background: #f3f5ef; color: #9da992; font-size: 10px; font-weight: 600; flex-shrink: 0; }
.step-number.done { background: var(--sage); color: var(--green); }
.step-number .icon { width: 14px; height: 14px; }
.step-copy { flex: 1; min-width: 0; }
.step-copy strong { display: block; font-size: 11px; font-weight: 550; }
.step-copy span { display: block; color: var(--muted); font-size: 10px; margin-top: 5px; line-height: 1.5; }
.step-arrow { color: #aab4a0; }
.step-arrow .icon { width: 16px; height: 16px; }
.segment-mini-list { display: grid; gap: 11px; }
.segment-mini { display: flex; gap: 11px; align-items: center; border: 1px solid var(--line); border-radius: 11px; padding: 13px; }
.segment-mini .profile-icon { width: 36px; height: 36px; border-radius: 10px; }
.segment-mini .profile-icon .icon { width: 19px; height: 19px; }
.segment-mini-text { flex: 1; min-width: 0; }
.segment-mini-text strong { display: block; font-size: 11px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.segment-mini-text small { display: block; color: var(--muted); font-size: 9px; margin-top: 5px; }
.segment-count { color: var(--muted); font-size: 10px; white-space: nowrap; }
.overview-note { display: flex; gap: 9px; margin-top: 16px; color: #92988b; font-size: 9px; line-height: 1.65; }
.overview-note .icon { width: 13px; height: 13px; margin-top: 1px; }
.activity-list { list-style: none; margin: 0; padding: 0; }
.activity-item { position: relative; display: flex; align-items: flex-start; gap: 11px; padding: 0 0 18px; }
.activity-item:last-child { padding-bottom: 0; }
.activity-dot { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid var(--line); border-radius: 7px; color: #8c9a82; background: #fafbf7; flex-shrink: 0; z-index: 1; }
.activity-dot .icon { width: 12px; height: 12px; }
.activity-item:not(:last-child)::before { content: ""; position: absolute; top: 26px; left: 12px; bottom: 0; border-left: 1px solid #e8ede1; }
.activity-copy { padding-top: 1px; }
.activity-copy p { font-size: 10px; line-height: 1.55; color: var(--body); overflow-wrap: anywhere; }
.activity-copy time { display: block; margin-top: 4px; font-size: 9px; color: var(--faint); }
.notice { display: flex; align-items: flex-start; gap: 10px; border: 1px solid #e1e7d9; border-radius: 11px; padding: 13px 16px; background: #f0f4e9; color: #738368; font-size: 11px; line-height: 1.65; margin-bottom: 22px; }
.notice .icon { width: 16px; height: 16px; margin-top: 1px; }
.notice strong { font-weight: 600; color: #5e7352; }
.notice-neutral { background: #f7f7f2; border-color: var(--line); color: var(--muted); }
.notice-neutral strong { color: var(--body); }
.notice-warm { background: #faf5eb; border-color: #eee5d2; color: #8d7a55; }
.notice-warm strong { color: #826b41; }
.notice-danger { color: #a26059; background: #fcf1ed; border-color: #f0ddd6; }
.notice-danger strong { color: #99564e; }
.notice p + p { margin-top: 3px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.toolbar-left, .toolbar-right { display: flex; align-items: center; gap: 10px; }
.toolbar-left { flex: 1; min-width: 0; flex-wrap: wrap; }
.search-field { position: relative; display: flex; align-items: center; min-width: 250px; max-width: 350px; flex: 1; }
.search-field > .icon { position: absolute; left: 12px; width: 16px; height: 16px; color: #9aa58f; pointer-events: none; }
.search-field input { width: 100%; height: 38px; padding: 9px 35px 9px 36px; border: 1px solid var(--line-dark); border-radius: 8px; background: #fff; color: var(--ink); font-size: 11px; }
.search-field input::placeholder { color: #a0a69a; }
.search-clear { position: absolute; right: 4px; width: 29px; height: 29px; }
.filter-select { max-width: 175px; min-height: 38px; padding: 8px 30px 8px 11px; background: #fff; border: 1px solid var(--line-dark); color: var(--body); font-size: 11px; }
.view-switch { display: flex; background: #e9ede3; padding: 3px; gap: 2px; border-radius: 8px; }
.view-switch button { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 7px 9px; border: 0; border-radius: 5px; color: #93a088; font-size: 10px; background: transparent; }
.view-switch button.active { background: white; color: var(--body); box-shadow: 0 1px 3px rgb(30 55 19 / 5%); }
.view-switch button .icon { width: 14px; height: 14px; }
.result-count { font-size: 10px; color: var(--muted); margin: 0 0 12px; }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
.data-table th { padding: 15px 17px; border-bottom: 1px solid var(--line); background: #fbfcf8; color: #8e9985; font-size: 9px; font-weight: 500; }
.data-table th:first-child, .data-table td:first-child { padding-left: 23px; }
.data-table td { padding: 17px; border-bottom: 1px solid #edf0e7; vertical-align: middle; font-size: 11px; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fdfefb; }
.company-cell { display: flex; align-items: center; gap: 10px; min-width: 185px; max-width: 270px; }
.company-avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: #f0f2e9; color: #829171; font-size: 10px; font-weight: 600; flex-shrink: 0; }
.company-name { border: 0; background: none; padding: 0; color: var(--body); font-size: 11px; font-weight: 550; max-width: 210px; overflow: hidden; text-overflow: ellipsis; display: block; white-space: nowrap; text-align: left; }
.company-name:hover { color: var(--green); text-decoration: underline; }
.cell-secondary { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.cell-muted { color: #a6ad9e; font-size: 10px; }
.pill { display: inline-flex; gap: 5px; align-items: center; white-space: nowrap; border-radius: 5px; padding: 5px 7px; background: #eef1e9; color: #7d8a73; font-size: 9px; line-height: 1.1; font-weight: 500; }
.pill .icon { width: 11px; height: 11px; }
.pill.sage, .tone-sage { background: var(--sage); color: var(--sage-dark); }
.pill.lilac, .tone-lilac { background: var(--lilac); color: var(--lilac-dark); }
.pill.peach, .tone-peach { background: var(--peach); color: var(--peach-dark); }
.pill.blue, .tone-blue { background: var(--blue); color: var(--blue-dark); }
.pill.red { color: #ae7267; background: #f9eeea; }
.pill.amber { color: var(--amber); background: var(--amber-bg); }
.pill.neutral { color: #89937e; background: #f1f3ec; }
.mini-agent { display: inline-flex; gap: 6px; align-items: center; color: #7a8770; font-size: 10px; }
.mini-agent-avatar { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px; font-size: 8px; font-weight: 600; }
.table-actions { text-align: right; }
.table-actions .icon-button { width: 28px; height: 28px; }
.empty-state { min-height: 280px; padding: 44px 24px; text-align: center; display: flex; align-items: center; justify-content: center; flex-direction: column; }
.empty-illustration { width: 63px; height: 63px; display: grid; place-items: center; border: 1px solid #e1e8d8; background: #f2f6eb; color: #9cb08b; border-radius: 18px; margin-bottom: 21px; box-shadow: 0 5px 0 -2px #f8faf4, 0 6px 0 -2px #e8edde; transform: rotate(-3deg); }
.empty-illustration .icon { width: 28px; height: 28px; transform: rotate(3deg); stroke-width: 1.3; }
.empty-state h2 { font-size: 16px; font-weight: 550; letter-spacing: -.25px; }
.empty-state p { max-width: 390px; font-size: 11px; line-height: 1.8; margin: 9px auto 19px; color: #929b89; }
.empty-state-compact { min-height: 125px; padding: 8px 10px 16px; }
.empty-state-compact .empty-illustration { width: 39px; height: 39px; border-radius: 11px; margin-bottom: 11px; box-shadow: none; }
.empty-state-compact .empty-illustration .icon { width: 19px; height: 19px; }
.empty-state-compact h2 { font-size: 11px; }
.empty-state-compact p { font-size: 10px; max-width: 280px; margin: 7px auto 0; }
.board-scroll { overflow-x: auto; padding-bottom: 16px; }
.client-board { display: grid; grid-template-columns: repeat(6, minmax(218px, 1fr)); gap: 12px; min-width: 1400px; }
.board-column { min-width: 0; background: #eef1e8; border: 1px solid #e6eadd; border-radius: 12px; padding: 12px 10px; }
.board-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 3px 3px 14px; }
.board-heading h2 { font-size: 11px; font-weight: 550; }
.board-heading span { background: #e2e7da; color: #86947a; border-radius: 5px; min-width: 19px; text-align: center; padding: 3px 5px; font-size: 9px; }
.board-items { display: flex; flex-direction: column; gap: 9px; }
.board-card { display: block; width: 100%; text-align: left; padding: 14px; background: #fff; border: 1px solid #e2e8d9; border-radius: 10px; box-shadow: 0 2px 3px rgb(51 68 36 / 2%); }
.board-card:hover { border-color: #bccdac; }
.board-card strong { display: block; margin-bottom: 9px; font-size: 11px; font-weight: 550; line-height: 1.55; overflow-wrap: anywhere; }
.board-card-email { display: block; font-size: 9px; color: var(--muted); margin-top: 13px; overflow-wrap: anywhere; }
.board-card-footer { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #f0f3ea; }
.board-card-footer > span { font-size: 8px; color: #95a188; }
.board-empty { padding: 27px 7px; text-align: center; font-size: 10px; color: #a3ad98; border: 1px dashed #dbe3d0; border-radius: 8px; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.profile-card { display: flex; flex-direction: column; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); min-width: 0; }
.profile-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 20px; }
.profile-icon { width: 43px; height: 43px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.profile-icon .icon { width: 23px; height: 23px; }
.profile-card h2 { font-size: 17px; font-weight: 570; letter-spacing: -.3px; line-height: 1.35; overflow-wrap: anywhere; }
.profile-role { font-size: 11px; line-height: 1.8; color: var(--muted); margin-top: 8px; min-height: 40px; overflow-wrap: anywhere; }
.profile-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 17px; }
.profile-meta > span { display: flex; align-items: center; gap: 4px; font-size: 9px; color: #8d9983; }
.profile-meta .icon { width: 12px; height: 12px; }
.profile-divider { border-top: 1px solid var(--line); margin: 22px 0 16px; }
.profile-stats { display: flex; gap: 28px; margin-bottom: 24px; }
.profile-stat strong { font-size: 19px; font-weight: 500; display: block; letter-spacing: -.4px; }
.profile-stat span { display: block; margin-top: 4px; font-size: 9px; color: #9ba492; }
.profile-card > .button { margin-top: auto; }
.add-card { border: 1px dashed #cad5c0; border-radius: var(--radius); background: #f4f7ee; color: #8e9e7f; padding: 27px; min-height: 245px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.add-card:hover { background: #edf3e5; border-color: #afc19c; }
.add-card > .icon { width: 28px; height: 28px; margin-bottom: 17px; stroke-width: 1.3; }
.add-card strong { color: #758769; font-size: 12px; font-weight: 500; }
.add-card span { display: block; max-width: 170px; font-size: 10px; line-height: 1.8; margin-top: 9px; color: #98a58c; }
.source-list { display: flex; flex-direction: column; gap: 12px; }
.source-row { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 21px 23px; box-shadow: var(--shadow); }
.source-icon { display: grid; place-items: center; width: 41px; height: 41px; border-radius: 11px; background: #f0f4e9; color: #8e9f7c; flex-shrink: 0; }
.source-copy { flex: 1; min-width: 0; }
.source-title { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.source-title h2 { font-size: 13px; font-weight: 550; overflow-wrap: anywhere; }
.source-url { display: block; font-size: 10px; line-height: 1.5; color: #9ba88e; margin-top: 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 550px; text-decoration: none; }
.source-url:hover { text-decoration: underline; }
.source-details { display: flex; gap: 13px; flex-wrap: wrap; margin-top: 13px; color: #8d9981; font-size: 10px; }
.source-details > span { display: inline-flex; gap: 5px; align-items: center; }
.source-details .icon { width: 12px; height: 12px; }
.source-keywords { color: #a1ab97; font-size: 10px; line-height: 1.7; margin-top: 9px; overflow-wrap: anywhere; }
.source-actions { display: flex; gap: 7px; align-items: center; flex-shrink: 0; padding-top: 3px; }
.campaign-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); min-width: 0; }
.campaign-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 17px; }
.campaign-icon { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: #f1f4eb; color: #899c76; }
.campaign-icon .icon { width: 17px; height: 17px; }
.campaign-card h2 { font-size: 14px; line-height: 1.5; margin-bottom: 8px; letter-spacing: -.2px; overflow-wrap: anywhere; }
.campaign-subject { font-size: 11px; line-height: 1.7; color: #718064; overflow-wrap: anywhere; }
.campaign-excerpt { margin: 15px 0; padding: 13px; background: #f9fbf5; border: 1px solid #edf1e4; border-radius: 8px; color: #98a38c; font-size: 10px; line-height: 1.9; min-height: 112px; overflow-wrap: anywhere; }
.campaign-meta { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.campaign-actions { display: flex; gap: 8px; margin-top: auto; }
.campaign-actions .button { flex: 1; padding-left: 9px; padding-right: 9px; }
.filter-tabs { display: inline-flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; width: 100%; }
.filter-tab { padding: 12px 14px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: #98a38b; font-size: 11px; margin-bottom: -1px; }
.filter-tab.active { border-bottom-color: var(--green); color: var(--green); font-weight: 550; }
.filter-tab span { margin-left: 6px; font-size: 9px; color: #a4ae98; }
.task-row { display: flex; align-items: center; gap: 14px; padding: 19px 22px; border-bottom: 1px solid #eaf0e1; }
.task-row:last-child { border-bottom: 0; }
.task-checkbox { appearance: none; width: 18px; height: 18px; border: 1.5px solid #c8d4bd; border-radius: 5px; background: #fff; cursor: pointer; margin: 0; flex-shrink: 0; }
.task-checkbox:checked { background: var(--green); border-color: var(--green); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10l3 3 7-7' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.task-checkbox:disabled { opacity: .4; cursor: wait; }
.task-copy { flex: 1; min-width: 0; }
.task-name { border: 0; background: transparent; padding: 0; text-align: left; font-size: 12px; font-weight: 500; line-height: 1.6; color: var(--body); overflow-wrap: anywhere; }
.task-name:hover { color: var(--green); }
.task-row.done .task-name { text-decoration: line-through; color: #a4ac99; }
.task-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 6px; color: #9ca88e; font-size: 9px; }
.task-meta .text-button { font-size: 9px; color: #8d9b7c; }
.task-date { display: inline-flex; gap: 5px; align-items: center; color: #9ca58e; font-size: 10px; white-space: nowrap; }
.task-date.overdue { color: #b27e64; }
.task-date .icon { width: 13px; height: 13px; }
.priority-mark { color: #b88c69; display: inline-flex; align-items: center; gap: 4px; font-size: 9px; }
.priority-mark .icon { width: 11px; height: 11px; }
.mail-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .85fr); gap: 23px; }
.mail-empty { min-height: 372px; padding: 44px; }
.mail-empty .empty-illustration { width: 81px; height: 73px; border-radius: 20px; }
.mail-empty .empty-illustration .icon { width: 36px; height: 36px; }
.mail-empty h2 { font-size: 20px; }
.mail-empty p { max-width: 390px; }
.mail-steps { margin: 0; padding: 0; list-style: none; }
.mail-step { display: flex; gap: 11px; align-items: flex-start; padding: 0 0 23px; }
.mail-step:last-child { padding-bottom: 0; }
.mail-step .step-number { height: 25px; width: 25px; border-radius: 8px; font-size: 9px; }
.mail-step strong { font-size: 11px; font-weight: 550; display: block; line-height: 1.6; }
.mail-step p { font-size: 10px; color: #96a087; line-height: 1.8; margin-top: 5px; }
.mail-metrics { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 23px; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 13px; }
.mail-metric { padding: 20px; text-align: center; border-right: 1px solid var(--line); }
.mail-metric:last-child { border-right: 0; }
.mail-metric strong { display: block; font-size: 23px; font-weight: 500; color: #a6b198; }
.mail-metric span { display: block; margin-top: 7px; font-size: 10px; color: #9fa98f; }
.settings-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, .85fr); gap: 23px; align-items: start; }
.settings-form .panel-body { padding-bottom: 24px; }
.settings-heading { display: flex; gap: 12px; align-items: center; }
.settings-heading .workspace-monogram { width: 39px; height: 39px; font-size: 15px; border-radius: 11px; }
.settings-section { margin-top: 27px; padding-top: 25px; border-top: 1px solid var(--line); }
.settings-section h3 { font-size: 12px; margin-bottom: 17px; }
.settings-actions { padding: 17px 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.settings-actions span { color: #a1ac93; font-size: 9px; line-height: 1.6; }
.integration-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.integration-row:first-child { padding-top: 0; }
.integration-row:last-child { border-bottom: 0; padding-bottom: 0; }
.integration-name { display: flex; align-items: center; gap: 9px; font-size: 11px; }
.integration-name .icon { width: 15px; height: 15px; color: #a0ad91; }
.settings-note { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 17px; font-size: 10px; line-height: 1.8; color: #98a38b; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.field-grid > .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field > label, .field-label { font-size: 11px; font-weight: 500; color: #6e7b65; line-height: 1.4; }
.field > label .required { color: #a5b196; }
.field input:not([type="checkbox"]), .field select, .field textarea { width: 100%; min-height: 40px; background: #fff; border: 1px solid #dce3d2; padding: 10px 12px; color: var(--body); font-size: 12px; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: #adb6a2; }
.field textarea { min-height: 98px; resize: vertical; }
.field textarea.textarea-large { min-height: 200px; }
.field small, .field-help { color: #a0aa92; font-size: 10px; line-height: 1.7; }
.field input:disabled, .field select:disabled, .field textarea:disabled { background: #f5f7ef; color: #a7b09a; }
.field input[type="date"] { min-width: 0; }
.checkbox-field { display: flex; align-items: flex-start; gap: 9px; padding: 12px 14px; background: #faf8f2; border: 1px solid #eee9dc; border-radius: 9px; }
.checkbox-field input { accent-color: var(--green); width: 15px; height: 15px; margin: 2px 0 0; flex-shrink: 0; }
.checkbox-field label { color: #8f8268; font-size: 11px; line-height: 1.6; }
.checkbox-field small { display: block; color: #aaa18d; font-size: 10px; margin-top: 2px; }
.form-section-title { margin: 26px 0 16px; padding-top: 23px; border-top: 1px solid var(--line); display: flex; gap: 7px; align-items: center; font-size: 11px; font-weight: 600; color: #6f7d63; }
.form-section-title .icon { width: 14px; height: 14px; color: #98aa87; }
.form-section-title.first { margin-top: 0; padding-top: 0; border-top: 0; }
.form-fields { padding: 0; margin: 0; border: 0; min-width: 0; }
.form-error { padding: 11px 13px; margin-bottom: 18px; background: #fcf0ed; border: 1px solid #efd8d2; border-radius: 8px; color: #a15c51; font-size: 11px; line-height: 1.7; }
.form-error .text-button { display: block; margin-top: 6px; color: #97564d; }
.form-note { margin-top: 17px; display: flex; gap: 7px; align-items: flex-start; color: #9aa78b; font-size: 10px; line-height: 1.8; }
.form-note .icon { width: 13px; height: 13px; margin-top: 2px; }
.text-stats { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: #a2ad94; font-size: 9px; }
.editor-dialog { width: min(700px, calc(100vw - 40px)); max-height: calc(100dvh - 60px); margin: auto; padding: 0; border: 1px solid #dce4d2; border-radius: 19px; background: #fff; color: var(--ink); box-shadow: 0 30px 90px rgb(37 55 22 / 18%); overflow: auto; }
.editor-dialog::backdrop, .confirm-dialog::backdrop { background: rgb(36 49 28 / 28%); backdrop-filter: blur(3px); }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 25px 28px 22px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 2; }
.dialog-header h2 { font-size: 19px; letter-spacing: -.35px; line-height: 1.35; overflow-wrap: anywhere; }
.dialog-header p { margin-top: 6px; font-size: 10px; color: #a2ab96; line-height: 1.65; }
.dialog-body { padding: 25px 28px; }
.dialog-footer { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 17px 28px; border-top: 1px solid var(--line); background: #fafcf6; position: sticky; bottom: 0; z-index: 2; }
.dialog-footer .footer-right { display: flex; gap: 8px; margin-left: auto; }
.dialog-footer > .button-ghost { padding-left: 0; color: #9aa78a; }
.dialog-footer > .button-ghost:hover { color: #ac7668; background: transparent; }
.dialog-detail { width: min(740px, calc(100vw - 40px)); }
.detail-heading { display: flex; gap: 12px; align-items: center; padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 23px; }
.detail-heading .company-avatar { width: 49px; height: 49px; font-size: 16px; border-radius: 13px; }
.detail-title { flex: 1; min-width: 0; }
.detail-title h3 { font-size: 18px; line-height: 1.45; letter-spacing: -.25px; overflow-wrap: anywhere; }
.detail-title > div { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 25px; }
.detail-item dt { font-size: 10px; color: #a0ac93; margin-bottom: 7px; }
.detail-item dd { margin: 0; font-size: 12px; line-height: 1.75; color: #67765b; overflow-wrap: anywhere; }
.detail-item dd .icon-button { width: 23px; height: 23px; margin-left: 4px; vertical-align: middle; }
.detail-item.full { grid-column: 1 / -1; }
.detail-section { margin-top: 25px; padding-top: 21px; border-top: 1px solid var(--line); }
.detail-section-heading { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.detail-section-heading h3 { font-size: 12px; }
.detail-section p { color: #8b9a7c; font-size: 11px; line-height: 1.9; overflow-wrap: anywhere; }
.detail-section .pill { margin-bottom: 9px; }
.preserve-whitespace { white-space: pre-wrap; overflow-wrap: anywhere; }
.detail-source { display: flex; gap: 6px; align-items: center; margin-top: 10px; font-size: 10px; overflow-wrap: anywhere; }
.detail-source .icon { width: 13px; height: 13px; }
.detail-meta { margin-top: 26px; color: #a9b09e; font-size: 9px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.detail-task { border: 1px solid #e4ebda; border-radius: 8px; padding: 12px; margin-top: 8px; display: flex; gap: 8px; justify-content: space-between; align-items: center; }
.detail-task span { font-size: 10px; color: #95a586; }
.email-preview { border: 1px solid #e3e9d9; border-radius: 12px; overflow: hidden; background: #fff; }
.email-preview-meta { background: #f7faf2; border-bottom: 1px solid #e5ebdb; padding: 19px 22px; }
.email-preview-meta p { font-size: 11px; line-height: 1.8; color: #829273; }
.email-preview-meta p + p { margin-top: 5px; }
.email-preview-meta strong { font-weight: 500; color: #a3ad97; display: inline-block; min-width: 63px; }
.email-preview-body { padding: 25px 23px; color: #4f6041; font-size: 13px; line-height: 1.9; min-height: 200px; }
.email-preview-empty { color: #a8b19c; font-style: italic; }
.confirm-dialog { padding: 27px; border: 1px solid #e1e7d7; border-radius: 16px; box-shadow: 0 25px 80px rgb(43 60 25 / 18%); max-width: 410px; width: calc(100vw - 40px); color: var(--body); }
.confirm-dialog h2 { font-size: 17px; letter-spacing: -.3px; margin-bottom: 11px; }
.confirm-dialog p { font-size: 11px; color: #99a58c; line-height: 1.8; overflow-wrap: anywhere; }
.confirm-actions { display: flex; gap: 9px; justify-content: flex-end; margin-top: 23px; }
.toast-region { position: fixed; bottom: 24px; right: 24px; z-index: 100; max-width: calc(100vw - 40px); pointer-events: none; }
.toast { display: flex; gap: 10px; align-items: center; max-width: 450px; padding: 14px 15px; background: #fff; border: 1px solid #d9e5cc; border-radius: 12px; box-shadow: 0 9px 35px rgb(37 62 20 / 12%); color: #60774f; font-size: 11px; line-height: 1.65; pointer-events: auto; animation: toast-in .2s ease-out; }
.toast > .icon { width: 17px; height: 17px; color: #7d9e65; }
.toast.error { border-color: #ecd9d0; color: #a87662; }
.toast.error > .icon { color: #b8937c; }
.toast > span { flex: 1; }
.toast .icon-button { width: 25px; height: 25px; }
.boot-screen { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; background: #f8faf3; }
.brand-mark-large { width: 52px; height: 55px; border-radius: 16px; font-size: 34px; }
.boot-wordmark { font-size: 19px; letter-spacing: 4px; margin-top: 19px; font-weight: 600; }
.boot-wordmark span { display: block; margin-top: 7px; text-align: center; font-size: 8px; letter-spacing: 3px; color: #93a185; }
.loading-line { display: flex; align-items: center; justify-content: center; gap: 9px; font-size: 11px; color: #a0ac93; margin-top: 32px; }
.spinner { width: 14px; height: 14px; border: 1.5px solid #c9d5be; border-top-color: var(--green); border-radius: 50%; display: inline-block; animation: spin .8s linear infinite; }
.button-primary .spinner { border-color: rgb(255 255 255 / 35%); border-top-color: white; }
.auth-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); background: #fcfdf9; }
.auth-story { display: flex; flex-direction: column; justify-content: space-between; padding: 51px 62px; background: #e9efe1; overflow: hidden; position: relative; }
.auth-story .brand { padding: 0; position: relative; z-index: 1; }
.auth-story-center { position: relative; z-index: 1; padding: 70px 0 85px; max-width: 390px; }
.auth-story-center .eyebrow { color: #8c9c7b; letter-spacing: 1.6px; font-size: 9px; }
.auth-story-center h1 { font-size: clamp(30px, 3.2vw, 45px); font-weight: 500; line-height: 1.25; letter-spacing: -1.5px; color: #435c34; }
.auth-story-center > p { font-size: 12px; line-height: 1.9; margin-top: 23px; color: #859575; max-width: 320px; }
.auth-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.auth-tag { font-size: 9px; color: #849673; border: 1px solid #d8e2cd; background: #eff4e8; padding: 7px 10px; border-radius: 6px; }
.auth-story > small { position: relative; z-index: 1; font-size: 9px; color: #a0ae92; letter-spacing: .15px; }
.auth-art { position: absolute; width: 390px; height: 390px; right: -150px; bottom: -130px; opacity: .65; color: #ccd9bd; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 45px; }
.auth-card { width: 100%; max-width: 340px; }
.auth-card h2 { font-size: 26px; line-height: 1.3; letter-spacing: -.6px; font-weight: 550; }
.auth-card > p { font-size: 11px; line-height: 1.9; color: #9da991; margin-top: 13px; margin-bottom: 28px; }
.auth-card .field { margin-bottom: 18px; }
.auth-card .field input { height: 44px; background: #fff; }
.auth-card .button-block { margin-top: 23px; min-height: 42px; }
.auth-footnote { font-size: 9px; line-height: 1.9; text-align: center; color: #b0b9a5; margin-top: 23px; display: flex; align-items: flex-start; gap: 6px; justify-content: center; }
.auth-footnote .icon { width: 12px; height: 12px; margin-top: 2px; }
.auth-card .setup-badge { display: inline-flex; gap: 7px; align-items: center; font-size: 10px; padding: 8px 11px; border-radius: 7px; background: #eef4e6; color: #91a47e; margin-bottom: 21px; }
.setup-badge .icon { width: 15px; height: 15px; }
.error-screen .empty-illustration { margin-left: auto; margin-right: auto; }
.error-screen h1 { font-size: 22px; max-width: 440px; text-align: center; margin: 0 0 12px; }
.error-screen > p { text-align: center; max-width: 390px; color: #94a184; font-size: 12px; line-height: 1.8; margin: 0 0 23px; }
.noscript-message { position: fixed; z-index: 120; bottom: 0; margin: 0; width: 100%; background: #fff5e0; color: #8b7344; padding: 18px; text-align: center; }
.page-loading { min-height: 360px; display: flex; align-items: center; justify-content: center; }
.page-loading .loading-line { margin: 0; }
.inline-empty { font-size: 10px; color: #a3ae96; padding: 13px 0; line-height: 1.75; }
.link-muted { color: #8d9e7e; text-decoration: none; }
.link-muted:hover { text-decoration: underline; }
.stack-gap { margin-top: 23px; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

@media (min-width: 1600px) {
  :root { --sidebar-width: 254px; font-size: 15px; }
  .sidebar { padding-left: 22px; padding-right: 22px; }
  .content { padding-top: 41px; }
  .topbar { padding: 0 44px; }
}
@media (max-width: 1240px) {
  :root { --sidebar-width: 212px; }
  .sidebar { padding-left: 11px; padding-right: 11px; }
  .content { padding: 30px 26px 44px; }
  .topbar { padding: 0 26px; }
  .overview-grid { grid-template-columns: minmax(0, 1.3fr) minmax(265px, 1fr); gap: 17px; }
  .overview-column { gap: 17px; }
  .metric-grid { gap: 11px; }
  .metric-card { padding: 17px; }
  .metric-top { font-size: 10px; }
  .metric-icon { width: 24px; height: 24px; }
  .metric-value { font-size: 29px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-card, .campaign-card { padding: 21px; }
  .page-heading h1 { font-size: 26px; }
  .settings-layout { grid-template-columns: minmax(0, 1fr); }
  .settings-layout > aside { max-width: none; }
  .integration-row { padding-top: 14px; padding-bottom: 14px; }
  .auth-story { padding: 45px; }
}
@media (max-width: 1030px) {
  .overview-grid { grid-template-columns: minmax(0, 1fr); }
  .overview-column:last-child { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
  .metric-card { padding: 18px 20px; }
  .metric-value { margin-top: 9px; }
  .metric-note { margin-top: 8px; }
  .mail-layout { grid-template-columns: minmax(0, 1fr); }
  .mail-empty { min-height: 320px; padding: 35px; }
  .source-row { padding: 18px; gap: 12px; }
  .source-actions { flex-direction: column; }
  .source-actions .button { font-size: 9px; }
  .topbar-meta { display: none; }
  .topbar-actions { gap: 10px; }
  .toolbar-left { width: 100%; }
  .toolbar-right { margin-left: auto; }
}
@media (max-width: 800px) {
  :root { --sidebar-width: 230px; }
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; padding: 25px 16px 18px; z-index: 50; }
  .sidebar.open { transform: translateX(0); box-shadow: 10px 0 40px rgb(47 67 29 / 15%); }
  .mobile-close { display: grid; position: absolute; top: 29px; right: 11px; width: 29px; height: 29px; }
  .sidebar-backdrop.open { display: block; position: fixed; inset: 0; background: rgb(42 58 30 / 24%); z-index: 45; border: 0; border-radius: 0; padding: 0; }
  .mobile-menu { display: grid; }
  .main-area { margin-left: 0; width: 100%; }
  .topbar { height: 63px; padding: 0 22px 0 15px; }
  .breadcrumb { margin-right: auto; gap: 9px; }
  .breadcrumb > span:first-child { display: none; }
  .breadcrumb > .icon { display: none; }
  .content { padding: 28px 23px 40px; }
  .page-heading { margin-bottom: 23px; }
  .page-heading h1 { font-size: 26px; }
  .heading-actions { padding-top: 17px; }
  .metric-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .metric-card { padding: 16px 14px; }
  .metric-top { font-size: 9px; }
  .metric-icon { display: none; }
  .metric-value { font-size: 27px; margin-top: 14px; }
  .metric-note { font-size: 8px; line-height: 1.5; }
  .auth-story { padding: 35px; }
  .auth-main { padding: 35px; }
  .auth-story-center h1 { font-size: 34px; }
  .auth-story-center { padding-top: 60px; padding-bottom: 60px; }
}
@media (max-width: 600px) {
  .content { padding: 25px 17px 35px; }
  .topbar { padding-right: 14px; gap: 6px; }
  .topbar-actions { gap: 7px; }
  .topbar-divider { display: none; }
  .mail-status { font-size: 9px; padding: 7px 8px; gap: 5px; }
  .mail-status .icon { width: 12px; height: 12px; }
  .breadcrumb { font-size: 11px; }
  .page-heading { flex-wrap: wrap; gap: 14px; margin-bottom: 21px; }
  .page-heading > div:first-child { width: 100%; }
  .page-heading h1 { font-size: 26px; }
  .page-subtitle { font-size: 11px; margin-top: 8px; }
  .heading-actions { padding-top: 0; width: 100%; }
  .heading-actions .button { width: 100%; }
  .eyebrow { font-size: 8px; margin-bottom: 8px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 17px; }
  .metric-card { padding: 16px; }
  .metric-top { font-size: 10px; }
  .metric-icon { display: grid; width: 23px; height: 23px; }
  .metric-icon .icon { width: 13px; height: 13px; }
  .metric-value { font-size: 27px; margin-top: 9px; }
  .metric-note { font-size: 8px; margin-top: 9px; }
  .overview-column:last-child { grid-template-columns: 1fr; }
  .welcome-panel { padding: 23px; min-height: 183px; }
  .welcome-panel h2 { font-size: 21px; max-width: 255px; }
  .welcome-panel p { font-size: 10px; max-width: 245px; }
  .growth-art { width: 140px; height: 145px; right: -32px; opacity: .7; }
  .panel-header { padding: 20px 19px 18px; }
  .panel-header h2 { font-size: 13px; }
  .panel-body { padding: 0 19px 21px; }
  .panel-footer { padding: 13px 18px; font-size: 9px; line-height: 1.7; }
  .start-step { gap: 10px; }
  .step-copy strong { font-size: 10px; }
  .step-copy span { font-size: 9px; }
  .notice { font-size: 10px; gap: 8px; padding: 12px 13px; margin-bottom: 18px; }
  .notice .icon { width: 15px; height: 15px; }
  .toolbar { gap: 11px; }
  .toolbar-left { gap: 9px; }
  .search-field { max-width: none; min-width: 100%; }
  .filter-select { min-width: 0; max-width: none; flex: 1; font-size: 10px; }
  .toolbar-right { width: 100%; justify-content: space-between; }
  .card-grid { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .profile-card { padding: 23px; }
  .profile-role { min-height: 0; }
  .profile-topline { margin-bottom: 16px; }
  .profile-stats { margin-bottom: 21px; gap: 45px; }
  .profile-divider { margin: 20px 0 16px; }
  .add-card { min-height: 160px; padding: 23px; }
  .source-row { position: relative; flex-wrap: wrap; padding: 17px; gap: 11px; }
  .source-icon { width: 34px; height: 34px; border-radius: 9px; }
  .source-icon .icon { width: 17px; height: 17px; }
  .source-copy { flex-basis: calc(100% - 45px); }
  .source-title { align-items: flex-start; gap: 7px; }
  .source-title h2 { font-size: 12px; width: 100%; }
  .source-url { margin-top: 7px; font-size: 9px; }
  .source-details { gap: 9px; font-size: 9px; margin-top: 11px; }
  .source-keywords { font-size: 9px; }
  .source-actions { flex-direction: row; margin-left: 45px; padding-top: 3px; }
  .source-actions .button { font-size: 10px; }
  .task-row { flex-wrap: wrap; gap: 11px; padding: 17px; }
  .task-name { font-size: 11px; }
  .task-copy { flex-basis: calc(100% - 61px); }
  .task-row > .task-date { margin-left: 29px; font-size: 9px; margin-top: -3px; }
  .task-row > .icon-button { margin-left: auto; height: 22px; width: 26px; }
  .filter-tab { font-size: 10px; padding: 11px 12px; }
  .mail-empty { min-height: 320px; padding: 32px 23px; }
  .mail-empty h2 { font-size: 19px; }
  .mail-metric { padding: 17px 9px; }
  .mail-metric span { font-size: 9px; }
  .settings-layout { gap: 17px; }
  .field-grid { grid-template-columns: minmax(0, 1fr); gap: 17px; }
  .field input:not([type="checkbox"]), .field select, .field textarea { font-size: 16px; min-height: 43px; padding: 9px 11px; }
  .field label, .field-label { font-size: 11px; }
  .field small { font-size: 9px; }
  .settings-actions { padding: 17px 19px; }
  .settings-actions span { max-width: 150px; font-size: 9px; }
  .settings-actions .button { font-size: 10px; }
  .editor-dialog { width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; border: 0; }
  .dialog-header { padding: 21px 21px 18px; }
  .dialog-header h2 { font-size: 19px; }
  .dialog-body { padding: 22px 21px; }
  .dialog-footer { padding: 15px 19px; }
  .dialog-footer .button { font-size: 10px; padding: 10px 12px; }
  .dialog-footer > .button-ghost { padding-left: 0; padding-right: 0; }
  .detail-grid { gap: 20px 17px; }
  .detail-item dd { font-size: 11px; }
  .detail-title h3 { font-size: 17px; }
  .detail-heading { gap: 11px; }
  .detail-heading .company-avatar { width: 43px; height: 43px; border-radius: 12px; font-size: 13px; }
  .detail-source { font-size: 9px; line-height: 1.8; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-story { padding: 26px 30px; min-height: 174px; }
  .auth-story-center { padding: 25px 0 0; max-width: none; }
  .auth-story-center .eyebrow, .auth-story-center > p, .auth-tags, .auth-story > small { display: none; }
  .auth-story-center h1 { font-size: 25px; letter-spacing: -.65px; max-width: 310px; }
  .auth-art { width: 225px; height: 225px; right: -65px; bottom: -119px; }
  .auth-main { align-items: flex-start; padding: 34px 30px 45px; }
  .auth-card { max-width: 390px; }
  .auth-card h2 { font-size: 23px; }
  .auth-card > p { margin-top: 10px; margin-bottom: 24px; }
  .auth-card .field input { height: 46px; font-size: 16px; }
  .toast-region { bottom: 16px; right: 16px; left: 16px; max-width: none; }
  .toast { max-width: none; padding: 12px; font-size: 10px; }
  .data-table th:first-child, .data-table td:first-child { padding-left: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
