.loyalty-area { --lc-line: #d1d8ca; --lc-accent: #c7a580; --lc-ink: #16271e; color: var(--lc-ink); }
.loyalty-area *, .loyalty-area *::before, .loyalty-area *::after { box-sizing: border-box; }
.loyalty-area [hidden] { display: none !important; }
.loyalty-area h2, .loyalty-area h3, .loyalty-area p { margin: 0; }
.loyalty-area h2 { font: clamp(23px, 3.7vw, 35px)/1.15 var(--display, Georgia, serif); }
.loyalty-area h2:focus { outline: none; }
.loyalty-area h3 { font: 600 15px/1.25 'Taiga Sans', Arial, sans-serif; }
.loyalty-area p { line-height: 1.5; }
.lc-muted { color: #505d52; }
.lc-welcome, .lc-form-wrap, .lc-account-details, .lc-recovery-box, .lc-operation, .lc-fitting {
  padding: clamp(15px, 3.1vw, 30px);
  border-radius: 25px;
  background: #fffcf6;
  min-width: 0;
}
.lc-welcome {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 14px 26px;
  align-items: center;
  background: #e7ecdf;
}
.lc-welcome p { margin-top: 9px; max-width: 48ch; }
.lc-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lc-primary, .lc-secondary, .lc-inverse, .lc-link {
  min-height: 44px; border: 1px solid transparent; color: inherit; font: 600 13px/1.3 'Taiga Sans', Arial, sans-serif;
  padding: 8px 16px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; text-align: center;
  max-width: 100%; white-space: normal; overflow-wrap: anywhere; cursor: pointer;
}
.lc-primary { background: #09281d; color: #fff; }
.lc-secondary { background: #f7f5ef; border-color: #718174; color: #09281d; }
.lc-link { background: transparent; border: 0; padding-inline: 0; text-decoration: underline; text-underline-offset: 3px; justify-content: start; }
.lc-inverse { background: #f9ecda; color: #1b342a; justify-self: start; }
.lc-card-alt { color: #fff9f0; background: #112d2480; border-color: #ebf0de9c; }
.loyalty-area :focus-visible { outline: 2px solid #5e7754; outline-offset: 3px; }
.loyalty-area button:disabled { opacity: .6; cursor: default; }
.lc-form { display: grid; gap: 12px; max-width: 31rem; margin-top: 14px; }
.lc-form label { display: grid; gap: 4px; font-weight: 600; font-size: 13px; min-width: 0; }
.lc-form label > :is(input:not([type="checkbox"]), select) {
  display: block; width: 100%; min-width: 0; min-height: 44px; border: 1px solid #707d73;
  padding: 8px 12px; background: #fffdf8; color: var(--lc-ink); box-shadow: none; font-size: 16px; border-radius: 12px;
}
.lc-form label.lc-check { display: flex; min-height: 40px; gap: 8px; align-items: center; }
.lc-form .lc-check input { flex: 0 0 17px; width: 17px; height: 17px; accent-color: #09281d; }
.lc-form .lc-check a { text-decoration: underline; text-underline-offset: 2px; }
.lc-operation-status, .lc-status { min-height: 0; margin: 7px 0 0 !important; color: #344d39; }
.lc-status:empty { display: none; }
.lc-error, .lc-status.lc-error { color: #842d21; font-weight: 600; }
.lc-account { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); align-items: start; gap: 12px; }
.lc-card {
  display: grid; gap: 9px; align-content: start; min-height: 225px; min-width: 0; padding: clamp(20px, 4vw, 32px); border-radius: 27px;
  color: #fbfff8; background-color: #09281d; background-position: center; background-size: cover;
  background-image: linear-gradient(102deg,#10271fee 8%,#18372b9e), url('/assets/site/stolby.jpg');
}
.lc-card .lc-tier { font-size: 13px; font-weight: 600; color: #f1dbc2; }
.lc-card h2 { font-size: clamp(32px, 6vw, 52px); }
.lc-card h2 b { font-weight: 400; }
.lc-card h2 small { font: 500 15px/1 'Taiga Sans', sans-serif; }
.lc-number, .lc-recovery-box code { font-size: clamp(14px, 4.2vw, 18px); letter-spacing: .09em; overflow-wrap: anywhere; }
.lc-account-details p { margin: 8px 0; }
.lc-account-details h3 { margin-top: 14px; }
.lc-account-details progress { display: block; height: 7px; width: 100%; accent-color: #497453; margin-block: 6px; }
.lc-heading-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; }
.lc-heading-row h3 { margin: 0; }
.lc-history { list-style: none; margin: 9px 0 0; padding: 0; }
.lc-history li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 9px 0; border-top: 1px solid var(--lc-line); }
.lc-history small { display: block; overflow-wrap: anywhere; color: #505d52; }
.lc-deltas { display: grid; align-content: start; gap: 3px; text-align: right; font-variant-numeric: tabular-nums; }
.lc-deltas strong { color: #1a5336; }
.lc-recovery-box { margin-top: 12px; background-color: #f4eee2; }
.lc-recovery-box p { margin: 6px 0; }
.lc-recovery-box code { display: block; margin: 7px 0 10px; }
.lc-operator { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.lc-operator .lc-operation:first-child { grid-row: span 2; }
.lc-operation > p { margin-top: 10px; }
.lc-readout { padding: 12px; background: #f7f5ef; border-left: 3px solid #788b73; overflow-wrap: anywhere; }
.lc-app-link { display: inline-block; margin-top: 13px; color: #18402b; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.lc-code-view {
  width: min(475px, calc(100% - 26px)); max-height: calc(100dvh - 24px); padding: clamp(17px, 5vw, 27px);
  border: 0; border-radius: 25px; color: #172a20; background: #fffdf7;
}
.lc-code-view::backdrop { background: #091e17b8; }
.lc-code-view form { display: flex; justify-content: end; }
.lc-code-view h2 { margin-block: 6px; font-size: clamp(21px, 5vw, 28px); }
.lc-code-view > p { margin: 6px 0; }
.lc-code-view canvas { display: block; height: auto; margin: 10px auto 0; background: #fff; image-rendering: pixelated; }
.lc-card-qr { width: min(220px, 100%, 38dvh); }
.lc-card-barcode { max-width: 100%; }
.lc-code-view code { display: block; text-align: center; font-size: clamp(20px, 6vw, 30px); letter-spacing: .04em; margin: 10px 0 12px; }
.lc-code-view .lc-actions { justify-content: center; }
.lc-scan-preview { position: relative; margin-block: 10px; overflow: hidden; border-radius: 16px; background: #12221c; }
.lc-scan-preview video { display: block; width: 100%; max-height: 55dvh; object-fit: contain; }
.lc-scan-preview::after {
  content: ''; position: absolute; width: 55%; aspect-ratio: 1; left: 50%; top: 50%; translate: -50% -50%;
  max-height: 88%; border: 2px solid #fff; border-radius: 15px; pointer-events: none;
}
.lc-fitting { margin-block: 12px; scroll-margin-block-start: 12px; }
.lc-fitting h2 { font-size: clamp(19px, 3vw, 28px); }
.lc-fitting p { margin: 6px 0; }
.lc-fitting .lc-actions { margin-top: 7px; }
.lc-fitting-list { display: grid; gap: 9px; padding: 0; margin: 12px 0 0; list-style: none; }
.lc-fitting-row { padding: 11px 12px; border-radius: 14px; background: #f0f2e9; overflow-wrap: anywhere; }
.lc-fitting-row .lc-heading-row { align-items: start; }
.lc-fitting-row .lc-primary, .lc-fitting-row .lc-secondary { font-size: 12px; }
.lc-phase { display: inline-flex; padding: 4px 10px; border-radius: 999px; color: #314d3a; background: #dee7d9; font-size: 12px; font-weight: 700; }
.lc-phase[data-tone="closed"] { color: #574a40; background: #e8e1d7; }
.lc-fitting select { max-width: 100%; }
.lc-staff-quote { margin: -6px 0 0 !important; font-size: 13px; color: #3c5444; }
.page-loyalty .loyalty-tiers section, .page-loyalty .loyalty-calculator {
  border: 0; background: #e7ecdf; border-radius: 25px;
}
.page-loyalty .loyalty-calculator input { border-radius: 12px; }
.page-loyalty .loyalty-terms { padding: 12px 0; }
@media (max-width: 680px) {
  .lc-welcome, .lc-account, .lc-operator { grid-template-columns: minmax(0, 1fr); }
  .lc-operator .lc-operation:first-child { grid-row: auto; }
}
