/* BoostPlus cabinet compact layer — isolated from the public monitoring cascade. */
.bp-cabinet,
.bp-cabinet * {
  box-sizing: border-box;
}

main.page-shell:has(> .bp-cabinet) {
  width: min(1720px, calc(100% - 32px));
}

.bp-cabinet {
  width: 100%;
  min-width: 0;
  margin: 24px 0 0;
  color: var(--text);
}

.bp-cabinet a {
  text-underline-offset: 3px;
}

.bp-cabinet__layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.bp-cabinet__sidebar {
  position: sticky;
  top: 86px;
  min-width: 0;
  display: grid;
  align-content: start;
  border: 1px solid var(--line);
  background: var(--surface);
}

.bp-cabinet__identity {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 20px 18px;
  border-bottom: 1px solid var(--line);
}

.bp-cabinet__identity > span,
.bp-cabinet__identity > small {
  color: var(--muted);
  font-size: 11px;
}

.bp-cabinet__identity > span {
  font-family: var(--mono-font);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.bp-cabinet__identity > strong {
  overflow: hidden;
  font-family: var(--display-font);
  font-size: 24px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bp-cabinet-nav-shell {
  min-width: 0;
}

.bp-cabinet-nav-toggle {
  display: none;
}

.bp-cabinet-nav-shell > .bp-cabinet-nav {
  display: grid !important;
}

.bp-cabinet-nav a {
  min-width: 0;
  min-height: 50px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  text-decoration: none;
}

.bp-cabinet-nav a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.bp-cabinet-nav a.is-active {
  box-shadow: inset 3px 0 var(--accent);
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 7%, var(--surface));
}

.bp-cabinet-nav a > span {
  color: var(--accent);
  font-family: var(--mono-font);
  font-size: 9px;
  font-weight: 850;
}

.bp-cabinet-nav a > strong {
  min-width: 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.bp-cabinet-nav__count {
  min-width: 20px;
  padding: 3px 5px;
  color: #fff;
  background: var(--accent);
  font-family: var(--mono-font);
  font-size: 9px;
  text-align: center;
}

.bp-cabinet-help {
  display: grid;
  gap: 4px;
  margin: 16px;
  padding: 13px;
  border-left: 3px solid var(--cyan);
  color: var(--text);
  background: var(--surface-soft);
  text-decoration: none;
}

.bp-cabinet-help > span {
  color: var(--cyan);
  font-family: var(--mono-font);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.bp-cabinet-help > strong {
  font-size: 12px;
  line-height: 1.45;
}

.bp-cabinet-logout {
  padding: 0 16px 16px;
}

.bp-cabinet-logout .button {
  width: 100%;
}

.bp-cabinet__content,
.bp-cabinet-panel {
  min-width: 0;
}

.bp-cabinet-panel {
  display: grid;
  gap: 24px;
  scroll-margin-top: 92px;
}

.bp-cabinet-panel[hidden] {
  display: none !important;
}

.bp-cabinet-heading {
  min-width: 0;
  min-height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 26px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.bp-cabinet-heading > div {
  min-width: 0;
}

.bp-cabinet-heading h1 {
  margin: 4px 0 5px;
  font-family: var(--display-font);
  font-size: clamp(34px, 2.8vw, 48px);
  line-height: .95;
  letter-spacing: -.025em;
}

.bp-cabinet-heading p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.bp-cabinet-heading__state,
.bp-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.bp-state {
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.bp-state--online { color: var(--green); border-color: color-mix(in srgb, var(--green) 48%, var(--line)); }
.bp-state--offline { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 48%, var(--line)); }
.bp-state--moderation { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 48%, var(--line)); }

.bp-cabinet-notice {
  margin: 0;
}

.bp-overview-summary {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: var(--surface);
}

.bp-summary-card {
  min-width: 0;
  min-height: 184px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  align-content: start;
  gap: 8px;
  padding: 20px;
  border-right: 1px solid var(--line);
}

.bp-summary-card:last-child { border-right: 0; }
.bp-summary-card--balance { box-shadow: inset 0 3px var(--gold); }
.bp-summary-card > span { color: var(--muted); font-size: 11px; font-weight: 750; }
.bp-summary-card > strong { font-family: var(--display-font); font-size: clamp(31px, 3vw, 48px); line-height: 1; }
.bp-summary-card > strong small { color: var(--muted); font-family: var(--body-font); font-size: 13px; font-weight: 650; }
.bp-summary-card > small { color: var(--muted); line-height: 1.45; }
.bp-summary-card > a:not(.button) { width: max-content; max-width: 100%; color: var(--cyan); font-size: 12px; font-weight: 750; }
.bp-summary-card .button { width: max-content; }

.bp-next-actions {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: var(--surface);
}

.bp-next-actions > span {
  grid-column: 1 / -1;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--cyan);
  font-family: var(--mono-font);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.bp-next-actions > a {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 20px;
  padding: 18px;
  border-right: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
}

.bp-next-actions > a:last-child { border-right: 0; }
.bp-next-actions > a::after { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--accent); content: "→"; font-size: 20px; }
.bp-next-actions > a:hover { background: var(--surface-2); }
.bp-next-actions strong { min-width: 0; font-size: 15px; }
.bp-next-actions small { min-width: 0; color: var(--muted); line-height: 1.45; }

.bp-overview-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: var(--surface);
}

.bp-overview-card {
  min-width: 0;
  min-height: 250px;
  padding: 18px;
  border-right: 1px solid var(--line);
}

.bp-overview-card:last-child { border-right: 0; }
.bp-overview-card > header,
.bp-finance-card > header,
.bp-ledger-card > header,
.bp-active-service-card > header,
.bp-account-card > header {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bp-overview-card > header { margin-bottom: 16px; }
.bp-overview-card h2,
.bp-finance-card h2,
.bp-ledger-card h2,
.bp-account-card h2,
.bp-topup-card h2,
.bp-section-title h2 {
  margin: 0;
  font-family: var(--display-font);
  font-size: 24px;
}

.bp-overview-card > header a { color: var(--cyan); font-size: 11px; font-weight: 750; }
.bp-overview-server { display: grid; gap: 18px; }
.bp-overview-server > div { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; }
.bp-overview-server > div span,
.bp-overview-service-list article > span,
.bp-overview-payment-list article > span { min-width: 0; display: grid; gap: 3px; }
.bp-overview-server strong,
.bp-overview-service-list strong,
.bp-overview-payment-list strong { overflow-wrap: anywhere; }
.bp-overview-server small,
.bp-overview-service-list small,
.bp-overview-payment-list small,
.bp-overview-server p { color: var(--muted); font-size: 11px; }
.bp-overview-server > strong { font-family: var(--display-font); font-size: 42px; }
.bp-overview-server > strong small { display: block; font-family: var(--body-font); font-weight: 650; }
.bp-overview-server p { margin: 0; padding-top: 14px; border-top: 1px solid var(--line); line-height: 1.5; }

.bp-overview-service-list,
.bp-overview-payment-list,
.bp-finance-list,
.bp-purchase-list { min-width: 0; display: grid; }
.bp-overview-service-list article,
.bp-overview-payment-list article,
.bp-finance-list article {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.bp-overview-service-list article > b { color: var(--green); font-size: 11px; }
.bp-overview-payment-list article > b { color: var(--muted); }
.bp-overview-payment-list article > b.is-positive { color: var(--green); }
.bp-overview-payment-list article > b.is-pending { color: var(--gold); }
.bp-overview-payment-list article > small { grid-column: 2; text-align: right; }

.bp-confidence-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: var(--surface-soft);
}
.bp-confidence-strip > span { min-width: 0; display: grid; gap: 5px; padding: 15px 18px; border-right: 1px solid var(--line); }
.bp-confidence-strip > span:last-child { border-right: 0; }
.bp-confidence-strip small { color: var(--muted); }

.bp-empty {
  min-width: 0;
  display: grid;
  justify-items: start;
  gap: 8px;
  padding: 20px;
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  background: var(--surface-soft);
}
.bp-empty p { margin: 0; line-height: 1.5; }
.bp-empty > strong { color: var(--text); }
.bp-empty--compact { padding: 14px; }
.bp-empty--large { min-height: 240px; place-content: center; justify-items: center; text-align: center; }

.bp-server-list { min-width: 0; display: grid; gap: 14px; }
.bp-server-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.bp-server-card.is-archived { opacity: .72; }
.bp-server-card__header {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}
.bp-server-card__identity { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; }
.bp-server-card__identity > span { min-width: 0; display: grid; gap: 3px; }
.bp-server-card__identity strong,
.bp-server-card__identity small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-server-card__identity small { color: var(--muted); font-family: var(--mono-font); font-size: 10px; }
.bp-server-card__metrics {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}
.bp-server-card__metrics > span,
.bp-server-details-grid > span { min-width: 0; display: grid; gap: 7px; padding: 16px 18px; border-right: 1px solid var(--line); }
.bp-server-card__metrics > span:last-child { border-right: 0; }
.bp-server-card__metrics small,
.bp-server-details-grid small { color: var(--muted); font-size: 10px; line-height: 1.35; }
.bp-server-card__metrics strong,
.bp-server-details-grid strong { overflow-wrap: anywhere; font-family: var(--display-font); font-size: 22px; }
.bp-server-card__services { min-width: 0; display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 12px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.bp-server-card__services > span,
.bp-server-card__services small { color: var(--muted); font-size: 11px; }
.bp-server-card__services > div { min-width: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.bp-server-card__details > summary,
.bp-add-server > summary,
.bp-plan-card > summary,
.bp-add-server__advanced > summary {
  cursor: pointer;
  list-style: none;
}
.bp-server-card__details > summary::-webkit-details-marker,
.bp-add-server > summary::-webkit-details-marker,
.bp-plan-card > summary::-webkit-details-marker,
.bp-add-server__advanced > summary::-webkit-details-marker { display: none; }
.bp-server-card__details > summary { min-height: 46px; display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; color: var(--cyan); font-weight: 750; }
.bp-server-card__details > summary::after { content: "+"; font-family: var(--mono-font); }
.bp-server-card__details[open] > summary::after { content: "−"; }
.bp-server-details-grid { min-width: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); background: var(--surface-2); }
.bp-server-details-grid > span:last-child { border-right: 0; }
.bp-server-action { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; border-top: 1px solid color-mix(in srgb, var(--gold) 48%, var(--line)); background: color-mix(in srgb, var(--gold) 7%, var(--surface)); }
.bp-server-action.is-success { border-color: color-mix(in srgb, var(--green) 48%, var(--line)); background: color-mix(in srgb, var(--green) 6%, var(--surface)); }
.bp-server-action.is-error { border-color: color-mix(in srgb, var(--danger) 48%, var(--line)); background: color-mix(in srgb, var(--danger) 6%, var(--surface)); }
.bp-server-action p { margin: 5px 0 0; color: var(--muted); line-height: 1.45; }

.bp-add-server { min-width: 0; border: 1px solid var(--line); background: var(--surface); scroll-margin-top: 92px; }
.bp-add-server > summary { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 18px; }
.bp-add-server > summary > span { font-family: var(--display-font); font-size: 24px; font-weight: 800; }
.bp-add-server > summary > small { color: var(--muted); }
.bp-add-server > summary::after { color: var(--accent); content: "+"; font-family: var(--mono-font); font-size: 20px; }
.bp-add-server[open] > summary::after { content: "−"; }
.bp-add-server__panel { display: grid; gap: 22px; padding: 20px; border-top: 1px solid var(--line); }
.bp-stepper { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; border: 1px solid var(--line); list-style: none; }
.bp-stepper li { min-width: 0; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 4px 10px; padding: 14px; border-right: 1px solid var(--line); }
.bp-stepper li:last-child { border-right: 0; }
.bp-stepper li > span { grid-row: 1 / 3; display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--line); color: var(--muted); font-family: var(--mono-font); font-size: 10px; }
.bp-stepper li.is-active > span { border-color: var(--accent); color: #fff; background: var(--accent); }
.bp-stepper small { color: var(--muted); line-height: 1.35; }
.bp-add-server__form { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bp-add-server__form > label,
.bp-plan-form > label,
.bp-account-card > label { min-width: 0; display: grid; gap: 7px; color: var(--muted); font-size: 11px; }
.bp-add-server__form label > span,
.bp-plan-form label > span,
.bp-account-card label > span { color: var(--text); font-weight: 750; }
.bp-add-server__form label > small { line-height: 1.4; }
.bp-add-server__advanced,
.bp-add-server__actions { grid-column: 1 / -1; }
.bp-add-server__advanced { border: 1px solid var(--line); background: var(--surface-soft); }
.bp-add-server__advanced > summary { padding: 12px 14px; color: var(--muted); font-weight: 750; }
.bp-add-server__advanced > label { display: grid; gap: 7px; padding: 14px; border-top: 1px solid var(--line); }
.bp-add-server__actions { display: flex; align-items: center; gap: 14px; }
.bp-add-server__actions small { color: var(--muted); line-height: 1.45; }

.bp-service-section { min-width: 0; display: grid; gap: 16px; }
.bp-section-title { min-width: 0; display: flex; align-items: end; justify-content: space-between; gap: 20px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.bp-section-title p { margin: 5px 0 0; color: var(--muted); }
.bp-section-title > strong { font-family: var(--display-font); font-size: 34px; }
.bp-active-service-grid { min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bp-active-service-card { min-width: 0; min-height: 190px; display: grid; align-content: start; gap: 8px; padding: 18px; border: 1px solid var(--line); border-top: 3px solid var(--cyan); background: var(--surface); }
.bp-active-service-card h3 { margin: 8px 0 0; font-family: var(--display-font); font-size: 24px; }
.bp-active-service-card p,
.bp-active-service-card small { margin: 0; color: var(--muted); line-height: 1.45; }
.bp-active-service-card > strong { margin-top: auto; padding-top: 14px; font-size: 19px; }
.bp-active-service-card header > b { color: var(--green); font-size: 10px; }
.bp-active-service-card header > b.is-waiting { color: var(--gold); }
.bp-prerequisite,
.bp-plan-reasons { min-width: 0; padding: 14px 16px; border-left: 3px solid var(--gold); background: color-mix(in srgb, var(--gold) 7%, var(--surface-soft)); }
.bp-prerequisite { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 16px; align-items: center; }
.bp-prerequisite p { margin: 0; color: var(--muted); }
.bp-prerequisite .button { grid-column: 2; grid-row: 1 / 3; }
.bp-plan-list { min-width: 0; display: grid; gap: 10px; }
.bp-plan-card { min-width: 0; border: 1px solid var(--line); background: var(--surface); }
.bp-plan-card[open] { border-color: var(--line-strong); }
.bp-plan-card > summary { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px 18px; }
.bp-plan-card > summary::after { grid-column: 3; color: var(--accent); content: "+"; font-family: var(--mono-font); font-size: 18px; }
.bp-plan-card[open] > summary::after { content: "−"; }
.bp-plan-card > summary > span { min-width: 0; display: grid; gap: 4px; }
.bp-plan-card > summary > span:first-child { grid-template-columns: auto minmax(0, 1fr); align-items: center; }
.bp-plan-card > summary > span:first-child > small { grid-column: 2; color: var(--muted); }
.bp-plan-card > summary > span:last-child { text-align: right; }
.bp-plan-card > summary > span:last-child small { color: var(--muted); }
.bp-plan-form { min-width: 0; display: grid; grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr); gap: 16px; padding: 18px; border-top: 1px solid var(--line); background: var(--surface-soft); }
.bp-package-picker { min-width: 0; margin: 0; padding: 0; border: 0; }
.bp-package-picker legend { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.bp-package-picker legend small { color: var(--muted); }
.boost-package-grid { min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.boost-package-option { min-width: 0; position: relative; cursor: pointer; }
.boost-package-option > input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.boost-package-option__content { min-width: 0; min-height: 104px; display: grid; align-content: center; gap: 5px; padding: 12px; border: 1px solid var(--line); background: var(--surface); }
.boost-package-option > input:checked + .boost-package-option__content { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.boost-package-option > input:focus-visible + .boost-package-option__content { outline: 3px solid color-mix(in srgb, var(--cyan) 65%, transparent); outline-offset: 2px; }
.boost-package-option__quantity { color: var(--text); font-weight: 850; }
.boost-package-option__price { color: var(--muted); font-size: 11px; }
.boost-package-option__saving { color: var(--green); font-size: 10px; font-weight: 800; }
.bp-fixed-package { display: grid; gap: 6px; padding: 13px; border: 1px solid var(--line); background: var(--surface); }
.bp-fixed-package > span { color: var(--muted); font-size: 11px; }
.bp-plan-total { grid-column: 1 / -1; min-width: 0; display: flex; justify-content: flex-end; gap: 0; border: 1px solid var(--line); background: var(--surface); }
.bp-plan-total > span { min-width: 150px; display: grid; gap: 4px; padding: 12px 16px; border-left: 1px solid var(--line); }
.bp-plan-total small { color: var(--muted); font-size: 10px; }
.bp-plan-total strong { font-family: var(--display-font); font-size: 20px; }
.service-requirement,
.bp-plan-reasons { grid-column: 1 / -1; margin: 0; color: var(--muted); line-height: 1.45; }
.bp-plan-reasons p { margin: 0; }
.bp-plan-reasons p + p { margin-top: 7px; }
.bp-plan-reasons a { color: var(--cyan); }
.bp-plan-form > .button { grid-column: 1 / -1; justify-self: end; min-width: 220px; }

.bp-current-balance { display: grid; gap: 3px; color: var(--gold); font-family: var(--display-font); font-size: clamp(30px, 3vw, 44px); text-align: right; }
.bp-current-balance small { color: var(--muted); font-family: var(--body-font); font-size: 11px; font-weight: 650; }
.bp-topup-card { min-width: 0; display: grid; grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr); border: 1px solid var(--line); background: var(--surface); }
.bp-topup-card__intro { min-width: 0; padding: 24px; border-right: 1px solid var(--line); }
.bp-topup-card__intro p { margin: 8px 0 0; color: var(--muted); line-height: 1.55; }
.bp-topup-steps { min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; border-bottom: 1px solid var(--line); list-style: none; }
.bp-topup-steps li { min-width: 0; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 4px 8px; align-content: center; padding: 16px; border-right: 1px solid var(--line); }
.bp-topup-steps li:last-child { border-right: 0; }
.bp-topup-steps li > span { grid-row: 1 / 3; color: var(--accent); font-family: var(--mono-font); font-size: 10px; font-weight: 850; }
.bp-topup-steps small { color: var(--muted); font-size: 10px; line-height: 1.35; }
.bp-topup-form,
.bp-topup-resume,
.bp-topup-actions { grid-column: 2; min-width: 0; }
.bp-topup-form { display: grid; grid-template-columns: minmax(200px, 1fr) auto auto; gap: 10px; align-items: end; padding: 18px; }
.bp-topup-form > label { min-width: 0; display: grid; gap: 7px; color: var(--muted); font-size: 11px; }
.bp-topup-form > label > span:last-child { position: relative; display: block; }
.bp-topup-form > label b { position: absolute; right: 12px; top: 50%; color: var(--gold); transform: translateY(-50%); }
.bp-topup-form input { padding-right: 34px; font-size: 17px; font-weight: 800; }
.bp-topup-resume { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px; background: color-mix(in srgb, var(--gold) 7%, var(--surface)); }
.bp-topup-resume > div { display: grid; gap: 4px; }
.bp-topup-resume small { color: var(--muted); }
.bp-topup-actions { display: flex; gap: 10px; padding: 18px; }
.bp-finance-grid { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.bp-finance-card,
.bp-ledger-card { min-width: 0; border: 1px solid var(--line); background: var(--surface); }
.bp-finance-card > header,
.bp-ledger-card > header { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.bp-finance-card > header small,
.bp-ledger-card p { color: var(--muted); }
.bp-finance-list,
.bp-purchase-list { padding: 0 18px; }
.bp-finance-list article { grid-template-columns: minmax(0, 1fr) auto auto; }
.bp-finance-list article > span { font-size: 11px; font-weight: 800; }
.bp-finance-list article > span.is-success { color: var(--green); }
.bp-finance-list article > span.is-pending { color: var(--gold); }
.bp-finance-list article > span.is-failed { color: var(--danger); }
.bp-purchase-list article { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(135px, .5fr); gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.bp-purchase-list article > span:first-child { min-width: 0; display: grid; gap: 3px; }
.bp-purchase-list time,
.bp-purchase-list small { color: var(--muted); font-size: 10px; }
.order-status { display: grid; gap: 3px; }
.order-status.is-success { color: var(--green); }
.order-status.is-pending { color: var(--gold); }
.order-status.is-failed,
.order-status.is-cancelled { color: var(--danger); }
.bp-ledger-card p { margin: 4px 0 0; }
.bp-ledger-list { min-width: 0; }
.bp-ledger-row { min-width: 0; display: grid; grid-template-columns: minmax(150px, .8fr) minmax(100px, .55fr) minmax(100px, .55fr) minmax(220px, 1.4fr); gap: 14px; align-items: center; min-height: 48px; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.bp-ledger-row:last-child { border-bottom: 0; }
.bp-ledger-row--head { min-height: 38px; color: var(--muted); background: var(--surface-soft); font-family: var(--mono-font); font-size: 9px; text-transform: uppercase; }
.bp-ledger-row > * { min-width: 0; overflow-wrap: anywhere; }
.bp-ledger-row time,
.bp-ledger-row > span { color: var(--muted); font-size: 12px; }
.amount-positive { color: var(--green); }
.amount-negative { color: var(--danger); }

.bp-account-grid { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.bp-account-card { min-width: 0; display: grid; align-content: start; gap: 12px; padding: 20px; border: 1px solid var(--line); background: var(--surface); scroll-margin-top: 92px; }
.bp-account-card--wide { grid-column: 1 / -1; }
.bp-account-card--danger { border-color: color-mix(in srgb, var(--danger) 48%, var(--line)); background: color-mix(in srgb, var(--danger) 5%, var(--surface)); }
.bp-account-card > header > span { color: var(--cyan); font-family: var(--mono-font); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.bp-account-card > header > b { color: var(--muted); font-size: 11px; }
.bp-account-card > p { margin: 0; color: var(--muted); line-height: 1.5; }
.bp-account-card dl { margin: 0; }
.bp-account-card dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.bp-account-card dt { color: var(--muted); }
.bp-account-card dd { margin: 0; text-align: right; }
.bp-account-card form { display: grid; gap: 12px; }
.bp-account-card > a:not(.button) { color: var(--cyan); font-weight: 750; }
.bp-telegram-layout { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; padding-top: 4px; }
.bp-telegram-layout > div { min-width: 0; display: grid; gap: 5px; }
.bp-telegram-layout small { color: var(--muted); line-height: 1.45; }
.check-row { min-width: 0; display: grid !important; grid-template-columns: auto minmax(0, 1fr); gap: 9px !important; align-items: start; color: var(--muted); line-height: 1.45; }
.check-row input { width: 18px; min-height: 18px; margin-top: 2px; }

.bp-verification { min-width: 0; display: grid; gap: 18px; }
.bp-verification__steps { background: var(--surface); }
.bp-verification__command { min-width: 0; display: grid; grid-template-columns: minmax(240px, .62fr) minmax(0, 1.38fr); gap: 18px; align-items: center; padding: 22px; border: 1px solid var(--line); background: var(--surface); }
.bp-verification__command h2 { margin: 5px 0 7px; font-family: var(--display-font); font-size: 30px; }
.bp-verification__command > div:first-child p { margin: 0; color: var(--muted); line-height: 1.5; }
.bp-verification__command .verification-token { min-width: 0; }
.bp-verification__command .verification-once { grid-column: 1 / -1; }
.bp-verification > .verification-live { margin: 0; }
.bp-verification > .verification-actions { display: flex; justify-content: flex-end; gap: 10px; }
.bp-verification__help { min-width: 0; }
.bp-verification__help > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; list-style: none; }
.bp-verification__help > summary::-webkit-details-marker { display: none; }
.bp-verification__help > summary > small { color: var(--muted); }
.bp-verification__help > summary::after { color: var(--accent); content: "+"; font-family: var(--mono-font); font-size: 18px; }
.bp-verification__help[open] > summary::after { content: "−"; }
.bp-verification__help-body { min-width: 0; display: grid; gap: 18px; padding: 20px; border-top: 1px solid var(--line); }
.bp-verification__help-body > div:first-child { max-width: 860px; }
.bp-verification__help-body h2 { margin: 0 0 8px; font-family: var(--display-font); font-size: 28px; }
.bp-verification__help-body p { color: var(--muted); line-height: 1.55; }

html[data-density="compact"] .bp-cabinet { margin-top: 18px; }
html[data-density="compact"] .bp-cabinet__layout { gap: 18px; }
html[data-density="compact"] .bp-cabinet-panel { gap: 18px; }
html[data-density="compact"] .bp-cabinet-heading { min-height: 96px; padding: 17px 20px; }
html[data-density="compact"] .bp-summary-card { min-height: 156px; padding: 16px; }
html[data-density="compact"] .bp-overview-card { min-height: 220px; padding: 15px; }
html[data-density="compact"] .bp-server-card__metrics > span,
html[data-density="compact"] .bp-server-details-grid > span { padding: 12px 14px; }
html[data-density="compact"] .bp-account-card { padding: 16px; }

@media (max-width: 1180px) {
  .bp-cabinet__layout { grid-template-columns: 202px minmax(0, 1fr); gap: 16px; }
  .bp-overview-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bp-summary-card:nth-child(2) { border-right: 0; }
  .bp-summary-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .bp-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bp-overview-card:nth-child(2) { border-right: 0; }
  .bp-overview-card:last-child { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .bp-server-card__metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bp-server-card__metrics > span:nth-child(2) { border-right: 0; }
  .bp-server-card__metrics > span:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .bp-server-details-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bp-server-details-grid > span:nth-child(3) { border-right: 0; }
  .bp-server-details-grid > span:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .bp-active-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bp-plan-form { grid-template-columns: 1fr; }
  .bp-plan-total,
  .service-requirement,
  .bp-plan-reasons,
  .bp-plan-form > .button { grid-column: 1; }
  .bp-package-picker legend { flex-direction: column; }
  .boost-package-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bp-topup-card { grid-template-columns: 1fr; }
  .bp-topup-card__intro { border-right: 0; border-bottom: 1px solid var(--line); }
  .bp-topup-form,
  .bp-topup-resume,
  .bp-topup-actions { grid-column: 1; }
}

@media (max-width: 900px) {
  main.page-shell:has(> .bp-cabinet) { width: calc(100% - 24px); }
  .bp-cabinet { width: 100%; margin-top: 14px; }
  .bp-cabinet__layout { grid-template-columns: minmax(0, 1fr); }
  .bp-cabinet__sidebar { position: static; }
  .bp-cabinet__identity,
  .bp-cabinet-help,
  .bp-cabinet-logout { display: none; }
  .bp-cabinet-nav-toggle {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 15px;
    cursor: pointer;
    list-style: none;
  }
  .bp-cabinet-nav-toggle::-webkit-details-marker { display: none; }
  .bp-cabinet-nav-toggle > span { color: var(--muted); font-size: 11px; }
  .bp-cabinet-nav-toggle::after { color: var(--accent); content: "+"; font-family: var(--mono-font); font-size: 18px; }
  .bp-cabinet-nav-shell[open] > .bp-cabinet-nav-toggle::after { content: "−"; }
  .bp-cabinet-nav-shell:not([open]) > .bp-cabinet-nav { display: none !important; }
  .bp-cabinet-nav-shell[open] > .bp-cabinet-nav { display: grid !important; border-top: 1px solid var(--line); }
  .bp-cabinet-heading { min-height: 104px; }
  .bp-server-card__header { grid-template-columns: minmax(0, 1fr) auto; }
  .bp-server-card__header > .bp-state--moderation { grid-column: 1 / -1; }
  .bp-server-details-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bp-server-details-grid > span { border-bottom: 1px solid var(--line); }
  .bp-server-details-grid > span:nth-child(2n) { border-right: 0; }
  .bp-server-details-grid > span:nth-child(3) { border-right: 1px solid var(--line); }
  .bp-server-action { align-items: start; flex-direction: column; }
  .bp-finance-grid { grid-template-columns: 1fr; }
  .bp-account-grid { grid-template-columns: 1fr; }
  .bp-account-card--wide { grid-column: 1; }
  .bp-verification__command { grid-template-columns: minmax(0, 1fr); }
  .bp-verification__command .verification-once { grid-column: 1; }
}

@media (max-width: 640px) {
  main.page-shell:has(> .bp-cabinet) { width: calc(100% - 20px); }
  .bp-cabinet { width: 100%; margin-top: 10px; }
  .bp-cabinet-panel { gap: 14px; }
  .bp-cabinet-heading { min-height: 0; align-items: flex-start; flex-direction: column; gap: 14px; padding: 18px; }
  .bp-cabinet-heading h1 { font-size: 36px; }
  .bp-cabinet-heading > .button,
  .bp-cabinet-heading > a.button { width: 100%; }
  .bp-cabinet-heading__state { white-space: normal; }
  .bp-current-balance { text-align: left; }
  .bp-overview-summary,
  .bp-next-actions,
  .bp-overview-grid,
  .bp-confidence-strip { grid-template-columns: minmax(0, 1fr); }
  .bp-summary-card,
  .bp-summary-card:nth-child(2),
  .bp-summary-card:last-child,
  .bp-next-actions > a,
  .bp-overview-card,
  .bp-overview-card:nth-child(2),
  .bp-overview-card:last-child,
  .bp-confidence-strip > span { grid-column: 1; border-right: 0; border-bottom: 1px solid var(--line); }
  .bp-summary-card:last-child,
  .bp-next-actions > a:last-child,
  .bp-overview-card:last-child,
  .bp-confidence-strip > span:last-child { border-bottom: 0; }
  .bp-summary-card { min-height: 146px; }
  .bp-overview-card { min-height: 0; }
  .bp-server-card__header { grid-template-columns: minmax(0, 1fr); }
  .bp-server-card__header > .bp-state { grid-column: 1; }
  .bp-server-card__metrics,
  .bp-server-details-grid { grid-template-columns: minmax(0, 1fr); }
  .bp-server-card__metrics > span,
  .bp-server-card__metrics > span:nth-child(2),
  .bp-server-details-grid > span,
  .bp-server-details-grid > span:nth-child(2n),
  .bp-server-details-grid > span:nth-child(3) { border-right: 0; border-bottom: 1px solid var(--line); }
  .bp-server-card__metrics > span:last-child,
  .bp-server-details-grid > span:last-child { border-bottom: 0; }
  .bp-server-card__services { grid-template-columns: minmax(0, 1fr); }
  .bp-stepper,
  .bp-add-server__form { grid-template-columns: minmax(0, 1fr); }
  .bp-stepper li { border-right: 0; border-bottom: 1px solid var(--line); }
  .bp-stepper li:last-child { border-bottom: 0; }
  .bp-add-server__advanced,
  .bp-add-server__actions { grid-column: 1; }
  .bp-add-server__actions { align-items: stretch; flex-direction: column; }
  .bp-add-server__actions .button { width: 100%; }
  .bp-section-title { align-items: start; flex-direction: column; }
  .bp-active-service-grid { grid-template-columns: minmax(0, 1fr); }
  .bp-prerequisite { grid-template-columns: minmax(0, 1fr); }
  .bp-prerequisite .button { grid-column: 1; grid-row: auto; width: 100%; }
  .bp-plan-card > summary { grid-template-columns: minmax(0, 1fr) auto; }
  .bp-plan-card > summary > span:last-child { grid-column: 1; text-align: left; }
  .bp-plan-card > summary::after { grid-column: 2; grid-row: 1 / 3; }
  .boost-package-grid { grid-template-columns: minmax(0, 1fr); }
  .bp-plan-total { display: grid; }
  .bp-plan-total > span { min-width: 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .bp-plan-total > span:last-child { border-bottom: 0; }
  .bp-plan-form > .button { width: 100%; min-width: 0; }
  .bp-topup-steps { grid-template-columns: minmax(0, 1fr); }
  .bp-topup-steps li { border-right: 0; border-bottom: 1px solid var(--line); }
  .bp-topup-steps li:last-child { border-bottom: 0; }
  .bp-topup-form { grid-template-columns: minmax(0, 1fr); }
  .bp-topup-form .button { width: 100%; }
  .bp-topup-resume,
  .bp-topup-actions { align-items: stretch; flex-direction: column; }
  .bp-topup-resume .button,
  .bp-topup-actions .button { width: 100%; }
  .bp-finance-list article,
  .bp-purchase-list article { grid-template-columns: minmax(0, 1fr) auto; }
  .bp-finance-list article > span,
  .bp-purchase-list .order-status { grid-column: 1 / -1; }
  .bp-ledger-row,
  .bp-ledger-row--head { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; }
  .bp-ledger-row--head { display: none; }
  .bp-ledger-row > * { display: grid; gap: 3px; }
  .bp-ledger-row > *::before { color: var(--muted); content: attr(data-label); font-family: var(--mono-font); font-size: 8px; text-transform: uppercase; }
  .bp-ledger-row > span:last-child { grid-column: 1 / -1; }
  .bp-telegram-layout { grid-template-columns: minmax(0, 1fr); }
  .bp-telegram-layout .button { width: 100%; }
  .bp-verification > .verification-actions { align-items: stretch; flex-direction: column; }
  .bp-verification > .verification-actions .button { width: 100%; }
  .bp-verification__help > summary { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .bp-cabinet * { scroll-behavior: auto !important; }
}
