/* Additive presentation for the existing native customer panel. */
.customer-panel {
  --ink: #243c30;
  --ink-strong: #153327;
  --ink-soft: #4b6154;
  --muted: #566b5d;
  --page: #f5f7f0;
  --surface-soft: #f4f7ee;
  --surface-tint: #ecf3e4;
  --line: #d4dece;
  --line-strong: #adbea7;
  --brand: #214d35;
  --brand-hover: #153b26;
  --accent-strong: #326344;
  --accent-soft: #edf6df;
  font-size: 16px;
}

.customer-panel .header-inner {
  min-height: 76px;
  padding-inline: 28px;
}

.customer-panel .brand {
  font-size: 1.16rem;
  gap: 10px;
}

.customer-panel .brand img {
  width: 43px;
}

.customer-panel .button,
.customer-panel .account-chip,
.customer-panel .field input,
.customer-panel .field select {
  min-height: 44px;
  border-radius: 8px;
}

.customer-panel .button {
  padding-inline: 17px;
  font-size: .88rem;
}

.customer-panel .account-chip {
  border-color: var(--line);
  font-size: .85rem;
}

.customer-panel .avatar {
  background: #e8f0dc;
  color: var(--brand);
}

.customer-panel a:focus-visible,
.customer-panel button:focus-visible,
.customer-panel input:focus-visible,
.customer-panel select:focus-visible,
.customer-panel textarea:focus-visible,
.customer-panel summary:focus-visible {
  outline: 3px solid #8b4d17;
  outline-offset: 4px;
}

.customer-panel .panel-auth-shell {
  min-height: calc(100svh - 225px);
  padding-block: clamp(40px, 9vh, 90px);
}

.customer-panel .panel-auth-shell .panel-auth-card {
  width: min(100%, 490px);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 42px rgb(25 59 35 / 6%);
}

.customer-panel .panel-auth-card .dialog-brand {
  margin-bottom: 16px;
}

.customer-panel .panel-account-intro {
  margin: 0 0 23px;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.65;
}

.customer-panel .panel-auth-card .field input {
  font-size: 1rem;
  background: #fcfdf9;
}

.customer-panel .panel-auth-card .auth-tabs,
.customer-panel .panel-auth-card .auth-form {
  margin-top: 20px;
}

.customer-panel .panel-auth-card .auth-link,
.customer-panel .panel-auth-card .dialog-footnote a {
  min-height: 44px;
  padding-block: 11px;
  line-height: 1.6;
}

.customer-panel .panel-auth-card .dialog-footnote {
  padding-top: 17px;
  border-top: 1px solid var(--line);
  line-height: 1.9;
}

.customer-panel .app-view {
  padding-block: 38px 70px;
}

.customer-panel .page-heading h1,
.customer-panel .configuration-heading h1,
.customer-panel .detail-hero h1 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 1.2;
}

.customer-panel .page-heading p,
.customer-panel .configuration-heading p {
  max-width: 760px;
  font-size: .95rem;
  line-height: 1.7;
}

.customer-panel .machine-row.server-row,
.customer-panel .detail-card,
.customer-panel .summary-sticky,
.customer-panel .balance-card {
  border-radius: 10px;
  border-color: var(--line);
}

.customer-panel .machine-row .server-mark {
  color: var(--brand);
  background: #eef4e7;
}

.customer-panel .machine-footer,
.customer-panel .panel-price-footnote,
.customer-panel .field-hint,
.customer-panel .field small {
  font-size: .84rem;
  line-height: 1.7;
}

.customer-panel .config-progress,
.customer-panel .config-progress button span {
  color: var(--brand);
  background: #e9f0df;
}

.customer-panel .choice-card.selected,
.customer-panel .choice-card:has(input:checked) {
  background: #f1f7e9;
}

.customer-panel .resource-slider output {
  color: var(--brand);
  background: #eaf2df;
}

.customer-panel .resource-slider input[type="range"] {
  --slider-fill: #326344;
  --slider-track: #d6e1cc;
}

.customer-panel .resource-slider input[type="range"]:hover:not(:disabled) {
  --slider-fill: #214d35;
}

.customer-panel .panel-help-menu a,
.customer-panel .panel-help-menu > summary {
  min-height: 44px;
}

.customer-panel .panel-nav-secondary {
  line-height: 1.55;
}

@media (min-width: 901px) {
  .customer-panel[data-workspace="true"] .account-nav {
    top: 76px;
    background: #193a2a;
  }

  .customer-panel .panel-nav-secondary {
    border-top-color: #42634b;
  }

  .customer-panel .account-nav a,
  .customer-panel .panel-help-menu > summary {
    color: #e3efda;
    font-size: .9rem;
  }

  .customer-panel .account-nav a.active,
  .customer-panel .account-nav a[aria-current="page"] {
    color: #153327;
    background: #d6efb8;
  }

  .customer-panel .account-nav a:hover,
  .customer-panel .panel-help-menu > summary:hover {
    color: #fff;
    background: #2b5137;
  }
}

@media (max-width: 900px) {
  .customer-panel .account-nav a,
  .customer-panel .panel-help-menu > summary {
    min-height: 44px;
    padding: 11px 12px;
    font-size: .88rem;
  }

  .customer-panel .account-nav a[aria-current="page"] {
    color: #153327;
    background: #e3efcf;
  }
}

@media (max-width: 650px) {
  .customer-panel .header-inner {
    padding-inline: 18px;
    gap: 14px;
  }

  .customer-panel .panel-auth-shell {
    padding: 30px 18px 45px;
  }

  .customer-panel .panel-auth-shell .panel-auth-card {
    padding: 27px 23px;
  }

  .customer-panel .app-shell,
  .customer-panel .configurator-section > .shell {
    width: calc(100% - 36px);
  }

  .customer-panel .field input,
  .customer-panel .field select,
  .customer-panel .field textarea {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media (forced-colors: active) {
  .customer-panel a:focus-visible,
  .customer-panel button:focus-visible,
  .customer-panel input:focus-visible,
  .customer-panel select:focus-visible,
  .customer-panel textarea:focus-visible,
  .customer-panel summary:focus-visible {
    outline-color: Highlight;
  }
}
