:root {
  color-scheme: light;
  --canvas: #f5f6f2;
  --paper: #fff;
  --ink: #182b25;
  --muted: #56655d;
  --line: #e2e8e1;
  --green: #245c43;
  --dark: #132d25;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-size: 15px;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 290px; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--green); }
p, h1, h2, h3 { margin: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #639579; outline-offset: 3px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { position: fixed; top: 10px; left: 10px; z-index: 3; color: var(--ink); background: white; padding: 8px; }
.shell { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--dark); color: #e9f1eb; display: flex; flex-direction: column; padding: 30px 18px 19px; position: sticky; top: 0; height: 100dvh; }
.brand { display: inline-flex; gap: 11px; align-items: center; }
.sidebar .brand { margin: 0 7px 42px; }
.sidebar .brand:hover { color: white; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; color: #183728; background: #d7ed9f; border-radius: 12px; }
.brand-mark .icon { width: 26px; height: 26px; stroke-width: 1.8; }
.brand-text { display: grid; gap: 3px; }
.brand strong { font-size: 20px; font-weight: 750; letter-spacing: -.05em; line-height: 1; }
.brand small { font-size: 9px; font-weight: 750; letter-spacing: .16em; color: #b6cabc; }
.sidebar nav { display: grid; gap: 6px; }
.sidebar nav a { display: flex; align-items: center; gap: 12px; color: #c9d8cf; padding: 12px 13px; border-radius: 9px; font-weight: 550; font-size: 14px; }
.sidebar nav a:hover, .sidebar nav a[aria-current] { color: #e5f4c9; background: #284739; }
.sidebar nav a[aria-current] { box-shadow: inset 3px 0 #d7ed9f; }
.account { display: flex; gap: 10px; align-items: center; margin-top: auto; border-top: 1px solid #365044; padding: 17px 3px 0; }
.account-avatar { background: #365646; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; font-weight: 650; color: #e4efcf; }
.account-name { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 650; }
.account-name small { display: block; margin-top: 2px; color: #b6cabc; font-size: 11px; font-weight: 400; }
.icon-button { border: 0; color: #c9d8cf; background: transparent; padding: 7px; border-radius: 7px; }
.icon-button:hover { background: #284739; color: white; }
.main { width: 100%; max-width: 1580px; margin: 0 auto; padding: 36px clamp(22px, 3.25vw, 52px) 48px; }
.page-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 25px; }
h1 { font-size: clamp(32px, 3.3vw, 46px); line-height: 1.05; letter-spacing: -.055em; font-weight: 760; overflow-wrap: anywhere; }
.page-head p { margin-top: 9px; color: var(--muted); line-height: 1.45; }
.page-head .eyebrow { color: var(--green); display: flex; gap: 7px; align-items: center; font-size: 12px; font-weight: 680; margin: 0 0 11px; }
.eyebrow .icon, .text-link .icon { width: 15px; height: 15px; }
h2 { font-size: 19px; letter-spacing: -.028em; line-height: 1.2; }
h3 { font-size: 14px; line-height: 1.3; }
.button { display: inline-flex; gap: 7px; min-height: 41px; padding: 9px 14px; border: 1px solid transparent; border-radius: 8px; justify-content: center; align-items: center; font-weight: 675; font-size: 13px; line-height: 1.3; }
.button .icon { width: 17px; height: 17px; }
.primary { color: white; background: var(--green); }
.primary:hover { color: white; background: #174630; }
.secondary { color: var(--green); background: white; border-color: #d6e0d8; }
.secondary:hover { background: #edf4ed; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 19px; }
.metric, .panel { background: var(--paper); border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 2px 3px #18372805; min-width: 0; }
.metric { position: relative; display: grid; gap: 5px; padding: 16px 18px; }
.metric:hover { border-color: #a4baa9; }
.tile { width: 35px; height: 35px; border-radius: 9px; display: inline-grid; place-items: center; flex-shrink: 0; }
.tile .icon { width: 18px; height: 18px; }
.green, .color-a { color: #2d6549; background: #e8f1e7; }
.blue, .color-b { color: #285d78; background: #e7f0f7; }
.yellow, .color-c { color: #835813; background: #fbf0d9; }
.red, .color-d { color: #a34637; background: #fbeae5; }
.metric strong { font-size: 31px; letter-spacing: -.065em; line-height: 1.02; margin-top: 4px; }
.metric > span:last-child { color: var(--muted); font-size: 13px; }
.metric-arrow { color: #75867b; position: absolute; right: 14px; top: 17px; }
.metric-arrow .icon { width: 16px; height: 16px; }
.split { display: grid; gap: 18px; align-items: start; }
.dashboard-split { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: stretch; }
.company-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.stack { display: grid; gap: 18px; min-width: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: start; gap: 9px; padding: 18px 19px 14px; }
.panel-head p { color: var(--muted); font-size: 12px; margin-top: 4px; }
.text-link, .back { font-size: 13px; font-weight: 675; color: var(--green); }
.text-link { display: inline-flex; gap: 5px; align-items: center; }
.text-link:hover, .back:hover { text-decoration: underline; }
.back { display: inline-block; margin-bottom: 15px; }
.task-groups { padding: 0 17px 13px; }
.task-group { scroll-margin-top: 18px; }
.task-group h3 { display: flex; align-items: center; gap: 7px; padding: 8px 9px; border-radius: 6px; background: #f2f5f1; font-size: 12px; }
.task-group + .task-group { margin-top: 8px; }
.task-group.overdue { --stage: #bb5848; }
.task-group.current { --stage: #ac761a; }
.task-group.upcoming { --stage: #628470; }
.dot { height: 7px; width: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--stage, #75847a); display: inline-block; }
.group-count { color: var(--muted); margin-left: auto; }
.task-row { display: flex; align-items: center; gap: 10px; padding: 9px 3px; min-height: 48px; }
.task-row + .task-row { border-top: 1px solid #edf0ec; }
.checkbox { color: var(--green); background: white; border: 1px solid #aebfb2; padding: 0; width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; }
.checkbox:hover, .checkbox.checked { background: #e8f1e7; }
.checkbox .icon { width: 15px; height: 15px; }
.task-info { display: grid; gap: 2px; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.task-info strong { font-size: 13px; font-weight: 675; }
.task-info a, .task-row time { font-size: 12px; color: var(--muted); }
.task-info a:hover { color: var(--green); text-decoration: underline; }
.task-row time { white-space: nowrap; }
.pipeline { padding-bottom: 13px; }
.pipeline-row { display: grid; gap: 6px; margin: 0 19px; padding: 7px 0; color: var(--muted); font-size: 13px; }
.pipeline-row > span:first-child { display: flex; align-items: center; gap: 8px; }
.pipeline-row b { margin-left: auto; color: var(--ink); }
.track { height: 5px; overflow: hidden; background: #eff2ee; border-radius: 9px; }
.track span { display: block; height: 100%; border-radius: inherit; background: var(--stage); }
.new { --stage: #78877e; --stage-bg: #edf1ed; --stage-ink: #43584c; }
.contacted { --stage: #648eac; --stage-bg: #eaf3fa; --stage-ink: #295e7d; }
.demo { --stage: #a17bc1; --stage-bg: #f3ebfa; --stage-ink: #6f418b; }
.proposal { --stage: #c1954e; --stage-bg: #fbf1db; --stage-ink: #775319; }
.won { --stage: #5a9676; --stage-bg: #e5f2e7; --stage-ink: #286547; }
.lost { --stage: #b76b63; --stage-bg: #f8ebe7; --stage-ink: #8d4038; }
.status { display: inline-flex; align-items: center; gap: 6px; background: var(--stage-bg); color: var(--stage-ink); padding: 4px 8px; border-radius: 20px; font-weight: 650; font-size: 11px; white-space: nowrap; }
.status .dot { width: 5px; height: 5px; flex-basis: 5px; }
.recent { margin-top: 18px; }
.table-wrap { position: relative; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
th, td { padding: 10px 12px; vertical-align: middle; }
th:first-child, td:first-child { padding-left: 19px; }
th:last-child, td:last-child { padding-right: 19px; }
th { background: #f1f5f0; font-size: 11px; font-weight: 680; white-space: nowrap; color: #43584c; }
td { color: var(--muted); border-bottom: 1px solid #edf0ec; }
tr:last-child td { border-bottom: 0; }
.company-link { display: inline-flex; gap: 9px; align-items: center; color: var(--ink); }
.company-avatar { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 7px; font-size: 10px; font-weight: 750; }
.row-arrow { display: inline-grid; place-items: center; width: 26px; height: 26px; }
.empty { padding-block: 25px; }
.empty-inline { font-size: 12px; color: var(--muted); padding: 9px 3px; }
.filters { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; padding: 15px 19px; }
.search { position: relative; flex: 1 1 230px; }
.search input { padding-left: 36px; width: 100%; }
.search .icon { position: absolute; top: 11px; left: 11px; width: 17px; height: 17px; color: var(--muted); }
input, select, textarea { border: 1px solid #cbd9ce; border-radius: 7px; padding: 9px 10px; background: white; color: var(--ink); min-height: 40px; }
textarea { resize: vertical; }
.company-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; color: var(--muted); }
.details dl { margin: 0; padding: 0 19px 14px; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 16px; font-size: 14px; }
.details dt { color: var(--muted); }
.details dd { margin: 0; overflow-wrap: anywhere; }
.details a, .detail-row a { color: var(--green); }
.preline { white-space: pre-line; overflow-wrap: anywhere; }
.inline-form, .confirm { padding: 12px 19px 16px; border-top: 1px solid var(--line); }
.inline-form label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 650; }
.inline-form div { display: flex; flex-wrap: wrap; gap: 7px; }
.detail-rows { padding: 0 18px 12px; }
.detail-row { display: flex; align-items: start; gap: 10px; padding: 10px 0; min-width: 0; }
.detail-row + .detail-row { border-top: 1px solid var(--line); }
.detail-row > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.detail-row p, .detail-row small { display: block; color: var(--muted); margin-top: 3px; }
.detail-row div a { margin: 4px 10px 0 0; display: inline-block; }
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.lane { background: #edf1ec; border: 1px solid var(--line); border-top: 3px solid var(--stage); border-radius: 10px; padding: 11px; min-height: 145px; }
.lane h2 { display: flex; align-items: center; gap: 7px; font-size: 14px; padding: 3px 2px 10px; }
.lane h2 span { color: var(--muted); margin-left: auto; }
.opportunity { background: white; border: 1px solid var(--line); border-radius: 8px; padding: 10px; margin-bottom: 8px; overflow-wrap: anywhere; }
.opportunity > a { display: block; font-weight: 700; }
.opportunity p { color: var(--muted); font-size: 12px; margin-top: 4px; }
.opportunity p .icon { width: 14px; height: 14px; }
.opportunity form { display: flex; gap: 5px; margin-top: 9px; }
.opportunity select { width: 100%; min-width: 0; font-size: 12px; }
.opportunity button { padding-inline: 8px; }
.standalone-tasks { max-width: 875px; padding-top: 15px; }
.form-panel { max-width: 680px; padding: 21px; }
.form-panel p, .login-card form p { margin-bottom: 15px; line-height: 1.5; }
.form-panel label, .login-card label { display: block; font-size: 13px; font-weight: 680; margin-bottom: 4px; }
.form-panel input, .form-panel select, .form-panel textarea, .login-card input { width: 100%; }
.errorlist { margin: 0 0 8px; padding: 0; list-style: none; color: #9c3d31; font-size: 13px; }
.notice { padding: 11px 14px; border: 1px solid #b1d1b8; color: #25553b; background: #edf7ec; border-radius: 8px; margin-bottom: 16px; }
.notice.error { border-color: #e6b9b0; background: #faece9; color: #923d30; }
.login-layout { display: grid; place-items: center; min-height: 100dvh; padding: 22px; background: radial-gradient(ellipse at 70% 12%, #dde9d0, transparent 56%), var(--canvas); }
.login-card { background: white; border: 1px solid var(--line); border-radius: 16px; padding: clamp(22px, 6vw, 39px); width: min(100%, 430px); box-shadow: 0 14px 44px #18372812; }
.login-card .brand { margin-bottom: 29px; }
.login-card .brand small { color: var(--green); }
.login-card h1 { font-size: 34px; }
.login-card > p { margin: 9px 0 20px; color: var(--muted); }
.login-card .button { width: 100%; }
@media (min-width: 1400px) { .board { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 1050px) and (min-width: 761px) {
  .shell { grid-template-columns: 184px minmax(0, 1fr); }
  .sidebar { padding-inline: 13px; }
  .main { padding-inline: 21px; }
}
@media (max-width: 900px) { .company-split { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .shell { display: block; }
  .sidebar { position: static; height: auto; padding: 12px 13px 8px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; }
  .sidebar .brand { margin: 0 0 0 3px; }
  .sidebar nav { grid-row: 2; grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
  .sidebar nav a { font-size: clamp(10px, 2.8vw, 13px); flex-direction: column; justify-content: center; gap: 4px; padding: 7px 2px; }
  .sidebar nav a[aria-current] { box-shadow: inset 0 -2px #d7ed9f; }
  .sidebar nav .icon { width: 16px; height: 16px; }
  .account { grid-row: 1; grid-column: 2; margin: 0; padding: 0; border: 0; }
  .account-name { display: none; }
  .main { padding: 23px 15px 34px; }
  .page-head { align-items: start; flex-wrap: wrap; margin-bottom: 18px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-bottom: 12px; }
  .metric { padding: 11px 12px; }
  .dashboard-split { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
}
@media (max-width: 390px) { .board { grid-template-columns: minmax(0, 1fr); } }
