:root {
  --bg: #f7f8fa;
  --surface: #fff;
  --ink: #202a37;
  --muted: #86909d;
  --line: #e9edf0;
  --green: #176c53;
  --green-soft: #e9f3ee;
  --amber: #ac7926;
  --amber-soft: #fbf4e6;
  --red: #b85d55;
  --blue: #5878a3;
  --sidebar: 234px;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 13px;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
svg {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hidden {
  display: none !important;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  letter-spacing: 1.8px;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
}
.shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 30px 17px 16px;
  z-index: 30;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 12px;
  color: #163c36;
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -1px;
}
.brand-mark {
  background: #173e35;
  color: white;
  border-radius: 12px;
  width: 38px;
  height: 38px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: Georgia, serif;
  font-size: 33px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -3px;
  padding-right: 4px;
}
.brand-mark span {
  color: #d2dea8;
}
.brand-sub {
  display: block;
  font-size: 8px;
  letter-spacing: 1.4px;
  font-weight: 600;
  color: #8b949a;
  margin-top: 4px;
}
.workspace {
  width: 100%;
  display: flex;
  gap: 9px;
  text-align: left;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px 10px;
  margin: 30px 0 28px;
  font-weight: 600;
  font-size: 12px;
  cursor: default;
}
.workspace-icon {
  width: 28px;
  height: 28px;
  background: #f0f2ee;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: #556447;
  font-size: 10px;
}
.workspace small {
  display: block;
  font-weight: 400;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.small-chevron {
  margin-left: auto;
  color: #9aa3ac;
}
.nav-caption {
  font-size: 9px;
  letter-spacing: 1.4px;
  color: #97a0aa;
  padding-left: 12px;
  font-weight: 600;
  margin: 0 0 10px;
}
.sidebar nav {
  display: grid;
  gap: 5px;
}
.sidebar nav a {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border-radius: 6px;
  color: #697482;
  font-size: 12px;
  font-weight: 500;
  transition: background 0.15s;
}
.sidebar nav a:hover {
  background: #f6f8f7;
}
.sidebar nav a.active {
  color: #176449;
  background: #ecf4ef;
}
.sidebar nav svg {
  width: 17px;
  height: 17px;
}
.nav-count {
  margin-left: auto;
  padding: 2px 6px;
  background: #f1f3f5;
  border-radius: 4px;
  font-size: 10px;
}
.active .nav-count {
  background: #dfece2;
  color: #176449;
}
.sidebar-rule {
  height: 1px;
  background: var(--line);
  margin: 25px 12px;
}
.dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  border-radius: 50%;
  background: #459f77;
  flex-shrink: 0;
}
.dot.amber {
  background: #c99a4c;
}
.dot.red {
  background: #bf6860;
}
.sidebar nav .dot {
  margin-left: auto;
}
.sidebar-bottom {
  margin-top: auto;
}
.connection-chip {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 10px;
  color: #7a8690;
  padding: 17px 12px;
}
.user {
  border-top: 1px solid var(--line);
  padding: 18px 8px 2px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #eaeedd;
  color: #697950;
  display: grid;
  place-items: center;
  font-weight: 650;
  font-size: 10px;
  flex-shrink: 0;
}
.avatar.dark {
  background: #e7ecea;
  color: #2d5b4b;
}
.user strong {
  font-size: 11px;
}
.user small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 4px;
}
.main-shell {
  margin-left: var(--sidebar);
  width: calc(100% - var(--sidebar));
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 68px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  padding: 0 35px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 11px;
}
.breadcrumbs strong {
  font-weight: 550;
}
.divider {
  color: #c4cbd2;
}
.top-actions {
  display: flex;
  gap: 19px;
  align-items: center;
}
.search-button {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  background: transparent;
  color: #9aa2ad;
  font-size: 11px;
}
.search-button svg {
  width: 15px;
  height: 15px;
}
.search-button kbd {
  border: 1px solid var(--line);
  padding: 3px 5px;
  font-family: inherit;
  font-size: 9px;
  margin-left: 18px;
  border-radius: 4px;
}
.icon-btn {
  border: 0;
  background: transparent;
  padding: 5px;
  display: grid;
  place-items: center;
  color: #8e99a3;
  border-radius: 5px;
}
.icon-btn:hover {
  background: #f1f4f2;
  color: #25674d;
}
.mobile {
  display: none;
}
main {
  padding: 35px 35px 24px;
  max-width: 1700px;
  width: 100%;
  margin: auto auto 0;
  flex: 1;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 26px;
}
.page-heading h1 {
  font-size: 27px;
  letter-spacing: -0.9px;
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.2;
}
.page-heading p {
  margin: 0;
  color: #8a949f;
  font-size: 12px;
  line-height: 1.6;
}
.page-heading .eyebrow {
  margin-bottom: 12px;
  font-size: 9px;
  letter-spacing: 1.4px;
  color: #96a18d;
}
.btn {
  border: 1px solid #e0e6e5;
  border-radius: 6px;
  background: white;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 10px 13px;
  font-size: 11px;
  font-weight: 550;
  white-space: nowrap;
}
.btn svg {
  width: 14px;
  height: 14px;
}
.btn.primary {
  background: #1b5c48;
  color: #fff;
  border-color: #1b5c48;
  box-shadow: 0 2px 3px #17452b10;
}
.btn:hover {
  filter: brightness(0.97);
}
.btn:disabled {
  opacity: 0.55;
  cursor: wait;
}
.btn.subtle {
  border: 0;
  background: transparent;
  color: var(--green);
  padding: 0;
}
.btn.small {
  padding: 7px 10px;
}
.heading-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.date-pill {
  font-size: 10px;
  color: #8e99a2;
  display: flex;
  gap: 6px;
  align-items: center;
  margin-right: 8px;
}
.date-pill svg {
  width: 14px;
  height: 14px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 27px;
}
.metric {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 19px 20px 17px;
  position: relative;
}
.metric-label {
  font-size: 11px;
  color: #7b8792;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.metric-label svg {
  width: 16px;
  height: 16px;
  color: #a5afa9;
}
.metric-value {
  font-size: 31px;
  letter-spacing: -1px;
  font-weight: 550;
  margin: 17px 0 10px;
  line-height: 1;
}
.metric-bottom {
  font-size: 10px;
  color: #97a0aa;
  display: flex;
  gap: 6px;
  align-items: center;
}
.metric-bottom.positive {
  color: #348064;
}
.metric-bottom.attention {
  color: #b38a46;
}
.metric-spark {
  position: absolute;
  right: 20px;
  bottom: 22px;
  color: #c7decf;
}
.metric-spark svg {
  width: 70px;
  height: 30px;
  stroke-width: 1.5;
}
.hero-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  background: #edf2ec;
  border: 1px solid #e1e8dc;
  border-radius: 8px;
  padding: 16px 19px;
  margin-bottom: 26px;
}
.hero-note-main {
  display: flex;
  gap: 12px;
  align-items: center;
}
.hero-note .note-icon {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: #dfe9dc;
  display: grid;
  place-items: center;
  color: #4f7756;
}
.hero-note strong {
  font-size: 11px;
  font-weight: 600;
}
.hero-note p {
  color: #849280;
  margin: 5px 0 0;
  font-size: 10px;
}
.hero-note .btn {
  background: #f5f8f1;
  border-color: #dae2d3;
  color: #5e7651;
  font-size: 10px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}
.panel-heading {
  padding: 20px 20px 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.panel-heading h2 {
  font-size: 13px;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}
.subcount {
  background: #f2f4f5;
  color: #919aa3;
  font-size: 9px;
  border-radius: 4px;
  padding: 3px 5px;
  font-weight: 500;
}
.panel-heading p {
  font-size: 10px;
  color: #919ba6;
  margin: 6px 0 0;
}
.panel-tools {
  display: flex;
  gap: 10px;
  align-items: center;
}
.segments {
  background: #f4f5f6;
  border: 1px solid #eaeef0;
  border-radius: 6px;
  padding: 3px;
  display: flex;
}
.segments button {
  display: flex;
  gap: 6px;
  align-items: center;
  border: 0;
  background: transparent;
  color: #909aa5;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 10px;
}
.segments button svg {
  width: 12px;
  height: 12px;
}
.segments button.active {
  background: #fff;
  color: #596773;
  box-shadow: 0 1px 3px #12231c10;
}
.toolbar {
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}
.tabs {
  display: flex;
  gap: 18px;
  align-items: center;
}
.tabs button {
  border: 0;
  background: transparent;
  color: #929ba5;
  font-size: 10px;
  padding: 5px 0;
  white-space: nowrap;
}
.tabs button.active {
  color: #2a644e;
  font-weight: 600;
}
.tabs button span {
  font-size: 9px;
  margin-left: 5px;
  color: #a3acb3;
}
.table-search {
  display: flex;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  align-items: center;
  padding: 7px 9px;
  max-width: 190px;
}
.table-search input {
  width: 130px;
  background: none;
  outline: none;
  border: none;
  font-size: 10px;
  color: #5b6875;
}
.table-search svg {
  width: 13px;
  height: 13px;
  color: #a4adb6;
}
.offer-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
.offer-table th {
  background: #fafbfc;
  color: #a0a9b2;
  font-size: 9px;
  text-align: left;
  font-weight: 500;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.offer-table td {
  padding: 17px 20px;
  border-bottom: 1px solid #f0f2f4;
  vertical-align: middle;
}
.offer-table tr:last-child td {
  border-bottom: 0;
}
.offer-table tbody tr {
  cursor: pointer;
  transition: background 0.15s;
}
.offer-table tbody tr:hover {
  background: #fafcfb;
}
.offer-name {
  display: flex;
  gap: 11px;
  align-items: center;
}
.offer-symbol {
  width: 35px;
  height: 35px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #f1f0e9;
  color: #8a8262;
  font-weight: 600;
  font-family: Georgia, serif;
  font-size: 17px;
  flex-shrink: 0;
}
.offer-symbol[data-tone="0"] {
  background: #eaf0e4;
  color: #789152;
}
.offer-symbol[data-tone="1"] {
  background: #ebedf8;
  color: #7b84a9;
}
.offer-symbol[data-tone="2"] {
  background: #f3ece4;
  color: #a58561;
}
.offer-symbol[data-tone="3"] {
  background: #f1e9ee;
  color: #a37389;
}
.offer-symbol[data-tone="4"] {
  background: #e9f1ee;
  color: #638875;
}
.offer-symbol[data-tone="5"] {
  background: #e6edf4;
  color: #688cac;
}
.offer-name strong {
  display: block;
  font-size: 11px;
  font-weight: 550;
  color: #46515c;
  margin-bottom: 6px;
}
.offer-id {
  font-size: 9px;
  color: #a0a9b3;
  letter-spacing: 0.3px;
}
.tag {
  font-size: 9px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  border-radius: 4px;
  padding: 5px 7px;
  background: #f3f5f7;
  color: #8b96a2;
}
.tag.green {
  background: #eaf4ed;
  color: #559367;
}
.tag.amber {
  background: #fcf5e8;
  color: #bd9451;
}
.tag.red {
  background: #f8eae7;
  color: #b87870;
}
.tag.blue {
  background: #edf1f8;
  color: #7b90b0;
}
.tag .dot {
  width: 4px;
  height: 4px;
}
.progress {
  display: flex;
  gap: 8px;
  align-items: center;
}
.progress-track {
  width: 82px;
  height: 4px;
  background: #edf0ee;
  border-radius: 10px;
  overflow: hidden;
}
.progress-track span {
  height: 100%;
  display: block;
  border-radius: 10px;
  background: #749b70;
}
.progress-number {
  font-size: 9px;
  color: #909ca4;
  min-width: 28px;
}
.progress-note {
  font-size: 8px;
  color: #adb5bc;
  margin-top: 7px;
}
.owner-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #88949f;
  font-size: 10px;
}
.owner-cell .avatar {
  width: 22px;
  height: 22px;
  font-size: 8px;
}
.stage-cell {
  font-size: 10px;
  color: #89939c;
  max-width: 180px;
}
.row-arrow {
  color: #a7b2ba;
  width: 13px;
  height: 13px;
}
.table-bottom {
  border-top: 1px solid var(--line);
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  color: #a1aab3;
  font-size: 9px;
}
.table-scroll {
  overflow-x: auto;
}
.below-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 20px;
  margin-top: 24px;
}
.activity-list {
  padding: 0 20px 4px;
}
.activity-item {
  display: flex;
  gap: 11px;
  padding: 13px 0;
  border-bottom: 1px solid #f0f2f3;
}
.activity-item:last-child {
  border-bottom: 0;
}
.activity-icon {
  width: 26px;
  height: 26px;
  background: #f1f4f2;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #84958b;
  flex-shrink: 0;
}
.activity-icon svg {
  width: 12px;
  height: 12px;
}
.activity-copy {
  min-width: 0;
  flex: 1;
}
.activity-copy strong {
  font-size: 10px;
  font-weight: 550;
  line-height: 1.6;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 600px;
}
.activity-copy p {
  font-size: 9px;
  color: #9ca6af;
  margin: 4px 0 0;
}
.activity-time {
  font-size: 9px;
  color: #a5afb7;
  white-space: nowrap;
  align-self: center;
}
.source-label {
  display: inline-block;
  margin-right: 5px;
  color: #85968a;
  font-size: 9px;
}
.priority-list {
  padding: 0 20px;
}
.priority-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px 0;
  border-bottom: 1px solid #f0f2f3;
}
.priority-item:last-child {
  border-bottom: 0;
}
.priority-number {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: #f8f3e9;
  color: #c1a36e;
  font-size: 9px;
}
.priority-item strong {
  display: block;
  font-size: 10px;
  font-weight: 550;
}
.priority-item p {
  font-size: 9px;
  color: #9da6af;
  margin: 5px 0 0;
}
.priority-item .icon-btn {
  margin-left: auto;
}
.source-strip {
  margin-top: 25px;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: #a0a9b2;
  flex-wrap: wrap;
}
.source-strip a {
  display: flex;
  align-items: center;
  gap: 5px;
}
.source-strip svg {
  width: 12px;
  height: 12px;
}
.footer {
  padding: 20px 35px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 9px;
  color: #aab2ba;
}
.footer-dot {
  margin: 0 5px;
  color: #c5ccd2;
}
.empty {
  padding: 45px 20px;
  text-align: center;
  color: #9aa5af;
  font-size: 12px;
  line-height: 1.8;
}
.empty strong {
  display: block;
  color: #62716e;
  font-size: 14px;
  margin-bottom: 8px;
}
.kanban {
  display: flex;
  gap: 13px;
  padding: 18px 20px;
  overflow-x: auto;
  min-height: 250px;
}
.kanban-col {
  background: #f7f9f9;
  padding: 12px;
  border-radius: 7px;
  min-width: 230px;
  flex: 1;
}
.kanban-col h3 {
  font-size: 10px;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  color: #778d80;
  margin: 2px 1px 15px;
}
.offer-card {
  display: block;
  text-align: left;
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  padding: 15px;
  border-radius: 7px;
  box-shadow: 0 2px 3px #1b2b2203;
  margin-bottom: 10px;
  cursor: pointer;
}
.offer-card .offer-name {
  margin-bottom: 13px;
}
.offer-card .offer-name strong {
  font-size: 11px;
}
.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 13px;
}
.card-stage {
  font-size: 9px;
  color: #95a0a8;
  margin: 12px 0;
}
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.workflow-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  position: relative;
}
.workflow-card .step {
  font-size: 10px;
  color: #4e8667;
  letter-spacing: 1px;
  font-weight: 600;
}
.workflow-card h3 {
  font-size: 15px;
  font-weight: 550;
  margin: 12px 0;
}
.workflow-card p {
  font-size: 11px;
  line-height: 1.8;
  color: #8a969f;
  margin: 0;
}
.workflow-card code {
  font-size: 9px;
  display: block;
  color: #9ba6ae;
  margin-top: 15px;
}
.workflow-card small {
  display: block;
  margin-top: 10px;
  font-size: 9px;
  color: #789180;
}
.integrations-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.integration-card {
  background: #fff;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.integration-header {
  display: flex;
  gap: 13px;
  align-items: center;
  margin-bottom: 19px;
}
.integration-logo {
  width: 40px;
  height: 40px;
  background: #f1f4f1;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #6a8873;
}
.integration-logo svg {
  width: 21px;
  height: 21px;
}
.integration-header h3 {
  font-size: 14px;
  font-weight: 550;
  margin: 0 0 6px;
}
.integration-header small {
  color: #9ba4af;
  font-size: 10px;
}
.integration-card p {
  font-size: 11px;
  color: #909da7;
  line-height: 1.8;
  margin: 0 0 15px;
}
.integration-card .tag {
  margin-left: auto;
}
.integration-meta {
  border-top: 1px solid var(--line);
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: #9da7b0;
  gap: 10px;
}
.callout {
  background: #fcf8f0;
  border: 1px solid #eee5d4;
  border-radius: 7px;
  padding: 16px 18px;
  line-height: 1.8;
  font-size: 11px;
  color: #a38e64;
  margin-top: 22px;
}
.callout strong {
  color: #8b7954;
}
.research-top {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.research-top select,
.research-top input {
  border: 1px solid var(--line);
  background: white;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 11px;
  color: #85919c;
}
.research-top input {
  flex: 1;
  min-width: 0;
}
.research-row-name {
  max-width: 330px;
  line-height: 1.6;
}
.research-detail {
  color: #9aa5ae;
  font-size: 10px;
  max-width: 280px;
  line-height: 1.7;
}
.task-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.task-col h3 {
  font-size: 12px;
  font-weight: 500;
  color: #85958c;
  display: flex;
  justify-content: space-between;
  margin: 0 0 14px;
}
.task-card {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  padding: 18px;
  margin-bottom: 12px;
}
.task-card h4 {
  font-size: 12px;
  line-height: 1.7;
  font-weight: 500;
  margin: 0 0 12px;
}
.task-card small {
  font-size: 10px;
  color: #9aa6ad;
}
.task-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  gap: 10px;
}
.task-check {
  width: 18px;
  height: 18px;
  border: 1px solid #c7d5cd;
  border-radius: 4px;
  background: white;
  color: #438868;
  font-size: 12px;
  padding: 0;
}
.task-check.done {
  background: #e4efe6;
  border-color: #a9c4ad;
}
.loading {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  padding: 120px 0;
  color: #8b9993;
  font-size: 12px;
}
.spinner {
  width: 17px;
  height: 17px;
  border: 2px solid #dfe8e3;
  border-top-color: #528363;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.overlay {
  position: fixed;
  inset: 0;
  background: #1c282d35;
  backdrop-filter: blur(2px);
  z-index: 50;
}
.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(690px, 100%);
  background: white;
  z-index: 51;
  box-shadow: -20px 0 70px #23332b15;
  display: flex;
  flex-direction: column;
}
.drawer-header {
  padding: 27px 28px 23px;
  border-bottom: 1px solid var(--line);
}
.drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.drawer-header h2 {
  font-size: 25px;
  font-weight: 550;
  letter-spacing: -0.7px;
  margin: 0 0 12px;
}
.drawer-sub {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.drawer-links {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.drawer-tabs {
  display: flex;
  gap: 25px;
  border-bottom: 1px solid var(--line);
  padding: 0 28px;
  overflow-x: auto;
}
.drawer-tabs button {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  font-size: 11px;
  color: #95a0a8;
  padding: 17px 0;
  white-space: nowrap;
}
.drawer-tabs button.active {
  color: #286548;
  border-bottom-color: #387d59;
}
.drawer-body {
  overflow-y: auto;
  flex: 1;
  padding: 23px 28px 40px;
}
.drawer-body h3 {
  font-size: 12px;
  font-weight: 600;
  margin: 0 0 15px;
}
.drawer-body p {
  font-size: 11px;
  line-height: 1.8;
  color: #8c98a1;
}
.detail-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  padding-bottom: 24px;
}
.summary-cell {
  background: #f7f9f8;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px;
}
.summary-cell label {
  font-size: 9px;
  color: #9aa5aa;
  display: block;
  margin-bottom: 10px;
}
.summary-cell strong {
  font-size: 13px;
  font-weight: 550;
}
.gate-list {
  display: grid;
  gap: 8px;
}
.gate-item {
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}
.gate-main {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 13px 14px;
  cursor: pointer;
}
.gate-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f0f3f4;
  display: grid;
  place-items: center;
  color: #aeb7bc;
  font-size: 10px;
  flex-shrink: 0;
}
.gate-check.done {
  background: #e4f1e7;
  color: #558866;
}
.gate-main strong {
  font-weight: 500;
  font-size: 11px;
  flex: 1;
}
.gate-main .stage-code {
  font-size: 9px;
  color: #a0aca5;
  margin-right: 7px;
}
.gate-detail {
  padding: 0 14px 17px 48px;
  font-size: 10px;
}
.gate-detail p {
  font-size: 10px;
  margin: 0 0 10px;
}
.gate-detail .note {
  white-space: pre-wrap;
  background: #f7f9f8;
  padding: 12px;
  border-radius: 5px;
  max-height: 160px;
  overflow: auto;
  line-height: 1.8;
  font-size: 10px;
  color: #87959e;
}
.gate-detail .btn {
  margin-top: 12px;
}
.gate-state {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 9px;
  color: #91a199;
  margin: 9px 0 14px;
}
.file-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.file-item > svg {
  color: #a0b0a4;
  width: 17px;
}
.file-item strong {
  display: block;
  font-size: 10px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 370px;
  white-space: nowrap;
}
.file-item p {
  font-size: 9px;
  margin: 5px 0 0;
  color: #a0abb4;
}
.file-item .icon-btn {
  margin-left: auto;
}
.file-item button {
  background: none;
  border: 0;
  text-align: left;
  padding: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.form-grid .full {
  grid-column: 1/-1;
}
label {
  font-size: 10px;
  color: #8b989e;
  display: block;
}
input,
select,
textarea {
  border: 1px solid #e0e6e7;
  background: #fff;
  border-radius: 5px;
  padding: 10px 11px;
  color: #62716d;
}
label input,
label select,
label textarea {
  margin-top: 7px;
  display: block;
  width: 100%;
}
textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.6;
}
.form-actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
}
.form-helper {
  color: #a6adaf;
  font-size: 9px;
  line-height: 1.8;
  margin-top: 15px;
}
.note-form {
  margin-top: 22px;
}
.brief {
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 11px;
  line-height: 1.85;
  color: #82928c;
  overflow-wrap: anywhere;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #244c3b;
  color: white;
  border-radius: 8px;
  padding: 13px 20px;
  box-shadow: 0 8px 25px #20382b22;
  font-size: 11px;
  z-index: 100;
  max-width: 90vw;
  line-height: 1.6;
}
.toast.error {
  background: #955b50;
}
.command-dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  width: min(560px, 90vw);
  padding: 0;
  box-shadow: 0 15px 80px #1b312c33;
  margin: 14vh auto auto;
  color: var(--ink);
}
dialog::backdrop {
  background: #17272b3d;
  backdrop-filter: blur(3px);
}
.command-search {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 19px;
  border-bottom: 1px solid var(--line);
  color: #81968b;
}
.command-search input {
  border: 0;
  padding: 0;
  flex: 1;
  outline: none;
  font-size: 13px;
  min-width: 0;
}
.key {
  border: 1px solid var(--line);
  background: #fafbfa;
  border-radius: 4px;
  font-size: 9px;
  color: #9eaba2;
  padding: 3px 5px;
}
.command-result {
  border: 0;
  background: white;
  padding: 14px 19px;
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  text-align: left;
  color: #5e7367;
  font-size: 12px;
}
.command-result small {
  margin-left: auto;
  color: #a4afa7;
  font-size: 9px;
}
.command-result:hover,
.command-result:focus {
  background: #f0f6f1;
  outline: none;
}
.command-footer {
  padding: 14px 19px;
  border-top: 1px solid var(--line);
  font-size: 9px;
  color: #a0aaa5;
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.document-dialog {
  border: 1px solid var(--line);
  border-radius: 9px;
  width: min(900px, 94vw);
  height: 80vh;
  padding: 0;
  color: #52675a;
}
.document-header {
  padding: 18px 23px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}
.document-dialog pre {
  padding: 20px 23px;
  font-size: 11px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.85;
}
.password-link {
  display: block;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
.login {
  min-height: 100vh;
  background: #f1f5f1;
  display: grid;
  place-items: center;
}
.login-card {
  width: min(390px, 90vw);
  padding: 35px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 20px 70px #254e3220;
}
.login-card .brand-mark {
  margin-bottom: 24px;
}
.login-card h1 {
  font-size: 29px;
  line-height: 1.3;
  letter-spacing: -1px;
  font-weight: 550;
}
.login-card p {
  font-size: 12px;
  line-height: 1.8;
}
.login-card label {
  margin-top: 18px;
}
.login-card .btn {
  width: 100%;
  margin-top: 25px;
  justify-content: space-between;
}
.error {
  color: #ad6559;
}
.wide-activity .activity-list {
  padding: 0 25px;
}
.wide-activity .activity-copy strong {
  white-space: normal;
}
.activity-files {
  font-size: 9px;
  color: #9da99f;
  display: block;
  margin-top: 7px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.source-filters {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.source-filters button {
  font-size: 10px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 20px;
  padding: 7px 12px;
  color: #8b9a91;
}
.source-filters button.active {
  background: #e9f1e9;
  color: #548361;
  border-color: #cedfce;
}
.coverage {
  font-size: 10px;
  color: #8f9d92;
  margin-top: 10px;
  line-height: 1.8;
}
.task-form {
  display: grid;
  grid-template-columns: 1fr 120px auto;
  gap: 10px;
  margin-bottom: 24px;
}
.task-form input,
.task-form select {
  font-size: 10px;
  min-width: 0;
}
.task-form button {
  font-size: 10px;
}
.filter-select {
  font-size: 10px;
  padding: 8px;
  border-color: var(--line);
  max-width: 130px;
}
.badge-line {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
  margin: 14px 0;
}
.alert-text {
  font-size: 10px;
  color: #a98d5d;
  margin: 0;
  line-height: 1.7;
}
.check-caption {
  font-size: 9px;
  color: #a6b0ab;
  margin-top: 10px;
}
.mobile-shade {
  display: none;
}
.network-error {
  padding: 40px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
  line-height: 1.8;
}
.network-error strong {
  display: block;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 12px;
}
.network-error button {
  margin-top: 16px;
}
.team-summary {
  display: flex;
  gap: 15px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.team-chip {
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  color: #7c9183;
}
.team-chip small {
  font-size: 10px;
  color: #a6b0a9;
}
.activity-more {
  margin: 10px 0 20px;
}
.file-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.file-tabs button {
  font-size: 10px;
}
.count-label {
  font-size: 9px;
  color: #9da89f;
  margin: 20px 0 8px;
}
.detail-conflict {
  padding: 13px;
  border: 1px solid #eee2cf;
  border-radius: 6px;
  background: #fcf9f2;
  margin-bottom: 20px;
  font-size: 10px;
  color: #ab8f5e;
  line-height: 1.8;
}
.detail-conflict strong {
  display: block;
}
.small-heading {
  font-size: 11px;
  font-weight: 550;
  color: #77917e;
  margin: 23px 0 13px;
}
.attention-num {
  color: #bc9659;
}
.inline-link {
  color: #588d71;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (min-width: 1450px) {
  main {
    padding: 42px 48px 24px;
  }
  .topbar,
  .footer {
    padding-left: 48px;
    padding-right: 48px;
  }
  .metrics {
    gap: 20px;
  }
  .metric {
    padding: 23px;
  }
  .offer-table td {
    padding-top: 20px;
    padding-bottom: 20px;
  }
}
@media (max-width: 1150px) {
  :root {
    --sidebar: 210px;
  }
  .sidebar {
    padding-left: 12px;
    padding-right: 12px;
  }
  main {
    padding: 28px 24px;
  }
  .topbar,
  .footer {
    padding-left: 24px;
    padding-right: 24px;
  }
  .offer-table th,
  .offer-table td {
    padding-left: 14px;
    padding-right: 14px;
  }
  .search-button > span:not(:first-child),
  .search-button kbd {
    display: none;
  }
  .date-pill {
    display: none;
  }
  .metric {
    padding: 16px;
  }
  .metrics {
    gap: 11px;
  }
  .progress-track {
    width: 60px;
  }
  .below-grid {
    gap: 16px;
  }
  .activity-time {
    display: none;
  }
  .heading-actions {
    gap: 6px;
  }
}
@media (max-width: 880px) {
  :root {
    --sidebar: 190px;
  }
  .sidebar .brand {
    font-size: 23px;
    padding-left: 7px;
  }
  .sidebar .nav-caption {
    font-size: 8px;
  }
  .sidebar nav a {
    font-size: 11px;
    padding: 11px 9px;
    gap: 8px;
  }
  .workspace {
    font-size: 10px;
    margin-top: 25px;
  }
  .sidebar-rule {
    margin-top: 18px;
    margin-bottom: 18px;
  }
  .brand-sub {
    font-size: 7px;
  }
  .page-heading h1 {
    font-size: 24px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .below-grid {
    grid-template-columns: 1fr;
  }
  .offer-table th:nth-child(5),
  .offer-table td:nth-child(5) {
    display: none;
  }
  .toolbar {
    gap: 10px;
    flex-wrap: wrap;
  }
  .table-search {
    max-width: none;
  }
  .integrations-grid {
    grid-template-columns: 1fr;
  }
  .task-board {
    grid-template-columns: 1fr 1fr;
  }
  .workflow-grid {
    grid-template-columns: 1fr;
  }
  .footer {
    font-size: 8px;
  }
  .hero-note {
    align-items: flex-start;
  }
  .hero-note-main {
    align-items: flex-start;
  }
  .hero-note .btn {
    font-size: 9px;
  }
}
@media (max-width: 650px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 234px;
    box-shadow: 10px 0 40px #14261b15;
  }
  .shell.menu-open .sidebar {
    transform: translateX(0);
  }
  .main-shell {
    width: 100%;
    margin-left: 0;
  }
  .mobile {
    display: grid;
  }
  .topbar {
    height: 58px;
    padding: 0 17px;
  }
  .breadcrumbs {
    gap: 9px;
    font-size: 10px;
  }
  .breadcrumbs .muted {
    display: none;
  }
  .breadcrumbs .divider {
    display: none;
  }
  .top-actions {
    gap: 13px;
  }
  .top-avatar {
    width: 26px;
    height: 26px;
    font-size: 9px;
  }
  main {
    padding: 25px 17px 15px;
  }
  .page-heading {
    margin-bottom: 21px;
    gap: 12px;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .page-heading p {
    font-size: 11px;
    max-width: 230px;
  }
  .heading-actions .btn:not(.primary) {
    display: none;
  }
  .heading-actions .btn {
    font-size: 10px;
    padding: 9px 10px;
  }
  .heading-actions .btn span {
    display: none;
  }
  .metrics {
    gap: 10px;
    margin-bottom: 20px;
  }
  .metric-label {
    font-size: 10px;
  }
  .metric {
    padding: 16px 15px;
  }
  .metric-value {
    font-size: 29px;
    margin-top: 14px;
  }
  .metric-bottom {
    font-size: 9px;
  }
  .metric-spark {
    display: none;
  }
  .hero-note {
    padding: 14px;
    gap: 8px;
    margin-bottom: 20px;
  }
  .hero-note .btn {
    padding: 7px;
    font-size: 9px;
  }
  .hero-note strong {
    font-size: 10px;
  }
  .hero-note p {
    font-size: 9px;
    line-height: 1.7;
  }
  .hero-note .note-icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
  }
  .hero-note-main {
    gap: 9px;
  }
  .panel-heading {
    padding: 16px 14px;
  }
  .panel-heading h2 {
    font-size: 12px;
  }
  .panel-heading p {
    font-size: 9px;
  }
  .panel-tools .btn {
    padding: 6px;
    font-size: 9px;
  }
  .segments button {
    padding: 5px 7px;
    font-size: 9px;
  }
  .toolbar {
    padding: 12px 14px;
  }
  .tabs {
    gap: 15px;
  }
  .tabs button {
    font-size: 9px;
  }
  .table-search {
    flex: 1;
  }
  .table-search input {
    width: 100%;
  }
  .offer-table {
    min-width: 560px;
  }
  .offer-table th,
  .offer-table td {
    padding-left: 14px;
    padding-right: 14px;
  }
  .offer-table td {
    padding-top: 16px;
    padding-bottom: 16px;
  }
  .offer-table th:nth-child(4),
  .offer-table td:nth-child(4) {
    display: none;
  }
  .offer-table th:nth-child(5),
  .offer-table td:nth-child(5) {
    display: none;
  }
  .table-bottom {
    padding: 12px 14px;
    font-size: 8px;
  }
  .footer {
    padding: 20px 17px;
    gap: 20px;
    line-height: 1.6;
  }
  .footer > span:last-child {
    max-width: 140px;
    text-align: right;
  }
  .drawer-header {
    padding: 23px 20px 18px;
  }
  .drawer-tabs {
    padding: 0 20px;
    gap: 22px;
  }
  .drawer-body {
    padding: 22px 20px;
  }
  .drawer-header h2 {
    font-size: 23px;
  }
  .activity-list,
  .priority-list {
    padding-left: 15px;
    padding-right: 15px;
  }
  .task-board {
    grid-template-columns: 1fr;
  }
  .task-form {
    grid-template-columns: 1fr auto;
  }
  .task-form select {
    grid-column: 1/-1;
    grid-row: 1;
  }
  .task-form input {
    grid-column: 1;
    grid-row: 2;
  }
  .task-form button {
    grid-column: 2;
    grid-row: 2;
  }
  .research-top {
    flex-wrap: wrap;
  }
  .research-top select {
    flex: 1;
    min-width: 0;
  }
  .research-top input {
    flex: 1 1 100%;
  }
  .file-item strong {
    max-width: 230px;
  }
  .form-grid {
    gap: 12px;
  }
  .detail-summary {
    gap: 10px;
  }
  .date-pill {
    display: none;
  }
  .below-grid {
    margin-top: 20px;
  }
  .command-footer {
    font-size: 8px;
  }
  .workflow-card {
    padding: 20px;
  }
  .integration-card {
    padding: 20px;
  }
  .research-detail {
    min-width: 220px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
/* Readable operational content and the paused palette from POST. */
.sidebar nav a {
  font-size: 13px;
}
.metric-label {
  font-size: 12px;
}
.offer-name strong {
  font-size: 12px;
}
.offer-id,
.progress-number,
.owner-cell,
.stage-cell {
  font-size: 11px;
}
.progress-note {
  font-size: 10px;
}
.owner-cell {
  max-width: 200px;
  line-height: 1.5;
}
.activity-copy strong,
.priority-item strong {
  font-size: 12px;
}
.activity-copy p,
.priority-item p {
  font-size: 10px;
  line-height: 1.7;
}
.progress-track span.paused {
  background: #bc8d87;
}
.drawer[data-paused="true"] .gate-check.done {
  background: #f7e9e7;
  color: #ad766e;
}
@media (max-width: 650px) {
  .sidebar nav a {
    font-size: 12px;
  }
  .metric-label {
    font-size: 10px;
  }
  .activity-copy strong {
    font-size: 11px;
  }
  .progress-note {
    font-size: 9px;
  }
}
@media (max-width: 650px) {
  .shell:not(.menu-open) .sidebar {
    visibility: hidden;
  }
  .shell.menu-open .sidebar {
    visibility: visible;
  }
  .offer-table.cartera {
    min-width: 0;
    width: 100%;
    display: block;
  }
  .cartera thead {
    display: none;
  }
  .cartera tbody {
    display: block;
  }
  .cartera tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 17px 14px;
    border-bottom: 1px solid var(--line);
    gap: 12px;
  }
  .cartera tr:last-child {
    border-bottom: 0;
  }
  .offer-table.cartera td {
    display: block;
    padding: 0;
    border: 0;
    min-width: 0;
  }
  .cartera td:first-child {
    grid-column: 1/-1;
  }
  .cartera td:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
    align-self: center;
  }
  .cartera td:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
    text-align: right;
  }
  .offer-table.cartera td:nth-child(4),
  .offer-table.cartera td:nth-child(5),
  .offer-table.cartera td:last-child {
    display: none;
  }
  .cartera .progress-track {
    width: 75px;
  }
  .cartera .progress-note {
    font-size: 9px;
  }
}

/* Finanzas */
.fin-sources { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 16px; }
.fin-sources .muted { color: var(--muted); font-size: 12px; }
.fin-metrics { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.metric-value.neg { color: var(--red); }
.metric-value.pos { color: var(--green); }
.fin-legend { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; padding: 4px 20px 0; font-size: 12px; }
.fin-legend small { color: var(--muted); margin-left: auto; }
.fin-legend .sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.sw.fin-gasto { background: #3d6fb6; }
.sw.fin-cobrado { background: #1f9d6b; }
.fin-chart { width: 100%; height: auto; display: block; padding: 8px 12px 12px; stroke: none; }
.fin-chart path.fin-gasto { fill: #3d6fb6; }
.fin-chart path.fin-cobrado { fill: #1f9d6b; }
.fin-chart .fin-grid { stroke: var(--line); stroke-width: 1; }
.fin-chart .fin-base { stroke: #c9d0d7; stroke-width: 1; }
.fin-chart .fin-axis { fill: var(--muted); font-size: 11px; stroke: none; }
.fin-chart .fin-hit { fill: transparent; }
.fin-chart .fin-col:hover .fin-hit { fill: rgba(32, 42, 55, 0.05); }
.fin-table td.num, .fin-table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fin-table td.pos { color: var(--green); }
.fin-table td.neg { color: var(--red); }
.fin-table td.muted { color: var(--muted); }
@media (max-width: 1100px) { .fin-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* =====================================================================
   TEMA «ARGOS» (13/10/2026) — mismo estilo que Ainnovate Hub, estilo Notion:
   página gris casi blanca, contenido en una tarjeta blanca, bordes finos,
   botón principal negro y el color de marca (verde pastel oscuro) solo en
   los detalles: barra del menú activo, puntos de estado, etiquetas.
   Capa de sobreescritura: va al final y no cambia el HTML.
   ===================================================================== */
:root {
  --bg: #f7f7f8;
  --surface: #ffffff;
  --ink: #111113;
  --ink-2: #3f4147;
  --muted: #7a7d84;
  --line: #e9e9eb;
  --line-soft: #f0f0f2;
  --segment: #f1f1f3;
  --row-hover: #f7f7f8;
  --brand: #5b8a71;
  --brand-strong: #3d6b53;
  --brand-tint: #edf4f0;
  --green: #3d6b53;
  --green-soft: #edf4f0;
  --amber: #a8641a;
  --amber-soft: #fdf3e2;
  --red: #c2413b;
  --blue: #4a62a8;
  --sidebar: 248px;
  font-size: 13.5px;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
body {
  background: var(--bg);
}

/* Sidebar: sobre el gris de la página, sin borde */
.sidebar {
  background: var(--bg);
  border-right: 0;
  padding: 22px 16px 16px;
}
.brand {
  color: var(--ink);
  font-size: 22px;
  letter-spacing: -0.6px;
  padding: 0 6px;
}
.brand-mark {
  background: var(--ink);
  border-radius: 10px;
  width: 34px;
  height: 34px;
  font-size: 28px;
}
.brand-mark span {
  color: #a9d1b9;
}
.brand-sub {
  color: var(--muted);
  font-size: 8.5px;
}
.workspace {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 22px 0 24px;
  padding: 10px 12px;
  font-size: 13px;
  box-shadow: 0 1px 2px rgba(17, 17, 19, 0.03);
}
.workspace-icon {
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
}
.workspace small {
  font-size: 11px;
}
.nav-caption {
  font-size: 10.5px;
  letter-spacing: 0.8px;
  color: #8a8d93;
  font-weight: 500;
  padding-left: 10px;
  margin-bottom: 8px;
}
.sidebar nav {
  gap: 2px;
}
.sidebar nav a {
  position: relative;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 450;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
}
.sidebar nav a:hover {
  background: #efeff1;
}
.sidebar nav a.active {
  background: var(--surface);
  color: var(--ink);
  font-weight: 550;
  border-color: var(--line);
  box-shadow: 0 1px 2px rgba(17, 17, 19, 0.04);
}
.sidebar nav a.active::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 7px;
  bottom: 7px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--brand);
}
.sidebar nav svg {
  width: 17px;
  height: 17px;
  color: #6b6e75;
}
.sidebar nav a.active svg {
  color: var(--ink);
}
.nav-count,
.active .nav-count {
  background: var(--segment);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 11px;
  padding: 1px 6px;
}
.sidebar-rule {
  background: var(--line);
  margin: 18px 6px;
}
.dot {
  background: var(--brand);
}
.dot.amber {
  background: #d39b4a;
}
.dot.red {
  background: #d4605a;
}
.connection-chip {
  color: var(--muted);
  font-size: 11.5px;
}
.user {
  border-top: 1px solid var(--line);
}
.user strong {
  font-size: 13px;
}
.user small {
  font-size: 11px;
}
.avatar,
.avatar.dark {
  background: var(--segment);
  color: var(--ink-2);
  border: 1px solid var(--line);
}
.password-link {
  color: var(--muted);
}

/* Contenido: una tarjeta blanca con borde fino */
.main-shell {
  margin: 12px 12px 12px var(--sidebar);
  width: calc(100% - var(--sidebar) - 12px);
  min-height: calc(100vh - 24px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(17, 17, 19, 0.04);
  overflow: hidden;
}
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  height: 60px;
  padding: 0 28px;
}
.breadcrumbs {
  font-size: 13px;
  color: var(--muted);
}
.breadcrumbs strong {
  color: var(--ink);
  font-weight: 550;
}
.divider {
  color: #c9cacf;
}
.search-button {
  background: var(--segment);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 10px;
  color: var(--muted);
  font-size: 12.5px;
}
.search-button kbd {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 10.5px;
  color: var(--muted);
}
.icon-btn {
  color: #6b6e75;
  border-radius: 8px;
}
.icon-btn:hover {
  background: var(--segment);
  color: var(--ink);
}
main {
  padding: 28px 32px 24px;
}
.footer {
  background: transparent;
  color: var(--muted);
  font-size: 11.5px;
  border-top: 1px solid var(--line);
}

/* Títulos */
.page-heading {
  margin-bottom: 22px;
}
.page-heading h1 {
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -0.7px;
  color: var(--ink);
  margin-bottom: 6px;
}
.page-heading p {
  color: var(--muted);
  font-size: 13px;
}
.eyebrow,
.page-heading .eyebrow {
  color: var(--brand-strong);
  font-size: 10.5px;
  letter-spacing: 0.8px;
  font-weight: 600;
}

/* Botones: blancos con borde fino; el principal, negro */
.btn {
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 550;
  padding: 8px 14px;
  box-shadow: 0 1px 2px rgba(17, 17, 19, 0.04);
}
.btn svg {
  width: 15px;
  height: 15px;
}
.btn:hover {
  filter: none;
  background: #fafafa;
}
.btn.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  box-shadow: 0 1px 2px rgba(17, 17, 19, 0.12);
}
.btn.primary:hover {
  background: #2a2a2e;
}
.btn.small {
  padding: 6px 11px;
  font-size: 12.5px;
}
.btn.subtle {
  color: var(--brand-strong);
  box-shadow: none;
  background: transparent;
}

/* Control segmentado y pestañas */
.segments {
  background: var(--segment);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 3px;
}
.segments button {
  color: var(--muted);
  border-radius: 8px;
  font-size: 12.5px;
  padding: 6px 12px;
}
.segments button.active {
  background: var(--surface);
  color: var(--ink);
  font-weight: 550;
  box-shadow: 0 1px 2px rgba(17, 17, 19, 0.08);
}
.tabs button {
  font-size: 13px;
  color: var(--muted);
}
.tabs button.active {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--ink);
}
.tabs button span {
  background: var(--segment);
  color: var(--muted);
  border-radius: 6px;
}

/* Indicadores: una sola franja con divisores, como la referencia */
.metrics {
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
  margin-bottom: 22px;
}
.metric {
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  padding: 18px 20px;
  background: transparent;
}
.metric:last-child {
  border-right: 0;
}
.metric-label {
  font-size: 13px;
  color: var(--ink-2);
  text-transform: none;
}
.metric-label svg {
  color: #b0b2b8;
}
.metric-value {
  font-size: 27px;
  font-weight: 650;
  letter-spacing: -0.6px;
  color: var(--ink);
}
.metric-bottom {
  font-size: 12px;
  color: var(--muted);
}
.metric-bottom.positive {
  color: var(--brand-strong);
}
.metric-bottom.attention {
  color: var(--red);
}
.metric-value.pos,
.fin-table td.pos {
  color: var(--brand-strong);
}
.metric-value.neg,
.fin-table td.neg {
  color: var(--red);
}

/* Paneles y tablas */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: none;
  overflow: hidden;
}
.panel-heading h2 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.2px;
}
.panel-heading p {
  font-size: 12.5px;
  color: var(--muted);
}
.subcount {
  background: var(--segment);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 11px;
}
.offer-table {
  font-size: 13px;
  color: var(--ink);
}
.offer-table th {
  background: #f7f8fa;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.2px;
  padding: 11px 20px;
  border-color: var(--line);
}
.offer-table td {
  padding: 13px 20px;
  border-bottom: 1px solid var(--line-soft);
}
.offer-table tbody tr:hover {
  background: var(--row-hover);
}
.offer-name strong {
  font-size: 13.5px;
  font-weight: 550;
  color: var(--ink);
  margin-bottom: 3px;
}
.offer-id {
  font-size: 11.5px;
  color: var(--muted);
}
.offer-symbol {
  border-radius: 9px;
  font-family: inherit;
  font-weight: 650;
  font-size: 14px;
}
.owner-cell,
.stage-cell,
.progress-number {
  font-size: 12px;
  color: var(--ink-2);
}
.progress-note {
  font-size: 11px;
  color: var(--muted);
}
.progress-track {
  background: var(--segment);
}
.progress-track span {
  background: var(--brand);
}
.table-bottom {
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.table-search {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.table-search input {
  font-size: 13px;
  color: var(--ink);
}

/* Etiquetas: pastel, texto con contraste */
.tag {
  font-size: 11.5px;
  font-weight: 500;
  border-radius: 6px;
  padding: 3px 8px;
  background: var(--segment);
  color: var(--ink-2);
}
.tag.green {
  background: var(--brand-tint);
  color: var(--brand-strong);
}
.tag.amber {
  background: #fdf3e2;
  color: #a8641a;
}
.tag.red {
  background: #fdeceb;
  color: #b93a34;
}
.tag.blue {
  background: #eef2fb;
  color: #4a62a8;
}
.tag .dot {
  width: 5px;
  height: 5px;
}

/* Listas y bloques varios */
.activity-item {
  border-bottom: 1px solid var(--line-soft);
}
.activity-copy strong {
  font-size: 13px;
  color: var(--ink);
}
.activity-icon {
  background: var(--segment);
  color: var(--ink-2);
  border-radius: 8px;
}
.callout {
  background: #f7f8fa;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink-2);
  font-size: 12.5px;
}
.integration-card,
.workflow-card,
.task-card,
.offer-card,
.kanban-col {
  border-color: var(--line);
  border-radius: 14px;
}
.drawer {
  border-left: 1px solid var(--line);
}

/* Finanzas */
.fin-sources .muted {
  font-size: 12px;
}
.fin-legend {
  font-size: 12.5px;
  color: var(--ink-2);
}
.fin-chart .fin-axis {
  fill: var(--muted);
}

@media (max-width: 880px) {
  :root {
    --sidebar: 200px;
  }
}
@media (max-width: 650px) {
  .sidebar {
    background: var(--surface);
  }
  .sidebar nav a.active::before {
    display: none;
  }
  .main-shell {
    margin: 0;
    width: 100%;
    border-radius: 0;
    border: 0;
  }
  .metric {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

/* Ajustes del tema tras revisar capturas (13/10/2026) */
.segments button {
  white-space: nowrap;
}
.hero-note {
  background: #f7f8fa;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink-2);
}
.hero-note strong {
  font-size: 13px;
  color: var(--ink);
}
.hero-note p,
.hero-note small,
.hero-note span {
  font-size: 12px;
}
.table-search {
  padding: 7px 10px;
}
@media (max-width: 650px) {
  main {
    padding: 20px 16px;
  }
  .page-heading {
    flex-direction: column;
    align-items: stretch;
  }
  .page-heading h1 {
    font-size: 22px;
  }
  .heading-actions {
    flex-wrap: wrap;
  }
  .metrics,
  .fin-metrics {
    grid-template-columns: 1fr;
  }
  .metric-value {
    font-size: 24px;
  }
  .heading-actions .btn[data-fin-refresh] {
    display: inline-flex;
    font-size: 12.5px;
  }
}

/* Finanzas: la tarjeta del resultado se destaca (13/10/2026) */
.metric.fin-result {
  background: var(--brand-tint);
}
.metric.fin-result.neg {
  background: #fdf1f0;
}
.metric.fin-result .metric-label {
  color: var(--ink);
  font-weight: 600;
}

.fin-metrics.fin-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1100px) {
  .fin-metrics.fin-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .fin-metrics.fin-4 { grid-template-columns: 1fr; }
}

/* Finanzas: tooltip que sigue al mouse */
.fin-tip {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  pointer-events: none;
  min-width: 230px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(17, 17, 19, 0.1);
  padding: 12px 14px;
  font-size: 12.5px;
  color: var(--ink-2);
}
.fin-tip-title {
  font-weight: 600;
  color: var(--ink);
  font-size: 13.5px;
  margin-bottom: 8px;
}
.fin-tip-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 2px 0;
}
.fin-tip-row strong {
  font-weight: 550;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.fin-tip-row strong.pos {
  color: var(--brand-strong);
}
.fin-tip-row strong.neg {
  color: var(--red);
}
.fin-tip-row strong.muted {
  color: var(--muted);
  font-weight: 450;
}
.fin-tip-sep {
  height: 1px;
  background: var(--line);
  margin: 7px 0;
}
.fin-chart .fin-col {
  cursor: default;
}
