.project_nav_item.is-complete:not(.is-active) .project_nav_number {
  background: #dff2e7;
  color: #28785a;
}

.project_nav_item.is-required {
  border-color: #d64b4b;
  background: #fff0f0;
}
.project_nav_item.is-required .project_nav_number {
  background: #c93636;
  color: #fff;
}
.project_nav_item.is-required small {
  color: #b52d2d;
  font-weight: 900;
}
html[data-theme="night"] .project_nav_item.is-required {
  border-color: #c95a5a;
  background: #351d22;
}

.egress_budget_warning {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid #d64b4b;
  border-radius: 12px;
  background: #fff0f0;
  color: #842828;
}
.egress_budget_warning strong { display: block; margin-bottom: 5px; }
.egress_budget_warning p { margin: 0; line-height: 1.5; }
html[data-theme="night"] .egress_budget_warning {
  border-color: #c95a5a;
  background: #351d22;
  color: #ffb6b6;
}

html[data-theme="night"] .project_nav_item.is-complete:not(.is-active) .project_nav_number {
  background: #17352b;
  color: #96dfbd;
}

.project_nav_utility_first {
  margin-top: 15px;
  border-top-color: var(--line, #dfe5ed);
  border-radius: 10px 10px 0 0;
  padding-top: 14px;
}

.project_nav_utility:not(.project_nav_utility_first) {
  margin-top: -4px;
  border-radius: 0;
}

.project_nav_utility:last-child {
  border-radius: 0 0 10px 10px;
}

.project_nav_icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.project_nav_item.is-active .project_nav_icon {
  background: #e59a43;
  color: #fff;
}

.is-project-flow.has-active-project > .workspace_intro {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
  padding-bottom: 0;
  border-bottom: 0;
}

.is-project-flow > .workspace_intro > .eyebrow {
  display: none;
}

.is-project-flow.has-active-project > .workspace_intro h2 {
  margin: 0;
}

.is-project-flow.has-active-project > .workspace_intro p {
  flex: 0 0 auto;
  margin: 0;
  color: var(--muted, #647083);
  font-weight: 750;
}

.project_section_heading {
  margin: 0 0 6px;
  color: var(--ink, #172033);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: -.025em;
  text-transform: none;
}

.project_step_card .project_section_heading {
  font-size: 1.15rem;
}

.project_section_legacy_title {
  display: none !important;
}

html[data-theme="night"] .project_section_heading {
  color: #eef4ff;
}

@media(max-width:850px) {
  .is-project-flow.has-active-project > .workspace_intro {
    align-items: center;
    margin: 12px 0;
    padding-bottom: 0;
  }

  .is-project-flow.has-active-project > .workspace_intro h2 {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

.dns_mode_card_primary {
  border-color: #d98735;
  background: linear-gradient(135deg, #e7a04c, #d77d29);
  color: #fff;
  box-shadow: 0 9px 22px rgba(196, 111, 29, .2);
}

.dns_mode_card_primary small {
  color: rgba(255, 255, 255, .86);
}

.dns_mode_card_primary:hover,
.dns_mode_card_primary.is-selected {
  border-color: #c66d1e;
  box-shadow: 0 0 0 3px rgba(229, 154, 67, .2), 0 11px 25px rgba(196, 111, 29, .24);
}

.dns_mode_card_secondary {
  background: transparent;
}

html[data-theme="night"] .dns_mode_card_primary {
  border-color: #d98735;
  background: linear-gradient(135deg, #c8792f, #a95d20);
  color: #fff;
}

html[data-theme="night"] .dns_mode_card_primary small {
  color: rgba(255, 255, 255, .82);
}

.dns_last_checked {
  margin-top: 6px !important;
  color: var(--muted, #647083) !important;
  font-size: .69rem !important;
  font-weight: 650;
}

.dns_recheck_button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 122px;
  justify-content: center;
}

.dns_recheck_button:disabled {
  cursor: wait;
  opacity: .62;
  filter: grayscale(.25);
}

.dns_button_spinner {
  display: none;
  width: 13px;
  height: 13px;
  box-sizing: border-box;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
}

.dns_recheck_button.is-checking .dns_button_spinner {
  display: inline-block;
  animation: dnsButtonSpin .7s linear infinite;
}

@keyframes dnsButtonSpin {
  to { transform: rotate(360deg); }
}

.manage_project_panel > p {
  max-width: 820px;
  color: var(--muted, #647083);
  line-height: 1.65;
}

.manage_name_form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(240px, 1.2fr) auto;
  align-items: end;
  gap: 14px;
  margin: 22px 0 30px;
  padding: 18px;
  border: 1px solid var(--line, #dfe5ed);
  border-radius: 14px;
  background: var(--panel, #fff);
}

.manage_name_form label,
.manage_name_form small { display: block; }
.manage_name_form label { margin-bottom: 5px; font-size: .82rem; font-weight: 850; }
.manage_name_form small { color: var(--muted, #647083); font-size: .72rem; line-height: 1.45; }
.manage_name_form input { box-sizing: border-box; width: 100%; padding: 11px 13px; border: 1px solid var(--line, #dfe5ed); border-radius: 9px; background: var(--soft, #f5f7fa); color: var(--ink, #172033); font: inherit; }
.manage_name_form .workspace_message { grid-column: 1 / -1; min-height: 0; }
.manage_removal_heading { margin: 0 0 5px; font-size: 1.05rem; }
html[data-theme="night"] .manage_name_form { background: #111a29; border-color: #34445d; }
html[data-theme="night"] .manage_name_form input { background: #182235; border-color: #34445d; color: #eef4ff; }
@media(max-width:800px) { .manage_name_form { grid-template-columns: 1fr; } .manage_name_form .button { width: 100%; justify-content: center; } }

.execution_payer_box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 22px 0;
  padding: 18px;
  border: 1px solid var(--line, #dfe5ed);
  border-radius: 15px;
  background: var(--panel, #fff);
}

.execution_payer_box[hidden] { display: none; }
.execution_payer_box legend { padding: 0 7px; font-weight: 850; }
.execution_payer_box label { display: flex; align-items: flex-start; gap: 10px; padding: 14px; border: 1px solid var(--line, #dfe5ed); border-radius: 11px; cursor: pointer; }
.execution_payer_box input { margin-top: 3px; accent-color: #2d7a5b; }
.execution_payer_box label span { display: grid; gap: 4px; }
.execution_payer_box label small { color: var(--muted, #647083); line-height: 1.4; }
.execution_payer_box > p { grid-column: 1 / -1; margin: 2px 0 0; color: var(--muted, #647083); font-size: .8rem; line-height: 1.5; }

.manage_sections {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.manage_inventory_sections { margin-bottom: 30px; }

.manage_section {
  overflow: hidden;
  border: 1px solid var(--line, #dfe5ed);
  border-radius: 15px;
  background: var(--panel, #fff);
}

.manage_section summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
  font-weight: 800;
}

.manage_section summary::-webkit-details-marker { display: none; }
.manage_section summary::after { content: "›"; color: var(--muted, #647083); font-size: 1.45rem; transition: transform .18s ease; }
.manage_section[open] summary::after { transform: rotate(90deg); }
.manage_section summary span { flex: 1; }
.manage_section summary small { color: var(--muted, #647083); font-size: .72rem; font-weight: 700; }

.manage_section summary .manage_rent_heading {
  display: grid;
  flex: 1;
  gap: 9px;
  min-width: 0;
}

.manage_rent_totals {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.manage_section summary .manage_rent_total {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid #b9dcca;
  border-radius: 999px;
  background: #edf9f3;
  color: #267854;
  font-size: .68rem;
  font-weight: 800;
  line-height: 1.2;
}

.manage_section_body {
  padding: 0 20px 20px;
  border-top: 1px solid var(--line, #dfe5ed);
}

.manage_section_body > p {
  margin: 18px 0;
  color: var(--muted, #647083);
  font-size: .84rem;
  line-height: 1.6;
}

.manage_blockers {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff3ed;
  color: #9b3f30;
  font-size: .78rem;
  line-height: 1.5;
}

.manage_blockers:empty { display: none; }
.manage_section_body .button { justify-content: center; }

.manage_identity_list { display: grid; gap: 9px; margin-top: 16px; }
.manage_identity_row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 14px; border: 1px solid var(--line, #dfe5ed); border-radius: 10px; background: var(--soft, #f5f7fa); }
.manage_identity_row b,.manage_identity_row small { display: block; }
.manage_identity_row small { margin-top: 3px; color: var(--muted, #647083); font-size: .7rem; }
.manage_identity_actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.manage_identity_empty { padding: 14px; border-radius: 10px; background: var(--soft, #f5f7fa); color: var(--muted, #647083); font-weight: 800; }
.manage_action_note { margin: 13px 0 0!important; padding: 10px 12px; border-left: 3px solid #e59a43; border-radius: 7px; background: var(--soft, #f5f7fa); font-size: .76rem!important; }
.manage_delete_all_section { border-color: #c95645; box-shadow: 0 0 0 2px rgba(185,71,54,.08); }
.manage_delete_all_section summary { color: #a43d2e; }
.manage_delete_all_button { min-width: 170px; background: #b94736!important; color: #fff!important; font-weight: 900; }
.manage_delete_all_button:hover { background: #963628!important; color: #fff!important; }

.manage_rent_items {
  color: var(--muted, #647083);
  font-size: .82rem;
}

.manage_rent_table {
  display: grid;
  grid-template-columns: minmax(220px, 1.7fr) minmax(120px, .8fr) minmax(90px, .55fr) minmax(90px, .55fr);
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line, #dfe5ed);
  border-radius: 11px;
  background: var(--panel, #fff);
}

.manage_rent_table > * {
  box-sizing: border-box;
  min-width: 0;
  padding: 12px 13px;
  border-bottom: 1px solid var(--line, #dfe5ed);
  color: var(--ink, #172033);
}

.manage_rent_column_heading {
  background: var(--soft, #f5f7fa);
  color: var(--muted, #647083);
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.manage_rent_wallet { overflow-wrap: anywhere; }
.manage_rent_size { font-weight: 850; }
.manage_rent_metadata {
  grid-column: 1 / -1;
  padding: 7px 13px 11px;
  color: var(--muted, #647083);
  font-size: .68rem;
  overflow-wrap: anywhere;
}
.manage_rent_table > :last-child { border-bottom: 0; }

.button_danger,
.button_danger_outline {
  border: 1px solid #bd4e3c;
  color: #a43d2e;
}

.button_danger {
  background: #b94736;
  color: #fff;
}

.button_danger_outline {
  background: transparent;
}

.button_danger:hover,
.button_danger_outline:hover {
  background: #a63c2d;
  color: #fff;
}

.button_danger:disabled,
.button_danger_outline:disabled {
  cursor: not-allowed;
  opacity: .42;
}

.manage_confirmation {
  display: grid;
  gap: 7px;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid #e5b5aa;
  border-radius: 14px;
  background: #fff7f4;
}

.manage_confirmation label {
  font-size: .82rem;
}

.manage_confirmation input {
  max-width: 430px;
  padding: 11px 13px;
  border: 1px solid #d9a094;
  border-radius: 9px;
  background: var(--panel, #fff);
  color: var(--ink, #172033);
  font: inherit;
}

.manage_confirmation small {
  color: var(--muted, #647083);
}

.manage_progress {
  margin-top: 20px;
}

.manage_progress > div {
  height: 9px;
  overflow: hidden;
  border-radius: 99px;
  background: #e6eaf0;
}

.manage_progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #c5523e;
  transition: width .25s ease;
}

.manage_progress p {
  margin: 8px 0 0;
  color: var(--muted, #647083);
  font-size: .8rem;
}

.manage_result {
  max-height: 320px;
  margin-top: 16px;
  padding: 15px;
  overflow: auto;
  border-radius: 12px;
  background: #111827;
  color: #dce7f6;
  font-size: .72rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

html[data-theme="night"] .manage_section,
html[data-theme="night"] .execution_payer_box,
html[data-theme="night"] .manage_confirmation {
  border-color: #593c3a;
  background: #211a1c;
}

html[data-theme="night"] .manage_section summary .manage_rent_total {
  border-color: #2f795b;
  background: #17352b;
  color: #96dfbd;
}

html[data-theme="night"] .manage_rent_table {
  border-color: #4d3b3d;
  background: #181418;
}

html[data-theme="night"] .manage_rent_table > * { border-color: #4d3b3d; color: #eef4ff; }
html[data-theme="night"] .manage_rent_column_heading { background: #211a1c; color: #b7afbd; }
html[data-theme="night"] .manage_rent_metadata { color: #b7afbd; }
html[data-theme="night"] .manage_identity_row,html[data-theme="night"] .manage_identity_empty,html[data-theme="night"] .manage_action_note { border-color: #4d3b3d; background: #181418; }
html[data-theme="night"] .manage_delete_all_section { border-color: #d66a59; }
html[data-theme="night"] .manage_delete_all_section summary { color: #f0a092; }

@media (max-width: 700px) {
  .execution_payer_box { grid-template-columns: 1fr; }
  .execution_payer_box > p { grid-column: auto; }
  .manage_rent_section summary { align-items: flex-start; flex-wrap: wrap; }
  .manage_rent_section summary > small { width: 100%; }
  .manage_rent_table { grid-template-columns: 1fr 1fr 1fr; }
  .manage_rent_column_heading { display: none; }
  .manage_rent_wallet { grid-column: 1 / -1; padding-bottom: 5px; border-bottom: 0; }
  .manage_rent_metadata { grid-column: 1 / -1; }
  .manage_identity_row { align-items: stretch; flex-direction: column; }
  .manage_identity_actions { align-items: stretch; flex-direction: column; }
  .manage_identity_row .button { width: 100%; }
}

html[data-theme="night"] .manage_blockers {
  background: #3b2522;
  color: #efb09f;
}

.storage_save_trace { margin-top: 1rem; padding: .85rem 1rem; border: 1px solid currentColor; border-radius: 10px; }
.storage_save_trace ol { margin: .5rem 0 0; padding-left: 1.4rem; }
.storage_save_trace li { margin: .3rem 0; overflow-wrap: anywhere; font: .85rem/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; }
.storage_epoch_warning { margin: 1rem 0 .75rem; padding: .8rem 1rem; border: 1px solid #b7832b; border-radius: 10px; background: #fff5dd; color: #5b410d; line-height: 1.5; }
.storage_epoch_warning b { display: block; margin-bottom: .2rem; }
html[data-theme="night"] .storage_epoch_warning { background: #3b3020; color: #f5d796; border-color: #ba914b; }

@media (max-width: 1120px) and (min-width: 621px) {
  .cluster_panel .cluster_card {
    grid-template-columns: minmax(145px, 1fr) minmax(245px, 1.35fr) auto;
  }

  .cluster_panel .cluster_flags {
    grid-column: 1 / 3;
  }

  .cluster_panel .cluster_choose {
    grid-column: 3;
    grid-row: 1 / 3;
  }
}
