:root {
  font-family:Inter,'Segoe UI',Arial,sans-serif;
  color:#213b43;
  background:#f4f6f8;
  font-synthesis:none;
  --ink:#142f38;
  --muted:#6a7c83;
  --line:#e3e9ec;
  --accent:#e49b53;
  --nav:#122b34;
  --teal:#16786f
}
* {
  box-sizing:border-box
}
body {
  margin:0;
  font-size:16px
}
button,input,select,textarea {
  font:inherit
}
button {
  cursor:pointer
}
button,a,input,select,textarea {
  -webkit-tap-highlight-color:transparent
}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {
  outline:3px solid #4baca1;
  outline-offset:3px
}
button {
  border:0;
  background:none;
  color:inherit
}
a {
  color:inherit
}
h1,h2,h3,p {
  margin:0
}
h1 {
  font-size:30px;
  letter-spacing:-1px;
  font-weight:650;
  line-height:1.25
}
h2 {
  font-size:18px;
  font-weight:650
}
h3 {
  font-size:16px
}
small {
  font-size:13px
}
.muted {
  color:var(--muted)
}
.sidebar {
  position:fixed;
  width:230px;
  background:var(--nav);
  color:#c3d1d5;
  inset:0 auto 0 0;
  display:flex;
  flex-direction:column;
  padding:34px 20px;
  z-index:5
}
.brand {
  display:flex;
  gap:12px;
  align-items:center;
  font-size:24px;
  color:white;
  font-weight:650;
  letter-spacing:-.5px
}
.brandmark {
  font-size:34px;
  color:#efb775;
  line-height:1
}
.brand span {
  display:block;
  letter-spacing:3.5px;
  font-size:10px;
  color:#9fb3bd;
  margin-top:3px
}
.nav-label {
  font-size:10px;
  letter-spacing:1.6px;
  color:#829ba6;
  margin:52px 12px 18px
}
.nav-link {
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  width:100%;
  border-radius:7px;
  padding:14px 16px;
  margin:5px 0;
  font-size:14px;
  text-align:left;
  color:#bdcdd2
}
.nav-link.active {
  background:#2b4147;
  color:#ffd5a2;
  box-shadow:inset 3px 0 #eab074
}
.nav-link:hover {
  background:#263f48
}
.nav-link svg {
  width:19px;
  height:19px
}
.sidebar-bottom {
  display:flex;
  gap:11px;
  align-items:center;
  margin-top:auto;
  border-top:1px solid #2d454e;
  padding-top:22px;
  font-size:13px
}
.sidebar-bottom small {
  display:block;
  color:#8fa5ad;
  font-size:12px;
  margin-top:4px
}
.avatar {
  display:inline-grid;
  place-items:center;
  background:#37505a;
  color:#e6eff3;
  border-radius:50%;
  height:35px;
  width:35px;
  font-size:12px;
  font-weight:600;
  flex-shrink:0
}
main {
  margin-left:230px;
  min-height:100vh
}
.topbar {
  height:76px;
  border-bottom:1px solid var(--line);
  background:#fff;
  padding:0 38px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  font-size:14px
}
.topbar .muted {
  padding:0 12px
}
.demo-badge {
  font-size:12px;
  background:#f1f5f6;
  color:#657b83;
  padding:7px 10px;
  border-radius:5px
}
.workspace {
  padding:33px 38px 44px;
  max-width:1600px;
  margin:auto
}
.page-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:29px
}
.eyebrow {
  font-size:10px;
  font-weight:700;
  letter-spacing:1.8px;
  color:#6c858e;
  margin-bottom:10px
}
.page-heading p {
  margin-top:9px;
  font-size:14px
}
.primary,.secondary,.danger {
  border-radius:6px;
  padding:11px 16px;
  font-weight:600;
  font-size:14px;
  display:inline-flex;
  gap:8px;
  align-items:center;
  justify-content:center
}
.primary {
  background:var(--ink);
  color:white;
  box-shadow:0 2px 3px #183a4210
}
.primary:hover {
  background:#23515a
}
.primary svg,.secondary svg {
  width:17px;
  height:17px
}
.secondary {
  border:1px solid #d8e2e6;
  background:#fff;
  color:#425f69
}
.secondary:hover {
  background:#eef3f4
}
.danger {
  color:#a33132;
  background:#fff1ee;
  border:1px solid #f3ceca
}
.danger:hover {
  background:#ffe0d9
}
.metrics {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:17px;
  margin-bottom:24px
}
.metric {
  background:#fff;
  border:1px solid var(--line);
  border-radius:9px;
  padding:20px 22px;
  position:relative;
  min-height:164px
}
.metric p {
  font-size:13px;
  color:#586f77;
  max-width:80%;
  line-height:1.5
}
.metric strong {
  font-size:37px;
  font-weight:650;
  display:block;
  letter-spacing:-1px;
  margin:9px 0 7px
}
.metric small {
  color:#829197;
  font-size:12px
}
.metric-icon {
  position:absolute;
  right:19px;
  top:18px;
  background:#f0f5f5;
  color:#5b8784;
  width:31px;
  height:31px;
  display:grid;
  place-items:center;
  border-radius:7px
}
.metric-icon svg {
  width:17px;
  height:17px
}
.metric:nth-child(2) .metric-icon {
  background:#fff3e4;
  color:#bd8341
}
.metric:nth-child(3) .metric-icon {
  background:#e9f5ee;
  color:#5e9375
}
.metric:nth-child(4) .metric-icon {
  background:#edf0fc;
  color:#7e89b6
}
.panel {
  background:#fff;
  border:1px solid var(--line);
  border-radius:10px;
  overflow:hidden
}
.panel-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:23px 24px
}
.panel-heading p {
  font-size:13px;
  margin-top:7px
}
.table-wrap {
  overflow-x:auto
}
table {
  width:100%;
  border-collapse:collapse;
  text-align:left;
  white-space:nowrap
}
th {
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.7px;
  color:#7a8b93;
  font-weight:600;
  background:#f9fbfc;
  padding:14px 23px;
  border-block:1px solid var(--line)
}
td {
  padding:18px 23px;
  border-bottom:1px solid #edf1f3;
  font-size:14px
}
tbody tr:last-child td {
  border:0
}
td strong {
  display:block;
  font-weight:600;
  font-size:14px
}
td small {
  display:block;
  color:var(--muted);
  font-size:12px;
  margin-top:6px
}
.badge {
  display:inline-block;
  font-size:12px;
  font-weight:500;
  color:#87702d;
  background:#fff6db;
  border-radius:5px;
  padding:6px 9px;
  white-space:normal
}
.score {
  display:inline-flex;
  align-items:center;
  gap:7px;
  background:#eaf5ee;
  color:#2b7951;
  padding:4px 8px;
  border-radius:5px;
  font-size:13px;
  font-weight:650
}
.score.mid {
  background:#fff5df;
  color:#9c792b
}
.toast {
  position:fixed;
  right:24px;
  bottom:24px;
  border-radius:8px;
  padding:15px 20px;
  background:#143f3b;
  color:#fff;
  z-index:40;
  box-shadow:0 8px 30px #122a3230;
  max-width:calc(100vw - 48px);
  display:none
}
.toast.show {
  display:block
}
.toast.error {
  background:#963b35
}
dialog {
  border:1px solid #d7e2e6;
  border-radius:13px;
  padding:0;
  max-height:90dvh;
  width:min(900px,calc(100% - 32px));
  color:var(--ink);
  box-shadow:0 20px 90px #102b3440
}
dialog::backdrop {
  background:#0b222b80;
  backdrop-filter:blur(3px)
}
.dialog-head {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  padding:25px 28px;
  border-bottom:1px solid var(--line);
  gap:20px
}
.dialog-head h2 {
  font-size:23px
}
.dialog-head p {
  margin-top:8px;
  font-size:13px;
  color:var(--muted)
}
.close {
  width:34px;
  height:34px;
  border:1px solid var(--line);
  border-radius:50%;
  font-size:24px;
  line-height:1;
  flex-shrink:0
}
.dialog-body {
  padding:25px 28px
}
.dialog-actions {
  display:flex;
  justify-content:flex-end;
  gap:10px;
  padding:19px 28px;
  border-top:1px solid var(--line);
  background:#fafcfc;
  flex-wrap:wrap
}
.error-banner {
  border:1px solid #eccac5;
  background:#fff2ef;
  color:#963b35;
  border-radius:7px;
  padding:16px;
  margin-bottom:20px;
  line-height:1.5
}
.error-banner button {
  margin-top:10px;
  margin-right:8px
}
.metric-button {
  position:absolute;
  inset:0;
  width:100%;
  border-radius:9px
}
.metric:has(.metric-button:hover) {
  border-color:#b1c9ce
}
.dashboard-grid {
  display:grid;
  grid-template-columns:1.35fr 1fr;
  gap:23px;
  margin-bottom:24px
}
.text-button {
  color:var(--teal);
  font-size:13px;
  font-weight:650;
  padding:6px 0
}
.text-button:hover {
  text-decoration:underline
}
.pipeline-summary {
  padding:0 24px 25px
}
.pipeline-total {
  display:flex;
  align-items:baseline;
  gap:9px;
  margin-bottom:22px
}
.pipeline-total strong {
  font-size:29px;
  letter-spacing:-.7px
}
.pipeline-total span {
  font-size:12px;
  color:var(--muted)
}
.segmented-bar {
  height:14px;
  display:flex;
  gap:4px;
  border-radius:4px;
  overflow:hidden;
  margin-bottom:24px
}
.segmented-bar button {
  min-width:3px;
  border-radius:2px;
  padding:0
}
.legend {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:15px 24px
}
.legend-item {
  display:flex;
  align-items:center;
  gap:9px;
  font-size:12px;
  color:#657b82
}
.legend-item strong {
  margin-left:auto;
  color:var(--ink);
  font-weight:600
}
.swatch {
  width:8px;
  height:8px;
  border-radius:2px;
  flex-shrink:0
}
.followup-list {
  padding:0 24px 13px
}
.followup-row {
  display:flex;
  align-items:flex-start;
  gap:12px;
  border-bottom:1px solid #edf1f3;
  padding:15px 0
}
.followup-row:last-child {
  border-bottom:0
}
.followup-row .task {
  flex:1;
  min-width:0
}
.task strong {
  display:block;
  font-size:13px;
  font-weight:600;
  line-height:1.5
}
.task small {
  display:block;
  font-size:12px;
  color:var(--muted);
  margin-top:5px
}
.date-pill {
  font-size:11px;
  font-weight:600;
  background:#f0f4f5;
  border-radius:4px;
  padding:5px 7px;
  white-space:nowrap;
  color:#6b7f86
}
.date-pill.overdue {
  background:#fff0e8;
  color:#bc6b44
}
.check-btn {
  height:19px;
  width:19px;
  border-radius:5px;
  border:1px solid #cdd9de;
  flex-shrink:0;
  margin-top:1px;
  padding:0;
  color:#247b68;
  font-size:12px
}
.check-btn:hover {
  background:#e9f5ef;
  border-color:#70a394
}
.check-btn.done {
  background:#e9f5ef
}
.filters {
  display:flex;
  gap:10px;
  padding:0 24px 21px;
  flex-wrap:wrap;
  align-items:center
}
.filters input,.filters select {
  background:#fff;
  border:1px solid #dce5e9;
  border-radius:6px;
  padding:10px 12px;
  font-size:13px;
  color:#4d6771;
  height:41px;
  min-width:0
}
.search-box {
  flex:1;
  min-width:210px;
  position:relative
}
.search-box svg {
  position:absolute;
  width:16px;
  height:16px;
  left:12px;
  top:13px;
  color:#7f9198
}
.search-box input {
  padding-left:37px;
  width:100%
}
.filters select {
  max-width:180px
}
.filters .area-filter {
  width:94px
}
.filter-label {
  font-size:12px;
  color:var(--muted)
}
.table-link {
  text-align:left;
  padding:0;
  display:flex;
  align-items:center;
  gap:13px
}
.table-link:hover strong {
  color:#138174
}
.building-icon {
  width:37px;
  height:39px;
  display:grid;
  place-items:center;
  background:#f0f4f5;
  color:#7b969b;
  border:1px solid #e5ecee;
  border-radius:7px;
  flex-shrink:0
}
.building-icon svg {
  width:21px;
  height:21px
}
.arrow-cell {
  padding-left:0
}
.stage-0 {
  background:#edf2f9;
  color:#6380a2
}
.stage-1,.stage-2 {
  background:#fff3dc;
  color:#a17b34
}
.stage-3 {
  background:#e7f3ed;
  color:#3f8d68
}
.stage-4 {
  background:#e7f3f3;
  color:#2e7e7a
}
.stage-5,.stage-6 {
  background:#f1edfa;
  color:#8269a7
}
.stage-7,.stage-8,.stage-9,.stage-10 {
  background:#e9f1ed;
  color:#44755e
}
.table-footer {
  padding:15px 24px;
  border-top:1px solid var(--line);
  font-size:12px;
  color:#81939a;
  display:flex;
  justify-content:space-between;
  gap:10px
}
.empty {
  text-align:center;
  padding:42px 20px;
  color:var(--muted)
}
.empty svg {
  height:35px;
  width:35px;
  color:#99acb3;
  margin-bottom:12px
}
.empty h3 {
  color:var(--ink);
  margin-bottom:9px
}
.empty p {
  font-size:14px;
  margin-bottom:18px;
  line-height:1.6
}
.summary-strip {
  display:flex;
  gap:15px;
  align-items:center;
  margin-bottom:20px;
  font-size:13px;
  color:var(--muted)
}
.summary-strip strong {
  color:var(--ink)
}
.board {
  display:flex;
  gap:16px;
  overflow-x:auto;
  padding:4px 0 24px;
  align-items:flex-start;
  scroll-snap-type:x proximity
}
.kanban-column {
  min-width:280px;
  max-width:280px;
  background:#eaf0f2;
  border-radius:9px;
  padding:14px;
  scroll-snap-align:start
}
.kanban-title {
  display:flex;
  align-items:center;
  gap:8px;
  margin:2px 0 15px;
  font-size:13px;
  min-height:34px
}
.kanban-title b {
  margin-left:auto;
  background:#dce6ea;
  padding:4px 7px;
  border-radius:4px
}
.kanban-card {
  border:1px solid #dce5e8;
  background:white;
  border-radius:7px;
  padding:16px;
  margin-bottom:12px
}
.kanban-card button {
  padding:0;
  text-align:left;
  font-size:14px;
  font-weight:600;
  line-height:1.5
}
.kanban-card button:hover {
  color:var(--teal)
}
.kanban-card p {
  font-size:12px;
  color:var(--muted);
  margin:7px 0 14px
}
.kanban-card .card-bottom {
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:12px
}
.kanban-card select {
  width:100%;
  font-size:12px;
  padding:8px 4px;
  margin-top:14px;
  border:1px solid var(--line);
  border-radius:5px;
  background:#fff;
  color:var(--muted)
}
.kanban-empty {
  font-size:13px;
  color:#7f9299;
  text-align:center;
  padding:25px 0
}
.form-section {
  margin-bottom:26px
}
.form-section h3 {
  display:flex;
  gap:10px;
  align-items:center;
  margin-bottom:17px;
  padding-bottom:12px;
  border-bottom:1px solid var(--line)
}
.section-number {
  font-size:11px;
  background:#edf3f3;
  color:#5c8984;
  border-radius:5px;
  padding:5px 7px
}
.form-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px
}
.field {
  display:flex;
  flex-direction:column;
  gap:7px;
  font-size:13px;
  font-weight:600;
  min-width:0
}
.field.full {
  grid-column:1/-1
}
.field input,.field select,.field textarea,.inline-form input,.inline-form select,.inline-form textarea {
  width:100%;
  border:1px solid #d5e0e5;
  border-radius:6px;
  padding:11px 12px;
  background:white;
  color:var(--ink);
  font-size:14px;
  font-weight:400
}
.field textarea {
  resize:vertical;
  min-height:75px
}
.field .hint {
  font-size:12px;
  color:var(--muted);
  font-weight:400
}
.field .validation {
  font-size:12px;
  color:#b34239;
  font-weight:400
}
.field [aria-invalid="true"] {
  border-color:#c95a50;
  background:#fffafa
}
.form-error {
  color:#a43d36;
  background:#fff0ed;
  padding:12px 15px;
  margin-bottom:20px;
  font-size:14px;
  border-radius:6px
}
.detail-stats {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  background:#f4f7f8;
  border:1px solid #e3ebed;
  border-radius:8px;
  margin-bottom:22px
}
.detail-stats div {
  padding:17px;
  border-right:1px solid #e3ebed
}
.detail-stats div:last-child {
  border:0
}
.detail-stats small {
  display:block;
  color:var(--muted);
  font-size:11px;
  margin-bottom:7px
}
.detail-stats strong {
  font-size:18px
}
.detail-stage {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
  margin-bottom:25px;
  flex-wrap:wrap
}
.detail-stage .field {
  flex:1;
  max-width:350px
}
.detail-info {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:17px 28px;
  margin-bottom:25px
}
.detail-info dt {
  font-size:12px;
  color:var(--muted);
  margin-bottom:5px
}
.detail-info dd {
  font-size:14px;
  margin:0;
  line-height:1.65;
  overflow-wrap:anywhere
}
.detail-info .wide {
  grid-column:1/-1
}
.tabs {
  display:flex;
  gap:20px;
  border-bottom:1px solid var(--line);
  overflow-x:auto;
  margin:6px 0 24px
}
.tab {
  font-size:13px;
  padding:12px 0 15px;
  white-space:nowrap;
  color:var(--muted);
  border-bottom:2px solid transparent
}
.tab.active {
  color:var(--teal);
  border-bottom-color:var(--teal);
  font-weight:650
}
.activity-item {
  display:flex;
  gap:13px;
  padding:15px 0;
  border-bottom:1px solid #edf1f3
}
.activity-item .activity-content {
  flex:1;
  min-width:0
}
.activity-item p {
  font-size:14px;
  line-height:1.6;
  overflow-wrap:anywhere;
  white-space:pre-wrap
}
.activity-item small {
  color:var(--muted);
  display:block;
  margin-top:6px;
  font-size:12px
}
.activity-dot {
  margin-top:7px;
  height:7px;
  width:7px;
  background:#a1b8bf;
  border-radius:50%;
  flex-shrink:0
}
.inline-form {
  background:#f6f9fa;
  padding:16px;
  border:1px solid var(--line);
  border-radius:7px;
  margin-bottom:16px;
  display:flex;
  flex-direction:column;
  gap:12px
}
.inline-form label {
  font-size:13px;
  font-weight:600;
  display:flex;
  flex-direction:column;
  gap:7px
}
.inline-form textarea {
  resize:vertical;
  min-height:75px
}
.inline-form .row {
  display:flex;
  align-items:end;
  gap:12px;
  flex-wrap:wrap
}
.inline-form .row label {
  flex:1
}
.inline-form .primary {
  align-self:flex-end
}
.activity-actions {
  display:flex;
  gap:8px;
  margin-top:10px;
  flex-wrap:wrap
}
.activity-actions button {
  font-size:12px;
  padding:7px 10px
}
.completed {
  text-decoration:line-through;
  color:#7d9399
}
.mobile-brand {
  display:none
}
.workspace-footer {
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-top:24px;
  color:#8a9da4;
  font-size:11px
}
.list-status {
  display:flex;
  gap:8px
}
.list-status button {
  padding:8px 11px;
  border:1px solid var(--line);
  border-radius:5px;
  font-size:13px
}
.list-status button.active {
  background:var(--ink);
  color:#fff
}
.full-followups {
  padding:0 24px 15px
}
.full-followups .followup-row {
  padding:21px 0
}
.full-followups .task strong {
  font-size:15px
}
.full-followups .task small {
  font-size:13px
}
.confirm-body {
  font-size:15px;
  line-height:1.7;
  padding:26px 28px
}
.confirm-body strong {
  color:#a33a30
}
.modal-narrow {
  max-width:510px
}
.save-note {
  font-size:12px;
  color:var(--muted);
  margin-right:auto;
  align-self:center
}
.section-caption {
  font-size:13px;
  color:var(--muted);
  margin:-5px 0 18px
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap
}
@media(min-width:1500px) {
  .workspace {
    padding-top:40px
  }
  .metrics {
    gap:23px
  }
  .metric {
    padding:23px
  }
  .metric p {
    font-size:14px
  }
  .dashboard-grid {
    grid-template-columns:1.3fr 1fr
  }
}
@media(max-width:1150px) {
  .sidebar {
    width:200px;
    padding:28px 15px
  }
  .brand {
    font-size:22px
  }
  main {
    margin-left:200px
  }
  .workspace {
    padding:28px 24px
  }
  .topbar {
    padding:0 24px
  }
  .metric {
    padding:17px 15px
  }
  .metric p {
    font-size:12px
  }
  .metric-icon {
    right:12px;
    top:14px;
    width:25px;
    height:25px
  }
  .dashboard-grid {
    grid-template-columns:1fr 1fr
  }
  .legend {
    gap:15px 12px
  }
  .metric small {
    font-size:11px
  }
  .filters select {
    max-width:155px
  }
}
@media(max-width:850px) {
  .sidebar {
    position:static;
    width:auto;
    padding:14px 20px;
    display:block
  }
  .brand {
    font-size:21px
  }
  .brandmark {
    font-size:30px
  }
  .brand span {
    font-size:8px
  }
  .sidebar .nav-label,.sidebar-bottom {
    display:none
  }
  .sidebar nav {
    display:flex;
    gap:6px;
    margin-top:13px;
    overflow-x:auto
  }
  .nav-link {
    white-space:nowrap;
    width:auto;
    padding:9px 12px;
    font-size:13px;
    margin:0;
    flex:1;
    justify-content:center
  }
  .nav-link.active {
    box-shadow:inset 0 -2px #eab074
  }
  .nav-link svg {
    width:17px;
    height:17px
  }
  main {
    margin-left:0
  }
  .topbar {
    height:56px;
    font-size:12px
  }
  .workspace {
    padding:25px 22px
  }
  .metrics {
    gap:12px
  }
  .metric p {
    max-width:75%
  }
  .dashboard-grid {
    gap:16px
  }
  .demo-badge {
    font-size:11px
  }
}
@media(max-width:620px) {
  h1 {
    font-size:25px
  }
  .workspace {
    padding:24px 16px
  }
  .topbar {
    padding:0 17px
  }
  .sidebar {
    padding:16px
  }
  .nav-link {
    padding:10px 7px;
    font-size:11px;
    gap:5px
  }
  .nav-link svg {
    display:none
  }
  .page-heading {
    align-items:flex-start;
    flex-wrap:wrap;
    gap:16px;
    margin-bottom:22px
  }
  .page-heading .primary {
    width:100%
  }
  .page-heading p {
    font-size:13px;
    line-height:1.5
  }
  .metrics {
    grid-template-columns:1fr 1fr;
    gap:11px;
    margin-bottom:18px
  }
  .metric {
    min-height:147px;
    padding:16px
  }
  .metric strong {
    font-size:32px
  }
  .metric p {
    font-size:12px;
    min-height:36px;
    max-width:83%
  }
  .metric-icon {
    width:22px;
    height:22px;
    right:10px;
    top:12px
  }
  .metric-icon svg {
    width:13px;
    height:13px
  }
  .metric small {
    font-size:10px
  }
  .dashboard-grid {
    grid-template-columns:1fr;
    margin-bottom:18px
  }
  .panel-heading {
    padding:20px 17px
  }
  .panel-heading h2 {
    font-size:16px
  }
  .panel-heading p {
    font-size:12px;
    line-height:1.5
  }
  .pipeline-summary {
    padding:0 17px 22px
  }
  .followup-list {
    padding:0 17px 12px
  }
  .filters {
    padding:0 17px 18px;
    gap:8px
  }
  .search-box {
    min-width:100%;
    flex-basis:100%
  }
  .filters select {
    flex:1;
    max-width:none;
    width:40%
  }
  .filters select[name=stage] {
    flex-basis:100%
  }
  .filters .area-filter {
    flex:1;
    width:70px
  }
  .table-footer {
    padding:13px 17px;
    line-height:1.5;
    flex-direction:column
  }
  td {
    padding:16px
  }
  th {
    padding:13px 16px
  }
  .table-wrap table {
    min-width:750px
  }
  .workspace-footer {
    font-size:10px;
    flex-wrap:wrap
  }
  .dialog-head {
    padding:20px
  }
  .dialog-head h2 {
    font-size:20px
  }
  .dialog-body {
    padding:20px
  }
  .dialog-actions {
    padding:16px 20px
  }
  .form-grid {
    grid-template-columns:1fr
  }
  .field.full {
    grid-column:auto
  }
  .detail-stats {
    grid-template-columns:1fr 1fr
  }
  .detail-stats div:nth-child(2) {
    border-right:0
  }
  .detail-stats div:nth-child(-n+2) {
    border-bottom:1px solid var(--line)
  }
  .detail-stats strong {
    font-size:17px
  }
  .detail-info {
    grid-template-columns:1fr
  }
  .detail-info .wide {
    grid-column:auto
  }
  .tabs {
    gap:17px
  }
  .detail-stage .field {
    max-width:none;
    flex-basis:100%
  }
  .save-note {
    flex-basis:100%;
    text-align:center
  }
  .full-followups {
    padding:0 17px
  }
  .full-followups .followup-row {
    flex-wrap:wrap
  }
  .full-followups .date-pill {
    margin-left:32px
  }
  .list-status {
    flex-wrap:wrap
  }
  .summary-strip {
    flex-wrap:wrap
  }
  .confirm-body {
    padding:20px
  }
  .toast {
    right:16px;
    bottom:16px;
    max-width:calc(100vw - 32px)
  }
  .inline-form .row label {
    flex-basis:100%
  }
}
.brandmark svg {
  width:34px;
  height:38px;
  display:block
}
.badge.rejected {
  background:#ffecea;
  color:#ad403c
}
.validation {
  color:#ad403c;
  font-size:13px
}
.detail-stage select {
  min-width:0
}
.activity-content .badge {
  margin-top:5px
}
@media(prefers-reduced-motion:reduce) {
  * {
    scroll-behavior:auto!important
  }
}
/* Lectura cómoda y controles táctiles en todas las vistas. */
.metric p,.task strong,.legend-item,.filters input,.filters select,.field,.tab,.nav-link,.badge,.kanban-title,.kanban-card button,.text-button {
  font-size:14px
}
.metric small,.task small,.date-pill,.panel-heading p,.table-footer,.detail-info dt,.field .hint,.kanban-card p,.kanban-card .card-bottom {
  font-size:12px
}
.metric p {
  max-width:calc(100% - 27px)
}
.check-btn {
  min-width:24px;
  min-height:24px
}
.panel-heading>.text-button {
  flex-shrink:0;
  font-size:12px
}
@media(max-width:620px) {
  .nav-link {
    font-size:12px;
    padding:12px 5px
  }
  .metric p {
    font-size:13px;
    min-height:40px
  }
  .metric small {
    font-size:12px
  }
  .legend {
    grid-template-columns:1fr;
    gap:13px
  }
  .legend-item {
    font-size:14px
  }
  .followup-row {
    flex-wrap:wrap
  }
  .followup-row .date-pill {
    margin-left:36px
  }
  .followup-row .task {
    flex-basis:calc(100% - 36px)
  }
  .filters input,.filters select,.field input,.field select,.field textarea,.inline-form input,.inline-form select,.inline-form textarea {
    font-size:16px;
    min-height:44px
  }
  .table-wrap table {
    min-width:0;
    white-space:normal
  }
  .table-wrap thead {
    display:none
  }
  .table-wrap table,.table-wrap tbody {
    display:block
  }
  .table-wrap tr {
    display:grid;
    grid-template-columns:1fr 1fr;
    position:relative;
    padding:18px 17px;
    border-top:1px solid var(--line);
    gap:15px
  }
  .table-wrap td {
    padding:0;
    border:0;
    font-size:14px;
    min-width:0
  }
  .table-wrap td:first-child,.table-wrap td:nth-child(2) {
    grid-column:1/-1
  }
  .table-wrap td:first-child {
    padding-right:20px
  }
  .table-link strong {
    line-height:1.5
  }
  .table-wrap td:nth-child(3)::before {
    content:'SUPERFICIE';
    display:block;
    font-size:10px;
    letter-spacing:.8px;
    color:var(--muted);
    margin-bottom:6px
  }
  .table-wrap td:nth-child(4)::before {
    content:'RENTA MENSUAL';
    display:block;
    font-size:10px;
    letter-spacing:.8px;
    color:var(--muted);
    margin-bottom:6px
  }
  .table-wrap td:nth-child(5) {
    grid-column:1/-1;
    display:flex;
    align-items:center;
    gap:8px
  }
  .table-wrap td:nth-child(5)::before {
    content:'Score comercial';
    color:var(--muted);
    font-size:12px
  }
  .table-wrap .arrow-cell {
    position:absolute;
    right:12px;
    top:20px
  }
  .arrow-cell button {
    width:32px;
    height:32px
  }
  .panel-heading {
    flex-wrap:wrap
  }
  .detail-stats strong {
    overflow-wrap:anywhere
  }
}
@media(max-width:620px) {
  .sidebar nav {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    overflow:visible
  }
  .nav-link {
    font-size:14px;
    min-height:44px
  }
  .kanban-card select {
    min-height:44px;
    font-size:14px
  }
}

/* Revisión de resúmenes de comité */
.ai-summary{margin:20px 0;padding:18px;border:1px solid #d4deef;border-radius:10px;overflow-wrap:anywhere}.ai-summary h3,.ai-summary h4{margin:0 0 12px}.ai-summary p,.ai-summary details{margin:12px 0;line-height:1.6}.ai-summary .field{margin:16px 0}.ai-summary textarea{width:100%;box-sizing:border-box}.ai-actions{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}.ai-actions button{white-space:normal}.ai-consent{display:flex;align-items:flex-start;gap:10px;margin:16px 0;font-size:14px}.ai-consent input{flex:0 0 auto;width:18px;height:18px}.ai-summary [data-ai-status]{color:#163c86}.ai-summary [data-ai-draft]>button{display:block;margin:10px 0;width:100%;white-space:normal}@media(max-width:620px){.ai-summary{padding:12px}.ai-actions button{width:100%;min-height:44px}}

.environment-banner{position:fixed;bottom:0;left:0;right:0;z-index:1000;padding:5px 12px;background:#fff0b3;color:#282000;text-align:center;font:600 13px system-ui;pointer-events:none}body:has(.environment-banner){padding-bottom:32px}
