:root {
  color-scheme: light;
  font: 16px/1.5 system-ui, sans-serif;
  color: #192c2a;
  background: #f0f4f2;
  --muted: #506962;
  --line: #dce7e1;
  --accent: #125c4a;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); text-underline-offset: .18em; }
button, input, select, textarea { font: inherit; }
button, .button {
  display: inline-block;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  background: white;
  border: 1px solid #bbcfc4;
  border-radius: 9px;
  padding: .55rem .9rem;
}
button:hover, .button:hover { background: #edf5f1; }
:focus-visible { outline: 3px solid #25836a; outline-offset: 2px; }
.primary { background: var(--accent); color: white; border-color: var(--accent); font-weight: 650; }
.primary:hover { background: #184b3e; }
.layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 100vh; }
aside { padding: 2rem 1.15rem; background: #18342f; color: white; }
.brand { display: flex; align-items: center; gap: .65rem; font-weight: 720; font-size: 1.18rem; }
.brand span { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 11px; background: #bde6c9; color: #18342f; }
nav { display: grid; gap: .25rem; margin: 2rem 0; }
nav a, .signout { color: white; border: 0; background: transparent; border-radius: 8px; text-decoration: none; padding: .5rem .75rem; }
nav a:hover, nav a[aria-current], .signout:hover { background: #31534b; }
main { width: min(100%, 1400px); padding: 2.35rem clamp(1rem, 3.6vw, 3.8rem); }
header { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
h1 { font-size: clamp(1.9rem, 4vw, 3.25rem); letter-spacing: -.046em; line-height: 1.1; margin: .15rem 0 1.15rem; overflow-wrap: anywhere; }
header h1 { margin-bottom: .2rem; }
h2 { font-size: 1.17rem; margin: 0 0 .75rem; }
header h2 { margin: 0; }
.eyebrow, .muted { color: var(--muted); }
.eyebrow { margin: 0 0 .35rem; }
.dashboard, .board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 1rem; }
.board { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.panel, .column { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem; overflow-wrap: anywhere; }
.column { background: #e5eeea; }
.tile { background: white; border-radius: 9px; padding: .7rem; margin-top: .55rem; }
.row { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .7rem 0; border-top: 1px solid var(--line); }
.row:last-child { padding-bottom: .15rem; }
.row time { white-space: nowrap; }
.name { font-weight: 650; }
.separate { margin-top: 1rem; }
input, select, textarea { max-width: 100%; padding: .5rem .65rem; border: 1px solid #aebfb7; border-radius: 8px; background: white; color: inherit; }
.form { max-width: 560px; }
.form p { margin: .6rem 0 1rem; display: grid; gap: .2rem; }
.filters { display: flex; flex-wrap: wrap; gap: .65rem; margin-bottom: 1rem; }
.errorlist, .notice { color: #93472c; }
.message { padding: .55rem .8rem; border-radius: 8px; background: #d9ede1; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; }
th, td { border-bottom: 1px solid var(--line); padding: .45rem .6rem; vertical-align: top; }
dt { color: var(--muted); }
dd { margin: 0 0 .55rem; }
.workspace-page { background: #e9f0ee; }
.workspace-heading { margin-bottom: 1.5rem; }
.workspace-heading .eyebrow::first-letter { text-transform: uppercase; }
.workspace-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 1.5rem;
  gap: .85rem;
}
.workspace-metrics .metric {
  display: grid;
  align-content: space-between;
  min-height: 8.25rem;
  padding: 1rem;
  border: 1px solid #cddfd7;
  border-radius: 14px;
  color: #18342f;
  background: #f9fcfa;
}
.workspace-metrics .metric:hover { background: #deeee6; border-color: #8db6a5; }
.metric span { font-size: .92rem; font-weight: 650; }
.metric strong { color: #125c4a; font-size: clamp(1.8rem, 3.5vw, 3rem); line-height: 1.12; }
.metric-late strong { color: #93472c; }
.workspace-columns { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 1rem; }
.workspace-stack { display: grid; align-content: start; gap: 1rem; }
.workspace-stack .panel:target { outline: 2px solid #25836a; outline-offset: 2px; }
.workspace-stack .panel > p:last-child { margin-bottom: .1rem; }
.deal-total, .deal-tag { margin: .35rem 0 0; font-size: .9rem; }
.pipeline-nav {
  display: flex;
  flex-wrap: wrap;
  width: fit-content;
  margin: 0 0 1.1rem;
  padding: .25rem;
  gap: .2rem;
  border: 1px solid #cddfd7;
  border-radius: 12px;
  background: #e4eeea;
}
.pipeline-nav a { color: #18342f; }
.pipeline-nav a:hover, .pipeline-nav a[aria-current] { background: white; }
.pipeline-nav a[aria-current] { font-weight: 700; }
.pipeline-board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(min(72vw, 14rem), 1fr);
  gap: .75rem;
  overflow-x: auto;
  padding: .25rem 0 .85rem;
}
.pipeline-column { min-height: 17rem; border-top: 3px solid #78a698; }
.pipeline-column[data-stage="meeting"], .pipeline-column[data-stage="met"] { border-top-color: #738fa6; }
.pipeline-column[data-stage="deposit"], .pipeline-column[data-stage="contract"] { border-top-color: #a47743; }
.pipeline-column[data-stage="hold"] { border-top-color: #a08a69; }
.pipeline-column[data-stage="closed"] { border-top-color: #3b7c61; }
.pipeline-column h2 { display: flex; justify-content: space-between; gap: .5rem; }
.stage-total { color: #46615a; font-size: .875rem; }
.quick-deal { display: block; font-size: .9rem; text-align: center; border-style: dashed; }
.tile[draggable="true"] { cursor: grab; }
.tile.deal-dragging { opacity: .55; cursor: grabbing; }
.pipeline-column.deal-drop-target { background: #d7eee3; outline: 2px solid #25836a; outline-offset: -2px; }
#deal-board-status:empty { margin: 0; }
@media (max-width: 1050px) { .board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 990px) { .workspace-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .layout { display: block; }
  aside { padding: .85rem 1rem; }
  nav { display: flex; flex-wrap: wrap; margin: .65rem 0 .25rem; }
  main { padding: 1rem; }
  .dashboard, .board { grid-template-columns: minmax(0, 1fr); }
  .workspace-columns { grid-template-columns: minmax(0, 1fr); }
  .workspace-metrics .metric { min-height: 7rem; padding: .75rem; }
}
