:root {
  font-family: "Inter", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: #1b241d;
  background: #f3f4ef;
  font-synthesis: none;
  --page: #f3f4ef;
  --surface: #fff;
  --ink: #1b241d;
  --muted: #606c61;
  --subtle: #6f7a70;
  --line: #e1e6dc;
  --primary: #315f3c;
  --primary-dark: #244b2d;
  --lime: #d9f38a;
  --nav: #fafbf7;
  --sidebar: 216px;
  --shadow: 0 2px 5px #25351c05;
}
* { box-sizing: border-box; }
body { min-width: 320px; margin: 0; font-size: 16px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
a { color: inherit; text-decoration: none; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #729d57; outline-offset: 2px; }
[hidden] { display: none !important; }
.boot { display: grid; min-height: 100vh; place-items: center; color: var(--muted); }
.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; }
.shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 5; width: var(--sidebar); display: flex; flex-direction: column; background: var(--nav); color: #475547; border-right: 1px solid #e0e6db; }
.brand { min-height: 85px; padding: 18px 21px; display: flex; gap: 11px; align-items: center; }
.brand-mark { flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: #212c20; color: var(--lime); }
.brand-text { display: grid; gap: 3px; white-space: nowrap; }
.brand-text strong { color: #212c20; font-size: 24px; line-height: 1; letter-spacing: -.9px; font-weight: 800; }
.brand-text strong span { color: #719844; padding: 0 2px; }
.brand-text small { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.sidebar nav { padding: 11px 13px; overflow: auto; }
.nav-caption { margin: 2px 10px 8px; color: #717b70; font-size: 12px; font-weight: 650; letter-spacing: .08em; }
.nav-caption.second { margin-top: 24px; }
.nav-link { min-height: 43px; padding: 0 11px; margin-bottom: 5px; display: flex; align-items: center; gap: 11px; border-radius: 8px; font-size: 14px; font-weight: 550; transition: background .17s,color .17s; }
.nav-link svg { flex: 0 0 auto; color: #6e7b70; }
.nav-link:hover { color: #2a452e; background: #edf2e9; }
.nav-link.current { background: #e5efdb; color: #284832; font-weight: 750; }
.nav-link.current svg { color: #315f3c; }
.nav-link small { margin-left: auto; color: #486e3b; font-size: 12px; padding: 2px 7px; border-radius: 10px; background: #e8edde; font-variant-numeric: tabular-nums; }
.sidebar-foot { margin-top: auto; padding: 14px 13px; }
.sample-label { display: flex; align-items: center; gap: 7px; margin: 0 9px 13px; font-size: 12px; color: var(--muted); }
.sample-label span { width: 6px; height: 6px; border-radius: 50%; background: #7b9b51; }
.profile-button { width: 100%; display: flex; gap: 10px; align-items: center; text-align: left; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 10px; color: var(--muted); }
.profile-button:hover { background: #edf2e9; }
.profile-button > span:nth-child(2), .client-button > span:nth-child(2), .attachment > span { display: grid; gap: 3px; text-align: left; min-width: 0; }
.profile-button strong { color: var(--ink); font-size: 14px; }
.profile-button small { font-size: 12px; }
.profile-button > svg { margin-left: auto; flex: 0 0 auto; }
.avatar { width: 34px; height: 34px; flex: 0 0 auto; display: inline-grid; place-items: center; border-radius: 50%; font-size: 13px; font-weight: 700; color: #456744; background: #e5efdb; }
.avatar-1 { background: #eceae3; color: #605b4a; }
.avatar-2 { background: #e2efe7; color: #3f6654; }
.avatar-3 { background: #f4ead9; color: #7e5b2f; }
.avatar-4 { background: #eae7ed; color: #645476; }
.profile-button .avatar, .top-user .avatar { background: #253b2a; color: #e5f3d5; }
.main { min-width: 0; margin-left: var(--sidebar); }
.topbar { min-height: 60px; background: var(--nav); display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); padding: 0 31px; }
.breadcrumbs, .top-actions, .top-user { display: flex; align-items: center; gap: 13px; }
.breadcrumbs { color: var(--muted); font-size: 14px; }
.breadcrumbs svg { color: var(--subtle); }
.breadcrumbs strong { color: var(--ink); font-weight: 650; }
.top-user { background: transparent; border: 0; color: var(--ink); font-size: 14px; font-weight: 650; padding: 4px; gap: 8px; border-radius: 8px; }
.top-user:hover { background: #edf1e8; }
.top-user .avatar { width: 30px; height: 30px; }
.top-user svg { color: var(--muted); }
.top-divider { width: 1px; height: 24px; background: var(--line); }
.icon-button { width: 36px; height: 36px; border-radius: 8px; display: inline-grid; place-items: center; border: 0; color: var(--muted); background: transparent; padding: 0; }
.icon-button:hover { background: #edf2e8; color: var(--primary); }
.preview-label { color: #536849; border: 1px solid #dce6d5; padding: 5px 8px; border-radius: 6px; font-size: 12px; white-space: nowrap; }
.bell { position: relative; }
.bell i { position: absolute; width: 7px; height: 7px; border-radius: 50%; box-shadow: 0 0 0 2px #fff; background: #ee6879; top: 7px; right: 8px; }
.menu-button, .sidebar-scrim { display: none; }
.content { max-width: 1570px; margin: 0 auto; padding: 24px 31px 38px; }
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 0 0 22px; }
.page-head h1 { font-size: clamp(27px, 3vw, 37px); line-height: 1.19; font-weight: 780; letter-spacing: -.06em; margin: 0 0 8px; }
.page-head p, .panel-head p { color: var(--muted); margin: 0; font-size: 14px; line-height: 1.5; }
.head-actions { display: flex; gap: 10px; align-items: center; flex: 0 0 auto; }
.scope-control, .button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); white-space: nowrap; font-size: 14px; line-height: 1.15; }
.scope-control { padding-right: 1px; max-width: 235px; }
.scope-control svg { color: var(--primary); flex: 0 0 auto; }
.scope-control select { max-width: 100%; padding: 0; background-color: transparent; color: var(--ink); border: 0; min-width: 0; min-height: 38px; cursor: pointer; }
.button { font-weight: 650; transition: background .15s,border .15s; }
.button.secondary:hover { background: #eaf2e5; border-color: #d5e3d0; color: var(--primary-dark); }
.button.primary { border-color: #cde777; background: var(--lime); color: #25331c; padding: 0 14px; }
.button.primary:hover { background: #cbeb6d; border-color: #bad958; }
.button.small-button { min-height: 32px; font-size: 13px; }
.text-button { border: 0; background: transparent; padding: 5px 0; border-radius: 3px; color: var(--primary); white-space: nowrap; font-size: 14px; font-weight: 650; }
.text-button:hover { color: var(--primary-dark); text-decoration: underline; text-underline-offset: 4px; }
.panel { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow); }
.kpis { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-bottom: 16px; }
.dashboard-kpis { grid-template-columns: minmax(0,1.42fr) repeat(3,minmax(0,1fr)); }
.kpi { position: relative; overflow: hidden; isolation: isolate; padding: 16px 17px; min-height: 133px; }
.kpi-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; font-weight: 660; line-height: 1.35; }
.tile-icon { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; background: #edf1e8; color: #486e48; }
.tile-icon.amber { background: #f1eee3; color: #786343; }
.kpi > strong { display: block; font-size: clamp(25px,3.1vw,38px); letter-spacing: -.05em; line-height: 1.1; margin: 7px 0 8px; font-weight: 780; font-variant-numeric: tabular-nums; }
.kpi > strong small { font-size: .42em; color: var(--muted); font-weight: 620; letter-spacing: 0; }
.kpi-detail { color: var(--muted); font-size: 13px; line-height: 1.4; }
.kpi-detail b { color: var(--ink); }
.kpi-featured { border-color: #26392a; color: #f7fbef; background: radial-gradient(ellipse at 86% 0%,#42583a,#202e23 72%); }
.kpi-featured::before { content: ""; position: absolute; inset: 0 0 0 24%; z-index: -1; background: repeating-linear-gradient(132deg,transparent 0 13px,#c1e89b2b 13px 14px); mask-image: linear-gradient(90deg,transparent 5%,#000 100%); }
.kpi-featured > strong { color: #ebfad5; }
.kpi-featured .kpi-top, .kpi-featured .kpi-detail { color: #d3dfcd; }
.kpi-featured .kpi-detail b { color: #f1fae8; }
.kpi-featured .tile-icon { color: #e7f5af; background: #ecffd323; border: 1px solid #d2e5ba2f; }
.monthly-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin-bottom: 16px; overflow: hidden; }
.monthly-metric { min-width: 0; padding: 12px 17px 14px; }
.monthly-metric + .monthly-metric { border-left: 1px solid var(--line); }
.monthly-metric > div { display: flex; align-items: center; gap: 7px; }
.metric-symbol { display: inline-grid; place-items: center; width: 25px; height: 25px; flex: 0 0 auto; border-radius: 7px; color: var(--primary); background: #edf3e9; }
.monthly-metric h2 { margin: 0; color: #405243; font-size: 14px; line-height: 1.35; font-weight: 680; }
.monthly-metric > strong { display: block; margin: 6px 0 4px; color: var(--ink); font-size: clamp(21px,2.4vw,29px); letter-spacing: -.045em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.monthly-metric > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.78fr) minmax(0,1fr); gap: 15px; align-items: stretch; }
.dashboard-grid.lower-grid { margin-top: 16px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 19px 19px 13px; }
.panel-head h2 { margin: 0 0 4px; color: var(--ink); line-height: 1.3; font-size: 19px; font-weight: 750; }
.panel-head p { font-size: 13px; }
.chart-panel .panel-head, .reasons-panel .panel-head { padding-bottom: 9px; }
select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%23657066' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 8px center; padding-right: 27px !important; }
.range-select { border: 1px solid var(--line); border-radius: 7px; min-height: 35px; padding: 0 9px; color: var(--muted); cursor: pointer; font-size: 13px; }
.chart-controls { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
.segmented { display: inline-flex; padding: 3px; gap: 2px; background: #f0f2ec; border-radius: 8px; white-space: nowrap; }
.segmented button { padding: 5px 8px; border: 0; min-height: 29px; border-radius: 6px; background: transparent; color: var(--muted); font-size: 13px; }
.segmented button[aria-pressed="true"] { color: #2d5134; background: #fff; box-shadow: 0 1px 3px #24332219; font-weight: 680; }
.legend { display: flex; gap: 16px; padding: 0 19px 6px; color: var(--muted); font-size: 13px; }
.legend span { display: flex; align-items: center; gap: 5px; }
.legend i { width: 8px; height: 8px; border-radius: 50%; background: #4c7b48; }
.legend span:nth-child(2) i { background: #b18449; }
.line-chart { display: block; width: calc(100% - 26px); margin: 3px 13px 12px; height: auto; min-height: 140px; }
.line-chart text { fill: #647465; font-size: 13px; font-variant-numeric: tabular-nums; }
.chart-grid { stroke: #e4e9df; stroke-dasharray: 3 4; stroke-width: 1; }
.trend-diagnosis, .trend-deals { stroke: #507b45; stroke-width: 2.8; fill: none; }
.trend-deals { stroke: #b18449; stroke-width: 2.3; }
.chart-dot { fill: #fff; stroke: #507b45; stroke-width: 2; }
.chart-dot.alt { stroke: #b18449; }
.chart-point:focus-visible rect, .chart-point:hover rect { fill: #60805819; }
.priority-list { display: grid; gap: 0; padding: 0 17px 11px; }
.priority-row { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 11px; border: 0; border-bottom: 1px solid #eaf0e6; min-height: 54px; padding: 6px 2px; text-align: left; background: #fff; border-radius: 5px; color: var(--ink); }
.priority-row:last-child { border-bottom: 0; }
.priority-row:hover { background: #f6f9f3; }
.priority-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; color: #4a7047; background: #ecf4e8; }
.priority-icon.urgent { color: #9e473a; background: #fbeeea; }
.priority-icon.cash { color: #815c30; background: #f6eddc; }
.priority-label { display: grid; gap: 3px; }
.priority-label strong { font-size: 14px; font-weight: 720; }
.priority-label small { color: var(--muted); font-size: 12px; }
.priority-count { font-size: 22px; font-weight: 750; font-variant-numeric: tabular-nums; padding-right: 2px; }
.priority-count.urgent, .overdue-text { color: #a24134 !important; }
.pipeline-stages { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; padding: 9px 17px 17px; }
.pipeline-stage { display: grid; align-content: space-between; min-height: 98px; gap: 10px; text-align: left; padding: 12px 9px; border: 1px solid var(--line); background: #f8faf5; border-radius: 9px; color: #344837; }
.pipeline-stage:hover { background: #eaf2e5; border-color: #d5e3d0; }
.pipeline-stage > span { display: flex; gap: 5px; align-items: center; font-size: 13px; font-weight: 650; }
.pipeline-stage svg { flex: 0 0 auto; color: #6e8f59; }
.pipeline-stage > strong { font-size: 26px; letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: var(--ink); }
.reason-bars { display: grid; gap: 10px; padding: 5px 17px 14px; }
.reason-row { display: grid; grid-template-columns: 4.25em minmax(40px,1fr) 3.6em; align-items: center; gap: 9px; min-height: 21px; padding: 0; background: transparent; border: 0; text-align: left; color: var(--muted); font-size: 14px; border-radius: 4px; }
.reason-row:has(small) { grid-template-columns: 4.25em minmax(40px,1fr) 3.6em 2.8em; }
.reason-row:hover > span { color: var(--primary); text-decoration: underline; }
.reason-row i { height: 8px; overflow: hidden; border-radius: 9px; background: #eef2e9; }
.reason-row b { height: 100%; display: block; border-radius: inherit; }
.reason-row strong, .reason-row small { text-align: right; font-variant-numeric: tabular-nums; }
.reason-row strong { color: var(--ink); font-size: 13px; }
.reason-row small { color: var(--muted); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; font-size: 14px; text-align: left; }
thead { background: #f6f8f3; }
th { color: var(--muted); font-size: 13px; font-weight: 650; }
th, td { padding: 11px 13px; border-bottom: 1px solid #ebefe8; }
th:first-child, td:first-child { padding-left: 17px; }
th:last-child, td:last-child { padding-right: 17px; text-align: right; }
td { color: #405243; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f8faf6; }
.client-button { display: inline-flex; align-items: center; gap: 8px; background: transparent; border: 0; padding: 0; color: var(--ink); border-radius: 6px; }
.client-button:hover strong { color: var(--primary); }
.client-button .avatar { width: 31px; height: 31px; }
.client-button strong { font-size: 14px; color: var(--ink); }
.client-button small, .attachment small { color: var(--subtle); font-size: 12px; }
.task-cell { display: grid; gap: 4px; }
.task-cell strong { color: var(--ink); font-size: 14px; }
.task-cell small { color: var(--muted); font-size: 13px; max-width: 270px; white-space: normal; overflow-wrap: anywhere; }
.badge { display: inline-flex; min-height: 24px; align-items: center; border-radius: 6px; padding: 3px 7px; font-size: 12px; font-weight: 680; white-space: nowrap; line-height: 1.1; background: #edf0eb; color: #546355; }
.badge.green { background: #e5f2e2; color: #346541; }
.badge.amber { background: #f7efdc; color: #805825; }
.badge.blue { background: #e7eee7; color: #46654f; }
.badge.violet { background: #eeeaf4; color: #634e73; }
.badge.red { background: #fbeeea; color: #9e473a; }
.muted { color: var(--muted); font-size: 14px; }
.empty { display: grid; justify-items: center; gap: 8px; min-height: 145px; align-content: center; padding: 18px; color: var(--muted); text-align: center; }
.empty svg { color: #8195b8; margin-bottom: 1px; }
.empty strong { color: #485b7b; font-size: 14px; }
.empty small { font-size: 13px; }
.filter-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 6px 17px 14px; }
.filter-bar select, .search-field, .field :is(input,textarea,select) { min-height: 40px; border: 1px solid #dbe3d8; border-radius: 8px; padding: 8px 10px; color: var(--ink); background-color: #fff; }
.filter-bar select { font-size: 14px; }
.search-field { display: inline-flex; align-items: center; gap: 8px; width: min(100%,330px); color: var(--subtle); }
.search-field:focus-within { border-color: #83a879; }
.search-field input { border: 0; outline: 0; min-width: 0; flex: 1; font-size: 14px; background: transparent; }
.search-field input::placeholder, .field input::placeholder { color: var(--subtle); }
.list-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin: 0 17px 12px; }
.list-tab { min-height: 35px; padding: 6px 10px; border: 1px solid transparent; border-radius: 7px; background: #f5f7f2; color: var(--muted); font-size: 14px; white-space: nowrap; }
.list-tab[aria-pressed="true"] { border-color: #cbdcbd; background: #e7f0e1; color: #2b5235; font-weight: 700; }
.list-panel .panel-head { padding-bottom: 15px; }
.list-panel th, .list-panel td { padding-top: 13px; padding-bottom: 13px; }
.after-panel { margin-top: 15px; }
.inline-person { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 650; }
.settings-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-bottom: 15px; }
.settings-tile { display: grid; gap: 7px; padding: 16px; color: var(--muted); font-size: 14px; }
.settings-tile strong { color: var(--ink); font-size: 29px; font-variant-numeric: tabular-nums; }
.card-section { padding-bottom: 14px; }
.rate-list { padding: 3px 17px 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.rate-list > div { display: flex; justify-content: space-between; align-items: center; padding: 13px; border: 1px solid var(--line); background: #f6f8f3; border-radius: 8px; color: var(--muted); font-size: 14px; }
.rate-list strong { color: var(--primary); font-size: 22px; font-variant-numeric: tabular-nums; }
.drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(100%,680px); max-width: 100%; height: 100%; max-height: none; border: 0; padding: 0; background: var(--page); color: var(--ink); box-shadow: -12px 0 45px #101e1533; overscroll-behavior: contain; }
.drawer::backdrop { background: #12211865; }
body:has(.drawer[open]) { overflow: hidden; }
.drawer-head { display: flex; justify-content: space-between; gap: 10px; padding: 22px 24px 18px; border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 2; }
.drawer-head h2 { margin: 0 0 5px; font-size: 24px; letter-spacing: -.025em; }
.drawer-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.drawer-head .icon-button { flex: 0 0 auto; }
.drawer-kicker { color: var(--primary); font-weight: 650; font-size: 13px; margin-bottom: 5px; }
.drawer-body { padding: 17px 22px; }
.drawer-foot { display: flex; align-items: center; justify-content: flex-end; gap: 9px; padding: 12px 22px; border-top: 1px solid var(--line); background: #fff; position: sticky; bottom: 0; z-index: 1; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 15px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 17px; }
.field { display: grid; align-items: start; gap: 6px; color: #394b3d; font-size: 14px; }
.field > span { font-weight: 600; }
.field b { color: #b83c53; font-size: 12px; }
.field :is(input,textarea,select) { width: 100%; font-size: 16px; }
.field textarea { resize: vertical; min-height: 82px; }
.field input[type=file] { max-width: 100%; padding: 7px; }
.field :is(input,textarea,select):focus { outline-offset: 0; border-color: #8aaf83; }
.wide { grid-column: 1 / -1; }
.checkline { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.checkline input { width: 17px; height: 17px; accent-color: var(--primary); }
.calculated { display: grid; gap: 7px; color: #394b3d; font-size: 14px; }
.calculated strong { display: grid; align-items: center; padding: 8px 10px; min-height: 40px; background: #eaf2e6; border-radius: 8px; color: var(--primary); }
.form-help { margin: -5px 0 0; color: var(--muted); font-size: 13px; }
.payment-plan { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.2fr); gap: 9px 13px; padding: 12px; border: 1px solid #dce7d8; border-radius: 9px; background: #f5f8f2; }
.payment-plan-head { display: flex; align-items: center; gap: 7px; grid-column: 1 / -1; color: var(--primary); font-size: 14px; }
.payment-plan p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.order-card { margin-bottom: 15px; scroll-margin-top: 130px; }
.order-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 9px; }
.order-heading h3 { margin: 0; font-size: 16px; font-weight: 750; }
.form-error { padding: 10px 12px; border-radius: 8px; margin-top: 12px; color: #a8324a; background: #ffeef1; line-height: 1.45; font-size: 14px; }
.detail-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 9px; margin-bottom: 14px; padding: 11px; background: #fff; border: 1px solid var(--line); border-radius: 9px; }
.detail-toolbar > div, .detail-buttons, .account-choices { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.detail-status small { color: var(--muted); font-size: 13px; }
.detail-steps { margin: 0 0 15px; padding: 4px 0 5px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); list-style: none; }
.detail-steps li { position: relative; display: grid; justify-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.detail-steps li:not(:last-child)::before { content: ""; position: absolute; top: 7px; left: 50%; width: 100%; height: 1px; background: #d8e2d4; }
.detail-steps span { width: 15px; height: 15px; border-radius: 50%; position: relative; z-index: 1; background: #e6ece2; border: 3px solid var(--page); }
.detail-steps .step-current span { background: #4d7846; outline: 1px solid #78a069; }
.detail-steps .step-complete span { background: #a4c19c; }
.detail-steps .step-current { color: #355637; font-weight: 700; }
.deal-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; margin-bottom: 12px; }
.deal-summary div { display: grid; gap: 5px; padding: 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--muted); font-size: 13px; }
.deal-summary strong { color: var(--ink); font-size: 20px; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.detail-card { padding: 16px; border-radius: 10px; background: #fff; border: 1px solid var(--line); margin-bottom: 12px; }
.detail-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.detail-heading h3 { font-size: 16px; margin: 0; color: var(--ink); font-weight: 750; }
.properties { margin: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px 16px; }
.properties dt { color: var(--muted); font-size: 13px; margin: 0 0 3px; }
.properties dd { color: var(--ink); font-size: 14px; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.record { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; font-size: 14px; line-height: 1.5; }
.record strong { color: var(--ink); }
.record p { color: #405243; white-space: pre-wrap; overflow-wrap: anywhere; margin: 3px 0; }
.record small { color: var(--muted); font-size: 13px; }
.attachment-list { display: grid; gap: 6px; }
.attachment { display: flex; align-items: center; gap: 8px; padding: 7px 9px; color: var(--primary); border: 1px solid var(--line); border-radius: 7px; font-size: 14px; }
.attachment:hover { background: #ecf3e8; }
.attachment strong { overflow-wrap: anywhere; }
.timeline { padding: 0; list-style: none; margin: 0; display: grid; gap: 9px; }
.timeline li { display: flex; align-items: flex-start; gap: 10px; }
.timeline li > span { width: 7px; height: 7px; border-radius: 50%; background: #729665; margin: 6px 0 0; flex: 0 0 auto; }
.timeline li div { display: grid; gap: 3px; }
.timeline strong { font-size: 14px; }
.timeline small { font-size: 12px; color: var(--muted); }
.account-exit { margin-top: 15px; }
.toast { position: fixed; z-index: 12; right: 16px; bottom: 16px; max-width: calc(100% - 32px); min-height: 42px; display: flex; align-items: center; gap: 9px; padding: 10px 15px; background: #253a2b; color: #fff; border-radius: 9px; font-size: 14px; box-shadow: 0 8px 28px #172e2333; }
.toast svg { color: #94e5c6; flex: 0 0 auto; }
.sign-in { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(420px,.9fr); min-height: 100dvh; background: #fff; }
.sign-art { position: relative; min-height: 100%; background: #30452d; }
.sign-art::before { content: ""; position: absolute; inset: 0; background: url('/training-banner.jpg') 70% center / cover no-repeat; filter: grayscale(1); mix-blend-mode: luminosity; opacity: .78; }
.sign-art > div { padding: 28px; display: flex; align-items: center; gap: 11px; position: absolute; inset: 0 0 auto; background: linear-gradient(#172c1cbd,transparent); }
.sign-art .brand-text strong, .sign-art .brand-text small { color: #edf5e8; }
.sign-side { display: grid; place-items: center; padding: 22px; }
.sign-panel { max-width: 360px; width: 100%; }
.sign-panel h1 { font-size: 28px; letter-spacing: -.04em; margin: 0 0 7px; }
.sign-panel > p { color: var(--muted); margin: 0 0 19px; font-size: 14px; }
.sign-panel .field { margin-bottom: 12px; }
.sign-submit { margin-top: 6px; width: 100%; }
.demo-buttons { margin-top: 15px; }
.login-brand { display: none; }
@media (max-width: 1110px) {
  :root { --sidebar: 194px; }
  .content { padding-inline: 20px; }
  .topbar { padding-inline: 20px; }
  .reason-row { gap: 6px; }
  .dashboard-grid { grid-template-columns: minmax(0,1.55fr) minmax(0,1fr); }
  .kpi { padding-inline: 12px; }
}
@media (max-width: 940px) {
  :root { --sidebar: 178px; }
  .brand { padding-inline: 13px; }
  .kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-grid { grid-template-columns: minmax(0,1fr); }
  .priorities { grid-row: 1; }
  .line-chart { max-height: 255px; }
}
@media (max-width: 720px) {
  :root { --sidebar: 232px; }
  .sidebar { transform: translateX(-100%); transition: transform .18s ease; }
  .menu-open .sidebar { transform: translateX(0); }
  .menu-open .sidebar-scrim { display: block; position: fixed; z-index: 4; inset: 0; background: #12211869; border: 0; }
  .menu-button { display: inline-grid; margin-left: -4px; }
  .main { margin: 0; }
  .topbar { min-height: 54px; padding-inline: 14px; }
  .content { padding: 17px 13px 27px; }
  .page-head { align-items: flex-start; flex-wrap: wrap; margin-bottom: 15px; gap: 9px; }
  .head-actions { gap: 6px; }
  .kpis, .dashboard-grid { gap: 10px; }
  .kpi { min-height: 99px; padding: 10px 11px 11px; }
  .kpi > strong { margin-top: 3px; }
  .panel-head { padding-inline: 13px; }
  .pipeline-stages { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pipeline-stage { min-height: 78px; }
  .rate-list { grid-template-columns: 1fr; }
}
@media (max-width: 490px) {
  .breadcrumbs, .top-actions { gap: 6px; }
  .breadcrumbs > span, .breadcrumbs > svg, .top-user > span:nth-child(2), .top-user > svg { display: none; }
  .page-head p { font-size: 13px; }
  .page-head h1 { font-size: 28px; }
  .kpi-top { font-size: 13px; }
  .monthly-metric { padding: 9px 7px 10px; }
  .monthly-metric > div { gap: 4px; }
  .monthly-metric h2 { font-size: 13px; }
  .monthly-metric > p { font-size: 12px; }
  .metric-symbol { width: 19px; height: 19px; border-radius: 5px; }
  .metric-symbol svg { width: 13px; height: 13px; }
  .tile-icon { width: 29px; height: 29px; }
  .tile-icon svg { width: 16px; height: 16px; }
  .drawer-head { padding: 16px 13px 14px; }
  .drawer-body { padding: 12px; }
  .drawer-foot { padding: 9px 12px calc(9px + env(safe-area-inset-bottom)); }
  .form-grid { padding: 12px; gap: 11px; }
  .form-grid, .payment-plan { grid-template-columns: 1fr; }
  .detail-card { padding: 11px; }
  .deal-summary strong { font-size: 17px; }
  .chart-panel .panel-head { flex-wrap: wrap; }
  .chart-controls { justify-content: flex-start; }
  .settings-summary { gap: 7px; }
  .settings-tile { padding: 10px; }
  .sign-in { grid-template-columns: 1fr; }
  .sign-art { display: none; }
  .login-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
  .login-brand strong { color: var(--ink); }
  .login-brand small { color: var(--muted); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
