:root {
  --ink: #252c2a;
  --muted: #818783;
  --line: #e6eae7;
  --green: #226b58;
  --green-dark: #185441;
  --green-wash: #eaf2ee;
  --paper: #fff;
  --canvas: #f7f9f7;
  --amber: #a47830;
  --red: #b9534e;
  --sidebar: 196px;
}
* {
  box-sizing: border-box;
  letter-spacing: 0;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    'PingFang SC',
    'Microsoft YaHei',
    sans-serif;
  font-size: 14.5px;
  line-height: 1.5;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button {
  color: inherit;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid #438f77;
  outline-offset: 3px;
}
button {
  transition:
    background 0.15s,
    border-color 0.15s,
    box-shadow 0.15s;
}
svg.lucide {
  width: 17px;
  height: 17px;
  stroke-width: 1.7;
  flex-shrink: 0;
}
.sidebar {
  width: var(--sidebar);
  position: fixed;
  inset: 0 auto 0 0;
  background: #f8faf8;
  border-right: 1px solid var(--line);
  padding: 30px 16px 22px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  padding: 0 7px 36px;
  font-size: 25px;
  font-weight: 650;
  line-height: 1.1;
}
.brand-icon {
  display: grid;
  place-items: center;
  background: var(--green);
  width: 37px;
  height: 40px;
  color: white;
  border-radius: 7px;
}
.brand-icon svg {
  width: 28px;
  height: 28px;
}
.brand-sub {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  color: #6c766d;
  margin-top: 7px;
}
.workspace-label {
  font-size: 12.5px;
  color: #6e7671;
  padding: 0 12px;
  margin-bottom: 13px;
}
.workspace-label > span {
  font-size: 10.5px;
  margin-left: 8px;
  color: #6c776e;
}
.nav-item {
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 12px;
  border-radius: 5px;
  margin: 3px 0;
  text-align: left;
  color: #65716a;
  font-weight: 500;
  white-space: nowrap;
}
.nav-item svg {
  width: 18px;
  height: 18px;
}
.nav-item:hover {
  background: #eef2ee;
}
.nav-item.active {
  color: var(--green-dark);
  background: #e6efea;
  font-weight: 650;
}
.nav-count {
  margin-left: auto;
  color: #647a6d;
  font-size: 12.5px;
}
.sidebar-divider {
  border-top: 1px solid var(--line);
  margin: 22px 10px;
}
.sidebar-project {
  margin-top: 40px;
}
.project-mini {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12.5px;
  padding: 0 12px;
  color: #546459;
}
.project-dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  margin-top: 6px;
  border-radius: 2px;
}
.project-mini small {
  display: block;
  color: #6a766e;
  font-size: 11.5px;
  margin-top: 5px;
}
.sidebar-bottom {
  margin-top: auto;
  font-size: 11.5px;
  color: #6a786e;
  padding: 20px 9px 0;
}
.sidebar-bottom small {
  display: block;
  color: #6e7770;
  font-size: 11px;
  margin-top: 7px;
}
.local-dot {
  display: inline-block;
  height: 5px;
  width: 5px;
  border-radius: 50%;
  background: #438570;
  margin-right: 5px;
  vertical-align: middle;
}
.app-shell {
  margin-left: var(--sidebar);
}
.topbar {
  height: 66px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
}
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 13.5px;
  color: #6e7671;
}
.breadcrumbs svg {
  width: 13px;
  height: 13px;
}
.breadcrumbs strong {
  font-weight: 500;
  color: #4c5750;
}
.topbar-end {
  display: flex;
  align-items: center;
  gap: 16px;
}
.prototype-label {
  font-size: 11px;
  color: #6b766e;
}
.prototype-label b {
  font-size: 11.5px;
  background: #f0f3f0;
  padding: 3px 5px;
  margin-left: 4px;
  font-weight: 500;
}
.profile-avatar {
  height: 29px;
  width: 29px;
  border: 1px solid #dce3dd;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11.5px;
  background: #f1f4f1;
  color: #56685b;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 4px;
  color: #6b776e;
}
.icon-button:hover {
  background: #edf3ee;
  color: var(--green);
}
.icon-button.danger:hover {
  background: #faedeb;
  color: var(--red);
}
main {
  max-width: 1780px;
  margin: auto;
  padding: 30px 34px 0;
}
.project-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.project-identity {
  display: flex;
  align-items: center;
  gap: 17px;
  min-width: 0;
}
.project-image {
  width: 62px;
  height: 68px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #e2e7e3;
  background: #ecefeb;
}
.eyebrow {
  font-size: 11.5px;
  font-weight: 500;
  color: #6b756f;
  display: flex;
  align-items: center;
  gap: 10px;
}
.status-badge {
  font-size: 11.5px;
  color: #94773c;
  background: #f6f1e5;
  padding: 2px 7px;
  border-radius: 3px;
}
h1 {
  font-size: 24px;
  line-height: 1.4;
  margin: 5px 0 5px;
  font-weight: 640;
  overflow-wrap: anywhere;
}
.project-heading p {
  font-size: 12.5px;
  color: #6f7771;
  margin: 0;
}
.project-heading p span {
  margin: 0 8px;
  color: #c3cac5;
}
.heading-actions {
  display: flex;
  gap: 9px;
  flex-shrink: 0;
}
.button {
  border-radius: 5px;
  border: 1px solid #dfe5df;
  padding: 9px 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 13.5px;
  background: #fff;
  min-height: 36px;
  white-space: nowrap;
}
.button:hover {
  background: #f5f8f5;
  border-color: #b9cabe;
}
.button.primary {
  color: white;
  background: var(--green);
  border-color: var(--green);
}
.button.primary:hover {
  background: var(--green-dark);
}
.button.text {
  color: var(--green);
  border-color: transparent;
  background: transparent;
  padding-left: 0;
  padding-right: 0;
}
.button.small {
  padding: 6px 10px;
  min-height: 31px;
  font-size: 12.5px;
}
.button svg {
  width: 15px;
  height: 15px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  margin-bottom: 17px;
}
.metric {
  padding: 0 25px;
  border-left: 1px solid var(--line);
  min-width: 0;
}
.metric:first-child {
  border: 0;
  padding-left: 0;
}
.metric:last-child {
  padding-right: 0;
}
.metric-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  color: #6a756e;
  margin-bottom: 9px;
  gap: 7px;
}
.metric-label > span:not(.target-badge) {
  font-size: 11px;
  color: #6b766e;
  border: 1px solid #e5eae5;
  border-radius: 3px;
  padding: 0 4px;
}
.metric-label svg {
  width: 14px;
  height: 14px;
  color: #68796b;
}
.metric-value {
  font-size: 30px;
  line-height: 1.3;
  font-weight: 590;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.metric-value > span {
  font-size: 20px;
  margin-left: 2px;
  font-weight: 500;
}
.metric-sub {
  font-size: 11.5px;
  color: #6c766f;
  margin-top: 8px;
  min-height: 15px;
}
.metric-sub.changed {
  color: var(--green);
}
.metric-sub.error {
  color: var(--red);
}
.profit-metric .metric-value {
  color: var(--green);
}
.profit-metric.negative .metric-value {
  color: var(--red);
}
.quote-amount {
  display: flex;
  align-items: center;
  font-size: 30px;
  line-height: 1.3;
  font-weight: 590;
  height: 38px;
  gap: 3px;
}
.quote-amount > span {
  font-size: 27px;
}
.quote-amount input {
  width: 100%;
  min-width: 0;
  background: transparent;
  border: 0;
  color: var(--ink);
  font-size: 30px;
  font-weight: 590;
  padding: 0;
  font-variant-numeric: tabular-nums;
  appearance: textfield;
}
.quote-amount input::-webkit-inner-spin-button {
  appearance: none;
}
.quote-amount svg {
  width: 13px;
  height: 13px;
  color: #647968;
}
.target-badge {
  font-size: 11px;
  color: var(--green);
  background: var(--green-wash);
  padding: 1px 6px;
  border-radius: 3px;
  white-space: nowrap;
}
.target-badge.warning {
  color: #a77a32;
  background: #faf2e3;
}
.margin-track {
  height: 3px;
  background: #edf0ed;
  margin-top: 8px;
  position: relative;
}
.margin-track > span {
  height: 3px;
  background: #629881;
  display: block;
  width: 46.5%;
  transition: width 0.2s;
}
.margin-track > i {
  width: 2px;
  height: 7px;
  position: absolute;
  background: #b7beb8;
  left: 30%;
  top: -2px;
}
.metric:last-child .metric-sub {
  margin-top: 4px;
}
.view-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  gap: 10px;
  margin-bottom: 25px;
}
.view-tabs {
  display: flex;
  gap: 27px;
  min-width: 0;
}
.view-tabs button {
  background: none;
  border: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  color: #6b766e;
  padding: 12px 0 15px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.view-tabs button[aria-selected='true'] {
  color: var(--green);
  border-bottom-color: var(--green);
  font-weight: 600;
}
.view-tabs svg {
  width: 15px;
  height: 15px;
}
.scenario-label {
  font-size: 11.5px;
  color: #6c786f;
  white-space: nowrap;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 30px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}
.section-title h2 {
  font-size: 15.5px;
  font-weight: 600;
  margin: 0;
}
.section-title h2 span {
  font-size: 12.5px;
  font-weight: 400;
  color: #6d766d;
  margin-left: 8px;
}
.section-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}
.subtle {
  color: #6c786e;
  font-size: 11.5px;
}
.tiny-toggle {
  background: transparent;
  border: 0;
  color: #69766d;
  font-size: 11.5px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
}
.tiny-toggle svg {
  width: 13px;
  height: 13px;
}
.stages {
  border-top: 1px solid var(--line);
}
.stage {
  border-bottom: 1px solid var(--line);
}
.stage-summary {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 100px 72px 88px 29px;
  align-items: center;
  gap: 10px;
  min-height: 63px;
  padding: 10px 6px;
  cursor: pointer;
  transition: background 0.15s;
}
.stage-summary:hover {
  background: #fafcf9;
}
.stage-label {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.stage-marker {
  width: 29px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: color-mix(in srgb, var(--stage-color) 10%, white);
  color: var(--stage-color);
  flex-shrink: 0;
  font-size: 12.5px;
  font-weight: 600;
}
.stage-name {
  font-size: 13.5px;
  font-weight: 550;
}
.stage-english {
  font-size: 10.5px;
  color: #6d766f;
  margin-top: 1px;
}
.stage-team {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.avatar {
  width: 25px;
  height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 11.5px;
  font-weight: 600;
  background: var(--avatar);
  color: var(--avatar-ink);
  border: 2px solid white;
  flex-shrink: 0;
}
.stage-team .avatar + .avatar {
  margin-left: -6px;
}
.stage-days {
  text-align: right;
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
}
.stage-days span {
  font-size: 11px;
  color: #6b766d;
  margin-left: 3px;
}
.stage-cost {
  text-align: right;
  font-size: 13.5px;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}
.stage-summary > svg {
  width: 13px;
  height: 13px;
  color: #68776d;
  justify-self: center;
  transition: transform 0.2s;
}
.stage.open .stage-summary > svg {
  transform: rotate(180deg);
}
.stage-empty {
  font-size: 11.5px;
  color: #b58b43;
  white-space: nowrap;
}
.stage-body {
  padding: 0 8px 10px 44px;
}
.allocation-head,
.allocation-row {
  display: grid;
  grid-template-columns: minmax(95px, 1fr) 52px 65px 80px 28px;
  align-items: center;
  gap: 9px;
}
.allocation-head {
  font-size: 11px;
  color: #6a766d;
  padding: 7px 0;
  border-top: 1px solid #f0f2ef;
}
.allocation-head > span:not(:first-child) {
  text-align: right;
}
.allocation-row {
  min-height: 43px;
  border-bottom: 1px solid #f0f3ef;
}
.allocation-row:last-of-type {
  border-bottom: 0;
}
.person-label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.person-name {
  font-size: 12.5px;
}
.allocation-row .avatar {
  width: 23px;
  height: 23px;
  font-size: 11px;
}
.level-badge {
  font-size: 11px;
  color: #69766d;
  text-align: right;
}
.allocation-row .days-control {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  color: #6e7770;
  font-size: 11.5px;
}
.inline-days {
  width: 42px;
  border: 1px solid transparent;
  border-radius: 3px;
  text-align: right;
  background: transparent;
  font-size: 12.5px;
  color: var(--ink);
  padding: 3px 4px;
  appearance: textfield;
}
.inline-days::-webkit-inner-spin-button {
  appearance: none;
}
.inline-days:hover {
  background: white;
  border-color: #dce5de;
}
.inline-days:focus {
  border-color: #5b9b80;
  background: white;
  outline: none;
}
.row-cost {
  text-align: right;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  color: #67766b;
}
.add-person {
  font-size: 11.5px;
  color: #577d6a;
  background: none;
  border: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 11px 0 1px;
}
.add-person svg {
  width: 12px;
  height: 12px;
}
.total-row {
  display: flex;
  justify-content: space-between;
  padding: 17px 6px;
  font-size: 12.5px;
}
.total-row .total-group {
  display: flex;
  gap: 18px;
}
.total-row strong {
  font-weight: 600;
}
.total-row span {
  color: #6a766d;
}
.allocation-footnote {
  font-size: 11.5px;
  color: #6b786d;
  margin-top: 9px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.allocation-footnote svg {
  width: 13px;
  height: 13px;
}
.budget-aside {
  border-left: 1px solid var(--line);
  padding-left: 25px;
}
.aside-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.aside-title h2 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
}
.aside-title span {
  font-size: 11px;
  color: #6c786e;
}
.cost-composition {
  display: flex;
  height: 8px;
  gap: 3px;
  margin: 4px 0 17px;
  overflow: hidden;
  border-radius: 2px;
}
.cost-composition span {
  min-width: 2px;
  transition: width 0.2s;
}
.breakdown-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  margin: 14px 0;
}
.breakdown-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6c786e;
}
.legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 1px;
  display: inline-block;
  flex-shrink: 0;
}
.breakdown-value {
  font-variant-numeric: tabular-nums;
  color: #4f6154;
}
.budget-fees {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
  margin-top: 22px;
}
.budget-fees .section-title {
  margin-bottom: 10px;
}
.budget-fees h3 {
  font-size: 13.5px;
  font-weight: 550;
  margin: 0;
}
.budget-fees .breakdown-line {
  margin: 12px 0;
}
.fee-input {
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  width: 75px;
  font-size: 12.5px;
  text-align: right;
  color: #596b5e;
  appearance: textfield;
  padding: 2px 4px;
  font-variant-numeric: tabular-nums;
}
.fee-input::-webkit-inner-spin-button {
  appearance: none;
}
.fee-input:hover,
.fee-input:focus {
  background: white;
  border-color: #becdc1;
  outline: none;
}
.fee-input.invalid {
  border-color: var(--red);
}
.input-prefix {
  display: flex;
  gap: 1px;
  align-items: center;
  font-size: 11.5px;
  color: #6b776e;
}
.target-setting {
  padding: 19px 0;
}
.target-setting label {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: #68776d;
  align-items: center;
}
.target-setting input[type='number'] {
  width: 40px;
  border: 0;
  background: #f1f5f1;
  font-size: 12.5px;
  text-align: center;
  border-radius: 3px;
  padding: 3px;
}
.target-setting input[type='range'] {
  accent-color: var(--green);
  width: 100%;
  height: 3px;
  margin: 15px 0 6px;
}
.target-ends {
  display: flex;
  justify-content: space-between;
  color: #6b766e;
  font-size: 11px;
}
.judgement {
  border-left: 2px solid #639783;
  padding: 1px 0 1px 11px;
  margin-top: 13px;
}
.judgement-title {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-size: 12.5px;
  font-weight: 550;
}
.judgement-title svg {
  width: 14px;
  height: 14px;
}
.judgement p {
  font-size: 11.5px;
  color: #68776c;
  line-height: 1.8;
  margin: 6px 0 0;
}
.judgement.warn {
  border-left-color: #c49957;
}
.judgement.warn .judgement-title {
  color: var(--amber);
}
.page-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 0 20px;
  margin-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: #6a766d;
  gap: 12px;
}
.page-footer > span:first-child {
  display: flex;
  align-items: center;
  gap: 5px;
}
.page-footer svg {
  width: 12px;
  height: 12px;
}
.schedule-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.schedule-heading h2 {
  font-size: 15.5px;
  font-weight: 600;
  margin: 0;
}
.schedule-heading p {
  font-size: 11.5px;
  color: #69776e;
  margin: 5px 0 0;
}
.segmented {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  background: #f6f8f5;
  border-radius: 5px;
  gap: 3px;
}
.segmented button {
  background: none;
  border: 0;
  border-radius: 3px;
  padding: 5px 12px;
  font-size: 12.5px;
  color: #6b776f;
}
.segmented button.active {
  background: white;
  color: var(--green);
  box-shadow: 0 1px 3px #253d2412;
}
.schedule-alert {
  display: flex;
  gap: 9px;
  padding: 10px 14px;
  background: #faf3e9;
  color: #9c7945;
  border: 1px solid #f0e6d6;
  font-size: 12.5px;
  margin-bottom: 16px;
  border-radius: 4px;
}
.gantt-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.gantt {
  min-width: 810px;
}
.gantt-head,
.gantt-row {
  display: grid;
  grid-template-columns: 182px minmax(620px, 1fr);
}
.gantt-head {
  border-bottom: 1px solid var(--line);
  background: #f8faf7;
}
.gantt-label {
  padding: 14px 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  border-right: 1px solid var(--line);
  background: white;
}
.gantt-head .gantt-label {
  background: #f8faf7;
  color: #6a786e;
}
.gantt-dates {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  font-size: 11.5px;
  color: #69796c;
}
.gantt-dates span {
  border-right: 1px solid var(--line);
  padding: 14px 9px;
}
.gantt-row {
  border-bottom: 1px solid #edf0ec;
  min-height: 53px;
}
.gantt-row:last-child {
  border-bottom: 0;
}
.gantt-track {
  position: relative;
  min-height: 53px;
  background-image: linear-gradient(to right, transparent calc(100% - 1px), #ebefea 0);
  background-size: calc(100% / 6) 100%;
  display: flex;
  align-items: center;
}
.gantt-bar {
  position: absolute;
  left: var(--left);
  width: var(--width);
  min-width: 8px;
  height: 26px;
  background: color-mix(in srgb, var(--bar-color) 15%, white);
  border: 1px solid color-mix(in srgb, var(--bar-color) 35%, white);
  border-left: 3px solid var(--bar-color);
  border-radius: 3px;
  font-size: 11px;
  display: flex;
  align-items: center;
  padding: 0 7px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--bar-color);
}
.gantt-bar:hover {
  filter: brightness(0.97);
}
.gantt-group-label {
  font-size: 11.5px;
  color: #69766e;
  margin-left: auto;
}
.people-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.person-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  gap: 7px;
}
.person-summary-head strong {
  font-weight: 550;
}
.person-summary-sub {
  font-size: 11.5px;
  color: #68766b;
  margin: 10px 0 6px;
}
.utilization {
  height: 4px;
  background: #edf1eb;
  border-radius: 2px;
}
.utilization span {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: #97b29e;
}
.schedule-legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: #68786c;
  margin-top: 16px;
}
.schedule-legend span {
  display: flex;
  gap: 6px;
  align-items: center;
}
.comparison-scroll {
  overflow: auto;
}
.comparison {
  width: 100%;
  border-collapse: collapse;
  min-width: 650px;
  font-size: 13.5px;
  table-layout: fixed;
}
.comparison th,
.comparison td {
  text-align: right;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
}
.comparison th:first-child,
.comparison td:first-child {
  text-align: left;
  width: 170px;
  color: #6a786e;
}
.comparison thead th {
  padding-top: 20px;
  padding-bottom: 24px;
  vertical-align: top;
}
.comparison thead th:not(:first-child) {
  text-align: left;
}
.comparison .current-col {
  background: #f1f7f2;
}
.version-title {
  font-size: 14.5px;
  font-weight: 550;
  display: block;
  margin: 9px 0 4px;
}
.version-note {
  font-size: 11.5px;
  color: #69766c;
  display: block;
}
.version-tag {
  font-size: 11px;
  color: #68776c;
  background: #edf1eb;
  padding: 3px 6px;
  border-radius: 3px;
}
.version-tag.active {
  background: #deebe1;
  color: var(--green);
}
.comparison .profit-line td {
  font-size: 24px;
  color: var(--green);
  font-weight: 550;
}
.comparison .profit-line td:first-child {
  font-size: 13.5px;
  font-weight: 400;
  color: #67796d;
}
.comparison .version-action td {
  border: 0;
}
.comparison .negative {
  color: var(--red) !important;
}
.delta-badge {
  font-size: 11.5px;
  color: #896e50;
}
.compare-note {
  font-size: 11.5px;
  color: #68796c;
  margin-top: 25px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.compare-note svg {
  width: 14px;
  height: 14px;
}
.empty-state {
  padding: 50px 20px;
  text-align: center;
  color: #64796b;
}
dialog {
  border: 0;
  color: var(--ink);
  background: white;
  box-shadow: 0 20px 80px #17271d20;
}
dialog::backdrop {
  background: #14241a33;
  backdrop-filter: blur(2px);
}
.drawer {
  margin: 0 0 0 auto;
  max-height: 100dvh;
  height: 100dvh;
  width: 430px;
  max-width: 100vw;
  padding: 0;
  border-left: 1px solid #e2e9e1;
}
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 26px;
  border-bottom: 1px solid var(--line);
}
.drawer-header h2 {
  font-size: 19px;
  font-weight: 600;
  margin: 0;
}
.drawer-header p {
  font-size: 11.5px;
  color: #6a776c;
  margin: 5px 0 0;
}
.drawer-body {
  padding: 25px 26px;
}
.field {
  display: block;
  margin-bottom: 21px;
}
.field > span {
  display: block;
  font-size: 12.5px;
  color: #68786c;
  margin-bottom: 8px;
}
.field input:not([type='range']),
.field select {
  width: 100%;
  min-width: 0;
  border: 1px solid #dfe6dd;
  border-radius: 5px;
  padding: 10px 11px;
  background: white;
  color: #465a4c;
  min-height: 41px;
}
.field input[type='range'] {
  width: 100%;
  accent-color: var(--green);
}
.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.field-hint {
  font-size: 11.5px;
  color: #67796c;
  margin-top: 6px;
}
.drawer-calculation {
  background: #f2f7f1;
  padding: 18px;
  border-radius: 5px;
  margin-top: 15px;
}
.drawer-calculation > div {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: #68766c;
  margin: 6px 0;
}
.drawer-calculation strong {
  font-size: 23px;
  color: var(--green);
  font-weight: 550;
}
.drawer-actions {
  padding: 20px 26px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 9px;
}
.drawer-actions > div {
  display: flex;
  gap: 8px;
}
.error-message {
  font-size: 12.5px;
  color: var(--red);
  margin: 10px 0;
  min-height: 16px;
}
.modal {
  width: 420px;
  max-width: calc(100vw - 28px);
  border-radius: 8px;
  padding: 26px;
}
.modal-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.modal h2 {
  font-size: 19px;
  margin: 0;
  font-weight: 600;
}
.modal p {
  font-size: 13.5px;
  line-height: 1.8;
  color: #68786c;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 23px;
}
.rates-list {
  display: grid;
  gap: 12px;
  margin-bottom: 25px;
}
.rate-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.rate-row small {
  display: block;
  font-size: 11.5px;
  color: #67786b;
}
.rate-row > strong {
  margin-left: auto;
  font-size: 12.5px;
  font-weight: 500;
  color: #607969;
}
#toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translate(-50%, 15px);
  opacity: 0;
  pointer-events: none;
  background: #264b39;
  color: white;
  padding: 11px 20px;
  border-radius: 6px;
  font-size: 13.5px;
  box-shadow: 0 4px 25px #16351a20;
  transition: 0.2s;
  z-index: 100;
  max-width: calc(100vw - 30px);
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (min-width: 1550px) {
  :root {
    --sidebar: 220px;
  }
  main {
    padding-left: 45px;
    padding-right: 45px;
  }
  .quote-layout {
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 40px;
  }
  .budget-aside {
    padding-left: 32px;
  }
  .stage-summary {
    grid-template-columns: minmax(150px, 1fr) 125px 105px 110px 29px;
  }
  .allocation-head,
  .allocation-row {
    grid-template-columns: minmax(120px, 1fr) 90px 90px 105px 28px;
  }
  .metric-value,
  .quote-amount,
  .quote-amount input {
    font-size: 33px;
  }
}
@media (max-width: 1180px) {
  :root {
    --sidebar: 174px;
  }
  .sidebar {
    padding-left: 11px;
    padding-right: 11px;
  }
  .brand {
    font-size: 23px;
  }
  .brand-sub {
    font-size: 10.5px;
  }
  .workspace-label > span {
    display: none;
  }
  main {
    padding: 25px 25px 0;
  }
  .topbar {
    padding: 0 25px;
  }
  .quote-layout {
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 21px;
  }
  .budget-aside {
    padding-left: 20px;
  }
  .metric {
    padding: 0 18px;
  }
  .metric-value,
  .quote-amount,
  .quote-amount input {
    font-size: 26px;
  }
  .quote-amount > span {
    font-size: 24px;
  }
  .metric-label {
    font-size: 12.5px;
  }
  .metric-label svg {
    display: none;
  }
  .stage-summary {
    grid-template-columns: minmax(105px, 1fr) 65px 57px 72px 18px;
    gap: 8px;
  }
  .stage-body {
    padding-left: 20px;
  }
  .view-tabs {
    gap: 21px;
  }
  h1 {
    font-size: 22px;
  }
  .heading-actions {
    gap: 6px;
  }
  .heading-actions .button {
    padding: 8px 10px;
  }
  .project-image {
    width: 53px;
    height: 62px;
  }
  .project-identity {
    gap: 12px;
  }
  .scenario-label {
    max-width: 110px;
  }
}
@media (max-width: 980px) {
  :root {
    --sidebar: 66px;
  }
  .sidebar {
    padding: 25px 9px 20px;
  }
  .brand {
    padding: 0 5px 30px;
  }
  .brand > span:last-child,
  .workspace-label,
  .nav-item > span,
  .sidebar-project,
  .sidebar-bottom,
  .sidebar-divider {
    display: none;
  }
  .brand-icon {
    width: 35px;
    height: 38px;
  }
  .nav-item {
    justify-content: center;
    padding: 14px 0;
  }
  .sidebar > button {
    margin-top: 20px;
  }
  .quote-layout {
    grid-template-columns: minmax(0, 1fr) 215px;
  }
  .prototype-label {
    display: none;
  }
  .stage-summary {
    grid-template-columns: minmax(100px, 1fr) 63px 56px 70px 16px;
  }
  .metric {
    padding: 0 15px;
  }
  .metric-value,
  .quote-amount,
  .quote-amount input {
    font-size: 25px;
  }
  .target-badge {
    font-size: 10.5px;
  }
  .project-heading {
    flex-wrap: wrap;
  }
  .heading-actions {
    margin-left: auto;
  }
  .allocation-head,
  .allocation-row {
    grid-template-columns: minmax(82px, 1fr) 35px 50px 62px 26px;
    gap: 5px;
  }
  .stage-body {
    padding-left: 8px;
  }
  .stage-marker {
    width: 26px;
    height: 29px;
  }
  .stage-label {
    gap: 7px;
  }
}
@media (max-width: 760px) {
  .quote-layout {
    grid-template-columns: 1fr;
  }
  .budget-aside {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 25px 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 25px;
  }
  .budget-fees {
    grid-column: 2;
    grid-row: 1/4;
    margin: 0;
    padding-top: 0;
    border-top: 0;
  }
  .target-setting {
    grid-column: 1;
    padding-top: 0;
  }
  .judgement {
    grid-column: 1/-1;
    margin-top: 0;
  }
  .cost-breakdown {
    grid-column: 1;
  }
  .target-badge {
    display: none;
  }
  .metric-label > span:not(.target-badge) {
    display: none;
  }
  .metric-sub {
    font-size: 11px;
  }
  .metrics {
    padding: 20px 0;
  }
  .view-tabs {
    gap: 20px;
  }
  .scenario-label {
    display: none;
  }
  .heading-actions {
    margin-left: 0;
  }
  .page-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
  .stage-summary {
    grid-template-columns: minmax(130px, 1fr) 83px 76px 80px 20px;
  }
  .allocation-head,
  .allocation-row {
    grid-template-columns: minmax(100px, 1fr) 60px 75px 85px 28px;
  }
  .stage-body {
    padding-left: 43px;
  }
  .people-summary {
    gap: 15px;
  }
  .project-heading {
    margin-bottom: 23px;
  }
}
@media (max-width: 540px) {
  :root {
    --sidebar: 0px;
  }
  .sidebar {
    display: none;
  }
  .topbar {
    height: 53px;
    padding: 0 18px;
  }
  .topbar-end {
    gap: 9px;
  }
  .profile-avatar {
    width: 25px;
    height: 25px;
  }
  .breadcrumbs {
    font-size: 11.5px;
    gap: 8px;
  }
  main {
    padding: 22px 18px 0;
  }
  .project-image {
    width: 49px;
    height: 58px;
  }
  .project-identity {
    gap: 10px;
  }
  h1 {
    font-size: 20px;
  }
  .eyebrow {
    font-size: 11px;
  }
  .project-heading p {
    font-size: 11.5px;
  }
  .project-heading p span {
    margin: 0 4px;
  }
  .heading-actions {
    width: 100%;
    margin-top: 0;
  }
  .heading-actions .button {
    flex: 1;
    font-size: 12.5px;
  }
  .project-heading {
    gap: 17px;
    margin-bottom: 20px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
    padding: 0;
    margin-bottom: 14px;
    border-top: 0;
    gap: 0;
  }
  .metric {
    padding: 17px 0 !important;
    border-left: 0;
  }
  .metric:nth-child(even) {
    padding-left: 20px !important;
    border-left: 1px solid var(--line);
  }
  .metric:nth-child(-n + 2) {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .metric-value,
  .quote-amount,
  .quote-amount input {
    font-size: 28px;
  }
  .metric-label {
    font-size: 12.5px;
  }
  .metric-label > span:not(.target-badge) {
    display: inline;
  }
  .quote-amount {
    height: 35px;
  }
  .target-badge {
    display: inline;
  }
  .metric-label {
    margin-bottom: 6px;
  }
  .metric-sub {
    font-size: 11px;
  }
  .view-toolbar {
    margin-bottom: 20px;
  }
  .view-tabs {
    gap: 21px;
    width: 100%;
    justify-content: space-between;
  }
  .view-tabs button {
    font-size: 12.5px;
    gap: 4px;
    padding: 9px 0 13px;
  }
  .view-tabs svg {
    width: 13px;
    height: 13px;
  }
  .section-title h2 {
    font-size: 14.5px;
  }
  .section-title h2 span {
    font-size: 11.5px;
    margin-left: 5px;
  }
  .stage-summary {
    grid-template-columns: minmax(108px, 1fr) 49px 47px 66px 15px;
    gap: 5px;
    padding-left: 0;
    padding-right: 0;
    min-height: 62px;
  }
  .stage-days {
    font-size: 12.5px;
  }
  .stage-days span {
    font-size: 10.5px;
  }
  .stage-cost {
    font-size: 12.5px;
  }
  .stage-name {
    font-size: 12.5px;
  }
  .stage-team .avatar {
    width: 21px;
    height: 21px;
    font-size: 10.5px;
  }
  .stage-team .avatar + .avatar {
    margin-left: -9px;
  }
  .stage-marker {
    width: 24px;
    height: 28px;
    font-size: 11.5px;
  }
  .stage-body {
    padding-left: 0;
    padding-right: 0;
  }
  .allocation-head,
  .allocation-row {
    grid-template-columns: minmax(85px, 1fr) 37px 51px 69px 26px;
    gap: 5px;
  }
  .budget-aside {
    gap: 15px 22px;
  }
  .breakdown-line {
    font-size: 11.5px;
  }
  .fee-input {
    width: 65px;
    font-size: 11.5px;
  }
  .budget-aside .aside-title h2 {
    font-size: 13.5px;
  }
  .aside-title > span {
    font-size: 10.5px;
  }
  .budget-fees h3 {
    font-size: 12.5px;
  }
  .allocation-footnote {
    font-size: 11px;
  }
  .total-row .total-group {
    gap: 10px;
  }
  .total-row {
    font-size: 11.5px;
  }
  .schedule-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .schedule-heading h2 {
    font-size: 14.5px;
  }
  .schedule-heading p {
    font-size: 11px;
  }
  .people-summary {
    grid-template-columns: 1fr;
  }
  .person-summary-sub {
    margin: 5px 0;
  }
  .page-footer {
    font-size: 10.5px;
  }
  .drawer-header,
  .drawer-body,
  .drawer-actions {
    padding-left: 21px;
    padding-right: 21px;
  }
  .drawer {
    width: 100%;
  }
  .drawer-header h2 {
    font-size: 17px;
  }
  .comparison {
    min-width: 650px;
  }
  .comparison th,
  .comparison td {
    padding: 14px;
  }
  .comparison th:first-child,
  .comparison td:first-child {
    width: 140px;
  }
  .comparison .profit-line td {
    font-size: 21px;
  }
  .section-actions .button {
    font-size: 11.5px;
  }
}
.metric-value.compact {
  font-size: 21px;
}
.quote-amount.compact,
.quote-amount.compact input {
  font-size: 21px;
}
.quote-amount.compact > span {
  font-size: 20px;
}
.gantt-label {
  position: sticky;
  left: 0;
  z-index: 2;
}
.comparison th:first-child,
.comparison td:first-child {
  position: sticky;
  left: 0;
  background: white;
  z-index: 1;
}
.version-title {
  overflow-wrap: anywhere;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

.save-status {
  font-size: 11.5px;
  color: #6c786f;
  white-space: nowrap;
}
.save-status.error {
  color: var(--red);
}
.calendar-mode-toggle {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 16px 0 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfa;
  cursor: pointer;
}
.calendar-mode-toggle input {
  margin-top: 3px;
  accent-color: var(--green);
}
.calendar-mode-toggle b {
  display: block;
  font-weight: 550;
  font-size: 13.5px;
}
.calendar-mode-toggle small {
  display: block;
  color: #6b766f;
  font-size: 12.5px;
  line-height: 1.7;
  margin-top: 3px;
}
@media (max-width: 540px) {
  .save-status:not(.error) {
    display: none;
  }
}

#pricing-content {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.pricing-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.pricing-toolbar h2 {
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pricing-toolbar .gantt-title > span {
  font-size: 12.5px;
  color: #6c786f;
}
.pricing-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.pricing-status {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  padding: 8px 12px;
  border-radius: 5px;
  margin-bottom: 10px;
}
.pricing-status.warn {
  display: flex;
  background: #fbf6ea;
  color: #94773c;
}
.pricing-status.error {
  display: flex;
  background: #fbefee;
  color: var(--red);
}
.pricing-status svg {
  width: 14px;
  height: 14px;
}
.pricing-scroll {
  overflow: auto;
  border: 1px solid #dee6df;
  border-radius: 5px;
}
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
}
.pricing-table th,
.pricing-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  font-weight: 400;
  white-space: nowrap;
}
.pricing-table thead th {
  font-size: 11.5px;
  color: #68776c;
  background: #fbfcfa;
}
.pricing-table th:first-child {
  text-align: left;
}
.pricing-table tbody th {
  color: var(--ink);
}
.pricing-table tfoot th,
.pricing-table tfoot td {
  font-weight: 600;
  border-bottom: 0;
  background: #fbfcfa;
}
.pricing-table .negative {
  color: var(--red);
}
.pricing-table .warn {
  color: var(--amber);
}
.pricing-stage {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.pricing-field {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #6b776e;
  font-size: 11.5px;
}
.pricing-input {
  width: 70px;
  border: 1px solid #dfe6e0;
  border-radius: 3px;
  padding: 3px 6px;
  text-align: right;
  font-size: 13.5px;
  color: var(--ink);
  appearance: textfield;
  font-variant-numeric: tabular-nums;
  background: white;
}
.pricing-input.amount {
  width: 96px;
}
.pricing-input::-webkit-inner-spin-button {
  appearance: none;
}
.pricing-input.invalid {
  border-color: var(--red);
}
.pricing-internal-only th,
.pricing-internal-only td {
  color: #6c786f;
}
.quote-amount input[readonly] {
  cursor: default;
}
@media (max-width: 650px) {
  .pricing-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .pricing-table {
    font-size: 12.5px;
  }
}

.pricing-table .positive {
  color: #3b8068;
}
.target-reverse {
  margin-top: 18px;
  border: 1px solid #dee6df;
  border-radius: 6px;
  padding: 14px 16px;
  background: #fbfcfa;
}
.target-reverse-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.target-reverse-head h3 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
}
.target-reverse-head h3 svg {
  width: 15px;
  height: 15px;
  color: var(--green);
}
.target-reverse-head label {
  font-size: 12.5px;
  color: #68786d;
  display: flex;
  align-items: center;
  gap: 5px;
}
.target-reverse-head input {
  width: 52px;
  border: 1px solid #dfe6e0;
  border-radius: 3px;
  padding: 3px 6px;
  text-align: right;
  font-size: 13.5px;
  appearance: textfield;
}
.reverse-verdict {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13.5px;
  padding: 9px 11px;
  border-radius: 5px;
  line-height: 1.7;
}
.reverse-verdict svg {
  width: 15px;
  height: 15px;
  margin-top: 3px;
}
.reverse-verdict.negative {
  background: #fbefee;
  color: #8f3f3b;
}
.reverse-verdict.positive {
  background: var(--green-wash);
  color: #2c5e4d;
}
.reverse-verdict b {
  font-weight: 650;
}
.reverse-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 4px;
}
.reverse-steps div {
  min-width: 0;
}
.reverse-steps dt {
  font-size: 11.5px;
  color: #6c786f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reverse-steps dd {
  margin: 2px 0 0;
  font-size: 14.5px;
  font-variant-numeric: tabular-nums;
}
.reverse-label {
  display: block;
  font-size: 12.5px;
  color: #526b5c;
  font-weight: 550;
  margin-top: 10px;
}
.reverse-suggestions ul {
  list-style: none;
  padding: 0;
  margin: 6px 0;
}
.reverse-suggestions li {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 13.5px;
  padding: 5px 0;
  border-bottom: 1px dashed var(--line);
}
.reverse-suggestions li b {
  font-weight: 550;
}
.reverse-suggestions li small {
  color: #6e7770;
  font-size: 11.5px;
}
.reverse-suggestions li span {
  margin-left: auto;
  color: #3b8068;
  font-variant-numeric: tabular-nums;
}
.reverse-note {
  font-size: 11.5px;
  color: #6c786f;
  margin: 6px 0 0;
}
@media (max-width: 760px) {
  .reverse-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.modal.wide {
  width: 860px;
}
#asset-bar {
  margin-bottom: 18px;
}
.asset-bar {
  display: flex;
  align-items: stretch;
  gap: 8px;
  flex-wrap: wrap;
}
.asset-tab {
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
  border: 1px solid var(--line);
  background: #fbfcfa;
  border-radius: 6px;
  padding: 7px 12px 7px 8px;
  min-width: 0;
  max-width: 280px;
}
.asset-tab.active {
  border-color: var(--green);
  background: var(--green-wash);
  box-shadow: inset 0 0 0 1px var(--green);
}
.asset-tab img,
.asset-tab-icon {
  width: 34px;
  height: 34px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: #eef2ef;
  color: #67776c;
}
.asset-tab b {
  display: block;
  font-weight: 600;
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.asset-tab small {
  display: block;
  font-size: 11.5px;
  color: #6c786f;
  white-space: nowrap;
}
.asset-bar > .button,
.asset-bar > .icon-button {
  align-self: center;
}
.pricing-asset th,
.pricing-asset td {
  background: #f6f8f5;
  font-weight: 550;
}
.pricing-asset.active th,
.pricing-asset.active td {
  background: var(--green-wash);
}
.pricing-asset-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pricing-asset-name svg {
  width: 14px;
  height: 14px;
  color: #5f7969;
}
.pricing-asset-name small {
  font-weight: 400;
  color: #6c786f;
  font-size: 11.5px;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0 5px;
}
.pricing-asset-price {
  text-align: left !important;
}
.pricing-asset-price .button {
  margin-left: 8px;
}
.asset-image-field {
  display: flex;
  gap: 12px;
  align-items: center;
}
.asset-image-preview {
  width: 72px;
  height: 72px;
  border: 1px dashed #cfd8d1;
  border-radius: 6px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #6b776e;
  flex-shrink: 0;
}
.asset-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.asset-image-field input[type='file'] {
  font-size: 12.5px;
  max-width: 200px;
}
.button.danger-text {
  color: var(--red);
  margin-right: auto;
}

.view-tabs .nav-count {
  margin-left: 2px;
  font-size: 11.5px;
  background: #eef2ef;
  border-radius: 8px;
  padding: 0 6px;
  color: #647a6d;
}
.project-mini {
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  width: 100%;
  border-radius: 5px;
  padding-top: 6px;
  padding-bottom: 6px;
}
.project-mini:hover {
  background: #eef3ef;
}
.project-mini span:not(.project-dot) {
  display: block;
  font-weight: 550;
  color: var(--ink);
  line-height: 1.4;
}
.sidebar-project {
  margin-top: 0;
  margin-bottom: 6px;
}
.project-image {
  display: grid;
  place-items: center;
  color: #67776c;
  overflow: hidden;
}
.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-image svg {
  width: 26px;
  height: 26px;
}
#global-undo svg {
  width: 14px;
  height: 14px;
}
.form-more {
  margin: 4px 0 10px;
  font-size: 13.5px;
  color: #68786d;
}
.form-more summary {
  cursor: pointer;
  margin-bottom: 10px;
}
@media (max-width: 540px) {
  .view-tabs {
    overflow-x: auto;
    justify-content: flex-start;
    gap: 18px;
  }
  #global-undo {
    padding: 5px 8px;
  }
}
#asset-bar + #pricing-content,
#asset-bar + #budget-content {
  margin-top: 6px;
  padding-top: 0;
  border-top: 0;
}
.roster-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 14px 0 8px;
}
#roster-form h3 {
  font-size: 14.5px;
  margin: 0;
  font-weight: 600;
}
#roster-form h3 small {
  font-weight: 400;
  color: #6c786f;
  font-size: 12.5px;
  margin-left: 6px;
}
.roster-table {
  border: 1px solid var(--line);
  border-radius: 6px;
  max-height: 42vh;
  overflow: auto;
}
.roster-row {
  display: grid;
  grid-template-columns: 30px minmax(90px, 1.2fr) 90px minmax(90px, 1.4fr) 50px 40px 32px;
  gap: 8px;
  align-items: center;
  padding: 7px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.roster-row:last-child {
  border-bottom: 0;
}
.roster-row input:not([type='checkbox']),
.roster-row select {
  border: 1px solid #dfe6e0;
  border-radius: 3px;
  padding: 4px 6px;
  font-size: 13.5px;
  min-width: 0;
  background: white;
}
.roster-row input[type='checkbox'] {
  accent-color: var(--green);
  justify-self: center;
}
.roster-row.inactive {
  background: #fafbfa;
}
.roster-row.inactive input:not([type='checkbox']),
.roster-row.inactive select {
  color: #6b766e;
}
.roster-labels {
  font-size: 11.5px;
  color: #6c786f;
  background: #fbfcfa;
  position: sticky;
  top: 0;
  z-index: 1;
}
.roster-note {
  font-size: 12.5px !important;
  margin: 8px 0 18px !important;
}
.rates-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0 10px;
  margin-top: 10px;
}
.person-pool-heading .button {
  padding: 2px 0;
  font-size: 11.5px;
  margin-top: 4px;
}
@media (max-width: 760px) {
  .rates-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .roster-row {
    grid-template-columns: 26px 1fr 72px 36px 30px;
  }
  .roster-row > :nth-child(4),
  .roster-row > :nth-child(5) {
    display: none;
  }
}

/* 阶段节点面板是表单：删除和新增先进草稿，这里提示还没应用。 */
.milestone-pending:empty {
  display: none;
}
.milestone-pending {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 12px 0 0;
  padding: 8px 11px;
  border: 1px solid #e6d7b0;
  border-radius: 6px;
  background: #fbf6ea;
  color: #7c6524;
  font-size: 13px;
  line-height: 1.7;
}
.milestone-pending i,
.milestone-pending svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.milestone-with-actions.pending-remove {
  background: #fbefee;
  border-radius: 6px;
  margin: 0 -8px;
  padding: 6px 8px 0;
}
.node-remove-confirm {
  grid-column: 1/-1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #8f3f3b;
  padding: 0 0 10px;
}
.node-remove-confirm select {
  border: 1px solid #e3c9c7;
  border-radius: 4px;
  padding: 4px 6px;
  font-size: 13.5px;
  background: white;
}
.button.danger-fill {
  background: var(--red);
  border-color: var(--red);
  color: white;
}
.node-row-actions .icon-button:disabled {
  opacity: 0.35;
}

/* ===== 视觉优化（2026-09-17）：浅底卡片分区、字号放大、层级与对比度 ===== */
:root {
  --ink: #1f2724;
  --muted: #5f6b64;
  --line: #e3e8e4;
  --canvas: #f4f6f4;
  --card: #ffffff;
  --radius: 10px;
  --shadow: 0 1px 2px #1c2e2408, 0 4px 16px #1c2e2406;
}
body {
  background: var(--canvas);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.topbar {
  background: #ffffffe6;
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 15;
}
.sidebar {
  background: #fbfcfb;
}
main {
  padding-top: 26px;
}
.project-heading {
  margin-bottom: 20px;
}
.project-heading h1 {
  font-size: 28px;
  letter-spacing: 0.01em;
}
.metrics {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 0;
  margin-bottom: 18px;
}
.metric:first-child {
  border-left: 0;
}
.metric-label {
  font-size: 13px;
  color: var(--muted);
}
.metric-sub {
  font-size: 12.5px;
}
.view-toolbar {
  margin-bottom: 16px;
}
.view-tabs button {
  font-size: 14.5px;
  padding: 12px 2px 13px;
}
.view-tabs svg {
  width: 17px;
  height: 17px;
}
#asset-bar {
  margin-bottom: 14px;
}
#external-schedule-content,
#schedule-content,
#pricing-content,
#budget-content,
.compare-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px;
}
#external-schedule-content:empty,
#pricing-content:empty,
#budget-content:empty {
  display: none;
}
#schedule-content {
  margin-top: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
#asset-bar + #pricing-content,
#asset-bar + #budget-content {
  margin-top: 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.gantt-title h2,
.pricing-toolbar h2,
.section-title h2 {
  font-size: 19px;
}
.gantt-title > span,
.pricing-toolbar .gantt-title > span {
  font-size: 13px;
  color: var(--muted);
}
.status-badge {
  font-size: 12px;
  padding: 2px 8px;
}
.button {
  font-size: 13.5px;
}
.button.small {
  font-size: 13px;
  min-height: 33px;
  padding: 6px 11px;
}
.asset-tab {
  padding: 9px 14px 9px 10px;
}
.asset-tab b {
  font-size: 14px;
}
.asset-tab small {
  font-size: 12px;
}
.pricing-table {
  font-size: 13.5px;
}
.pricing-table thead th {
  font-size: 12.5px;
  color: var(--muted);
}
.pricing-input {
  font-size: 13.5px;
  padding: 5px 8px;
}
.comparison {
  font-size: 14px;
}
.page-footer {
  border-top: 0;
  color: var(--muted);
  font-size: 12.5px;
}
dialog.modal,
dialog.drawer {
  border-radius: 12px;
}
.field > span {
  font-size: 13px;
}
.field input,
.field select {
  font-size: 14px;
}
@media (max-width: 760px) {
  #external-schedule-content,
  #schedule-content,
  #pricing-content,
  #budget-content,
  .compare-card {
    padding: 14px 12px;
    border-radius: 8px;
  }
  .metrics {
    padding: 12px 0;
  }
  .project-heading h1 {
    font-size: 22px;
  }
}
.metric:first-child {
  padding-left: 24px;
}
.brand-sub {
  font-size: 9.5px;
  white-space: nowrap;
  letter-spacing: 0.04em;
}
.project-mini span:not(.project-dot) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.project-mini > div {
  min-width: 0;
}
.sidebar-bottom small {
  line-height: 1.5;
}
@media (max-width: 760px) {
  .metrics {
    padding: 0;
  }
  .metric,
  .metric:first-child {
    padding: 14px;
  }
}
.metric:last-child {
  padding-right: 24px;
}
@media (max-width: 760px) {
  .metric,
  .metric:first-child,
  .metric:last-child,
  .metric:nth-child(even) {
    padding: 14px 14px !important;
  }
  .metric:nth-child(-n + 2) {
    border-top: 0;
  }
}

/* 资产页签：直接删除 + 确认弹窗 */
.asset-tab-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
}
.asset-tab-wrap .asset-tab {
  padding-right: 30px;
}
.asset-tab-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #8b978f;
  opacity: 0;
  transition:
    opacity 0.12s,
    background 0.12s,
    color 0.12s;
}
.asset-tab-remove i {
  width: 13px;
  height: 13px;
}
.asset-tab-wrap:hover .asset-tab-remove,
.asset-tab-wrap.active .asset-tab-remove,
.asset-tab-remove:focus-visible {
  opacity: 1;
}
.asset-tab-remove:hover {
  background: #f7e3e0;
  color: var(--red);
}
.confirm-facts {
  display: grid;
  gap: 8px;
  margin: 12px 0 4px;
}
.confirm-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  background: #f6f8f5;
  border-radius: 6px;
}
.confirm-facts dt {
  color: #6b7a70;
  font-size: 12.5px;
}
.confirm-facts dd {
  margin: 0;
  font-weight: 600;
  font-size: 13px;
}
.modal-note {
  color: #6b7a70;
  font-size: 12.5px;
  margin: 10px 0 0;
}

/* 隐藏的字段行：.field 是 flex，要压过 [hidden] 的默认 display:none。 */
.field[hidden] {
  display: none;
}

/* 预计实际总成本卡片里的系数输入框 */
.cost-factor {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #6a756e;
}
.cost-factor input {
  width: 52px;
  padding: 1px 4px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font: inherit;
  text-align: right;
  background: #fff;
}

/* 指标卡从四张变五张，窄一点的桌面宽度下换成三列，避免挤成一行读不清 */
@media (min-width: 761px) and (max-width: 1280px) {
  .metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 18px;
  }
  .metric:nth-child(3n + 1) {
    border-left: 0;
    padding-left: 24px;
  }
}
