:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-2-theme"] {
  --portal-surface: var(--portal-card-color);
  --portal-surface-2: color-mix(in srgb, var(--portal-card-color), var(--portal-bg) 42%);
  --portal-muted-2: var(--portal-muted);
  --portal-danger: #d64550;
  --portal-license-danger: #8f1f2d;
  --portal-license-danger-bg: #fff1f3;
  --portal-license-danger-border: #df5260;
  --portal-focus: color-mix(in srgb, var(--portal-secondary), #000 12%);
  display: block;
  place-items: start center;
  padding: max(var(--portal-page-margin), env(safe-area-inset-top)) max(var(--portal-page-margin), env(safe-area-inset-right)) max(var(--portal-page-margin), env(safe-area-inset-bottom)) max(var(--portal-page-margin), env(safe-area-inset-left));
  background: linear-gradient(180deg, color-mix(in srgb, var(--portal-bg), #fff 28%), var(--portal-bg));
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-2-theme"] .portal-shell {
  width: min(100%, 440px);
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-2-theme"] .portal-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: clamp(14px, 4vw, 20px);
  border: 1px solid var(--portal-border);
  border-radius: var(--portal-card-radius);
  background: var(--portal-card-color);
  box-shadow: 0 14px 38px rgba(35, 74, 112, .11);
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-2-theme"] .portal-system-banner {
  width: 100%;
  margin: 0 0 var(--portal-section-gap);
  overflow: hidden;
  border: 1px solid var(--portal-border);
  border-radius: min(var(--portal-card-radius), 18px);
  background: var(--portal-card-color);
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-2-theme"] .portal-status-row {
  width: 100%;
  margin: 0 0 var(--portal-section-gap);
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-2-theme"] .portal-status {
  justify-content: center;
  width: fit-content;
  min-height: 40px;
  margin: auto;
  padding: 7px 16px;
  border: 1px solid color-mix(in srgb, var(--portal-success), transparent 68%);
  border-radius: 999px;
  color: var(--portal-success);
  background: color-mix(in srgb, var(--portal-success), transparent 91%);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: .01em;
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-2-theme"] .portal-status.is-disconnected,
:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-2-theme"] .portal-status.is-offline {
  border-color: color-mix(in srgb, var(--portal-danger), transparent 66%);
  color: var(--portal-danger);
  background: color-mix(in srgb, var(--portal-danger), transparent 91%);
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-2-theme"] .portal-status-dot {
  width: 8px;
  height: 8px;
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor, transparent 86%);
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-2-theme"] .portal-label {
  margin: 0 0 6px;
  color: var(--portal-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-2-theme"] .portal-duration {
  gap: clamp(5px, 2.2vw, 10px);
  width: 100%;
  margin: 0 0 5px;
  padding: 13px 8px 11px;
  border: 1px solid var(--portal-border);
  border-radius: min(var(--portal-card-radius), 17px);
  color: var(--portal-secondary);
  background: color-mix(in srgb, var(--portal-bg), #fff 42%);
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-2-theme"] .portal-time-part {
  min-width: 0;
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-2-theme"] .portal-time-value {
  color: var(--portal-secondary);
  font-size: min(var(--portal-countdown-size), max(20px, calc((min(100vw, 440px) - 2 * var(--portal-page-margin-mobile) - 2 * var(--portal-component-margin) - 72px) / 5.2)));
  font-weight: 900;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-2-theme"] .portal-time-unit {
  color: var(--portal-muted);
  font-size: 9px;
  font-weight: 800;
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-2-theme"] .portal-points {
  margin: var(--portal-section-gap) 0;
  color: var(--portal-muted);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-2-theme"] .portal-device-info {
  display: none !important;
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-2-theme"] .portal-system-free-time {
  margin: 0 0 var(--portal-section-gap);
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-2-theme"] .portal-free-time-button {
  min-height: 48px;
  border-color: color-mix(in srgb, var(--portal-success), transparent 48%);
  border-radius: var(--portal-button-radius);
  color: var(--portal-success);
  background: color-mix(in srgb, var(--portal-success), transparent 92%);
  box-shadow: none;
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-2-theme"] .portal-primary-grid {
  display: flex;
  flex-direction: column;
  gap: var(--portal-section-gap);
  width: 100%;
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-2-theme"] .portal-primary-row:not([hidden]) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-2-theme"] .portal-primary-row.is-single > .portal-button:not([hidden]) {
  grid-column: 1 / -1;
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-2-theme"] .portal-primary-grid .portal-button:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  margin: 0;
  padding: 8px 10px;
  border-radius: var(--portal-button-radius);
  font-size: 13px;
  font-weight: 820;
  letter-spacing: 0;
  box-shadow: none;
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-2-theme"] .portal-action-with-icon svg {
  display: block;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-2-theme"] .portal-insert-default-icon {
  display: none !important;
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-2-theme"] .portal-insert-coin-icon,
:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-2-theme"] .portal-pause-icon {
  display: block !important;
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-2-theme"] .portal-primary-grid .portal-button.portal-insert:not([hidden]) {
  min-height: var(--portal-insert-height);
  border-color: color-mix(in srgb, var(--portal-insert-color), #000 8%);
  color: var(--portal-insert-ink);
  background: var(--portal-insert-color);
  box-shadow: 0 7px 18px color-mix(in srgb, var(--portal-insert-color), transparent 78%);
  font-size: var(--portal-insert-font);
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-2-theme"] .portal-insert .portal-insert-coin-icon {
  flex-basis: 1.15em;
  width: 1.15em;
  height: 1.15em;
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-2-theme"] .portal-secondary-grid {
  margin: var(--portal-section-gap) 0 0;
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-2-theme"] .portal-secondary-grid:not(:has(.portal-button:not([hidden]))) {
  display: none;
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-2-theme"] #portal-white-rates,
:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-2-theme"] .portal-primary-grid .portal-pause {
  border-color: color-mix(in srgb, var(--portal-secondary), transparent 50%);
  color: var(--portal-secondary);
  background: color-mix(in srgb, var(--portal-secondary), transparent 94%);
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-2-theme"] #portal-white-rates:hover:not(:disabled),
:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-2-theme"] .portal-primary-grid .portal-pause:hover:not(:disabled) {
  background: color-mix(in srgb, var(--portal-secondary), transparent 89%);
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-2-theme"] .portal-more-actions {
  width: 100%;
  margin: var(--portal-section-gap) 0 0;
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-2-theme"] .portal-quick-heading {
  display: none !important;
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-2-theme"] .portal-quick-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-2-theme"] .portal-quick-action {
  min-height: 46px;
  padding: 8px 11px;
  border-color: color-mix(in srgb, var(--portal-secondary), #000 6%);
  border-radius: var(--portal-button-radius);
  color: #fff;
  background: var(--portal-secondary);
  box-shadow: none;
  font-size: 13px;
  font-weight: 820;
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-2-theme"] .portal-quick-action.is-wide,
:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-2-theme"] .portal-quick-action:only-child {
  grid-column: 1 / -1;
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-2-theme"] .portal-quick-action.is-custom {
  border-color: color-mix(in srgb, var(--portal-custom-button-color), #000 16%);
  color: var(--portal-custom-button-ink);
  background: var(--portal-custom-button-color);
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-2-theme"] .portal-voucher-inline {
  width: 100%;
  margin: var(--portal-section-gap) 0 0;
  padding: 0;
  border: 0;
  background: transparent;
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-2-theme"] .portal-voucher-title,
:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-2-theme"] .portal-voucher-help {
  display: none !important;
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-2-theme"] .portal-voucher-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(92px, max-content);
  gap: 7px;
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-2-theme"] .portal-voucher-input {
  min-width: 0;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--portal-border);
  border-radius: var(--portal-button-radius);
  color: var(--portal-text);
  background: var(--portal-card-color);
  font-size: 16px;
  text-transform: uppercase;
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-2-theme"] .portal-voucher-input::placeholder {
  color: var(--portal-muted);
  opacity: .82;
  text-transform: none;
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-2-theme"] .portal-voucher-submit {
  min-width: 92px;
  min-height: 46px;
  padding: 8px 13px;
  border: 1px solid color-mix(in srgb, var(--portal-secondary), #000 6%);
  border-radius: var(--portal-button-radius);
  color: #fff;
  background: var(--portal-secondary);
  font-size: 13px;
  font-weight: 820;
  white-space: nowrap;
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-2-theme"] .portal-select-wrap {
  width: 100%;
  margin: var(--portal-section-gap) 0 0;
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-2-theme"] .portal-select {
  min-height: 46px;
  border-color: var(--portal-border);
  border-radius: var(--portal-button-radius);
  color: var(--portal-text);
  background-color: var(--portal-card-color);
  box-shadow: none;
}

body.portal-theme-lpb-2-theme.portal-modal-tone-light #portal-insert-session,
body.portal-theme-lpb-2-theme.portal-modal-tone-light #portal-action-dialog {
  background: rgba(23, 50, 77, .48);
}

body.portal-theme-lpb-2-theme.portal-modal-tone-light .portal-dialog,
body.portal-theme-lpb-2-theme.portal-modal-tone-light .portal-action-panel,
body.portal-theme-lpb-2-theme.portal-modal-tone-light .portal-action-header,
html[data-portal-theme="lpb-2-theme"] .preview-action-dialog__panel {
  color: var(--portal-text);
  background: var(--portal-card-color);
  box-shadow: 0 22px 60px rgba(35, 74, 112, .2);
}

body.portal-theme-lpb-2-theme.portal-modal-tone-light .portal-insert-progress,
body.portal-theme-lpb-2-theme.portal-modal-tone-light .portal-action-summary,
body.portal-theme-lpb-2-theme.portal-modal-tone-light .portal-action-breakdown,
body.portal-theme-lpb-2-theme.portal-modal-tone-light .portal-action-calculation,
body.portal-theme-lpb-2-theme.portal-modal-tone-light .portal-rates-table,
html[data-portal-theme="lpb-2-theme"] .preview-rates-table {
  background: var(--portal-surface-2);
}

body.portal-eload-theme {
  background: var(--eload-page) !important;
}

body.portal-eload-theme .portal-eload-toolbar,
html[data-portal-theme="lpb-2-theme"] .preview-buy-load__header {
  width: min(100%, 960px);
  padding: 16px 12px 8px;
}

body.portal-eload-theme .portal-eload-back,
html[data-portal-theme="lpb-2-theme"] .preview-buy-load__header button {
  border-color: var(--eload-border, var(--portal-border));
  border-radius: var(--portal-button-radius);
  color: var(--eload-secondary, var(--portal-secondary));
  background: var(--eload-card, var(--portal-card-color));
  box-shadow: 0 4px 12px rgba(35, 74, 112, .08);
}

body.portal-eload-theme #conntent {
  width: min(100%, 960px) !important;
  max-width: 960px !important;
  padding: 8px 12px 36px !important;
}

body.portal-eload-theme #_netnav.portal-eload-controls,
html[data-portal-theme="lpb-2-theme"] .preview-buy-load__controls {
  margin-bottom: 12px !important;
  padding: 10px !important;
  border-color: var(--eload-border, var(--portal-border)) !important;
  border-radius: var(--portal-card-radius) !important;
  background: var(--eload-card, var(--portal-card-color)) !important;
  box-shadow: 0 8px 22px rgba(35, 74, 112, .08) !important;
}

body.portal-eload-theme .portal-eload-categories .nav-link,
html[data-portal-theme="lpb-2-theme"] .preview-buy-load__networks button {
  min-height: 42px !important;
  border-color: var(--eload-border, var(--portal-border)) !important;
  border-radius: 999px !important;
  color: var(--eload-muted, var(--portal-muted)) !important;
  background: var(--eload-card, var(--portal-card-color)) !important;
}

body.portal-eload-theme .portal-eload-categories .nav-item.active .nav-link,
html[data-portal-theme="lpb-2-theme"] .preview-buy-load__networks .is-active {
  border-color: var(--eload-secondary, var(--portal-secondary)) !important;
  color: #fff !important;
  background: var(--eload-secondary, var(--portal-secondary)) !important;
}

body.portal-eload-theme .portal-eload-search input,
html[data-portal-theme="lpb-2-theme"] .preview-buy-load__search input {
  min-height: 44px !important;
  border-color: var(--eload-border, var(--portal-border)) !important;
  border-radius: var(--portal-button-radius) !important;
  color: var(--eload-text, var(--portal-text)) !important;
  background: var(--eload-card, var(--portal-card-color)) !important;
}

body.portal-eload-theme .portal-eload-search button,
html[data-portal-theme="lpb-2-theme"] .preview-buy-load__search button,
body.portal-eload-theme #content-row2 .card-footer button,
html[data-portal-theme="lpb-2-theme"] .preview-buy-load__grid article > button:not(:disabled) {
  min-height: 44px !important;
  border-color: var(--eload-secondary, var(--portal-secondary)) !important;
  border-radius: var(--portal-button-radius) !important;
  color: #fff !important;
  background: var(--eload-secondary, var(--portal-secondary)) !important;
}

body.portal-eload-theme #content-row2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)) !important;
  gap: 11px !important;
}

body.portal-eload-theme #content-row2 .card,
html[data-portal-theme="lpb-2-theme"] .preview-buy-load__grid article {
  border-color: var(--eload-border, var(--portal-border)) !important;
  border-radius: var(--portal-card-radius) !important;
  color: var(--eload-text, var(--portal-text)) !important;
  background: var(--eload-card, var(--portal-card-color)) !important;
  box-shadow: 0 8px 22px rgba(35, 74, 112, .08) !important;
}

body.portal-eload-theme #content-row2 .card > div:first-child,
body.portal-eload-theme #content-row2 .card-footer {
  border-color: var(--eload-border) !important;
  background: color-mix(in srgb, var(--eload-card), var(--eload-page) 35%) !important;
}

body.portal-eload-theme h4[type="code"],
html[data-portal-theme="lpb-2-theme"] .preview-buy-load__grid h2 {
  color: var(--eload-secondary, var(--portal-secondary)) !important;
}

body.portal-logs-theme .portal-logs-shell,
html[data-portal-theme="lpb-2-theme"] .portal-logs-shell {
  width: min(100%, 820px);
}

body.portal-logs-theme .portal-logs-header,
html[data-portal-theme="lpb-2-theme"] .portal-logs-header {
  padding: 14px;
  border: 1px solid var(--portal-border);
  border-radius: var(--portal-card-radius);
  background: var(--portal-card-color);
  box-shadow: 0 8px 22px rgba(35, 74, 112, .08);
}

body.portal-logs-theme .portal-logs-back,
html[data-portal-theme="lpb-2-theme"] .portal-logs-back {
  color: var(--portal-secondary);
  background: color-mix(in srgb, var(--portal-secondary), transparent 95%);
}

body.portal-logs-theme .portal-log-entry,
body.portal-logs-theme .portal-logs-state,
html[data-portal-theme="lpb-2-theme"] .portal-log-entry,
html[data-portal-theme="lpb-2-theme"] .portal-logs-state {
  border-radius: min(var(--portal-card-radius), 16px);
  box-shadow: 0 5px 16px rgba(35, 74, 112, .06);
}

body.portal-logs-theme .portal-log-timestamp,
html[data-portal-theme="lpb-2-theme"] .portal-log-timestamp {
  color: var(--portal-secondary);
}

@media (max-width: 480px) {
  :is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-2-theme"] {
    padding: max(var(--portal-page-margin-mobile), env(safe-area-inset-top)) max(var(--portal-page-margin-mobile), env(safe-area-inset-right)) max(var(--portal-page-margin-mobile), env(safe-area-inset-bottom)) max(var(--portal-page-margin-mobile), env(safe-area-inset-left));
  }

  :is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-2-theme"] .portal-card {
    padding: 11px;
    border-radius: var(--portal-card-radius-mobile);
  }

  :is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-2-theme"] .portal-primary-grid .portal-button.portal-insert:not([hidden]) {
    min-height: max(44px, var(--portal-insert-height-mobile));
    font-size: var(--portal-insert-font-mobile);
  }

  :is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-2-theme"] .portal-system-banner,
  :is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-2-theme"] .portal-system-free-time {
    margin-bottom: var(--portal-mobile-gap);
  }

  :is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-2-theme"] .portal-status-row {
    margin-bottom: var(--portal-mobile-gap);
  }

  :is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-2-theme"] .portal-points {
    margin-top: var(--portal-mobile-gap);
    margin-bottom: var(--portal-mobile-gap);
  }

  :is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-2-theme"] .portal-primary-grid {
    gap: var(--portal-mobile-gap);
  }

  :is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-2-theme"] .portal-secondary-grid,
  :is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-2-theme"] .portal-more-actions,
  :is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-2-theme"] .portal-voucher-inline,
  :is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-2-theme"] .portal-select-wrap {
    margin-top: var(--portal-mobile-gap);
  }

  body.portal-eload-theme #content-row2 {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 330px) {
  :is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-2-theme"] .portal-card {
    padding: 8px;
  }

  :is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-2-theme"] .portal-primary-grid .portal-button:not([hidden]),
  :is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-2-theme"] .portal-quick-action {
    padding-inline: 7px;
    font-size: 12px;
  }

  :is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-2-theme"] .portal-voucher-form {
    grid-template-columns: minmax(0, 1fr) 88px;
  }

  :is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-2-theme"] .portal-voucher-submit {
    min-width: 88px;
    padding-inline: 8px;
  }

  body.portal-logs-theme .portal-logs-header,
  html[data-portal-theme="lpb-2-theme"] .portal-logs-header {
    padding: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-2-theme"] *,
  body.portal-theme-lpb-2-theme.portal-modal-tone-light *,
  body.portal-eload-theme *,
  body.portal-logs-theme * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
