@font-face {
  font-family: "Noto Sans";
  src: url("assets/NotoSans-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans";
  src: url("assets/NotoSans-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
}
@font-face {
  font-family: "DM Serif Display";
  src: url("assets/DMSerifDisplay-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --forest: #203d32;
  --forest-deep: #172f26;
  --cream: #f6f4ef;
  --paper: #fffefb;
  --sage: #dce7d2;
  --green: #456951;
  --copper: #bc6444;
  --ink: #25352c;
  --muted: #727970;
  --line: #e6e6dc;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Noto Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 13px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:disabled { opacity: .55; cursor: default; }
a { color: inherit; text-decoration: none; }
button, select, input { outline-offset: 4px; }
:focus-visible { outline: 2px solid #bd744f; outline-offset: 4px; }
button svg, a svg { flex-shrink: 0; }
svg { display: block; }
button svg { width: 18px; height: 18px; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.16; }
h1 { font-size: 39px; letter-spacing: -.9px; }
h2 { font-size: 22px; letter-spacing: -.3px; }
h3 { font-size: 15px; line-height: 1.5; }
strong { font-weight: 600; }
[hidden] { display: none !important; }
::selection { background: #dce7d2; color: var(--forest); }
.skip-link { position: fixed; top: -80px; left: 260px; z-index: 100; background: var(--forest); color: white; padding: 12px 20px; border-radius: 6px; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.app-shell { min-height: 100vh; }

.sidebar { width: 244px; height: 100dvh; min-height: 560px; position: fixed; inset: 0 auto 0 0; z-index: 40; display: flex; flex-direction: column; background: var(--forest); color: #f3f2e9; padding: 33px 21px 19px; }
.brand { display: flex; align-items: center; width: 165px; height: 45px; margin: 0 0 33px 8px; }
.brand img { display: block; width: 100%; max-height: 52px; object-fit: contain; object-position: left center; filter: brightness(0) invert(.95); }
img.brand { object-fit: contain; object-position: left; }
.workspace-chip { display: flex; align-items: center; gap: 11px; padding: 13px 11px; border: 1px solid #4b6255; border-radius: 7px; margin-bottom: 31px; }
.workspace-avatar { width: 33px; height: 33px; border-radius: 6px; background: #dce7d2; color: var(--forest); display: grid; place-items: center; font-size: 12px; font-weight: 700; letter-spacing: -.5px; flex-shrink: 0; }
.workspace-chip strong { display: block; font-size: 12px; }
.workspace-chip small { display: block; color: #b9c7bd; font-size: 10px; line-height: 1.5; }
.nav-label { color: #a2b5a9; font-size: 9px; letter-spacing: 1.55px; text-transform: uppercase; padding-left: 13px; margin-bottom: 12px; }
.main-nav { display: flex; flex-direction: column; gap: 6px; }
.nav-item { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 12px 13px; border: 0; border-radius: 6px; background: transparent; color: #ced8d1; text-align: left; font-size: 12px; transition: color .18s, background .18s; }
.nav-item svg { width: 18px; height: 18px; opacity: .9; }
.nav-item:hover { color: white; background: #2c4a3d; }
.nav-item.active { background: #dce7d2; color: #263e31; font-weight: 600; }
.nav-count { margin-left: auto; font-size: 9px; font-weight: 600; background: #365244; color: #dfebdf; border-radius: 4px; padding: 1px 6px; line-height: 18px; }
.active .nav-count { background: #c8d7bb; color: var(--forest); }
.sidebar-bottom { margin-top: auto; padding-top: 30px; }
.sidebar-note { border: 1px solid #4b6255; border-radius: 7px; padding: 15px; margin-bottom: 26px; background: #284437; }
.sidebar-note > svg { width: 19px; height: 19px; color: #c8d6b3; margin-bottom: 10px; }
.sidebar-note > [data-icon] { display: block; margin-bottom: 10px; color: #c8d6b3; }
.sidebar-note strong { display: block; font-size: 11px; margin-bottom: 5px; }
.sidebar-note p { color: #c3cdc2; font-size: 10px; line-height: 1.75; }
.profile { display: flex; align-items: center; gap: 10px; padding: 18px 5px 10px; border-top: 1px solid #405b4b; }
.avatar { display: inline-grid; place-items: center; border-radius: 50%; width: 34px; height: 34px; background: #eee9db; color: #3e5545; font-weight: 600; font-size: 10px; flex-shrink: 0; }
.profile .avatar { width: 34px; height: 34px; background: #46634e; color: #edf0e5; }
.profile strong { display: block; font-size: 11px; }
.profile small { display: block; color: #b0c0b2; font-size: 9px; }
.powered { color: #9db2a4; font-size: 9px; margin: 10px 0 0 5px; letter-spacing: .25px; }
.main-shell { margin-left: 244px; min-height: 100vh; }
.topbar { height: 75px; padding: 0 38px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--paper); border-bottom: 1px solid var(--line); }
.breadcrumb { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 9px; }
.breadcrumb strong { color: var(--ink); font-weight: 400; }
.breadcrumb svg { width: 13px; height: 13px; color: #abb0a4; }
.topbar-right { display: flex; align-items: center; gap: 20px; }
.demo-pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #e0e5d7; background: #f3f5ed; padding: 4px 10px; border-radius: 100px; color: #53654b; font-size: 9px; font-weight: 600; white-space: nowrap; }
.demo-pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #7d945f; }
.icon-button { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 0; background: transparent; color: #728073; border-radius: 6px; }
.icon-button:hover { background: #eeeee5; color: var(--forest); }
.mobile-toggle { display: none; }
.demo-banner { display: flex; align-items: center; gap: 10px; padding: 10px 38px; background: #ecefe1; border-bottom: 1px solid #dfe4d3; color: #546147; font-size: 10px; }
.demo-banner > svg { width: 15px; height: 15px; flex-shrink: 0; }
.demo-banner > [data-icon] { display: block; flex-shrink: 0; }
.demo-banner > [data-icon] svg { width: 15px; height: 15px; }
.demo-banner > div { display: flex; gap: 6px; flex-wrap: wrap; }
.demo-banner strong { color: #455439; }
.demo-banner .text-button { margin-left: auto; white-space: nowrap; font-size: 10px; }
.text-button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: #4d6148; padding: 4px 0; font-size: 11px; font-weight: 600; }
.text-button:hover { color: #243d2e; text-decoration: underline; text-underline-offset: 3px; }
.text-button svg { width: 14px; height: 14px; }
.page-content { width: 100%; max-width: 1680px; margin: 0 auto; padding: 32px 38px 20px; }
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 27px; }
.eyebrow { color: #7e836e; font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.65px; margin-bottom: 8px; }
.page-header h1 { margin-bottom: 10px; }
.page-header p { color: var(--muted); font-size: 11px; }
.header-actions { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.button { min-height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 13px; border: 1px solid #d9ddcf; border-radius: 6px; font-size: 10px; font-weight: 600; line-height: 1.5; text-decoration: none; white-space: nowrap; transition: background .16s, border-color .16s, transform .16s; }
.button svg { width: 15px; height: 15px; }
.button.primary { color: #fffefb; background: var(--forest); border-color: var(--forest); }
.button.primary:hover { background: #31543e; border-color: #31543e; }
.button.secondary { background: var(--paper); color: #3b4b3d; }
.button.secondary:hover { background: #eceee3; border-color: #c2c9b8; }
.button.small { min-height: 30px; padding: 6px 10px; font-size: 9px; }
.period-control { display: flex; align-items: center; gap: 10px; }
.period-control label { color: #798070; font-size: 10px; }
.period-control select { min-height: 36px; padding: 7px 30px 7px 11px; border: 1px solid #dddfd3; border-radius: 6px; background: var(--paper); color: #43513e; font-size: 10px; cursor: pointer; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 25px; }
.metric { min-width: 0; position: relative; padding: 18px 19px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.metric.featured { background: #eaf0df; border-color: #dce5d0; }
.metric-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #68745e; font-size: 10px; margin-bottom: 15px; }
.metric-top svg { width: 16px; height: 16px; color: #7a896b; }
.metric-value { display: flex; align-items: baseline; gap: 6px; color: #2b3b2e; font-size: 29px; font-weight: 600; line-height: 1.2; letter-spacing: -1.2px; margin-bottom: 13px; white-space: nowrap; }
.metric-value small { font-size: 15px; font-weight: 400; letter-spacing: 0; }
.metric-bottom { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-height: 18px; }
.trend { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; color: #567543; font-size: 9px; }
.trend svg { width: 11px; height: 11px; }
.metric-bottom small { color: #8a8e80; font-size: 8px; }
.metric-bottom > div small { display: block; margin-top: 2px; }
.sparkline { width: 66px; height: 26px; margin-left: auto; color: #81a46b; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); align-items: stretch; gap: 21px; margin-bottom: 23px; }
.panel { min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 21px 23px 0; }
.panel-header .eyebrow { margin-bottom: 5px; font-size: 8px; }
.panel-header h2 { font-size: 22px; }
.panel-header p { margin-top: 6px; color: var(--muted); font-size: 10px; }
.panel-header > button { flex-shrink: 0; }
.chart-summary { display: flex; align-items: baseline; gap: 10px; padding: 15px 23px 0; }
.chart-summary strong { color: #324332; font-size: 24px; letter-spacing: -.8px; }
.chart-summary span { color: #6d815a; font-size: 9px; }
.chart-legend { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 15px; padding: 0 23px; margin-top: -17px; min-height: 19px; }
.panel-header .chart-legend { padding: 0; margin: 0; flex-shrink: 0; align-self: flex-end; padding-bottom: 3px; }
.legend-item { display: inline-flex; align-items: center; gap: 5px; color: #7b8173; font-size: 8px; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 2px; background: #afbf97; }
.dot.sage { background: #dce5ce; }
.dot.green { background: #657f50; }
.dot.copper { background: #bc6444; }
.chart-wrap { min-width: 0; padding: 17px 17px 6px 10px; }
.chart-wrap > svg { display: block; width: 100%; height: auto; overflow: visible; }
.axis-label { fill: #8e9485; font-family: var(--sans); font-size: 10px; }
.gridline { stroke: #eaece2; stroke-width: 1; stroke-dasharray: 4 5; }
.chart-bar { transition: opacity .18s; }
.chart-bar.previous, .chart-bar .previous { fill: #e0e8d5; }
.chart-bar.current, .chart-bar .current { fill: #688650; }
.chart-bar:hover { opacity: .76; }
.chart-hover { fill: #f2f4eb; }
.chart-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 23px; border-top: 1px solid #efefe6; color: #929687; font-size: 8px; }
.lex-feature { min-width: 0; position: relative; background: var(--forest); color: #f1f1e7; border: 1px solid var(--forest); border-radius: 9px; padding: 23px; overflow: hidden; display: flex; flex-direction: column; }
.lex-feature-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.lex-symbol { display: inline-flex; align-items: center; gap: 7px; color: #d8e5b8; font-size: 10px; font-weight: 600; letter-spacing: 1.3px; }
.lex-symbol svg { width: 21px; height: 21px; }
.tag { display: inline-flex; align-items: center; padding: 3px 6px; border: 1px solid #64816b; border-radius: 4px; color: #c2d8b4; font-size: 8px; line-height: 1.5; }
.lex-feature h2 { font-size: 29px; line-height: 1.14; color: #f5f3e8; max-width: 280px; margin-bottom: 11px; }
.lex-feature > p { font-size: 10px; line-height: 1.85; color: #bacabb; max-width: 280px; }
.lex-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin: 19px 0 16px; padding-bottom: 17px; border-bottom: 1px solid #46614d; }
.lex-stats > div + div { padding-left: 18px; border-left: 1px solid #46614d; }
.lex-stats strong { display: block; font-size: 21px; color: #e8edda; letter-spacing: -.6px; line-height: 1.3; }
.lex-stats small { color: #acc1aa; display: block; font-size: 8px; margin-top: 4px; }
.lex-preview-row { display: flex; align-items: center; gap: 9px; padding: 10px 0; margin: 0 0 14px; }
.lex-preview-row > svg { width: 17px; height: 17px; color: #b4c894; }
.lex-preview-row > div { min-width: 0; }
.lex-preview-row strong { display: block; font-size: 9px; font-weight: 400; color: #e0e8d8; }
.lex-preview-row small { display: block; font-size: 8px; color: #98b296; margin-top: 3px; }
.lex-preview-row .status { margin-left: auto; background: #385443; color: #cdddc0; border-color: #526b4f; font-size: 7px; padding: 3px 6px; }
.lex-feature .button { background: #dce7d2; border-color: #dce7d2; color: var(--forest); width: 100%; margin-top: auto; font-size: 10px; }
.lex-feature .button:hover { background: #edf0df; border-color: #edf0df; }
.lex-feature .button svg { margin-left: auto; }
.bottom-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(310px, 1fr); gap: 21px; align-items: start; }
.table-wrap { position: relative; overflow-x: auto; margin-top: 18px; scrollbar-width: thin; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
th { color: #8b907f; font-size: 8px; font-weight: 400; text-transform: uppercase; letter-spacing: .6px; background: #f7f7f1; padding: 11px 14px; }
th:first-child, td:first-child { padding-left: 23px; }
th:last-child, td:last-child { padding-right: 23px; }
td { color: #57624f; font-size: 10px; padding: 13px 14px; border-bottom: 1px solid #edeee5; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafbf5; }
.cell-title { color: #3d4b36; font-size: 10px; font-weight: 600; }
.cell-subtitle { display: block; color: #929585; font-size: 8px; margin-top: 2px; }
.table-link { border: 0; background: transparent; padding: 0; text-align: left; }
.table-link { color: #45543b; font-weight: 600; font-size: 10px; }
.table-link:hover { color: var(--copper); }
.table-link:hover .cell-title { color: var(--copper); }
.status { display: inline-flex; align-items: center; justify-content: center; gap: 4px; width: max-content; border: 1px solid #e5e7dd; border-radius: 4px; background: #f0f2e9; color: #6c7861; font-size: 8px; font-weight: 400; white-space: nowrap; padding: 3px 7px; line-height: 1.4; }
.status.green { background: #edf2e4; border-color: #e1e9d5; color: #627949; }
.status.amber { background: #fbf0df; border-color: #f0e3cf; color: #9c7d43; }
.status.neutral { background: #f0f0eb; border-color: #e7e8e0; color: #7d8073; }
.table-empty { text-align: center; padding: 32px 24px; color: var(--muted); }
.panel-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 23px; border-top: 1px solid #edeee5; color: #96998a; font-size: 8px; }
.activity-list { padding: 15px 23px 4px; }
.activity-item { display: flex; gap: 11px; position: relative; padding: 0 0 18px; }
.activity-item:not(:last-child)::after { content: ""; width: 1px; position: absolute; top: 31px; bottom: 4px; left: 14px; background: #e5e9db; }
.activity-icon { width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid #e3e8d7; border-radius: 7px; background: #f1f4e9; color: #8a9a74; flex-shrink: 0; }
.activity-icon svg { width: 13px; height: 13px; }
.activity-item strong { display: block; font-size: 9px; color: #4a5741; margin: 1px 0 2px; }
.activity-item .table-link { display: block; font-size: 9px; margin: 1px 0 2px; }
.activity-item p { font-size: 9px; color: #8a8f7f; line-height: 1.55; }
.activity-item small { display: block; margin-top: 3px; color: #a0a591; font-size: 8px; }
.goal-panel { margin: 0 23px 20px; padding: 13px 15px; background: #f3f5ec; border: 1px solid #e9edde; border-radius: 6px; }
.goal-top { display: flex; justify-content: space-between; gap: 15px; align-items: center; margin-bottom: 10px; }
.goal-top strong { font-size: 9px; color: #697756; }
.goal-top span { font-size: 10px; font-weight: 600; color: #697c4e; }
.progress-track, .category-track { height: 5px; border-radius: 3px; background: #e4e9d7; overflow: hidden; }
.progress-track i, .category-track i { display: block; height: 100%; border-radius: inherit; background: #8fa372; }
.goal-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 8px; color: #929d80; margin-top: 7px; }
.page-footer { margin-top: 26px; display: flex; justify-content: space-between; gap: 15px; font-size: 8px; color: #9ba090; padding-top: 14px; border-top: 1px solid #e6e8dc; }
.main-shell > .page-footer { margin: 6px 38px 24px; }

.sales-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 21px; margin-bottom: 23px; align-items: stretch; }
.category-list { padding: 22px 23px; }
.category-row { margin-bottom: 20px; }
.category-row:last-child { margin-bottom: 0; }
.category-row > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.category-row span { font-size: 11px; color: #647158; }
.category-row strong { font-size: 11px; color: #3f5136; }
.category-row small { display: block; font-size: 9px; color: #959e89; margin-top: 5px; }
.category-track { height: 6px; }
.category-row:nth-child(2) .category-track i { background: #9baf86; }
.category-row:nth-child(3) .category-track i { background: #becba5; }
.category-row:nth-child(4) .category-track i { background: #c39370; }
.insight-strip { display: flex; align-items: flex-start; gap: 13px; margin: 0 23px 23px; padding: 15px; border-radius: 6px; background: #f1f4e7; border: 1px solid #e2e8d2; }
.insight-strip svg { width: 19px; height: 19px; flex-shrink: 0; color: #91a277; margin-top: 2px; }
.insight-strip strong { color: #61744b; display: block; font-size: 10px; margin-bottom: 4px; }
.insight-strip p { font-size: 10px; line-height: 1.8; color: #84916f; }
.sales-layout + .panel { margin-top: 23px; }
.segments-content { display: flex; align-items: center; justify-content: space-evenly; gap: 23px; padding: 23px; }
.donut { display: block; width: 43%; max-width: 210px; flex-shrink: 0; }
.donut-value { fill: #375132; font-family: var(--serif); font-size: 34px; }
.segment-values { display: flex; flex-direction: column; gap: 22px; }
.segment-values > div > span { display: block; font-size: 9px; color: #8a967d; margin-bottom: 6px; }
.segment-values strong { display: block; color: #50683e; font-size: 19px; letter-spacing: -.5px; }
.segment-values small { font-size: 8px; color: #9aa78b; }
.page-content > .insight-strip { margin: 22px 0 0; }
.lex-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(310px, 1fr); gap: 21px; align-items: start; }
.lex-intro { display: flex; align-items: center; gap: 18px; padding: 18px 23px; margin-bottom: 23px; background: #eaf0df; border: 1px solid #dce5cf; border-radius: 7px; }
.lex-intro > span:first-child { display: flex; align-items: center; gap: 9px; font-size: 10px; font-weight: 600; color: #5d7548; flex-shrink: 0; }
.lex-intro > .status { margin-left: auto; }
.lex-intro p { font-size: 10px; color: #839370; line-height: 1.8; }
.search-field { display: flex; align-items: center; gap: 9px; min-width: 160px; background: var(--paper); border: 1px solid #dde1d4; border-radius: 6px; padding: 8px 12px; }
.search-field svg { width: 16px; height: 16px; color: #8b9680; flex-shrink: 0; }
.search-field input { width: 100%; min-width: 0; border: 0; background: transparent; outline: none; color: #4c5d40; font-size: 11px; padding: 1px 0; }
.search-field:focus-within { outline: 2px solid #bc835c; outline-offset: 2px; }
input::placeholder { color: #a1a695; }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 17px 23px; border-bottom: 1px solid var(--line); }
.filter-tabs button { background: transparent; border: 1px solid transparent; border-radius: 5px; padding: 6px 11px; font-size: 10px; color: #7c8870; }
.filter-tabs button:hover { background: #f1f3e9; }
.filter-tabs button.active { color: #50643d; background: #eaf0df; border-color: #dce7d0; font-weight: 600; }
.document-list { padding: 5px 0; }
.document-item + .document-item { border-top: 1px solid #ecefe4; }
.document-item.selected { background: #f0f4e6; box-shadow: inset 3px 0 #839969; }
.document-open { display: flex; align-items: center; gap: 12px; width: 100%; padding: 18px 23px; border: 0; background: transparent; text-align: left; }
.document-open:hover { background: #f5f7ee; }
.doc-icon { display: grid; place-items: center; height: 39px; width: 35px; color: #8d9e75; border: 1px solid #e1e8d4; background: #f0f4e7; border-radius: 6px; flex-shrink: 0; }
.doc-icon svg { width: 18px; height: 18px; }
.document-meta { min-width: 0; margin-right: auto; }
.document-meta strong { display: block; font-size: 11px; color: #445536; }
.document-meta small { display: block; font-size: 9px; color: #959e87; margin-top: 5px; }
.document-open > svg { width: 15px; height: 15px; color: #a0ac90; }
.document-detail { padding: 23px; }
.detail-top { display: flex; align-items: center; gap: 12px; margin-bottom: 19px; }
.detail-eyebrow { color: #919d7e; font-size: 9px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
.document-detail h2 { font-size: 24px; margin-bottom: 12px; }
.document-detail > p { color: #859276; font-size: 11px; line-height: 1.9; }
.document-detail > .button { width: 100%; margin-top: 10px; font-size: 9px; }
.document-detail > small.muted { display: block; margin-top: 12px; font-size: 8px; }
.checklist-title { font-size: 10px; color: #748567; margin-top: 20px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 20px; margin: 19px 0; padding: 17px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-grid dl { margin: 0; }
.detail-grid dt { color: #939b86; font-size: 9px; margin-bottom: 4px; }
.detail-grid dd { margin: 0; font-size: 10px; color: #536642; }
.checklist { padding: 0; margin: 18px 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.checklist li { display: flex; gap: 8px; align-items: flex-start; font-size: 10px; color: #7c8a6c; }
.checklist svg { width: 14px; height: 14px; color: #8c9f6d; flex-shrink: 0; margin-top: 1px; }
.callout { padding: 12px 14px; border: 1px solid #ece2ce; background: #faf5e9; border-radius: 6px; margin-top: 15px; }
.callout p { color: #948365; font-size: 10px; line-height: 1.85; }
.assistant-box { padding: 23px; margin-top: 21px; }
.assistant-box h2 { margin-bottom: 17px; }
.assistant-box .panel-header { padding: 0; margin-bottom: 17px; }
.assistant-box .panel-header h2 { margin-bottom: 0; }
.assistant-box .panel-header > svg { color: #879d70; }
.assistant-bubble { padding: 14px; border: 1px solid #e0e8d4; background: #f1f5e8; border-radius: 0 8px 8px; font-size: 11px; color: #778869; line-height: 1.9; }
.assistant-prompts { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
.assistant-prompts button { text-align: left; padding: 6px 9px; background: transparent; border: 1px solid #dce3d1; border-radius: 5px; font-size: 9px; color: #849674; }
.assistant-prompts button:hover { background: #eff3e6; color: #4c6639; }
.assistant-prompts button { display: inline-flex; align-items: center; gap: 7px; }
.assistant-prompts button svg { width: 13px; height: 13px; }
.assistant-input { display: flex; align-items: center; gap: 8px; padding: 7px; background: var(--paper); border: 1px solid #dfe5d6; border-radius: 6px; }
.assistant-input input { border: 0; padding: 4px 5px; background: transparent; font-size: 10px; width: 100%; min-width: 0; }
.assistant-input button { display: grid; place-items: center; background: var(--forest); color: #e8efda; border: 0; border-radius: 4px; width: 29px; height: 29px; flex-shrink: 0; }
.assistant-input button:hover { background: #456340; }
.assistant-input button svg { width: 14px; height: 14px; }
.assistant-response { padding: 14px; margin: 12px 0 0; border: 1px solid #e1e6d9; background: #f4f6ee; border-radius: 6px; color: #6c7d5c; font-size: 11px; line-height: 1.9; }
.muted { color: #8d9881; font-size: 9px; line-height: 1.8; }
.assistant-box > .muted { display: block; margin-top: 10px; }
.document-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.document-card { min-width: 0; padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.document-card > .doc-icon { margin-bottom: 17px; }
.document-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 21px; }
.document-card > .eyebrow { font-size: 8px; letter-spacing: 1px; margin-bottom: 9px; }
.document-card > .button { width: 100%; margin-top: 15px; }
.document-card h3 { color: #425435; margin-bottom: 7px; font-size: 13px; }
.document-card p { color: #8a977b; font-size: 10px; line-height: 1.8; }
.document-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 19px; padding-top: 15px; border-top: 1px solid var(--line); font-size: 9px; color: #9aab8b; }
.document-card-meta button { border: 0; background: transparent; font-size: 10px; color: #607b45; padding: 0; }
.document-card-meta button:hover { color: #2b4820; text-decoration: underline; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 20px; }
.toolbar .search-field { width: 290px; }
.toolbar .filter-tabs { border: 0; padding: 0; }
.panel > .toolbar { padding: 15px 23px 0; margin-bottom: 12px; }
.panel > .toolbar .search-field { width: 100%; }
.empty-state { padding: 50px 25px; text-align: center; font-size: 12px; color: #7f8d70; }
.empty-state > svg { width: 32px; height: 32px; margin: 0 auto 12px; color: #99a883; }
.empty-state h2 { margin-bottom: 9px; }

dialog.modal { width: min(620px, calc(100% - 32px)); max-height: calc(100dvh - 64px); padding: 0; background: var(--cream); border: 1px solid #d4dacb; border-radius: 11px; color: var(--ink); box-shadow: 0 22px 100px #1a2b2640; }
dialog::backdrop { background: #142c2570; backdrop-filter: blur(3px); }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 22px 25px; border-bottom: 1px solid #e2e6d8; }
.modal-header h2 { font-size: 25px; }
.modal-header .eyebrow { margin-bottom: 5px; }
.modal-content { padding: 24px; overflow-y: auto; }
.modal-footer { display: flex; align-items: center; justify-content: flex-end; gap: 9px; padding: 16px 24px; border-top: 1px solid #e0e5d6; }
.modal-footer > span { margin-right: auto; color: #8e9d80; font-size: 9px; }
.document-paper { background: var(--paper); border: 1px solid #e1e5d7; padding: 35px 34px; min-height: 320px; }
.paper-brand { font-size: 18px; font-weight: 600; letter-spacing: 3px; color: var(--forest); }
.paper-brand { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.paper-brand img { max-width: 132px; object-fit: contain; }
.paper-brand span { color: #a2ae95; font-size: 9px; letter-spacing: .5px; font-weight: 400; line-height: 1.8; text-align: right; }
.paper-label { display: inline-block; font-size: 8px; letter-spacing: 1px; text-transform: uppercase; color: #9aab82; background: #f0f4e7; border: 1px solid #e4ead9; padding: 3px 7px; margin: 15px 0 27px; }
.document-paper h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; color: #3d5330; margin-bottom: 17px; }
.document-paper p { font-size: 11px; line-height: 1.9; color: #839474; margin-bottom: 13px; }
.document-paper h4 { font-size: 11px; color: #6a7d57; margin-top: 22px; }
.document-paper ul { color: #7f916e; font-size: 11px; padding-left: 16px; line-height: 1.9; }
.document-paper .callout p { margin-bottom: 0; }
.paper-row { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid #e7eadf; font-size: 11px; color: #7d8e6c; }
.paper-row strong { color: #4b633c; }
.about-demo > .doc-icon { margin-bottom: 17px; }
.about-demo h3 { font-family: var(--serif); font-weight: 400; font-size: 25px; color: #3b5430; margin-bottom: 13px; }
.about-demo p { font-size: 12px; color: #7d8f6e; line-height: 1.9; margin-bottom: 15px; }
.toast { position: fixed; bottom: 26px; right: 26px; z-index: 90; max-width: min(430px, calc(100% - 40px)); padding: 13px 18px; border-radius: 7px; background: var(--forest); border: 1px solid #5f7654; color: #eff2e6; box-shadow: 0 5px 25px #2138241a; font-size: 11px; animation: toast-in .2s ease-out; }
.menu-overlay { position: fixed; inset: 0; background: #162b2660; backdrop-filter: blur(2px); z-index: 35; }
@keyframes toast-in { from { transform: translateY(7px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

@media (min-width: 1600px) {
  .page-content { padding: 40px 48px 24px; }
  .topbar, .demo-banner { padding-left: 48px; padding-right: 48px; }
  .metric { padding: 23px; }
  .metric-value { font-size: 34px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1.9fr) minmax(320px, 1fr); }
  .lex-feature { padding: 27px; }
  .lex-feature h2 { font-size: 35px; }
  .main-shell > .page-footer { margin-left: 48px; margin-right: 48px; }
}
@media (max-width: 1240px) {
  .sidebar { width: 218px; padding-left: 15px; padding-right: 15px; }
  .main-shell { margin-left: 218px; }
  .topbar, .demo-banner { padding-left: 26px; padding-right: 26px; }
  .page-content { padding-left: 26px; padding-right: 26px; }
  .page-header { align-items: flex-start; }
  .header-actions { align-self: center; }
  .period-control label { display: none; }
  .metrics { gap: 11px; }
  .metric { padding: 16px 13px 14px; }
  .metric-value { font-size: 26px; }
  .metric-bottom small { font-size: 7px; }
  .sparkline { width: 43px; height: 20px; }
  .dashboard-grid { gap: 16px; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); }
  .bottom-grid { gap: 16px; grid-template-columns: minmax(0, 1.3fr) minmax(275px, 1fr); }
  .panel-header { padding-left: 18px; padding-right: 18px; }
  .lex-feature { padding: 20px; }
  .lex-feature h2 { font-size: 27px; }
  .chart-legend { margin-top: 6px; justify-content: flex-start; }
  .chart-wrap { padding-top: 12px; }
  .lex-stats { margin-top: 15px; }
  .lex-preview-row { margin-bottom: 10px; }
  th:first-child, td:first-child { padding-left: 18px; }
  th:last-child, td:last-child { padding-right: 18px; }
  td { padding-left: 10px; padding-right: 10px; }
  .document-grid { gap: 15px; }
  .document-card { padding: 20px; }
  .main-shell > .page-footer { margin-left: 26px; margin-right: 26px; }
}
@media (max-width: 1050px) {
  .sidebar { width: 205px; }
  .main-shell { margin-left: 205px; }
  .brand { width: 150px; }
  h1 { font-size: 35px; }
  .page-header { flex-wrap: wrap; gap: 16px; }
  .header-actions { width: 100%; justify-content: space-between; }
  .metric-top { font-size: 9px; }
  .metric-value { font-size: 23px; }
  .metric-value small { font-size: 12px; }
  .metric-bottom { gap: 4px; }
  .sparkline { display: none; }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
  .lex-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 28px; }
  .lex-feature-top { grid-column: 1 / -1; margin-bottom: 15px; }
  .lex-feature h2 { grid-column: 1; max-width: none; font-size: 29px; }
  .lex-feature > p { grid-column: 1; max-width: none; }
  .lex-stats { grid-column: 2; grid-row: 2 / 4; margin-top: 0; }
  .lex-preview-row { grid-column: 1; margin-bottom: 0; }
  .lex-feature .button { grid-column: 2; align-self: center; margin-top: 0; }
  .bottom-grid { grid-template-columns: minmax(0, 1fr); }
  .sales-layout { grid-template-columns: minmax(0, 1fr); }
  .lex-layout { grid-template-columns: minmax(0, 1fr); }
  .document-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .activity-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
  .activity-item:not(:last-child)::after { display: none; }
  .chart-wrap { padding: 18px 18px 10px; }
  .chart-legend { margin-top: -19px; justify-content: flex-end; }
  .demo-banner { padding-top: 9px; padding-bottom: 9px; font-size: 9px; }
  .demo-banner > div { gap: 1px 5px; }
  .lex-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lex-stats > div + div { padding-left: 8px; }
}
@media (max-width: 760px) {
  .sidebar { transform: translateX(-100%); width: 244px; transition: transform .22s ease; min-height: 0; padding: 26px 21px 18px; }
  .sidebar.open, .sidebar.is-open, body.menu-open .sidebar { transform: translateX(0); }
  .main-shell { margin-left: 0; }
  .brand { width: 165px; margin-bottom: 25px; }
  .sidebar-note { margin-bottom: 18px; }
  .mobile-toggle { display: inline-grid; margin-left: -7px; }
  .topbar { height: 64px; padding: 0 22px; justify-content: flex-start; gap: 8px; }
  .breadcrumb { font-size: 10px; gap: 6px; }
  .topbar-right { margin-left: auto; gap: 12px; }
  .topbar-right > .icon-button { display: none; }
  .topbar .avatar { width: 29px; height: 29px; font-size: 9px; }
  .topbar-date { display: none; }
  .demo-pill { font-size: 8px; padding: 3px 7px; }
  .demo-banner { display: grid; grid-template-columns: 15px minmax(0, 1fr); padding: 11px 22px; align-items: flex-start; font-size: 9px; gap: 4px 8px; }
  .demo-banner > svg { margin-top: 2px; width: 14px; height: 14px; }
  .demo-banner > div { display: block; }
  .demo-banner strong { margin-right: 4px; }
  .demo-banner .text-button { display: inline-flex; grid-column: 2; justify-self: start; margin-left: 0; padding: 2px 0 0; font-size: 9px; }
  .page-content { padding: 25px 22px 20px; }
  .page-header { margin-bottom: 21px; gap: 18px; }
  h1 { font-size: 36px; }
  .page-header h1 { margin-bottom: 8px; }
  .page-header p { font-size: 11px; max-width: 420px; line-height: 1.8; }
  .eyebrow { font-size: 8px; letter-spacing: 1.5px; }
  .header-actions { gap: 8px; }
  .period-control { min-width: 0; }
  .period-control select { font-size: 10px; padding-right: 16px; }
  .header-actions .button { font-size: 10px; padding: 9px 11px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin-bottom: 19px; }
  .metric { padding: 16px; }
  .metric-top { font-size: 9px; margin-bottom: 13px; gap: 8px; }
  .metric-top svg { width: 15px; height: 15px; }
  .metric-value { font-size: 26px; margin-bottom: 10px; letter-spacing: -.9px; }
  .metric-bottom { gap: 4px; }
  .metric-bottom small { font-size: 7px; }
  .trend { font-size: 8px; }
  .dashboard-grid, .bottom-grid { gap: 19px; margin-bottom: 19px; }
  .panel-header { padding: 19px 18px 0; gap: 10px; }
  .panel-header h2 { font-size: 22px; }
  .panel-header .text-button { font-size: 9px; }
  .chart-summary { padding: 15px 18px 0; }
  .chart-summary strong { font-size: 23px; }
  .chart-summary span { font-size: 8px; }
  .chart-legend { padding: 0 18px; gap: 10px; margin-top: 8px; justify-content: flex-start; }
  .legend-item { font-size: 8px; }
  .chart-wrap { padding: 13px 9px 10px 3px; }
  .chart-wrap > svg { min-height: 155px; }
  .axis-label { font-size: 13px; }
  .chart-footer { padding: 11px 18px; font-size: 7px; }
  .lex-feature { padding: 23px; gap: 0 22px; }
  .lex-feature h2 { font-size: 27px; }
  .lex-feature > p { font-size: 9px; }
  .lex-preview-row strong { font-size: 8px; }
  .lex-preview-row .status { display: none; }
  .lex-stats small { font-size: 7px; }
  .lex-stats > div + div { padding-left: 10px; }
  .lex-feature .button { font-size: 9px; }
  .table-wrap { margin-top: 15px; }
  .table-wrap table { min-width: 500px; }
  .panel-footer { padding: 12px 18px; font-size: 8px; }
  .activity-list { display: flex; flex-direction: column; gap: 0; padding: 19px 18px 0; }
  .activity-item { gap: 12px; padding-bottom: 21px; }
  .activity-item:not(:last-child)::after { display: block; }
  .activity-item strong { font-size: 10px; }
  .activity-item p { font-size: 10px; }
  .activity-item small { font-size: 8px; }
  .activity-item .table-link { font-size: 10px; }
  .goal-panel { margin: 0 18px 18px; }
  .page-footer { margin-top: 21px; padding-top: 16px; font-size: 7px; gap: 12px; }
  .main-shell > .page-footer { margin-left: 22px; margin-right: 22px; }
  .sales-layout, .lex-layout { gap: 19px; }
  .document-grid { gap: 12px; }
  .document-card { padding: 18px; }
  .document-card h3 { font-size: 12px; }
  .document-card p { font-size: 9px; }
  .document-card-meta { flex-wrap: wrap; gap: 5px; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .toolbar .search-field { width: 100%; }
  .toolbar .filter-tabs { flex-wrap: nowrap; overflow-x: auto; }
  .toolbar .filter-tabs button { white-space: nowrap; }
  .search-field { padding: 10px 12px; }
  .document-open { padding: 16px 18px; gap: 10px; }
  .document-meta strong { font-size: 10px; }
  .document-meta small { font-size: 8px; }
  .document-open .status { font-size: 7px; padding: 3px 5px; }
  .filter-tabs { padding: 15px 18px; }
  .filter-tabs button { padding: 6px 8px; font-size: 9px; }
  .document-detail, .assistant-box { padding: 20px; }
  .lex-intro { flex-wrap: wrap; gap: 10px; padding: 16px 18px; margin-bottom: 19px; }
  .lex-intro p { order: 3; width: 100%; }
  .segments-content { gap: 16px; padding: 23px 18px; }
  .segment-values strong { font-size: 17px; }
  .segment-values > div > span { font-size: 8px; }
  .panel > .toolbar { padding-left: 18px; padding-right: 18px; }
  .skip-link { left: 15px; }
  .toast { right: 20px; bottom: 20px; font-size: 10px; padding: 13px 15px; }
  dialog.modal { max-height: calc(100dvh - 34px); }
  .modal-header { padding: 19px; }
  .modal-header h2 { font-size: 22px; }
  .modal-content { padding: 16px; }
  .modal-footer { padding: 14px 16px; }
  .document-paper { padding: 25px 20px; }
}
@media (max-width: 460px) {
  .topbar, .demo-banner { padding-left: 18px; padding-right: 18px; }
  .page-content { padding-left: 18px; padding-right: 18px; }
  .topbar-right { gap: 8px; }
  .breadcrumb { font-size: 9px; }
  .breadcrumb > span:first-child { display: none; }
  .topbar .demo-pill { font-size: 7px; }
  h1 { font-size: 34px; }
  .metric { padding: 15px 13px 13px; }
  .metric-value { font-size: 25px; }
  .metric.featured .metric-value { font-size: 21px; letter-spacing: -.8px; }
  .metric-top { font-size: 8px; }
  .metric-top svg { width: 14px; height: 14px; }
  .metric-bottom { flex-wrap: wrap; }
  .metric-bottom small { font-size: 6.8px; }
  .lex-feature { display: flex; flex-direction: column; padding: 24px; }
  .lex-feature-top { margin-bottom: 19px; }
  .lex-feature h2 { font-size: 33px; max-width: 260px; margin-bottom: 13px; }
  .lex-feature > p { font-size: 10px; max-width: 290px; }
  .lex-stats { margin: 23px 0 14px; padding-bottom: 17px; }
  .lex-stats strong { font-size: 23px; }
  .lex-stats small { font-size: 9px; }
  .lex-stats > div + div { padding-left: 13px; }
  .lex-preview-row { margin-bottom: 15px; }
  .lex-preview-row strong { font-size: 10px; }
  .lex-preview-row small { font-size: 8px; }
  .lex-preview-row .status { display: inline-flex; font-size: 7px; }
  .lex-feature .button { font-size: 10px; min-height: 38px; }
  .document-grid { grid-template-columns: minmax(0, 1fr); }
  .document-card { padding: 22px; }
  .document-card h3 { font-size: 14px; }
  .document-card p { font-size: 11px; }
  .document-card-meta { flex-wrap: nowrap; }
  .document-open { gap: 8px; }
  .document-open > svg { width: 12px; }
  .document-open .doc-icon { width: 29px; height: 35px; }
  .document-open .status { max-width: 65px; white-space: normal; text-align: center; }
  .page-footer { flex-direction: column; gap: 4px; }
  .main-shell > .page-footer { margin-left: 18px; margin-right: 18px; }
  .modal-footer { flex-wrap: wrap; }
  .modal-footer > span { width: 100%; font-size: 8px; }
  .segments-content { gap: 13px; }
  .segment-values strong { font-size: 15px; }
  .segment-values { gap: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
