@charset "UTF-8";

:root {
  --forest: #3b4f3b;
  --forest-dark: #304230;
  --forest-muted: #73816a;
  --cream: #fefcec;
  --paper: #fffef5;
  --peach: #ea8f69;
  --peach-light: #f3c4a8;
  --ink: #28372b;
  --muted: #616e5e;
  --line: #e1e2d3;
  --surface: #f2f2e7;
  --sidebar-width: 238px;
  font-family: "Avenir Next", Avenir, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button:disabled { opacity: .5; cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { outline-color: var(--forest); }
:focus-visible { outline: 2px solid var(--peach); outline-offset: 3px; }
button { border: 0; background: none; }
input, select, textarea { min-width: 0; }
svg { display: block; flex-shrink: 0; }
img { max-width: 100%; }
h1, h2, h3, p { margin: 0; }
.hidden, [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; }

.app-shell, .app { min-height: 100vh; }
.sidebar { width: var(--sidebar-width); height: 100vh; height: 100dvh; position: fixed; inset: 0 auto 0 0; z-index: 40; display: flex; flex-direction: column; background: var(--forest); color: var(--cream); padding: 35px 18px 20px; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 14px; }
.brand-logo { width: 148px; height: auto; object-fit: contain; }
.brand-mark { width: 40px; height: 40px; border: 11px solid var(--peach); border-radius: 50%; transform: rotate(-9deg); }
.brand-wordmark, .brand-name { font-size: 24px; font-weight: 800; line-height: .96; letter-spacing: -1.4px; }
.brand small, .brand-subtitle { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 2px; font-weight: 600; opacity: .65; margin-top: 10px; }
.workspace-switcher { margin: 36px 4px 22px; padding: 12px; display: flex; align-items: center; gap: 10px; border: 1px solid #77857166; border-radius: 5px; text-align: left; }
.workspace-switcher .icon { color: var(--peach); }
.workspace-name { font-size: 14px; font-weight: 600; }
.workspace-label { font-size: 12px; color: #bdc6b2; }
.nav-label, .nav-heading, .sidebar-label { margin: 23px 14px 10px; color: #b7c1ab; font-size: 12px; font-weight: 650; letter-spacing: 1.7px; text-transform: uppercase; }
.nav, .sidebar-nav { display: flex; flex-direction: column; gap: 5px; }
.nav-item, .nav-link { display: flex; align-items: center; gap: 12px; padding: 11px 14px; width: 100%; min-height: 42px; text-align: left; color: #e1e6d6; border-radius: 4px; font-size: 14px; font-weight: 500; transition: background .18s, color .18s; }
.nav-item svg, .nav-link svg { width: 17px; height: 17px; opacity: .8; }
.nav-item:hover, .nav-link:hover { background: #fefcec0c; color: #fff; }
.nav-item.active, .nav-link.active { background: var(--cream); color: var(--forest); font-weight: 700; }
.nav-item.active svg, .nav-link.active svg { opacity: 1; }
.nav-badge, .nav-count { margin-left: auto; font-size: 12px; border-radius: 3px; padding: 1px 6px; background: #fefcec16; color: #e4e9d9; }
.active .nav-count, .active .nav-badge { color: var(--forest); background: #dfe5d2; }
.sidebar-footer { margin-top: auto; padding-top: 24px; }
.sidebar-note { margin: 14px 14px 24px; padding-top: 18px; border-top: 1px solid #a7b29a30; color: #b9c3ae; font-size: 12px; line-height: 1.7; }
.profile, .user-profile { display: flex; gap: 10px; align-items: center; margin: 0 12px; padding-top: 18px; border-top: 1px solid #b7c1ab30; }
.profile-name { font-size: 14px; font-weight: 600; }
.profile-role { font-size: 12px; color: #b9c3ae; margin-top: 2px; }
.avatar, .profile-avatar { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--peach-light); color: var(--forest); font-size: 13px; font-weight: 700; flex-shrink: 0; }
.profile > svg, .profile > .icon { margin-left: auto; }
.main, .main-content, .workspace { margin-left: var(--sidebar-width); min-width: 0; }
.topbar { display: flex; align-items: center; gap: 20px; min-height: 76px; padding: 0 38px; border-bottom: 1px solid var(--line); }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 15px; }
.topbar-right { margin-left: auto; }
.breadcrumb, .breadcrumbs { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.breadcrumb strong, .breadcrumbs strong { font-weight: 500; color: var(--ink); }
.topbar-search, .search-box, .search-field { display: flex; align-items: center; gap: 9px; }
.topbar-search { margin-left: auto; color: var(--muted); font-size: 13px; }
.topbar-search input { border: 0; background: transparent; width: 160px; font-size: 13px; color: var(--ink); padding: 9px 0; }
.topbar-search input:focus { outline: 0; }
kbd { font-family: inherit; padding: 3px 5px; font-size: 12px; border: 1px solid var(--line); color: var(--muted); border-radius: 3px; }
.topbar-divider { width: 1px; height: 22px; background: var(--line); }
.icon-button, .icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 4px; position: relative; }
.icon-button:hover, .icon-btn:hover { background: #e9eddb; }
.icon-button svg, .icon-btn svg { width: 17px; height: 17px; }
.notification-dot { position: absolute; right: 7px; top: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--peach); box-shadow: 0 0 0 2px var(--cream); }
.mobile-menu, .menu-toggle { display: none; }
.page, #page-content, .page-content { padding: 35px 38px 42px; max-width: 1720px; margin: auto; }
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.eyebrow { font-size: 12px; font-weight: 650; letter-spacing: 1.8px; text-transform: uppercase; color: var(--muted); margin-bottom: 9px; }
h1 { font-size: clamp(28px, 2.5vw, 38px); line-height: 1.2; letter-spacing: -1.5px; font-weight: 650; }
.page-subtitle, .page-header p { font-size: 14px; line-height: 1.65; color: var(--muted); margin-top: 9px; }
.page-header-actions, .header-actions, .actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.button, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); padding: 10px 14px; min-height: 37px; border-radius: 4px; background: transparent; color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.4; transition: background .18s, transform .18s; white-space: nowrap; }
.button svg, .btn svg { width: 14px; height: 14px; }
.button:hover, .btn:hover { background: #e8ecd9; }
.button:active, .btn:active { transform: translateY(1px); }
.btn-primary, .button-primary, .btn.primary { background: var(--peach); border-color: var(--peach); color: #2e3e2e; }
.btn-primary:hover, .button-primary:hover, .btn.primary:hover { background: #e78057; border-color: #e78057; }
.btn-secondary, .button-secondary, .btn.secondary { background: var(--paper); }
.btn-secondary:hover, .button-secondary:hover, .btn.secondary:hover { background: #f2f3e5; }
.btn-ghost, .button-ghost, .btn.ghost { border-color: transparent; background: transparent; }
.btn-sm, .button-sm { min-height: 30px; padding: 6px 10px; font-size: 12px; }
.text-link, .link-button { color: var(--forest); display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 0; }
.text-link:hover, .link-button:hover { text-decoration: underline; }
.text-link svg, .link-button svg { width: 12px; height: 12px; }

.metrics-grid, .metric-grid, .stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.metric-card, .stat-card { border: 1px solid var(--line); background: var(--paper); border-radius: 5px; padding: 21px 20px 18px; min-width: 0; }
.metric-top, .stat-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.metric-label, .stat-label { color: #6e7868; font-size: 12px; font-weight: 550; }
.metric-icon { width: 28px; height: 28px; background: #e9eedf; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--forest); }
.metric-icon svg { width: 13px; height: 13px; }
.metric-value, .stat-value { font-size: 31px; font-weight: 600; line-height: 1.3; letter-spacing: -1.3px; margin: 9px 0 8px; font-variant-numeric: tabular-nums; }
.metric-bottom, .metric-note, .stat-note { display: flex; align-items: center; gap: 7px; color: #92978b; font-size: 12px; }
.trend, .metric-trend { font-weight: 650; color: #52784a; }
.trend svg, .metric-trend svg { display: inline; width: 11px; height: 11px; }
.trend.neutral { color: #858b7c; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(290px, 1fr); gap: 22px; align-items: stretch; margin-bottom: 22px; }
.bottom-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; }
.panel, .card { border: 1px solid var(--line); background: var(--paper); border-radius: 5px; min-width: 0; overflow: hidden; }
.panel-header, .card-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 22px 23px 18px; }
.panel-header h2, .card-header h2, .panel-title { font-size: 14px; font-weight: 650; letter-spacing: -.3px; }
.panel-header p, .card-header p { margin-top: 5px; font-size: 12px; color: var(--muted); }
.panel-header .text-link { white-space: nowrap; }
.panel-body { padding: 0 23px 23px; }
.count-label { color: var(--muted); font-weight: 400; font-size: 12px; margin-left: 5px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: left; }
th { font-size: 12px; font-weight: 550; color: #858b7e; padding: 11px 20px; background: #f7f7ec; border-top: 1px solid #e9eadd; border-bottom: 1px solid #e9eadd; white-space: nowrap; }
td { padding: 15px 20px; border-bottom: 1px solid #e9eadd; color: #46513f; font-variant-numeric: tabular-nums; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .15s; }
tbody tr[data-id], tbody tr[data-order], tbody tr[data-account], .clickable-row { cursor: pointer; }
tbody tr:hover { background: #f5f5e8; }
.table-primary, .cell-title { display: block; color: var(--ink); font-size: 13px; font-weight: 600; }
.table-secondary, .cell-subtitle { display: block; color: #92978a; font-size: 12px; margin-top: 4px; }
.cell-customer, .customer-cell, .account-cell { display: flex; align-items: center; gap: 10px; }
.customer-avatar, .account-avatar { display: inline-flex; align-items: center; justify-content: center; width: 29px; height: 29px; flex-shrink: 0; background: #e7e9da; color: var(--forest); font-size: 12px; border-radius: 4px; font-weight: 700; }
.cell-right, .text-right { text-align: right; }
.amount { font-weight: 600; color: var(--ink); white-space: nowrap; }
.badge, .status-badge, .pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 3px; padding: 4px 7px; font-size: 11px; font-weight: 600; white-space: nowrap; background: #e9edde; color: #607453; }
.badge-dot, .status-dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.badge.confirmed, .badge.active, .badge.green, .status-confirmed, .status-active { background: #e8eedf; color: #5c7a4d; }
.badge.pending, .badge.proposal, .badge.yellow, .status-pending { background: #f5edd4; color: #9b7b35; }
.badge.new, .badge.blue, .status-new { background: #e3ebed; color: #547782; }
.badge.completed, .badge.gray, .status-completed { background: #ebeee4; color: #79816f; }
.badge.overdue, .badge.red, .status-overdue { background: #f6e2d7; color: #ad684b; }
.table-footer { display: flex; align-items: center; justify-content: space-between; padding: 13px 22px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }

.tasks-panel, .followups-panel { position: relative; background: var(--peach-light); border-color: #efb698; overflow: hidden; }
.tasks-panel::before, .followups-panel::before { content: ""; position: absolute; width: 160px; height: 160px; border: 39px solid #e79b7550; border-radius: 48% 50% 46% 49%; transform: rotate(-24deg); right: -59px; top: -59px; pointer-events: none; }
.tasks-panel .panel-header, .followups-panel .panel-header { position: relative; padding-bottom: 13px; }
.tasks-panel .panel-header p, .followups-panel .panel-header p { color: #806e58; }
.task-list { padding: 0 23px; position: relative; }
.task-item, .task-row { display: flex; align-items: flex-start; gap: 11px; padding: 14px 0; border-bottom: 1px solid #b57b5833; }
.task-item:last-child, .task-row:last-child { border-bottom: 0; }
.task-check { display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; width: 16px; height: 16px; border: 1px solid #997f62; border-radius: 50%; flex-shrink: 0; }
.task-check:hover { background: #fefcec70; }
.task-check svg { width: 10px; height: 10px; }
.task-item.done .task-check, .task-row.done .task-check { background: var(--forest); border-color: var(--forest); color: var(--cream); }
.task-item.done .task-title, .task-row.done .task-title { text-decoration: line-through; opacity: .6; }
.task-content { min-width: 0; flex: 1; }
.task-title { font-size: 13px; font-weight: 600; line-height: 1.5; }
.task-meta, .task-subtitle { display: flex; gap: 8px; align-items: center; font-size: 12px; color: #8b735b; margin-top: 5px; }
.task-date, .task-time { font-size: 12px; color: #7c664e; white-space: nowrap; margin-left: auto; }
.task-date.overdue { color: #a35f3c; font-weight: 650; }
.tasks-panel .panel-footer, .followups-panel .panel-footer { padding: 12px 23px 20px; position: relative; }
.tasks-panel .text-link { font-weight: 700; }
.task-empty { padding: 28px 0; text-align: center; font-size: 14px; color: #6f7058; }

.pipeline-summary { display: flex; align-items: baseline; gap: 10px; padding: 0 23px 17px; }
.pipeline-value { font-size: 26px; font-weight: 600; letter-spacing: -1px; }
.pipeline-summary span { color: var(--muted); font-size: 12px; }
.pipeline-bar { height: 12px; display: flex; gap: 4px; margin: 0 23px 20px; }
.pipeline-bar > * { border-radius: 2px; background: var(--forest); min-width: 8px; }
.pipeline-bar > :nth-child(2) { background: #8f9a74; }
.pipeline-bar > :nth-child(3) { background: #c3cba8; }
.pipeline-bar > :nth-child(4) { background: var(--peach); }
.pipeline-legend { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); padding: 0 23px 23px; gap: 9px; }
.legend-dot { width: 6px; height: 6px; display: inline-block; border-radius: 2px; background: var(--forest); margin-right: 5px; }
.legend-item { font-size: 12px; color: var(--muted); }
.legend-item strong { display: block; color: var(--ink); font-size: 13px; font-weight: 600; margin-top: 6px; }
.store-list { padding: 0 23px 8px; }
.store-row, .location-row { display: flex; align-items: center; gap: 11px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.store-row:last-child, .location-row:last-child { border: 0; }
.store-icon { width: 30px; height: 30px; border: 1px solid var(--line); background: #f4f4e8; display: inline-flex; align-items: center; justify-content: center; border-radius: 4px; color: var(--forest); }
.store-icon svg { width: 14px; height: 14px; }
.store-name { font-size: 13px; font-weight: 600; }
.store-address, .store-meta { font-size: 12px; color: var(--muted); margin-top: 3px; }
.store-stats { margin-left: auto; text-align: right; }
.store-stats strong { display: block; font-size: 13px; font-weight: 600; }
.store-stats span { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }
.page-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 25px; font-size: 12px; color: #92998a; }

.toolbar, .list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 17px 21px; border-bottom: 1px solid var(--line); }
.toolbar-left, .toolbar-right { display: flex; align-items: center; gap: 10px; }
.search-box, .search-field { padding: 9px 11px; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; color: var(--muted); }
.search-box input, .search-field input { border: 0; background: transparent; outline: 0; font-size: 13px; width: 190px; color: var(--ink); }
.search-box svg, .search-field svg { width: 14px; height: 14px; }
.filter-select { background: var(--paper); border: 1px solid var(--line); border-radius: 4px; color: #66725d; font-size: 13px; padding: 9px 28px 9px 11px; }
.tabs, .tab-list { display: flex; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); padding: 0 22px; }
.tab { padding: 15px 0 12px; font-size: 13px; border-bottom: 2px solid transparent; color: var(--muted); }
.tab.active { border-color: var(--forest); color: var(--forest); font-weight: 650; }
.empty-state { text-align: center; padding: 64px 25px; color: var(--muted); }
.empty-state svg { margin: 0 auto 15px; color: var(--forest-muted); }
.empty-state h3 { color: var(--ink); font-size: 17px; margin-bottom: 8px; }
.empty-state p { font-size: 14px; line-height: 1.6; }
.empty-state .btn { margin-top: 20px; }
.kanban { display: grid; grid-template-columns: repeat(4,minmax(210px,1fr)); gap: 17px; overflow-x: auto; padding-bottom: 12px; }
.kanban-column { min-width: 0; background: #eeefe1; border: 1px solid #e3e6d7; padding: 14px; border-radius: 5px; }
.kanban-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 8px; font-size: 13px; font-weight: 650; }
.kanban-card { background: var(--paper); padding: 17px; border: 1px solid #e0e3d4; border-radius: 4px; margin-top: 10px; cursor: pointer; }
.kanban-card:hover { border-color: #a4b095; }
.kanban-card h3 { font-size: 14px; font-weight: 650; }
.kanban-card p { font-size: 12px; color: var(--muted); margin-top: 7px; line-height: 1.6; }
.kanban-card strong { display: block; font-size: 19px; margin-top: 15px; }
.kanban-card footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 13px; padding-top: 11px; font-size: 12px; color: var(--muted); }
.locations-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.location-card { padding: 24px; }
.location-card h2 { font-size: 17px; margin: 15px 0 7px; }
.location-card p { font-size: 13px; color: var(--muted); line-height: 1.7; }
.location-card .location-stats { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 17px; }
.settings-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.settings-card { padding: 24px; }
.settings-card h2 { font-size: 16px; margin-bottom: 10px; }
.settings-card p { font-size: 14px; line-height: 1.7; color: var(--muted); margin-bottom: 20px; }

dialog { border: 1px solid var(--line); border-radius: 8px; background: var(--cream); color: var(--ink); padding: 0; box-shadow: 0 24px 90px #25342429; width: min(560px,calc(100% - 32px)); max-height: calc(100vh - 48px); }
dialog::backdrop { background: #20301e5e; backdrop-filter: blur(3px); }
.record-dialog { width: min(640px,calc(100% - 32px)); }
.modal-content { padding: 28px; }
.modal-header, .dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 25px; }
.modal-header h2, .dialog-header h2 { font-size: 23px; font-weight: 650; letter-spacing: -.7px; }
.modal-header p, .dialog-header p { margin-top: 6px; color: var(--muted); font-size: 13px; }
.dialog-body { padding: 26px; }
.dialog-header { padding: 26px 26px 0; }
.modal-content .dialog-header { padding: 0; }
.modal-footer, .dialog-footer, .form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding-top: 24px; margin-top: 23px; border-top: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 16px; }
.form-field, .field { display: flex; flex-direction: column; gap: 7px; }
.form-grid label, .form-field label, .field label { display: flex; flex-direction: column; gap: 7px; font-size: 12px; font-weight: 600; color: #6a755e; }
.form-grid input, .form-grid select, .form-grid textarea, .form-field input, .form-field select, .form-field textarea, .field input, .field select, .field textarea { width: 100%; background: var(--paper); border: 1px solid #d5dbc9; border-radius: 4px; padding: 10px 11px; min-height: 38px; color: var(--ink); font-size: 14px; font-weight: 400; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { outline: 2px solid #9aaa853d; outline-offset: 1px; border-color: #97a486; }
.form-grid textarea { min-height: 90px; resize: vertical; }
.form-grid .full, .form-grid .full-width, .span-2 { grid-column: 1 / -1; }
.field-hint { font-size: 12px; color: var(--muted); line-height: 1.6; }
.detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 19px; padding: 20px 0; }
.detail-label { font-size: 12px; color: var(--muted); display: block; margin-bottom: 6px; }
.detail-value { font-size: 13px; font-weight: 600; }
.record-section { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.record-section h3 { font-size: 14px; margin-bottom: 10px; }
.record-section p { font-size: 14px; line-height: 1.8; color: #738067; }
.toast, #toast { position: fixed; left: calc(50% + 119px); bottom: 25px; transform: translateX(-50%); background: var(--forest); color: var(--cream); border: 1px solid #5b6e4f; border-radius: 5px; box-shadow: 0 8px 30px #2b3d2320; padding: 13px 20px; font-size: 14px; z-index: 100; max-width: calc(100vw - 35px); }
.toast:empty, #toast:empty { display: none; }
.scrim { display: none; }

@media (min-width: 1650px) {
  .page, #page-content, .page-content { padding: 45px 48px; }
  .topbar { padding: 0 48px; }
  .metric-value { font-size: 35px; }
  td { padding-top: 19px; padding-bottom: 19px; }
}
@media (max-width: 1250px) {
  :root { --sidebar-width: 212px; }
  .sidebar { padding-left: 12px; padding-right: 12px; }
  .page, #page-content, .page-content { padding: 28px 26px 35px; }
  .topbar { padding: 0 26px; }
  .metrics-grid, .metric-grid, .stats-grid { gap: 12px; }
  .metric-card, .stat-card { padding: 18px 15px; }
  .overview-grid { gap: 16px; grid-template-columns: minmax(0,1.7fr) minmax(275px,1fr); }
  .bottom-grid { gap: 16px; }
  th, td { padding-left: 15px; padding-right: 15px; }
  .panel-header, .card-header { padding-left: 18px; padding-right: 18px; }
  .topbar-search { display: none; }
  .toast, #toast { left: calc(50% + 106px); }
}
@media (max-width: 1050px) {
  .overview-grid { grid-template-columns: 1fr; }
  .tasks-panel .task-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 25px; }
  .tasks-panel .task-item:nth-last-child(2) { border-bottom: 0; }
  .tasks-panel::before { width: 200px; height: 200px; border-width: 50px; right: -60px; top: -75px; }
  .locations-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .metric-value, .stat-value { font-size: 26px; }
  .metric-bottom, .metric-note, .stat-note { flex-wrap: wrap; gap: 3px; }
  .page-header { align-items: flex-start; }
  .page-header-actions, .header-actions { justify-content: flex-end; max-width: 240px; }
}
@media (max-width: 800px) {
  .sidebar { transform: translateX(-100%); transition: transform .23s ease; width: 238px; }
  .sidebar.open { transform: translateX(0); }
  .sidebar.open ~ .scrim, .scrim.visible, .scrim.open { display: block; position: fixed; inset: 0; z-index: 35; background: #26372466; backdrop-filter: blur(2px); }
  .main, .main-content, .workspace { margin-left: 0; }
  .mobile-menu, .menu-toggle { display: inline-flex; }
  .topbar { min-height: 64px; gap: 13px; padding: 0 20px; }
  .topbar-right { gap: 8px; }
  .topbar-divider { display: none; }
  .page, #page-content, .page-content { padding: 27px 20px 35px; }
  .page-header { margin-bottom: 23px; }
  h1 { font-size: 30px; }
  .metrics-grid, .metric-grid, .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .bottom-grid { grid-template-columns: 1fr; }
  .toast, #toast { left: 50%; }
  .settings-grid { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .page, #page-content, .page-content { padding: 25px 15px 30px; }
  .page-header { flex-direction: column; gap: 17px; }
  .page-header-actions, .header-actions { justify-content: flex-start; max-width: none; }
  .page-header p { max-width: 290px; }
  h1 { font-size: 29px; }
  .breadcrumb, .breadcrumbs { font-size: 12px; }
  .topbar { padding: 0 12px; }
  .topbar .demo-badge { display: none; }
  .metrics-grid, .metric-grid, .stats-grid { gap: 9px; margin-bottom: 18px; }
  .metric-card, .stat-card { padding: 15px 13px; }
  .metric-label { font-size: 12px; }
  .metric-icon { width: 22px; height: 22px; }
  .metric-value, .stat-value { font-size: 27px; margin-top: 10px; }
  .metric-bottom, .metric-note, .stat-note { font-size: 11px; }
  .metric-top { gap: 4px; }
  .panel-header, .card-header { padding: 20px 17px 15px; }
  .panel-header h2, .card-header h2 { font-size: 13px; }
  .tasks-panel .task-list { display: block; padding: 0 18px; }
  .tasks-panel .task-item:nth-last-child(2) { border-bottom: 1px solid #b57b5833; }
  .tasks-panel .panel-footer { padding-left: 18px; }
  .pipeline-legend { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
  .locations-grid { grid-template-columns: 1fr; }
  .toolbar, .list-toolbar { align-items: stretch; flex-direction: column; gap: 11px; padding: 16px; }
  .toolbar-left, .toolbar-right { flex-wrap: wrap; }
  .search-box { width: 100%; }
  .search-box input { width: 100%; }
  .toolbar-right > * { flex: 1; }
  .form-grid { grid-template-columns: 1fr; gap: 16px; }
  .modal-content { padding: 22px; }
  .detail-grid { gap: 16px; }
  .dialog-header { padding: 22px 22px 0; }
  .dialog-body { padding: 22px; }
  .modal-header h2, .dialog-header h2 { font-size: 21px; }
  .page-footer { gap: 15px; align-items: flex-start; line-height: 1.7; }
  .kanban { grid-template-columns: repeat(4,260px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Application surfaces */
.icon { width: 18px; height: 18px; }
.skip-link { position: fixed; left: 18px; top: 12px; transform: translateY(-180%); z-index: 110; background: var(--cream); color: var(--forest); padding: 12px 18px; border: 2px solid var(--forest); font-size: 13px; border-radius: 4px; }
.skip-link:focus { transform: translateY(0); }
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.brand img { width: 168px; height: auto; display: block; }
.brand > span { font-size: 11px; font-weight: 500; letter-spacing: 2.5px; color: #dce3cf; }
.workspace-switch { display: flex; align-items: center; gap: 10px; margin: 31px 9px 14px; padding: 12px 0 19px; border-bottom: 1px solid #bdc6ad30; }
.workspace-mark { display: flex; align-items: center; justify-content: center; width: 29px; height: 29px; color: var(--cream); border: 1px solid #9da98e65; background: #91a17c20; border-radius: 4px; font-size: 12px; font-weight: 650; }
.workspace-switch strong { display: block; font-size: 13px; font-weight: 600; }
.workspace-switch small { display: block; font-size: 12px; color: #b7c1aa; margin-top: 3px; }
.workspace-dot { width: 5px; height: 5px; background: #b6c99c; border-radius: 50%; margin-left: auto; }
.sidebar nav > .nav-item { margin-bottom: 4px; }
.sidebar-bottom { margin-top: auto; padding-top: 22px; }
.sidebar-bottom .sidebar-note { display: flex; align-items: center; gap: 10px; border-top: 0; margin: 0 12px 22px; padding-top: 0; }
.sidebar-note p { font-size: 12px; line-height: 1.65; color: #bcc7af; }
.mini-bagel { width: 25px; height: 25px; display: inline-block; flex-shrink: 0; border: 7px solid #c1b996; border-radius: 48% 50% 47% 49%; transform: rotate(-20deg); }
.workspace-profile { border-top: 1px solid #bdc6ad30; margin: 18px 10px 0; padding-top: 19px; display: flex; align-items: center; gap: 10px; }
.workspace-profile strong { display: block; font-size: 12px; font-weight: 550; }
.workspace-profile small { display: block; font-size: 12px; color: #bbc5b0; margin-top: 3px; }
.avatar { background: #e6ead8; }
.avatar.peach { background: var(--peach-light); }
.avatar.small { width: 29px; height: 29px; background: #e2e7d3; font-size: 12px; }
.workspace { min-height: 100vh; display: flex; flex-direction: column; }
.topbar { min-height: 69px; }
.topbar-right { gap: 22px; }
.breadcrumb-divider { color: #b3b9a8; margin: 0 1px; }
.global-search { position: relative; display: flex; align-items: center; gap: 9px; color: #9aa18e; }
.global-search > .icon { width: 14px; height: 14px; }
.global-search > input { border: 0; background: transparent; color: var(--ink); font-size: 12px; width: 155px; padding: 10px 0; }
.global-search > input::placeholder { color: #929b86; opacity: 1; }
.global-search > input:focus { outline: 0; }
.global-search:focus-within { color: var(--forest); }
.global-search:focus-within input { box-shadow: 0 1px 0 #afbb9d; }
.today-label { padding-left: 19px; border-left: 1px solid var(--line); color: #737e68; font-size: 12px; white-space: nowrap; }
.search-results { position: absolute; right: -15px; top: 42px; z-index: 30; width: min(380px,calc(100vw - 40px)); background: var(--paper); padding: 6px; border: 1px solid #d7decb; border-radius: 5px; box-shadow: 0 12px 32px #2d3d221c; }
.search-results > button { width: 100%; display: flex; align-items: center; gap: 11px; padding: 12px; text-align: left; border-radius: 3px; }
.search-results > button:hover { background: #edf0e1; }
.search-results > button > .icon { width: 15px; height: 15px; color: #879578; }
.search-results > button > .icon:last-child { margin-left: auto; }
.search-results strong { display: block; font-size: 13px; font-weight: 600; }
.search-results small { display: block; font-size: 12px; margin-top: 4px; color: var(--muted); }
.search-results p { font-size: 13px; padding: 13px; color: var(--muted); }
.preview-banner { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 0 38px; padding: 12px 0; border-bottom: 1px solid var(--line); color: #626e5e; font-size: 12px; }
.preview-banner > span { display: flex; align-items: center; gap: 7px; }
.preview-banner .status-dot { width: 4px; height: 4px; background: #b39b6d; }
.banner-separator { opacity: .5; }
.preview-banner button { display: flex; align-items: center; gap: 5px; color: #7e896f; font-size: 12px; padding: 0; }
.preview-banner button:hover { color: var(--forest); }
.preview-banner .icon { width: 10px; height: 10px; }
#main { width: 100%; max-width: 1640px; padding: 33px 38px 28px; margin: 0 auto; min-width: 0; flex: 1; outline: none; }
.page-header .eyebrow { margin: 0 0 9px; color: #7e8b71; font-size: 11px; letter-spacing: 1.5px; line-height: 1.5; font-weight: 650; }
.page-header h1 { font-size: clamp(29px,2.6vw,39px); font-weight: 550; letter-spacing: -1.7px; }
.page-header .page-description { font-size: 13px; color: #626e5e; margin-top: 10px; line-height: 1.7; max-width: 580px; }
.page-header > .button { margin-bottom: 3px; }
.button.primary { background: var(--peach); border-color: var(--peach); color: #30422e; font-weight: 650; }
.button.primary:hover { background: #e78057; border-color: #e78057; }
.button.secondary { background: var(--paper); }
.button.secondary:hover { background: #edf0df; }
.button.compact { padding: 8px 11px; min-height: 34px; font-size: 12px; }
.text-button { display: inline-flex; align-items: center; gap: 6px; color: var(--forest); font-size: 12px; line-height: 1.4; font-weight: 600; padding: 5px 0; white-space: nowrap; }
.text-button .icon { width: 13px; height: 13px; }
.text-button:hover { text-decoration: underline; }
.text-button.danger { color: #ad6145; }
.metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin-bottom: 25px; }
.metric { display: block; text-align: left; border: 1px solid var(--line); background: var(--paper); border-radius: 5px; min-width: 0; padding: 20px 20px 18px; transition: border-color .15s, background .15s; }
.metric:hover { background: #f8f8eb; border-color: #b9c3a5; }
.metric-top > span { color: #7b856f; font-size: 12px; font-weight: 500; }
.metric-top > .icon { color: #879477; width: 15px; height: 15px; }
.metric > strong { display: block; margin: 14px 0 11px; font-size: 31px; line-height: 1; font-weight: 550; letter-spacing: -1.3px; font-variant-numeric: tabular-nums; }
.metric-note { display: block; color: #626e5e; font-size: 12px; line-height: 1.5; }
.overview-grid { grid-template-columns: minmax(0,1.6fr) minmax(285px,1fr); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 23px 23px 18px; }
.section-heading .eyebrow { margin-bottom: 7px; font-size: 10px; font-weight: 650; letter-spacing: 1.5px; color: #8d967f; }
.section-heading h2 { font-size: 18px; font-weight: 550; line-height: 1.25; letter-spacing: -.6px; }
.agenda-list { padding: 0 23px; }
.agenda-row { display: flex; align-items: center; gap: 13px; width: 100%; padding: 17px 0; border-top: 1px solid var(--line); text-align: left; transition: background .15s; }
.agenda-row:hover { background: #f0f1e4; }
.date-chip { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 40px; height: 47px; border: 1px solid #dde2ce; border-radius: 4px; flex-shrink: 0; background: #f6f7e9; }
.date-chip span { color: #8a947c; font-size: 11px; text-transform: uppercase; line-height: 1.3; font-weight: 500; }
.date-chip strong { color: var(--forest); font-size: 20px; line-height: 1.25; font-weight: 550; letter-spacing: -.7px; }
.agenda-info { min-width: 0; flex: 1; }
.agenda-info > strong { display: block; font-size: 13px; font-weight: 600; line-height: 1.5; }
.agenda-info > span { display: block; color: #626e5e; margin-top: 5px; font-size: 12px; line-height: 1.5; }
.agenda-info i, .task-copy i { font-style: normal; margin: 0 5px; opacity: .7; }
.agenda-location { text-align: right; flex-shrink: 0; }
.agenda-location > strong { display: block; font-size: 12px; font-weight: 500; color: #717e61; }
.agenda-location > span { display: flex; align-items: center; justify-content: flex-end; gap: 7px; font-size: 11px; color: #626e5e; margin-top: 7px; }
.agenda-row > .icon { width: 12px; height: 12px; color: #9da58d; margin-left: 0; }
.panel-footnote { display: flex; align-items: center; gap: 7px; padding: 12px 23px 17px; color: #626e5e; font-size: 11px; }
.panel-footnote .icon { width: 11px; height: 11px; }
.badge { font-size: 11px; border-radius: 3px; padding: 3px 7px; background: #eceee3; color: #7d866d; font-weight: 500; }
.badge.positive { background: #e6ecd8; color: #5f7950; }
.badge.warm { background: #f1e7d0; color: #a1834a; }
.badge.urgent { background: #f4e0d2; color: #a96342; }
.follow-panel { background: #f2c5aa; border: 1px solid #eeba9a; border-radius: 5px; padding: 23px 24px 21px; position: relative; overflow: hidden; }
.follow-panel > .eyebrow { font-size: 10px; line-height: 1.7; letter-spacing: 1px; color: #96775d; max-width: 185px; position: relative; z-index: 1; }
.follow-panel > h2 { font-size: 30px; line-height: 1.09; letter-spacing: -1.2px; font-weight: 550; position: relative; z-index: 1; margin-top: 12px; }
.follow-panel > p:not(.eyebrow) { font-size: 12px; color: #75553f; margin-top: 11px; }
.bagel-art { position: absolute; top: 35px; right: -25px; width: 126px; height: 126px; border: 32px solid #df9f78; border-radius: 48% 50% 46% 50%; transform: rotate(-25deg); opacity: .78; box-shadow: inset 3px 3px 0 #c4835c30, 2px 3px 0 #e5ab8430; }
.bagel-art::before, .bagel-art::after, .bagel-art span::before, .bagel-art span::after, .bagel-art i::before, .bagel-art i::after, .bagel-art b::before, .bagel-art b::after { content: ""; width: 3px; height: 8px; background: #f9d9bb; border-radius: 50%; position: absolute; transform: rotate(35deg); }
.bagel-art::before { top: -19px; left: 9px; }
.bagel-art::after { top: 10px; left: -19px; transform: rotate(-35deg); }
.bagel-art span::before { top: -19px; left: 41px; transform: rotate(-20deg); }
.bagel-art span::after { top: 10px; right: -19px; transform: rotate(-35deg); }
.bagel-art i::before { bottom: -19px; left: 7px; transform: rotate(-35deg); }
.bagel-art i::after { bottom: -16px; left: 44px; transform: rotate(55deg); }
.bagel-art b::before { bottom: 15px; left: -21px; transform: rotate(-15deg); }
.bagel-art b::after { bottom: 14px; right: -17px; transform: rotate(70deg); }
.follow-tasks { margin-top: 21px; position: relative; z-index: 1; }
.follow-panel .task-row { gap: 10px; border-color: #a7765430; padding: 11px 0; align-items: flex-start; }
.task-checkbox { appearance: none; -webkit-appearance: none; border: 1px solid #a7b292; width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0; margin: 2px 0 0; position: relative; cursor: pointer; }
.follow-panel .task-checkbox { border-color: #b48d6d; }
.task-checkbox:hover { border-color: var(--forest); background: #ffffff30; }
.task-checkbox:checked { background: var(--forest); border-color: var(--forest); }
.task-checkbox:checked::after { content: ""; position: absolute; width: 6px; height: 3px; border: solid var(--cream); border-width: 0 0 1.5px 1.5px; transform: rotate(-45deg); left: 4px; top: 4px; }
.task-copy { padding: 0; text-align: left; flex: 1; min-width: 0; }
.task-copy > strong { display: block; font-size: 13px; font-weight: 550; line-height: 1.55; }
.task-copy:hover > strong { text-decoration: underline; }
.task-copy > span { display: block; font-size: 12px; color: #8b957a; margin-top: 4px; }
.follow-panel .task-copy > span { color: #75553f; }
.task-copy .overdue { color: #ad613f; }
.task-row.completed .task-copy > strong { text-decoration: line-through; color: #929b84; }
.task-row > .badge { margin-top: 2px; }
.follow-panel > .text-button { margin-top: 12px; }
.all-done { font-size: 14px; padding: 22px 0; }
.bottom-grid { grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); }
.pipeline-summary { display: block; padding: 0; }
.pipeline-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); padding: 5px 23px 24px; gap: 12px; }
.pipeline-stat { text-align: left; padding: 0; min-width: 0; }
.pipeline-stat > span:not(.stage-indicator) { color: #859077; font-size: 12px; }
.pipeline-stat > strong { display: block; font-size: 17px; font-weight: 550; letter-spacing: -.6px; margin: 9px 0 5px; }
.pipeline-stat > small { display: block; font-size: 11px; color: #a0a78f; }
.pipeline-stat:hover > strong { color: #78925a; }
.stage-indicator { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #d0c0a1; margin-right: 5px; vertical-align: middle; }
.stage-1 { background: #a4b18b; }
.stage-2 { background: #e29a73; }
.stage-3 { background: #536b43; }
.stage-bar { height: 4px; background: #eff0e5; margin-top: 15px; border-radius: 1px; overflow: hidden; }
.stage-bar > span { display: block; height: 4px; background: #d0c0a1; }
.pipeline-stat:nth-child(2) .stage-bar > span { background: #a4b18b; }
.pipeline-stat:nth-child(3) .stage-bar > span { background: #e29a73; }
.pipeline-stat:nth-child(4) .stage-bar > span { background: #536b43; }
.pipeline-summary span { color: inherit; }
.location-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 3px 23px 24px; }
.location-chip { display: flex; align-items: center; gap: 7px; border: 1px solid #dfe5ce; background: #f8f9ec; border-radius: 3px; padding: 9px 10px; font-size: 12px; color: #72815e; }
.location-chip:hover { background: #e8eedb; border-color: #bac8a5; }
.location-chip > .icon { width: 11px; height: 11px; }
.location-chip > .icon:last-child { width: 9px; height: 9px; margin-left: 2px; }
.workspace-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 0 38px; padding: 6px 0 24px; color: #626e5e; font-size: 11px; }
.workspace-footer > span:first-child { letter-spacing: 1px; font-size: 10px; }
.workspace-footer > span:first-child > span { margin: 0 7px; color: #c0c7b2; }
.local-search { display: flex; align-items: center; gap: 9px; min-width: 180px; }
.local-search .icon { width: 15px; height: 15px; color: #9ba68b; }
.local-search input { background: transparent; border: 0; color: var(--ink); font-size: 13px; width: 250px; max-width: 100%; padding: 10px 0; }
.local-search input::placeholder { color: #9aa38a; }
.local-search input:focus { outline: 0; }
.toolbar-right > select { font-size: 12px; color: #78866a; border: 1px solid var(--line); background: var(--paper); border-radius: 4px; padding: 9px 27px 9px 10px; min-height: 34px; max-width: 180px; }
#main > .toolbar { background: transparent; padding: 0 0 20px; border: 0; }
.table-scroll { overflow-x: auto; }
.record-link { display: flex; align-items: center; gap: 11px; padding: 0; text-align: left; color: var(--ink); }
.record-link .avatar { width: 31px; height: 31px; font-size: 12px; }
.record-link strong { display: block; font-size: 13px; font-weight: 600; line-height: 1.5; }
.record-link small { display: block; font-size: 12px; color: #626e5e; margin-top: 4px; }
.record-link:hover strong { text-decoration: underline; }
.data-panel td { padding-top: 18px; padding-bottom: 18px; font-size: 13px; }
.data-panel td > strong { font-size: 13px; font-weight: 500; }
.data-panel .numeric { color: var(--forest); font-weight: 600; }
.data-panel .task-list { padding: 4px 23px 15px; }
.data-panel .task-row { padding: 20px 0; border-color: var(--line); align-items: flex-start; }
.data-panel .task-row:last-child { border-bottom: 0; }
.data-panel .task-copy > strong { font-size: 14px; }
.data-panel .task-copy > span { font-size: 12px; margin-top: 5px; }
.tab > span { margin-left: 5px; background: #e7ecd9; color: #83966b; border-radius: 3px; padding: 1px 5px; font-size: 12px; }
.kanban { grid-template-columns: repeat(4,minmax(190px,1fr)); gap: 15px; }
.kanban-column { padding: 0; background: #eff0e3; border: 1px solid #e5e8d7; min-height: 370px; }
.kanban-heading { display: flex; align-items: flex-start; justify-content: space-between; flex-direction: column; gap: 8px; padding: 17px 16px; border-bottom: 1px solid #e1e6d2; }
.kanban-heading > span { font-size: 13px; font-weight: 550; }
.kanban-heading b { display: inline-block; font-size: 12px; font-weight: 500; background: #dfe5cf; color: #8a9578; padding: 2px 5px; border-radius: 3px; margin-left: 7px; }
.kanban-heading > small { margin-left: 10px; font-size: 12px; color: #8e9a7f; }
.kanban-cards { padding: 12px; }
.deal-card { display: block; text-align: left; width: 100%; border: 1px solid #e0e4d2; background: var(--paper); border-radius: 4px; padding: 17px 14px 12px; margin-bottom: 12px; transition: border-color .15s, transform .15s; }
.deal-card:hover { border-color: #a8b58e; transform: translateY(-1px); }
.deal-company { display: block; color: #626e5e; font-size: 12px; margin-bottom: 8px; }
.deal-card h3 { font-size: 14px; font-weight: 550; line-height: 1.55; }
.deal-value { display: block; margin: 18px 0 14px; font-size: 22px; font-weight: 500; letter-spacing: -.8px; }
.deal-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 11px; color: #626e5e; border-top: 1px solid var(--line); padding-top: 10px; }
.deal-meta > span { display: flex; align-items: center; gap: 4px; }
.deal-meta .icon { width: 10px; height: 10px; }
.add-card { display: flex; align-items: center; gap: 6px; width: 100%; font-size: 12px; color: #82906e; padding: 8px 5px; }
.add-card:hover { color: var(--forest); }
.add-card .icon { width: 12px; height: 12px; }
.kanban-empty { font-size: 12px; color: #a0a991; padding: 24px 6px; line-height: 1.6; }
.page-hint { color: #626e5e; font-size: 12px; line-height: 1.7; margin-top: 19px; }
.location-card { padding: 23px; }
.location-card-top { display: flex; align-items: center; justify-content: space-between; color: #93a07e; }
.store-number { font-size: 12px; letter-spacing: 1px; }
.location-card-top .icon { width: 18px; height: 18px; }
.location-card h2 { font-size: 22px; margin-top: 26px; font-weight: 550; letter-spacing: -.6px; }
.location-card > p { font-size: 12px; color: #626e5e; }
.location-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin: 25px 0 22px; }
.location-metrics > span { color: #626e5e; font-size: 11px; }
.location-metrics strong { display: block; font-size: 25px; letter-spacing: -.8px; font-weight: 500; color: var(--forest); margin-bottom: 7px; }
.location-actions { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 15px; }
.settings-panel { padding: 26px; }
.settings-panel .eyebrow { font-size: 11px; color: #8a987a; }
.settings-panel h2 { font-size: 22px; font-weight: 550; letter-spacing: -.6px; margin: 0 0 14px; }
.settings-panel h3 { font-size: 14px; font-weight: 600; margin-bottom: 9px; }
.settings-panel > p:not(.eyebrow) { font-size: 14px; line-height: 1.8; color: #626e5e; margin-bottom: 20px; }
.settings-list { margin: 27px 0; }
.settings-list > div { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.settings-list dt { color: #839273; }
.settings-list dd { color: var(--forest); margin: 0; text-align: right; }
.settings-panel .settings-note { font-size: 13px; padding: 15px; background: #f0f2e2; border-radius: 4px; }
.settings-panel hr { border: 0; height: 1px; background: var(--line); margin: 27px 0; }
.storage-warning { margin: 15px 38px 0; padding: 12px 15px; background: #f4e1c8; border: 1px solid #dfc7a4; color: #96764a; font-size: 13px; line-height: 1.6; border-radius: 4px; }
.modal-header .eyebrow { margin: 0 0 9px; font-size: 11px; }
.form-grid .field > span { font-size: 12px; color: #758568; font-weight: 550; }
.form-grid .required { color: #c2845c; }
.form-grid label.checkbox-label { flex-direction: row; align-items: center; font-size: 13px; color: #839473; }
.form-grid .checkbox-label > input { width: 15px; height: 15px; min-height: 0; padding: 0; margin: 0; accent-color: var(--forest); }
.form-error { font-size: 13px; color: #ac6242; line-height: 1.6; margin-top: 16px; }
.form-error:empty { display: none; }
.modal-footer { justify-content: space-between; }
.modal-footer > div { display: flex; align-items: center; gap: 9px; }
.form-caption { font-size: 12px; color: #626e5e; }
.confirmation > p { font-size: 14px; line-height: 1.8; color: #88987a; }
.confirmation .modal-footer { justify-content: flex-end; }
.empty-state .mini-bagel { width: 40px; height: 40px; border-width: 11px; border-color: var(--peach-light); margin-bottom: 18px; }
.empty-state .button { margin-top: 20px; }
.toast, #toast { opacity: 0; visibility: hidden; transition: opacity .15s, visibility .15s; pointer-events: none; }
.toast.visible, #toast.visible { opacity: 1; visibility: visible; }

@media (min-width: 1600px) {
  #main { padding: 40px 48px 32px; }
  .topbar { padding-left: 48px; padding-right: 48px; }
  .preview-banner, .workspace-footer { margin-left: 48px; margin-right: 48px; }
  .page-header h1 { font-size: 42px; }
  .page-header .page-description { font-size: 13px; }
  .metric { padding: 24px; }
  .metric-top > span { font-size: 14px; }
  .metric > strong { font-size: 36px; }
  .metric-note { font-size: 12px; }
  .agenda-row { padding: 20px 0; }
  .agenda-info > strong { font-size: 13px; }
  .agenda-info > span, .agenda-location > strong { font-size: 13px; }
  .follow-panel { padding: 27px; }
  .follow-panel > h2 { font-size: 36px; }
  .follow-panel .task-row { padding: 15px 0; }
  .task-copy > strong { font-size: 14px; }
  .task-copy > span { font-size: 12px; }
}
@media (max-width: 1250px) {
  #main { padding: 28px 26px 25px; }
  .preview-banner, .workspace-footer { margin-left: 26px; margin-right: 26px; }
  .metrics { gap: 12px; }
  .metric { padding: 18px 15px; }
  .metric-top > span { font-size: 12px; }
  .metric > strong { font-size: 28px; }
  .metric-note { font-size: 11px; }
  .section-heading { padding-left: 19px; padding-right: 19px; }
  .agenda-list { padding-left: 19px; padding-right: 19px; }
  .agenda-row { gap: 10px; }
  .agenda-info > strong { font-size: 12px; }
  .agenda-location { display: none; }
  .overview-grid { grid-template-columns: minmax(0,1.4fr) minmax(285px,1fr); }
  .follow-panel { padding: 23px 20px 21px; }
  .bottom-grid { grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); }
  .pipeline-stats { padding-left: 19px; padding-right: 19px; gap: 9px; }
  .pipeline-stat > strong { font-size: 15px; }
  .location-chips { padding-left: 19px; padding-right: 19px; gap: 6px; }
  .location-chip { padding: 8px; font-size: 11px; }
  .kanban { grid-template-columns: repeat(4,minmax(190px,1fr)); }
}
@media (max-width: 1050px) {
  .overview-grid { grid-template-columns: 1fr; }
  .agenda-location { display: block; }
  .agenda-info > strong { font-size: 14px; }
  .follow-panel { padding: 24px; }
  .follow-panel > h2 br { display: none; }
  .follow-panel > h2 { font-size: 27px; margin-top: 8px; }
  .follow-panel > .eyebrow { max-width: none; }
  .follow-panel > p:not(.eyebrow) { margin-top: 8px; }
  .bagel-art { width: 145px; height: 145px; border-width: 37px; top: -20px; right: -35px; }
  .follow-tasks { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; margin-top: 21px; }
  .follow-panel .task-row { border-top: 1px solid #a7765430; border-bottom: 0; }
  .follow-panel .task-copy > strong { font-size: 12px; }
  .follow-panel .task-copy > span { font-size: 11px; }
  .bottom-grid { grid-template-columns: 1fr; }
  .pipeline-stat > strong { font-size: 20px; }
  .pipeline-stats { gap: 20px; }
  .location-chip { font-size: 12px; padding: 10px 12px; }
  .global-search > input { width: 135px; }
  .today-label { display: none; }
  .page-header > .button { flex-shrink: 0; }
  .toolbar { flex-wrap: wrap; }
  .local-search { flex: 1; }
  .toolbar-right { gap: 6px; }
}
@media (max-width: 800px) {
  .sidebar { width: 238px; }
  .brand img { width: 165px; }
  #main { padding: 29px 20px 25px; }
  .preview-banner, .workspace-footer { margin-left: 20px; margin-right: 20px; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .metric { padding: 20px; }
  .metric-top > span { font-size: 13px; }
  .metric > strong { font-size: 32px; }
  .metric-note { font-size: 12px; }
  .global-search { margin-left: 10px; }
  .global-search > input { width: 145px; }
  .breadcrumbs { gap: 8px; }
  .topbar-right { gap: 15px; }
  .page-header .page-description { font-size: 13px; }
  .section-heading h2 { font-size: 18px; }
  .storage-warning { margin-left: 20px; margin-right: 20px; }
  .data-panel .table-scroll table { min-width: 700px; }
}
@media (max-width: 540px) {
  #main { padding: 27px 15px 25px; }
  .preview-banner, .workspace-footer { margin-left: 15px; margin-right: 15px; }
  .preview-banner { font-size: 11px; padding: 10px 0; }
  .preview-banner > span { gap: 5px; }
  .preview-banner button { font-size: 11px; }
  .preview-banner .banner-separator { display: none; }
  .breadcrumbs > span, .breadcrumbs > strong { display: none; }
  .breadcrumbs { gap: 0; }
  .global-search { margin-left: 0; }
  .global-search > input { width: 163px; font-size: 13px; }
  .topbar-right { gap: 15px; flex: 1; justify-content: flex-end; }
  .topbar .avatar.small { width: 27px; height: 27px; }
  .search-results { right: -43px; width: calc(100vw - 32px); }
  .page-header h1 { font-size: 29px; letter-spacing: -1.3px; }
  .page-header .eyebrow { font-size: 10px; }
  .page-header .page-description { max-width: none; font-size: 13px; }
  .page-header > .button { margin-top: 1px; }
  .metrics { gap: 9px; margin-bottom: 18px; }
  .metric { padding: 16px 13px; }
  .metric-top > span { font-size: 12px; }
  .metric-top > .icon { width: 13px; height: 13px; }
  .metric > strong { font-size: 29px; margin: 14px 0 10px; }
  .metric-note { font-size: 11px; }
  .overview-grid { gap: 17px; margin-bottom: 17px; }
  .section-heading { padding: 20px 17px 15px; }
  .section-heading .eyebrow { font-size: 10px; }
  .section-heading h2 { font-size: 17px; }
  .section-heading .text-button { font-size: 12px; }
  .agenda-list { padding: 0 17px; }
  .agenda-row { gap: 10px; padding: 16px 0; }
  .agenda-info > strong { font-size: 13px; }
  .agenda-info > span { font-size: 12px; }
  .agenda-location { display: none; }
  .date-chip { width: 38px; height: 45px; }
  .panel-footnote { padding-left: 17px; padding-right: 17px; font-size: 10px; line-height: 1.6; }
  .follow-panel { padding: 23px; }
  .follow-panel > h2 { font-size: 30px; max-width: 220px; line-height: 1.12; }
  .follow-panel > h2 br { display: inline; }
  .follow-panel > .eyebrow { max-width: 210px; font-size: 10px; }
  .follow-tasks { display: block; margin-top: 20px; }
  .follow-panel .task-row { border-top: 0; border-bottom: 1px solid #a7765430; padding: 12px 0; }
  .follow-panel .task-row:last-child { border: 0; }
  .follow-panel .task-copy > strong { font-size: 14px; }
  .follow-panel .task-copy > span { font-size: 12px; }
  .bagel-art { top: 35px; right: -25px; width: 126px; height: 126px; border-width: 32px; }
  .pipeline-stats { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 23px; padding: 6px 19px 22px; }
  .pipeline-stat > span:not(.stage-indicator) { font-size: 12px; }
  .pipeline-stat > strong { font-size: 23px; }
  .pipeline-stat > small { font-size: 12px; }
  .location-chips { padding: 4px 17px 23px; gap: 8px; }
  .location-chip { font-size: 12px; padding: 10px; }
  .workspace-footer { flex-direction: column; align-items: flex-start; gap: 7px; padding-bottom: 22px; font-size: 11px; }
  .toolbar-right { width: 100%; display: flex; }
  .toolbar-right > select { max-width: none; flex: 1; min-width: 0; }
  .toolbar-right > .button { flex: none; }
  .local-search { width: 100%; }
  .local-search > input { width: 100%; font-size: 14px; }
  .data-panel .task-list { padding: 4px 18px 15px; }
  .data-panel .task-row { gap: 10px; padding: 18px 0; }
  .data-panel .task-copy > strong { font-size: 13px; }
  .data-panel .task-copy > span { font-size: 12px; }
  .tab { font-size: 12px; }
  .kanban { grid-template-columns: repeat(4,240px); }
  .kanban-heading > span { font-size: 14px; }
  .deal-card h3 { font-size: 13px; }
  .deal-company { font-size: 12px; }
  .deal-meta { font-size: 12px; }
  .location-metrics > span { font-size: 12px; }
  .settings-panel { padding: 23px; }
  .settings-list > div { font-size: 12px; gap: 14px; }
  .settings-panel .button { white-space: normal; }
  .modal-content { padding: 23px; }
  .modal-footer { gap: 16px; flex-wrap: wrap; }
  .modal-footer > div { margin-left: auto; }
  .modal-footer .button { padding: 9px 11px; font-size: 12px; }
  .form-caption { font-size: 11px; }
  .form-grid input, .form-grid select, .form-grid textarea { font-size: 16px; }
}

/* Readable, reachable controls in compact workspaces. */
.sidebar { overflow-y: auto; scrollbar-width: thin; }
.sidebar > * { flex-shrink: 0; }
.button { min-height: 40px; }
.page-header .page-description { font-size: 14px; }
.preview-banner { font-size: 11px; }
.preview-banner > span { flex-wrap: wrap; }
.metric-note { color: #626e5e; }
.task-copy .overdue { color: #8c452e; }
@media(max-height:800px) { .sidebar { padding-top: 22px; } .workspace-switch { margin-top: 20px; } .sidebar-note { display: none !important; } .sidebar-bottom { padding-top: 14px; } }
@media(max-width:1100px) { .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); } .bottom-grid { grid-template-columns: 1fr; } }
@media(max-width:540px) { .preview-banner { align-items:flex-start; } .preview-banner > span { display:block; max-width:180px; line-height:1.6; } .preview-banner button { font-size:11px; max-width:120px; text-align:right; } .preview-banner .status-dot { display:none; } .preview-banner .banner-separator { display:inline; } .page-header .page-description { font-size:14px; } }
@media(max-width:800px) { .sidebar:not(.open) { visibility:hidden; } .sidebar.open { visibility:visible; } }

/* The operating plan expands navigation while keeping every workflow reachable. */
.sidebar { padding:22px 14px 18px; }
.sidebar .brand img { width:160px; }
.sidebar .workspace-switch { margin:18px 9px 4px; padding-bottom:14px; }
.sidebar .nav-label { margin-top:15px; margin-bottom:7px; font-size:10px; }
.sidebar .nav-item { min-height:37px; padding:8px 12px; font-size:13px; }
.sidebar-bottom .sidebar-note { display:none!important; }
.sidebar .workspace-profile { margin-top:10px; padding-top:12px; }
.sidebar-bottom { padding-top:12px; }
.deal-ownership { font-size:12px; line-height:1.5; color:#53664d; margin-bottom:9px; }
.deal-sla { font-size:12px; margin-bottom:10px; color:#586d4e; }
.deal-sla.overdue { color:#984a2e; font-weight:600; }
.form-scope-note { margin:0 0 20px; background:#f3f2df; color:#5b6852; padding:12px; font-size:12px; line-height:1.6; border-radius:4px; }
.plan-kanban { max-width:100%; }
