@font-face {
  font-family: "Golos Text";
  src: url("../fonts/golos-text-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --konfium-paper: #faf8f4;
  --konfium-paper-white: #fffdf8;
  --konfium-ink: #171712;
  --konfium-muted: #666258;
  --konfium-line: #dedbd4;
  --konfium-control-border: #b9b3a7;
  --konfium-control-hover: #eee6d8;
  --konfium-yellow: #ffc321;
  --konfium-yellow-soft: #fff0bb;
  --konfium-focus: #5038c5;
  --konfium-danger: #a43d32;
  --konfium-shadow: 0 14px 32px #17171214;
  font-family: "Golos Text", Arial, sans-serif;
  color: var(--konfium-ink);
  background: var(--konfium-paper);
  color-scheme: light;
  font-synthesis: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--konfium-paper);
  scrollbar-gutter: stable;
}

body,
body.konfium-shell {
  min-width: 320px;
  margin: 0;
  background: var(--konfium-paper);
  color: var(--konfium-ink);
  font-family: "Golos Text", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
summary {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--konfium-focus);
  outline-offset: 4px;
}

.konfium-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.konfium-header {
  width: min(1160px, calc(100% - 64px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--konfium-line);
}

.konfium-brand {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--konfium-ink);
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -0.03em;
  text-decoration: none;
  white-space: nowrap;
}

.konfium-header__right,
.konfium-header__links,
.konfium-actions,
.konfium-action-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.konfium-header__links {
  color: var(--konfium-muted);
  font-size: 14px;
}

.konfium-header__links a,
.konfium-breadcrumb a,
.konfium-text-link {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.18em;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.konfium-header__links a:hover,
.konfium-breadcrumb a:hover,
.konfium-text-link:hover {
  color: var(--konfium-ink);
  text-decoration-color: currentColor;
}

.konfium-user-menu {
  position: relative;
}

.konfium-user-menu summary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--konfium-control-border);
  border-radius: 8px;
  color: var(--konfium-ink);
  cursor: pointer;
  list-style: none;
  font-size: 14px;
}

.konfium-user-menu summary::-webkit-details-marker {
  display: none;
}

.konfium-user-menu summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
}

.konfium-user-menu[open] summary {
  background: var(--konfium-control-hover);
}

.konfium-user-menu__list {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--konfium-line);
  border-radius: 12px;
  background: var(--konfium-paper-white);
  box-shadow: var(--konfium-shadow);
  list-style: none;
}

.konfium-user-menu__list a {
  display: block;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--konfium-ink);
  text-decoration: none;
}

.konfium-user-menu__list a:hover {
  background: var(--konfium-control-hover);
}

.konfium-main {
  width: min(1160px, calc(100% - 64px));
  flex: 1;
  margin: 0 auto;
  padding: 28px 0 56px;
}

.konfium-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  color: var(--konfium-muted);
  font-size: 13px;
}

.konfium-breadcrumb__separator {
  color: var(--konfium-line);
}

.konfium-footer {
  width: min(1160px, calc(100% - 64px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding: 20px 0 28px;
  border-top: 1px solid var(--konfium-line);
  color: var(--konfium-muted);
  font-size: 13px;
}

.konfium-footer a {
  color: var(--konfium-ink);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.konfium-panel {
  border: 1px solid var(--konfium-line);
  border-radius: 12px;
  background: var(--konfium-paper-white);
}

.konfium-panel--primary {
  box-shadow: var(--konfium-shadow);
}

.konfium-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 32px 32px 24px;
  box-shadow: inset 0 2px 0 var(--konfium-yellow);
  border-radius: 12px 12px 0 0;
}

.konfium-panel__body {
  padding: 0 32px 32px;
}

.konfium-section-label {
  margin: 0 0 8px;
  color: var(--konfium-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.4;
  text-transform: uppercase;
}

.konfium-title {
  max-width: 36ch;
  margin: 0;
  font-size: 32px;
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.konfium-subtitle {
  max-width: 68ch;
  margin: 10px 0 0;
  color: var(--konfium-muted);
  font-size: 15px;
}

.konfium-status {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid var(--konfium-control-border);
  border-radius: 999px;
  color: var(--konfium-ink);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.konfium-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--konfium-muted);
}

.konfium-status--active {
  border-color: #d9bc57;
  background: var(--konfium-yellow-soft);
}

.konfium-status--active::before {
  background: #8b6800;
}

.konfium-status--danger {
  border-color: #d8aaa4;
  background: #fff4f2;
  color: var(--konfium-danger);
}

.konfium-details-heading {
  margin: 28px 0 16px;
  font-size: 20px;
  line-height: 1.3;
}

.konfium-details-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--konfium-line);
  border-left: 1px solid var(--konfium-line);
}

.konfium-detail {
  min-width: 0;
  margin: 0;
  padding: 16px;
  border-right: 1px solid var(--konfium-line);
  border-bottom: 1px solid var(--konfium-line);
}

.konfium-detail dt {
  margin: 0 0 6px;
  color: var(--konfium-muted);
  font-size: 12px;
  line-height: 1.4;
}

.konfium-detail dd {
  margin: 0;
  color: var(--konfium-ink);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.konfium-detail dd strong {
  font-weight: 650;
}

.konfium-action-row {
  flex-wrap: wrap;
  margin-top: 24px;
}

.konfium-button,
.konfium-button:visited {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 18px;
  border: 1px solid var(--konfium-ink);
  border-radius: 8px;
  background: var(--konfium-ink);
  color: var(--konfium-paper-white);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.konfium-button:hover {
  border-color: #39382f;
  background: #39382f;
  color: var(--konfium-paper-white);
}

.konfium-button:active {
  border-color: #504b3e;
  background: #504b3e;
}

.konfium-button--secondary,
.konfium-button--secondary:visited {
  border-color: var(--konfium-control-border);
  background: var(--konfium-paper-white);
  color: var(--konfium-ink);
}

.konfium-button--secondary:hover {
  border-color: var(--konfium-control-hover-border, #7d776b);
  background: var(--konfium-control-hover);
  color: var(--konfium-ink);
}

.konfium-button--danger,
.konfium-button--danger:visited {
  border-color: #d8aaa4;
  background: var(--konfium-paper-white);
  color: var(--konfium-danger);
}

.konfium-button--danger:hover {
  border-color: var(--konfium-danger);
  background: #fff4f2;
  color: var(--konfium-danger);
}

.konfium-button[disabled],
.konfium-button[aria-disabled="true"] {
  border-color: #d7d1c5;
  background: #eeebe4;
  color: #747066;
  cursor: not-allowed;
}

.konfium-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.konfium-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.konfium-checkout {
  overflow: hidden;
  border: 1px solid var(--konfium-line);
  border-radius: 16px;
  background: var(--konfium-paper-white);
  box-shadow: var(--konfium-shadow);
}

.konfium-checkout .accordion-header {
  margin: 0;
}

.konfium-checkout .accordion-button,
.konfium-checkout .accordion-button:not(.collapsed) {
  min-height: 64px;
  padding: 16px 20px;
  border: 0;
  border-radius: 0;
  background: var(--konfium-paper-white);
  color: var(--konfium-ink);
  box-shadow: none;
  font-size: 17px;
  font-weight: 650;
}

.konfium-checkout .accordion-button:focus-visible {
  box-shadow: inset 0 0 0 3px #5038c533;
}

.konfium-checkout .accordion-collapse {
  border-top: 1px solid var(--konfium-line);
}

.konfium-checkout .accordion-body {
  padding: 24px;
}

.konfium-checkout__cart-table,
.konfium-checkout__summary-table {
  width: 100%;
  margin: 0;
  border-color: var(--konfium-line);
  color: var(--konfium-ink);
  vertical-align: middle;
}

.konfium-checkout__cart-table {
  table-layout: fixed;
}

.konfium-checkout__cart-table th,
.konfium-checkout__cart-table td,
.konfium-checkout__summary-table td {
  padding: 14px 12px;
  border-color: var(--konfium-line);
  overflow-wrap: anywhere;
}

.konfium-checkout__cart-table th {
  color: var(--konfium-muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.konfium-checkout__cart-table th:nth-child(2),
.konfium-checkout__cart-table td:nth-child(2) {
  width: 28%;
  text-align: right;
  white-space: nowrap;
}

.konfium-checkout__remove-heading,
.konfium-checkout__remove-cell {
  width: 64px;
  text-align: center;
}

.konfium-checkout__remove-form {
  display: inline;
  margin: 0;
}

.konfium-checkout__remove {
  width: 44px;
  min-height: 44px;
  padding: 8px;
}

.konfium-checkout__remove svg {
  width: 18px;
  height: 18px;
}

.konfium-checkout__period {
  color: var(--konfium-muted);
  font-size: 13px;
}

.konfium-checkout__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin: 24px 0 0;
}

.konfium-checkout__grid > [class*="col-"] {
  width: auto;
  min-width: 0;
  padding: 0;
}

.konfium-checkout__promo > a {
  color: var(--konfium-ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.konfium-checkout__promo form {
  margin-top: 12px;
}

.konfium-checkout__promo .input-append {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
}

.konfium-checkout__promo #promocode {
  flex: 1 1 240px;
  width: auto;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--konfium-control-border);
  border-radius: 8px;
  background: var(--konfium-paper-white);
  color: var(--konfium-ink);
  line-height: 1.35;
}

.konfium-checkout__promo #promocode:focus-visible {
  border-color: var(--konfium-focus);
  outline: 3px solid #5038c533;
  outline-offset: 1px;
}

.konfium-checkout__promo .btn-primary,
.konfium-checkout__promo .btn-warning {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0 !important;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.konfium-checkout__promo .btn-primary {
  border-color: var(--konfium-yellow);
  background: var(--konfium-yellow);
  color: var(--konfium-ink);
}

.konfium-checkout__promo .btn-primary:hover,
.konfium-checkout__promo .btn-primary:focus-visible {
  border-color: #e6ac00;
  background: #e6ac00;
  color: var(--konfium-ink);
}

.konfium-checkout__promo .btn-warning {
  border-color: var(--konfium-control-border);
  background: var(--konfium-paper-white);
  color: var(--konfium-ink);
}

.konfium-checkout__promo .btn-warning:hover,
.konfium-checkout__promo .btn-warning:focus-visible {
  border-color: var(--konfium-control-hover-border, #7d776b);
  background: var(--konfium-control-hover);
  color: var(--konfium-ink);
}

.konfium-checkout__summary-table {
  font-size: 14px;
}

.konfium-checkout__summary-table tr:last-child td {
  border-top: 2px solid var(--konfium-ink);
  border-bottom: 0;
  font-size: 16px;
}

.konfium-checkout__form {
  margin-top: 20px;
}

.konfium-checkout__form fieldset {
  min-width: 0;
  padding: 0;
  border: 0;
}

.konfium-checkout__payment {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--konfium-line);
  border-radius: 12px;
  background: var(--konfium-paper);
}

.konfium-checkout__payment-help {
  margin: 0 0 14px;
  color: var(--konfium-ink);
  font-size: 14px;
  line-height: 1.5;
}

.konfium-payment-fallback {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--konfium-line);
  border-radius: 12px;
  background: var(--konfium-paper);
}

.konfium-payment-fallback__message {
  margin: 0;
  color: var(--konfium-ink);
  font-weight: 650;
}

.konfium-checkout__gateways {
  gap: 10px !important;
}

.konfium-checkout__gateway-card {
  flex: 1 1 220px;
  max-width: 320px;
  margin: 0;
  padding: 0 !important;
  border: 0;
  border-radius: 8px !important;
  background: transparent;
}

.konfium-checkout__gateway-label {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--konfium-control-border);
  border-radius: 8px;
  background: var(--konfium-paper-white);
  color: var(--konfium-ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  white-space: normal;
}

.konfium-checkout__gateway-logo {
  display: block;
  flex: 0 0 auto;
  max-width: 80px;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.konfium-checkout__gateway-name {
  min-width: 0;
  overflow-wrap: anywhere;
}

.konfium-checkout__gateway-card .btn-check:checked + .konfium-checkout__gateway-label {
  border-color: var(--konfium-ink);
  background: var(--konfium-yellow-soft);
  color: var(--konfium-ink);
  box-shadow: inset 0 0 0 1px var(--konfium-ink);
}

.konfium-checkout__confirmation .controls {
  margin-top: 0 !important;
}

.konfium-checkout__balance-note {
  margin: 0 0 16px;
  color: var(--konfium-muted);
  font-size: 13px;
}

.konfium-checkout__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  padding-top: 4px;
}

.konfium-checkout__submit {
  border-color: var(--konfium-yellow);
  background: var(--konfium-yellow);
  color: var(--konfium-ink);
}

.konfium-checkout__submit:hover,
.konfium-checkout__submit:focus-visible {
  border-color: #e6ac00;
  background: #e6ac00;
  color: var(--konfium-ink);
}

#loginMessage {
  margin: 0;
  color: var(--konfium-muted);
  font-size: 13px;
}

.konfium-toast-container {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1070;
  width: min(420px, calc(100vw - 32px));
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.konfium-toast-container .toast {
  width: 100%;
  pointer-events: auto;
  border: 1px solid var(--konfium-line);
  border-radius: 10px;
  box-shadow: var(--konfium-shadow);
}

.konfium-toast-container .toast-body {
  line-height: 1.5;
}

.konfium-license-panel {
  margin-top: 24px;
  padding: 24px 32px 28px;
  border: 1px solid var(--konfium-line);
  border-radius: 12px;
  background: var(--konfium-paper-white);
}

.konfium-license-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 18px;
}

.konfium-license-panel h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
}

.konfium-license-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 22px;
  border-top: 1px solid var(--konfium-line);
  border-left: 1px solid var(--konfium-line);
}

.konfium-license-summary .konfium-detail {
  background: #fffefb;
}

.konfium-activation {
  display: grid;
  gap: 16px;
  margin-top: 24px;
  padding: 22px 24px 24px;
  border: 1px solid var(--konfium-line);
  border-radius: 10px;
  background: #fffefb;
}

.konfium-distribution {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid var(--konfium-line);
  border-radius: 10px;
  background: #fffefb;
}

.konfium-distribution > div {
  min-width: 0;
  max-width: 100%;
}

.konfium-distribution h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
}

.konfium-distribution p:not(.konfium-section-label) {
  margin: 6px 0 0;
  color: var(--konfium-muted);
  font-size: 14px;
}

.konfium-distribution__meta {
  font-size: 13px !important;
}

.konfium-distribution__sha {
  max-width: 72ch;
  overflow-wrap: anywhere;
  word-break: normal;
  font-size: 12px !important;
}

.konfium-distribution__sha code {
  color: var(--konfium-ink);
  font-size: 12px;
}

.konfium-activation__copy h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.konfium-activation__copy p:last-child {
  max-width: 65ch;
  margin: 8px 0 0;
  color: var(--konfium-muted);
  font-size: 14px;
}

.konfium-activation__form {
  margin: 0;
}

.konfium-offline-license { min-width: 0; border-top: 1px solid var(--konfium-line); padding-top: 8px; }
.konfium-offline-license summary { min-height: 44px; align-content: center; cursor: pointer; font-weight: 600; }
.konfium-offline-license p { margin: 12px 0; color: var(--konfium-muted); font-size: 14px; }
.konfium-offline-license form { display: grid; gap: 10px; margin: 16px 0; }
.konfium-offline-license label { font-weight: 600; font-size: 14px; }
.konfium-offline-license input[type="text"] { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid var(--konfium-control-border); border-radius: 8px; background: var(--konfium-paper-white); color: var(--konfium-ink); font: inherit; }
.konfium-offline-license .konfium-button { justify-self: start; }

.konfium-activation__form .konfium-button {
  width: auto;
}

.konfium-activation__result {
  display: grid;
  gap: 10px;
}

.konfium-activation__result-label,
.konfium-activation__meta {
  margin: 0;
  color: var(--konfium-muted);
  font-size: 13px;
}

.konfium-activation__code-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.konfium-activation__code {
  min-width: min(100%, 20rem);
  padding: 12px 14px;
  border: 1px solid var(--konfium-control-border);
  border-radius: 8px;
  background: var(--konfium-paper-white);
  color: var(--konfium-ink);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 16px;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}

.konfium-activation__link {
  width: fit-content;
  color: var(--konfium-ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.konfium-activation__message {
  margin: 0;
  color: var(--konfium-danger);
  font-size: 14px;
}

.konfium-empty-state,
.konfium-alert {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--konfium-line);
  border-radius: 8px;
  background: var(--konfium-yellow-soft);
  color: var(--konfium-ink);
}

.konfium-empty-state--danger {
  border-color: #d8aaa4;
  background: #fff4f2;
  color: var(--konfium-danger);
}

.konfium-page-heading {
  margin: 0 0 24px;
}

.konfium-page-heading h1 {
  max-width: 28ch;
  margin: 0;
  font-size: 32px;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.konfium-page-heading p {
  max-width: 65ch;
  margin: 10px 0 0;
  color: var(--konfium-muted);
}

.konfium-legal-document {
  max-width: 860px;
  margin: 0 auto;
  padding: 32px;
  border: 1px solid var(--konfium-line);
  border-radius: 12px;
  background: var(--konfium-paper-white);
  box-shadow: var(--konfium-shadow);
}

.konfium-legal-draft {
  display: grid;
  gap: 5px;
  margin: 28px 0;
  padding: 15px 18px;
  border-left: 4px solid var(--konfium-yellow);
  background: var(--konfium-yellow-soft);
  color: var(--konfium-ink);
  font-size: 14px;
  line-height: 1.55;
}

.konfium-legal-version {
  margin: 0 0 20px;
  color: var(--konfium-muted);
  font-size: 13px;
}

.konfium-legal-version code {
  color: var(--konfium-ink);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.konfium-legal-section {
  margin-top: 28px;
}

.konfium-legal-section h2 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.3;
}

.konfium-legal-section p {
  max-width: 74ch;
  margin: 0 0 10px;
  color: var(--konfium-muted);
  font-size: 15px;
  line-height: 1.65;
}

.konfium-legal-section a {
  overflow-wrap: anywhere;
  color: var(--konfium-ink);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.konfium-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.konfium-summary-panel {
  min-width: 0;
  padding: 22px 24px;
  border: 1px solid var(--konfium-line);
  border-radius: 12px;
  background: var(--konfium-paper-white);
}

.konfium-summary-panel h2 {
  margin: 0 0 18px;
  font-size: 20px;
  line-height: 1.3;
}

.konfium-summary-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.konfium-summary-panel__header h2 {
  margin-bottom: 0;
}

.konfium-summary-panel__subheading {
  margin: 24px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--konfium-line);
  font-size: 15px;
  line-height: 1.4;
}

.konfium-stat-list,
.konfium-order-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.konfium-stat-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.konfium-stat-list li {
  display: grid;
  gap: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--konfium-line);
}

.konfium-stat-list span,
.konfium-order-list small {
  color: var(--konfium-muted);
  font-size: 13px;
}

.konfium-stat-list strong {
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.konfium-stat-list--stacked {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.konfium-stat-list--stacked > div {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1.2fr);
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--konfium-line);
}

.konfium-stat-list--stacked dt {
  color: var(--konfium-muted);
  font-size: 13px;
}

.konfium-stat-list--stacked dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.konfium-table-wrap {
  width: 100%;
  overflow: visible;
}

.konfium-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  font-size: 14px;
}

.konfium-table th,
.konfium-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--konfium-line);
  text-align: left;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.konfium-table th {
  color: var(--konfium-muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.konfium-table tbody tr:last-child td {
  border-bottom: 0;
}

.konfium-table__muted {
  display: block;
  margin-top: 3px;
  color: var(--konfium-muted);
  font-size: 12px;
}

.konfium-button--small {
  min-height: 40px;
  padding: 8px 12px;
  font-size: 13px;
  white-space: nowrap;
}

.konfium-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--konfium-muted);
  font-size: 13px;
}

.konfium-pagination__link,
.konfium-pagination__page {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid var(--konfium-control-border);
  border-radius: 8px;
  text-decoration: none;
}

.konfium-pagination__link:hover,
.konfium-pagination__page:hover,
.konfium-pagination__page.is-current {
  background: var(--konfium-control-hover);
  color: var(--konfium-ink);
}

.konfium-pagination__link.is-disabled {
  color: #999286;
  pointer-events: none;
  opacity: 0.65;
}

.konfium-pagination__pages {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.konfium-invoice-sections {
  display: grid;
  gap: 24px;
}

.konfium-invoice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.konfium-invoice-meta {
  margin-bottom: 28px;
}

.konfium-invoice-parties {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 28px;
}

.konfium-invoice-party {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--konfium-line);
  border-radius: 8px;
  background: #fffefb;
}

.konfium-invoice-party h2,
.konfium-profile-section h2 {
  margin: 0 0 16px;
  font-size: 20px;
  line-height: 1.3;
}

.konfium-invoice-party .konfium-stat-list--stacked > div {
  grid-template-columns: minmax(100px, 0.7fr) minmax(0, 1.3fr);
}

.konfium-invoice-total {
  width: min(420px, 100%);
  margin: 22px 0 0 auto;
  border-top: 1px solid var(--konfium-line);
}

.konfium-invoice-total > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid var(--konfium-line);
}

.konfium-invoice-total dt,
.konfium-invoice-total dd {
  margin: 0;
}

.konfium-invoice-total dd {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.konfium-invoice-total__grand {
  font-size: 18px;
  font-weight: 650;
}

.konfium-invoice-payment {
  width: min(960px, 100%);
  margin: 24px auto 0;
}

.konfium-invoice-payment .konfium-panel__header {
  padding: 24px 24px 16px;
}

.konfium-invoice-payment__body {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: start;
  gap: 20px;
  padding: 0 24px 24px;
}

.konfium-invoice-payment__summary {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--konfium-line);
  border-radius: 10px;
  background: var(--konfium-paper);
}

.konfium-invoice-payment__summary h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.35;
}

.konfium-invoice-payment .konfium-stat-list--stacked > div {
  grid-template-columns: minmax(90px, 0.65fr) minmax(0, 1.35fr);
  gap: 12px;
  padding: 8px 0;
}

.konfium-invoice-payment .konfium-invoice-total {
  width: 100%;
  margin: 16px 0 0;
}

.konfium-invoice-payment__action {
  min-width: 0;
}

.konfium-invoice-payment__action form {
  display: grid;
  gap: 16px;
}

.konfium-invoice-payment .konfium-checkout-legal {
  margin: 0;
}

.konfium-invoice-payment__submit {
  width: 100%;
  max-width: 100%;
  min-height: 52px;
  overflow-wrap: anywhere;
  text-align: center;
  text-wrap: balance;
  white-space: normal;
}

.konfium-invoice-payment .konfium-form-help.konfium-invoice-payment__action-help {
  margin: 16px 0 0;
  line-height: 1.5;
}

.konfium-invoice-payment [data-invoice-checkout-result]:empty {
  display: none;
}

.konfium-invoice-payment [data-invoice-checkout-result]:not(:empty) {
  margin: 16px 0 0;
  line-height: 1.5;
}

@media (max-width: 820px) {
  .konfium-invoice-payment__body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .konfium-invoice-payment .konfium-panel__header {
    padding: 20px 20px 16px;
  }

  .konfium-invoice-payment .konfium-panel__body {
    padding: 0 20px 20px;
  }

  .konfium-invoice-payment__summary {
    padding: 14px;
  }
}

.konfium-callout {
  margin: 24px 0;
  padding: 16px;
  border: 1px solid var(--konfium-line);
  border-radius: 8px;
  background: var(--konfium-yellow-soft);
}

.konfium-profile-layout {
  display: grid;
  gap: 24px;
}

.konfium-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}

.konfium-profile-grid__wide {
  grid-column: 1 / -1;
}

.konfium-profile-section {
  padding: 24px;
  border: 1px solid var(--konfium-line);
  border-radius: 12px;
  background: var(--konfium-paper-white);
}

.konfium-profile-section > p {
  margin: -8px 0 20px;
  color: var(--konfium-muted);
}

.konfium-profile-section .konfium-form-field {
  max-width: 520px;
}

.konfium-profile-value {
  display: inline-block;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid var(--konfium-control-border);
  border-radius: 8px;
  font-weight: 650;
}

.konfium-order-list {
  display: grid;
  gap: 0;
}

.konfium-order-list a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--konfium-line);
  text-decoration: none;
}

.konfium-order-list a:hover strong {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.konfium-order-list strong {
  display: block;
  overflow-wrap: anywhere;
}

.konfium-order-list small {
  display: block;
  margin-top: 4px;
}

.konfium-auth-page {
  min-height: calc(100vh - 105px);
  display: grid;
  place-items: center;
  padding: 40px 0 64px;
}

.konfium-auth-card {
  width: min(440px, 100%);
  padding: 32px;
  border: 1px solid var(--konfium-line);
  border-radius: 12px;
  background: var(--konfium-paper-white);
  box-shadow: var(--konfium-shadow);
}

.konfium-auth-card--wide {
  width: min(640px, 100%);
}

.konfium-auth-card h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.konfium-auth-card > p {
  margin: 10px 0 24px;
  color: var(--konfium-muted);
}

.konfium-form-field {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
}

.konfium-form-field[hidden] {
  display: none !important;
}

.konfium-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}

.konfium-form-field--wide {
  grid-column: 1 / -1;
}

.konfium-form-field label {
  color: var(--konfium-ink);
  font-size: 14px;
  font-weight: 600;
}

.konfium-form-optional {
  color: var(--konfium-muted);
  font-size: 12px;
  font-weight: 400;
}

.konfium-form-field input,
.konfium-form-field select,
.konfium-form-field textarea {
  min-height: 48px;
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--konfium-control-border);
  border-radius: 8px;
  background: var(--konfium-paper-white);
  color: var(--konfium-ink);
}

.konfium-form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.konfium-form-field input:hover,
.konfium-form-field select:hover,
.konfium-form-field textarea:hover {
  border-color: #7d776b;
}

.konfium-form-field input:focus,
.konfium-form-field select:focus,
.konfium-form-field textarea:focus {
  border-color: var(--konfium-focus);
  outline: 3px solid #5038c533;
  outline-offset: 1px;
}

.konfium-form-help {
  margin: -6px 0 16px;
  color: var(--konfium-muted);
  font-size: 13px;
}

.konfium-auth-actions {
  margin-top: 24px;
}

.konfium-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 8px 0 16px;
  color: var(--konfium-muted);
  font-size: 13px;
  line-height: 1.5;
}

.konfium-checkbox input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--konfium-focus);
}

.konfium-checkbox label {
  min-width: 0;
}

.konfium-checkout-legal {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--konfium-line);
  border-radius: 12px;
  background: var(--konfium-paper-white);
  color: var(--konfium-ink);
}

.konfium-checkout-legal .konfium-checkbox + .konfium-checkbox {
  margin-top: 10px;
}

.konfium-checkout-legal .konfium-form-help {
  margin: 12px 0 0;
  line-height: 1.5;
}

.konfium-auth-legal {
  margin: 16px 0 0;
  color: var(--konfium-muted);
  font-size: 13px;
}

.konfium-auth-card .konfium-button {
  width: 100%;
}

.konfium-auth-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  color: var(--konfium-muted);
  font-size: 14px;
}

.konfium-dialog {
  width: min(560px, calc(100% - 32px));
  padding: 0;
  border: 1px solid var(--konfium-line);
  border-radius: 12px;
  background: var(--konfium-paper-white);
  box-shadow: var(--konfium-shadow);
  color: var(--konfium-ink);
}

.konfium-dialog::backdrop {
  background: #17171266;
}

.konfium-dialog__header,
.konfium-dialog__body,
.konfium-dialog__footer {
  padding: 20px 24px;
}

.konfium-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--konfium-line);
}

.konfium-dialog__header h2 {
  margin: 0;
  font-size: 20px;
}

.konfium-dialog__close {
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--konfium-control-border);
  border-radius: 8px;
  background: var(--konfium-paper-white);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.konfium-dialog__footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid var(--konfium-line);
}

.konfium-dialog__footer .konfium-button {
  min-width: 120px;
}

.konfium-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .konfium-details-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .konfium-header,
  .konfium-main,
  .konfium-footer {
    width: calc(100% - 40px);
  }

  .konfium-header {
    min-height: 72px;
    gap: 12px;
  }

  .konfium-brand {
    font-size: 20px;
  }

  .konfium-header__links {
    display: none;
  }

  .konfium-header__right {
    gap: 8px;
  }

  .konfium-user-menu summary {
    max-width: 152px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .konfium-main {
    padding-top: 20px;
  }

  .konfium-checkout .accordion-button {
    min-height: 58px;
    padding: 14px 16px;
    font-size: 16px;
  }

  .konfium-checkout .accordion-body {
    padding: 16px;
  }

  .konfium-checkout__cart-table th,
  .konfium-checkout__cart-table td,
  .konfium-checkout__summary-table td {
    padding: 12px 8px;
  }

  .konfium-checkout__cart-table th:nth-child(2),
  .konfium-checkout__cart-table td:nth-child(2) {
    width: 31%;
  }

  .konfium-checkout__remove-heading,
  .konfium-checkout__remove-cell {
    width: 52px;
  }

  .konfium-checkout__grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
  }

  .konfium-checkout__form {
    margin-top: 0;
  }

  .konfium-checkout__actions {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .konfium-checkout__submit {
    width: 100%;
  }

  .konfium-toast-container {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }

  .konfium-panel__header,
  .konfium-panel__body,
  .konfium-license-panel {
    padding-right: 20px;
    padding-left: 20px;
  }

  .konfium-activation {
    padding-right: 20px;
    padding-left: 20px;
  }

  .konfium-distribution {
    align-items: stretch;
    padding-right: 20px;
    padding-left: 20px;
  }

  .konfium-distribution .konfium-button {
    width: 100%;
  }

  .konfium-panel__header,
  .konfium-license-panel__header {
    display: grid;
    gap: 14px;
  }

  .konfium-title,
  .konfium-page-heading h1 {
    font-size: 28px;
  }

  .konfium-details-grid,
  .konfium-license-summary,
  .konfium-summary-grid,
  .konfium-stat-list,
  .konfium-invoice-parties {
    grid-template-columns: 1fr;
  }

  .konfium-profile-grid {
    grid-template-columns: 1fr;
  }

  .konfium-profile-grid__wide {
    grid-column: auto;
  }

  .konfium-stat-list--stacked > div,
  .konfium-invoice-party .konfium-stat-list--stacked > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .konfium-invoice-actions,
  .konfium-invoice-actions .konfium-button {
    width: 100%;
  }

  .konfium-invoice-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .konfium-profile-section {
    padding: 20px;
  }

  .konfium-legal-document {
    padding: 24px 20px;
  }

  .konfium-action-row,
  .konfium-action-row .konfium-button,
  .konfium-actions,
  .konfium-actions .konfium-button {
    width: 100%;
  }

  .konfium-action-row,
  .konfium-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .konfium-activation__form .konfium-button,
  .konfium-activation__code-row .konfium-button {
    width: 100%;
  }

  .konfium-activation__code {
    min-width: 0;
    width: 100%;
  }

  .konfium-auth-page {
    min-height: auto;
    padding: 24px 0 40px;
  }

  .konfium-auth-card {
    padding: 24px 20px;
  }

  .konfium-form-grid {
    grid-template-columns: 1fr;
  }

  .konfium-form-field--wide {
    grid-column: auto;
  }

  .konfium-table-wrap {
    overflow: visible;
  }

  .konfium-table {
    display: block;
  }

  .konfium-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }

  .konfium-table tbody {
    display: block;
  }

  .konfium-table tr {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid var(--konfium-line);
  }

  .konfium-table tbody tr:last-child {
    border-bottom: 0;
  }

  .konfium-table td {
    display: grid;
    grid-template-columns: minmax(7rem, 0.7fr) minmax(0, 1.3fr);
    gap: 12px;
    min-width: 0;
    padding: 8px 0;
    border-bottom: 0;
    overflow-wrap: anywhere;
  }

  .konfium-table td[data-label]::before {
    content: attr(data-label);
    color: var(--konfium-muted);
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }

  .konfium-table td[colspan] {
    display: block;
  }

  .konfium-table .konfium-button--small {
    width: min(100%, 180px);
    justify-self: start;
    white-space: normal;
    text-align: center;
  }

  .konfium-table .konfium-status {
    white-space: normal;
  }

  .konfium-dialog__footer {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .konfium-dialog__footer .konfium-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
