:root {
  --bg: #f5f7f6;
  --panel: #fff;
  --ink: #243a35;
  --muted: #7b8883;
  --line: #e7ece9;
  --green: #277863;
  --green-dark: #133c35;
  --light-green: #e9f5ef;
  --orange: #b76a43;
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,input,select,textarea {
  font: inherit;
}

button,a,input,select,textarea {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a:hover {
  color: var(--green);
}

button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible {
  outline: 3px solid #78bfa5;
  outline-offset: 3px;
}

h1,h2,h3,p {
  margin-top: 0;
}

h1 {
  font-size: 32px;
  font-weight: 650;
  letter-spacing: -1.4px;
  line-height: 1.25;
  margin-bottom: 10px;
}

h2 {
  font-size: 19px;
  letter-spacing: -.4px;
  line-height: 1.4;
  margin-bottom: 0;
}

h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

small {
  font-size: 12px;
}

strong {
  font-weight: 600;
}

.accent {
  color: var(--green);
}

.muted {
  color: var(--muted);
}

.eyebrow {
  display: block;
  color: #7c8c82;
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 9px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100px;
  background: #fff;
  padding: 10px;
  z-index: 100;
}

.skip-link:focus {
  top: 5px;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 246px;
  position: fixed;
  inset: 0 auto 0 0;
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 31px 20px 0;
  z-index: 40;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-variable.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 39px;
  font-family: "Manrope", sans-serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -1.4px;
  color: var(--green-dark);
  white-space: nowrap;
}

.brand-name {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
}

.brand-accent {
  position: relative;
  color: #23765f;
  font-weight: 800;
}

.brand-accent::after {
  content: "";
  position: absolute;
  right: 1px;
  bottom: -4px;
  width: 25px;
  height: 3px;
  border-radius: 3px;
  background: #86b59a;
}

.auth-intro .brand-accent {
  color: #c6e7d3;
}

.auth-intro .brand-accent::after {
  background: #8dbb9f;
}

.business-switch {
  position: relative;
  margin: 32px 0 25px;
  background: #f5f7f5;
  border: 1px solid #e7ece7;
  border-radius: 10px;
}

.business-switch summary {
  padding: 11px 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  list-style: none;
}

.business-switch summary::-webkit-details-marker {
  display: none;
}

.business-switch summary>span:nth-child(2) {
  min-width: 0;
}

.business-switch summary strong {
  display: block;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 128px;
}

.business-switch summary small {
  font-size: 8px;
  letter-spacing: 1px;
  color: #88938d;
}

.business-avatar {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  flex-shrink: 0;
  background: #e0ebe3;
  color: #55745c;
  border-radius: 8px;
  font-weight: 650;
}

.chevron {
  margin-left: auto;
  color: #89988e;
}

.business-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  min-width: 205px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 30px #19362b1a;
  z-index: 50;
}

.business-options button,.business-options a {
  display: flex;
  justify-content: space-between;
  width: 100%;
  border: 0;
  background: white;
  border-radius: 6px;
  padding: 9px;
  text-align: left;
  font-size: 12px;
}

.business-options button:hover,.business-options .selected {
  background: var(--light-green);
  color: var(--green);
}

.business-options a {
  color: var(--green);
  border-top: 1px solid var(--line);
  margin-top: 4px;
}

.sidebar nav>a {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 8px;
  margin-bottom: 4px;
  padding: 10px 12px;
  font-size: 12px;
  color: #64716b;
  font-weight: 500;
}

.sidebar nav>a:hover {
  background: #f6f8f5;
}

.sidebar nav>a.active {
  background: #e9f2ed;
  color: #26664f;
  font-weight: 650;
}

.nav-icon {
  font-size: 18px;
  line-height: 1;
  width: 20px;
  color: #88968e;
}

.active .nav-icon {
  color: #2d7054;
}

.nav-label {
  display: block;
  font-size: 9px;
  letter-spacing: 1.5px;
  font-weight: 650;
  color: #a1aaa4;
  margin: 20px 12px 9px;
}

.sidebar-bottom {
  margin-top: auto;
  padding-top: 25px;
}

.sidebar-note {
  font-size: 11px;
  color: #54715e;
  border: 1px solid #e6ebe5;
  background: #f8faf7;
  padding: 12px;
  border-radius: 9px;
  margin-bottom: 20px;
}

.sidebar-note small {
  display: block;
  color: #9aa49c;
  font-size: 9px;
  padding-left: 10px;
  margin-top: 5px;
}

.small-dot {
  display: inline-block;
  height: 6px;
  width: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #7f9e84;
  margin-right: 7px;
}

.small-dot.green {
  background: #68aa88;
}

.small-dot.orange {
  background: #db9a6b;
}

.user-row {
  display: flex;
  gap: 9px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 18px 0;
}

.user-avatar {
  display: grid;
  place-items: center;
  background: #f0eadd;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  color: #8a7655;
  font-weight: 600;
}

.user-row strong,.user-row small {
  display: block;
  font-size: 11px;
}

.user-row small {
  font-size: 9px;
  color: var(--muted);
}

.user-row form {
  margin-left: auto;
}

.logout {
  color: var(--muted);
  font-size: 20px;
  background: none;
  border: none;
  padding: 5px;
}

.main-shell {
  margin-left: 246px;
  min-width: 0;
  flex: 1;
}

.topbar {
  height: 69px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 36px;
  gap: 16px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
}

.breadcrumb {
  font-size: 11px;
  color: #849088;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.breadcrumb .breadcrumb-separator {
  color: #c0c8c1;
  margin: 0 12px;
}

.local-badge {
  border: 1px solid #e7ece7;
  border-radius: 20px;
  color: #8e9a91;
  font-size: 9px;
  letter-spacing: .4px;
  padding: 5px 11px;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--ink);
}

.main-content {
  padding: 35px 36px 15px;
  max-width: 1680px;
  margin: 0 auto;
}

.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  margin-bottom: 27px;
}

.page-heading .muted {
  font-size: 12px;
  margin-bottom: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 15px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  min-height: 37px;
  transition: background .15s;
}

.button.primary {
  background: var(--green);
  color: white;
  box-shadow: 0 3px 5px #27786312;
}

.button.primary:hover {
  background: #1f6553;
}

.button.secondary {
  background: white;
  border-color: #dfe6e0;
  color: #5a6c61;
}

.button.secondary:hover {
  background: #f2f7f2;
}

.button.danger {
  background: #a7483d;
  color: white;
}

.button.small {
  padding: 6px 10px;
  font-size: 10px;
  min-height: 29px;
}

.button.full {
  width: 100%;
}

.action-group {
  display: flex;
  align-items: center;
  gap: 13px;
}

.text-link {
  color: var(--green);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.danger-link {
  color: #b36b5e;
  font-size: 11px;
  white-space: nowrap;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 22px;
  overflow: hidden;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 24px 24px 19px;
}

.panel-heading .eyebrow {
  font-size: 9px;
  margin-bottom: 6px;
}

.panel-heading h2 {
  font-size: 17px;
}

.panel-heading .muted {
  font-size: 11px;
  margin: 4px 0 0;
}

.panel-bottom {
  padding: 15px 24px;
  border-top: 1px solid #eef1ee;
}

.count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 23px;
  height: 21px;
  padding: 0 6px;
  background: #eef2ef;
  border-radius: 6px;
  font-size: 11px;
  color: #7c8a80;
  margin-left: 7px;
  vertical-align: middle;
}

.commercial-cards {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 15px;
  margin-bottom: 26px;
}

.stat-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 16px;
}

.stat-card>div {
  min-width: 0;
}

.stat-card span:not(.stat-icon) {
  display: block;
  font-size: 10px;
  color: #7b8880;
}

.stat-card strong {
  display: block;
  font-size: 29px;
  line-height: 1.35;
  letter-spacing: -.7px;
  margin-top: 6px;
}

.stat-card .currency-stat {
  font-size: 22px;
  margin-top: 12px;
  white-space: nowrap;
}

.stat-card small {
  display: block;
  font-size: 9px;
  color: #9aa69c;
  margin-top: 7px;
}

.stat-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 10px;
  font-size: 19px;
}

.peach {
  background: #fcf0e9;
  color: #c88861;
}

.mint {
  background: #eaf3ec;
  color: #5e9476;
}

.lavender {
  background: #f0edf8;
  color: #9381b6;
}

.sand {
  background: #f5f1e6;
  color: #b29e64;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0,1.85fr) minmax(0,1fr);
  gap: 23px;
}

.task-row,.list-row,.transaction-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px 24px;
  border-top: 1px solid #f0f3f0;
}

.task-row:first-of-type {
  border-top: 0;
}

.task-info {
  flex: 1;
  min-width: 0;
}

.task-info>a,.task-info>strong {
  display: block;
  font-size: 12px;
  font-weight: 550;
  overflow-wrap: anywhere;
}

.task-info>span {
  display: block;
  font-size: 10px;
  color: #8f9a92;
  margin-top: 5px;
}

.separator {
  color: #c4cbc5;
  padding: 0 4px;
}

.complete-circle {
  display: grid;
  place-items: center;
  border: 1.5px solid #d5dfd6;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  background: white;
  color: transparent;
  font-size: 13px;
  padding: 0;
  flex-shrink: 0;
}

.complete-circle:hover,.complete-circle:focus-visible {
  border-color: var(--green);
  background: var(--light-green);
  color: var(--green);
}

.done-check {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  background: var(--light-green);
  border-radius: 50%;
  color: var(--green);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  padding: 4px 7px;
  background: #f0f3f0;
  color: #8a968d;
  font-size: 9px;
  font-weight: 500;
  white-space: nowrap;
}

.badge.overdue {
  background: #fbede7;
  color: #ba7354;
}

.badge.today {
  background: #eaf3e9;
  color: #699166;
}

.badge.stage-PROSPECT {
  background: #eef0f8;
  color: #7d8caf;
}

.badge.stage-CONTACTED {
  background: #e9f2f6;
  color: #7197a8;
}

.badge.stage-INTERESTED {
  background: #f6f1e3;
  color: #a69a62;
}

.badge.stage-PROPOSAL {
  background: #f1eaf7;
  color: #a388b4;
}

.badge.stage-WON,.badge.stage-CLIENT {
  background: #eaf3e9;
  color: #699166;
}

.badge.stage-LOST,.badge.stage-INACTIVE {
  background: #f4eeeb;
  color: #ad8a81;
}

.mini-pipeline {
  padding: 0 24px;
}

.mini-pipeline a {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #eef2ee;
  padding: 12px 0;
  font-size: 11px;
  color: #7b887e;
}

.mini-pipeline a strong {
  margin-left: auto;
  background: #f5f7f4;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 11px;
}

.stage-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #92a889;
  display: inline-block;
  flex-shrink: 0;
}

.stage-dot.stage-PROSPECT {
  background: #95a5c7;
}

.stage-dot.stage-CONTACTED {
  background: #88bac1;
}

.stage-dot.stage-INTERESTED {
  background: #d4bd77;
}

.stage-dot.stage-PROPOSAL {
  background: #bea2cf;
}

.stage-dot.stage-WON {
  background: #7bae85;
}

.stage-dot.stage-LOST {
  background: #ca9384;
}

.pipeline-total {
  display: flex;
  justify-content: space-between;
  padding: 20px 24px;
  font-size: 11px;
  color: #84928a;
  gap: 10px;
}

.pipeline-total strong {
  color: var(--ink);
  font-size: 15px;
}

.pipeline-summary>.button {
  width: calc(100% - 48px);
  margin: 0 24px 24px;
  font-size: 10px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 4px 0 20px;
}

.section-heading h2 {
  font-size: 21px;
}

.section-heading .eyebrow {
  margin-bottom: 5px;
}

.month-chip {
  font-size: 10px;
  border: 1px solid #dfe6df;
  border-radius: 7px;
  padding: 7px 11px;
  background: white;
  color: #88988d;
}

.financial-cards {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 17px;
}

.metric-card {
  padding: 21px 23px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.metric-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #839087;
}

.metric-icon {
  display: grid;
  place-items: center;
  border-radius: 7px;
  font-size: 16px;
  width: 28px;
  height: 28px;
  background: #e8f1e9;
  color: #548966;
}

.metric-icon.orange {
  background: #fcf0e8;
  color: #c38b62;
}

.metric-value {
  display: block;
  font-size: 28px;
  letter-spacing: -.8px;
  line-height: 1.6;
  margin-top: 5px;
}

.metric-card small {
  font-size: 9px;
  color: #9eaaa1;
}

.result-card {
  background: #eaf3e9;
  border-color: #dbe9db;
}

.result-card .metric-value {
  color: #487049;
}

.result-card .metric-value.negative {
  color: #ac6152;
}

.pending-strip {
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 17px 3px 24px;
  font-size: 10px;
  color: #91a095;
}

.pending-strip a {
  display: flex;
  align-items: center;
  gap: 5px;
}

.pending-strip strong {
  margin-left: 7px;
  color: #6b7e6e;
  font-size: 12px;
  white-space: nowrap;
}

.pending-strip>span {
  margin-left: auto;
  font-size: 9px;
}

.flow-icon {
  height: 28px;
  width: 28px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 8px;
  font-size: 17px;
}

.flow-icon.income {
  background: #edf4ec;
  color: #6e9b71;
}

.flow-icon.expense {
  background: #fcf1ea;
  color: #c28a61;
}

.amount {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.income-text {
  color: #619369;
}

.empty-state {
  text-align: center;
  padding: 36px 24px;
  color: var(--muted);
}

.empty-state h3 {
  color: #566b5c;
  font-weight: 550;
  font-size: 16px;
}

.empty-state p {
  font-size: 12px;
  max-width: 360px;
  margin: 0 auto 20px;
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  background: #f0f5ee;
  border-radius: 12px;
  margin: 0 auto 15px;
  color: #9eb198;
  font-size: 22px;
}

.empty-inline {
  padding: 25px;
  color: #97a39b;
  font-size: 12px;
}

.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 9px;
  color: #b0bbb1;
  padding: 15px 0 10px;
}

.form-panel {
  max-width: 860px;
  padding: 28px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 20px;
}

.form-field {
  min-width: 0;
}

.form-field.full-width,.form-errors {
  grid-column: 1/-1;
}

.form-field label {
  display: block;
  margin-bottom: 7px;
  font-weight: 550;
  font-size: 12px;
  color: #5b6d61;
}

.required {
  color: #91aa95;
}

input:not([type=hidden]),select,textarea {
  width: 100%;
  background: #fff;
  border: 1px solid #dce5dd;
  border-radius: 7px;
  padding: 10px 12px;
  color: #4e6555;
  min-height: 40px;
  font-size: 12px;
}

input::placeholder,textarea::placeholder {
  color: #a5afa8;
}

select {
  padding-right: 28px;
}

textarea {
  resize: vertical;
  line-height: 1.6;
}

.help-text {
  font-size: 10px;
  color: #96a299;
  margin-top: 7px;
}

.help-text ul {
  padding-left: 17px;
  margin: 3px 0;
}

.field-error,.form-errors {
  color: #b46752;
  font-size: 11px;
  margin-top: 5px;
}

.errorlist {
  padding-left: 17px;
}

.form-errors {
  background: #fff0e9;
  padding: 10px;
  border-radius: 7px;
  margin-bottom: 20px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.messages {
  margin-bottom: 20px;
}

.message {
  padding: 12px 17px;
  border: 1px solid #d6e7d5;
  background: #edf5eb;
  border-radius: 9px;
  color: #5b7d56;
  font-size: 12px;
  margin-bottom: 8px;
}

.message.error {
  background: #fff0e9;
  border-color: #f3dbce;
  color: #a46c52;
}

.message.info {
  background: #edf2f6;
  border-color: #dae5ee;
  color: #628098;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.filter-bar input {
  flex: 1;
  min-width: 160px;
}

.filter-bar select {
  width: 180px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
}

th {
  font-weight: 550;
  color: #92a094;
  font-size: 10px;
  background: #fbfcfa;
  border-bottom: 1px solid var(--line);
  padding: 13px 21px;
  white-space: nowrap;
}

td {
  padding: 17px 21px;
  font-size: 11px;
  color: #728576;
  border-bottom: 1px solid #edf1ec;
}

tr:last-child td {
  border-bottom: 0;
}

.table-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #536959;
  font-size: 12px;
  font-weight: 550;
}

.table-avatar {
  display: inline-grid;
  place-items: center;
  width: 29px;
  height: 29px;
  flex-shrink: 0;
  background: #eff3ed;
  color: #84977c;
  border-radius: 8px;
  font-weight: 600;
  font-size: 12px;
}

.table-subtext {
  display: block;
  font-size: 9px;
  color: #9aa89c;
  margin-top: 5px;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding: 18px;
  font-size: 11px;
  color: #8c9b8e;
  border-top: 1px solid var(--line);
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 22px;
}

.business-card {
  padding: 25px;
  position: relative;
}

.business-card-icon {
  display: grid;
  place-items: center;
  background: #eaf2e7;
  color: #628365;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  margin-bottom: 17px;
  font-size: 23px;
}

.business-card>.badge {
  position: absolute;
  top: 26px;
  right: 22px;
}

.business-card h2 {
  margin-bottom: 8px;
}

.business-card>.muted {
  font-size: 12px;
  min-height: 37px;
}

.business-card>small {
  display: block;
  color: #8ba28f;
  margin-bottom: 20px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0,1.8fr) minmax(0,1fr);
  gap: 23px;
}

.details {
  padding: 0 24px 20px;
  margin: 0;
  overflow-wrap: anywhere;
}

.details dt {
  font-size: 10px;
  color: #99a49b;
  margin-top: 18px;
}

.details dd {
  margin: 4px 0 0;
  font-size: 12px;
  color: #647a68;
}

.details dd a {
  color: var(--green);
}

.pipeline-search {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin-bottom: 25px;
}

.pipeline-board {
  display: grid;
  grid-template-columns: repeat(2,minmax(230px,1fr));
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 14px;
  align-items: stretch;
}

.pipeline-column {
  background: #edf1ed;
  border: 1px solid #e4eae3;
  border-radius: 12px;
  padding: 13px;
  min-height: 330px;
}

.column-heading {
  padding: 5px 3px 15px;
}

.column-heading>div {
  display: flex;
  align-items: center;
  gap: 7px;
}

.column-heading h2 {
  font-size: 12px;
  letter-spacing: 0;
}

.column-heading .count-pill {
  margin-left: auto;
  background: #e1e8df;
  font-size: 9px;
}

.column-heading>span {
  display: block;
  color: #92a18f;
  font-size: 10px;
  margin-top: 7px;
}

.column-cards {
  display: grid;
  gap: 12px;
}

.opportunity-card {
  padding: 15px;
  background: white;
  border: 1px solid #e0e8dd;
  border-radius: 10px;
  box-shadow: 0 2px 3px #17391203;
}

.opportunity-company {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  color: #8e9d89;
  margin-bottom: 13px;
}

.opportunity-company .table-avatar {
  width: 23px;
  height: 23px;
  font-size: 10px;
  border-radius: 6px;
}

.opportunity-title {
  font-size: 12px;
  font-weight: 600;
  display: block;
  line-height: 1.6;
  margin-bottom: 14px;
}

.opportunity-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.opportunity-value strong {
  font-size: 12px;
  color: #4d7351;
}

.opportunity-value span {
  font-size: 8px;
  color: #98a493;
  background: #f4f7f1;
  padding: 3px 5px;
  border-radius: 4px;
}

.card-contact {
  font-size: 9px;
  color: #99a692;
  margin: 12px 0 0;
}

.opportunity-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f0f3ec;
  margin-top: 15px;
  padding-top: 10px;
  font-size: 9px;
  color: #99a68f;
}

.opportunity-card-bottom>a {
  color: var(--green);
  font-size: 17px;
}

.column-empty {
  font-size: 10px;
  color: #a0ad9a;
  text-align: center;
  padding: 23px 12px;
  border: 1px dashed #d9e1d3;
  border-radius: 8px;
}

.pipeline-hint {
  font-size: 11px;
  margin-top: 14px;
}

.opportunity-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px;
  gap: 22px;
}

.opportunity-banner>div>.muted {
  font-size: 11px;
}

.opportunity-banner strong {
  display: block;
  font-size: 31px;
  color: var(--green);
  margin-top: 5px;
  letter-spacing: -.6px;
}

.opportunity-banner strong small {
  font-size: 11px;
  font-weight: 400;
  color: #8a9b87;
  margin-left: 15px;
  letter-spacing: 0;
}

.opportunity-banner label {
  display: block;
  font-size: 10px;
  color: #8b9e8b;
  margin-bottom: 7px;
}

.opportunity-banner select {
  min-width: 180px;
}

.sale-notice {
  display: flex;
  gap: 15px;
  align-items: center;
  background: #e8f3e7;
  border: 1px solid #d7e8d3;
  padding: 17px 23px;
  border-radius: 10px;
  margin-bottom: 23px;
}

.sale-notice>span {
  font-size: 22px;
  color: #769b6d;
}

.sale-notice>div {
  flex: 1;
}

.sale-notice strong {
  font-size: 12px;
  color: #5b7e51;
}

.sale-notice p {
  font-size: 10px;
  margin: 3px 0 0;
  color: #8a9e7d;
}

.timeline {
  padding: 0 24px 10px;
}

.timeline-item {
  display: flex;
  gap: 15px;
  position: relative;
  padding: 10px 0 25px;
}

.timeline-item:before {
  content: "";
  position: absolute;
  top: 21px;
  bottom: -4px;
  left: 4px;
  width: 1px;
  background: #e5ebe0;
}

.timeline-item:last-child:before {
  display: none;
}

.timeline-dot {
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  background: #bfd3b4;
  border-radius: 50%;
  margin-top: 6px;
  z-index: 1;
}

.timeline-item>div {
  min-width: 0;
  flex: 1;
}

.timeline-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.timeline-meta strong {
  font-size: 11px;
  color: #6b8461;
}

.timeline-meta span {
  font-size: 9px;
  color: #99a791;
}

.timeline-meta a {
  margin-left: auto;
  font-size: 9px;
}

.timeline-item p {
  font-size: 12px;
  color: #7a8c72;
  margin: 9px 0;
  overflow-wrap: anywhere;
}

.timeline-item small {
  font-size: 9px;
  color: #a8b29e;
}

.linked-transaction {
  display: grid;
  gap: 9px;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  font-size: 11px;
}

.linked-transaction .badge {
  justify-self: start;
}

.tabs {
  display: flex;
  gap: 25px;
  border-bottom: 1px solid #e0e8de;
  margin: 6px 0 22px;
  overflow-x: auto;
}

.tabs a {
  font-size: 11px;
  white-space: nowrap;
  padding: 12px 0;
  color: #99a490;
  border-bottom: 2px solid transparent;
}

.tabs a.active {
  border-color: var(--green);
  color: var(--green);
  font-weight: 600;
}

.month-picker {
  display: flex;
  align-items: center;
  gap: 10px;
}

.month-picker input {
  max-width: 160px;
  min-height: 34px;
  padding: 6px 8px;
}

.finance-table {
  min-width: 860px;
}

.list-note {
  font-size: 10px;
  margin-top: -5px;
}

.followup-list-row {
  min-height: 95px;
}

.auth-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.auth-intro {
  background: var(--green-dark);
  color: #d3dfd0;
  padding: 50px 65px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 55px;
}

.auth-intro .brand {
  color: #fff;
}

.auth-intro .eyebrow {
  color: #98b4a0;
  font-size: 9px;
}

.auth-intro h1 {
  font-size: 53px;
  line-height: 1.2;
  letter-spacing: -2px;
  font-weight: 500;
  color: #f2f5ed;
  margin-bottom: 25px;
}

.auth-intro h1 span {
  color: #accb81;
}

.auth-intro p:not(.eyebrow) {
  max-width: 355px;
  font-size: 14px;
  line-height: 1.9;
  color: #a8bbae;
}

.auth-intro>small {
  font-size: 10px;
  color: #7f9e8a;
}

.auth-features {
  display: flex;
  flex-direction: column;
  gap: 13px;
  font-size: 11px;
  color: #b6c9b5;
  margin-top: 33px;
}

.auth-form-wrap {
  background: #fafbf8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 45px;
}

.auth-card {
  width: 100%;
  max-width: 370px;
}

.auth-card h2 {
  font-size: 28px;
  letter-spacing: -.8px;
  margin-bottom: 9px;
}

.auth-card>.muted {
  font-size: 12px;
  margin-bottom: 30px;
}

.auth-card .form-grid {
  grid-template-columns: 1fr;
  gap: 17px;
}

.auth-card .button {
  margin-top: 25px;
  min-height: 44px;
}

.auth-alternative {
  text-align: center;
  color: #9aa896;
  font-size: 11px;
  margin-top: 22px;
}

.auth-alternative a {
  color: var(--green);
  font-weight: 600;
}

@media(min-width:1500px) {
  .pipeline-board {
    grid-template-columns: repeat(2,minmax(230px,1fr));
  }
}

@media(max-width:1250px) {
  .sidebar {
    width: 220px;
    padding: 28px 16px 0;
  }
  .main-shell {
    margin-left: 220px;
  }
  .main-content {
    padding: 30px 25px 15px;
  }
  .topbar {
    padding: 0 25px;
  }
  .commercial-cards {
    gap: 11px;
  }
  .stat-card {
    padding: 16px 12px;
    gap: 9px;
  }
  .stat-icon {
    width: 29px;
    height: 29px;
    font-size: 16px;
  }
  .stat-card .currency-stat {
    font-size: 18px;
    margin-top: 15px;
  }
  .stat-card span:not(.stat-icon) {
    font-size: 9px;
  }
  .stat-card small {
    font-size: 8px;
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .metric-value {
    font-size: 25px;
  }
  .pending-strip {
    gap: 18px;
    flex-wrap: wrap;
  }
  .pending-strip>span {
    margin-left: 0;
  }
}

@media(max-width:1000px) {
  .commercial-cards {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .stat-card {
    padding: 19px;
  }
  .stat-card .currency-stat {
    font-size: 25px;
    margin-top: 8px;
  }
  .stat-card span:not(.stat-icon) {
    font-size: 11px;
  }
  .stat-card small {
    font-size: 10px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .pipeline-summary .mini-pipeline {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 0 25px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading>.button {
    font-size: 10px;
  }
  .page-heading>.action-group {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .financial-cards {
    gap: 12px;
  }
  .metric-card {
    padding: 17px;
  }
  .metric-value {
    font-size: 21px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .business-grid {
    grid-template-columns: repeat(2,1fr);
  }
  .filter-bar {
    flex-wrap: wrap;
  }
  .filter-bar select {
    width: auto;
    flex: 1;
  }
  .auth-intro {
    padding: 40px;
  }
  .auth-intro h1 {
    font-size: 42px;
  }
  .auth-form-wrap {
    padding: 35px;
  }
}

@media(max-width:760px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform .2s;
    width: 246px;
    box-shadow: 8px 0 20px #19362b0a;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main-shell {
    margin-left: 0;
  }
  .menu-toggle {
    display: block;
  }
  .topbar {
    height: 60px;
    padding: 0 20px;
  }
  .main-content {
    padding: 27px 20px 12px;
  }
  .breadcrumb {
    font-size: 10px;
  }
  .local-badge {
    font-size: 8px;
  }
  .page-heading h1 {
    font-size: 28px;
  }
  .page-heading {
    gap: 18px;
    margin-bottom: 23px;
  }
  .page-heading .muted {
    font-size: 11px;
  }
  .auth-shell {
    grid-template-columns: 1fr;
  }
  .auth-intro {
    padding: 25px 30px;
    gap: 28px;
  }
  .auth-intro h1 {
    font-size: 32px;
    letter-spacing: -1px;
    margin-bottom: 15px;
  }
  .auth-intro>small,.auth-features {
    display: none;
  }
  .auth-intro p:not(.eyebrow) {
    font-size: 12px;
    max-width: unset;
    margin-bottom: 0;
  }
  .auth-form-wrap {
    padding: 35px 25px;
  }
  .auth-card h2 {
    font-size: 25px;
  }
  .auth-card .button {
    min-height: 44px;
  }
  .detail-grid {
    gap: 0;
  }
  .opportunity-banner {
    flex-wrap: wrap;
  }
  .form-panel {
    padding: 23px;
  }
  .followup-list-row {
    flex-wrap: wrap;
  }
  .followup-list-row>.task-info {
    flex-basis: 60%;
  }
  .followup-list-row>.action-group {
    padding-left: 35px;
  }
  .financial-cards .metric-value {
    font-size: 22px;
  }
  .metric-icon {
    width: 23px;
    height: 23px;
  }
  .finance-table {
    min-width: 850px;
  }
  .page-footer {
    padding-top: 20px;
  }
  .topbar-left {
    gap: 9px;
  }
  .breadcrumb .breadcrumb-separator {
    margin: 0 6px;
  }
}

@media(max-width:520px) {
  .main-content {
    padding: 24px 16px 12px;
  }
  .topbar {
    padding: 0 16px;
  }
  .page-heading {
    flex-direction: column;
    align-items: stretch;
  }
  .page-heading>.button {
    align-self: flex-start;
    font-size: 11px;
  }
  .page-heading>.action-group {
    flex-direction: row;
    align-self: flex-start;
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .commercial-cards {
    gap: 10px;
  }
  .stat-card {
    padding: 15px 11px;
    gap: 9px;
  }
  .stat-icon {
    width: 26px;
    height: 26px;
    border-radius: 8px;
  }
  .stat-card span:not(.stat-icon) {
    font-size: 9px;
    line-height: 1.4;
  }
  .stat-card strong {
    font-size: 25px;
  }
  .stat-card .currency-stat {
    font-size: 18px;
    margin-top: 12px;
  }
  .stat-card small {
    font-size: 8px;
  }
  .panel-heading {
    padding: 20px 18px 15px;
  }
  .panel-heading h2 {
    font-size: 16px;
  }
  .task-row,.list-row,.transaction-row {
    padding: 16px 18px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .task-row>.task-info {
    flex-basis: 60%;
  }
  .task-row>.badge {
    margin-left: 32px;
  }
  .task-info>a,.task-info>strong {
    font-size: 12px;
  }
  .task-info>span {
    font-size: 10px;
  }
  .panel-bottom {
    padding: 15px 18px;
  }
  .mini-pipeline {
    padding: 0 18px;
  }
  .pipeline-summary .mini-pipeline {
    gap: 0 18px;
  }
  .pipeline-total {
    padding: 20px 18px;
  }
  .pipeline-summary>.button {
    margin: 0 18px 20px;
    width: calc(100% - 36px);
  }
  .financial-cards {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .metric-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px;
    padding: 17px 18px;
  }
  .metric-label {
    grid-column: 1;
    gap: 10px;
    justify-content: flex-start;
  }
  .metric-value {
    grid-column: 2;
    grid-row: 1/3;
    align-self: center;
    font-size: 24px!important;
    margin: 0;
  }
  .metric-card small {
    grid-column: 1;
  }
  .pending-strip {
    padding: 17px 0 23px;
    gap: 12px;
    flex-direction: column;
    align-items: flex-start;
  }
  .pending-strip>span {
    font-size: 8px;
  }
  .section-heading h2 {
    font-size: 19px;
  }
  .month-chip {
    font-size: 9px;
  }
  .transaction-row>.amount {
    font-size: 12px;
  }
  .transaction-row>.button {
    margin-left: 38px;
  }
  .transaction-row>.task-info {
    flex-basis: 60%;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-panel {
    padding: 20px 18px;
  }
  .form-actions {
    margin-top: 20px;
    padding-top: 20px;
  }
  .filter-bar {
    padding: 17px 18px;
    gap: 10px;
  }
  .filter-bar input {
    flex-basis: 100%;
    width: 100%;
  }
  .filter-bar select {
    min-width: 125px;
  }
  .table-title {
    font-size: 11px;
    min-width: 150px;
  }
  .business-grid {
    grid-template-columns: 1fr;
  }
  .business-card .muted {
    min-height: 0;
  }
  .opportunity-banner {
    padding: 20px;
  }
  .opportunity-banner form {
    width: 100%;
  }
  .opportunity-banner select {
    min-width: 0;
  }
  .opportunity-banner .action-group {
    gap: 10px;
  }
  .opportunity-banner strong {
    font-size: 28px;
  }
  .sale-notice {
    padding: 18px;
    flex-wrap: wrap;
  }
  .sale-notice>.button {
    margin-left: 33px;
  }
  .timeline {
    padding: 0 18px 10px;
  }
  .details {
    padding: 0 18px 20px;
  }
  .tabs {
    gap: 23px;
  }
  .month-picker {
    gap: 6px;
  }
  .month-picker input {
    max-width: 137px;
  }
  .section-heading:has(.month-picker) {
    flex-wrap: wrap;
  }
  .page-footer {
    font-size: 8px;
  }
  .page-footer>span {
    text-align: right;
  }
  .pipeline-search input {
    min-width: 0;
  }
  .auth-intro .brand {
    font-size: 24px;
  }
}

/* Minimal presentation: keep actions and records, reduce decorative information. */
.detail-grid {
  align-items: start;
}
:root {
  --radius: 10px;
  --bg: #fafbf9;
  --muted: #6f7e75;
}
.sidebar {
  overflow-y: auto;
}
.sidebar nav > a {
  padding-top: 11px;
  padding-bottom: 11px;
  font-size: 13px;
}
.panel-heading h2 {
  font-size: 16px;
  font-weight: 550;
}
h1 {
  font-size: 29px;
  font-weight: 600;
  letter-spacing: -.8px;
}
.page-heading {
  margin-bottom: 25px;
}
.button.primary {
  box-shadow: none;
}
.stat-card {
  padding: 19px 22px;
  border-radius: 10px;
}
.stat-card span:not(.stat-icon) {
  font-size: 12px;
}
.stat-card strong {
  font-size: 25px;
}
.stat-card .currency-stat {
  font-size: 23px;
  margin-top: 6px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.stat-card small {
  font-size: 11px;
}
.task-info > a, .task-info > strong {
  font-size: 13px;
}
.task-info > span {
  font-size: 11px;
}
.badge {
  font-size: 10px;
}
.metric-card {
  padding: 18px 22px;
  border-radius: 10px;
}
.metric-label {
  font-size: 12px;
}
.metric-value {
  font-size: 26px;
}
.result-card {
  background: #f0f5ef;
}
.pending-strip {
  font-size: 12px;
}
.optional-fields {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 18px;
}
.optional-fields summary, .secondary-section summary {
  cursor: pointer;
  font-size: 12px;
  color: #617468;
}
.optional-fields .form-grid {
  margin-top: 20px;
}
.secondary-section summary {
  padding: 18px 24px;
  font-weight: 550;
}
.secondary-section[open] > summary {
  border-bottom: 1px solid var(--line);
}
.client-filter select {
  width: 260px;
}
.client-filter label {
  color: var(--muted);
  font-size: 12px;
}
.form-delete {
  margin-right: auto;
  align-self: center;
}
.opportunity-card {
  box-shadow: none;
}
.opportunity-company {
  font-size: 11px;
}
.opportunity-title {
  font-size: 13px;
}
.opportunity-card-bottom {
  font-size: 10px;
}
@media (max-width: 520px) {
  .stat-card {
    padding: 16px;
  }
  .stat-card span:not(.stat-icon) {
    font-size: 11px;
  }
  .stat-card .currency-stat {
    font-size: 20px;
    margin-top: 8px;
  }
  .stat-card small {
    font-size: 10px;
  }
  .metric-value {
    grid-row: 1;
  }
  .metric-label {
    align-self: center;
  }
  .client-filter select {
    min-width: 0;
    width: auto;
  }
  .secondary-section summary {
    padding: 18px;
  }
}

.pipeline-board.pipeline-closed { grid-template-columns: minmax(230px, 1fr); }

.business-delete-link { display: inline-block; margin-top: 16px; font-size: 12px; }
.business-delete-summary { margin: 20px 0; padding-left: 20px; line-height: 1.9; }
.business-delete-confirm { display: flex; align-items: flex-start; gap: 10px; margin: 20px 0; }
.business-delete-confirm input { width: auto; margin-top: 3px; }

.business-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; font-size: 12px; }
.business-card-actions .business-delete-link { margin-top: 0; }

.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; white-space: normal; overflow: visible; }
.breadcrumb a { color: #60796d; text-decoration: none; overflow-wrap: anywhere; }
.breadcrumb a:hover { color: var(--green-dark); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb [aria-current="page"] { color: #849088; overflow-wrap: anywhere; }
.topbar { height: auto; min-height: 68px; padding-top: 12px; padding-bottom: 12px; }

.reorder-handle { flex: 0 0 32px; width: 32px; height: 40px; padding: 0; border: 0; background: transparent; color: var(--muted, #64748b); font-size: 24px; cursor: grab; touch-action: none; }
.reorder-handle:focus-visible { outline: 2px solid var(--primary, #15803d); border-radius: 6px; }
.reorder-handle:active { cursor: grabbing; }
.list-row.reordering { background: #f0fdf4; box-shadow: inset 3px 0 #15803d; }
.reorder-hint, .reorder-feedback { padding: 0 20px; font-size: 13px; }
.reorder-feedback:empty { display: none; }

.form-field .checkbox-label { display: flex; align-items: center; gap: 10px; }
.form-field .checkbox-label input[type=checkbox] { width: 18px; height: 18px; margin: 0; padding: 0; accent-color: #227a65; flex-shrink: 0; }

.badge.demand-priority { display: inline-flex; align-self: flex-start; background: #fff3d6; color: #855400; font-weight: 600; }
